From f1948842ea21882abb5d1dad72d42aed6989c154 Mon Sep 17 00:00:00 2001 From: "haowei.yao" Date: Wed, 27 Mar 2019 14:06:57 +0800 Subject: [PATCH] =?UTF-8?q?IVISION=20SDK=20Auto=20Released=20By=20wb-czb51?= =?UTF-8?q?5173,Version=EF=BC=9A1.34.65?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: haowei.yao --- CHANGELOG | 9 + CMakeLists.txt | 3 +- VERSION | 2 +- ivision/CMakeLists.txt | 214 +++ .../alibabacloud/ivision/IvisionClient.h | 310 ++++ .../alibabacloud/ivision/IvisionExport.h | 32 + .../ivision/model/CreateProjectRequest.h | 123 ++ .../ivision/model/CreateProjectResult.h | 61 + .../model/CreateStreamPredictRequest.h | 138 ++ .../ivision/model/CreateStreamPredictResult.h | 51 + .../ivision/model/CreateTagRequest.h | 123 ++ .../ivision/model/CreateTagResult.h | 60 + .../model/CreateTrainDataRegionTagRequest.h | 123 ++ .../model/CreateTrainDataRegionTagResult.h | 76 + .../ivision/model/CreateTrainDataTagRequest.h | 123 ++ .../ivision/model/CreateTrainDataTagResult.h | 76 + .../CreateTrainDatasFromPredictionRequest.h | 126 ++ .../CreateTrainDatasFromPredictionResult.h | 76 + .../model/CreateTrainDatasFromUrlsRequest.h | 123 ++ .../model/CreateTrainDatasFromUrlsResult.h | 76 + .../model/CreateTrainDatasTagRequest.h | 123 ++ .../ivision/model/CreateTrainDatasTagResult.h | 76 + .../ivision/model/CreateUploadTokenRequest.h | 120 ++ .../ivision/model/CreateUploadTokenResult.h | 62 + .../ivision/model/DeleteIterationRequest.h | 120 ++ .../ivision/model/DeleteIterationResult.h | 51 + .../ivision/model/DeletePredictDatasRequest.h | 123 ++ .../ivision/model/DeletePredictDatasResult.h | 49 + .../ivision/model/DeleteProjectRequest.h | 117 ++ .../ivision/model/DeleteProjectResult.h | 51 + .../model/DeleteStreamPredictRequest.h | 117 ++ .../ivision/model/DeleteStreamPredictResult.h | 51 + .../ivision/model/DeleteTagRequest.h | 120 ++ .../ivision/model/DeleteTagResult.h | 51 + .../ivision/model/DeleteTrainDatasRequest.h | 120 ++ .../ivision/model/DeleteTrainDatasResult.h | 49 + .../model/DeleteTrainDatasTagRequest.h | 123 ++ .../ivision/model/DeleteTrainDatasTagResult.h | 49 + .../ivision/model/DescribeIterationsRequest.h | 126 ++ .../ivision/model/DescribeIterationsResult.h | 72 + .../model/DescribePredictDatasRequest.h | 141 ++ .../model/DescribePredictDatasResult.h | 89 ++ .../ivision/model/DescribeProjectsRequest.h | 126 ++ .../ivision/model/DescribeProjectsResult.h | 69 + .../DescribeStreamPredictResultRequest.h | 138 ++ .../model/DescribeStreamPredictResultResult.h | 98 ++ .../model/DescribeStreamPredictsRequest.h | 126 ++ .../model/DescribeStreamPredictsResult.h | 72 + .../ivision/model/DescribeTagsRequest.h | 132 ++ .../ivision/model/DescribeTagsResult.h | 68 + .../model/DescribeTrainDatasByIdsRequest.h | 123 ++ .../model/DescribeTrainDatasByIdsResult.h | 76 + .../ivision/model/DescribeTrainDatasRequest.h | 135 ++ .../ivision/model/DescribeTrainDatasResult.h | 84 ++ .../model/DescribeTrainResultRequest.h | 123 ++ .../ivision/model/DescribeTrainResultResult.h | 75 + .../model/ModifyProjectAttributeRequest.h | 123 ++ .../model/ModifyProjectAttributeResult.h | 61 + .../ivision/model/ModifyTagAttributeRequest.h | 126 ++ .../ivision/model/ModifyTagAttributeResult.h | 61 + ...ModifyTrainDataRegionTagAttributeRequest.h | 123 ++ .../ModifyTrainDataRegionTagAttributeResult.h | 76 + .../ModifyTrainDataTagAttributeRequest.h | 123 ++ .../model/ModifyTrainDataTagAttributeResult.h | 76 + .../ivision/model/PredictImageRequest.h | 123 ++ .../ivision/model/PredictImageResult.h | 81 ++ .../ivision/model/StartStreamPredictRequest.h | 117 ++ .../ivision/model/StartStreamPredictResult.h | 51 + .../ivision/model/StopStreamPredictRequest.h | 117 ++ .../ivision/model/StopStreamPredictResult.h | 51 + .../ivision/model/TrainProjectRequest.h | 117 ++ .../ivision/model/TrainProjectResult.h | 51 + ivision/src/IvisionClient.cc | 1241 +++++++++++++++++ ivision/src/model/CreateProjectRequest.cc | 313 +++++ ivision/src/model/CreateProjectResult.cc | 65 + .../src/model/CreateStreamPredictRequest.cc | 368 +++++ .../src/model/CreateStreamPredictResult.cc | 52 + ivision/src/model/CreateTagRequest.cc | 313 +++++ ivision/src/model/CreateTagResult.cc | 63 + .../model/CreateTrainDataRegionTagRequest.cc | 313 +++++ .../model/CreateTrainDataRegionTagResult.cc | 86 ++ .../src/model/CreateTrainDataTagRequest.cc | 313 +++++ ivision/src/model/CreateTrainDataTagResult.cc | 86 ++ .../CreateTrainDatasFromPredictionRequest.cc | 324 +++++ .../CreateTrainDatasFromPredictionResult.cc | 91 ++ .../model/CreateTrainDatasFromUrlsRequest.cc | 313 +++++ .../model/CreateTrainDatasFromUrlsResult.cc | 91 ++ .../src/model/CreateTrainDatasTagRequest.cc | 313 +++++ .../src/model/CreateTrainDatasTagResult.cc | 86 ++ ivision/src/model/CreateUploadTokenRequest.cc | 302 ++++ ivision/src/model/CreateUploadTokenResult.cc | 67 + ivision/src/model/DeleteIterationRequest.cc | 302 ++++ ivision/src/model/DeleteIterationResult.cc | 52 + .../src/model/DeletePredictDatasRequest.cc | 313 +++++ ivision/src/model/DeletePredictDatasResult.cc | 45 + ivision/src/model/DeleteProjectRequest.cc | 291 ++++ ivision/src/model/DeleteProjectResult.cc | 52 + .../src/model/DeleteStreamPredictRequest.cc | 291 ++++ .../src/model/DeleteStreamPredictResult.cc | 52 + ivision/src/model/DeleteTagRequest.cc | 302 ++++ ivision/src/model/DeleteTagResult.cc | 52 + ivision/src/model/DeleteTrainDatasRequest.cc | 302 ++++ ivision/src/model/DeleteTrainDatasResult.cc | 45 + .../src/model/DeleteTrainDatasTagRequest.cc | 313 +++++ .../src/model/DeleteTrainDatasTagResult.cc | 45 + .../src/model/DescribeIterationsRequest.cc | 324 +++++ ivision/src/model/DescribeIterationsResult.cc | 104 ++ .../src/model/DescribePredictDatasRequest.cc | 379 +++++ .../src/model/DescribePredictDatasResult.cc | 129 ++ ivision/src/model/DescribeProjectsRequest.cc | 324 +++++ ivision/src/model/DescribeProjectsResult.cc | 98 ++ .../DescribeStreamPredictResultRequest.cc | 368 +++++ .../DescribeStreamPredictResultResult.cc | 138 ++ .../model/DescribeStreamPredictsRequest.cc | 324 +++++ .../src/model/DescribeStreamPredictsResult.cc | 104 ++ ivision/src/model/DescribeTagsRequest.cc | 346 +++++ ivision/src/model/DescribeTagsResult.cc | 96 ++ .../model/DescribeTrainDatasByIdsRequest.cc | 313 +++++ .../model/DescribeTrainDatasByIdsResult.cc | 91 ++ .../src/model/DescribeTrainDatasRequest.cc | 357 +++++ ivision/src/model/DescribeTrainDatasResult.cc | 119 ++ .../src/model/DescribeTrainResultRequest.cc | 313 +++++ .../src/model/DescribeTrainResultResult.cc | 91 ++ .../model/ModifyProjectAttributeRequest.cc | 313 +++++ .../src/model/ModifyProjectAttributeResult.cc | 65 + .../src/model/ModifyTagAttributeRequest.cc | 324 +++++ ivision/src/model/ModifyTagAttributeResult.cc | 65 + ...odifyTrainDataRegionTagAttributeRequest.cc | 313 +++++ ...ModifyTrainDataRegionTagAttributeResult.cc | 86 ++ .../ModifyTrainDataTagAttributeRequest.cc | 313 +++++ .../ModifyTrainDataTagAttributeResult.cc | 86 ++ ivision/src/model/PredictImageRequest.cc | 313 +++++ ivision/src/model/PredictImageResult.cc | 101 ++ .../src/model/StartStreamPredictRequest.cc | 291 ++++ ivision/src/model/StartStreamPredictResult.cc | 52 + ivision/src/model/StopStreamPredictRequest.cc | 291 ++++ ivision/src/model/StopStreamPredictResult.cc | 52 + ivision/src/model/TrainProjectRequest.cc | 291 ++++ ivision/src/model/TrainProjectResult.cc | 52 + 139 files changed, 21128 insertions(+), 2 deletions(-) create mode 100644 ivision/CMakeLists.txt create mode 100644 ivision/include/alibabacloud/ivision/IvisionClient.h create mode 100644 ivision/include/alibabacloud/ivision/IvisionExport.h create mode 100644 ivision/include/alibabacloud/ivision/model/CreateProjectRequest.h create mode 100644 ivision/include/alibabacloud/ivision/model/CreateProjectResult.h create mode 100644 ivision/include/alibabacloud/ivision/model/CreateStreamPredictRequest.h create mode 100644 ivision/include/alibabacloud/ivision/model/CreateStreamPredictResult.h create mode 100644 ivision/include/alibabacloud/ivision/model/CreateTagRequest.h create mode 100644 ivision/include/alibabacloud/ivision/model/CreateTagResult.h create mode 100644 ivision/include/alibabacloud/ivision/model/CreateTrainDataRegionTagRequest.h create mode 100644 ivision/include/alibabacloud/ivision/model/CreateTrainDataRegionTagResult.h create mode 100644 ivision/include/alibabacloud/ivision/model/CreateTrainDataTagRequest.h create mode 100644 ivision/include/alibabacloud/ivision/model/CreateTrainDataTagResult.h create mode 100644 ivision/include/alibabacloud/ivision/model/CreateTrainDatasFromPredictionRequest.h create mode 100644 ivision/include/alibabacloud/ivision/model/CreateTrainDatasFromPredictionResult.h create mode 100644 ivision/include/alibabacloud/ivision/model/CreateTrainDatasFromUrlsRequest.h create mode 100644 ivision/include/alibabacloud/ivision/model/CreateTrainDatasFromUrlsResult.h create mode 100644 ivision/include/alibabacloud/ivision/model/CreateTrainDatasTagRequest.h create mode 100644 ivision/include/alibabacloud/ivision/model/CreateTrainDatasTagResult.h create mode 100644 ivision/include/alibabacloud/ivision/model/CreateUploadTokenRequest.h create mode 100644 ivision/include/alibabacloud/ivision/model/CreateUploadTokenResult.h create mode 100644 ivision/include/alibabacloud/ivision/model/DeleteIterationRequest.h create mode 100644 ivision/include/alibabacloud/ivision/model/DeleteIterationResult.h create mode 100644 ivision/include/alibabacloud/ivision/model/DeletePredictDatasRequest.h create mode 100644 ivision/include/alibabacloud/ivision/model/DeletePredictDatasResult.h create mode 100644 ivision/include/alibabacloud/ivision/model/DeleteProjectRequest.h create mode 100644 ivision/include/alibabacloud/ivision/model/DeleteProjectResult.h create mode 100644 ivision/include/alibabacloud/ivision/model/DeleteStreamPredictRequest.h create mode 100644 ivision/include/alibabacloud/ivision/model/DeleteStreamPredictResult.h create mode 100644 ivision/include/alibabacloud/ivision/model/DeleteTagRequest.h create mode 100644 ivision/include/alibabacloud/ivision/model/DeleteTagResult.h create mode 100644 ivision/include/alibabacloud/ivision/model/DeleteTrainDatasRequest.h create mode 100644 ivision/include/alibabacloud/ivision/model/DeleteTrainDatasResult.h create mode 100644 ivision/include/alibabacloud/ivision/model/DeleteTrainDatasTagRequest.h create mode 100644 ivision/include/alibabacloud/ivision/model/DeleteTrainDatasTagResult.h create mode 100644 ivision/include/alibabacloud/ivision/model/DescribeIterationsRequest.h create mode 100644 ivision/include/alibabacloud/ivision/model/DescribeIterationsResult.h create mode 100644 ivision/include/alibabacloud/ivision/model/DescribePredictDatasRequest.h create mode 100644 ivision/include/alibabacloud/ivision/model/DescribePredictDatasResult.h create mode 100644 ivision/include/alibabacloud/ivision/model/DescribeProjectsRequest.h create mode 100644 ivision/include/alibabacloud/ivision/model/DescribeProjectsResult.h create mode 100644 ivision/include/alibabacloud/ivision/model/DescribeStreamPredictResultRequest.h create mode 100644 ivision/include/alibabacloud/ivision/model/DescribeStreamPredictResultResult.h create mode 100644 ivision/include/alibabacloud/ivision/model/DescribeStreamPredictsRequest.h create mode 100644 ivision/include/alibabacloud/ivision/model/DescribeStreamPredictsResult.h create mode 100644 ivision/include/alibabacloud/ivision/model/DescribeTagsRequest.h create mode 100644 ivision/include/alibabacloud/ivision/model/DescribeTagsResult.h create mode 100644 ivision/include/alibabacloud/ivision/model/DescribeTrainDatasByIdsRequest.h create mode 100644 ivision/include/alibabacloud/ivision/model/DescribeTrainDatasByIdsResult.h create mode 100644 ivision/include/alibabacloud/ivision/model/DescribeTrainDatasRequest.h create mode 100644 ivision/include/alibabacloud/ivision/model/DescribeTrainDatasResult.h create mode 100644 ivision/include/alibabacloud/ivision/model/DescribeTrainResultRequest.h create mode 100644 ivision/include/alibabacloud/ivision/model/DescribeTrainResultResult.h create mode 100644 ivision/include/alibabacloud/ivision/model/ModifyProjectAttributeRequest.h create mode 100644 ivision/include/alibabacloud/ivision/model/ModifyProjectAttributeResult.h create mode 100644 ivision/include/alibabacloud/ivision/model/ModifyTagAttributeRequest.h create mode 100644 ivision/include/alibabacloud/ivision/model/ModifyTagAttributeResult.h create mode 100644 ivision/include/alibabacloud/ivision/model/ModifyTrainDataRegionTagAttributeRequest.h create mode 100644 ivision/include/alibabacloud/ivision/model/ModifyTrainDataRegionTagAttributeResult.h create mode 100644 ivision/include/alibabacloud/ivision/model/ModifyTrainDataTagAttributeRequest.h create mode 100644 ivision/include/alibabacloud/ivision/model/ModifyTrainDataTagAttributeResult.h create mode 100644 ivision/include/alibabacloud/ivision/model/PredictImageRequest.h create mode 100644 ivision/include/alibabacloud/ivision/model/PredictImageResult.h create mode 100644 ivision/include/alibabacloud/ivision/model/StartStreamPredictRequest.h create mode 100644 ivision/include/alibabacloud/ivision/model/StartStreamPredictResult.h create mode 100644 ivision/include/alibabacloud/ivision/model/StopStreamPredictRequest.h create mode 100644 ivision/include/alibabacloud/ivision/model/StopStreamPredictResult.h create mode 100644 ivision/include/alibabacloud/ivision/model/TrainProjectRequest.h create mode 100644 ivision/include/alibabacloud/ivision/model/TrainProjectResult.h create mode 100644 ivision/src/IvisionClient.cc create mode 100644 ivision/src/model/CreateProjectRequest.cc create mode 100644 ivision/src/model/CreateProjectResult.cc create mode 100644 ivision/src/model/CreateStreamPredictRequest.cc create mode 100644 ivision/src/model/CreateStreamPredictResult.cc create mode 100644 ivision/src/model/CreateTagRequest.cc create mode 100644 ivision/src/model/CreateTagResult.cc create mode 100644 ivision/src/model/CreateTrainDataRegionTagRequest.cc create mode 100644 ivision/src/model/CreateTrainDataRegionTagResult.cc create mode 100644 ivision/src/model/CreateTrainDataTagRequest.cc create mode 100644 ivision/src/model/CreateTrainDataTagResult.cc create mode 100644 ivision/src/model/CreateTrainDatasFromPredictionRequest.cc create mode 100644 ivision/src/model/CreateTrainDatasFromPredictionResult.cc create mode 100644 ivision/src/model/CreateTrainDatasFromUrlsRequest.cc create mode 100644 ivision/src/model/CreateTrainDatasFromUrlsResult.cc create mode 100644 ivision/src/model/CreateTrainDatasTagRequest.cc create mode 100644 ivision/src/model/CreateTrainDatasTagResult.cc create mode 100644 ivision/src/model/CreateUploadTokenRequest.cc create mode 100644 ivision/src/model/CreateUploadTokenResult.cc create mode 100644 ivision/src/model/DeleteIterationRequest.cc create mode 100644 ivision/src/model/DeleteIterationResult.cc create mode 100644 ivision/src/model/DeletePredictDatasRequest.cc create mode 100644 ivision/src/model/DeletePredictDatasResult.cc create mode 100644 ivision/src/model/DeleteProjectRequest.cc create mode 100644 ivision/src/model/DeleteProjectResult.cc create mode 100644 ivision/src/model/DeleteStreamPredictRequest.cc create mode 100644 ivision/src/model/DeleteStreamPredictResult.cc create mode 100644 ivision/src/model/DeleteTagRequest.cc create mode 100644 ivision/src/model/DeleteTagResult.cc create mode 100644 ivision/src/model/DeleteTrainDatasRequest.cc create mode 100644 ivision/src/model/DeleteTrainDatasResult.cc create mode 100644 ivision/src/model/DeleteTrainDatasTagRequest.cc create mode 100644 ivision/src/model/DeleteTrainDatasTagResult.cc create mode 100644 ivision/src/model/DescribeIterationsRequest.cc create mode 100644 ivision/src/model/DescribeIterationsResult.cc create mode 100644 ivision/src/model/DescribePredictDatasRequest.cc create mode 100644 ivision/src/model/DescribePredictDatasResult.cc create mode 100644 ivision/src/model/DescribeProjectsRequest.cc create mode 100644 ivision/src/model/DescribeProjectsResult.cc create mode 100644 ivision/src/model/DescribeStreamPredictResultRequest.cc create mode 100644 ivision/src/model/DescribeStreamPredictResultResult.cc create mode 100644 ivision/src/model/DescribeStreamPredictsRequest.cc create mode 100644 ivision/src/model/DescribeStreamPredictsResult.cc create mode 100644 ivision/src/model/DescribeTagsRequest.cc create mode 100644 ivision/src/model/DescribeTagsResult.cc create mode 100644 ivision/src/model/DescribeTrainDatasByIdsRequest.cc create mode 100644 ivision/src/model/DescribeTrainDatasByIdsResult.cc create mode 100644 ivision/src/model/DescribeTrainDatasRequest.cc create mode 100644 ivision/src/model/DescribeTrainDatasResult.cc create mode 100644 ivision/src/model/DescribeTrainResultRequest.cc create mode 100644 ivision/src/model/DescribeTrainResultResult.cc create mode 100644 ivision/src/model/ModifyProjectAttributeRequest.cc create mode 100644 ivision/src/model/ModifyProjectAttributeResult.cc create mode 100644 ivision/src/model/ModifyTagAttributeRequest.cc create mode 100644 ivision/src/model/ModifyTagAttributeResult.cc create mode 100644 ivision/src/model/ModifyTrainDataRegionTagAttributeRequest.cc create mode 100644 ivision/src/model/ModifyTrainDataRegionTagAttributeResult.cc create mode 100644 ivision/src/model/ModifyTrainDataTagAttributeRequest.cc create mode 100644 ivision/src/model/ModifyTrainDataTagAttributeResult.cc create mode 100644 ivision/src/model/PredictImageRequest.cc create mode 100644 ivision/src/model/PredictImageResult.cc create mode 100644 ivision/src/model/StartStreamPredictRequest.cc create mode 100644 ivision/src/model/StartStreamPredictResult.cc create mode 100644 ivision/src/model/StopStreamPredictRequest.cc create mode 100644 ivision/src/model/StopStreamPredictResult.cc create mode 100644 ivision/src/model/TrainProjectRequest.cc create mode 100644 ivision/src/model/TrainProjectResult.cc diff --git a/CHANGELOG b/CHANGELOG index 3cdf210d9..612d82388 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,12 @@ +2019-03-27 Version: 1.34.65 +1, Add Project interface. +2, Add Tag interface. +3, Add TrainData interface. +4, Add Train interface. +5, Add Iteration interface. +6, Add Predict interface. +7, Add PredictData interface. + 2019-03-27 Version: 1.34.64 1, Add DLQ message openAPI. 2, Add Query the subscription relational openAPI. diff --git a/CMakeLists.txt b/CMakeLists.txt index c20a631c8..599e18ccc 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -114,4 +114,5 @@ add_subdirectory(sas-api) add_subdirectory(jarvis-public) add_subdirectory(mts) add_subdirectory(dysmsapi) -add_subdirectory(ons) \ No newline at end of file +add_subdirectory(ons) +add_subdirectory(ivision) \ No newline at end of file diff --git a/VERSION b/VERSION index f5aadff31..f1d948ec2 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.34.64 \ No newline at end of file +1.34.65 \ No newline at end of file diff --git a/ivision/CMakeLists.txt b/ivision/CMakeLists.txt new file mode 100644 index 000000000..70de2d63e --- /dev/null +++ b/ivision/CMakeLists.txt @@ -0,0 +1,214 @@ +# +# 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. +# + +set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include) + +set(ivision_public_header + include/alibabacloud/ivision/IvisionClient.h + include/alibabacloud/ivision/IvisionExport.h ) + +set(ivision_public_header_model + include/alibabacloud/ivision/model/TrainProjectRequest.h + include/alibabacloud/ivision/model/TrainProjectResult.h + include/alibabacloud/ivision/model/CreateTagRequest.h + include/alibabacloud/ivision/model/CreateTagResult.h + include/alibabacloud/ivision/model/DescribeTrainResultRequest.h + include/alibabacloud/ivision/model/DescribeTrainResultResult.h + include/alibabacloud/ivision/model/StartStreamPredictRequest.h + include/alibabacloud/ivision/model/StartStreamPredictResult.h + include/alibabacloud/ivision/model/CreateProjectRequest.h + include/alibabacloud/ivision/model/CreateProjectResult.h + include/alibabacloud/ivision/model/DescribeIterationsRequest.h + include/alibabacloud/ivision/model/DescribeIterationsResult.h + include/alibabacloud/ivision/model/DescribeTrainDatasByIdsRequest.h + include/alibabacloud/ivision/model/DescribeTrainDatasByIdsResult.h + include/alibabacloud/ivision/model/CreateTrainDataRegionTagRequest.h + include/alibabacloud/ivision/model/CreateTrainDataRegionTagResult.h + include/alibabacloud/ivision/model/CreateTrainDatasFromPredictionRequest.h + include/alibabacloud/ivision/model/CreateTrainDatasFromPredictionResult.h + include/alibabacloud/ivision/model/ModifyTagAttributeRequest.h + include/alibabacloud/ivision/model/ModifyTagAttributeResult.h + include/alibabacloud/ivision/model/CreateTrainDataTagRequest.h + include/alibabacloud/ivision/model/CreateTrainDataTagResult.h + include/alibabacloud/ivision/model/StopStreamPredictRequest.h + include/alibabacloud/ivision/model/StopStreamPredictResult.h + include/alibabacloud/ivision/model/DeleteTagRequest.h + include/alibabacloud/ivision/model/DeleteTagResult.h + include/alibabacloud/ivision/model/DescribeStreamPredictsRequest.h + include/alibabacloud/ivision/model/DescribeStreamPredictsResult.h + include/alibabacloud/ivision/model/ModifyTrainDataTagAttributeRequest.h + include/alibabacloud/ivision/model/ModifyTrainDataTagAttributeResult.h + include/alibabacloud/ivision/model/ModifyTrainDataRegionTagAttributeRequest.h + include/alibabacloud/ivision/model/ModifyTrainDataRegionTagAttributeResult.h + include/alibabacloud/ivision/model/DescribeTagsRequest.h + include/alibabacloud/ivision/model/DescribeTagsResult.h + include/alibabacloud/ivision/model/DescribeStreamPredictResultRequest.h + include/alibabacloud/ivision/model/DescribeStreamPredictResultResult.h + include/alibabacloud/ivision/model/CreateTrainDatasTagRequest.h + include/alibabacloud/ivision/model/CreateTrainDatasTagResult.h + include/alibabacloud/ivision/model/DeleteIterationRequest.h + include/alibabacloud/ivision/model/DeleteIterationResult.h + include/alibabacloud/ivision/model/DeleteTrainDatasTagRequest.h + include/alibabacloud/ivision/model/DeleteTrainDatasTagResult.h + include/alibabacloud/ivision/model/CreateStreamPredictRequest.h + include/alibabacloud/ivision/model/CreateStreamPredictResult.h + include/alibabacloud/ivision/model/DeleteStreamPredictRequest.h + include/alibabacloud/ivision/model/DeleteStreamPredictResult.h + include/alibabacloud/ivision/model/ModifyProjectAttributeRequest.h + include/alibabacloud/ivision/model/ModifyProjectAttributeResult.h + include/alibabacloud/ivision/model/DeleteTrainDatasRequest.h + include/alibabacloud/ivision/model/DeleteTrainDatasResult.h + include/alibabacloud/ivision/model/DescribeProjectsRequest.h + include/alibabacloud/ivision/model/DescribeProjectsResult.h + include/alibabacloud/ivision/model/DeleteProjectRequest.h + include/alibabacloud/ivision/model/DeleteProjectResult.h + include/alibabacloud/ivision/model/DescribePredictDatasRequest.h + include/alibabacloud/ivision/model/DescribePredictDatasResult.h + include/alibabacloud/ivision/model/CreateTrainDatasFromUrlsRequest.h + include/alibabacloud/ivision/model/CreateTrainDatasFromUrlsResult.h + include/alibabacloud/ivision/model/DeletePredictDatasRequest.h + include/alibabacloud/ivision/model/DeletePredictDatasResult.h + include/alibabacloud/ivision/model/DescribeTrainDatasRequest.h + include/alibabacloud/ivision/model/DescribeTrainDatasResult.h + include/alibabacloud/ivision/model/CreateUploadTokenRequest.h + include/alibabacloud/ivision/model/CreateUploadTokenResult.h + include/alibabacloud/ivision/model/PredictImageRequest.h + include/alibabacloud/ivision/model/PredictImageResult.h ) + +set(ivision_src + src/IvisionClient.cc + src/model/TrainProjectRequest.cc + src/model/TrainProjectResult.cc + src/model/CreateTagRequest.cc + src/model/CreateTagResult.cc + src/model/DescribeTrainResultRequest.cc + src/model/DescribeTrainResultResult.cc + src/model/StartStreamPredictRequest.cc + src/model/StartStreamPredictResult.cc + src/model/CreateProjectRequest.cc + src/model/CreateProjectResult.cc + src/model/DescribeIterationsRequest.cc + src/model/DescribeIterationsResult.cc + src/model/DescribeTrainDatasByIdsRequest.cc + src/model/DescribeTrainDatasByIdsResult.cc + src/model/CreateTrainDataRegionTagRequest.cc + src/model/CreateTrainDataRegionTagResult.cc + src/model/CreateTrainDatasFromPredictionRequest.cc + src/model/CreateTrainDatasFromPredictionResult.cc + src/model/ModifyTagAttributeRequest.cc + src/model/ModifyTagAttributeResult.cc + src/model/CreateTrainDataTagRequest.cc + src/model/CreateTrainDataTagResult.cc + src/model/StopStreamPredictRequest.cc + src/model/StopStreamPredictResult.cc + src/model/DeleteTagRequest.cc + src/model/DeleteTagResult.cc + src/model/DescribeStreamPredictsRequest.cc + src/model/DescribeStreamPredictsResult.cc + src/model/ModifyTrainDataTagAttributeRequest.cc + src/model/ModifyTrainDataTagAttributeResult.cc + src/model/ModifyTrainDataRegionTagAttributeRequest.cc + src/model/ModifyTrainDataRegionTagAttributeResult.cc + src/model/DescribeTagsRequest.cc + src/model/DescribeTagsResult.cc + src/model/DescribeStreamPredictResultRequest.cc + src/model/DescribeStreamPredictResultResult.cc + src/model/CreateTrainDatasTagRequest.cc + src/model/CreateTrainDatasTagResult.cc + src/model/DeleteIterationRequest.cc + src/model/DeleteIterationResult.cc + src/model/DeleteTrainDatasTagRequest.cc + src/model/DeleteTrainDatasTagResult.cc + src/model/CreateStreamPredictRequest.cc + src/model/CreateStreamPredictResult.cc + src/model/DeleteStreamPredictRequest.cc + src/model/DeleteStreamPredictResult.cc + src/model/ModifyProjectAttributeRequest.cc + src/model/ModifyProjectAttributeResult.cc + src/model/DeleteTrainDatasRequest.cc + src/model/DeleteTrainDatasResult.cc + src/model/DescribeProjectsRequest.cc + src/model/DescribeProjectsResult.cc + src/model/DeleteProjectRequest.cc + src/model/DeleteProjectResult.cc + src/model/DescribePredictDatasRequest.cc + src/model/DescribePredictDatasResult.cc + src/model/CreateTrainDatasFromUrlsRequest.cc + src/model/CreateTrainDatasFromUrlsResult.cc + src/model/DeletePredictDatasRequest.cc + src/model/DeletePredictDatasResult.cc + src/model/DescribeTrainDatasRequest.cc + src/model/DescribeTrainDatasResult.cc + src/model/CreateUploadTokenRequest.cc + src/model/CreateUploadTokenResult.cc + src/model/PredictImageRequest.cc + src/model/PredictImageResult.cc ) + +add_library(ivision ${LIB_TYPE} + ${ivision_public_header} + ${ivision_public_header_model} + ${ivision_src}) + +set_target_properties(ivision + PROPERTIES + LINKER_LANGUAGE CXX + ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin + OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}ivision + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(ivision + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_IVISION_LIBRARY) +endif() + +target_include_directories(ivision + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(ivision + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(ivision + jsoncpp) + target_include_directories(ivision + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(ivision + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(ivision + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(ivision + PRIVATE /usr/include/jsoncpp) + target_link_libraries(ivision + jsoncpp) +endif() + +install(FILES ${ivision_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/ivision) +install(FILES ${ivision_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/ivision/model) +install(TARGETS ivision + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/IvisionClient.h b/ivision/include/alibabacloud/ivision/IvisionClient.h new file mode 100644 index 000000000..d88e5f0fb --- /dev/null +++ b/ivision/include/alibabacloud/ivision/IvisionClient.h @@ -0,0 +1,310 @@ +/* + * 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_IVISIONCLIENT_H_ +#define ALIBABACLOUD_IVISION_IVISIONCLIENT_H_ + +#include +#include +#include +#include +#include "IvisionExport.h" +#include "model/TrainProjectRequest.h" +#include "model/TrainProjectResult.h" +#include "model/CreateTagRequest.h" +#include "model/CreateTagResult.h" +#include "model/DescribeTrainResultRequest.h" +#include "model/DescribeTrainResultResult.h" +#include "model/StartStreamPredictRequest.h" +#include "model/StartStreamPredictResult.h" +#include "model/CreateProjectRequest.h" +#include "model/CreateProjectResult.h" +#include "model/DescribeIterationsRequest.h" +#include "model/DescribeIterationsResult.h" +#include "model/DescribeTrainDatasByIdsRequest.h" +#include "model/DescribeTrainDatasByIdsResult.h" +#include "model/CreateTrainDataRegionTagRequest.h" +#include "model/CreateTrainDataRegionTagResult.h" +#include "model/CreateTrainDatasFromPredictionRequest.h" +#include "model/CreateTrainDatasFromPredictionResult.h" +#include "model/ModifyTagAttributeRequest.h" +#include "model/ModifyTagAttributeResult.h" +#include "model/CreateTrainDataTagRequest.h" +#include "model/CreateTrainDataTagResult.h" +#include "model/StopStreamPredictRequest.h" +#include "model/StopStreamPredictResult.h" +#include "model/DeleteTagRequest.h" +#include "model/DeleteTagResult.h" +#include "model/DescribeStreamPredictsRequest.h" +#include "model/DescribeStreamPredictsResult.h" +#include "model/ModifyTrainDataTagAttributeRequest.h" +#include "model/ModifyTrainDataTagAttributeResult.h" +#include "model/ModifyTrainDataRegionTagAttributeRequest.h" +#include "model/ModifyTrainDataRegionTagAttributeResult.h" +#include "model/DescribeTagsRequest.h" +#include "model/DescribeTagsResult.h" +#include "model/DescribeStreamPredictResultRequest.h" +#include "model/DescribeStreamPredictResultResult.h" +#include "model/CreateTrainDatasTagRequest.h" +#include "model/CreateTrainDatasTagResult.h" +#include "model/DeleteIterationRequest.h" +#include "model/DeleteIterationResult.h" +#include "model/DeleteTrainDatasTagRequest.h" +#include "model/DeleteTrainDatasTagResult.h" +#include "model/CreateStreamPredictRequest.h" +#include "model/CreateStreamPredictResult.h" +#include "model/DeleteStreamPredictRequest.h" +#include "model/DeleteStreamPredictResult.h" +#include "model/ModifyProjectAttributeRequest.h" +#include "model/ModifyProjectAttributeResult.h" +#include "model/DeleteTrainDatasRequest.h" +#include "model/DeleteTrainDatasResult.h" +#include "model/DescribeProjectsRequest.h" +#include "model/DescribeProjectsResult.h" +#include "model/DeleteProjectRequest.h" +#include "model/DeleteProjectResult.h" +#include "model/DescribePredictDatasRequest.h" +#include "model/DescribePredictDatasResult.h" +#include "model/CreateTrainDatasFromUrlsRequest.h" +#include "model/CreateTrainDatasFromUrlsResult.h" +#include "model/DeletePredictDatasRequest.h" +#include "model/DeletePredictDatasResult.h" +#include "model/DescribeTrainDatasRequest.h" +#include "model/DescribeTrainDatasResult.h" +#include "model/CreateUploadTokenRequest.h" +#include "model/CreateUploadTokenResult.h" +#include "model/PredictImageRequest.h" +#include "model/PredictImageResult.h" + + +namespace AlibabaCloud +{ + namespace Ivision + { + class ALIBABACLOUD_IVISION_EXPORT IvisionClient : public RpcServiceClient + { + public: + typedef Outcome TrainProjectOutcome; + typedef std::future TrainProjectOutcomeCallable; + typedef std::function&)> TrainProjectAsyncHandler; + typedef Outcome CreateTagOutcome; + typedef std::future CreateTagOutcomeCallable; + typedef std::function&)> CreateTagAsyncHandler; + typedef Outcome DescribeTrainResultOutcome; + typedef std::future DescribeTrainResultOutcomeCallable; + typedef std::function&)> DescribeTrainResultAsyncHandler; + typedef Outcome StartStreamPredictOutcome; + typedef std::future StartStreamPredictOutcomeCallable; + typedef std::function&)> StartStreamPredictAsyncHandler; + typedef Outcome CreateProjectOutcome; + typedef std::future CreateProjectOutcomeCallable; + typedef std::function&)> CreateProjectAsyncHandler; + typedef Outcome DescribeIterationsOutcome; + typedef std::future DescribeIterationsOutcomeCallable; + typedef std::function&)> DescribeIterationsAsyncHandler; + typedef Outcome DescribeTrainDatasByIdsOutcome; + typedef std::future DescribeTrainDatasByIdsOutcomeCallable; + typedef std::function&)> DescribeTrainDatasByIdsAsyncHandler; + typedef Outcome CreateTrainDataRegionTagOutcome; + typedef std::future CreateTrainDataRegionTagOutcomeCallable; + typedef std::function&)> CreateTrainDataRegionTagAsyncHandler; + typedef Outcome CreateTrainDatasFromPredictionOutcome; + typedef std::future CreateTrainDatasFromPredictionOutcomeCallable; + typedef std::function&)> CreateTrainDatasFromPredictionAsyncHandler; + typedef Outcome ModifyTagAttributeOutcome; + typedef std::future ModifyTagAttributeOutcomeCallable; + typedef std::function&)> ModifyTagAttributeAsyncHandler; + typedef Outcome CreateTrainDataTagOutcome; + typedef std::future CreateTrainDataTagOutcomeCallable; + typedef std::function&)> CreateTrainDataTagAsyncHandler; + typedef Outcome StopStreamPredictOutcome; + typedef std::future StopStreamPredictOutcomeCallable; + typedef std::function&)> StopStreamPredictAsyncHandler; + typedef Outcome DeleteTagOutcome; + typedef std::future DeleteTagOutcomeCallable; + typedef std::function&)> DeleteTagAsyncHandler; + typedef Outcome DescribeStreamPredictsOutcome; + typedef std::future DescribeStreamPredictsOutcomeCallable; + typedef std::function&)> DescribeStreamPredictsAsyncHandler; + typedef Outcome ModifyTrainDataTagAttributeOutcome; + typedef std::future ModifyTrainDataTagAttributeOutcomeCallable; + typedef std::function&)> ModifyTrainDataTagAttributeAsyncHandler; + typedef Outcome ModifyTrainDataRegionTagAttributeOutcome; + typedef std::future ModifyTrainDataRegionTagAttributeOutcomeCallable; + typedef std::function&)> ModifyTrainDataRegionTagAttributeAsyncHandler; + typedef Outcome DescribeTagsOutcome; + typedef std::future DescribeTagsOutcomeCallable; + typedef std::function&)> DescribeTagsAsyncHandler; + typedef Outcome DescribeStreamPredictResultOutcome; + typedef std::future DescribeStreamPredictResultOutcomeCallable; + typedef std::function&)> DescribeStreamPredictResultAsyncHandler; + typedef Outcome CreateTrainDatasTagOutcome; + typedef std::future CreateTrainDatasTagOutcomeCallable; + typedef std::function&)> CreateTrainDatasTagAsyncHandler; + typedef Outcome DeleteIterationOutcome; + typedef std::future DeleteIterationOutcomeCallable; + typedef std::function&)> DeleteIterationAsyncHandler; + typedef Outcome DeleteTrainDatasTagOutcome; + typedef std::future DeleteTrainDatasTagOutcomeCallable; + typedef std::function&)> DeleteTrainDatasTagAsyncHandler; + typedef Outcome CreateStreamPredictOutcome; + typedef std::future CreateStreamPredictOutcomeCallable; + typedef std::function&)> CreateStreamPredictAsyncHandler; + typedef Outcome DeleteStreamPredictOutcome; + typedef std::future DeleteStreamPredictOutcomeCallable; + typedef std::function&)> DeleteStreamPredictAsyncHandler; + typedef Outcome ModifyProjectAttributeOutcome; + typedef std::future ModifyProjectAttributeOutcomeCallable; + typedef std::function&)> ModifyProjectAttributeAsyncHandler; + typedef Outcome DeleteTrainDatasOutcome; + typedef std::future DeleteTrainDatasOutcomeCallable; + typedef std::function&)> DeleteTrainDatasAsyncHandler; + typedef Outcome DescribeProjectsOutcome; + typedef std::future DescribeProjectsOutcomeCallable; + typedef std::function&)> DescribeProjectsAsyncHandler; + typedef Outcome DeleteProjectOutcome; + typedef std::future DeleteProjectOutcomeCallable; + typedef std::function&)> DeleteProjectAsyncHandler; + typedef Outcome DescribePredictDatasOutcome; + typedef std::future DescribePredictDatasOutcomeCallable; + typedef std::function&)> DescribePredictDatasAsyncHandler; + typedef Outcome CreateTrainDatasFromUrlsOutcome; + typedef std::future CreateTrainDatasFromUrlsOutcomeCallable; + typedef std::function&)> CreateTrainDatasFromUrlsAsyncHandler; + typedef Outcome DeletePredictDatasOutcome; + typedef std::future DeletePredictDatasOutcomeCallable; + typedef std::function&)> DeletePredictDatasAsyncHandler; + typedef Outcome DescribeTrainDatasOutcome; + typedef std::future DescribeTrainDatasOutcomeCallable; + typedef std::function&)> DescribeTrainDatasAsyncHandler; + typedef Outcome CreateUploadTokenOutcome; + typedef std::future CreateUploadTokenOutcomeCallable; + typedef std::function&)> CreateUploadTokenAsyncHandler; + typedef Outcome PredictImageOutcome; + typedef std::future PredictImageOutcomeCallable; + typedef std::function&)> PredictImageAsyncHandler; + + IvisionClient(const Credentials &credentials, const ClientConfiguration &configuration); + IvisionClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + IvisionClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~IvisionClient(); + TrainProjectOutcome trainProject(const Model::TrainProjectRequest &request)const; + void trainProjectAsync(const Model::TrainProjectRequest& request, const TrainProjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TrainProjectOutcomeCallable trainProjectCallable(const Model::TrainProjectRequest& request) const; + CreateTagOutcome createTag(const Model::CreateTagRequest &request)const; + void createTagAsync(const Model::CreateTagRequest& request, const CreateTagAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateTagOutcomeCallable createTagCallable(const Model::CreateTagRequest& request) const; + DescribeTrainResultOutcome describeTrainResult(const Model::DescribeTrainResultRequest &request)const; + void describeTrainResultAsync(const Model::DescribeTrainResultRequest& request, const DescribeTrainResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeTrainResultOutcomeCallable describeTrainResultCallable(const Model::DescribeTrainResultRequest& 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; + CreateProjectOutcome createProject(const Model::CreateProjectRequest &request)const; + void createProjectAsync(const Model::CreateProjectRequest& request, const CreateProjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateProjectOutcomeCallable createProjectCallable(const Model::CreateProjectRequest& request) const; + DescribeIterationsOutcome describeIterations(const Model::DescribeIterationsRequest &request)const; + void describeIterationsAsync(const Model::DescribeIterationsRequest& request, const DescribeIterationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeIterationsOutcomeCallable describeIterationsCallable(const Model::DescribeIterationsRequest& request) const; + DescribeTrainDatasByIdsOutcome describeTrainDatasByIds(const Model::DescribeTrainDatasByIdsRequest &request)const; + void describeTrainDatasByIdsAsync(const Model::DescribeTrainDatasByIdsRequest& request, const DescribeTrainDatasByIdsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeTrainDatasByIdsOutcomeCallable describeTrainDatasByIdsCallable(const Model::DescribeTrainDatasByIdsRequest& request) const; + CreateTrainDataRegionTagOutcome createTrainDataRegionTag(const Model::CreateTrainDataRegionTagRequest &request)const; + void createTrainDataRegionTagAsync(const Model::CreateTrainDataRegionTagRequest& request, const CreateTrainDataRegionTagAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateTrainDataRegionTagOutcomeCallable createTrainDataRegionTagCallable(const Model::CreateTrainDataRegionTagRequest& request) const; + CreateTrainDatasFromPredictionOutcome createTrainDatasFromPrediction(const Model::CreateTrainDatasFromPredictionRequest &request)const; + void createTrainDatasFromPredictionAsync(const Model::CreateTrainDatasFromPredictionRequest& request, const CreateTrainDatasFromPredictionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateTrainDatasFromPredictionOutcomeCallable createTrainDatasFromPredictionCallable(const Model::CreateTrainDatasFromPredictionRequest& request) const; + ModifyTagAttributeOutcome modifyTagAttribute(const Model::ModifyTagAttributeRequest &request)const; + void modifyTagAttributeAsync(const Model::ModifyTagAttributeRequest& request, const ModifyTagAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyTagAttributeOutcomeCallable modifyTagAttributeCallable(const Model::ModifyTagAttributeRequest& request) const; + CreateTrainDataTagOutcome createTrainDataTag(const Model::CreateTrainDataTagRequest &request)const; + void createTrainDataTagAsync(const Model::CreateTrainDataTagRequest& request, const CreateTrainDataTagAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateTrainDataTagOutcomeCallable createTrainDataTagCallable(const Model::CreateTrainDataTagRequest& 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; + DeleteTagOutcome deleteTag(const Model::DeleteTagRequest &request)const; + void deleteTagAsync(const Model::DeleteTagRequest& request, const DeleteTagAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteTagOutcomeCallable deleteTagCallable(const Model::DeleteTagRequest& 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; + ModifyTrainDataTagAttributeOutcome modifyTrainDataTagAttribute(const Model::ModifyTrainDataTagAttributeRequest &request)const; + void modifyTrainDataTagAttributeAsync(const Model::ModifyTrainDataTagAttributeRequest& request, const ModifyTrainDataTagAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyTrainDataTagAttributeOutcomeCallable modifyTrainDataTagAttributeCallable(const Model::ModifyTrainDataTagAttributeRequest& request) const; + ModifyTrainDataRegionTagAttributeOutcome modifyTrainDataRegionTagAttribute(const Model::ModifyTrainDataRegionTagAttributeRequest &request)const; + void modifyTrainDataRegionTagAttributeAsync(const Model::ModifyTrainDataRegionTagAttributeRequest& request, const ModifyTrainDataRegionTagAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyTrainDataRegionTagAttributeOutcomeCallable modifyTrainDataRegionTagAttributeCallable(const Model::ModifyTrainDataRegionTagAttributeRequest& request) const; + DescribeTagsOutcome describeTags(const Model::DescribeTagsRequest &request)const; + void describeTagsAsync(const Model::DescribeTagsRequest& request, const DescribeTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeTagsOutcomeCallable describeTagsCallable(const Model::DescribeTagsRequest& 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; + CreateTrainDatasTagOutcome createTrainDatasTag(const Model::CreateTrainDatasTagRequest &request)const; + void createTrainDatasTagAsync(const Model::CreateTrainDatasTagRequest& request, const CreateTrainDatasTagAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateTrainDatasTagOutcomeCallable createTrainDatasTagCallable(const Model::CreateTrainDatasTagRequest& request) const; + DeleteIterationOutcome deleteIteration(const Model::DeleteIterationRequest &request)const; + void deleteIterationAsync(const Model::DeleteIterationRequest& request, const DeleteIterationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteIterationOutcomeCallable deleteIterationCallable(const Model::DeleteIterationRequest& request) const; + DeleteTrainDatasTagOutcome deleteTrainDatasTag(const Model::DeleteTrainDatasTagRequest &request)const; + void deleteTrainDatasTagAsync(const Model::DeleteTrainDatasTagRequest& request, const DeleteTrainDatasTagAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteTrainDatasTagOutcomeCallable deleteTrainDatasTagCallable(const Model::DeleteTrainDatasTagRequest& 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; + 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; + ModifyProjectAttributeOutcome modifyProjectAttribute(const Model::ModifyProjectAttributeRequest &request)const; + void modifyProjectAttributeAsync(const Model::ModifyProjectAttributeRequest& request, const ModifyProjectAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyProjectAttributeOutcomeCallable modifyProjectAttributeCallable(const Model::ModifyProjectAttributeRequest& request) const; + DeleteTrainDatasOutcome deleteTrainDatas(const Model::DeleteTrainDatasRequest &request)const; + void deleteTrainDatasAsync(const Model::DeleteTrainDatasRequest& request, const DeleteTrainDatasAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteTrainDatasOutcomeCallable deleteTrainDatasCallable(const Model::DeleteTrainDatasRequest& request) const; + DescribeProjectsOutcome describeProjects(const Model::DescribeProjectsRequest &request)const; + void describeProjectsAsync(const Model::DescribeProjectsRequest& request, const DescribeProjectsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeProjectsOutcomeCallable describeProjectsCallable(const Model::DescribeProjectsRequest& request) const; + DeleteProjectOutcome deleteProject(const Model::DeleteProjectRequest &request)const; + void deleteProjectAsync(const Model::DeleteProjectRequest& request, const DeleteProjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteProjectOutcomeCallable deleteProjectCallable(const Model::DeleteProjectRequest& request) const; + DescribePredictDatasOutcome describePredictDatas(const Model::DescribePredictDatasRequest &request)const; + void describePredictDatasAsync(const Model::DescribePredictDatasRequest& request, const DescribePredictDatasAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribePredictDatasOutcomeCallable describePredictDatasCallable(const Model::DescribePredictDatasRequest& request) const; + CreateTrainDatasFromUrlsOutcome createTrainDatasFromUrls(const Model::CreateTrainDatasFromUrlsRequest &request)const; + void createTrainDatasFromUrlsAsync(const Model::CreateTrainDatasFromUrlsRequest& request, const CreateTrainDatasFromUrlsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateTrainDatasFromUrlsOutcomeCallable createTrainDatasFromUrlsCallable(const Model::CreateTrainDatasFromUrlsRequest& request) const; + DeletePredictDatasOutcome deletePredictDatas(const Model::DeletePredictDatasRequest &request)const; + void deletePredictDatasAsync(const Model::DeletePredictDatasRequest& request, const DeletePredictDatasAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeletePredictDatasOutcomeCallable deletePredictDatasCallable(const Model::DeletePredictDatasRequest& request) const; + DescribeTrainDatasOutcome describeTrainDatas(const Model::DescribeTrainDatasRequest &request)const; + void describeTrainDatasAsync(const Model::DescribeTrainDatasRequest& request, const DescribeTrainDatasAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeTrainDatasOutcomeCallable describeTrainDatasCallable(const Model::DescribeTrainDatasRequest& request) const; + CreateUploadTokenOutcome createUploadToken(const Model::CreateUploadTokenRequest &request)const; + void createUploadTokenAsync(const Model::CreateUploadTokenRequest& request, const CreateUploadTokenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateUploadTokenOutcomeCallable createUploadTokenCallable(const Model::CreateUploadTokenRequest& request) const; + PredictImageOutcome predictImage(const Model::PredictImageRequest &request)const; + void predictImageAsync(const Model::PredictImageRequest& request, const PredictImageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PredictImageOutcomeCallable predictImageCallable(const Model::PredictImageRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_IVISION_IVISIONCLIENT_H_ diff --git a/ivision/include/alibabacloud/ivision/IvisionExport.h b/ivision/include/alibabacloud/ivision/IvisionExport.h new file mode 100644 index 000000000..797854850 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/IvisionExport.h @@ -0,0 +1,32 @@ +/* + * 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_IVISIONEXPORT_H_ +#define ALIBABACLOUD_IVISION_IVISIONEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_IVISION_LIBRARY) +# define ALIBABACLOUD_IVISION_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_IVISION_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_IVISION_EXPORT +#endif + +#endif // !ALIBABACLOUD_IVISION_IVISIONEXPORT_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/CreateProjectRequest.h b/ivision/include/alibabacloud/ivision/model/CreateProjectRequest.h new file mode 100644 index 000000000..62fc04451 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/CreateProjectRequest.h @@ -0,0 +1,123 @@ +/* + * 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_CREATEPROJECTREQUEST_H_ +#define ALIBABACLOUD_IVISION_MODEL_CREATEPROJECTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT CreateProjectRequest : public RpcServiceRequest + { + + public: + CreateProjectRequest(); + ~CreateProjectRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getProType()const; + void setProType(const std::string& proType); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getName()const; + void setName(const std::string& name); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string description_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string showLog_; + std::string app_ip_; + std::string popProduct_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string proType_; + std::string requestId_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_CREATEPROJECTREQUEST_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/CreateProjectResult.h b/ivision/include/alibabacloud/ivision/model/CreateProjectResult.h new file mode 100644 index 000000000..541bf7a12 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/CreateProjectResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IVISION_MODEL_CREATEPROJECTRESULT_H_ +#define ALIBABACLOUD_IVISION_MODEL_CREATEPROJECTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT CreateProjectResult : public ServiceResult + { + public: + struct Project + { + std::string status; + std::string description; + std::string projectId; + std::string proType; + std::string creationTime; + int iterCount; + std::string name; + }; + + + CreateProjectResult(); + explicit CreateProjectResult(const std::string &payload); + ~CreateProjectResult(); + Project getProject()const; + + protected: + void parse(const std::string &payload); + private: + Project project_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_CREATEPROJECTRESULT_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/CreateStreamPredictRequest.h b/ivision/include/alibabacloud/ivision/model/CreateStreamPredictRequest.h new file mode 100644 index 000000000..8753b1aaf --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/CreateStreamPredictRequest.h @@ -0,0 +1,138 @@ +/* + * 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_CREATESTREAMPREDICTREQUEST_H_ +#define ALIBABACLOUD_IVISION_MODEL_CREATESTREAMPREDICTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT CreateStreamPredictRequest : public RpcServiceRequest + { + + public: + CreateStreamPredictRequest(); + ~CreateStreamPredictRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getAutoStart()const; + void setAutoStart(const std::string& autoStart); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getNotify()const; + void setNotify(const std::string& notify); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getOutput()const; + void setOutput(const std::string& output); + std::string getUserData()const; + void setUserData(const std::string& userData); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getStreamType()const; + void setStreamType(const std::string& streamType); + std::string getStreamId()const; + void setStreamId(const std::string& streamId); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getProbabilityThresholds()const; + void setProbabilityThresholds(const std::string& probabilityThresholds); + std::string getModelIds()const; + void setModelIds(const std::string& modelIds); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string autoStart_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string notify_; + std::string accessKeyId_; + std::string output_; + std::string userData_; + std::string securityToken_; + std::string regionId_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string showLog_; + std::string app_ip_; + std::string popProduct_; + std::string streamType_; + std::string streamId_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string probabilityThresholds_; + std::string modelIds_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_CREATESTREAMPREDICTREQUEST_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/CreateStreamPredictResult.h b/ivision/include/alibabacloud/ivision/model/CreateStreamPredictResult.h new file mode 100644 index 000000000..aabc86506 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/CreateStreamPredictResult.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_CREATESTREAMPREDICTRESULT_H_ +#define ALIBABACLOUD_IVISION_MODEL_CREATESTREAMPREDICTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT CreateStreamPredictResult : public ServiceResult + { + public: + + + CreateStreamPredictResult(); + explicit CreateStreamPredictResult(const std::string &payload); + ~CreateStreamPredictResult(); + std::string getPredictId()const; + + protected: + void parse(const std::string &payload); + private: + std::string predictId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_CREATESTREAMPREDICTRESULT_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/CreateTagRequest.h b/ivision/include/alibabacloud/ivision/model/CreateTagRequest.h new file mode 100644 index 000000000..cf252c167 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/CreateTagRequest.h @@ -0,0 +1,123 @@ +/* + * 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_CREATETAGREQUEST_H_ +#define ALIBABACLOUD_IVISION_MODEL_CREATETAGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT CreateTagRequest : public RpcServiceRequest + { + + public: + CreateTagRequest(); + ~CreateTagRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getProjectId()const; + void setProjectId(const std::string& projectId); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getName()const; + void setName(const std::string& name); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string description_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + std::string requestContent_; + std::string callerBidEmail_; + std::string projectId_; + std::string callerUidEmail_; + long callerUid_; + std::string showLog_; + std::string app_ip_; + std::string popProduct_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_CREATETAGREQUEST_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/CreateTagResult.h b/ivision/include/alibabacloud/ivision/model/CreateTagResult.h new file mode 100644 index 000000000..93dac4869 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/CreateTagResult.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IVISION_MODEL_CREATETAGRESULT_H_ +#define ALIBABACLOUD_IVISION_MODEL_CREATETAGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT CreateTagResult : public ServiceResult + { + public: + struct Tag + { + std::string description; + std::string tagName; + std::string projectId; + std::string tagId; + std::string creationTime; + int count; + }; + + + CreateTagResult(); + explicit CreateTagResult(const std::string &payload); + ~CreateTagResult(); + Tag getTag()const; + + protected: + void parse(const std::string &payload); + private: + Tag tag_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_CREATETAGRESULT_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/CreateTrainDataRegionTagRequest.h b/ivision/include/alibabacloud/ivision/model/CreateTrainDataRegionTagRequest.h new file mode 100644 index 000000000..64910c29b --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/CreateTrainDataRegionTagRequest.h @@ -0,0 +1,123 @@ +/* + * 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_CREATETRAINDATAREGIONTAGREQUEST_H_ +#define ALIBABACLOUD_IVISION_MODEL_CREATETRAINDATAREGIONTAGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT CreateTrainDataRegionTagRequest : public RpcServiceRequest + { + + public: + CreateTrainDataRegionTagRequest(); + ~CreateTrainDataRegionTagRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getProjectId()const; + void setProjectId(const std::string& projectId); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getTagItems()const; + void setTagItems(const std::string& tagItems); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getDataId()const; + void setDataId(const std::string& dataId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + std::string requestContent_; + std::string callerBidEmail_; + std::string projectId_; + std::string callerUidEmail_; + long callerUid_; + std::string showLog_; + std::string app_ip_; + std::string popProduct_; + std::string tagItems_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string dataId_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_CREATETRAINDATAREGIONTAGREQUEST_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/CreateTrainDataRegionTagResult.h b/ivision/include/alibabacloud/ivision/model/CreateTrainDataRegionTagResult.h new file mode 100644 index 000000000..b2ae64bba --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/CreateTrainDataRegionTagResult.h @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IVISION_MODEL_CREATETRAINDATAREGIONTAGRESULT_H_ +#define ALIBABACLOUD_IVISION_MODEL_CREATETRAINDATAREGIONTAGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT CreateTrainDataRegionTagResult : public ServiceResult + { + public: + struct TrainData + { + struct TagItem + { + struct Region + { + std::string left; + std::string top; + std::string height; + std::string width; + }; + std::string regionType; + std::string tagId; + Region region; + }; + std::string status; + std::string dataId; + std::string iterationId; + std::string tagStatus; + std::string projectId; + std::string dataUrl; + std::string creationTime; + std::vector tagItems; + std::string dataName; + }; + + + CreateTrainDataRegionTagResult(); + explicit CreateTrainDataRegionTagResult(const std::string &payload); + ~CreateTrainDataRegionTagResult(); + TrainData getTrainData()const; + + protected: + void parse(const std::string &payload); + private: + TrainData trainData_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_CREATETRAINDATAREGIONTAGRESULT_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/CreateTrainDataTagRequest.h b/ivision/include/alibabacloud/ivision/model/CreateTrainDataTagRequest.h new file mode 100644 index 000000000..4f005b2a2 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/CreateTrainDataTagRequest.h @@ -0,0 +1,123 @@ +/* + * 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_CREATETRAINDATATAGREQUEST_H_ +#define ALIBABACLOUD_IVISION_MODEL_CREATETRAINDATATAGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT CreateTrainDataTagRequest : public RpcServiceRequest + { + + public: + CreateTrainDataTagRequest(); + ~CreateTrainDataTagRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getProjectId()const; + void setProjectId(const std::string& projectId); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getTagItems()const; + void setTagItems(const std::string& tagItems); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getDataId()const; + void setDataId(const std::string& dataId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + std::string requestContent_; + std::string callerBidEmail_; + std::string projectId_; + std::string callerUidEmail_; + long callerUid_; + std::string showLog_; + std::string app_ip_; + std::string popProduct_; + std::string tagItems_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string dataId_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_CREATETRAINDATATAGREQUEST_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/CreateTrainDataTagResult.h b/ivision/include/alibabacloud/ivision/model/CreateTrainDataTagResult.h new file mode 100644 index 000000000..79f2549fc --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/CreateTrainDataTagResult.h @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IVISION_MODEL_CREATETRAINDATATAGRESULT_H_ +#define ALIBABACLOUD_IVISION_MODEL_CREATETRAINDATATAGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT CreateTrainDataTagResult : public ServiceResult + { + public: + struct TrainData + { + struct TagItem + { + struct Region + { + std::string left; + std::string top; + std::string height; + std::string width; + }; + std::string regionType; + std::string tagId; + Region region; + }; + std::string status; + std::string dataId; + std::string iterationId; + std::string tagStatus; + std::string projectId; + std::string dataUrl; + std::string creationTime; + std::vector tagItems; + std::string dataName; + }; + + + CreateTrainDataTagResult(); + explicit CreateTrainDataTagResult(const std::string &payload); + ~CreateTrainDataTagResult(); + TrainData getTrainData()const; + + protected: + void parse(const std::string &payload); + private: + TrainData trainData_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_CREATETRAINDATATAGRESULT_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/CreateTrainDatasFromPredictionRequest.h b/ivision/include/alibabacloud/ivision/model/CreateTrainDatasFromPredictionRequest.h new file mode 100644 index 000000000..57431fff6 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/CreateTrainDatasFromPredictionRequest.h @@ -0,0 +1,126 @@ +/* + * 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_CREATETRAINDATASFROMPREDICTIONREQUEST_H_ +#define ALIBABACLOUD_IVISION_MODEL_CREATETRAINDATASFROMPREDICTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT CreateTrainDatasFromPredictionRequest : public RpcServiceRequest + { + + public: + CreateTrainDatasFromPredictionRequest(); + ~CreateTrainDatasFromPredictionRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getDataIds()const; + void setDataIds(const std::string& dataIds); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getProjectId()const; + void setProjectId(const std::string& projectId); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getTagId()const; + void setTagId(const std::string& tagId); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getIterationId()const; + void setIterationId(const std::string& iterationId); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string dataIds_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + std::string requestContent_; + std::string callerBidEmail_; + std::string projectId_; + std::string callerUidEmail_; + long callerUid_; + std::string showLog_; + std::string app_ip_; + std::string popProduct_; + std::string tagId_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + std::string iterationId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_CREATETRAINDATASFROMPREDICTIONREQUEST_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/CreateTrainDatasFromPredictionResult.h b/ivision/include/alibabacloud/ivision/model/CreateTrainDatasFromPredictionResult.h new file mode 100644 index 000000000..b6b9d8d59 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/CreateTrainDatasFromPredictionResult.h @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IVISION_MODEL_CREATETRAINDATASFROMPREDICTIONRESULT_H_ +#define ALIBABACLOUD_IVISION_MODEL_CREATETRAINDATASFROMPREDICTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT CreateTrainDatasFromPredictionResult : public ServiceResult + { + public: + struct TrainData + { + struct TagItem + { + struct Region + { + std::string left; + std::string top; + std::string height; + std::string width; + }; + std::string regionType; + std::string tagId; + Region region; + }; + std::string status; + std::string dataId; + std::string iterationId; + std::string tagStatus; + std::string projectId; + std::string dataUrl; + std::string creationTime; + std::vector tagItems; + std::string dataName; + }; + + + CreateTrainDatasFromPredictionResult(); + explicit CreateTrainDatasFromPredictionResult(const std::string &payload); + ~CreateTrainDatasFromPredictionResult(); + std::vector getTrainDatas()const; + + protected: + void parse(const std::string &payload); + private: + std::vector trainDatas_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_CREATETRAINDATASFROMPREDICTIONRESULT_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/CreateTrainDatasFromUrlsRequest.h b/ivision/include/alibabacloud/ivision/model/CreateTrainDatasFromUrlsRequest.h new file mode 100644 index 000000000..0e31e3b68 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/CreateTrainDatasFromUrlsRequest.h @@ -0,0 +1,123 @@ +/* + * 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_CREATETRAINDATASFROMURLSREQUEST_H_ +#define ALIBABACLOUD_IVISION_MODEL_CREATETRAINDATASFROMURLSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT CreateTrainDatasFromUrlsRequest : public RpcServiceRequest + { + + public: + CreateTrainDatasFromUrlsRequest(); + ~CreateTrainDatasFromUrlsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getUrls()const; + void setUrls(const std::string& urls); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getProjectId()const; + void setProjectId(const std::string& projectId); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getTagId()const; + void setTagId(const std::string& tagId); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string urls_; + std::string securityToken_; + std::string regionId_; + std::string requestContent_; + std::string callerBidEmail_; + std::string projectId_; + std::string callerUidEmail_; + long callerUid_; + std::string showLog_; + std::string app_ip_; + std::string popProduct_; + std::string tagId_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_CREATETRAINDATASFROMURLSREQUEST_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/CreateTrainDatasFromUrlsResult.h b/ivision/include/alibabacloud/ivision/model/CreateTrainDatasFromUrlsResult.h new file mode 100644 index 000000000..fb55c0efb --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/CreateTrainDatasFromUrlsResult.h @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IVISION_MODEL_CREATETRAINDATASFROMURLSRESULT_H_ +#define ALIBABACLOUD_IVISION_MODEL_CREATETRAINDATASFROMURLSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT CreateTrainDatasFromUrlsResult : public ServiceResult + { + public: + struct TrainData + { + struct TagItem + { + struct Region + { + std::string left; + std::string top; + std::string height; + std::string width; + }; + std::string regionType; + std::string tagId; + Region region; + }; + std::string status; + std::string dataId; + std::string iterationId; + std::string tagStatus; + std::string projectId; + std::string dataUrl; + std::string creationTime; + std::vector tagItems; + std::string dataName; + }; + + + CreateTrainDatasFromUrlsResult(); + explicit CreateTrainDatasFromUrlsResult(const std::string &payload); + ~CreateTrainDatasFromUrlsResult(); + std::vector getTrainDatas()const; + + protected: + void parse(const std::string &payload); + private: + std::vector trainDatas_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_CREATETRAINDATASFROMURLSRESULT_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/CreateTrainDatasTagRequest.h b/ivision/include/alibabacloud/ivision/model/CreateTrainDatasTagRequest.h new file mode 100644 index 000000000..fba349229 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/CreateTrainDatasTagRequest.h @@ -0,0 +1,123 @@ +/* + * 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_CREATETRAINDATASTAGREQUEST_H_ +#define ALIBABACLOUD_IVISION_MODEL_CREATETRAINDATASTAGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT CreateTrainDatasTagRequest : public RpcServiceRequest + { + + public: + CreateTrainDatasTagRequest(); + ~CreateTrainDatasTagRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getDataIds()const; + void setDataIds(const std::string& dataIds); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getProjectId()const; + void setProjectId(const std::string& projectId); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getTagId()const; + void setTagId(const std::string& tagId); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string dataIds_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + std::string requestContent_; + std::string callerBidEmail_; + std::string projectId_; + std::string callerUidEmail_; + long callerUid_; + std::string showLog_; + std::string app_ip_; + std::string popProduct_; + std::string tagId_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_CREATETRAINDATASTAGREQUEST_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/CreateTrainDatasTagResult.h b/ivision/include/alibabacloud/ivision/model/CreateTrainDatasTagResult.h new file mode 100644 index 000000000..b8369c2ac --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/CreateTrainDatasTagResult.h @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IVISION_MODEL_CREATETRAINDATASTAGRESULT_H_ +#define ALIBABACLOUD_IVISION_MODEL_CREATETRAINDATASTAGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT CreateTrainDatasTagResult : public ServiceResult + { + public: + struct TrainData + { + struct TagItem + { + struct Region + { + std::string left; + std::string top; + std::string height; + std::string width; + }; + std::string regionType; + std::string tagId; + Region region; + }; + std::string status; + std::string dataId; + std::string iterationId; + std::string tagStatus; + std::string projectId; + std::string dataUrl; + std::string creationTime; + std::vector tagItems; + std::string dataName; + }; + + + CreateTrainDatasTagResult(); + explicit CreateTrainDatasTagResult(const std::string &payload); + ~CreateTrainDatasTagResult(); + TrainData getTrainData()const; + + protected: + void parse(const std::string &payload); + private: + TrainData trainData_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_CREATETRAINDATASTAGRESULT_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/CreateUploadTokenRequest.h b/ivision/include/alibabacloud/ivision/model/CreateUploadTokenRequest.h new file mode 100644 index 000000000..453ece8db --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/CreateUploadTokenRequest.h @@ -0,0 +1,120 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IVISION_MODEL_CREATEUPLOADTOKENREQUEST_H_ +#define ALIBABACLOUD_IVISION_MODEL_CREATEUPLOADTOKENREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT CreateUploadTokenRequest : public RpcServiceRequest + { + + public: + CreateUploadTokenRequest(); + ~CreateUploadTokenRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getProjectId()const; + void setProjectId(const std::string& projectId); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getFileName()const; + void setFileName(const std::string& fileName); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + std::string requestContent_; + std::string callerBidEmail_; + std::string projectId_; + std::string callerUidEmail_; + long callerUid_; + std::string showLog_; + std::string app_ip_; + std::string popProduct_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string fileName_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_CREATEUPLOADTOKENREQUEST_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/CreateUploadTokenResult.h b/ivision/include/alibabacloud/ivision/model/CreateUploadTokenResult.h new file mode 100644 index 000000000..3360ff600 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/CreateUploadTokenResult.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IVISION_MODEL_CREATEUPLOADTOKENRESULT_H_ +#define ALIBABACLOUD_IVISION_MODEL_CREATEUPLOADTOKENRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT CreateUploadTokenResult : public ServiceResult + { + public: + struct UploadToken + { + std::string securityToken; + std::string endpoint; + std::string bucket; + std::string accessKeyId; + std::string accessKeySecret; + std::string expiration; + std::string object; + std::string url; + }; + + + CreateUploadTokenResult(); + explicit CreateUploadTokenResult(const std::string &payload); + ~CreateUploadTokenResult(); + UploadToken getUploadToken()const; + + protected: + void parse(const std::string &payload); + private: + UploadToken uploadToken_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_CREATEUPLOADTOKENRESULT_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/DeleteIterationRequest.h b/ivision/include/alibabacloud/ivision/model/DeleteIterationRequest.h new file mode 100644 index 000000000..04305910e --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/DeleteIterationRequest.h @@ -0,0 +1,120 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IVISION_MODEL_DELETEITERATIONREQUEST_H_ +#define ALIBABACLOUD_IVISION_MODEL_DELETEITERATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT DeleteIterationRequest : public RpcServiceRequest + { + + public: + DeleteIterationRequest(); + ~DeleteIterationRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getProjectId()const; + void setProjectId(const std::string& projectId); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getIterationId()const; + void setIterationId(const std::string& iterationId); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + std::string requestContent_; + std::string callerBidEmail_; + std::string projectId_; + std::string callerUidEmail_; + long callerUid_; + std::string showLog_; + std::string app_ip_; + std::string popProduct_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + std::string iterationId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_DELETEITERATIONREQUEST_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/DeleteIterationResult.h b/ivision/include/alibabacloud/ivision/model/DeleteIterationResult.h new file mode 100644 index 000000000..4eaf6ad80 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/DeleteIterationResult.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_DELETEITERATIONRESULT_H_ +#define ALIBABACLOUD_IVISION_MODEL_DELETEITERATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT DeleteIterationResult : public ServiceResult + { + public: + + + DeleteIterationResult(); + explicit DeleteIterationResult(const std::string &payload); + ~DeleteIterationResult(); + std::string getIterationId()const; + + protected: + void parse(const std::string &payload); + private: + std::string iterationId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_DELETEITERATIONRESULT_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/DeletePredictDatasRequest.h b/ivision/include/alibabacloud/ivision/model/DeletePredictDatasRequest.h new file mode 100644 index 000000000..c0978084f --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/DeletePredictDatasRequest.h @@ -0,0 +1,123 @@ +/* + * 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_DELETEPREDICTDATASREQUEST_H_ +#define ALIBABACLOUD_IVISION_MODEL_DELETEPREDICTDATASREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT DeletePredictDatasRequest : public RpcServiceRequest + { + + public: + DeletePredictDatasRequest(); + ~DeletePredictDatasRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getDataIds()const; + void setDataIds(const std::string& dataIds); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getProjectId()const; + void setProjectId(const std::string& projectId); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getIterationId()const; + void setIterationId(const std::string& iterationId); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string dataIds_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + std::string requestContent_; + std::string callerBidEmail_; + std::string projectId_; + std::string callerUidEmail_; + long callerUid_; + std::string showLog_; + std::string app_ip_; + std::string popProduct_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + std::string iterationId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_DELETEPREDICTDATASREQUEST_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/DeletePredictDatasResult.h b/ivision/include/alibabacloud/ivision/model/DeletePredictDatasResult.h new file mode 100644 index 000000000..488f003d1 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/DeletePredictDatasResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IVISION_MODEL_DELETEPREDICTDATASRESULT_H_ +#define ALIBABACLOUD_IVISION_MODEL_DELETEPREDICTDATASRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT DeletePredictDatasResult : public ServiceResult + { + public: + + + DeletePredictDatasResult(); + explicit DeletePredictDatasResult(const std::string &payload); + ~DeletePredictDatasResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_DELETEPREDICTDATASRESULT_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/DeleteProjectRequest.h b/ivision/include/alibabacloud/ivision/model/DeleteProjectRequest.h new file mode 100644 index 000000000..631746664 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/DeleteProjectRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IVISION_MODEL_DELETEPROJECTREQUEST_H_ +#define ALIBABACLOUD_IVISION_MODEL_DELETEPROJECTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT DeleteProjectRequest : public RpcServiceRequest + { + + public: + DeleteProjectRequest(); + ~DeleteProjectRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getProjectId()const; + void setProjectId(const std::string& projectId); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + std::string requestContent_; + std::string callerBidEmail_; + std::string projectId_; + std::string callerUidEmail_; + long callerUid_; + std::string showLog_; + std::string app_ip_; + std::string popProduct_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_DELETEPROJECTREQUEST_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/DeleteProjectResult.h b/ivision/include/alibabacloud/ivision/model/DeleteProjectResult.h new file mode 100644 index 000000000..c4d88a077 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/DeleteProjectResult.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_DELETEPROJECTRESULT_H_ +#define ALIBABACLOUD_IVISION_MODEL_DELETEPROJECTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT DeleteProjectResult : public ServiceResult + { + public: + + + DeleteProjectResult(); + explicit DeleteProjectResult(const std::string &payload); + ~DeleteProjectResult(); + std::string getProjectId()const; + + protected: + void parse(const std::string &payload); + private: + std::string projectId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_DELETEPROJECTRESULT_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/DeleteStreamPredictRequest.h b/ivision/include/alibabacloud/ivision/model/DeleteStreamPredictRequest.h new file mode 100644 index 000000000..dc383d9b2 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/DeleteStreamPredictRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IVISION_MODEL_DELETESTREAMPREDICTREQUEST_H_ +#define ALIBABACLOUD_IVISION_MODEL_DELETESTREAMPREDICTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT DeleteStreamPredictRequest : public RpcServiceRequest + { + + public: + DeleteStreamPredictRequest(); + ~DeleteStreamPredictRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getPredictId()const; + void setPredictId(const std::string& predictId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string predictId_; + std::string securityToken_; + std::string regionId_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string showLog_; + std::string app_ip_; + std::string popProduct_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_DELETESTREAMPREDICTREQUEST_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/DeleteStreamPredictResult.h b/ivision/include/alibabacloud/ivision/model/DeleteStreamPredictResult.h new file mode 100644 index 000000000..5e5ed8754 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/DeleteStreamPredictResult.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_DELETESTREAMPREDICTRESULT_H_ +#define ALIBABACLOUD_IVISION_MODEL_DELETESTREAMPREDICTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT DeleteStreamPredictResult : public ServiceResult + { + public: + + + DeleteStreamPredictResult(); + explicit DeleteStreamPredictResult(const std::string &payload); + ~DeleteStreamPredictResult(); + std::string getPredictId()const; + + protected: + void parse(const std::string &payload); + private: + std::string predictId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_DELETESTREAMPREDICTRESULT_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/DeleteTagRequest.h b/ivision/include/alibabacloud/ivision/model/DeleteTagRequest.h new file mode 100644 index 000000000..f69b27ad4 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/DeleteTagRequest.h @@ -0,0 +1,120 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IVISION_MODEL_DELETETAGREQUEST_H_ +#define ALIBABACLOUD_IVISION_MODEL_DELETETAGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT DeleteTagRequest : public RpcServiceRequest + { + + public: + DeleteTagRequest(); + ~DeleteTagRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getProjectId()const; + void setProjectId(const std::string& projectId); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getTagId()const; + void setTagId(const std::string& tagId); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + std::string requestContent_; + std::string callerBidEmail_; + std::string projectId_; + std::string callerUidEmail_; + long callerUid_; + std::string showLog_; + std::string app_ip_; + std::string popProduct_; + std::string tagId_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_DELETETAGREQUEST_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/DeleteTagResult.h b/ivision/include/alibabacloud/ivision/model/DeleteTagResult.h new file mode 100644 index 000000000..1028c0070 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/DeleteTagResult.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_DELETETAGRESULT_H_ +#define ALIBABACLOUD_IVISION_MODEL_DELETETAGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT DeleteTagResult : public ServiceResult + { + public: + + + DeleteTagResult(); + explicit DeleteTagResult(const std::string &payload); + ~DeleteTagResult(); + std::string getTagId()const; + + protected: + void parse(const std::string &payload); + private: + std::string tagId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_DELETETAGRESULT_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/DeleteTrainDatasRequest.h b/ivision/include/alibabacloud/ivision/model/DeleteTrainDatasRequest.h new file mode 100644 index 000000000..982e0cb85 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/DeleteTrainDatasRequest.h @@ -0,0 +1,120 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IVISION_MODEL_DELETETRAINDATASREQUEST_H_ +#define ALIBABACLOUD_IVISION_MODEL_DELETETRAINDATASREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT DeleteTrainDatasRequest : public RpcServiceRequest + { + + public: + DeleteTrainDatasRequest(); + ~DeleteTrainDatasRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getDataIds()const; + void setDataIds(const std::string& dataIds); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getProjectId()const; + void setProjectId(const std::string& projectId); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string dataIds_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + std::string requestContent_; + std::string callerBidEmail_; + std::string projectId_; + std::string callerUidEmail_; + long callerUid_; + std::string showLog_; + std::string app_ip_; + std::string popProduct_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_DELETETRAINDATASREQUEST_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/DeleteTrainDatasResult.h b/ivision/include/alibabacloud/ivision/model/DeleteTrainDatasResult.h new file mode 100644 index 000000000..3e01d3fa3 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/DeleteTrainDatasResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IVISION_MODEL_DELETETRAINDATASRESULT_H_ +#define ALIBABACLOUD_IVISION_MODEL_DELETETRAINDATASRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT DeleteTrainDatasResult : public ServiceResult + { + public: + + + DeleteTrainDatasResult(); + explicit DeleteTrainDatasResult(const std::string &payload); + ~DeleteTrainDatasResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_DELETETRAINDATASRESULT_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/DeleteTrainDatasTagRequest.h b/ivision/include/alibabacloud/ivision/model/DeleteTrainDatasTagRequest.h new file mode 100644 index 000000000..1461e2506 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/DeleteTrainDatasTagRequest.h @@ -0,0 +1,123 @@ +/* + * 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_DELETETRAINDATASTAGREQUEST_H_ +#define ALIBABACLOUD_IVISION_MODEL_DELETETRAINDATASTAGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT DeleteTrainDatasTagRequest : public RpcServiceRequest + { + + public: + DeleteTrainDatasTagRequest(); + ~DeleteTrainDatasTagRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getDataIds()const; + void setDataIds(const std::string& dataIds); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getProjectId()const; + void setProjectId(const std::string& projectId); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getTagId()const; + void setTagId(const std::string& tagId); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string dataIds_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + std::string requestContent_; + std::string callerBidEmail_; + std::string projectId_; + std::string callerUidEmail_; + long callerUid_; + std::string showLog_; + std::string app_ip_; + std::string popProduct_; + std::string tagId_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_DELETETRAINDATASTAGREQUEST_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/DeleteTrainDatasTagResult.h b/ivision/include/alibabacloud/ivision/model/DeleteTrainDatasTagResult.h new file mode 100644 index 000000000..47f019871 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/DeleteTrainDatasTagResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IVISION_MODEL_DELETETRAINDATASTAGRESULT_H_ +#define ALIBABACLOUD_IVISION_MODEL_DELETETRAINDATASTAGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT DeleteTrainDatasTagResult : public ServiceResult + { + public: + + + DeleteTrainDatasTagResult(); + explicit DeleteTrainDatasTagResult(const std::string &payload); + ~DeleteTrainDatasTagResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_DELETETRAINDATASTAGRESULT_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/DescribeIterationsRequest.h b/ivision/include/alibabacloud/ivision/model/DescribeIterationsRequest.h new file mode 100644 index 000000000..ca15f5972 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/DescribeIterationsRequest.h @@ -0,0 +1,126 @@ +/* + * 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_DESCRIBEITERATIONSREQUEST_H_ +#define ALIBABACLOUD_IVISION_MODEL_DESCRIBEITERATIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT DescribeIterationsRequest : public RpcServiceRequest + { + + public: + DescribeIterationsRequest(); + ~DescribeIterationsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getThreshold()const; + void setThreshold(const std::string& threshold); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getProjectId()const; + void setProjectId(const std::string& projectId); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getIterationIds()const; + void setIterationIds(const std::string& iterationIds); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getStatus()const; + void setStatus(const std::string& status); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string threshold_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + std::string requestContent_; + std::string callerBidEmail_; + std::string projectId_; + std::string callerUidEmail_; + long callerUid_; + std::string showLog_; + std::string app_ip_; + std::string popProduct_; + std::string iterationIds_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_DESCRIBEITERATIONSREQUEST_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/DescribeIterationsResult.h b/ivision/include/alibabacloud/ivision/model/DescribeIterationsResult.h new file mode 100644 index 000000000..ae9919822 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/DescribeIterationsResult.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IVISION_MODEL_DESCRIBEITERATIONSRESULT_H_ +#define ALIBABACLOUD_IVISION_MODEL_DESCRIBEITERATIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT DescribeIterationsResult : public ServiceResult + { + public: + struct Iteration + { + std::string status; + std::string iterationName; + std::string finishTime; + std::string precision; + std::string iterationId; + std::string projectId; + std::string creationTime; + std::string recall; + std::string mAP; + std::string modelId; + }; + + + DescribeIterationsResult(); + explicit DescribeIterationsResult(const std::string &payload); + ~DescribeIterationsResult(); + long getTotalNum()const; + long getPageSize()const; + long getCurrentPage()const; + std::string getNextPageToken()const; + std::vector getIterations()const; + + protected: + void parse(const std::string &payload); + private: + long totalNum_; + long pageSize_; + long currentPage_; + std::string nextPageToken_; + std::vector iterations_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_DESCRIBEITERATIONSRESULT_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/DescribePredictDatasRequest.h b/ivision/include/alibabacloud/ivision/model/DescribePredictDatasRequest.h new file mode 100644 index 000000000..e75ee4ed0 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/DescribePredictDatasRequest.h @@ -0,0 +1,141 @@ +/* + * 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_DESCRIBEPREDICTDATASREQUEST_H_ +#define ALIBABACLOUD_IVISION_MODEL_DESCRIBEPREDICTDATASREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT DescribePredictDatasRequest : public RpcServiceRequest + { + + public: + DescribePredictDatasRequest(); + ~DescribePredictDatasRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getNextPageToken()const; + void setNextPageToken(const std::string& nextPageToken); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + long getPageSize()const; + void setPageSize(long pageSize); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getProbabilityThreshold()const; + void setProbabilityThreshold(const std::string& probabilityThreshold); + std::string getOverlapThreshold()const; + void setOverlapThreshold(const std::string& overlapThreshold); + std::string getProjectId()const; + void setProjectId(const std::string& projectId); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getModelId()const; + void setModelId(const std::string& modelId); + std::string getTagId()const; + void setTagId(const std::string& tagId); + long getCurrentPage()const; + void setCurrentPage(long currentPage); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getIterationId()const; + void setIterationId(const std::string& iterationId); + + private: + long resourceOwnerId_; + std::string nextPageToken_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + std::string requestContent_; + long pageSize_; + std::string callerBidEmail_; + std::string probabilityThreshold_; + std::string overlapThreshold_; + std::string projectId_; + std::string callerUidEmail_; + long callerUid_; + std::string showLog_; + std::string app_ip_; + std::string popProduct_; + std::string modelId_; + std::string tagId_; + long currentPage_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + std::string iterationId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_DESCRIBEPREDICTDATASREQUEST_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/DescribePredictDatasResult.h b/ivision/include/alibabacloud/ivision/model/DescribePredictDatasResult.h new file mode 100644 index 000000000..4b8b924e1 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/DescribePredictDatasResult.h @@ -0,0 +1,89 @@ +/* + * 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_DESCRIBEPREDICTDATASRESULT_H_ +#define ALIBABACLOUD_IVISION_MODEL_DESCRIBEPREDICTDATASRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT DescribePredictDatasResult : public ServiceResult + { + public: + struct PredictData + { + struct PredictionResult + { + struct Region + { + std::string left; + std::string top; + std::string height; + std::string width; + }; + std::string regionType; + std::string tagName; + std::string tagId; + std::string probability; + Region region; + std::string overlap; + std::string properties; + }; + std::string status; + std::string dataId; + std::string iterationId; + std::vector predictionResults; + std::string projectId; + std::string dataUrl; + std::string creationTime; + std::string errorCode; + std::string errorMessage; + std::string dataName; + }; + + + DescribePredictDatasResult(); + explicit DescribePredictDatasResult(const std::string &payload); + ~DescribePredictDatasResult(); + std::vector getPredictDatas()const; + long getTotalNum()const; + long getPageSize()const; + long getCurrentPage()const; + std::string getNextPageToken()const; + + protected: + void parse(const std::string &payload); + private: + std::vector predictDatas_; + long totalNum_; + long pageSize_; + long currentPage_; + std::string nextPageToken_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_DESCRIBEPREDICTDATASRESULT_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/DescribeProjectsRequest.h b/ivision/include/alibabacloud/ivision/model/DescribeProjectsRequest.h new file mode 100644 index 000000000..c6a8d9765 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/DescribeProjectsRequest.h @@ -0,0 +1,126 @@ +/* + * 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_DESCRIBEPROJECTSREQUEST_H_ +#define ALIBABACLOUD_IVISION_MODEL_DESCRIBEPROJECTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT DescribeProjectsRequest : public RpcServiceRequest + { + + public: + DescribeProjectsRequest(); + ~DescribeProjectsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getNextPageToken()const; + void setNextPageToken(const std::string& nextPageToken); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + long getPageSize()const; + void setPageSize(long pageSize); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + long getCurrentPage()const; + void setCurrentPage(long currentPage); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getProjectIds()const; + void setProjectIds(const std::string& projectIds); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + + private: + long resourceOwnerId_; + std::string nextPageToken_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + std::string requestContent_; + long pageSize_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string showLog_; + std::string app_ip_; + std::string popProduct_; + long currentPage_; + std::string callerBid_; + std::string projectIds_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_DESCRIBEPROJECTSREQUEST_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/DescribeProjectsResult.h b/ivision/include/alibabacloud/ivision/model/DescribeProjectsResult.h new file mode 100644 index 000000000..015154dfc --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/DescribeProjectsResult.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_IVISION_MODEL_DESCRIBEPROJECTSRESULT_H_ +#define ALIBABACLOUD_IVISION_MODEL_DESCRIBEPROJECTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT DescribeProjectsResult : public ServiceResult + { + public: + struct Project + { + std::string status; + std::string description; + std::string projectId; + std::string proType; + std::string creationTime; + int iterCount; + std::string name; + }; + + + DescribeProjectsResult(); + explicit DescribeProjectsResult(const std::string &payload); + ~DescribeProjectsResult(); + long getTotalNum()const; + long getPageSize()const; + long getCurrentPage()const; + std::string getNextPageToken()const; + std::vector getProjects()const; + + protected: + void parse(const std::string &payload); + private: + long totalNum_; + long pageSize_; + long currentPage_; + std::string nextPageToken_; + std::vector projects_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_DESCRIBEPROJECTSRESULT_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/DescribeStreamPredictResultRequest.h b/ivision/include/alibabacloud/ivision/model/DescribeStreamPredictResultRequest.h new file mode 100644 index 000000000..48b7409b4 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/DescribeStreamPredictResultRequest.h @@ -0,0 +1,138 @@ +/* + * 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_DESCRIBESTREAMPREDICTRESULTREQUEST_H_ +#define ALIBABACLOUD_IVISION_MODEL_DESCRIBESTREAMPREDICTRESULTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT DescribeStreamPredictResultRequest : public RpcServiceRequest + { + + public: + DescribeStreamPredictResultRequest(); + ~DescribeStreamPredictResultRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getNextPageToken()const; + void setNextPageToken(const std::string& nextPageToken); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getPredictId()const; + void setPredictId(const std::string& predictId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + long getPageSize()const; + void setPageSize(long pageSize); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getProbabilityThreshold()const; + void setProbabilityThreshold(const std::string& probabilityThreshold); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + 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); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + + private: + long resourceOwnerId_; + std::string nextPageToken_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string startTime_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string predictId_; + std::string securityToken_; + std::string regionId_; + std::string requestContent_; + long pageSize_; + std::string callerBidEmail_; + std::string probabilityThreshold_; + std::string callerUidEmail_; + long callerUid_; + std::string showLog_; + std::string app_ip_; + std::string popProduct_; + std::string modelId_; + std::string endTime_; + long currentPage_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_DESCRIBESTREAMPREDICTRESULTREQUEST_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/DescribeStreamPredictResultResult.h b/ivision/include/alibabacloud/ivision/model/DescribeStreamPredictResultResult.h new file mode 100644 index 000000000..005566552 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/DescribeStreamPredictResultResult.h @@ -0,0 +1,98 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IVISION_MODEL_DESCRIBESTREAMPREDICTRESULTRESULT_H_ +#define ALIBABACLOUD_IVISION_MODEL_DESCRIBESTREAMPREDICTRESULTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT DescribeStreamPredictResultResult : public ServiceResult + { + public: + struct StreamPredictData + { + struct ResultStatisticsItem + { + std::string tagName; + std::string tagId; + long count; + }; + struct PredictionResult + { + struct Region + { + std::string left; + std::string top; + std::string height; + std::string width; + }; + struct Properties + { + std::string withGlovesProbability; + std::string withGloves; + }; + std::string regionType; + std::string tagName; + std::string tagId; + std::string probability; + Region region; + std::string overlap; + Properties properties; + }; + std::string status; + std::vector predictionResults; + std::string dataUrl; + std::string streamTimestamp; + std::string predictTime; + std::string predictId; + std::vector resultStatistics; + std::string modelId; + }; + + + DescribeStreamPredictResultResult(); + explicit DescribeStreamPredictResultResult(const std::string &payload); + ~DescribeStreamPredictResultResult(); + std::vector getStreamPredictDatas()const; + long getTotalNum()const; + long getPageSize()const; + long getCurrentPage()const; + std::string getNextPageToken()const; + + protected: + void parse(const std::string &payload); + private: + std::vector streamPredictDatas_; + long totalNum_; + long pageSize_; + long currentPage_; + std::string nextPageToken_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_DESCRIBESTREAMPREDICTRESULTRESULT_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/DescribeStreamPredictsRequest.h b/ivision/include/alibabacloud/ivision/model/DescribeStreamPredictsRequest.h new file mode 100644 index 000000000..30dfb4b3c --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/DescribeStreamPredictsRequest.h @@ -0,0 +1,126 @@ +/* + * 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_DESCRIBESTREAMPREDICTSREQUEST_H_ +#define ALIBABACLOUD_IVISION_MODEL_DESCRIBESTREAMPREDICTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT DescribeStreamPredictsRequest : public RpcServiceRequest + { + + public: + DescribeStreamPredictsRequest(); + ~DescribeStreamPredictsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getNextPageToken()const; + void setNextPageToken(const std::string& nextPageToken); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + std::string getPredictIds()const; + void setPredictIds(const std::string& predictIds); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + long getPageSize()const; + void setPageSize(long pageSize); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + long getCurrentPage()const; + void setCurrentPage(long currentPage); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + + private: + long resourceOwnerId_; + std::string nextPageToken_; + long callerParentId_; + std::string predictIds_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + std::string requestContent_; + long pageSize_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string showLog_; + std::string app_ip_; + std::string popProduct_; + long currentPage_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_DESCRIBESTREAMPREDICTSREQUEST_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/DescribeStreamPredictsResult.h b/ivision/include/alibabacloud/ivision/model/DescribeStreamPredictsResult.h new file mode 100644 index 000000000..81f139dd4 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/DescribeStreamPredictsResult.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IVISION_MODEL_DESCRIBESTREAMPREDICTSRESULT_H_ +#define ALIBABACLOUD_IVISION_MODEL_DESCRIBESTREAMPREDICTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT DescribeStreamPredictsResult : public ServiceResult + { + public: + struct StreamPredict + { + std::string status; + std::string streamType; + std::string probabilityThresholds; + std::string streamId; + std::string notify; + std::string userData; + std::string output; + std::string creationTime; + std::string modelIds; + std::string predictId; + }; + + + DescribeStreamPredictsResult(); + explicit DescribeStreamPredictsResult(const std::string &payload); + ~DescribeStreamPredictsResult(); + long getTotalNum()const; + long getPageSize()const; + long getCurrentPage()const; + std::string getNextPageToken()const; + std::vector getStreamPredicts()const; + + protected: + void parse(const std::string &payload); + private: + long totalNum_; + long pageSize_; + long currentPage_; + std::string nextPageToken_; + std::vector streamPredicts_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_DESCRIBESTREAMPREDICTSRESULT_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/DescribeTagsRequest.h b/ivision/include/alibabacloud/ivision/model/DescribeTagsRequest.h new file mode 100644 index 000000000..65b9508fe --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/DescribeTagsRequest.h @@ -0,0 +1,132 @@ +/* + * 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_DESCRIBETAGSREQUEST_H_ +#define ALIBABACLOUD_IVISION_MODEL_DESCRIBETAGSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT DescribeTagsRequest : public RpcServiceRequest + { + + public: + DescribeTagsRequest(); + ~DescribeTagsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getNextPageToken()const; + void setNextPageToken(const std::string& nextPageToken); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + long getPageSize()const; + void setPageSize(long pageSize); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getProjectId()const; + void setProjectId(const std::string& projectId); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getTagIds()const; + void setTagIds(const std::string& tagIds); + long getCurrentPage()const; + void setCurrentPage(long currentPage); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getIterationId()const; + void setIterationId(const std::string& iterationId); + + private: + long resourceOwnerId_; + std::string nextPageToken_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + std::string requestContent_; + long pageSize_; + std::string callerBidEmail_; + std::string projectId_; + std::string callerUidEmail_; + long callerUid_; + std::string showLog_; + std::string app_ip_; + std::string popProduct_; + std::string tagIds_; + long currentPage_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + std::string iterationId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_DESCRIBETAGSREQUEST_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/DescribeTagsResult.h b/ivision/include/alibabacloud/ivision/model/DescribeTagsResult.h new file mode 100644 index 000000000..2bfc1b077 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/DescribeTagsResult.h @@ -0,0 +1,68 @@ +/* + * 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_DESCRIBETAGSRESULT_H_ +#define ALIBABACLOUD_IVISION_MODEL_DESCRIBETAGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT DescribeTagsResult : public ServiceResult + { + public: + struct Tag + { + std::string description; + std::string tagName; + std::string projectId; + std::string tagId; + std::string creationTime; + int count; + }; + + + DescribeTagsResult(); + explicit DescribeTagsResult(const std::string &payload); + ~DescribeTagsResult(); + long getTotalNum()const; + long getPageSize()const; + long getCurrentPage()const; + std::string getNextPageToken()const; + std::vector getTags()const; + + protected: + void parse(const std::string &payload); + private: + long totalNum_; + long pageSize_; + long currentPage_; + std::string nextPageToken_; + std::vector tags_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_DESCRIBETAGSRESULT_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/DescribeTrainDatasByIdsRequest.h b/ivision/include/alibabacloud/ivision/model/DescribeTrainDatasByIdsRequest.h new file mode 100644 index 000000000..0e0f51140 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/DescribeTrainDatasByIdsRequest.h @@ -0,0 +1,123 @@ +/* + * 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_DESCRIBETRAINDATASBYIDSREQUEST_H_ +#define ALIBABACLOUD_IVISION_MODEL_DESCRIBETRAINDATASBYIDSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT DescribeTrainDatasByIdsRequest : public RpcServiceRequest + { + + public: + DescribeTrainDatasByIdsRequest(); + ~DescribeTrainDatasByIdsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getDataIds()const; + void setDataIds(const std::string& dataIds); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getProjectId()const; + void setProjectId(const std::string& projectId); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getIterationId()const; + void setIterationId(const std::string& iterationId); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string dataIds_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + std::string requestContent_; + std::string callerBidEmail_; + std::string projectId_; + std::string callerUidEmail_; + long callerUid_; + std::string showLog_; + std::string app_ip_; + std::string popProduct_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + std::string iterationId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_DESCRIBETRAINDATASBYIDSREQUEST_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/DescribeTrainDatasByIdsResult.h b/ivision/include/alibabacloud/ivision/model/DescribeTrainDatasByIdsResult.h new file mode 100644 index 000000000..e94e53415 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/DescribeTrainDatasByIdsResult.h @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IVISION_MODEL_DESCRIBETRAINDATASBYIDSRESULT_H_ +#define ALIBABACLOUD_IVISION_MODEL_DESCRIBETRAINDATASBYIDSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT DescribeTrainDatasByIdsResult : public ServiceResult + { + public: + struct TrainData + { + struct TagItem + { + struct Region + { + std::string left; + std::string top; + std::string height; + std::string width; + }; + std::string regionType; + std::string tagId; + Region region; + }; + std::string status; + std::string dataId; + std::string iterationId; + std::string tagStatus; + std::string projectId; + std::string dataUrl; + std::string creationTime; + std::vector tagItems; + std::string dataName; + }; + + + DescribeTrainDatasByIdsResult(); + explicit DescribeTrainDatasByIdsResult(const std::string &payload); + ~DescribeTrainDatasByIdsResult(); + std::vector getTrainDatas()const; + + protected: + void parse(const std::string &payload); + private: + std::vector trainDatas_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_DESCRIBETRAINDATASBYIDSRESULT_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/DescribeTrainDatasRequest.h b/ivision/include/alibabacloud/ivision/model/DescribeTrainDatasRequest.h new file mode 100644 index 000000000..d255cee73 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/DescribeTrainDatasRequest.h @@ -0,0 +1,135 @@ +/* + * 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_DESCRIBETRAINDATASREQUEST_H_ +#define ALIBABACLOUD_IVISION_MODEL_DESCRIBETRAINDATASREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT DescribeTrainDatasRequest : public RpcServiceRequest + { + + public: + DescribeTrainDatasRequest(); + ~DescribeTrainDatasRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getNextPageToken()const; + void setNextPageToken(const std::string& nextPageToken); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getTagStatus()const; + void setTagStatus(const std::string& tagStatus); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + long getPageSize()const; + void setPageSize(long pageSize); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getProjectId()const; + void setProjectId(const std::string& projectId); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getTagId()const; + void setTagId(const std::string& tagId); + long getCurrentPage()const; + void setCurrentPage(long currentPage); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getIterationId()const; + void setIterationId(const std::string& iterationId); + + private: + long resourceOwnerId_; + std::string nextPageToken_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string tagStatus_; + std::string securityToken_; + std::string regionId_; + std::string requestContent_; + long pageSize_; + std::string callerBidEmail_; + std::string projectId_; + std::string callerUidEmail_; + long callerUid_; + std::string showLog_; + std::string app_ip_; + std::string popProduct_; + std::string tagId_; + long currentPage_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + std::string iterationId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_DESCRIBETRAINDATASREQUEST_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/DescribeTrainDatasResult.h b/ivision/include/alibabacloud/ivision/model/DescribeTrainDatasResult.h new file mode 100644 index 000000000..76e766f1c --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/DescribeTrainDatasResult.h @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IVISION_MODEL_DESCRIBETRAINDATASRESULT_H_ +#define ALIBABACLOUD_IVISION_MODEL_DESCRIBETRAINDATASRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT DescribeTrainDatasResult : public ServiceResult + { + public: + struct TrainData + { + struct TagItem + { + struct Region + { + std::string left; + std::string top; + std::string height; + std::string width; + }; + std::string regionType; + std::string tagId; + Region region; + }; + std::string status; + std::string dataId; + std::string iterationId; + std::string tagStatus; + std::string projectId; + std::string dataUrl; + std::string creationTime; + std::vector tagItems; + std::string dataName; + }; + + + DescribeTrainDatasResult(); + explicit DescribeTrainDatasResult(const std::string &payload); + ~DescribeTrainDatasResult(); + long getTotalNum()const; + long getPageSize()const; + std::vector getTrainDatas()const; + long getCurrentPage()const; + std::string getNextPageToken()const; + + protected: + void parse(const std::string &payload); + private: + long totalNum_; + long pageSize_; + std::vector trainDatas_; + long currentPage_; + std::string nextPageToken_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_DESCRIBETRAINDATASRESULT_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/DescribeTrainResultRequest.h b/ivision/include/alibabacloud/ivision/model/DescribeTrainResultRequest.h new file mode 100644 index 000000000..75cc71c81 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/DescribeTrainResultRequest.h @@ -0,0 +1,123 @@ +/* + * 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_DESCRIBETRAINRESULTREQUEST_H_ +#define ALIBABACLOUD_IVISION_MODEL_DESCRIBETRAINRESULTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT DescribeTrainResultRequest : public RpcServiceRequest + { + + public: + DescribeTrainResultRequest(); + ~DescribeTrainResultRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getThreshold()const; + void setThreshold(const std::string& threshold); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getProjectId()const; + void setProjectId(const std::string& projectId); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getIterationId()const; + void setIterationId(const std::string& iterationId); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string threshold_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + std::string requestContent_; + std::string callerBidEmail_; + std::string projectId_; + std::string callerUidEmail_; + long callerUid_; + std::string showLog_; + std::string app_ip_; + std::string popProduct_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + std::string iterationId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_DESCRIBETRAINRESULTREQUEST_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/DescribeTrainResultResult.h b/ivision/include/alibabacloud/ivision/model/DescribeTrainResultResult.h new file mode 100644 index 000000000..e95ebb120 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/DescribeTrainResultResult.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_IVISION_MODEL_DESCRIBETRAINRESULTRESULT_H_ +#define ALIBABACLOUD_IVISION_MODEL_DESCRIBETRAINRESULTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT DescribeTrainResultResult : public ServiceResult + { + public: + struct TrainResult + { + struct TagResult + { + std::string tagName; + std::string precision; + std::string tagId; + std::string recall; + std::string aP; + }; + std::string status; + std::string iterationName; + std::string endTime; + std::string projectId; + std::string startTime; + std::string precision; + std::string iterationId; + std::vector tagResults; + std::string recall; + std::string errorCode; + std::string errorMessage; + std::string mAP; + std::string threshold; + }; + + + DescribeTrainResultResult(); + explicit DescribeTrainResultResult(const std::string &payload); + ~DescribeTrainResultResult(); + TrainResult getTrainResult()const; + + protected: + void parse(const std::string &payload); + private: + TrainResult trainResult_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_DESCRIBETRAINRESULTRESULT_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/ModifyProjectAttributeRequest.h b/ivision/include/alibabacloud/ivision/model/ModifyProjectAttributeRequest.h new file mode 100644 index 000000000..f2ac3bb13 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/ModifyProjectAttributeRequest.h @@ -0,0 +1,123 @@ +/* + * 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_MODIFYPROJECTATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_IVISION_MODEL_MODIFYPROJECTATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT ModifyProjectAttributeRequest : public RpcServiceRequest + { + + public: + ModifyProjectAttributeRequest(); + ~ModifyProjectAttributeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getProjectId()const; + void setProjectId(const std::string& projectId); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getName()const; + void setName(const std::string& name); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string description_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + std::string requestContent_; + std::string callerBidEmail_; + std::string projectId_; + std::string callerUidEmail_; + long callerUid_; + std::string showLog_; + std::string app_ip_; + std::string popProduct_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_MODIFYPROJECTATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/ModifyProjectAttributeResult.h b/ivision/include/alibabacloud/ivision/model/ModifyProjectAttributeResult.h new file mode 100644 index 000000000..a8a0ee9e2 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/ModifyProjectAttributeResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IVISION_MODEL_MODIFYPROJECTATTRIBUTERESULT_H_ +#define ALIBABACLOUD_IVISION_MODEL_MODIFYPROJECTATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT ModifyProjectAttributeResult : public ServiceResult + { + public: + struct Project + { + std::string status; + std::string description; + std::string projectId; + std::string proType; + std::string creationTime; + int iterCount; + std::string name; + }; + + + ModifyProjectAttributeResult(); + explicit ModifyProjectAttributeResult(const std::string &payload); + ~ModifyProjectAttributeResult(); + Project getProject()const; + + protected: + void parse(const std::string &payload); + private: + Project project_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_MODIFYPROJECTATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/ModifyTagAttributeRequest.h b/ivision/include/alibabacloud/ivision/model/ModifyTagAttributeRequest.h new file mode 100644 index 000000000..7ea0fd637 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/ModifyTagAttributeRequest.h @@ -0,0 +1,126 @@ +/* + * 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_MODIFYTAGATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_IVISION_MODEL_MODIFYTAGATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT ModifyTagAttributeRequest : public RpcServiceRequest + { + + public: + ModifyTagAttributeRequest(); + ~ModifyTagAttributeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getProjectId()const; + void setProjectId(const std::string& projectId); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getTagId()const; + void setTagId(const std::string& tagId); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getName()const; + void setName(const std::string& name); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string description_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + std::string requestContent_; + std::string callerBidEmail_; + std::string projectId_; + std::string callerUidEmail_; + long callerUid_; + std::string showLog_; + std::string app_ip_; + std::string popProduct_; + std::string tagId_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_MODIFYTAGATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/ModifyTagAttributeResult.h b/ivision/include/alibabacloud/ivision/model/ModifyTagAttributeResult.h new file mode 100644 index 000000000..1a7f9733a --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/ModifyTagAttributeResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IVISION_MODEL_MODIFYTAGATTRIBUTERESULT_H_ +#define ALIBABACLOUD_IVISION_MODEL_MODIFYTAGATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT ModifyTagAttributeResult : public ServiceResult + { + public: + struct Tag + { + std::string status; + std::string description; + std::string tagName; + std::string projectId; + std::string tagId; + std::string creationTime; + int count; + }; + + + ModifyTagAttributeResult(); + explicit ModifyTagAttributeResult(const std::string &payload); + ~ModifyTagAttributeResult(); + Tag getTag()const; + + protected: + void parse(const std::string &payload); + private: + Tag tag_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_MODIFYTAGATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/ModifyTrainDataRegionTagAttributeRequest.h b/ivision/include/alibabacloud/ivision/model/ModifyTrainDataRegionTagAttributeRequest.h new file mode 100644 index 000000000..0741762c5 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/ModifyTrainDataRegionTagAttributeRequest.h @@ -0,0 +1,123 @@ +/* + * 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_MODIFYTRAINDATAREGIONTAGATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_IVISION_MODEL_MODIFYTRAINDATAREGIONTAGATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT ModifyTrainDataRegionTagAttributeRequest : public RpcServiceRequest + { + + public: + ModifyTrainDataRegionTagAttributeRequest(); + ~ModifyTrainDataRegionTagAttributeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getProjectId()const; + void setProjectId(const std::string& projectId); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getTagItems()const; + void setTagItems(const std::string& tagItems); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getDataId()const; + void setDataId(const std::string& dataId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + std::string requestContent_; + std::string callerBidEmail_; + std::string projectId_; + std::string callerUidEmail_; + long callerUid_; + std::string showLog_; + std::string app_ip_; + std::string popProduct_; + std::string tagItems_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string dataId_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_MODIFYTRAINDATAREGIONTAGATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/ModifyTrainDataRegionTagAttributeResult.h b/ivision/include/alibabacloud/ivision/model/ModifyTrainDataRegionTagAttributeResult.h new file mode 100644 index 000000000..edd74b718 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/ModifyTrainDataRegionTagAttributeResult.h @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IVISION_MODEL_MODIFYTRAINDATAREGIONTAGATTRIBUTERESULT_H_ +#define ALIBABACLOUD_IVISION_MODEL_MODIFYTRAINDATAREGIONTAGATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT ModifyTrainDataRegionTagAttributeResult : public ServiceResult + { + public: + struct TrainData + { + struct TagItem + { + struct Region + { + std::string left; + std::string top; + std::string height; + std::string width; + }; + std::string regionType; + std::string tagId; + Region region; + }; + std::string status; + std::string dataId; + std::string iterationId; + std::string tagStatus; + std::string projectId; + std::string dataUrl; + std::string creationTime; + std::vector tagItems; + std::string dataName; + }; + + + ModifyTrainDataRegionTagAttributeResult(); + explicit ModifyTrainDataRegionTagAttributeResult(const std::string &payload); + ~ModifyTrainDataRegionTagAttributeResult(); + TrainData getTrainData()const; + + protected: + void parse(const std::string &payload); + private: + TrainData trainData_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_MODIFYTRAINDATAREGIONTAGATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/ModifyTrainDataTagAttributeRequest.h b/ivision/include/alibabacloud/ivision/model/ModifyTrainDataTagAttributeRequest.h new file mode 100644 index 000000000..7c1feacff --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/ModifyTrainDataTagAttributeRequest.h @@ -0,0 +1,123 @@ +/* + * 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_MODIFYTRAINDATATAGATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_IVISION_MODEL_MODIFYTRAINDATATAGATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT ModifyTrainDataTagAttributeRequest : public RpcServiceRequest + { + + public: + ModifyTrainDataTagAttributeRequest(); + ~ModifyTrainDataTagAttributeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getProjectId()const; + void setProjectId(const std::string& projectId); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getTagItems()const; + void setTagItems(const std::string& tagItems); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getDataId()const; + void setDataId(const std::string& dataId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + std::string requestContent_; + std::string callerBidEmail_; + std::string projectId_; + std::string callerUidEmail_; + long callerUid_; + std::string showLog_; + std::string app_ip_; + std::string popProduct_; + std::string tagItems_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string dataId_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_MODIFYTRAINDATATAGATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/ModifyTrainDataTagAttributeResult.h b/ivision/include/alibabacloud/ivision/model/ModifyTrainDataTagAttributeResult.h new file mode 100644 index 000000000..80528e9b8 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/ModifyTrainDataTagAttributeResult.h @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IVISION_MODEL_MODIFYTRAINDATATAGATTRIBUTERESULT_H_ +#define ALIBABACLOUD_IVISION_MODEL_MODIFYTRAINDATATAGATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT ModifyTrainDataTagAttributeResult : public ServiceResult + { + public: + struct TrainData + { + struct TagItem + { + struct Region + { + std::string left; + std::string top; + std::string height; + std::string width; + }; + std::string regionType; + std::string tagId; + Region region; + }; + std::string status; + std::string dataId; + std::string iterationId; + std::string tagStatus; + std::string projectId; + std::string dataUrl; + std::string creationTime; + std::vector tagItems; + std::string dataName; + }; + + + ModifyTrainDataTagAttributeResult(); + explicit ModifyTrainDataTagAttributeResult(const std::string &payload); + ~ModifyTrainDataTagAttributeResult(); + TrainData getTrainData()const; + + protected: + void parse(const std::string &payload); + private: + TrainData trainData_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_MODIFYTRAINDATATAGATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/PredictImageRequest.h b/ivision/include/alibabacloud/ivision/model/PredictImageRequest.h new file mode 100644 index 000000000..f5c258f8d --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/PredictImageRequest.h @@ -0,0 +1,123 @@ +/* + * 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_PREDICTIMAGEREQUEST_H_ +#define ALIBABACLOUD_IVISION_MODEL_PREDICTIMAGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT PredictImageRequest : public RpcServiceRequest + { + + public: + PredictImageRequest(); + ~PredictImageRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getProjectId()const; + void setProjectId(const std::string& projectId); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getIterationId()const; + void setIterationId(const std::string& iterationId); + std::string getDataUrls()const; + void setDataUrls(const std::string& dataUrls); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + std::string requestContent_; + std::string callerBidEmail_; + std::string projectId_; + std::string callerUidEmail_; + long callerUid_; + std::string showLog_; + std::string app_ip_; + std::string popProduct_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + std::string iterationId_; + std::string dataUrls_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_PREDICTIMAGEREQUEST_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/PredictImageResult.h b/ivision/include/alibabacloud/ivision/model/PredictImageResult.h new file mode 100644 index 000000000..3cc5d55f9 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/PredictImageResult.h @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IVISION_MODEL_PREDICTIMAGERESULT_H_ +#define ALIBABACLOUD_IVISION_MODEL_PREDICTIMAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT PredictImageResult : public ServiceResult + { + public: + struct PredictData + { + struct PredictionResult + { + struct Region + { + std::string left; + std::string top; + std::string height; + std::string width; + }; + std::string regionType; + std::string tagName; + std::string tagId; + std::string probability; + Region region; + std::string overlap; + std::string properties; + }; + std::string status; + std::string dataId; + std::string iterationId; + std::vector predictionResults; + std::string projectId; + std::string dataUrl; + std::string creationTime; + std::string errorCode; + std::string errorMessage; + std::string dataName; + }; + + + PredictImageResult(); + explicit PredictImageResult(const std::string &payload); + ~PredictImageResult(); + std::vector getPredictDatas()const; + + protected: + void parse(const std::string &payload); + private: + std::vector predictDatas_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_PREDICTIMAGERESULT_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/StartStreamPredictRequest.h b/ivision/include/alibabacloud/ivision/model/StartStreamPredictRequest.h new file mode 100644 index 000000000..96229a36e --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/StartStreamPredictRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IVISION_MODEL_STARTSTREAMPREDICTREQUEST_H_ +#define ALIBABACLOUD_IVISION_MODEL_STARTSTREAMPREDICTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT StartStreamPredictRequest : public RpcServiceRequest + { + + public: + StartStreamPredictRequest(); + ~StartStreamPredictRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getPredictId()const; + void setPredictId(const std::string& predictId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string predictId_; + std::string securityToken_; + std::string regionId_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string showLog_; + std::string app_ip_; + std::string popProduct_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_STARTSTREAMPREDICTREQUEST_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/StartStreamPredictResult.h b/ivision/include/alibabacloud/ivision/model/StartStreamPredictResult.h new file mode 100644 index 000000000..c3e5050ad --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/StartStreamPredictResult.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_STARTSTREAMPREDICTRESULT_H_ +#define ALIBABACLOUD_IVISION_MODEL_STARTSTREAMPREDICTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT StartStreamPredictResult : public ServiceResult + { + public: + + + StartStreamPredictResult(); + explicit StartStreamPredictResult(const std::string &payload); + ~StartStreamPredictResult(); + std::string getPredictId()const; + + protected: + void parse(const std::string &payload); + private: + std::string predictId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_STARTSTREAMPREDICTRESULT_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/StopStreamPredictRequest.h b/ivision/include/alibabacloud/ivision/model/StopStreamPredictRequest.h new file mode 100644 index 000000000..382590a5f --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/StopStreamPredictRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IVISION_MODEL_STOPSTREAMPREDICTREQUEST_H_ +#define ALIBABACLOUD_IVISION_MODEL_STOPSTREAMPREDICTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT StopStreamPredictRequest : public RpcServiceRequest + { + + public: + StopStreamPredictRequest(); + ~StopStreamPredictRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getPredictId()const; + void setPredictId(const std::string& predictId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string predictId_; + std::string securityToken_; + std::string regionId_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string showLog_; + std::string app_ip_; + std::string popProduct_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_STOPSTREAMPREDICTREQUEST_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/StopStreamPredictResult.h b/ivision/include/alibabacloud/ivision/model/StopStreamPredictResult.h new file mode 100644 index 000000000..94a10ea43 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/StopStreamPredictResult.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_STOPSTREAMPREDICTRESULT_H_ +#define ALIBABACLOUD_IVISION_MODEL_STOPSTREAMPREDICTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT StopStreamPredictResult : public ServiceResult + { + public: + + + StopStreamPredictResult(); + explicit StopStreamPredictResult(const std::string &payload); + ~StopStreamPredictResult(); + std::string getPredictId()const; + + protected: + void parse(const std::string &payload); + private: + std::string predictId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_STOPSTREAMPREDICTRESULT_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/TrainProjectRequest.h b/ivision/include/alibabacloud/ivision/model/TrainProjectRequest.h new file mode 100644 index 000000000..3f193a9a8 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/TrainProjectRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IVISION_MODEL_TRAINPROJECTREQUEST_H_ +#define ALIBABACLOUD_IVISION_MODEL_TRAINPROJECTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT TrainProjectRequest : public RpcServiceRequest + { + + public: + TrainProjectRequest(); + ~TrainProjectRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getProjectId()const; + void setProjectId(const std::string& projectId); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + std::string requestContent_; + std::string callerBidEmail_; + std::string projectId_; + std::string callerUidEmail_; + long callerUid_; + std::string showLog_; + std::string app_ip_; + std::string popProduct_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_TRAINPROJECTREQUEST_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/TrainProjectResult.h b/ivision/include/alibabacloud/ivision/model/TrainProjectResult.h new file mode 100644 index 000000000..ce690cdcd --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/TrainProjectResult.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_TRAINPROJECTRESULT_H_ +#define ALIBABACLOUD_IVISION_MODEL_TRAINPROJECTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT TrainProjectResult : public ServiceResult + { + public: + + + TrainProjectResult(); + explicit TrainProjectResult(const std::string &payload); + ~TrainProjectResult(); + std::string getIterationId()const; + + protected: + void parse(const std::string &payload); + private: + std::string iterationId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_TRAINPROJECTRESULT_H_ \ No newline at end of file diff --git a/ivision/src/IvisionClient.cc b/ivision/src/IvisionClient.cc new file mode 100644 index 000000000..0333a4483 --- /dev/null +++ b/ivision/src/IvisionClient.cc @@ -0,0 +1,1241 @@ +/* + * 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; +using namespace AlibabaCloud::Location; +using namespace AlibabaCloud::Ivision; +using namespace AlibabaCloud::Ivision::Model; + +namespace +{ + const std::string SERVICE_NAME = "ivision"; +} + +IvisionClient::IvisionClient(const Credentials &credentials, const ClientConfiguration &configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) +{ + auto locationClient = std::make_shared(credentials, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "ivision"); +} + +IvisionClient::IvisionClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) +{ + auto locationClient = std::make_shared(credentialsProvider, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "ivision"); +} + +IvisionClient::IvisionClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) +{ + auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "ivision"); +} + +IvisionClient::~IvisionClient() +{} + +IvisionClient::TrainProjectOutcome IvisionClient::trainProject(const TrainProjectRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return TrainProjectOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TrainProjectOutcome(TrainProjectResult(outcome.result())); + else + return TrainProjectOutcome(outcome.error()); +} + +void IvisionClient::trainProjectAsync(const TrainProjectRequest& request, const TrainProjectAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, trainProject(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IvisionClient::TrainProjectOutcomeCallable IvisionClient::trainProjectCallable(const TrainProjectRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->trainProject(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IvisionClient::CreateTagOutcome IvisionClient::createTag(const CreateTagRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateTagOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateTagOutcome(CreateTagResult(outcome.result())); + else + return CreateTagOutcome(outcome.error()); +} + +void IvisionClient::createTagAsync(const CreateTagRequest& request, const CreateTagAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createTag(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IvisionClient::CreateTagOutcomeCallable IvisionClient::createTagCallable(const CreateTagRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createTag(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IvisionClient::DescribeTrainResultOutcome IvisionClient::describeTrainResult(const DescribeTrainResultRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeTrainResultOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeTrainResultOutcome(DescribeTrainResultResult(outcome.result())); + else + return DescribeTrainResultOutcome(outcome.error()); +} + +void IvisionClient::describeTrainResultAsync(const DescribeTrainResultRequest& request, const DescribeTrainResultAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeTrainResult(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IvisionClient::DescribeTrainResultOutcomeCallable IvisionClient::describeTrainResultCallable(const DescribeTrainResultRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeTrainResult(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IvisionClient::StartStreamPredictOutcome IvisionClient::startStreamPredict(const StartStreamPredictRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StartStreamPredictOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartStreamPredictOutcome(StartStreamPredictResult(outcome.result())); + else + return StartStreamPredictOutcome(outcome.error()); +} + +void IvisionClient::startStreamPredictAsync(const StartStreamPredictRequest& request, const StartStreamPredictAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startStreamPredict(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IvisionClient::StartStreamPredictOutcomeCallable IvisionClient::startStreamPredictCallable(const StartStreamPredictRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startStreamPredict(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IvisionClient::CreateProjectOutcome IvisionClient::createProject(const CreateProjectRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateProjectOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateProjectOutcome(CreateProjectResult(outcome.result())); + else + return CreateProjectOutcome(outcome.error()); +} + +void IvisionClient::createProjectAsync(const CreateProjectRequest& request, const CreateProjectAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createProject(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IvisionClient::CreateProjectOutcomeCallable IvisionClient::createProjectCallable(const CreateProjectRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createProject(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IvisionClient::DescribeIterationsOutcome IvisionClient::describeIterations(const DescribeIterationsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeIterationsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeIterationsOutcome(DescribeIterationsResult(outcome.result())); + else + return DescribeIterationsOutcome(outcome.error()); +} + +void IvisionClient::describeIterationsAsync(const DescribeIterationsRequest& request, const DescribeIterationsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeIterations(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IvisionClient::DescribeIterationsOutcomeCallable IvisionClient::describeIterationsCallable(const DescribeIterationsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeIterations(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IvisionClient::DescribeTrainDatasByIdsOutcome IvisionClient::describeTrainDatasByIds(const DescribeTrainDatasByIdsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeTrainDatasByIdsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeTrainDatasByIdsOutcome(DescribeTrainDatasByIdsResult(outcome.result())); + else + return DescribeTrainDatasByIdsOutcome(outcome.error()); +} + +void IvisionClient::describeTrainDatasByIdsAsync(const DescribeTrainDatasByIdsRequest& request, const DescribeTrainDatasByIdsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeTrainDatasByIds(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IvisionClient::DescribeTrainDatasByIdsOutcomeCallable IvisionClient::describeTrainDatasByIdsCallable(const DescribeTrainDatasByIdsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeTrainDatasByIds(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IvisionClient::CreateTrainDataRegionTagOutcome IvisionClient::createTrainDataRegionTag(const CreateTrainDataRegionTagRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateTrainDataRegionTagOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateTrainDataRegionTagOutcome(CreateTrainDataRegionTagResult(outcome.result())); + else + return CreateTrainDataRegionTagOutcome(outcome.error()); +} + +void IvisionClient::createTrainDataRegionTagAsync(const CreateTrainDataRegionTagRequest& request, const CreateTrainDataRegionTagAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createTrainDataRegionTag(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IvisionClient::CreateTrainDataRegionTagOutcomeCallable IvisionClient::createTrainDataRegionTagCallable(const CreateTrainDataRegionTagRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createTrainDataRegionTag(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IvisionClient::CreateTrainDatasFromPredictionOutcome IvisionClient::createTrainDatasFromPrediction(const CreateTrainDatasFromPredictionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateTrainDatasFromPredictionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateTrainDatasFromPredictionOutcome(CreateTrainDatasFromPredictionResult(outcome.result())); + else + return CreateTrainDatasFromPredictionOutcome(outcome.error()); +} + +void IvisionClient::createTrainDatasFromPredictionAsync(const CreateTrainDatasFromPredictionRequest& request, const CreateTrainDatasFromPredictionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createTrainDatasFromPrediction(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IvisionClient::CreateTrainDatasFromPredictionOutcomeCallable IvisionClient::createTrainDatasFromPredictionCallable(const CreateTrainDatasFromPredictionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createTrainDatasFromPrediction(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IvisionClient::ModifyTagAttributeOutcome IvisionClient::modifyTagAttribute(const ModifyTagAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyTagAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyTagAttributeOutcome(ModifyTagAttributeResult(outcome.result())); + else + return ModifyTagAttributeOutcome(outcome.error()); +} + +void IvisionClient::modifyTagAttributeAsync(const ModifyTagAttributeRequest& request, const ModifyTagAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyTagAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IvisionClient::ModifyTagAttributeOutcomeCallable IvisionClient::modifyTagAttributeCallable(const ModifyTagAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyTagAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IvisionClient::CreateTrainDataTagOutcome IvisionClient::createTrainDataTag(const CreateTrainDataTagRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateTrainDataTagOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateTrainDataTagOutcome(CreateTrainDataTagResult(outcome.result())); + else + return CreateTrainDataTagOutcome(outcome.error()); +} + +void IvisionClient::createTrainDataTagAsync(const CreateTrainDataTagRequest& request, const CreateTrainDataTagAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createTrainDataTag(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IvisionClient::CreateTrainDataTagOutcomeCallable IvisionClient::createTrainDataTagCallable(const CreateTrainDataTagRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createTrainDataTag(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IvisionClient::StopStreamPredictOutcome IvisionClient::stopStreamPredict(const StopStreamPredictRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StopStreamPredictOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StopStreamPredictOutcome(StopStreamPredictResult(outcome.result())); + else + return StopStreamPredictOutcome(outcome.error()); +} + +void IvisionClient::stopStreamPredictAsync(const StopStreamPredictRequest& request, const StopStreamPredictAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, stopStreamPredict(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IvisionClient::StopStreamPredictOutcomeCallable IvisionClient::stopStreamPredictCallable(const StopStreamPredictRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->stopStreamPredict(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IvisionClient::DeleteTagOutcome IvisionClient::deleteTag(const DeleteTagRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteTagOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteTagOutcome(DeleteTagResult(outcome.result())); + else + return DeleteTagOutcome(outcome.error()); +} + +void IvisionClient::deleteTagAsync(const DeleteTagRequest& request, const DeleteTagAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteTag(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IvisionClient::DeleteTagOutcomeCallable IvisionClient::deleteTagCallable(const DeleteTagRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteTag(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IvisionClient::DescribeStreamPredictsOutcome IvisionClient::describeStreamPredicts(const DescribeStreamPredictsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeStreamPredictsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeStreamPredictsOutcome(DescribeStreamPredictsResult(outcome.result())); + else + return DescribeStreamPredictsOutcome(outcome.error()); +} + +void IvisionClient::describeStreamPredictsAsync(const DescribeStreamPredictsRequest& request, const DescribeStreamPredictsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeStreamPredicts(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IvisionClient::DescribeStreamPredictsOutcomeCallable IvisionClient::describeStreamPredictsCallable(const DescribeStreamPredictsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeStreamPredicts(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IvisionClient::ModifyTrainDataTagAttributeOutcome IvisionClient::modifyTrainDataTagAttribute(const ModifyTrainDataTagAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyTrainDataTagAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyTrainDataTagAttributeOutcome(ModifyTrainDataTagAttributeResult(outcome.result())); + else + return ModifyTrainDataTagAttributeOutcome(outcome.error()); +} + +void IvisionClient::modifyTrainDataTagAttributeAsync(const ModifyTrainDataTagAttributeRequest& request, const ModifyTrainDataTagAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyTrainDataTagAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IvisionClient::ModifyTrainDataTagAttributeOutcomeCallable IvisionClient::modifyTrainDataTagAttributeCallable(const ModifyTrainDataTagAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyTrainDataTagAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IvisionClient::ModifyTrainDataRegionTagAttributeOutcome IvisionClient::modifyTrainDataRegionTagAttribute(const ModifyTrainDataRegionTagAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyTrainDataRegionTagAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyTrainDataRegionTagAttributeOutcome(ModifyTrainDataRegionTagAttributeResult(outcome.result())); + else + return ModifyTrainDataRegionTagAttributeOutcome(outcome.error()); +} + +void IvisionClient::modifyTrainDataRegionTagAttributeAsync(const ModifyTrainDataRegionTagAttributeRequest& request, const ModifyTrainDataRegionTagAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyTrainDataRegionTagAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IvisionClient::ModifyTrainDataRegionTagAttributeOutcomeCallable IvisionClient::modifyTrainDataRegionTagAttributeCallable(const ModifyTrainDataRegionTagAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyTrainDataRegionTagAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IvisionClient::DescribeTagsOutcome IvisionClient::describeTags(const DescribeTagsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeTagsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeTagsOutcome(DescribeTagsResult(outcome.result())); + else + return DescribeTagsOutcome(outcome.error()); +} + +void IvisionClient::describeTagsAsync(const DescribeTagsRequest& request, const DescribeTagsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeTags(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IvisionClient::DescribeTagsOutcomeCallable IvisionClient::describeTagsCallable(const DescribeTagsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeTags(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IvisionClient::DescribeStreamPredictResultOutcome IvisionClient::describeStreamPredictResult(const DescribeStreamPredictResultRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeStreamPredictResultOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeStreamPredictResultOutcome(DescribeStreamPredictResultResult(outcome.result())); + else + return DescribeStreamPredictResultOutcome(outcome.error()); +} + +void IvisionClient::describeStreamPredictResultAsync(const DescribeStreamPredictResultRequest& request, const DescribeStreamPredictResultAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeStreamPredictResult(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IvisionClient::DescribeStreamPredictResultOutcomeCallable IvisionClient::describeStreamPredictResultCallable(const DescribeStreamPredictResultRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeStreamPredictResult(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IvisionClient::CreateTrainDatasTagOutcome IvisionClient::createTrainDatasTag(const CreateTrainDatasTagRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateTrainDatasTagOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateTrainDatasTagOutcome(CreateTrainDatasTagResult(outcome.result())); + else + return CreateTrainDatasTagOutcome(outcome.error()); +} + +void IvisionClient::createTrainDatasTagAsync(const CreateTrainDatasTagRequest& request, const CreateTrainDatasTagAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createTrainDatasTag(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IvisionClient::CreateTrainDatasTagOutcomeCallable IvisionClient::createTrainDatasTagCallable(const CreateTrainDatasTagRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createTrainDatasTag(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IvisionClient::DeleteIterationOutcome IvisionClient::deleteIteration(const DeleteIterationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteIterationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteIterationOutcome(DeleteIterationResult(outcome.result())); + else + return DeleteIterationOutcome(outcome.error()); +} + +void IvisionClient::deleteIterationAsync(const DeleteIterationRequest& request, const DeleteIterationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteIteration(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IvisionClient::DeleteIterationOutcomeCallable IvisionClient::deleteIterationCallable(const DeleteIterationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteIteration(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IvisionClient::DeleteTrainDatasTagOutcome IvisionClient::deleteTrainDatasTag(const DeleteTrainDatasTagRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteTrainDatasTagOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteTrainDatasTagOutcome(DeleteTrainDatasTagResult(outcome.result())); + else + return DeleteTrainDatasTagOutcome(outcome.error()); +} + +void IvisionClient::deleteTrainDatasTagAsync(const DeleteTrainDatasTagRequest& request, const DeleteTrainDatasTagAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteTrainDatasTag(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IvisionClient::DeleteTrainDatasTagOutcomeCallable IvisionClient::deleteTrainDatasTagCallable(const DeleteTrainDatasTagRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteTrainDatasTag(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IvisionClient::CreateStreamPredictOutcome IvisionClient::createStreamPredict(const CreateStreamPredictRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateStreamPredictOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateStreamPredictOutcome(CreateStreamPredictResult(outcome.result())); + else + return CreateStreamPredictOutcome(outcome.error()); +} + +void IvisionClient::createStreamPredictAsync(const CreateStreamPredictRequest& request, const CreateStreamPredictAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createStreamPredict(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IvisionClient::CreateStreamPredictOutcomeCallable IvisionClient::createStreamPredictCallable(const CreateStreamPredictRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createStreamPredict(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IvisionClient::DeleteStreamPredictOutcome IvisionClient::deleteStreamPredict(const DeleteStreamPredictRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteStreamPredictOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteStreamPredictOutcome(DeleteStreamPredictResult(outcome.result())); + else + return DeleteStreamPredictOutcome(outcome.error()); +} + +void IvisionClient::deleteStreamPredictAsync(const DeleteStreamPredictRequest& request, const DeleteStreamPredictAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteStreamPredict(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IvisionClient::DeleteStreamPredictOutcomeCallable IvisionClient::deleteStreamPredictCallable(const DeleteStreamPredictRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteStreamPredict(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IvisionClient::ModifyProjectAttributeOutcome IvisionClient::modifyProjectAttribute(const ModifyProjectAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyProjectAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyProjectAttributeOutcome(ModifyProjectAttributeResult(outcome.result())); + else + return ModifyProjectAttributeOutcome(outcome.error()); +} + +void IvisionClient::modifyProjectAttributeAsync(const ModifyProjectAttributeRequest& request, const ModifyProjectAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyProjectAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IvisionClient::ModifyProjectAttributeOutcomeCallable IvisionClient::modifyProjectAttributeCallable(const ModifyProjectAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyProjectAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IvisionClient::DeleteTrainDatasOutcome IvisionClient::deleteTrainDatas(const DeleteTrainDatasRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteTrainDatasOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteTrainDatasOutcome(DeleteTrainDatasResult(outcome.result())); + else + return DeleteTrainDatasOutcome(outcome.error()); +} + +void IvisionClient::deleteTrainDatasAsync(const DeleteTrainDatasRequest& request, const DeleteTrainDatasAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteTrainDatas(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IvisionClient::DeleteTrainDatasOutcomeCallable IvisionClient::deleteTrainDatasCallable(const DeleteTrainDatasRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteTrainDatas(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IvisionClient::DescribeProjectsOutcome IvisionClient::describeProjects(const DescribeProjectsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeProjectsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeProjectsOutcome(DescribeProjectsResult(outcome.result())); + else + return DescribeProjectsOutcome(outcome.error()); +} + +void IvisionClient::describeProjectsAsync(const DescribeProjectsRequest& request, const DescribeProjectsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeProjects(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IvisionClient::DescribeProjectsOutcomeCallable IvisionClient::describeProjectsCallable(const DescribeProjectsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeProjects(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IvisionClient::DeleteProjectOutcome IvisionClient::deleteProject(const DeleteProjectRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteProjectOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteProjectOutcome(DeleteProjectResult(outcome.result())); + else + return DeleteProjectOutcome(outcome.error()); +} + +void IvisionClient::deleteProjectAsync(const DeleteProjectRequest& request, const DeleteProjectAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteProject(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IvisionClient::DeleteProjectOutcomeCallable IvisionClient::deleteProjectCallable(const DeleteProjectRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteProject(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IvisionClient::DescribePredictDatasOutcome IvisionClient::describePredictDatas(const DescribePredictDatasRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribePredictDatasOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribePredictDatasOutcome(DescribePredictDatasResult(outcome.result())); + else + return DescribePredictDatasOutcome(outcome.error()); +} + +void IvisionClient::describePredictDatasAsync(const DescribePredictDatasRequest& request, const DescribePredictDatasAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describePredictDatas(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IvisionClient::DescribePredictDatasOutcomeCallable IvisionClient::describePredictDatasCallable(const DescribePredictDatasRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describePredictDatas(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IvisionClient::CreateTrainDatasFromUrlsOutcome IvisionClient::createTrainDatasFromUrls(const CreateTrainDatasFromUrlsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateTrainDatasFromUrlsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateTrainDatasFromUrlsOutcome(CreateTrainDatasFromUrlsResult(outcome.result())); + else + return CreateTrainDatasFromUrlsOutcome(outcome.error()); +} + +void IvisionClient::createTrainDatasFromUrlsAsync(const CreateTrainDatasFromUrlsRequest& request, const CreateTrainDatasFromUrlsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createTrainDatasFromUrls(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IvisionClient::CreateTrainDatasFromUrlsOutcomeCallable IvisionClient::createTrainDatasFromUrlsCallable(const CreateTrainDatasFromUrlsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createTrainDatasFromUrls(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IvisionClient::DeletePredictDatasOutcome IvisionClient::deletePredictDatas(const DeletePredictDatasRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeletePredictDatasOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeletePredictDatasOutcome(DeletePredictDatasResult(outcome.result())); + else + return DeletePredictDatasOutcome(outcome.error()); +} + +void IvisionClient::deletePredictDatasAsync(const DeletePredictDatasRequest& request, const DeletePredictDatasAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deletePredictDatas(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IvisionClient::DeletePredictDatasOutcomeCallable IvisionClient::deletePredictDatasCallable(const DeletePredictDatasRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deletePredictDatas(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IvisionClient::DescribeTrainDatasOutcome IvisionClient::describeTrainDatas(const DescribeTrainDatasRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeTrainDatasOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeTrainDatasOutcome(DescribeTrainDatasResult(outcome.result())); + else + return DescribeTrainDatasOutcome(outcome.error()); +} + +void IvisionClient::describeTrainDatasAsync(const DescribeTrainDatasRequest& request, const DescribeTrainDatasAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeTrainDatas(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IvisionClient::DescribeTrainDatasOutcomeCallable IvisionClient::describeTrainDatasCallable(const DescribeTrainDatasRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeTrainDatas(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IvisionClient::CreateUploadTokenOutcome IvisionClient::createUploadToken(const CreateUploadTokenRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateUploadTokenOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateUploadTokenOutcome(CreateUploadTokenResult(outcome.result())); + else + return CreateUploadTokenOutcome(outcome.error()); +} + +void IvisionClient::createUploadTokenAsync(const CreateUploadTokenRequest& request, const CreateUploadTokenAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createUploadToken(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IvisionClient::CreateUploadTokenOutcomeCallable IvisionClient::createUploadTokenCallable(const CreateUploadTokenRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createUploadToken(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IvisionClient::PredictImageOutcome IvisionClient::predictImage(const PredictImageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PredictImageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PredictImageOutcome(PredictImageResult(outcome.result())); + else + return PredictImageOutcome(outcome.error()); +} + +void IvisionClient::predictImageAsync(const PredictImageRequest& request, const PredictImageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, predictImage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IvisionClient::PredictImageOutcomeCallable IvisionClient::predictImageCallable(const PredictImageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->predictImage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/ivision/src/model/CreateProjectRequest.cc b/ivision/src/model/CreateProjectRequest.cc new file mode 100644 index 000000000..59fa3c1f6 --- /dev/null +++ b/ivision/src/model/CreateProjectRequest.cc @@ -0,0 +1,313 @@ +/* + * 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::CreateProjectRequest; + +CreateProjectRequest::CreateProjectRequest() : + RpcServiceRequest("ivision", "2019-03-08", "CreateProject") +{} + +CreateProjectRequest::~CreateProjectRequest() +{} + +long CreateProjectRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateProjectRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long CreateProjectRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void CreateProjectRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool CreateProjectRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void CreateProjectRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string CreateProjectRequest::getDescription()const +{ + return description_; +} + +void CreateProjectRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string CreateProjectRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void CreateProjectRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string CreateProjectRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void CreateProjectRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string CreateProjectRequest::getCallerType()const +{ + return callerType_; +} + +void CreateProjectRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string CreateProjectRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateProjectRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string CreateProjectRequest::getSecurityToken()const +{ + return securityToken_; +} + +void CreateProjectRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string CreateProjectRequest::getRegionId()const +{ + return regionId_; +} + +void CreateProjectRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateProjectRequest::getRequestContent()const +{ + return requestContent_; +} + +void CreateProjectRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string CreateProjectRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void CreateProjectRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string CreateProjectRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void CreateProjectRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long CreateProjectRequest::getCallerUid()const +{ + return callerUid_; +} + +void CreateProjectRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string CreateProjectRequest::getShowLog()const +{ + return showLog_; +} + +void CreateProjectRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string CreateProjectRequest::getApp_ip()const +{ + return app_ip_; +} + +void CreateProjectRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string CreateProjectRequest::getPopProduct()const +{ + return popProduct_; +} + +void CreateProjectRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); +} + +std::string CreateProjectRequest::getCallerBid()const +{ + return callerBid_; +} + +void CreateProjectRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long CreateProjectRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateProjectRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateProjectRequest::getVersion()const +{ + return version_; +} + +void CreateProjectRequest::setVersion(const std::string& version) +{ + version_ = version; + setParameter("Version", version); +} + +bool CreateProjectRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void CreateProjectRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool CreateProjectRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void CreateProjectRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool CreateProjectRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void CreateProjectRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string CreateProjectRequest::getProType()const +{ + return proType_; +} + +void CreateProjectRequest::setProType(const std::string& proType) +{ + proType_ = proType; + setParameter("ProType", proType); +} + +std::string CreateProjectRequest::getRequestId()const +{ + return requestId_; +} + +void CreateProjectRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +std::string CreateProjectRequest::getName()const +{ + return name_; +} + +void CreateProjectRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + diff --git a/ivision/src/model/CreateProjectResult.cc b/ivision/src/model/CreateProjectResult.cc new file mode 100644 index 000000000..e06ac39d1 --- /dev/null +++ b/ivision/src/model/CreateProjectResult.cc @@ -0,0 +1,65 @@ +/* + * 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; + +CreateProjectResult::CreateProjectResult() : + ServiceResult() +{} + +CreateProjectResult::CreateProjectResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateProjectResult::~CreateProjectResult() +{} + +void CreateProjectResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto projectNode = value["Project"]; + if(!projectNode["ProjectId"].isNull()) + project_.projectId = projectNode["ProjectId"].asString(); + if(!projectNode["Name"].isNull()) + project_.name = projectNode["Name"].asString(); + if(!projectNode["Description"].isNull()) + project_.description = projectNode["Description"].asString(); + if(!projectNode["ProType"].isNull()) + project_.proType = projectNode["ProType"].asString(); + if(!projectNode["IterCount"].isNull()) + project_.iterCount = std::stoi(projectNode["IterCount"].asString()); + if(!projectNode["CreationTime"].isNull()) + project_.creationTime = projectNode["CreationTime"].asString(); + if(!projectNode["Status"].isNull()) + project_.status = projectNode["Status"].asString(); + +} + +CreateProjectResult::Project CreateProjectResult::getProject()const +{ + return project_; +} + diff --git a/ivision/src/model/CreateStreamPredictRequest.cc b/ivision/src/model/CreateStreamPredictRequest.cc new file mode 100644 index 000000000..e19f90f72 --- /dev/null +++ b/ivision/src/model/CreateStreamPredictRequest.cc @@ -0,0 +1,368 @@ +/* + * 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::CreateStreamPredictRequest; + +CreateStreamPredictRequest::CreateStreamPredictRequest() : + RpcServiceRequest("ivision", "2019-03-08", "CreateStreamPredict") +{} + +CreateStreamPredictRequest::~CreateStreamPredictRequest() +{} + +long CreateStreamPredictRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateStreamPredictRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long CreateStreamPredictRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void CreateStreamPredictRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool CreateStreamPredictRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void CreateStreamPredictRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string CreateStreamPredictRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void CreateStreamPredictRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string CreateStreamPredictRequest::getAutoStart()const +{ + return autoStart_; +} + +void CreateStreamPredictRequest::setAutoStart(const std::string& autoStart) +{ + autoStart_ = autoStart; + setParameter("AutoStart", autoStart); +} + +std::string CreateStreamPredictRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void CreateStreamPredictRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string CreateStreamPredictRequest::getCallerType()const +{ + return callerType_; +} + +void CreateStreamPredictRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string CreateStreamPredictRequest::getNotify()const +{ + return notify_; +} + +void CreateStreamPredictRequest::setNotify(const std::string& notify) +{ + notify_ = notify; + setParameter("Notify", notify); +} + +std::string CreateStreamPredictRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateStreamPredictRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string CreateStreamPredictRequest::getOutput()const +{ + return output_; +} + +void CreateStreamPredictRequest::setOutput(const std::string& output) +{ + output_ = output; + setParameter("Output", output); +} + +std::string CreateStreamPredictRequest::getUserData()const +{ + return userData_; +} + +void CreateStreamPredictRequest::setUserData(const std::string& userData) +{ + userData_ = userData; + setParameter("UserData", userData); +} + +std::string CreateStreamPredictRequest::getSecurityToken()const +{ + return securityToken_; +} + +void CreateStreamPredictRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string CreateStreamPredictRequest::getRegionId()const +{ + return regionId_; +} + +void CreateStreamPredictRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateStreamPredictRequest::getRequestContent()const +{ + return requestContent_; +} + +void CreateStreamPredictRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string CreateStreamPredictRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void CreateStreamPredictRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string CreateStreamPredictRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void CreateStreamPredictRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long CreateStreamPredictRequest::getCallerUid()const +{ + return callerUid_; +} + +void CreateStreamPredictRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string CreateStreamPredictRequest::getShowLog()const +{ + return showLog_; +} + +void CreateStreamPredictRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string CreateStreamPredictRequest::getApp_ip()const +{ + return app_ip_; +} + +void CreateStreamPredictRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string CreateStreamPredictRequest::getPopProduct()const +{ + return popProduct_; +} + +void CreateStreamPredictRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); +} + +std::string CreateStreamPredictRequest::getStreamType()const +{ + return streamType_; +} + +void CreateStreamPredictRequest::setStreamType(const std::string& streamType) +{ + streamType_ = streamType; + setParameter("StreamType", streamType); +} + +std::string CreateStreamPredictRequest::getStreamId()const +{ + return streamId_; +} + +void CreateStreamPredictRequest::setStreamId(const std::string& streamId) +{ + streamId_ = streamId; + setParameter("StreamId", streamId); +} + +std::string CreateStreamPredictRequest::getCallerBid()const +{ + return callerBid_; +} + +void CreateStreamPredictRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long CreateStreamPredictRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateStreamPredictRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateStreamPredictRequest::getVersion()const +{ + return version_; +} + +void CreateStreamPredictRequest::setVersion(const std::string& version) +{ + version_ = version; + setParameter("Version", version); +} + +bool CreateStreamPredictRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void CreateStreamPredictRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool CreateStreamPredictRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void CreateStreamPredictRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool CreateStreamPredictRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void CreateStreamPredictRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string CreateStreamPredictRequest::getProbabilityThresholds()const +{ + return probabilityThresholds_; +} + +void CreateStreamPredictRequest::setProbabilityThresholds(const std::string& probabilityThresholds) +{ + probabilityThresholds_ = probabilityThresholds; + setParameter("ProbabilityThresholds", probabilityThresholds); +} + +std::string CreateStreamPredictRequest::getModelIds()const +{ + return modelIds_; +} + +void CreateStreamPredictRequest::setModelIds(const std::string& modelIds) +{ + modelIds_ = modelIds; + setParameter("ModelIds", modelIds); +} + +std::string CreateStreamPredictRequest::getRequestId()const +{ + return requestId_; +} + +void CreateStreamPredictRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + diff --git a/ivision/src/model/CreateStreamPredictResult.cc b/ivision/src/model/CreateStreamPredictResult.cc new file mode 100644 index 000000000..0ce405404 --- /dev/null +++ b/ivision/src/model/CreateStreamPredictResult.cc @@ -0,0 +1,52 @@ +/* + * 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; + +CreateStreamPredictResult::CreateStreamPredictResult() : + ServiceResult() +{} + +CreateStreamPredictResult::CreateStreamPredictResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateStreamPredictResult::~CreateStreamPredictResult() +{} + +void CreateStreamPredictResult::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 CreateStreamPredictResult::getPredictId()const +{ + return predictId_; +} + diff --git a/ivision/src/model/CreateTagRequest.cc b/ivision/src/model/CreateTagRequest.cc new file mode 100644 index 000000000..3959bc9ce --- /dev/null +++ b/ivision/src/model/CreateTagRequest.cc @@ -0,0 +1,313 @@ +/* + * 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::CreateTagRequest; + +CreateTagRequest::CreateTagRequest() : + RpcServiceRequest("ivision", "2019-03-08", "CreateTag") +{} + +CreateTagRequest::~CreateTagRequest() +{} + +long CreateTagRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateTagRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long CreateTagRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void CreateTagRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool CreateTagRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void CreateTagRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string CreateTagRequest::getDescription()const +{ + return description_; +} + +void CreateTagRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string CreateTagRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void CreateTagRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string CreateTagRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void CreateTagRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string CreateTagRequest::getCallerType()const +{ + return callerType_; +} + +void CreateTagRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string CreateTagRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateTagRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string CreateTagRequest::getSecurityToken()const +{ + return securityToken_; +} + +void CreateTagRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string CreateTagRequest::getRegionId()const +{ + return regionId_; +} + +void CreateTagRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateTagRequest::getRequestContent()const +{ + return requestContent_; +} + +void CreateTagRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string CreateTagRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void CreateTagRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string CreateTagRequest::getProjectId()const +{ + return projectId_; +} + +void CreateTagRequest::setProjectId(const std::string& projectId) +{ + projectId_ = projectId; + setParameter("ProjectId", projectId); +} + +std::string CreateTagRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void CreateTagRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long CreateTagRequest::getCallerUid()const +{ + return callerUid_; +} + +void CreateTagRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string CreateTagRequest::getShowLog()const +{ + return showLog_; +} + +void CreateTagRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string CreateTagRequest::getApp_ip()const +{ + return app_ip_; +} + +void CreateTagRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string CreateTagRequest::getPopProduct()const +{ + return popProduct_; +} + +void CreateTagRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); +} + +std::string CreateTagRequest::getCallerBid()const +{ + return callerBid_; +} + +void CreateTagRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long CreateTagRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateTagRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateTagRequest::getVersion()const +{ + return version_; +} + +void CreateTagRequest::setVersion(const std::string& version) +{ + version_ = version; + setParameter("Version", version); +} + +bool CreateTagRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void CreateTagRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool CreateTagRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void CreateTagRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool CreateTagRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void CreateTagRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string CreateTagRequest::getRequestId()const +{ + return requestId_; +} + +void CreateTagRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +std::string CreateTagRequest::getName()const +{ + return name_; +} + +void CreateTagRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + diff --git a/ivision/src/model/CreateTagResult.cc b/ivision/src/model/CreateTagResult.cc new file mode 100644 index 000000000..f7141a31b --- /dev/null +++ b/ivision/src/model/CreateTagResult.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ivision; +using namespace AlibabaCloud::Ivision::Model; + +CreateTagResult::CreateTagResult() : + ServiceResult() +{} + +CreateTagResult::CreateTagResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateTagResult::~CreateTagResult() +{} + +void CreateTagResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto tagNode = value["Tag"]; + if(!tagNode["ProjectId"].isNull()) + tag_.projectId = tagNode["ProjectId"].asString(); + if(!tagNode["TagId"].isNull()) + tag_.tagId = tagNode["TagId"].asString(); + if(!tagNode["TagName"].isNull()) + tag_.tagName = tagNode["TagName"].asString(); + if(!tagNode["Description"].isNull()) + tag_.description = tagNode["Description"].asString(); + if(!tagNode["Count"].isNull()) + tag_.count = std::stoi(tagNode["Count"].asString()); + if(!tagNode["CreationTime"].isNull()) + tag_.creationTime = tagNode["CreationTime"].asString(); + +} + +CreateTagResult::Tag CreateTagResult::getTag()const +{ + return tag_; +} + diff --git a/ivision/src/model/CreateTrainDataRegionTagRequest.cc b/ivision/src/model/CreateTrainDataRegionTagRequest.cc new file mode 100644 index 000000000..13a4b5ac3 --- /dev/null +++ b/ivision/src/model/CreateTrainDataRegionTagRequest.cc @@ -0,0 +1,313 @@ +/* + * 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::CreateTrainDataRegionTagRequest; + +CreateTrainDataRegionTagRequest::CreateTrainDataRegionTagRequest() : + RpcServiceRequest("ivision", "2019-03-08", "CreateTrainDataRegionTag") +{} + +CreateTrainDataRegionTagRequest::~CreateTrainDataRegionTagRequest() +{} + +long CreateTrainDataRegionTagRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateTrainDataRegionTagRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long CreateTrainDataRegionTagRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void CreateTrainDataRegionTagRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool CreateTrainDataRegionTagRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void CreateTrainDataRegionTagRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string CreateTrainDataRegionTagRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void CreateTrainDataRegionTagRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string CreateTrainDataRegionTagRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void CreateTrainDataRegionTagRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string CreateTrainDataRegionTagRequest::getCallerType()const +{ + return callerType_; +} + +void CreateTrainDataRegionTagRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string CreateTrainDataRegionTagRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateTrainDataRegionTagRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string CreateTrainDataRegionTagRequest::getSecurityToken()const +{ + return securityToken_; +} + +void CreateTrainDataRegionTagRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string CreateTrainDataRegionTagRequest::getRegionId()const +{ + return regionId_; +} + +void CreateTrainDataRegionTagRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateTrainDataRegionTagRequest::getRequestContent()const +{ + return requestContent_; +} + +void CreateTrainDataRegionTagRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string CreateTrainDataRegionTagRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void CreateTrainDataRegionTagRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string CreateTrainDataRegionTagRequest::getProjectId()const +{ + return projectId_; +} + +void CreateTrainDataRegionTagRequest::setProjectId(const std::string& projectId) +{ + projectId_ = projectId; + setParameter("ProjectId", projectId); +} + +std::string CreateTrainDataRegionTagRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void CreateTrainDataRegionTagRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long CreateTrainDataRegionTagRequest::getCallerUid()const +{ + return callerUid_; +} + +void CreateTrainDataRegionTagRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string CreateTrainDataRegionTagRequest::getShowLog()const +{ + return showLog_; +} + +void CreateTrainDataRegionTagRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string CreateTrainDataRegionTagRequest::getApp_ip()const +{ + return app_ip_; +} + +void CreateTrainDataRegionTagRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string CreateTrainDataRegionTagRequest::getPopProduct()const +{ + return popProduct_; +} + +void CreateTrainDataRegionTagRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); +} + +std::string CreateTrainDataRegionTagRequest::getTagItems()const +{ + return tagItems_; +} + +void CreateTrainDataRegionTagRequest::setTagItems(const std::string& tagItems) +{ + tagItems_ = tagItems; + setParameter("TagItems", tagItems); +} + +std::string CreateTrainDataRegionTagRequest::getCallerBid()const +{ + return callerBid_; +} + +void CreateTrainDataRegionTagRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long CreateTrainDataRegionTagRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateTrainDataRegionTagRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateTrainDataRegionTagRequest::getVersion()const +{ + return version_; +} + +void CreateTrainDataRegionTagRequest::setVersion(const std::string& version) +{ + version_ = version; + setParameter("Version", version); +} + +bool CreateTrainDataRegionTagRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void CreateTrainDataRegionTagRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool CreateTrainDataRegionTagRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void CreateTrainDataRegionTagRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool CreateTrainDataRegionTagRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void CreateTrainDataRegionTagRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string CreateTrainDataRegionTagRequest::getDataId()const +{ + return dataId_; +} + +void CreateTrainDataRegionTagRequest::setDataId(const std::string& dataId) +{ + dataId_ = dataId; + setParameter("DataId", dataId); +} + +std::string CreateTrainDataRegionTagRequest::getRequestId()const +{ + return requestId_; +} + +void CreateTrainDataRegionTagRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + diff --git a/ivision/src/model/CreateTrainDataRegionTagResult.cc b/ivision/src/model/CreateTrainDataRegionTagResult.cc new file mode 100644 index 000000000..9b87b474e --- /dev/null +++ b/ivision/src/model/CreateTrainDataRegionTagResult.cc @@ -0,0 +1,86 @@ +/* + * 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; + +CreateTrainDataRegionTagResult::CreateTrainDataRegionTagResult() : + ServiceResult() +{} + +CreateTrainDataRegionTagResult::CreateTrainDataRegionTagResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateTrainDataRegionTagResult::~CreateTrainDataRegionTagResult() +{} + +void CreateTrainDataRegionTagResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto trainDataNode = value["TrainData"]; + if(!trainDataNode["ProjectId"].isNull()) + trainData_.projectId = trainDataNode["ProjectId"].asString(); + if(!trainDataNode["IterationId"].isNull()) + trainData_.iterationId = trainDataNode["IterationId"].asString(); + if(!trainDataNode["DataId"].isNull()) + trainData_.dataId = trainDataNode["DataId"].asString(); + if(!trainDataNode["DataName"].isNull()) + trainData_.dataName = trainDataNode["DataName"].asString(); + if(!trainDataNode["DataUrl"].isNull()) + trainData_.dataUrl = trainDataNode["DataUrl"].asString(); + if(!trainDataNode["CreationTime"].isNull()) + trainData_.creationTime = trainDataNode["CreationTime"].asString(); + if(!trainDataNode["Status"].isNull()) + trainData_.status = trainDataNode["Status"].asString(); + if(!trainDataNode["TagStatus"].isNull()) + trainData_.tagStatus = trainDataNode["TagStatus"].asString(); + auto allTagItems = value["TagItems"]["TagItem"]; + for (auto value : allTagItems) + { + TrainData::TagItem tagItemObject; + if(!value["TagId"].isNull()) + tagItemObject.tagId = value["TagId"].asString(); + if(!value["RegionType"].isNull()) + tagItemObject.regionType = value["RegionType"].asString(); + auto regionNode = value["Region"]; + if(!regionNode["Left"].isNull()) + tagItemObject.region.left = regionNode["Left"].asString(); + if(!regionNode["Top"].isNull()) + tagItemObject.region.top = regionNode["Top"].asString(); + if(!regionNode["Width"].isNull()) + tagItemObject.region.width = regionNode["Width"].asString(); + if(!regionNode["Height"].isNull()) + tagItemObject.region.height = regionNode["Height"].asString(); + trainData_.tagItems.push_back(tagItemObject); + } + +} + +CreateTrainDataRegionTagResult::TrainData CreateTrainDataRegionTagResult::getTrainData()const +{ + return trainData_; +} + diff --git a/ivision/src/model/CreateTrainDataTagRequest.cc b/ivision/src/model/CreateTrainDataTagRequest.cc new file mode 100644 index 000000000..ab3641079 --- /dev/null +++ b/ivision/src/model/CreateTrainDataTagRequest.cc @@ -0,0 +1,313 @@ +/* + * 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::CreateTrainDataTagRequest; + +CreateTrainDataTagRequest::CreateTrainDataTagRequest() : + RpcServiceRequest("ivision", "2019-03-08", "CreateTrainDataTag") +{} + +CreateTrainDataTagRequest::~CreateTrainDataTagRequest() +{} + +long CreateTrainDataTagRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateTrainDataTagRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long CreateTrainDataTagRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void CreateTrainDataTagRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool CreateTrainDataTagRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void CreateTrainDataTagRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string CreateTrainDataTagRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void CreateTrainDataTagRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string CreateTrainDataTagRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void CreateTrainDataTagRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string CreateTrainDataTagRequest::getCallerType()const +{ + return callerType_; +} + +void CreateTrainDataTagRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string CreateTrainDataTagRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateTrainDataTagRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string CreateTrainDataTagRequest::getSecurityToken()const +{ + return securityToken_; +} + +void CreateTrainDataTagRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string CreateTrainDataTagRequest::getRegionId()const +{ + return regionId_; +} + +void CreateTrainDataTagRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateTrainDataTagRequest::getRequestContent()const +{ + return requestContent_; +} + +void CreateTrainDataTagRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string CreateTrainDataTagRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void CreateTrainDataTagRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string CreateTrainDataTagRequest::getProjectId()const +{ + return projectId_; +} + +void CreateTrainDataTagRequest::setProjectId(const std::string& projectId) +{ + projectId_ = projectId; + setParameter("ProjectId", projectId); +} + +std::string CreateTrainDataTagRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void CreateTrainDataTagRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long CreateTrainDataTagRequest::getCallerUid()const +{ + return callerUid_; +} + +void CreateTrainDataTagRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string CreateTrainDataTagRequest::getShowLog()const +{ + return showLog_; +} + +void CreateTrainDataTagRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string CreateTrainDataTagRequest::getApp_ip()const +{ + return app_ip_; +} + +void CreateTrainDataTagRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string CreateTrainDataTagRequest::getPopProduct()const +{ + return popProduct_; +} + +void CreateTrainDataTagRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); +} + +std::string CreateTrainDataTagRequest::getTagItems()const +{ + return tagItems_; +} + +void CreateTrainDataTagRequest::setTagItems(const std::string& tagItems) +{ + tagItems_ = tagItems; + setParameter("TagItems", tagItems); +} + +std::string CreateTrainDataTagRequest::getCallerBid()const +{ + return callerBid_; +} + +void CreateTrainDataTagRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long CreateTrainDataTagRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateTrainDataTagRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateTrainDataTagRequest::getVersion()const +{ + return version_; +} + +void CreateTrainDataTagRequest::setVersion(const std::string& version) +{ + version_ = version; + setParameter("Version", version); +} + +bool CreateTrainDataTagRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void CreateTrainDataTagRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool CreateTrainDataTagRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void CreateTrainDataTagRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool CreateTrainDataTagRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void CreateTrainDataTagRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string CreateTrainDataTagRequest::getDataId()const +{ + return dataId_; +} + +void CreateTrainDataTagRequest::setDataId(const std::string& dataId) +{ + dataId_ = dataId; + setParameter("DataId", dataId); +} + +std::string CreateTrainDataTagRequest::getRequestId()const +{ + return requestId_; +} + +void CreateTrainDataTagRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + diff --git a/ivision/src/model/CreateTrainDataTagResult.cc b/ivision/src/model/CreateTrainDataTagResult.cc new file mode 100644 index 000000000..beb32f005 --- /dev/null +++ b/ivision/src/model/CreateTrainDataTagResult.cc @@ -0,0 +1,86 @@ +/* + * 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; + +CreateTrainDataTagResult::CreateTrainDataTagResult() : + ServiceResult() +{} + +CreateTrainDataTagResult::CreateTrainDataTagResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateTrainDataTagResult::~CreateTrainDataTagResult() +{} + +void CreateTrainDataTagResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto trainDataNode = value["TrainData"]; + if(!trainDataNode["ProjectId"].isNull()) + trainData_.projectId = trainDataNode["ProjectId"].asString(); + if(!trainDataNode["IterationId"].isNull()) + trainData_.iterationId = trainDataNode["IterationId"].asString(); + if(!trainDataNode["DataId"].isNull()) + trainData_.dataId = trainDataNode["DataId"].asString(); + if(!trainDataNode["DataName"].isNull()) + trainData_.dataName = trainDataNode["DataName"].asString(); + if(!trainDataNode["DataUrl"].isNull()) + trainData_.dataUrl = trainDataNode["DataUrl"].asString(); + if(!trainDataNode["CreationTime"].isNull()) + trainData_.creationTime = trainDataNode["CreationTime"].asString(); + if(!trainDataNode["Status"].isNull()) + trainData_.status = trainDataNode["Status"].asString(); + if(!trainDataNode["TagStatus"].isNull()) + trainData_.tagStatus = trainDataNode["TagStatus"].asString(); + auto allTagItems = value["TagItems"]["TagItem"]; + for (auto value : allTagItems) + { + TrainData::TagItem tagItemObject; + if(!value["TagId"].isNull()) + tagItemObject.tagId = value["TagId"].asString(); + if(!value["RegionType"].isNull()) + tagItemObject.regionType = value["RegionType"].asString(); + auto regionNode = value["Region"]; + if(!regionNode["Left"].isNull()) + tagItemObject.region.left = regionNode["Left"].asString(); + if(!regionNode["Top"].isNull()) + tagItemObject.region.top = regionNode["Top"].asString(); + if(!regionNode["Width"].isNull()) + tagItemObject.region.width = regionNode["Width"].asString(); + if(!regionNode["Height"].isNull()) + tagItemObject.region.height = regionNode["Height"].asString(); + trainData_.tagItems.push_back(tagItemObject); + } + +} + +CreateTrainDataTagResult::TrainData CreateTrainDataTagResult::getTrainData()const +{ + return trainData_; +} + diff --git a/ivision/src/model/CreateTrainDatasFromPredictionRequest.cc b/ivision/src/model/CreateTrainDatasFromPredictionRequest.cc new file mode 100644 index 000000000..056578c9f --- /dev/null +++ b/ivision/src/model/CreateTrainDatasFromPredictionRequest.cc @@ -0,0 +1,324 @@ +/* + * 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::CreateTrainDatasFromPredictionRequest; + +CreateTrainDatasFromPredictionRequest::CreateTrainDatasFromPredictionRequest() : + RpcServiceRequest("ivision", "2019-03-08", "CreateTrainDatasFromPrediction") +{} + +CreateTrainDatasFromPredictionRequest::~CreateTrainDatasFromPredictionRequest() +{} + +long CreateTrainDatasFromPredictionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateTrainDatasFromPredictionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long CreateTrainDatasFromPredictionRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void CreateTrainDatasFromPredictionRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool CreateTrainDatasFromPredictionRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void CreateTrainDatasFromPredictionRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string CreateTrainDatasFromPredictionRequest::getDataIds()const +{ + return dataIds_; +} + +void CreateTrainDatasFromPredictionRequest::setDataIds(const std::string& dataIds) +{ + dataIds_ = dataIds; + setParameter("DataIds", dataIds); +} + +std::string CreateTrainDatasFromPredictionRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void CreateTrainDatasFromPredictionRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string CreateTrainDatasFromPredictionRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void CreateTrainDatasFromPredictionRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string CreateTrainDatasFromPredictionRequest::getCallerType()const +{ + return callerType_; +} + +void CreateTrainDatasFromPredictionRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string CreateTrainDatasFromPredictionRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateTrainDatasFromPredictionRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string CreateTrainDatasFromPredictionRequest::getSecurityToken()const +{ + return securityToken_; +} + +void CreateTrainDatasFromPredictionRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string CreateTrainDatasFromPredictionRequest::getRegionId()const +{ + return regionId_; +} + +void CreateTrainDatasFromPredictionRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateTrainDatasFromPredictionRequest::getRequestContent()const +{ + return requestContent_; +} + +void CreateTrainDatasFromPredictionRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string CreateTrainDatasFromPredictionRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void CreateTrainDatasFromPredictionRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string CreateTrainDatasFromPredictionRequest::getProjectId()const +{ + return projectId_; +} + +void CreateTrainDatasFromPredictionRequest::setProjectId(const std::string& projectId) +{ + projectId_ = projectId; + setParameter("ProjectId", projectId); +} + +std::string CreateTrainDatasFromPredictionRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void CreateTrainDatasFromPredictionRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long CreateTrainDatasFromPredictionRequest::getCallerUid()const +{ + return callerUid_; +} + +void CreateTrainDatasFromPredictionRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string CreateTrainDatasFromPredictionRequest::getShowLog()const +{ + return showLog_; +} + +void CreateTrainDatasFromPredictionRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string CreateTrainDatasFromPredictionRequest::getApp_ip()const +{ + return app_ip_; +} + +void CreateTrainDatasFromPredictionRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string CreateTrainDatasFromPredictionRequest::getPopProduct()const +{ + return popProduct_; +} + +void CreateTrainDatasFromPredictionRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); +} + +std::string CreateTrainDatasFromPredictionRequest::getTagId()const +{ + return tagId_; +} + +void CreateTrainDatasFromPredictionRequest::setTagId(const std::string& tagId) +{ + tagId_ = tagId; + setParameter("TagId", tagId); +} + +std::string CreateTrainDatasFromPredictionRequest::getCallerBid()const +{ + return callerBid_; +} + +void CreateTrainDatasFromPredictionRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long CreateTrainDatasFromPredictionRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateTrainDatasFromPredictionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateTrainDatasFromPredictionRequest::getVersion()const +{ + return version_; +} + +void CreateTrainDatasFromPredictionRequest::setVersion(const std::string& version) +{ + version_ = version; + setParameter("Version", version); +} + +bool CreateTrainDatasFromPredictionRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void CreateTrainDatasFromPredictionRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool CreateTrainDatasFromPredictionRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void CreateTrainDatasFromPredictionRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool CreateTrainDatasFromPredictionRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void CreateTrainDatasFromPredictionRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string CreateTrainDatasFromPredictionRequest::getRequestId()const +{ + return requestId_; +} + +void CreateTrainDatasFromPredictionRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +std::string CreateTrainDatasFromPredictionRequest::getIterationId()const +{ + return iterationId_; +} + +void CreateTrainDatasFromPredictionRequest::setIterationId(const std::string& iterationId) +{ + iterationId_ = iterationId; + setParameter("IterationId", iterationId); +} + diff --git a/ivision/src/model/CreateTrainDatasFromPredictionResult.cc b/ivision/src/model/CreateTrainDatasFromPredictionResult.cc new file mode 100644 index 000000000..ed3664b63 --- /dev/null +++ b/ivision/src/model/CreateTrainDatasFromPredictionResult.cc @@ -0,0 +1,91 @@ +/* + * 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; + +CreateTrainDatasFromPredictionResult::CreateTrainDatasFromPredictionResult() : + ServiceResult() +{} + +CreateTrainDatasFromPredictionResult::CreateTrainDatasFromPredictionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateTrainDatasFromPredictionResult::~CreateTrainDatasFromPredictionResult() +{} + +void CreateTrainDatasFromPredictionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allTrainDatas = value["TrainDatas"]["TrainData"]; + for (auto value : allTrainDatas) + { + TrainData trainDatasObject; + if(!value["ProjectId"].isNull()) + trainDatasObject.projectId = value["ProjectId"].asString(); + if(!value["IterationId"].isNull()) + trainDatasObject.iterationId = value["IterationId"].asString(); + if(!value["DataId"].isNull()) + trainDatasObject.dataId = value["DataId"].asString(); + if(!value["DataName"].isNull()) + trainDatasObject.dataName = value["DataName"].asString(); + if(!value["DataUrl"].isNull()) + trainDatasObject.dataUrl = value["DataUrl"].asString(); + if(!value["CreationTime"].isNull()) + trainDatasObject.creationTime = value["CreationTime"].asString(); + if(!value["Status"].isNull()) + trainDatasObject.status = value["Status"].asString(); + if(!value["TagStatus"].isNull()) + trainDatasObject.tagStatus = value["TagStatus"].asString(); + auto allTagItems = value["TagItems"]["TagItem"]; + for (auto value : allTagItems) + { + TrainData::TagItem tagItemsObject; + if(!value["TagId"].isNull()) + tagItemsObject.tagId = value["TagId"].asString(); + if(!value["RegionType"].isNull()) + tagItemsObject.regionType = value["RegionType"].asString(); + auto regionNode = value["Region"]; + if(!regionNode["Left"].isNull()) + tagItemsObject.region.left = regionNode["Left"].asString(); + if(!regionNode["Top"].isNull()) + tagItemsObject.region.top = regionNode["Top"].asString(); + if(!regionNode["Width"].isNull()) + tagItemsObject.region.width = regionNode["Width"].asString(); + if(!regionNode["Height"].isNull()) + tagItemsObject.region.height = regionNode["Height"].asString(); + trainDatasObject.tagItems.push_back(tagItemsObject); + } + trainDatas_.push_back(trainDatasObject); + } + +} + +std::vector CreateTrainDatasFromPredictionResult::getTrainDatas()const +{ + return trainDatas_; +} + diff --git a/ivision/src/model/CreateTrainDatasFromUrlsRequest.cc b/ivision/src/model/CreateTrainDatasFromUrlsRequest.cc new file mode 100644 index 000000000..4fc3e8dca --- /dev/null +++ b/ivision/src/model/CreateTrainDatasFromUrlsRequest.cc @@ -0,0 +1,313 @@ +/* + * 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::CreateTrainDatasFromUrlsRequest; + +CreateTrainDatasFromUrlsRequest::CreateTrainDatasFromUrlsRequest() : + RpcServiceRequest("ivision", "2019-03-08", "CreateTrainDatasFromUrls") +{} + +CreateTrainDatasFromUrlsRequest::~CreateTrainDatasFromUrlsRequest() +{} + +long CreateTrainDatasFromUrlsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateTrainDatasFromUrlsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long CreateTrainDatasFromUrlsRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void CreateTrainDatasFromUrlsRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool CreateTrainDatasFromUrlsRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void CreateTrainDatasFromUrlsRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string CreateTrainDatasFromUrlsRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void CreateTrainDatasFromUrlsRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string CreateTrainDatasFromUrlsRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void CreateTrainDatasFromUrlsRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string CreateTrainDatasFromUrlsRequest::getCallerType()const +{ + return callerType_; +} + +void CreateTrainDatasFromUrlsRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string CreateTrainDatasFromUrlsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateTrainDatasFromUrlsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string CreateTrainDatasFromUrlsRequest::getUrls()const +{ + return urls_; +} + +void CreateTrainDatasFromUrlsRequest::setUrls(const std::string& urls) +{ + urls_ = urls; + setParameter("Urls", urls); +} + +std::string CreateTrainDatasFromUrlsRequest::getSecurityToken()const +{ + return securityToken_; +} + +void CreateTrainDatasFromUrlsRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string CreateTrainDatasFromUrlsRequest::getRegionId()const +{ + return regionId_; +} + +void CreateTrainDatasFromUrlsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateTrainDatasFromUrlsRequest::getRequestContent()const +{ + return requestContent_; +} + +void CreateTrainDatasFromUrlsRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string CreateTrainDatasFromUrlsRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void CreateTrainDatasFromUrlsRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string CreateTrainDatasFromUrlsRequest::getProjectId()const +{ + return projectId_; +} + +void CreateTrainDatasFromUrlsRequest::setProjectId(const std::string& projectId) +{ + projectId_ = projectId; + setParameter("ProjectId", projectId); +} + +std::string CreateTrainDatasFromUrlsRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void CreateTrainDatasFromUrlsRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long CreateTrainDatasFromUrlsRequest::getCallerUid()const +{ + return callerUid_; +} + +void CreateTrainDatasFromUrlsRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string CreateTrainDatasFromUrlsRequest::getShowLog()const +{ + return showLog_; +} + +void CreateTrainDatasFromUrlsRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string CreateTrainDatasFromUrlsRequest::getApp_ip()const +{ + return app_ip_; +} + +void CreateTrainDatasFromUrlsRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string CreateTrainDatasFromUrlsRequest::getPopProduct()const +{ + return popProduct_; +} + +void CreateTrainDatasFromUrlsRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); +} + +std::string CreateTrainDatasFromUrlsRequest::getTagId()const +{ + return tagId_; +} + +void CreateTrainDatasFromUrlsRequest::setTagId(const std::string& tagId) +{ + tagId_ = tagId; + setParameter("TagId", tagId); +} + +std::string CreateTrainDatasFromUrlsRequest::getCallerBid()const +{ + return callerBid_; +} + +void CreateTrainDatasFromUrlsRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long CreateTrainDatasFromUrlsRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateTrainDatasFromUrlsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateTrainDatasFromUrlsRequest::getVersion()const +{ + return version_; +} + +void CreateTrainDatasFromUrlsRequest::setVersion(const std::string& version) +{ + version_ = version; + setParameter("Version", version); +} + +bool CreateTrainDatasFromUrlsRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void CreateTrainDatasFromUrlsRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool CreateTrainDatasFromUrlsRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void CreateTrainDatasFromUrlsRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool CreateTrainDatasFromUrlsRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void CreateTrainDatasFromUrlsRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string CreateTrainDatasFromUrlsRequest::getRequestId()const +{ + return requestId_; +} + +void CreateTrainDatasFromUrlsRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + diff --git a/ivision/src/model/CreateTrainDatasFromUrlsResult.cc b/ivision/src/model/CreateTrainDatasFromUrlsResult.cc new file mode 100644 index 000000000..5c4bd4fa4 --- /dev/null +++ b/ivision/src/model/CreateTrainDatasFromUrlsResult.cc @@ -0,0 +1,91 @@ +/* + * 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; + +CreateTrainDatasFromUrlsResult::CreateTrainDatasFromUrlsResult() : + ServiceResult() +{} + +CreateTrainDatasFromUrlsResult::CreateTrainDatasFromUrlsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateTrainDatasFromUrlsResult::~CreateTrainDatasFromUrlsResult() +{} + +void CreateTrainDatasFromUrlsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allTrainDatas = value["TrainDatas"]["TrainData"]; + for (auto value : allTrainDatas) + { + TrainData trainDatasObject; + if(!value["ProjectId"].isNull()) + trainDatasObject.projectId = value["ProjectId"].asString(); + if(!value["IterationId"].isNull()) + trainDatasObject.iterationId = value["IterationId"].asString(); + if(!value["DataId"].isNull()) + trainDatasObject.dataId = value["DataId"].asString(); + if(!value["DataName"].isNull()) + trainDatasObject.dataName = value["DataName"].asString(); + if(!value["DataUrl"].isNull()) + trainDatasObject.dataUrl = value["DataUrl"].asString(); + if(!value["CreationTime"].isNull()) + trainDatasObject.creationTime = value["CreationTime"].asString(); + if(!value["Status"].isNull()) + trainDatasObject.status = value["Status"].asString(); + if(!value["TagStatus"].isNull()) + trainDatasObject.tagStatus = value["TagStatus"].asString(); + auto allTagItems = value["TagItems"]["TagItem"]; + for (auto value : allTagItems) + { + TrainData::TagItem tagItemsObject; + if(!value["TagId"].isNull()) + tagItemsObject.tagId = value["TagId"].asString(); + if(!value["RegionType"].isNull()) + tagItemsObject.regionType = value["RegionType"].asString(); + auto regionNode = value["Region"]; + if(!regionNode["Left"].isNull()) + tagItemsObject.region.left = regionNode["Left"].asString(); + if(!regionNode["Top"].isNull()) + tagItemsObject.region.top = regionNode["Top"].asString(); + if(!regionNode["Width"].isNull()) + tagItemsObject.region.width = regionNode["Width"].asString(); + if(!regionNode["Height"].isNull()) + tagItemsObject.region.height = regionNode["Height"].asString(); + trainDatasObject.tagItems.push_back(tagItemsObject); + } + trainDatas_.push_back(trainDatasObject); + } + +} + +std::vector CreateTrainDatasFromUrlsResult::getTrainDatas()const +{ + return trainDatas_; +} + diff --git a/ivision/src/model/CreateTrainDatasTagRequest.cc b/ivision/src/model/CreateTrainDatasTagRequest.cc new file mode 100644 index 000000000..03f2dded3 --- /dev/null +++ b/ivision/src/model/CreateTrainDatasTagRequest.cc @@ -0,0 +1,313 @@ +/* + * 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::CreateTrainDatasTagRequest; + +CreateTrainDatasTagRequest::CreateTrainDatasTagRequest() : + RpcServiceRequest("ivision", "2019-03-08", "CreateTrainDatasTag") +{} + +CreateTrainDatasTagRequest::~CreateTrainDatasTagRequest() +{} + +long CreateTrainDatasTagRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateTrainDatasTagRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long CreateTrainDatasTagRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void CreateTrainDatasTagRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool CreateTrainDatasTagRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void CreateTrainDatasTagRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string CreateTrainDatasTagRequest::getDataIds()const +{ + return dataIds_; +} + +void CreateTrainDatasTagRequest::setDataIds(const std::string& dataIds) +{ + dataIds_ = dataIds; + setParameter("DataIds", dataIds); +} + +std::string CreateTrainDatasTagRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void CreateTrainDatasTagRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string CreateTrainDatasTagRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void CreateTrainDatasTagRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string CreateTrainDatasTagRequest::getCallerType()const +{ + return callerType_; +} + +void CreateTrainDatasTagRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string CreateTrainDatasTagRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateTrainDatasTagRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string CreateTrainDatasTagRequest::getSecurityToken()const +{ + return securityToken_; +} + +void CreateTrainDatasTagRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string CreateTrainDatasTagRequest::getRegionId()const +{ + return regionId_; +} + +void CreateTrainDatasTagRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateTrainDatasTagRequest::getRequestContent()const +{ + return requestContent_; +} + +void CreateTrainDatasTagRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string CreateTrainDatasTagRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void CreateTrainDatasTagRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string CreateTrainDatasTagRequest::getProjectId()const +{ + return projectId_; +} + +void CreateTrainDatasTagRequest::setProjectId(const std::string& projectId) +{ + projectId_ = projectId; + setParameter("ProjectId", projectId); +} + +std::string CreateTrainDatasTagRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void CreateTrainDatasTagRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long CreateTrainDatasTagRequest::getCallerUid()const +{ + return callerUid_; +} + +void CreateTrainDatasTagRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string CreateTrainDatasTagRequest::getShowLog()const +{ + return showLog_; +} + +void CreateTrainDatasTagRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string CreateTrainDatasTagRequest::getApp_ip()const +{ + return app_ip_; +} + +void CreateTrainDatasTagRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string CreateTrainDatasTagRequest::getPopProduct()const +{ + return popProduct_; +} + +void CreateTrainDatasTagRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); +} + +std::string CreateTrainDatasTagRequest::getTagId()const +{ + return tagId_; +} + +void CreateTrainDatasTagRequest::setTagId(const std::string& tagId) +{ + tagId_ = tagId; + setParameter("TagId", tagId); +} + +std::string CreateTrainDatasTagRequest::getCallerBid()const +{ + return callerBid_; +} + +void CreateTrainDatasTagRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long CreateTrainDatasTagRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateTrainDatasTagRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateTrainDatasTagRequest::getVersion()const +{ + return version_; +} + +void CreateTrainDatasTagRequest::setVersion(const std::string& version) +{ + version_ = version; + setParameter("Version", version); +} + +bool CreateTrainDatasTagRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void CreateTrainDatasTagRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool CreateTrainDatasTagRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void CreateTrainDatasTagRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool CreateTrainDatasTagRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void CreateTrainDatasTagRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string CreateTrainDatasTagRequest::getRequestId()const +{ + return requestId_; +} + +void CreateTrainDatasTagRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + diff --git a/ivision/src/model/CreateTrainDatasTagResult.cc b/ivision/src/model/CreateTrainDatasTagResult.cc new file mode 100644 index 000000000..634f7c091 --- /dev/null +++ b/ivision/src/model/CreateTrainDatasTagResult.cc @@ -0,0 +1,86 @@ +/* + * 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; + +CreateTrainDatasTagResult::CreateTrainDatasTagResult() : + ServiceResult() +{} + +CreateTrainDatasTagResult::CreateTrainDatasTagResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateTrainDatasTagResult::~CreateTrainDatasTagResult() +{} + +void CreateTrainDatasTagResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto trainDataNode = value["TrainData"]; + if(!trainDataNode["ProjectId"].isNull()) + trainData_.projectId = trainDataNode["ProjectId"].asString(); + if(!trainDataNode["IterationId"].isNull()) + trainData_.iterationId = trainDataNode["IterationId"].asString(); + if(!trainDataNode["DataId"].isNull()) + trainData_.dataId = trainDataNode["DataId"].asString(); + if(!trainDataNode["DataName"].isNull()) + trainData_.dataName = trainDataNode["DataName"].asString(); + if(!trainDataNode["DataUrl"].isNull()) + trainData_.dataUrl = trainDataNode["DataUrl"].asString(); + if(!trainDataNode["CreationTime"].isNull()) + trainData_.creationTime = trainDataNode["CreationTime"].asString(); + if(!trainDataNode["Status"].isNull()) + trainData_.status = trainDataNode["Status"].asString(); + if(!trainDataNode["TagStatus"].isNull()) + trainData_.tagStatus = trainDataNode["TagStatus"].asString(); + auto allTagItems = value["TagItems"]["TagItem"]; + for (auto value : allTagItems) + { + TrainData::TagItem tagItemObject; + if(!value["TagId"].isNull()) + tagItemObject.tagId = value["TagId"].asString(); + if(!value["RegionType"].isNull()) + tagItemObject.regionType = value["RegionType"].asString(); + auto regionNode = value["Region"]; + if(!regionNode["Left"].isNull()) + tagItemObject.region.left = regionNode["Left"].asString(); + if(!regionNode["Top"].isNull()) + tagItemObject.region.top = regionNode["Top"].asString(); + if(!regionNode["Width"].isNull()) + tagItemObject.region.width = regionNode["Width"].asString(); + if(!regionNode["Height"].isNull()) + tagItemObject.region.height = regionNode["Height"].asString(); + trainData_.tagItems.push_back(tagItemObject); + } + +} + +CreateTrainDatasTagResult::TrainData CreateTrainDatasTagResult::getTrainData()const +{ + return trainData_; +} + diff --git a/ivision/src/model/CreateUploadTokenRequest.cc b/ivision/src/model/CreateUploadTokenRequest.cc new file mode 100644 index 000000000..967835766 --- /dev/null +++ b/ivision/src/model/CreateUploadTokenRequest.cc @@ -0,0 +1,302 @@ +/* + * 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::CreateUploadTokenRequest; + +CreateUploadTokenRequest::CreateUploadTokenRequest() : + RpcServiceRequest("ivision", "2019-03-08", "CreateUploadToken") +{} + +CreateUploadTokenRequest::~CreateUploadTokenRequest() +{} + +long CreateUploadTokenRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateUploadTokenRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long CreateUploadTokenRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void CreateUploadTokenRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool CreateUploadTokenRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void CreateUploadTokenRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string CreateUploadTokenRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void CreateUploadTokenRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string CreateUploadTokenRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void CreateUploadTokenRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string CreateUploadTokenRequest::getCallerType()const +{ + return callerType_; +} + +void CreateUploadTokenRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string CreateUploadTokenRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateUploadTokenRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string CreateUploadTokenRequest::getSecurityToken()const +{ + return securityToken_; +} + +void CreateUploadTokenRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string CreateUploadTokenRequest::getRegionId()const +{ + return regionId_; +} + +void CreateUploadTokenRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateUploadTokenRequest::getRequestContent()const +{ + return requestContent_; +} + +void CreateUploadTokenRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string CreateUploadTokenRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void CreateUploadTokenRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string CreateUploadTokenRequest::getProjectId()const +{ + return projectId_; +} + +void CreateUploadTokenRequest::setProjectId(const std::string& projectId) +{ + projectId_ = projectId; + setParameter("ProjectId", projectId); +} + +std::string CreateUploadTokenRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void CreateUploadTokenRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long CreateUploadTokenRequest::getCallerUid()const +{ + return callerUid_; +} + +void CreateUploadTokenRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string CreateUploadTokenRequest::getShowLog()const +{ + return showLog_; +} + +void CreateUploadTokenRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string CreateUploadTokenRequest::getApp_ip()const +{ + return app_ip_; +} + +void CreateUploadTokenRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string CreateUploadTokenRequest::getPopProduct()const +{ + return popProduct_; +} + +void CreateUploadTokenRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); +} + +std::string CreateUploadTokenRequest::getCallerBid()const +{ + return callerBid_; +} + +void CreateUploadTokenRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long CreateUploadTokenRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateUploadTokenRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateUploadTokenRequest::getVersion()const +{ + return version_; +} + +void CreateUploadTokenRequest::setVersion(const std::string& version) +{ + version_ = version; + setParameter("Version", version); +} + +bool CreateUploadTokenRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void CreateUploadTokenRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool CreateUploadTokenRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void CreateUploadTokenRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool CreateUploadTokenRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void CreateUploadTokenRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string CreateUploadTokenRequest::getFileName()const +{ + return fileName_; +} + +void CreateUploadTokenRequest::setFileName(const std::string& fileName) +{ + fileName_ = fileName; + setParameter("FileName", fileName); +} + +std::string CreateUploadTokenRequest::getRequestId()const +{ + return requestId_; +} + +void CreateUploadTokenRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + diff --git a/ivision/src/model/CreateUploadTokenResult.cc b/ivision/src/model/CreateUploadTokenResult.cc new file mode 100644 index 000000000..073d48fe9 --- /dev/null +++ b/ivision/src/model/CreateUploadTokenResult.cc @@ -0,0 +1,67 @@ +/* + * 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; + +CreateUploadTokenResult::CreateUploadTokenResult() : + ServiceResult() +{} + +CreateUploadTokenResult::CreateUploadTokenResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateUploadTokenResult::~CreateUploadTokenResult() +{} + +void CreateUploadTokenResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto uploadTokenNode = value["UploadToken"]; + if(!uploadTokenNode["AccessKeyId"].isNull()) + uploadToken_.accessKeyId = uploadTokenNode["AccessKeyId"].asString(); + if(!uploadTokenNode["AccessKeySecret"].isNull()) + uploadToken_.accessKeySecret = uploadTokenNode["AccessKeySecret"].asString(); + if(!uploadTokenNode["SecurityToken"].isNull()) + uploadToken_.securityToken = uploadTokenNode["SecurityToken"].asString(); + if(!uploadTokenNode["Expiration"].isNull()) + uploadToken_.expiration = uploadTokenNode["Expiration"].asString(); + if(!uploadTokenNode["Bucket"].isNull()) + uploadToken_.bucket = uploadTokenNode["Bucket"].asString(); + if(!uploadTokenNode["Object"].isNull()) + uploadToken_.object = uploadTokenNode["Object"].asString(); + if(!uploadTokenNode["Endpoint"].isNull()) + uploadToken_.endpoint = uploadTokenNode["Endpoint"].asString(); + if(!uploadTokenNode["Url"].isNull()) + uploadToken_.url = uploadTokenNode["Url"].asString(); + +} + +CreateUploadTokenResult::UploadToken CreateUploadTokenResult::getUploadToken()const +{ + return uploadToken_; +} + diff --git a/ivision/src/model/DeleteIterationRequest.cc b/ivision/src/model/DeleteIterationRequest.cc new file mode 100644 index 000000000..d7d2c497f --- /dev/null +++ b/ivision/src/model/DeleteIterationRequest.cc @@ -0,0 +1,302 @@ +/* + * 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::DeleteIterationRequest; + +DeleteIterationRequest::DeleteIterationRequest() : + RpcServiceRequest("ivision", "2019-03-08", "DeleteIteration") +{} + +DeleteIterationRequest::~DeleteIterationRequest() +{} + +long DeleteIterationRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteIterationRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long DeleteIterationRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DeleteIterationRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DeleteIterationRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DeleteIterationRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DeleteIterationRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DeleteIterationRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DeleteIterationRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DeleteIterationRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DeleteIterationRequest::getCallerType()const +{ + return callerType_; +} + +void DeleteIterationRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string DeleteIterationRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DeleteIterationRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DeleteIterationRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DeleteIterationRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DeleteIterationRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteIterationRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteIterationRequest::getRequestContent()const +{ + return requestContent_; +} + +void DeleteIterationRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string DeleteIterationRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DeleteIterationRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string DeleteIterationRequest::getProjectId()const +{ + return projectId_; +} + +void DeleteIterationRequest::setProjectId(const std::string& projectId) +{ + projectId_ = projectId; + setParameter("ProjectId", projectId); +} + +std::string DeleteIterationRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DeleteIterationRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long DeleteIterationRequest::getCallerUid()const +{ + return callerUid_; +} + +void DeleteIterationRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DeleteIterationRequest::getShowLog()const +{ + return showLog_; +} + +void DeleteIterationRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string DeleteIterationRequest::getApp_ip()const +{ + return app_ip_; +} + +void DeleteIterationRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string DeleteIterationRequest::getPopProduct()const +{ + return popProduct_; +} + +void DeleteIterationRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); +} + +std::string DeleteIterationRequest::getCallerBid()const +{ + return callerBid_; +} + +void DeleteIterationRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long DeleteIterationRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteIterationRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeleteIterationRequest::getVersion()const +{ + return version_; +} + +void DeleteIterationRequest::setVersion(const std::string& version) +{ + version_ = version; + setParameter("Version", version); +} + +bool DeleteIterationRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DeleteIterationRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool DeleteIterationRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DeleteIterationRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DeleteIterationRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DeleteIterationRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DeleteIterationRequest::getRequestId()const +{ + return requestId_; +} + +void DeleteIterationRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +std::string DeleteIterationRequest::getIterationId()const +{ + return iterationId_; +} + +void DeleteIterationRequest::setIterationId(const std::string& iterationId) +{ + iterationId_ = iterationId; + setParameter("IterationId", iterationId); +} + diff --git a/ivision/src/model/DeleteIterationResult.cc b/ivision/src/model/DeleteIterationResult.cc new file mode 100644 index 000000000..470035d46 --- /dev/null +++ b/ivision/src/model/DeleteIterationResult.cc @@ -0,0 +1,52 @@ +/* + * 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; + +DeleteIterationResult::DeleteIterationResult() : + ServiceResult() +{} + +DeleteIterationResult::DeleteIterationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteIterationResult::~DeleteIterationResult() +{} + +void DeleteIterationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["IterationId"].isNull()) + iterationId_ = value["IterationId"].asString(); + +} + +std::string DeleteIterationResult::getIterationId()const +{ + return iterationId_; +} + diff --git a/ivision/src/model/DeletePredictDatasRequest.cc b/ivision/src/model/DeletePredictDatasRequest.cc new file mode 100644 index 000000000..f8b39655f --- /dev/null +++ b/ivision/src/model/DeletePredictDatasRequest.cc @@ -0,0 +1,313 @@ +/* + * 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::DeletePredictDatasRequest; + +DeletePredictDatasRequest::DeletePredictDatasRequest() : + RpcServiceRequest("ivision", "2019-03-08", "DeletePredictDatas") +{} + +DeletePredictDatasRequest::~DeletePredictDatasRequest() +{} + +long DeletePredictDatasRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeletePredictDatasRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long DeletePredictDatasRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DeletePredictDatasRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DeletePredictDatasRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DeletePredictDatasRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DeletePredictDatasRequest::getDataIds()const +{ + return dataIds_; +} + +void DeletePredictDatasRequest::setDataIds(const std::string& dataIds) +{ + dataIds_ = dataIds; + setParameter("DataIds", dataIds); +} + +std::string DeletePredictDatasRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DeletePredictDatasRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DeletePredictDatasRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DeletePredictDatasRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DeletePredictDatasRequest::getCallerType()const +{ + return callerType_; +} + +void DeletePredictDatasRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string DeletePredictDatasRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DeletePredictDatasRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DeletePredictDatasRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DeletePredictDatasRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DeletePredictDatasRequest::getRegionId()const +{ + return regionId_; +} + +void DeletePredictDatasRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeletePredictDatasRequest::getRequestContent()const +{ + return requestContent_; +} + +void DeletePredictDatasRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string DeletePredictDatasRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DeletePredictDatasRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string DeletePredictDatasRequest::getProjectId()const +{ + return projectId_; +} + +void DeletePredictDatasRequest::setProjectId(const std::string& projectId) +{ + projectId_ = projectId; + setParameter("ProjectId", projectId); +} + +std::string DeletePredictDatasRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DeletePredictDatasRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long DeletePredictDatasRequest::getCallerUid()const +{ + return callerUid_; +} + +void DeletePredictDatasRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DeletePredictDatasRequest::getShowLog()const +{ + return showLog_; +} + +void DeletePredictDatasRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string DeletePredictDatasRequest::getApp_ip()const +{ + return app_ip_; +} + +void DeletePredictDatasRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string DeletePredictDatasRequest::getPopProduct()const +{ + return popProduct_; +} + +void DeletePredictDatasRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); +} + +std::string DeletePredictDatasRequest::getCallerBid()const +{ + return callerBid_; +} + +void DeletePredictDatasRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long DeletePredictDatasRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeletePredictDatasRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeletePredictDatasRequest::getVersion()const +{ + return version_; +} + +void DeletePredictDatasRequest::setVersion(const std::string& version) +{ + version_ = version; + setParameter("Version", version); +} + +bool DeletePredictDatasRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DeletePredictDatasRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool DeletePredictDatasRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DeletePredictDatasRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DeletePredictDatasRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DeletePredictDatasRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DeletePredictDatasRequest::getRequestId()const +{ + return requestId_; +} + +void DeletePredictDatasRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +std::string DeletePredictDatasRequest::getIterationId()const +{ + return iterationId_; +} + +void DeletePredictDatasRequest::setIterationId(const std::string& iterationId) +{ + iterationId_ = iterationId; + setParameter("IterationId", iterationId); +} + diff --git a/ivision/src/model/DeletePredictDatasResult.cc b/ivision/src/model/DeletePredictDatasResult.cc new file mode 100644 index 000000000..d89c19ce1 --- /dev/null +++ b/ivision/src/model/DeletePredictDatasResult.cc @@ -0,0 +1,45 @@ +/* + * 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; + +DeletePredictDatasResult::DeletePredictDatasResult() : + ServiceResult() +{} + +DeletePredictDatasResult::DeletePredictDatasResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeletePredictDatasResult::~DeletePredictDatasResult() +{} + +void DeletePredictDatasResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ivision/src/model/DeleteProjectRequest.cc b/ivision/src/model/DeleteProjectRequest.cc new file mode 100644 index 000000000..a22213e9d --- /dev/null +++ b/ivision/src/model/DeleteProjectRequest.cc @@ -0,0 +1,291 @@ +/* + * 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::DeleteProjectRequest; + +DeleteProjectRequest::DeleteProjectRequest() : + RpcServiceRequest("ivision", "2019-03-08", "DeleteProject") +{} + +DeleteProjectRequest::~DeleteProjectRequest() +{} + +long DeleteProjectRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteProjectRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long DeleteProjectRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DeleteProjectRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DeleteProjectRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DeleteProjectRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DeleteProjectRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DeleteProjectRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DeleteProjectRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DeleteProjectRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DeleteProjectRequest::getCallerType()const +{ + return callerType_; +} + +void DeleteProjectRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string DeleteProjectRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DeleteProjectRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DeleteProjectRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DeleteProjectRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DeleteProjectRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteProjectRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteProjectRequest::getRequestContent()const +{ + return requestContent_; +} + +void DeleteProjectRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string DeleteProjectRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DeleteProjectRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string DeleteProjectRequest::getProjectId()const +{ + return projectId_; +} + +void DeleteProjectRequest::setProjectId(const std::string& projectId) +{ + projectId_ = projectId; + setParameter("ProjectId", projectId); +} + +std::string DeleteProjectRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DeleteProjectRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long DeleteProjectRequest::getCallerUid()const +{ + return callerUid_; +} + +void DeleteProjectRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DeleteProjectRequest::getShowLog()const +{ + return showLog_; +} + +void DeleteProjectRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string DeleteProjectRequest::getApp_ip()const +{ + return app_ip_; +} + +void DeleteProjectRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string DeleteProjectRequest::getPopProduct()const +{ + return popProduct_; +} + +void DeleteProjectRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); +} + +std::string DeleteProjectRequest::getCallerBid()const +{ + return callerBid_; +} + +void DeleteProjectRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long DeleteProjectRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteProjectRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeleteProjectRequest::getVersion()const +{ + return version_; +} + +void DeleteProjectRequest::setVersion(const std::string& version) +{ + version_ = version; + setParameter("Version", version); +} + +bool DeleteProjectRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DeleteProjectRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool DeleteProjectRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DeleteProjectRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DeleteProjectRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DeleteProjectRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DeleteProjectRequest::getRequestId()const +{ + return requestId_; +} + +void DeleteProjectRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + diff --git a/ivision/src/model/DeleteProjectResult.cc b/ivision/src/model/DeleteProjectResult.cc new file mode 100644 index 000000000..a06f46b3a --- /dev/null +++ b/ivision/src/model/DeleteProjectResult.cc @@ -0,0 +1,52 @@ +/* + * 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; + +DeleteProjectResult::DeleteProjectResult() : + ServiceResult() +{} + +DeleteProjectResult::DeleteProjectResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteProjectResult::~DeleteProjectResult() +{} + +void DeleteProjectResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["ProjectId"].isNull()) + projectId_ = value["ProjectId"].asString(); + +} + +std::string DeleteProjectResult::getProjectId()const +{ + return projectId_; +} + diff --git a/ivision/src/model/DeleteStreamPredictRequest.cc b/ivision/src/model/DeleteStreamPredictRequest.cc new file mode 100644 index 000000000..5c755e00c --- /dev/null +++ b/ivision/src/model/DeleteStreamPredictRequest.cc @@ -0,0 +1,291 @@ +/* + * 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::DeleteStreamPredictRequest; + +DeleteStreamPredictRequest::DeleteStreamPredictRequest() : + RpcServiceRequest("ivision", "2019-03-08", "DeleteStreamPredict") +{} + +DeleteStreamPredictRequest::~DeleteStreamPredictRequest() +{} + +long DeleteStreamPredictRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteStreamPredictRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long DeleteStreamPredictRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DeleteStreamPredictRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DeleteStreamPredictRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DeleteStreamPredictRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DeleteStreamPredictRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DeleteStreamPredictRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DeleteStreamPredictRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DeleteStreamPredictRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DeleteStreamPredictRequest::getCallerType()const +{ + return callerType_; +} + +void DeleteStreamPredictRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string DeleteStreamPredictRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DeleteStreamPredictRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DeleteStreamPredictRequest::getPredictId()const +{ + return predictId_; +} + +void DeleteStreamPredictRequest::setPredictId(const std::string& predictId) +{ + predictId_ = predictId; + setParameter("PredictId", predictId); +} + +std::string DeleteStreamPredictRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DeleteStreamPredictRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DeleteStreamPredictRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteStreamPredictRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteStreamPredictRequest::getRequestContent()const +{ + return requestContent_; +} + +void DeleteStreamPredictRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string DeleteStreamPredictRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DeleteStreamPredictRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string DeleteStreamPredictRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DeleteStreamPredictRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long DeleteStreamPredictRequest::getCallerUid()const +{ + return callerUid_; +} + +void DeleteStreamPredictRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DeleteStreamPredictRequest::getShowLog()const +{ + return showLog_; +} + +void DeleteStreamPredictRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string DeleteStreamPredictRequest::getApp_ip()const +{ + return app_ip_; +} + +void DeleteStreamPredictRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string DeleteStreamPredictRequest::getPopProduct()const +{ + return popProduct_; +} + +void DeleteStreamPredictRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); +} + +std::string DeleteStreamPredictRequest::getCallerBid()const +{ + return callerBid_; +} + +void DeleteStreamPredictRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long DeleteStreamPredictRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteStreamPredictRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeleteStreamPredictRequest::getVersion()const +{ + return version_; +} + +void DeleteStreamPredictRequest::setVersion(const std::string& version) +{ + version_ = version; + setParameter("Version", version); +} + +bool DeleteStreamPredictRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DeleteStreamPredictRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool DeleteStreamPredictRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DeleteStreamPredictRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DeleteStreamPredictRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DeleteStreamPredictRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DeleteStreamPredictRequest::getRequestId()const +{ + return requestId_; +} + +void DeleteStreamPredictRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + diff --git a/ivision/src/model/DeleteStreamPredictResult.cc b/ivision/src/model/DeleteStreamPredictResult.cc new file mode 100644 index 000000000..4be7ad565 --- /dev/null +++ b/ivision/src/model/DeleteStreamPredictResult.cc @@ -0,0 +1,52 @@ +/* + * 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; + +DeleteStreamPredictResult::DeleteStreamPredictResult() : + ServiceResult() +{} + +DeleteStreamPredictResult::DeleteStreamPredictResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteStreamPredictResult::~DeleteStreamPredictResult() +{} + +void DeleteStreamPredictResult::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 DeleteStreamPredictResult::getPredictId()const +{ + return predictId_; +} + diff --git a/ivision/src/model/DeleteTagRequest.cc b/ivision/src/model/DeleteTagRequest.cc new file mode 100644 index 000000000..32e98bd4a --- /dev/null +++ b/ivision/src/model/DeleteTagRequest.cc @@ -0,0 +1,302 @@ +/* + * 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::DeleteTagRequest; + +DeleteTagRequest::DeleteTagRequest() : + RpcServiceRequest("ivision", "2019-03-08", "DeleteTag") +{} + +DeleteTagRequest::~DeleteTagRequest() +{} + +long DeleteTagRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteTagRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long DeleteTagRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DeleteTagRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DeleteTagRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DeleteTagRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DeleteTagRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DeleteTagRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DeleteTagRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DeleteTagRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DeleteTagRequest::getCallerType()const +{ + return callerType_; +} + +void DeleteTagRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string DeleteTagRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DeleteTagRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DeleteTagRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DeleteTagRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DeleteTagRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteTagRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteTagRequest::getRequestContent()const +{ + return requestContent_; +} + +void DeleteTagRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string DeleteTagRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DeleteTagRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string DeleteTagRequest::getProjectId()const +{ + return projectId_; +} + +void DeleteTagRequest::setProjectId(const std::string& projectId) +{ + projectId_ = projectId; + setParameter("ProjectId", projectId); +} + +std::string DeleteTagRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DeleteTagRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long DeleteTagRequest::getCallerUid()const +{ + return callerUid_; +} + +void DeleteTagRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DeleteTagRequest::getShowLog()const +{ + return showLog_; +} + +void DeleteTagRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string DeleteTagRequest::getApp_ip()const +{ + return app_ip_; +} + +void DeleteTagRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string DeleteTagRequest::getPopProduct()const +{ + return popProduct_; +} + +void DeleteTagRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); +} + +std::string DeleteTagRequest::getTagId()const +{ + return tagId_; +} + +void DeleteTagRequest::setTagId(const std::string& tagId) +{ + tagId_ = tagId; + setParameter("TagId", tagId); +} + +std::string DeleteTagRequest::getCallerBid()const +{ + return callerBid_; +} + +void DeleteTagRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long DeleteTagRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteTagRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeleteTagRequest::getVersion()const +{ + return version_; +} + +void DeleteTagRequest::setVersion(const std::string& version) +{ + version_ = version; + setParameter("Version", version); +} + +bool DeleteTagRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DeleteTagRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool DeleteTagRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DeleteTagRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DeleteTagRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DeleteTagRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DeleteTagRequest::getRequestId()const +{ + return requestId_; +} + +void DeleteTagRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + diff --git a/ivision/src/model/DeleteTagResult.cc b/ivision/src/model/DeleteTagResult.cc new file mode 100644 index 000000000..476c64a7b --- /dev/null +++ b/ivision/src/model/DeleteTagResult.cc @@ -0,0 +1,52 @@ +/* + * 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; + +DeleteTagResult::DeleteTagResult() : + ServiceResult() +{} + +DeleteTagResult::DeleteTagResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteTagResult::~DeleteTagResult() +{} + +void DeleteTagResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["TagId"].isNull()) + tagId_ = value["TagId"].asString(); + +} + +std::string DeleteTagResult::getTagId()const +{ + return tagId_; +} + diff --git a/ivision/src/model/DeleteTrainDatasRequest.cc b/ivision/src/model/DeleteTrainDatasRequest.cc new file mode 100644 index 000000000..02ac1e2f6 --- /dev/null +++ b/ivision/src/model/DeleteTrainDatasRequest.cc @@ -0,0 +1,302 @@ +/* + * 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::DeleteTrainDatasRequest; + +DeleteTrainDatasRequest::DeleteTrainDatasRequest() : + RpcServiceRequest("ivision", "2019-03-08", "DeleteTrainDatas") +{} + +DeleteTrainDatasRequest::~DeleteTrainDatasRequest() +{} + +long DeleteTrainDatasRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteTrainDatasRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long DeleteTrainDatasRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DeleteTrainDatasRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DeleteTrainDatasRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DeleteTrainDatasRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DeleteTrainDatasRequest::getDataIds()const +{ + return dataIds_; +} + +void DeleteTrainDatasRequest::setDataIds(const std::string& dataIds) +{ + dataIds_ = dataIds; + setParameter("DataIds", dataIds); +} + +std::string DeleteTrainDatasRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DeleteTrainDatasRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DeleteTrainDatasRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DeleteTrainDatasRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DeleteTrainDatasRequest::getCallerType()const +{ + return callerType_; +} + +void DeleteTrainDatasRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string DeleteTrainDatasRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DeleteTrainDatasRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DeleteTrainDatasRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DeleteTrainDatasRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DeleteTrainDatasRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteTrainDatasRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteTrainDatasRequest::getRequestContent()const +{ + return requestContent_; +} + +void DeleteTrainDatasRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string DeleteTrainDatasRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DeleteTrainDatasRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string DeleteTrainDatasRequest::getProjectId()const +{ + return projectId_; +} + +void DeleteTrainDatasRequest::setProjectId(const std::string& projectId) +{ + projectId_ = projectId; + setParameter("ProjectId", projectId); +} + +std::string DeleteTrainDatasRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DeleteTrainDatasRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long DeleteTrainDatasRequest::getCallerUid()const +{ + return callerUid_; +} + +void DeleteTrainDatasRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DeleteTrainDatasRequest::getShowLog()const +{ + return showLog_; +} + +void DeleteTrainDatasRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string DeleteTrainDatasRequest::getApp_ip()const +{ + return app_ip_; +} + +void DeleteTrainDatasRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string DeleteTrainDatasRequest::getPopProduct()const +{ + return popProduct_; +} + +void DeleteTrainDatasRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); +} + +std::string DeleteTrainDatasRequest::getCallerBid()const +{ + return callerBid_; +} + +void DeleteTrainDatasRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long DeleteTrainDatasRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteTrainDatasRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeleteTrainDatasRequest::getVersion()const +{ + return version_; +} + +void DeleteTrainDatasRequest::setVersion(const std::string& version) +{ + version_ = version; + setParameter("Version", version); +} + +bool DeleteTrainDatasRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DeleteTrainDatasRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool DeleteTrainDatasRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DeleteTrainDatasRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DeleteTrainDatasRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DeleteTrainDatasRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DeleteTrainDatasRequest::getRequestId()const +{ + return requestId_; +} + +void DeleteTrainDatasRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + diff --git a/ivision/src/model/DeleteTrainDatasResult.cc b/ivision/src/model/DeleteTrainDatasResult.cc new file mode 100644 index 000000000..566c59f6a --- /dev/null +++ b/ivision/src/model/DeleteTrainDatasResult.cc @@ -0,0 +1,45 @@ +/* + * 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; + +DeleteTrainDatasResult::DeleteTrainDatasResult() : + ServiceResult() +{} + +DeleteTrainDatasResult::DeleteTrainDatasResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteTrainDatasResult::~DeleteTrainDatasResult() +{} + +void DeleteTrainDatasResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ivision/src/model/DeleteTrainDatasTagRequest.cc b/ivision/src/model/DeleteTrainDatasTagRequest.cc new file mode 100644 index 000000000..2e4671555 --- /dev/null +++ b/ivision/src/model/DeleteTrainDatasTagRequest.cc @@ -0,0 +1,313 @@ +/* + * 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::DeleteTrainDatasTagRequest; + +DeleteTrainDatasTagRequest::DeleteTrainDatasTagRequest() : + RpcServiceRequest("ivision", "2019-03-08", "DeleteTrainDatasTag") +{} + +DeleteTrainDatasTagRequest::~DeleteTrainDatasTagRequest() +{} + +long DeleteTrainDatasTagRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteTrainDatasTagRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long DeleteTrainDatasTagRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DeleteTrainDatasTagRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DeleteTrainDatasTagRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DeleteTrainDatasTagRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DeleteTrainDatasTagRequest::getDataIds()const +{ + return dataIds_; +} + +void DeleteTrainDatasTagRequest::setDataIds(const std::string& dataIds) +{ + dataIds_ = dataIds; + setParameter("DataIds", dataIds); +} + +std::string DeleteTrainDatasTagRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DeleteTrainDatasTagRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DeleteTrainDatasTagRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DeleteTrainDatasTagRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DeleteTrainDatasTagRequest::getCallerType()const +{ + return callerType_; +} + +void DeleteTrainDatasTagRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string DeleteTrainDatasTagRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DeleteTrainDatasTagRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DeleteTrainDatasTagRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DeleteTrainDatasTagRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DeleteTrainDatasTagRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteTrainDatasTagRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteTrainDatasTagRequest::getRequestContent()const +{ + return requestContent_; +} + +void DeleteTrainDatasTagRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string DeleteTrainDatasTagRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DeleteTrainDatasTagRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string DeleteTrainDatasTagRequest::getProjectId()const +{ + return projectId_; +} + +void DeleteTrainDatasTagRequest::setProjectId(const std::string& projectId) +{ + projectId_ = projectId; + setParameter("ProjectId", projectId); +} + +std::string DeleteTrainDatasTagRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DeleteTrainDatasTagRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long DeleteTrainDatasTagRequest::getCallerUid()const +{ + return callerUid_; +} + +void DeleteTrainDatasTagRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DeleteTrainDatasTagRequest::getShowLog()const +{ + return showLog_; +} + +void DeleteTrainDatasTagRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string DeleteTrainDatasTagRequest::getApp_ip()const +{ + return app_ip_; +} + +void DeleteTrainDatasTagRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string DeleteTrainDatasTagRequest::getPopProduct()const +{ + return popProduct_; +} + +void DeleteTrainDatasTagRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); +} + +std::string DeleteTrainDatasTagRequest::getTagId()const +{ + return tagId_; +} + +void DeleteTrainDatasTagRequest::setTagId(const std::string& tagId) +{ + tagId_ = tagId; + setParameter("TagId", tagId); +} + +std::string DeleteTrainDatasTagRequest::getCallerBid()const +{ + return callerBid_; +} + +void DeleteTrainDatasTagRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long DeleteTrainDatasTagRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteTrainDatasTagRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeleteTrainDatasTagRequest::getVersion()const +{ + return version_; +} + +void DeleteTrainDatasTagRequest::setVersion(const std::string& version) +{ + version_ = version; + setParameter("Version", version); +} + +bool DeleteTrainDatasTagRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DeleteTrainDatasTagRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool DeleteTrainDatasTagRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DeleteTrainDatasTagRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DeleteTrainDatasTagRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DeleteTrainDatasTagRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DeleteTrainDatasTagRequest::getRequestId()const +{ + return requestId_; +} + +void DeleteTrainDatasTagRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + diff --git a/ivision/src/model/DeleteTrainDatasTagResult.cc b/ivision/src/model/DeleteTrainDatasTagResult.cc new file mode 100644 index 000000000..434cfeac5 --- /dev/null +++ b/ivision/src/model/DeleteTrainDatasTagResult.cc @@ -0,0 +1,45 @@ +/* + * 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; + +DeleteTrainDatasTagResult::DeleteTrainDatasTagResult() : + ServiceResult() +{} + +DeleteTrainDatasTagResult::DeleteTrainDatasTagResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteTrainDatasTagResult::~DeleteTrainDatasTagResult() +{} + +void DeleteTrainDatasTagResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ivision/src/model/DescribeIterationsRequest.cc b/ivision/src/model/DescribeIterationsRequest.cc new file mode 100644 index 000000000..7b07931f2 --- /dev/null +++ b/ivision/src/model/DescribeIterationsRequest.cc @@ -0,0 +1,324 @@ +/* + * 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::DescribeIterationsRequest; + +DescribeIterationsRequest::DescribeIterationsRequest() : + RpcServiceRequest("ivision", "2019-03-08", "DescribeIterations") +{} + +DescribeIterationsRequest::~DescribeIterationsRequest() +{} + +long DescribeIterationsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeIterationsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long DescribeIterationsRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeIterationsRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DescribeIterationsRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeIterationsRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DescribeIterationsRequest::getThreshold()const +{ + return threshold_; +} + +void DescribeIterationsRequest::setThreshold(const std::string& threshold) +{ + threshold_ = threshold; + setParameter("Threshold", threshold); +} + +std::string DescribeIterationsRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeIterationsRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeIterationsRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeIterationsRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeIterationsRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeIterationsRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string DescribeIterationsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeIterationsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeIterationsRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeIterationsRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeIterationsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeIterationsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeIterationsRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeIterationsRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string DescribeIterationsRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeIterationsRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeIterationsRequest::getProjectId()const +{ + return projectId_; +} + +void DescribeIterationsRequest::setProjectId(const std::string& projectId) +{ + projectId_ = projectId; + setParameter("ProjectId", projectId); +} + +std::string DescribeIterationsRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeIterationsRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long DescribeIterationsRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeIterationsRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeIterationsRequest::getShowLog()const +{ + return showLog_; +} + +void DescribeIterationsRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string DescribeIterationsRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeIterationsRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string DescribeIterationsRequest::getPopProduct()const +{ + return popProduct_; +} + +void DescribeIterationsRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); +} + +std::string DescribeIterationsRequest::getIterationIds()const +{ + return iterationIds_; +} + +void DescribeIterationsRequest::setIterationIds(const std::string& iterationIds) +{ + iterationIds_ = iterationIds; + setParameter("IterationIds", iterationIds); +} + +std::string DescribeIterationsRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeIterationsRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long DescribeIterationsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeIterationsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeIterationsRequest::getVersion()const +{ + return version_; +} + +void DescribeIterationsRequest::setVersion(const std::string& version) +{ + version_ = version; + setParameter("Version", version); +} + +bool DescribeIterationsRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeIterationsRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool DescribeIterationsRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeIterationsRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DescribeIterationsRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeIterationsRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DescribeIterationsRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeIterationsRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +std::string DescribeIterationsRequest::getStatus()const +{ + return status_; +} + +void DescribeIterationsRequest::setStatus(const std::string& status) +{ + status_ = status; + setParameter("Status", status); +} + diff --git a/ivision/src/model/DescribeIterationsResult.cc b/ivision/src/model/DescribeIterationsResult.cc new file mode 100644 index 000000000..df087e063 --- /dev/null +++ b/ivision/src/model/DescribeIterationsResult.cc @@ -0,0 +1,104 @@ +/* + * 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; + +DescribeIterationsResult::DescribeIterationsResult() : + ServiceResult() +{} + +DescribeIterationsResult::DescribeIterationsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeIterationsResult::~DescribeIterationsResult() +{} + +void DescribeIterationsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allIterations = value["Iterations"]["Iteration"]; + for (auto value : allIterations) + { + Iteration iterationsObject; + if(!value["ProjectId"].isNull()) + iterationsObject.projectId = value["ProjectId"].asString(); + if(!value["IterationId"].isNull()) + iterationsObject.iterationId = value["IterationId"].asString(); + if(!value["IterationName"].isNull()) + iterationsObject.iterationName = value["IterationName"].asString(); + if(!value["Status"].isNull()) + iterationsObject.status = value["Status"].asString(); + if(!value["CreationTime"].isNull()) + iterationsObject.creationTime = value["CreationTime"].asString(); + if(!value["FinishTime"].isNull()) + iterationsObject.finishTime = value["FinishTime"].asString(); + if(!value["ModelId"].isNull()) + iterationsObject.modelId = value["ModelId"].asString(); + if(!value["Precision"].isNull()) + iterationsObject.precision = value["Precision"].asString(); + if(!value["Recall"].isNull()) + iterationsObject.recall = value["Recall"].asString(); + if(!value["MAP"].isNull()) + iterationsObject.mAP = value["MAP"].asString(); + iterations_.push_back(iterationsObject); + } + if(!value["TotalNum"].isNull()) + totalNum_ = std::stol(value["TotalNum"].asString()); + if(!value["CurrentPage"].isNull()) + currentPage_ = std::stol(value["CurrentPage"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stol(value["PageSize"].asString()); + if(!value["NextPageToken"].isNull()) + nextPageToken_ = value["NextPageToken"].asString(); + +} + +long DescribeIterationsResult::getTotalNum()const +{ + return totalNum_; +} + +long DescribeIterationsResult::getPageSize()const +{ + return pageSize_; +} + +long DescribeIterationsResult::getCurrentPage()const +{ + return currentPage_; +} + +std::string DescribeIterationsResult::getNextPageToken()const +{ + return nextPageToken_; +} + +std::vector DescribeIterationsResult::getIterations()const +{ + return iterations_; +} + diff --git a/ivision/src/model/DescribePredictDatasRequest.cc b/ivision/src/model/DescribePredictDatasRequest.cc new file mode 100644 index 000000000..1fc16f682 --- /dev/null +++ b/ivision/src/model/DescribePredictDatasRequest.cc @@ -0,0 +1,379 @@ +/* + * 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::DescribePredictDatasRequest; + +DescribePredictDatasRequest::DescribePredictDatasRequest() : + RpcServiceRequest("ivision", "2019-03-08", "DescribePredictDatas") +{} + +DescribePredictDatasRequest::~DescribePredictDatasRequest() +{} + +long DescribePredictDatasRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribePredictDatasRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribePredictDatasRequest::getNextPageToken()const +{ + return nextPageToken_; +} + +void DescribePredictDatasRequest::setNextPageToken(const std::string& nextPageToken) +{ + nextPageToken_ = nextPageToken; + setParameter("NextPageToken", nextPageToken); +} + +long DescribePredictDatasRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribePredictDatasRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DescribePredictDatasRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribePredictDatasRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DescribePredictDatasRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribePredictDatasRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribePredictDatasRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribePredictDatasRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribePredictDatasRequest::getCallerType()const +{ + return callerType_; +} + +void DescribePredictDatasRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string DescribePredictDatasRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribePredictDatasRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribePredictDatasRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribePredictDatasRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribePredictDatasRequest::getRegionId()const +{ + return regionId_; +} + +void DescribePredictDatasRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribePredictDatasRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribePredictDatasRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +long DescribePredictDatasRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribePredictDatasRequest::setPageSize(long pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribePredictDatasRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribePredictDatasRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribePredictDatasRequest::getProbabilityThreshold()const +{ + return probabilityThreshold_; +} + +void DescribePredictDatasRequest::setProbabilityThreshold(const std::string& probabilityThreshold) +{ + probabilityThreshold_ = probabilityThreshold; + setParameter("ProbabilityThreshold", probabilityThreshold); +} + +std::string DescribePredictDatasRequest::getOverlapThreshold()const +{ + return overlapThreshold_; +} + +void DescribePredictDatasRequest::setOverlapThreshold(const std::string& overlapThreshold) +{ + overlapThreshold_ = overlapThreshold; + setParameter("OverlapThreshold", overlapThreshold); +} + +std::string DescribePredictDatasRequest::getProjectId()const +{ + return projectId_; +} + +void DescribePredictDatasRequest::setProjectId(const std::string& projectId) +{ + projectId_ = projectId; + setParameter("ProjectId", projectId); +} + +std::string DescribePredictDatasRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribePredictDatasRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long DescribePredictDatasRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribePredictDatasRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribePredictDatasRequest::getShowLog()const +{ + return showLog_; +} + +void DescribePredictDatasRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string DescribePredictDatasRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribePredictDatasRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string DescribePredictDatasRequest::getPopProduct()const +{ + return popProduct_; +} + +void DescribePredictDatasRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); +} + +std::string DescribePredictDatasRequest::getModelId()const +{ + return modelId_; +} + +void DescribePredictDatasRequest::setModelId(const std::string& modelId) +{ + modelId_ = modelId; + setParameter("ModelId", modelId); +} + +std::string DescribePredictDatasRequest::getTagId()const +{ + return tagId_; +} + +void DescribePredictDatasRequest::setTagId(const std::string& tagId) +{ + tagId_ = tagId; + setParameter("TagId", tagId); +} + +long DescribePredictDatasRequest::getCurrentPage()const +{ + return currentPage_; +} + +void DescribePredictDatasRequest::setCurrentPage(long currentPage) +{ + currentPage_ = currentPage; + setParameter("CurrentPage", std::to_string(currentPage)); +} + +std::string DescribePredictDatasRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribePredictDatasRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long DescribePredictDatasRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribePredictDatasRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribePredictDatasRequest::getVersion()const +{ + return version_; +} + +void DescribePredictDatasRequest::setVersion(const std::string& version) +{ + version_ = version; + setParameter("Version", version); +} + +bool DescribePredictDatasRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribePredictDatasRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool DescribePredictDatasRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribePredictDatasRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DescribePredictDatasRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribePredictDatasRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DescribePredictDatasRequest::getRequestId()const +{ + return requestId_; +} + +void DescribePredictDatasRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +std::string DescribePredictDatasRequest::getIterationId()const +{ + return iterationId_; +} + +void DescribePredictDatasRequest::setIterationId(const std::string& iterationId) +{ + iterationId_ = iterationId; + setParameter("IterationId", iterationId); +} + diff --git a/ivision/src/model/DescribePredictDatasResult.cc b/ivision/src/model/DescribePredictDatasResult.cc new file mode 100644 index 000000000..6a752514c --- /dev/null +++ b/ivision/src/model/DescribePredictDatasResult.cc @@ -0,0 +1,129 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ivision; +using namespace AlibabaCloud::Ivision::Model; + +DescribePredictDatasResult::DescribePredictDatasResult() : + ServiceResult() +{} + +DescribePredictDatasResult::DescribePredictDatasResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribePredictDatasResult::~DescribePredictDatasResult() +{} + +void DescribePredictDatasResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allPredictDatas = value["PredictDatas"]["PredictData"]; + for (auto value : allPredictDatas) + { + PredictData predictDatasObject; + if(!value["ProjectId"].isNull()) + predictDatasObject.projectId = value["ProjectId"].asString(); + if(!value["IterationId"].isNull()) + predictDatasObject.iterationId = value["IterationId"].asString(); + if(!value["DataId"].isNull()) + predictDatasObject.dataId = value["DataId"].asString(); + if(!value["DataName"].isNull()) + predictDatasObject.dataName = value["DataName"].asString(); + if(!value["DataUrl"].isNull()) + predictDatasObject.dataUrl = value["DataUrl"].asString(); + if(!value["CreationTime"].isNull()) + predictDatasObject.creationTime = value["CreationTime"].asString(); + if(!value["Status"].isNull()) + predictDatasObject.status = value["Status"].asString(); + if(!value["ErrorCode"].isNull()) + predictDatasObject.errorCode = value["ErrorCode"].asString(); + if(!value["ErrorMessage"].isNull()) + predictDatasObject.errorMessage = value["ErrorMessage"].asString(); + auto allPredictionResults = value["PredictionResults"]["PredictionResult"]; + for (auto value : allPredictionResults) + { + PredictData::PredictionResult predictionResultsObject; + if(!value["TagId"].isNull()) + predictionResultsObject.tagId = value["TagId"].asString(); + if(!value["TagName"].isNull()) + predictionResultsObject.tagName = value["TagName"].asString(); + if(!value["Probability"].isNull()) + predictionResultsObject.probability = value["Probability"].asString(); + if(!value["Overlap"].isNull()) + predictionResultsObject.overlap = value["Overlap"].asString(); + if(!value["RegionType"].isNull()) + predictionResultsObject.regionType = value["RegionType"].asString(); + if(!value["Properties"].isNull()) + predictionResultsObject.properties = value["Properties"].asString(); + auto regionNode = value["Region"]; + if(!regionNode["Left"].isNull()) + predictionResultsObject.region.left = regionNode["Left"].asString(); + if(!regionNode["Top"].isNull()) + predictionResultsObject.region.top = regionNode["Top"].asString(); + if(!regionNode["Width"].isNull()) + predictionResultsObject.region.width = regionNode["Width"].asString(); + if(!regionNode["Height"].isNull()) + predictionResultsObject.region.height = regionNode["Height"].asString(); + predictDatasObject.predictionResults.push_back(predictionResultsObject); + } + predictDatas_.push_back(predictDatasObject); + } + if(!value["TotalNum"].isNull()) + totalNum_ = std::stol(value["TotalNum"].asString()); + if(!value["CurrentPage"].isNull()) + currentPage_ = std::stol(value["CurrentPage"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stol(value["PageSize"].asString()); + if(!value["NextPageToken"].isNull()) + nextPageToken_ = value["NextPageToken"].asString(); + +} + +std::vector DescribePredictDatasResult::getPredictDatas()const +{ + return predictDatas_; +} + +long DescribePredictDatasResult::getTotalNum()const +{ + return totalNum_; +} + +long DescribePredictDatasResult::getPageSize()const +{ + return pageSize_; +} + +long DescribePredictDatasResult::getCurrentPage()const +{ + return currentPage_; +} + +std::string DescribePredictDatasResult::getNextPageToken()const +{ + return nextPageToken_; +} + diff --git a/ivision/src/model/DescribeProjectsRequest.cc b/ivision/src/model/DescribeProjectsRequest.cc new file mode 100644 index 000000000..155f75371 --- /dev/null +++ b/ivision/src/model/DescribeProjectsRequest.cc @@ -0,0 +1,324 @@ +/* + * 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::DescribeProjectsRequest; + +DescribeProjectsRequest::DescribeProjectsRequest() : + RpcServiceRequest("ivision", "2019-03-08", "DescribeProjects") +{} + +DescribeProjectsRequest::~DescribeProjectsRequest() +{} + +long DescribeProjectsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeProjectsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeProjectsRequest::getNextPageToken()const +{ + return nextPageToken_; +} + +void DescribeProjectsRequest::setNextPageToken(const std::string& nextPageToken) +{ + nextPageToken_ = nextPageToken; + setParameter("NextPageToken", nextPageToken); +} + +long DescribeProjectsRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeProjectsRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DescribeProjectsRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeProjectsRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DescribeProjectsRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeProjectsRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeProjectsRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeProjectsRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeProjectsRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeProjectsRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string DescribeProjectsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeProjectsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeProjectsRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeProjectsRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeProjectsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeProjectsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeProjectsRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeProjectsRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +long DescribeProjectsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeProjectsRequest::setPageSize(long pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeProjectsRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeProjectsRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeProjectsRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeProjectsRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long DescribeProjectsRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeProjectsRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeProjectsRequest::getShowLog()const +{ + return showLog_; +} + +void DescribeProjectsRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string DescribeProjectsRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeProjectsRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string DescribeProjectsRequest::getPopProduct()const +{ + return popProduct_; +} + +void DescribeProjectsRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); +} + +long DescribeProjectsRequest::getCurrentPage()const +{ + return currentPage_; +} + +void DescribeProjectsRequest::setCurrentPage(long currentPage) +{ + currentPage_ = currentPage; + setParameter("CurrentPage", std::to_string(currentPage)); +} + +std::string DescribeProjectsRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeProjectsRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +std::string DescribeProjectsRequest::getProjectIds()const +{ + return projectIds_; +} + +void DescribeProjectsRequest::setProjectIds(const std::string& projectIds) +{ + projectIds_ = projectIds; + setParameter("ProjectIds", projectIds); +} + +long DescribeProjectsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeProjectsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeProjectsRequest::getVersion()const +{ + return version_; +} + +void DescribeProjectsRequest::setVersion(const std::string& version) +{ + version_ = version; + setParameter("Version", version); +} + +bool DescribeProjectsRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeProjectsRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool DescribeProjectsRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeProjectsRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DescribeProjectsRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeProjectsRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DescribeProjectsRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeProjectsRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + diff --git a/ivision/src/model/DescribeProjectsResult.cc b/ivision/src/model/DescribeProjectsResult.cc new file mode 100644 index 000000000..b8a35ff4e --- /dev/null +++ b/ivision/src/model/DescribeProjectsResult.cc @@ -0,0 +1,98 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ivision; +using namespace AlibabaCloud::Ivision::Model; + +DescribeProjectsResult::DescribeProjectsResult() : + ServiceResult() +{} + +DescribeProjectsResult::DescribeProjectsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeProjectsResult::~DescribeProjectsResult() +{} + +void DescribeProjectsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allProjects = value["Projects"]["Project"]; + for (auto value : allProjects) + { + Project projectsObject; + if(!value["ProjectId"].isNull()) + projectsObject.projectId = value["ProjectId"].asString(); + if(!value["Name"].isNull()) + projectsObject.name = value["Name"].asString(); + if(!value["Description"].isNull()) + projectsObject.description = value["Description"].asString(); + if(!value["ProType"].isNull()) + projectsObject.proType = value["ProType"].asString(); + if(!value["IterCount"].isNull()) + projectsObject.iterCount = std::stoi(value["IterCount"].asString()); + if(!value["CreationTime"].isNull()) + projectsObject.creationTime = value["CreationTime"].asString(); + if(!value["Status"].isNull()) + projectsObject.status = value["Status"].asString(); + projects_.push_back(projectsObject); + } + if(!value["TotalNum"].isNull()) + totalNum_ = std::stol(value["TotalNum"].asString()); + if(!value["CurrentPage"].isNull()) + currentPage_ = std::stol(value["CurrentPage"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stol(value["PageSize"].asString()); + if(!value["NextPageToken"].isNull()) + nextPageToken_ = value["NextPageToken"].asString(); + +} + +long DescribeProjectsResult::getTotalNum()const +{ + return totalNum_; +} + +long DescribeProjectsResult::getPageSize()const +{ + return pageSize_; +} + +long DescribeProjectsResult::getCurrentPage()const +{ + return currentPage_; +} + +std::string DescribeProjectsResult::getNextPageToken()const +{ + return nextPageToken_; +} + +std::vector DescribeProjectsResult::getProjects()const +{ + return projects_; +} + diff --git a/ivision/src/model/DescribeStreamPredictResultRequest.cc b/ivision/src/model/DescribeStreamPredictResultRequest.cc new file mode 100644 index 000000000..f62ebecee --- /dev/null +++ b/ivision/src/model/DescribeStreamPredictResultRequest.cc @@ -0,0 +1,368 @@ +/* + * 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::DescribeStreamPredictResultRequest; + +DescribeStreamPredictResultRequest::DescribeStreamPredictResultRequest() : + RpcServiceRequest("ivision", "2019-03-08", "DescribeStreamPredictResult") +{} + +DescribeStreamPredictResultRequest::~DescribeStreamPredictResultRequest() +{} + +long DescribeStreamPredictResultRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeStreamPredictResultRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeStreamPredictResultRequest::getNextPageToken()const +{ + return nextPageToken_; +} + +void DescribeStreamPredictResultRequest::setNextPageToken(const std::string& nextPageToken) +{ + nextPageToken_ = nextPageToken; + setParameter("NextPageToken", nextPageToken); +} + +long DescribeStreamPredictResultRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeStreamPredictResultRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DescribeStreamPredictResultRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeStreamPredictResultRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DescribeStreamPredictResultRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeStreamPredictResultRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +std::string DescribeStreamPredictResultRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeStreamPredictResultRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeStreamPredictResultRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeStreamPredictResultRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeStreamPredictResultRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeStreamPredictResultRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string DescribeStreamPredictResultRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeStreamPredictResultRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeStreamPredictResultRequest::getPredictId()const +{ + return predictId_; +} + +void DescribeStreamPredictResultRequest::setPredictId(const std::string& predictId) +{ + predictId_ = predictId; + setParameter("PredictId", predictId); +} + +std::string DescribeStreamPredictResultRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeStreamPredictResultRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeStreamPredictResultRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeStreamPredictResultRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeStreamPredictResultRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeStreamPredictResultRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +long DescribeStreamPredictResultRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeStreamPredictResultRequest::setPageSize(long pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeStreamPredictResultRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeStreamPredictResultRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeStreamPredictResultRequest::getProbabilityThreshold()const +{ + return probabilityThreshold_; +} + +void DescribeStreamPredictResultRequest::setProbabilityThreshold(const std::string& probabilityThreshold) +{ + probabilityThreshold_ = probabilityThreshold; + setParameter("ProbabilityThreshold", probabilityThreshold); +} + +std::string DescribeStreamPredictResultRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeStreamPredictResultRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long DescribeStreamPredictResultRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeStreamPredictResultRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeStreamPredictResultRequest::getShowLog()const +{ + return showLog_; +} + +void DescribeStreamPredictResultRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string DescribeStreamPredictResultRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeStreamPredictResultRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string DescribeStreamPredictResultRequest::getPopProduct()const +{ + return popProduct_; +} + +void DescribeStreamPredictResultRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); +} + +std::string DescribeStreamPredictResultRequest::getModelId()const +{ + return modelId_; +} + +void DescribeStreamPredictResultRequest::setModelId(const std::string& modelId) +{ + modelId_ = modelId; + setParameter("ModelId", modelId); +} + +std::string DescribeStreamPredictResultRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeStreamPredictResultRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +long DescribeStreamPredictResultRequest::getCurrentPage()const +{ + return currentPage_; +} + +void DescribeStreamPredictResultRequest::setCurrentPage(long currentPage) +{ + currentPage_ = currentPage; + setParameter("CurrentPage", std::to_string(currentPage)); +} + +std::string DescribeStreamPredictResultRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeStreamPredictResultRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long DescribeStreamPredictResultRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeStreamPredictResultRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeStreamPredictResultRequest::getVersion()const +{ + return version_; +} + +void DescribeStreamPredictResultRequest::setVersion(const std::string& version) +{ + version_ = version; + setParameter("Version", version); +} + +bool DescribeStreamPredictResultRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeStreamPredictResultRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool DescribeStreamPredictResultRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeStreamPredictResultRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DescribeStreamPredictResultRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeStreamPredictResultRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DescribeStreamPredictResultRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeStreamPredictResultRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + diff --git a/ivision/src/model/DescribeStreamPredictResultResult.cc b/ivision/src/model/DescribeStreamPredictResultResult.cc new file mode 100644 index 000000000..db2a6032f --- /dev/null +++ b/ivision/src/model/DescribeStreamPredictResultResult.cc @@ -0,0 +1,138 @@ +/* + * 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; + +DescribeStreamPredictResultResult::DescribeStreamPredictResultResult() : + ServiceResult() +{} + +DescribeStreamPredictResultResult::DescribeStreamPredictResultResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeStreamPredictResultResult::~DescribeStreamPredictResultResult() +{} + +void DescribeStreamPredictResultResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allStreamPredictDatas = value["StreamPredictDatas"]["StreamPredictData"]; + for (auto value : allStreamPredictDatas) + { + StreamPredictData streamPredictDatasObject; + if(!value["PredictId"].isNull()) + streamPredictDatasObject.predictId = value["PredictId"].asString(); + if(!value["ModelId"].isNull()) + streamPredictDatasObject.modelId = value["ModelId"].asString(); + if(!value["DataUrl"].isNull()) + streamPredictDatasObject.dataUrl = value["DataUrl"].asString(); + if(!value["StreamTimestamp"].isNull()) + streamPredictDatasObject.streamTimestamp = value["StreamTimestamp"].asString(); + if(!value["PredictTime"].isNull()) + streamPredictDatasObject.predictTime = value["PredictTime"].asString(); + if(!value["Status"].isNull()) + streamPredictDatasObject.status = value["Status"].asString(); + auto allResultStatistics = value["ResultStatistics"]["ResultStatisticsItem"]; + for (auto value : allResultStatistics) + { + StreamPredictData::ResultStatisticsItem resultStatisticsObject; + if(!value["TagId"].isNull()) + resultStatisticsObject.tagId = value["TagId"].asString(); + if(!value["TagName"].isNull()) + resultStatisticsObject.tagName = value["TagName"].asString(); + if(!value["Count"].isNull()) + resultStatisticsObject.count = std::stol(value["Count"].asString()); + streamPredictDatasObject.resultStatistics.push_back(resultStatisticsObject); + } + auto allPredictionResults = value["PredictionResults"]["PredictionResult"]; + for (auto value : allPredictionResults) + { + StreamPredictData::PredictionResult predictionResultsObject; + if(!value["TagId"].isNull()) + predictionResultsObject.tagId = value["TagId"].asString(); + if(!value["TagName"].isNull()) + predictionResultsObject.tagName = value["TagName"].asString(); + if(!value["Probability"].isNull()) + predictionResultsObject.probability = value["Probability"].asString(); + if(!value["Overlap"].isNull()) + predictionResultsObject.overlap = value["Overlap"].asString(); + if(!value["RegionType"].isNull()) + predictionResultsObject.regionType = value["RegionType"].asString(); + auto regionNode = value["Region"]; + if(!regionNode["Left"].isNull()) + predictionResultsObject.region.left = regionNode["Left"].asString(); + if(!regionNode["Top"].isNull()) + predictionResultsObject.region.top = regionNode["Top"].asString(); + if(!regionNode["Width"].isNull()) + predictionResultsObject.region.width = regionNode["Width"].asString(); + if(!regionNode["Height"].isNull()) + predictionResultsObject.region.height = regionNode["Height"].asString(); + auto propertiesNode = value["Properties"]; + if(!propertiesNode["WithGloves"].isNull()) + predictionResultsObject.properties.withGloves = propertiesNode["WithGloves"].asString(); + if(!propertiesNode["WithGlovesProbability"].isNull()) + predictionResultsObject.properties.withGlovesProbability = propertiesNode["WithGlovesProbability"].asString(); + streamPredictDatasObject.predictionResults.push_back(predictionResultsObject); + } + streamPredictDatas_.push_back(streamPredictDatasObject); + } + if(!value["TotalNum"].isNull()) + totalNum_ = std::stol(value["TotalNum"].asString()); + if(!value["CurrentPage"].isNull()) + currentPage_ = std::stol(value["CurrentPage"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stol(value["PageSize"].asString()); + if(!value["NextPageToken"].isNull()) + nextPageToken_ = value["NextPageToken"].asString(); + +} + +std::vector DescribeStreamPredictResultResult::getStreamPredictDatas()const +{ + return streamPredictDatas_; +} + +long DescribeStreamPredictResultResult::getTotalNum()const +{ + return totalNum_; +} + +long DescribeStreamPredictResultResult::getPageSize()const +{ + return pageSize_; +} + +long DescribeStreamPredictResultResult::getCurrentPage()const +{ + return currentPage_; +} + +std::string DescribeStreamPredictResultResult::getNextPageToken()const +{ + return nextPageToken_; +} + diff --git a/ivision/src/model/DescribeStreamPredictsRequest.cc b/ivision/src/model/DescribeStreamPredictsRequest.cc new file mode 100644 index 000000000..81c419c8e --- /dev/null +++ b/ivision/src/model/DescribeStreamPredictsRequest.cc @@ -0,0 +1,324 @@ +/* + * 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::DescribeStreamPredictsRequest; + +DescribeStreamPredictsRequest::DescribeStreamPredictsRequest() : + RpcServiceRequest("ivision", "2019-03-08", "DescribeStreamPredicts") +{} + +DescribeStreamPredictsRequest::~DescribeStreamPredictsRequest() +{} + +long DescribeStreamPredictsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeStreamPredictsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeStreamPredictsRequest::getNextPageToken()const +{ + return nextPageToken_; +} + +void DescribeStreamPredictsRequest::setNextPageToken(const std::string& nextPageToken) +{ + nextPageToken_ = nextPageToken; + setParameter("NextPageToken", nextPageToken); +} + +long DescribeStreamPredictsRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeStreamPredictsRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +std::string DescribeStreamPredictsRequest::getPredictIds()const +{ + return predictIds_; +} + +void DescribeStreamPredictsRequest::setPredictIds(const std::string& predictIds) +{ + predictIds_ = predictIds; + setParameter("PredictIds", predictIds); +} + +bool DescribeStreamPredictsRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeStreamPredictsRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DescribeStreamPredictsRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeStreamPredictsRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeStreamPredictsRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeStreamPredictsRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeStreamPredictsRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeStreamPredictsRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string DescribeStreamPredictsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeStreamPredictsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeStreamPredictsRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeStreamPredictsRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeStreamPredictsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeStreamPredictsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeStreamPredictsRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeStreamPredictsRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +long DescribeStreamPredictsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeStreamPredictsRequest::setPageSize(long pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeStreamPredictsRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeStreamPredictsRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeStreamPredictsRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeStreamPredictsRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long DescribeStreamPredictsRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeStreamPredictsRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeStreamPredictsRequest::getShowLog()const +{ + return showLog_; +} + +void DescribeStreamPredictsRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string DescribeStreamPredictsRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeStreamPredictsRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string DescribeStreamPredictsRequest::getPopProduct()const +{ + return popProduct_; +} + +void DescribeStreamPredictsRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); +} + +long DescribeStreamPredictsRequest::getCurrentPage()const +{ + return currentPage_; +} + +void DescribeStreamPredictsRequest::setCurrentPage(long currentPage) +{ + currentPage_ = currentPage; + setParameter("CurrentPage", std::to_string(currentPage)); +} + +std::string DescribeStreamPredictsRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeStreamPredictsRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long DescribeStreamPredictsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeStreamPredictsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeStreamPredictsRequest::getVersion()const +{ + return version_; +} + +void DescribeStreamPredictsRequest::setVersion(const std::string& version) +{ + version_ = version; + setParameter("Version", version); +} + +bool DescribeStreamPredictsRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeStreamPredictsRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool DescribeStreamPredictsRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeStreamPredictsRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DescribeStreamPredictsRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeStreamPredictsRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DescribeStreamPredictsRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeStreamPredictsRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + diff --git a/ivision/src/model/DescribeStreamPredictsResult.cc b/ivision/src/model/DescribeStreamPredictsResult.cc new file mode 100644 index 000000000..3235a1507 --- /dev/null +++ b/ivision/src/model/DescribeStreamPredictsResult.cc @@ -0,0 +1,104 @@ +/* + * 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; + +DescribeStreamPredictsResult::DescribeStreamPredictsResult() : + ServiceResult() +{} + +DescribeStreamPredictsResult::DescribeStreamPredictsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeStreamPredictsResult::~DescribeStreamPredictsResult() +{} + +void DescribeStreamPredictsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allStreamPredicts = value["StreamPredicts"]["StreamPredict"]; + for (auto value : allStreamPredicts) + { + StreamPredict streamPredictsObject; + if(!value["PredictId"].isNull()) + streamPredictsObject.predictId = value["PredictId"].asString(); + if(!value["StreamType"].isNull()) + streamPredictsObject.streamType = value["StreamType"].asString(); + if(!value["StreamId"].isNull()) + streamPredictsObject.streamId = value["StreamId"].asString(); + if(!value["ModelIds"].isNull()) + streamPredictsObject.modelIds = value["ModelIds"].asString(); + if(!value["ProbabilityThresholds"].isNull()) + streamPredictsObject.probabilityThresholds = value["ProbabilityThresholds"].asString(); + if(!value["Output"].isNull()) + streamPredictsObject.output = value["Output"].asString(); + if(!value["Notify"].isNull()) + streamPredictsObject.notify = value["Notify"].asString(); + if(!value["UserData"].isNull()) + streamPredictsObject.userData = value["UserData"].asString(); + if(!value["CreationTime"].isNull()) + streamPredictsObject.creationTime = value["CreationTime"].asString(); + if(!value["Status"].isNull()) + streamPredictsObject.status = value["Status"].asString(); + streamPredicts_.push_back(streamPredictsObject); + } + if(!value["TotalNum"].isNull()) + totalNum_ = std::stol(value["TotalNum"].asString()); + if(!value["CurrentPage"].isNull()) + currentPage_ = std::stol(value["CurrentPage"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stol(value["PageSize"].asString()); + if(!value["NextPageToken"].isNull()) + nextPageToken_ = value["NextPageToken"].asString(); + +} + +long DescribeStreamPredictsResult::getTotalNum()const +{ + return totalNum_; +} + +long DescribeStreamPredictsResult::getPageSize()const +{ + return pageSize_; +} + +long DescribeStreamPredictsResult::getCurrentPage()const +{ + return currentPage_; +} + +std::string DescribeStreamPredictsResult::getNextPageToken()const +{ + return nextPageToken_; +} + +std::vector DescribeStreamPredictsResult::getStreamPredicts()const +{ + return streamPredicts_; +} + diff --git a/ivision/src/model/DescribeTagsRequest.cc b/ivision/src/model/DescribeTagsRequest.cc new file mode 100644 index 000000000..f9959298f --- /dev/null +++ b/ivision/src/model/DescribeTagsRequest.cc @@ -0,0 +1,346 @@ +/* + * 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::DescribeTagsRequest; + +DescribeTagsRequest::DescribeTagsRequest() : + RpcServiceRequest("ivision", "2019-03-08", "DescribeTags") +{} + +DescribeTagsRequest::~DescribeTagsRequest() +{} + +long DescribeTagsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeTagsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeTagsRequest::getNextPageToken()const +{ + return nextPageToken_; +} + +void DescribeTagsRequest::setNextPageToken(const std::string& nextPageToken) +{ + nextPageToken_ = nextPageToken; + setParameter("NextPageToken", nextPageToken); +} + +long DescribeTagsRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeTagsRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DescribeTagsRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeTagsRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DescribeTagsRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeTagsRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeTagsRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeTagsRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeTagsRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeTagsRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string DescribeTagsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeTagsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeTagsRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeTagsRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeTagsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeTagsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeTagsRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeTagsRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +long DescribeTagsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeTagsRequest::setPageSize(long pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeTagsRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeTagsRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeTagsRequest::getProjectId()const +{ + return projectId_; +} + +void DescribeTagsRequest::setProjectId(const std::string& projectId) +{ + projectId_ = projectId; + setParameter("ProjectId", projectId); +} + +std::string DescribeTagsRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeTagsRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long DescribeTagsRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeTagsRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeTagsRequest::getShowLog()const +{ + return showLog_; +} + +void DescribeTagsRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string DescribeTagsRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeTagsRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string DescribeTagsRequest::getPopProduct()const +{ + return popProduct_; +} + +void DescribeTagsRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); +} + +std::string DescribeTagsRequest::getTagIds()const +{ + return tagIds_; +} + +void DescribeTagsRequest::setTagIds(const std::string& tagIds) +{ + tagIds_ = tagIds; + setParameter("TagIds", tagIds); +} + +long DescribeTagsRequest::getCurrentPage()const +{ + return currentPage_; +} + +void DescribeTagsRequest::setCurrentPage(long currentPage) +{ + currentPage_ = currentPage; + setParameter("CurrentPage", std::to_string(currentPage)); +} + +std::string DescribeTagsRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeTagsRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long DescribeTagsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeTagsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeTagsRequest::getVersion()const +{ + return version_; +} + +void DescribeTagsRequest::setVersion(const std::string& version) +{ + version_ = version; + setParameter("Version", version); +} + +bool DescribeTagsRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeTagsRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool DescribeTagsRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeTagsRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DescribeTagsRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeTagsRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DescribeTagsRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeTagsRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +std::string DescribeTagsRequest::getIterationId()const +{ + return iterationId_; +} + +void DescribeTagsRequest::setIterationId(const std::string& iterationId) +{ + iterationId_ = iterationId; + setParameter("IterationId", iterationId); +} + diff --git a/ivision/src/model/DescribeTagsResult.cc b/ivision/src/model/DescribeTagsResult.cc new file mode 100644 index 000000000..c3b96ba19 --- /dev/null +++ b/ivision/src/model/DescribeTagsResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Ivision; +using namespace AlibabaCloud::Ivision::Model; + +DescribeTagsResult::DescribeTagsResult() : + ServiceResult() +{} + +DescribeTagsResult::DescribeTagsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeTagsResult::~DescribeTagsResult() +{} + +void DescribeTagsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allTags = value["Tags"]["Tag"]; + for (auto value : allTags) + { + Tag tagsObject; + if(!value["ProjectId"].isNull()) + tagsObject.projectId = value["ProjectId"].asString(); + if(!value["TagId"].isNull()) + tagsObject.tagId = value["TagId"].asString(); + if(!value["TagName"].isNull()) + tagsObject.tagName = value["TagName"].asString(); + if(!value["Description"].isNull()) + tagsObject.description = value["Description"].asString(); + if(!value["Count"].isNull()) + tagsObject.count = std::stoi(value["Count"].asString()); + if(!value["CreationTime"].isNull()) + tagsObject.creationTime = value["CreationTime"].asString(); + tags_.push_back(tagsObject); + } + if(!value["TotalNum"].isNull()) + totalNum_ = std::stol(value["TotalNum"].asString()); + if(!value["CurrentPage"].isNull()) + currentPage_ = std::stol(value["CurrentPage"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stol(value["PageSize"].asString()); + if(!value["NextPageToken"].isNull()) + nextPageToken_ = value["NextPageToken"].asString(); + +} + +long DescribeTagsResult::getTotalNum()const +{ + return totalNum_; +} + +long DescribeTagsResult::getPageSize()const +{ + return pageSize_; +} + +long DescribeTagsResult::getCurrentPage()const +{ + return currentPage_; +} + +std::string DescribeTagsResult::getNextPageToken()const +{ + return nextPageToken_; +} + +std::vector DescribeTagsResult::getTags()const +{ + return tags_; +} + diff --git a/ivision/src/model/DescribeTrainDatasByIdsRequest.cc b/ivision/src/model/DescribeTrainDatasByIdsRequest.cc new file mode 100644 index 000000000..61ae70da0 --- /dev/null +++ b/ivision/src/model/DescribeTrainDatasByIdsRequest.cc @@ -0,0 +1,313 @@ +/* + * 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::DescribeTrainDatasByIdsRequest; + +DescribeTrainDatasByIdsRequest::DescribeTrainDatasByIdsRequest() : + RpcServiceRequest("ivision", "2019-03-08", "DescribeTrainDatasByIds") +{} + +DescribeTrainDatasByIdsRequest::~DescribeTrainDatasByIdsRequest() +{} + +long DescribeTrainDatasByIdsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeTrainDatasByIdsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long DescribeTrainDatasByIdsRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeTrainDatasByIdsRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DescribeTrainDatasByIdsRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeTrainDatasByIdsRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DescribeTrainDatasByIdsRequest::getDataIds()const +{ + return dataIds_; +} + +void DescribeTrainDatasByIdsRequest::setDataIds(const std::string& dataIds) +{ + dataIds_ = dataIds; + setParameter("DataIds", dataIds); +} + +std::string DescribeTrainDatasByIdsRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeTrainDatasByIdsRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeTrainDatasByIdsRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeTrainDatasByIdsRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeTrainDatasByIdsRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeTrainDatasByIdsRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string DescribeTrainDatasByIdsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeTrainDatasByIdsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeTrainDatasByIdsRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeTrainDatasByIdsRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeTrainDatasByIdsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeTrainDatasByIdsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeTrainDatasByIdsRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeTrainDatasByIdsRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string DescribeTrainDatasByIdsRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeTrainDatasByIdsRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeTrainDatasByIdsRequest::getProjectId()const +{ + return projectId_; +} + +void DescribeTrainDatasByIdsRequest::setProjectId(const std::string& projectId) +{ + projectId_ = projectId; + setParameter("ProjectId", projectId); +} + +std::string DescribeTrainDatasByIdsRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeTrainDatasByIdsRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long DescribeTrainDatasByIdsRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeTrainDatasByIdsRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeTrainDatasByIdsRequest::getShowLog()const +{ + return showLog_; +} + +void DescribeTrainDatasByIdsRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string DescribeTrainDatasByIdsRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeTrainDatasByIdsRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string DescribeTrainDatasByIdsRequest::getPopProduct()const +{ + return popProduct_; +} + +void DescribeTrainDatasByIdsRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); +} + +std::string DescribeTrainDatasByIdsRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeTrainDatasByIdsRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long DescribeTrainDatasByIdsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeTrainDatasByIdsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeTrainDatasByIdsRequest::getVersion()const +{ + return version_; +} + +void DescribeTrainDatasByIdsRequest::setVersion(const std::string& version) +{ + version_ = version; + setParameter("Version", version); +} + +bool DescribeTrainDatasByIdsRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeTrainDatasByIdsRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool DescribeTrainDatasByIdsRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeTrainDatasByIdsRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DescribeTrainDatasByIdsRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeTrainDatasByIdsRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DescribeTrainDatasByIdsRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeTrainDatasByIdsRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +std::string DescribeTrainDatasByIdsRequest::getIterationId()const +{ + return iterationId_; +} + +void DescribeTrainDatasByIdsRequest::setIterationId(const std::string& iterationId) +{ + iterationId_ = iterationId; + setParameter("IterationId", iterationId); +} + diff --git a/ivision/src/model/DescribeTrainDatasByIdsResult.cc b/ivision/src/model/DescribeTrainDatasByIdsResult.cc new file mode 100644 index 000000000..b18d40f6f --- /dev/null +++ b/ivision/src/model/DescribeTrainDatasByIdsResult.cc @@ -0,0 +1,91 @@ +/* + * 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; + +DescribeTrainDatasByIdsResult::DescribeTrainDatasByIdsResult() : + ServiceResult() +{} + +DescribeTrainDatasByIdsResult::DescribeTrainDatasByIdsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeTrainDatasByIdsResult::~DescribeTrainDatasByIdsResult() +{} + +void DescribeTrainDatasByIdsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allTrainDatas = value["TrainDatas"]["TrainData"]; + for (auto value : allTrainDatas) + { + TrainData trainDatasObject; + if(!value["ProjectId"].isNull()) + trainDatasObject.projectId = value["ProjectId"].asString(); + if(!value["IterationId"].isNull()) + trainDatasObject.iterationId = value["IterationId"].asString(); + if(!value["DataId"].isNull()) + trainDatasObject.dataId = value["DataId"].asString(); + if(!value["DataName"].isNull()) + trainDatasObject.dataName = value["DataName"].asString(); + if(!value["DataUrl"].isNull()) + trainDatasObject.dataUrl = value["DataUrl"].asString(); + if(!value["CreationTime"].isNull()) + trainDatasObject.creationTime = value["CreationTime"].asString(); + if(!value["Status"].isNull()) + trainDatasObject.status = value["Status"].asString(); + if(!value["TagStatus"].isNull()) + trainDatasObject.tagStatus = value["TagStatus"].asString(); + auto allTagItems = value["TagItems"]["TagItem"]; + for (auto value : allTagItems) + { + TrainData::TagItem tagItemsObject; + if(!value["TagId"].isNull()) + tagItemsObject.tagId = value["TagId"].asString(); + if(!value["RegionType"].isNull()) + tagItemsObject.regionType = value["RegionType"].asString(); + auto regionNode = value["Region"]; + if(!regionNode["Left"].isNull()) + tagItemsObject.region.left = regionNode["Left"].asString(); + if(!regionNode["Top"].isNull()) + tagItemsObject.region.top = regionNode["Top"].asString(); + if(!regionNode["Width"].isNull()) + tagItemsObject.region.width = regionNode["Width"].asString(); + if(!regionNode["Height"].isNull()) + tagItemsObject.region.height = regionNode["Height"].asString(); + trainDatasObject.tagItems.push_back(tagItemsObject); + } + trainDatas_.push_back(trainDatasObject); + } + +} + +std::vector DescribeTrainDatasByIdsResult::getTrainDatas()const +{ + return trainDatas_; +} + diff --git a/ivision/src/model/DescribeTrainDatasRequest.cc b/ivision/src/model/DescribeTrainDatasRequest.cc new file mode 100644 index 000000000..8cdbcb281 --- /dev/null +++ b/ivision/src/model/DescribeTrainDatasRequest.cc @@ -0,0 +1,357 @@ +/* + * 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::DescribeTrainDatasRequest; + +DescribeTrainDatasRequest::DescribeTrainDatasRequest() : + RpcServiceRequest("ivision", "2019-03-08", "DescribeTrainDatas") +{} + +DescribeTrainDatasRequest::~DescribeTrainDatasRequest() +{} + +long DescribeTrainDatasRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeTrainDatasRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeTrainDatasRequest::getNextPageToken()const +{ + return nextPageToken_; +} + +void DescribeTrainDatasRequest::setNextPageToken(const std::string& nextPageToken) +{ + nextPageToken_ = nextPageToken; + setParameter("NextPageToken", nextPageToken); +} + +long DescribeTrainDatasRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeTrainDatasRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DescribeTrainDatasRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeTrainDatasRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DescribeTrainDatasRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeTrainDatasRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeTrainDatasRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeTrainDatasRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeTrainDatasRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeTrainDatasRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string DescribeTrainDatasRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeTrainDatasRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeTrainDatasRequest::getTagStatus()const +{ + return tagStatus_; +} + +void DescribeTrainDatasRequest::setTagStatus(const std::string& tagStatus) +{ + tagStatus_ = tagStatus; + setParameter("TagStatus", tagStatus); +} + +std::string DescribeTrainDatasRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeTrainDatasRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeTrainDatasRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeTrainDatasRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeTrainDatasRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeTrainDatasRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +long DescribeTrainDatasRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeTrainDatasRequest::setPageSize(long pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeTrainDatasRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeTrainDatasRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeTrainDatasRequest::getProjectId()const +{ + return projectId_; +} + +void DescribeTrainDatasRequest::setProjectId(const std::string& projectId) +{ + projectId_ = projectId; + setParameter("ProjectId", projectId); +} + +std::string DescribeTrainDatasRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeTrainDatasRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long DescribeTrainDatasRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeTrainDatasRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeTrainDatasRequest::getShowLog()const +{ + return showLog_; +} + +void DescribeTrainDatasRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string DescribeTrainDatasRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeTrainDatasRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string DescribeTrainDatasRequest::getPopProduct()const +{ + return popProduct_; +} + +void DescribeTrainDatasRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); +} + +std::string DescribeTrainDatasRequest::getTagId()const +{ + return tagId_; +} + +void DescribeTrainDatasRequest::setTagId(const std::string& tagId) +{ + tagId_ = tagId; + setParameter("TagId", tagId); +} + +long DescribeTrainDatasRequest::getCurrentPage()const +{ + return currentPage_; +} + +void DescribeTrainDatasRequest::setCurrentPage(long currentPage) +{ + currentPage_ = currentPage; + setParameter("CurrentPage", std::to_string(currentPage)); +} + +std::string DescribeTrainDatasRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeTrainDatasRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long DescribeTrainDatasRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeTrainDatasRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeTrainDatasRequest::getVersion()const +{ + return version_; +} + +void DescribeTrainDatasRequest::setVersion(const std::string& version) +{ + version_ = version; + setParameter("Version", version); +} + +bool DescribeTrainDatasRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeTrainDatasRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool DescribeTrainDatasRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeTrainDatasRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DescribeTrainDatasRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeTrainDatasRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DescribeTrainDatasRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeTrainDatasRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +std::string DescribeTrainDatasRequest::getIterationId()const +{ + return iterationId_; +} + +void DescribeTrainDatasRequest::setIterationId(const std::string& iterationId) +{ + iterationId_ = iterationId; + setParameter("IterationId", iterationId); +} + diff --git a/ivision/src/model/DescribeTrainDatasResult.cc b/ivision/src/model/DescribeTrainDatasResult.cc new file mode 100644 index 000000000..4fc569cff --- /dev/null +++ b/ivision/src/model/DescribeTrainDatasResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Ivision; +using namespace AlibabaCloud::Ivision::Model; + +DescribeTrainDatasResult::DescribeTrainDatasResult() : + ServiceResult() +{} + +DescribeTrainDatasResult::DescribeTrainDatasResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeTrainDatasResult::~DescribeTrainDatasResult() +{} + +void DescribeTrainDatasResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allTrainDatas = value["TrainDatas"]["TrainData"]; + for (auto value : allTrainDatas) + { + TrainData trainDatasObject; + if(!value["ProjectId"].isNull()) + trainDatasObject.projectId = value["ProjectId"].asString(); + if(!value["IterationId"].isNull()) + trainDatasObject.iterationId = value["IterationId"].asString(); + if(!value["DataId"].isNull()) + trainDatasObject.dataId = value["DataId"].asString(); + if(!value["DataName"].isNull()) + trainDatasObject.dataName = value["DataName"].asString(); + if(!value["DataUrl"].isNull()) + trainDatasObject.dataUrl = value["DataUrl"].asString(); + if(!value["CreationTime"].isNull()) + trainDatasObject.creationTime = value["CreationTime"].asString(); + if(!value["Status"].isNull()) + trainDatasObject.status = value["Status"].asString(); + if(!value["TagStatus"].isNull()) + trainDatasObject.tagStatus = value["TagStatus"].asString(); + auto allTagItems = value["TagItems"]["TagItem"]; + for (auto value : allTagItems) + { + TrainData::TagItem tagItemsObject; + if(!value["TagId"].isNull()) + tagItemsObject.tagId = value["TagId"].asString(); + if(!value["RegionType"].isNull()) + tagItemsObject.regionType = value["RegionType"].asString(); + auto regionNode = value["Region"]; + if(!regionNode["Left"].isNull()) + tagItemsObject.region.left = regionNode["Left"].asString(); + if(!regionNode["Top"].isNull()) + tagItemsObject.region.top = regionNode["Top"].asString(); + if(!regionNode["Width"].isNull()) + tagItemsObject.region.width = regionNode["Width"].asString(); + if(!regionNode["Height"].isNull()) + tagItemsObject.region.height = regionNode["Height"].asString(); + trainDatasObject.tagItems.push_back(tagItemsObject); + } + trainDatas_.push_back(trainDatasObject); + } + if(!value["TotalNum"].isNull()) + totalNum_ = std::stol(value["TotalNum"].asString()); + if(!value["CurrentPage"].isNull()) + currentPage_ = std::stol(value["CurrentPage"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stol(value["PageSize"].asString()); + if(!value["NextPageToken"].isNull()) + nextPageToken_ = value["NextPageToken"].asString(); + +} + +long DescribeTrainDatasResult::getTotalNum()const +{ + return totalNum_; +} + +long DescribeTrainDatasResult::getPageSize()const +{ + return pageSize_; +} + +std::vector DescribeTrainDatasResult::getTrainDatas()const +{ + return trainDatas_; +} + +long DescribeTrainDatasResult::getCurrentPage()const +{ + return currentPage_; +} + +std::string DescribeTrainDatasResult::getNextPageToken()const +{ + return nextPageToken_; +} + diff --git a/ivision/src/model/DescribeTrainResultRequest.cc b/ivision/src/model/DescribeTrainResultRequest.cc new file mode 100644 index 000000000..d08cf5197 --- /dev/null +++ b/ivision/src/model/DescribeTrainResultRequest.cc @@ -0,0 +1,313 @@ +/* + * 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::DescribeTrainResultRequest; + +DescribeTrainResultRequest::DescribeTrainResultRequest() : + RpcServiceRequest("ivision", "2019-03-08", "DescribeTrainResult") +{} + +DescribeTrainResultRequest::~DescribeTrainResultRequest() +{} + +long DescribeTrainResultRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeTrainResultRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long DescribeTrainResultRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeTrainResultRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DescribeTrainResultRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeTrainResultRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DescribeTrainResultRequest::getThreshold()const +{ + return threshold_; +} + +void DescribeTrainResultRequest::setThreshold(const std::string& threshold) +{ + threshold_ = threshold; + setParameter("Threshold", threshold); +} + +std::string DescribeTrainResultRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeTrainResultRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeTrainResultRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeTrainResultRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeTrainResultRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeTrainResultRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string DescribeTrainResultRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeTrainResultRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeTrainResultRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeTrainResultRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeTrainResultRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeTrainResultRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeTrainResultRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeTrainResultRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string DescribeTrainResultRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeTrainResultRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeTrainResultRequest::getProjectId()const +{ + return projectId_; +} + +void DescribeTrainResultRequest::setProjectId(const std::string& projectId) +{ + projectId_ = projectId; + setParameter("ProjectId", projectId); +} + +std::string DescribeTrainResultRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeTrainResultRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long DescribeTrainResultRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeTrainResultRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeTrainResultRequest::getShowLog()const +{ + return showLog_; +} + +void DescribeTrainResultRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string DescribeTrainResultRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeTrainResultRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string DescribeTrainResultRequest::getPopProduct()const +{ + return popProduct_; +} + +void DescribeTrainResultRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); +} + +std::string DescribeTrainResultRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeTrainResultRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long DescribeTrainResultRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeTrainResultRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeTrainResultRequest::getVersion()const +{ + return version_; +} + +void DescribeTrainResultRequest::setVersion(const std::string& version) +{ + version_ = version; + setParameter("Version", version); +} + +bool DescribeTrainResultRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeTrainResultRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool DescribeTrainResultRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeTrainResultRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DescribeTrainResultRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeTrainResultRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DescribeTrainResultRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeTrainResultRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +std::string DescribeTrainResultRequest::getIterationId()const +{ + return iterationId_; +} + +void DescribeTrainResultRequest::setIterationId(const std::string& iterationId) +{ + iterationId_ = iterationId; + setParameter("IterationId", iterationId); +} + diff --git a/ivision/src/model/DescribeTrainResultResult.cc b/ivision/src/model/DescribeTrainResultResult.cc new file mode 100644 index 000000000..835b416ca --- /dev/null +++ b/ivision/src/model/DescribeTrainResultResult.cc @@ -0,0 +1,91 @@ +/* + * 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; + +DescribeTrainResultResult::DescribeTrainResultResult() : + ServiceResult() +{} + +DescribeTrainResultResult::DescribeTrainResultResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeTrainResultResult::~DescribeTrainResultResult() +{} + +void DescribeTrainResultResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto trainResultNode = value["TrainResult"]; + if(!trainResultNode["ProjectId"].isNull()) + trainResult_.projectId = trainResultNode["ProjectId"].asString(); + if(!trainResultNode["IterationId"].isNull()) + trainResult_.iterationId = trainResultNode["IterationId"].asString(); + if(!trainResultNode["IterationName"].isNull()) + trainResult_.iterationName = trainResultNode["IterationName"].asString(); + if(!trainResultNode["Precision"].isNull()) + trainResult_.precision = trainResultNode["Precision"].asString(); + if(!trainResultNode["Recall"].isNull()) + trainResult_.recall = trainResultNode["Recall"].asString(); + if(!trainResultNode["MAP"].isNull()) + trainResult_.mAP = trainResultNode["MAP"].asString(); + if(!trainResultNode["Threshold"].isNull()) + trainResult_.threshold = trainResultNode["Threshold"].asString(); + if(!trainResultNode["Status"].isNull()) + trainResult_.status = trainResultNode["Status"].asString(); + if(!trainResultNode["StartTime"].isNull()) + trainResult_.startTime = trainResultNode["StartTime"].asString(); + if(!trainResultNode["EndTime"].isNull()) + trainResult_.endTime = trainResultNode["EndTime"].asString(); + if(!trainResultNode["ErrorCode"].isNull()) + trainResult_.errorCode = trainResultNode["ErrorCode"].asString(); + if(!trainResultNode["ErrorMessage"].isNull()) + trainResult_.errorMessage = trainResultNode["ErrorMessage"].asString(); + auto allTagResults = value["TagResults"]["TagResult"]; + for (auto value : allTagResults) + { + TrainResult::TagResult tagResultObject; + if(!value["TagId"].isNull()) + tagResultObject.tagId = value["TagId"].asString(); + if(!value["TagName"].isNull()) + tagResultObject.tagName = value["TagName"].asString(); + if(!value["Precision"].isNull()) + tagResultObject.precision = value["Precision"].asString(); + if(!value["Recall"].isNull()) + tagResultObject.recall = value["Recall"].asString(); + if(!value["AP"].isNull()) + tagResultObject.aP = value["AP"].asString(); + trainResult_.tagResults.push_back(tagResultObject); + } + +} + +DescribeTrainResultResult::TrainResult DescribeTrainResultResult::getTrainResult()const +{ + return trainResult_; +} + diff --git a/ivision/src/model/ModifyProjectAttributeRequest.cc b/ivision/src/model/ModifyProjectAttributeRequest.cc new file mode 100644 index 000000000..6642190db --- /dev/null +++ b/ivision/src/model/ModifyProjectAttributeRequest.cc @@ -0,0 +1,313 @@ +/* + * 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::ModifyProjectAttributeRequest; + +ModifyProjectAttributeRequest::ModifyProjectAttributeRequest() : + RpcServiceRequest("ivision", "2019-03-08", "ModifyProjectAttribute") +{} + +ModifyProjectAttributeRequest::~ModifyProjectAttributeRequest() +{} + +long ModifyProjectAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyProjectAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long ModifyProjectAttributeRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void ModifyProjectAttributeRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool ModifyProjectAttributeRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void ModifyProjectAttributeRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string ModifyProjectAttributeRequest::getDescription()const +{ + return description_; +} + +void ModifyProjectAttributeRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string ModifyProjectAttributeRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void ModifyProjectAttributeRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string ModifyProjectAttributeRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void ModifyProjectAttributeRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string ModifyProjectAttributeRequest::getCallerType()const +{ + return callerType_; +} + +void ModifyProjectAttributeRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string ModifyProjectAttributeRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyProjectAttributeRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string ModifyProjectAttributeRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ModifyProjectAttributeRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string ModifyProjectAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyProjectAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyProjectAttributeRequest::getRequestContent()const +{ + return requestContent_; +} + +void ModifyProjectAttributeRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string ModifyProjectAttributeRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void ModifyProjectAttributeRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string ModifyProjectAttributeRequest::getProjectId()const +{ + return projectId_; +} + +void ModifyProjectAttributeRequest::setProjectId(const std::string& projectId) +{ + projectId_ = projectId; + setParameter("ProjectId", projectId); +} + +std::string ModifyProjectAttributeRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void ModifyProjectAttributeRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long ModifyProjectAttributeRequest::getCallerUid()const +{ + return callerUid_; +} + +void ModifyProjectAttributeRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string ModifyProjectAttributeRequest::getShowLog()const +{ + return showLog_; +} + +void ModifyProjectAttributeRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string ModifyProjectAttributeRequest::getApp_ip()const +{ + return app_ip_; +} + +void ModifyProjectAttributeRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string ModifyProjectAttributeRequest::getPopProduct()const +{ + return popProduct_; +} + +void ModifyProjectAttributeRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); +} + +std::string ModifyProjectAttributeRequest::getCallerBid()const +{ + return callerBid_; +} + +void ModifyProjectAttributeRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long ModifyProjectAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyProjectAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyProjectAttributeRequest::getVersion()const +{ + return version_; +} + +void ModifyProjectAttributeRequest::setVersion(const std::string& version) +{ + version_ = version; + setParameter("Version", version); +} + +bool ModifyProjectAttributeRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void ModifyProjectAttributeRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool ModifyProjectAttributeRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void ModifyProjectAttributeRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool ModifyProjectAttributeRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void ModifyProjectAttributeRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string ModifyProjectAttributeRequest::getRequestId()const +{ + return requestId_; +} + +void ModifyProjectAttributeRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +std::string ModifyProjectAttributeRequest::getName()const +{ + return name_; +} + +void ModifyProjectAttributeRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + diff --git a/ivision/src/model/ModifyProjectAttributeResult.cc b/ivision/src/model/ModifyProjectAttributeResult.cc new file mode 100644 index 000000000..edb0e55b2 --- /dev/null +++ b/ivision/src/model/ModifyProjectAttributeResult.cc @@ -0,0 +1,65 @@ +/* + * 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; + +ModifyProjectAttributeResult::ModifyProjectAttributeResult() : + ServiceResult() +{} + +ModifyProjectAttributeResult::ModifyProjectAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyProjectAttributeResult::~ModifyProjectAttributeResult() +{} + +void ModifyProjectAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto projectNode = value["Project"]; + if(!projectNode["ProjectId"].isNull()) + project_.projectId = projectNode["ProjectId"].asString(); + if(!projectNode["Name"].isNull()) + project_.name = projectNode["Name"].asString(); + if(!projectNode["Description"].isNull()) + project_.description = projectNode["Description"].asString(); + if(!projectNode["ProType"].isNull()) + project_.proType = projectNode["ProType"].asString(); + if(!projectNode["IterCount"].isNull()) + project_.iterCount = std::stoi(projectNode["IterCount"].asString()); + if(!projectNode["CreationTime"].isNull()) + project_.creationTime = projectNode["CreationTime"].asString(); + if(!projectNode["Status"].isNull()) + project_.status = projectNode["Status"].asString(); + +} + +ModifyProjectAttributeResult::Project ModifyProjectAttributeResult::getProject()const +{ + return project_; +} + diff --git a/ivision/src/model/ModifyTagAttributeRequest.cc b/ivision/src/model/ModifyTagAttributeRequest.cc new file mode 100644 index 000000000..3ac99f8e1 --- /dev/null +++ b/ivision/src/model/ModifyTagAttributeRequest.cc @@ -0,0 +1,324 @@ +/* + * 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::ModifyTagAttributeRequest; + +ModifyTagAttributeRequest::ModifyTagAttributeRequest() : + RpcServiceRequest("ivision", "2019-03-08", "ModifyTagAttribute") +{} + +ModifyTagAttributeRequest::~ModifyTagAttributeRequest() +{} + +long ModifyTagAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyTagAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long ModifyTagAttributeRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void ModifyTagAttributeRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool ModifyTagAttributeRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void ModifyTagAttributeRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string ModifyTagAttributeRequest::getDescription()const +{ + return description_; +} + +void ModifyTagAttributeRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string ModifyTagAttributeRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void ModifyTagAttributeRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string ModifyTagAttributeRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void ModifyTagAttributeRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string ModifyTagAttributeRequest::getCallerType()const +{ + return callerType_; +} + +void ModifyTagAttributeRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string ModifyTagAttributeRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyTagAttributeRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string ModifyTagAttributeRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ModifyTagAttributeRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string ModifyTagAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyTagAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyTagAttributeRequest::getRequestContent()const +{ + return requestContent_; +} + +void ModifyTagAttributeRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string ModifyTagAttributeRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void ModifyTagAttributeRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string ModifyTagAttributeRequest::getProjectId()const +{ + return projectId_; +} + +void ModifyTagAttributeRequest::setProjectId(const std::string& projectId) +{ + projectId_ = projectId; + setParameter("ProjectId", projectId); +} + +std::string ModifyTagAttributeRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void ModifyTagAttributeRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long ModifyTagAttributeRequest::getCallerUid()const +{ + return callerUid_; +} + +void ModifyTagAttributeRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string ModifyTagAttributeRequest::getShowLog()const +{ + return showLog_; +} + +void ModifyTagAttributeRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string ModifyTagAttributeRequest::getApp_ip()const +{ + return app_ip_; +} + +void ModifyTagAttributeRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string ModifyTagAttributeRequest::getPopProduct()const +{ + return popProduct_; +} + +void ModifyTagAttributeRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); +} + +std::string ModifyTagAttributeRequest::getTagId()const +{ + return tagId_; +} + +void ModifyTagAttributeRequest::setTagId(const std::string& tagId) +{ + tagId_ = tagId; + setParameter("TagId", tagId); +} + +std::string ModifyTagAttributeRequest::getCallerBid()const +{ + return callerBid_; +} + +void ModifyTagAttributeRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long ModifyTagAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyTagAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyTagAttributeRequest::getVersion()const +{ + return version_; +} + +void ModifyTagAttributeRequest::setVersion(const std::string& version) +{ + version_ = version; + setParameter("Version", version); +} + +bool ModifyTagAttributeRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void ModifyTagAttributeRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool ModifyTagAttributeRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void ModifyTagAttributeRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool ModifyTagAttributeRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void ModifyTagAttributeRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string ModifyTagAttributeRequest::getRequestId()const +{ + return requestId_; +} + +void ModifyTagAttributeRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +std::string ModifyTagAttributeRequest::getName()const +{ + return name_; +} + +void ModifyTagAttributeRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + diff --git a/ivision/src/model/ModifyTagAttributeResult.cc b/ivision/src/model/ModifyTagAttributeResult.cc new file mode 100644 index 000000000..1b24f98e7 --- /dev/null +++ b/ivision/src/model/ModifyTagAttributeResult.cc @@ -0,0 +1,65 @@ +/* + * 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; + +ModifyTagAttributeResult::ModifyTagAttributeResult() : + ServiceResult() +{} + +ModifyTagAttributeResult::ModifyTagAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyTagAttributeResult::~ModifyTagAttributeResult() +{} + +void ModifyTagAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto tagNode = value["Tag"]; + if(!tagNode["ProjectId"].isNull()) + tag_.projectId = tagNode["ProjectId"].asString(); + if(!tagNode["TagId"].isNull()) + tag_.tagId = tagNode["TagId"].asString(); + if(!tagNode["TagName"].isNull()) + tag_.tagName = tagNode["TagName"].asString(); + if(!tagNode["Description"].isNull()) + tag_.description = tagNode["Description"].asString(); + if(!tagNode["Count"].isNull()) + tag_.count = std::stoi(tagNode["Count"].asString()); + if(!tagNode["CreationTime"].isNull()) + tag_.creationTime = tagNode["CreationTime"].asString(); + if(!tagNode["Status"].isNull()) + tag_.status = tagNode["Status"].asString(); + +} + +ModifyTagAttributeResult::Tag ModifyTagAttributeResult::getTag()const +{ + return tag_; +} + diff --git a/ivision/src/model/ModifyTrainDataRegionTagAttributeRequest.cc b/ivision/src/model/ModifyTrainDataRegionTagAttributeRequest.cc new file mode 100644 index 000000000..999fea662 --- /dev/null +++ b/ivision/src/model/ModifyTrainDataRegionTagAttributeRequest.cc @@ -0,0 +1,313 @@ +/* + * 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::ModifyTrainDataRegionTagAttributeRequest; + +ModifyTrainDataRegionTagAttributeRequest::ModifyTrainDataRegionTagAttributeRequest() : + RpcServiceRequest("ivision", "2019-03-08", "ModifyTrainDataRegionTagAttribute") +{} + +ModifyTrainDataRegionTagAttributeRequest::~ModifyTrainDataRegionTagAttributeRequest() +{} + +long ModifyTrainDataRegionTagAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyTrainDataRegionTagAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long ModifyTrainDataRegionTagAttributeRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void ModifyTrainDataRegionTagAttributeRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool ModifyTrainDataRegionTagAttributeRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void ModifyTrainDataRegionTagAttributeRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string ModifyTrainDataRegionTagAttributeRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void ModifyTrainDataRegionTagAttributeRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string ModifyTrainDataRegionTagAttributeRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void ModifyTrainDataRegionTagAttributeRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string ModifyTrainDataRegionTagAttributeRequest::getCallerType()const +{ + return callerType_; +} + +void ModifyTrainDataRegionTagAttributeRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string ModifyTrainDataRegionTagAttributeRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyTrainDataRegionTagAttributeRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string ModifyTrainDataRegionTagAttributeRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ModifyTrainDataRegionTagAttributeRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string ModifyTrainDataRegionTagAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyTrainDataRegionTagAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyTrainDataRegionTagAttributeRequest::getRequestContent()const +{ + return requestContent_; +} + +void ModifyTrainDataRegionTagAttributeRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string ModifyTrainDataRegionTagAttributeRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void ModifyTrainDataRegionTagAttributeRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string ModifyTrainDataRegionTagAttributeRequest::getProjectId()const +{ + return projectId_; +} + +void ModifyTrainDataRegionTagAttributeRequest::setProjectId(const std::string& projectId) +{ + projectId_ = projectId; + setParameter("ProjectId", projectId); +} + +std::string ModifyTrainDataRegionTagAttributeRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void ModifyTrainDataRegionTagAttributeRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long ModifyTrainDataRegionTagAttributeRequest::getCallerUid()const +{ + return callerUid_; +} + +void ModifyTrainDataRegionTagAttributeRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string ModifyTrainDataRegionTagAttributeRequest::getShowLog()const +{ + return showLog_; +} + +void ModifyTrainDataRegionTagAttributeRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string ModifyTrainDataRegionTagAttributeRequest::getApp_ip()const +{ + return app_ip_; +} + +void ModifyTrainDataRegionTagAttributeRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string ModifyTrainDataRegionTagAttributeRequest::getPopProduct()const +{ + return popProduct_; +} + +void ModifyTrainDataRegionTagAttributeRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); +} + +std::string ModifyTrainDataRegionTagAttributeRequest::getTagItems()const +{ + return tagItems_; +} + +void ModifyTrainDataRegionTagAttributeRequest::setTagItems(const std::string& tagItems) +{ + tagItems_ = tagItems; + setParameter("TagItems", tagItems); +} + +std::string ModifyTrainDataRegionTagAttributeRequest::getCallerBid()const +{ + return callerBid_; +} + +void ModifyTrainDataRegionTagAttributeRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long ModifyTrainDataRegionTagAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyTrainDataRegionTagAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyTrainDataRegionTagAttributeRequest::getVersion()const +{ + return version_; +} + +void ModifyTrainDataRegionTagAttributeRequest::setVersion(const std::string& version) +{ + version_ = version; + setParameter("Version", version); +} + +bool ModifyTrainDataRegionTagAttributeRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void ModifyTrainDataRegionTagAttributeRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool ModifyTrainDataRegionTagAttributeRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void ModifyTrainDataRegionTagAttributeRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool ModifyTrainDataRegionTagAttributeRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void ModifyTrainDataRegionTagAttributeRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string ModifyTrainDataRegionTagAttributeRequest::getDataId()const +{ + return dataId_; +} + +void ModifyTrainDataRegionTagAttributeRequest::setDataId(const std::string& dataId) +{ + dataId_ = dataId; + setParameter("DataId", dataId); +} + +std::string ModifyTrainDataRegionTagAttributeRequest::getRequestId()const +{ + return requestId_; +} + +void ModifyTrainDataRegionTagAttributeRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + diff --git a/ivision/src/model/ModifyTrainDataRegionTagAttributeResult.cc b/ivision/src/model/ModifyTrainDataRegionTagAttributeResult.cc new file mode 100644 index 000000000..3e6c624c6 --- /dev/null +++ b/ivision/src/model/ModifyTrainDataRegionTagAttributeResult.cc @@ -0,0 +1,86 @@ +/* + * 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; + +ModifyTrainDataRegionTagAttributeResult::ModifyTrainDataRegionTagAttributeResult() : + ServiceResult() +{} + +ModifyTrainDataRegionTagAttributeResult::ModifyTrainDataRegionTagAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyTrainDataRegionTagAttributeResult::~ModifyTrainDataRegionTagAttributeResult() +{} + +void ModifyTrainDataRegionTagAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto trainDataNode = value["TrainData"]; + if(!trainDataNode["ProjectId"].isNull()) + trainData_.projectId = trainDataNode["ProjectId"].asString(); + if(!trainDataNode["IterationId"].isNull()) + trainData_.iterationId = trainDataNode["IterationId"].asString(); + if(!trainDataNode["DataId"].isNull()) + trainData_.dataId = trainDataNode["DataId"].asString(); + if(!trainDataNode["DataName"].isNull()) + trainData_.dataName = trainDataNode["DataName"].asString(); + if(!trainDataNode["DataUrl"].isNull()) + trainData_.dataUrl = trainDataNode["DataUrl"].asString(); + if(!trainDataNode["CreationTime"].isNull()) + trainData_.creationTime = trainDataNode["CreationTime"].asString(); + if(!trainDataNode["Status"].isNull()) + trainData_.status = trainDataNode["Status"].asString(); + if(!trainDataNode["TagStatus"].isNull()) + trainData_.tagStatus = trainDataNode["TagStatus"].asString(); + auto allTagItems = value["TagItems"]["TagItem"]; + for (auto value : allTagItems) + { + TrainData::TagItem tagItemObject; + if(!value["TagId"].isNull()) + tagItemObject.tagId = value["TagId"].asString(); + if(!value["RegionType"].isNull()) + tagItemObject.regionType = value["RegionType"].asString(); + auto regionNode = value["Region"]; + if(!regionNode["Left"].isNull()) + tagItemObject.region.left = regionNode["Left"].asString(); + if(!regionNode["Top"].isNull()) + tagItemObject.region.top = regionNode["Top"].asString(); + if(!regionNode["Width"].isNull()) + tagItemObject.region.width = regionNode["Width"].asString(); + if(!regionNode["Height"].isNull()) + tagItemObject.region.height = regionNode["Height"].asString(); + trainData_.tagItems.push_back(tagItemObject); + } + +} + +ModifyTrainDataRegionTagAttributeResult::TrainData ModifyTrainDataRegionTagAttributeResult::getTrainData()const +{ + return trainData_; +} + diff --git a/ivision/src/model/ModifyTrainDataTagAttributeRequest.cc b/ivision/src/model/ModifyTrainDataTagAttributeRequest.cc new file mode 100644 index 000000000..8f6de0edf --- /dev/null +++ b/ivision/src/model/ModifyTrainDataTagAttributeRequest.cc @@ -0,0 +1,313 @@ +/* + * 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::ModifyTrainDataTagAttributeRequest; + +ModifyTrainDataTagAttributeRequest::ModifyTrainDataTagAttributeRequest() : + RpcServiceRequest("ivision", "2019-03-08", "ModifyTrainDataTagAttribute") +{} + +ModifyTrainDataTagAttributeRequest::~ModifyTrainDataTagAttributeRequest() +{} + +long ModifyTrainDataTagAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyTrainDataTagAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long ModifyTrainDataTagAttributeRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void ModifyTrainDataTagAttributeRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool ModifyTrainDataTagAttributeRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void ModifyTrainDataTagAttributeRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string ModifyTrainDataTagAttributeRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void ModifyTrainDataTagAttributeRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string ModifyTrainDataTagAttributeRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void ModifyTrainDataTagAttributeRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string ModifyTrainDataTagAttributeRequest::getCallerType()const +{ + return callerType_; +} + +void ModifyTrainDataTagAttributeRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string ModifyTrainDataTagAttributeRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyTrainDataTagAttributeRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string ModifyTrainDataTagAttributeRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ModifyTrainDataTagAttributeRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string ModifyTrainDataTagAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyTrainDataTagAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyTrainDataTagAttributeRequest::getRequestContent()const +{ + return requestContent_; +} + +void ModifyTrainDataTagAttributeRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string ModifyTrainDataTagAttributeRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void ModifyTrainDataTagAttributeRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string ModifyTrainDataTagAttributeRequest::getProjectId()const +{ + return projectId_; +} + +void ModifyTrainDataTagAttributeRequest::setProjectId(const std::string& projectId) +{ + projectId_ = projectId; + setParameter("ProjectId", projectId); +} + +std::string ModifyTrainDataTagAttributeRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void ModifyTrainDataTagAttributeRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long ModifyTrainDataTagAttributeRequest::getCallerUid()const +{ + return callerUid_; +} + +void ModifyTrainDataTagAttributeRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string ModifyTrainDataTagAttributeRequest::getShowLog()const +{ + return showLog_; +} + +void ModifyTrainDataTagAttributeRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string ModifyTrainDataTagAttributeRequest::getApp_ip()const +{ + return app_ip_; +} + +void ModifyTrainDataTagAttributeRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string ModifyTrainDataTagAttributeRequest::getPopProduct()const +{ + return popProduct_; +} + +void ModifyTrainDataTagAttributeRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); +} + +std::string ModifyTrainDataTagAttributeRequest::getTagItems()const +{ + return tagItems_; +} + +void ModifyTrainDataTagAttributeRequest::setTagItems(const std::string& tagItems) +{ + tagItems_ = tagItems; + setParameter("TagItems", tagItems); +} + +std::string ModifyTrainDataTagAttributeRequest::getCallerBid()const +{ + return callerBid_; +} + +void ModifyTrainDataTagAttributeRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long ModifyTrainDataTagAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyTrainDataTagAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyTrainDataTagAttributeRequest::getVersion()const +{ + return version_; +} + +void ModifyTrainDataTagAttributeRequest::setVersion(const std::string& version) +{ + version_ = version; + setParameter("Version", version); +} + +bool ModifyTrainDataTagAttributeRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void ModifyTrainDataTagAttributeRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool ModifyTrainDataTagAttributeRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void ModifyTrainDataTagAttributeRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool ModifyTrainDataTagAttributeRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void ModifyTrainDataTagAttributeRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string ModifyTrainDataTagAttributeRequest::getDataId()const +{ + return dataId_; +} + +void ModifyTrainDataTagAttributeRequest::setDataId(const std::string& dataId) +{ + dataId_ = dataId; + setParameter("DataId", dataId); +} + +std::string ModifyTrainDataTagAttributeRequest::getRequestId()const +{ + return requestId_; +} + +void ModifyTrainDataTagAttributeRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + diff --git a/ivision/src/model/ModifyTrainDataTagAttributeResult.cc b/ivision/src/model/ModifyTrainDataTagAttributeResult.cc new file mode 100644 index 000000000..eebf1d8b6 --- /dev/null +++ b/ivision/src/model/ModifyTrainDataTagAttributeResult.cc @@ -0,0 +1,86 @@ +/* + * 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; + +ModifyTrainDataTagAttributeResult::ModifyTrainDataTagAttributeResult() : + ServiceResult() +{} + +ModifyTrainDataTagAttributeResult::ModifyTrainDataTagAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyTrainDataTagAttributeResult::~ModifyTrainDataTagAttributeResult() +{} + +void ModifyTrainDataTagAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto trainDataNode = value["TrainData"]; + if(!trainDataNode["ProjectId"].isNull()) + trainData_.projectId = trainDataNode["ProjectId"].asString(); + if(!trainDataNode["IterationId"].isNull()) + trainData_.iterationId = trainDataNode["IterationId"].asString(); + if(!trainDataNode["DataId"].isNull()) + trainData_.dataId = trainDataNode["DataId"].asString(); + if(!trainDataNode["DataName"].isNull()) + trainData_.dataName = trainDataNode["DataName"].asString(); + if(!trainDataNode["DataUrl"].isNull()) + trainData_.dataUrl = trainDataNode["DataUrl"].asString(); + if(!trainDataNode["CreationTime"].isNull()) + trainData_.creationTime = trainDataNode["CreationTime"].asString(); + if(!trainDataNode["Status"].isNull()) + trainData_.status = trainDataNode["Status"].asString(); + if(!trainDataNode["TagStatus"].isNull()) + trainData_.tagStatus = trainDataNode["TagStatus"].asString(); + auto allTagItems = value["TagItems"]["TagItem"]; + for (auto value : allTagItems) + { + TrainData::TagItem tagItemObject; + if(!value["TagId"].isNull()) + tagItemObject.tagId = value["TagId"].asString(); + if(!value["RegionType"].isNull()) + tagItemObject.regionType = value["RegionType"].asString(); + auto regionNode = value["Region"]; + if(!regionNode["Left"].isNull()) + tagItemObject.region.left = regionNode["Left"].asString(); + if(!regionNode["Top"].isNull()) + tagItemObject.region.top = regionNode["Top"].asString(); + if(!regionNode["Width"].isNull()) + tagItemObject.region.width = regionNode["Width"].asString(); + if(!regionNode["Height"].isNull()) + tagItemObject.region.height = regionNode["Height"].asString(); + trainData_.tagItems.push_back(tagItemObject); + } + +} + +ModifyTrainDataTagAttributeResult::TrainData ModifyTrainDataTagAttributeResult::getTrainData()const +{ + return trainData_; +} + diff --git a/ivision/src/model/PredictImageRequest.cc b/ivision/src/model/PredictImageRequest.cc new file mode 100644 index 000000000..bc0f8b535 --- /dev/null +++ b/ivision/src/model/PredictImageRequest.cc @@ -0,0 +1,313 @@ +/* + * 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::PredictImageRequest; + +PredictImageRequest::PredictImageRequest() : + RpcServiceRequest("ivision", "2019-03-08", "PredictImage") +{} + +PredictImageRequest::~PredictImageRequest() +{} + +long PredictImageRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void PredictImageRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long PredictImageRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void PredictImageRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool PredictImageRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void PredictImageRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string PredictImageRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void PredictImageRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string PredictImageRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void PredictImageRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string PredictImageRequest::getCallerType()const +{ + return callerType_; +} + +void PredictImageRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string PredictImageRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void PredictImageRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string PredictImageRequest::getSecurityToken()const +{ + return securityToken_; +} + +void PredictImageRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string PredictImageRequest::getRegionId()const +{ + return regionId_; +} + +void PredictImageRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string PredictImageRequest::getRequestContent()const +{ + return requestContent_; +} + +void PredictImageRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string PredictImageRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void PredictImageRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string PredictImageRequest::getProjectId()const +{ + return projectId_; +} + +void PredictImageRequest::setProjectId(const std::string& projectId) +{ + projectId_ = projectId; + setParameter("ProjectId", projectId); +} + +std::string PredictImageRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void PredictImageRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long PredictImageRequest::getCallerUid()const +{ + return callerUid_; +} + +void PredictImageRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string PredictImageRequest::getShowLog()const +{ + return showLog_; +} + +void PredictImageRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string PredictImageRequest::getApp_ip()const +{ + return app_ip_; +} + +void PredictImageRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string PredictImageRequest::getPopProduct()const +{ + return popProduct_; +} + +void PredictImageRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); +} + +std::string PredictImageRequest::getCallerBid()const +{ + return callerBid_; +} + +void PredictImageRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long PredictImageRequest::getOwnerId()const +{ + return ownerId_; +} + +void PredictImageRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string PredictImageRequest::getVersion()const +{ + return version_; +} + +void PredictImageRequest::setVersion(const std::string& version) +{ + version_ = version; + setParameter("Version", version); +} + +bool PredictImageRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void PredictImageRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool PredictImageRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void PredictImageRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool PredictImageRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void PredictImageRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string PredictImageRequest::getRequestId()const +{ + return requestId_; +} + +void PredictImageRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +std::string PredictImageRequest::getIterationId()const +{ + return iterationId_; +} + +void PredictImageRequest::setIterationId(const std::string& iterationId) +{ + iterationId_ = iterationId; + setParameter("IterationId", iterationId); +} + +std::string PredictImageRequest::getDataUrls()const +{ + return dataUrls_; +} + +void PredictImageRequest::setDataUrls(const std::string& dataUrls) +{ + dataUrls_ = dataUrls; + setParameter("DataUrls", dataUrls); +} + diff --git a/ivision/src/model/PredictImageResult.cc b/ivision/src/model/PredictImageResult.cc new file mode 100644 index 000000000..13f82b310 --- /dev/null +++ b/ivision/src/model/PredictImageResult.cc @@ -0,0 +1,101 @@ +/* + * 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; + +PredictImageResult::PredictImageResult() : + ServiceResult() +{} + +PredictImageResult::PredictImageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PredictImageResult::~PredictImageResult() +{} + +void PredictImageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allPredictDatas = value["PredictDatas"]["PredictData"]; + for (auto value : allPredictDatas) + { + PredictData predictDatasObject; + if(!value["ProjectId"].isNull()) + predictDatasObject.projectId = value["ProjectId"].asString(); + if(!value["IterationId"].isNull()) + predictDatasObject.iterationId = value["IterationId"].asString(); + if(!value["DataId"].isNull()) + predictDatasObject.dataId = value["DataId"].asString(); + if(!value["DataName"].isNull()) + predictDatasObject.dataName = value["DataName"].asString(); + if(!value["DataUrl"].isNull()) + predictDatasObject.dataUrl = value["DataUrl"].asString(); + if(!value["CreationTime"].isNull()) + predictDatasObject.creationTime = value["CreationTime"].asString(); + if(!value["Status"].isNull()) + predictDatasObject.status = value["Status"].asString(); + if(!value["ErrorCode"].isNull()) + predictDatasObject.errorCode = value["ErrorCode"].asString(); + if(!value["ErrorMessage"].isNull()) + predictDatasObject.errorMessage = value["ErrorMessage"].asString(); + auto allPredictionResults = value["PredictionResults"]["PredictionResult"]; + for (auto value : allPredictionResults) + { + PredictData::PredictionResult predictionResultsObject; + if(!value["TagId"].isNull()) + predictionResultsObject.tagId = value["TagId"].asString(); + if(!value["TagName"].isNull()) + predictionResultsObject.tagName = value["TagName"].asString(); + if(!value["Probability"].isNull()) + predictionResultsObject.probability = value["Probability"].asString(); + if(!value["Overlap"].isNull()) + predictionResultsObject.overlap = value["Overlap"].asString(); + if(!value["RegionType"].isNull()) + predictionResultsObject.regionType = value["RegionType"].asString(); + if(!value["Properties"].isNull()) + predictionResultsObject.properties = value["Properties"].asString(); + auto regionNode = value["Region"]; + if(!regionNode["Left"].isNull()) + predictionResultsObject.region.left = regionNode["Left"].asString(); + if(!regionNode["Top"].isNull()) + predictionResultsObject.region.top = regionNode["Top"].asString(); + if(!regionNode["Width"].isNull()) + predictionResultsObject.region.width = regionNode["Width"].asString(); + if(!regionNode["Height"].isNull()) + predictionResultsObject.region.height = regionNode["Height"].asString(); + predictDatasObject.predictionResults.push_back(predictionResultsObject); + } + predictDatas_.push_back(predictDatasObject); + } + +} + +std::vector PredictImageResult::getPredictDatas()const +{ + return predictDatas_; +} + diff --git a/ivision/src/model/StartStreamPredictRequest.cc b/ivision/src/model/StartStreamPredictRequest.cc new file mode 100644 index 000000000..0b0961e9c --- /dev/null +++ b/ivision/src/model/StartStreamPredictRequest.cc @@ -0,0 +1,291 @@ +/* + * 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::StartStreamPredictRequest; + +StartStreamPredictRequest::StartStreamPredictRequest() : + RpcServiceRequest("ivision", "2019-03-08", "StartStreamPredict") +{} + +StartStreamPredictRequest::~StartStreamPredictRequest() +{} + +long StartStreamPredictRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void StartStreamPredictRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long StartStreamPredictRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void StartStreamPredictRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool StartStreamPredictRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void StartStreamPredictRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string StartStreamPredictRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void StartStreamPredictRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string StartStreamPredictRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void StartStreamPredictRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string StartStreamPredictRequest::getCallerType()const +{ + return callerType_; +} + +void StartStreamPredictRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string StartStreamPredictRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void StartStreamPredictRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string StartStreamPredictRequest::getPredictId()const +{ + return predictId_; +} + +void StartStreamPredictRequest::setPredictId(const std::string& predictId) +{ + predictId_ = predictId; + setParameter("PredictId", predictId); +} + +std::string StartStreamPredictRequest::getSecurityToken()const +{ + return securityToken_; +} + +void StartStreamPredictRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string StartStreamPredictRequest::getRegionId()const +{ + return regionId_; +} + +void StartStreamPredictRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string StartStreamPredictRequest::getRequestContent()const +{ + return requestContent_; +} + +void StartStreamPredictRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string StartStreamPredictRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void StartStreamPredictRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string StartStreamPredictRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void StartStreamPredictRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long StartStreamPredictRequest::getCallerUid()const +{ + return callerUid_; +} + +void StartStreamPredictRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string StartStreamPredictRequest::getShowLog()const +{ + return showLog_; +} + +void StartStreamPredictRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string StartStreamPredictRequest::getApp_ip()const +{ + return app_ip_; +} + +void StartStreamPredictRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string StartStreamPredictRequest::getPopProduct()const +{ + return popProduct_; +} + +void StartStreamPredictRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); +} + +std::string StartStreamPredictRequest::getCallerBid()const +{ + return callerBid_; +} + +void StartStreamPredictRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long StartStreamPredictRequest::getOwnerId()const +{ + return ownerId_; +} + +void StartStreamPredictRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string StartStreamPredictRequest::getVersion()const +{ + return version_; +} + +void StartStreamPredictRequest::setVersion(const std::string& version) +{ + version_ = version; + setParameter("Version", version); +} + +bool StartStreamPredictRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void StartStreamPredictRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool StartStreamPredictRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void StartStreamPredictRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool StartStreamPredictRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void StartStreamPredictRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string StartStreamPredictRequest::getRequestId()const +{ + return requestId_; +} + +void StartStreamPredictRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + diff --git a/ivision/src/model/StartStreamPredictResult.cc b/ivision/src/model/StartStreamPredictResult.cc new file mode 100644 index 000000000..0547bf6f7 --- /dev/null +++ b/ivision/src/model/StartStreamPredictResult.cc @@ -0,0 +1,52 @@ +/* + * 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; + +StartStreamPredictResult::StartStreamPredictResult() : + ServiceResult() +{} + +StartStreamPredictResult::StartStreamPredictResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartStreamPredictResult::~StartStreamPredictResult() +{} + +void StartStreamPredictResult::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 StartStreamPredictResult::getPredictId()const +{ + return predictId_; +} + diff --git a/ivision/src/model/StopStreamPredictRequest.cc b/ivision/src/model/StopStreamPredictRequest.cc new file mode 100644 index 000000000..cc8eb9fec --- /dev/null +++ b/ivision/src/model/StopStreamPredictRequest.cc @@ -0,0 +1,291 @@ +/* + * 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::StopStreamPredictRequest; + +StopStreamPredictRequest::StopStreamPredictRequest() : + RpcServiceRequest("ivision", "2019-03-08", "StopStreamPredict") +{} + +StopStreamPredictRequest::~StopStreamPredictRequest() +{} + +long StopStreamPredictRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void StopStreamPredictRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long StopStreamPredictRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void StopStreamPredictRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool StopStreamPredictRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void StopStreamPredictRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string StopStreamPredictRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void StopStreamPredictRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string StopStreamPredictRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void StopStreamPredictRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string StopStreamPredictRequest::getCallerType()const +{ + return callerType_; +} + +void StopStreamPredictRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string StopStreamPredictRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void StopStreamPredictRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string StopStreamPredictRequest::getPredictId()const +{ + return predictId_; +} + +void StopStreamPredictRequest::setPredictId(const std::string& predictId) +{ + predictId_ = predictId; + setParameter("PredictId", predictId); +} + +std::string StopStreamPredictRequest::getSecurityToken()const +{ + return securityToken_; +} + +void StopStreamPredictRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string StopStreamPredictRequest::getRegionId()const +{ + return regionId_; +} + +void StopStreamPredictRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string StopStreamPredictRequest::getRequestContent()const +{ + return requestContent_; +} + +void StopStreamPredictRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string StopStreamPredictRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void StopStreamPredictRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string StopStreamPredictRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void StopStreamPredictRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long StopStreamPredictRequest::getCallerUid()const +{ + return callerUid_; +} + +void StopStreamPredictRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string StopStreamPredictRequest::getShowLog()const +{ + return showLog_; +} + +void StopStreamPredictRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string StopStreamPredictRequest::getApp_ip()const +{ + return app_ip_; +} + +void StopStreamPredictRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string StopStreamPredictRequest::getPopProduct()const +{ + return popProduct_; +} + +void StopStreamPredictRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); +} + +std::string StopStreamPredictRequest::getCallerBid()const +{ + return callerBid_; +} + +void StopStreamPredictRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long StopStreamPredictRequest::getOwnerId()const +{ + return ownerId_; +} + +void StopStreamPredictRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string StopStreamPredictRequest::getVersion()const +{ + return version_; +} + +void StopStreamPredictRequest::setVersion(const std::string& version) +{ + version_ = version; + setParameter("Version", version); +} + +bool StopStreamPredictRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void StopStreamPredictRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool StopStreamPredictRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void StopStreamPredictRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool StopStreamPredictRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void StopStreamPredictRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string StopStreamPredictRequest::getRequestId()const +{ + return requestId_; +} + +void StopStreamPredictRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + diff --git a/ivision/src/model/StopStreamPredictResult.cc b/ivision/src/model/StopStreamPredictResult.cc new file mode 100644 index 000000000..cb613eca2 --- /dev/null +++ b/ivision/src/model/StopStreamPredictResult.cc @@ -0,0 +1,52 @@ +/* + * 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; + +StopStreamPredictResult::StopStreamPredictResult() : + ServiceResult() +{} + +StopStreamPredictResult::StopStreamPredictResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StopStreamPredictResult::~StopStreamPredictResult() +{} + +void StopStreamPredictResult::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 StopStreamPredictResult::getPredictId()const +{ + return predictId_; +} + diff --git a/ivision/src/model/TrainProjectRequest.cc b/ivision/src/model/TrainProjectRequest.cc new file mode 100644 index 000000000..83cf7ad90 --- /dev/null +++ b/ivision/src/model/TrainProjectRequest.cc @@ -0,0 +1,291 @@ +/* + * 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::TrainProjectRequest; + +TrainProjectRequest::TrainProjectRequest() : + RpcServiceRequest("ivision", "2019-03-08", "TrainProject") +{} + +TrainProjectRequest::~TrainProjectRequest() +{} + +long TrainProjectRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void TrainProjectRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long TrainProjectRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void TrainProjectRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool TrainProjectRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void TrainProjectRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string TrainProjectRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void TrainProjectRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string TrainProjectRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void TrainProjectRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string TrainProjectRequest::getCallerType()const +{ + return callerType_; +} + +void TrainProjectRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string TrainProjectRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void TrainProjectRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string TrainProjectRequest::getSecurityToken()const +{ + return securityToken_; +} + +void TrainProjectRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string TrainProjectRequest::getRegionId()const +{ + return regionId_; +} + +void TrainProjectRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string TrainProjectRequest::getRequestContent()const +{ + return requestContent_; +} + +void TrainProjectRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string TrainProjectRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void TrainProjectRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string TrainProjectRequest::getProjectId()const +{ + return projectId_; +} + +void TrainProjectRequest::setProjectId(const std::string& projectId) +{ + projectId_ = projectId; + setParameter("ProjectId", projectId); +} + +std::string TrainProjectRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void TrainProjectRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long TrainProjectRequest::getCallerUid()const +{ + return callerUid_; +} + +void TrainProjectRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string TrainProjectRequest::getShowLog()const +{ + return showLog_; +} + +void TrainProjectRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string TrainProjectRequest::getApp_ip()const +{ + return app_ip_; +} + +void TrainProjectRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string TrainProjectRequest::getPopProduct()const +{ + return popProduct_; +} + +void TrainProjectRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); +} + +std::string TrainProjectRequest::getCallerBid()const +{ + return callerBid_; +} + +void TrainProjectRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long TrainProjectRequest::getOwnerId()const +{ + return ownerId_; +} + +void TrainProjectRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string TrainProjectRequest::getVersion()const +{ + return version_; +} + +void TrainProjectRequest::setVersion(const std::string& version) +{ + version_ = version; + setParameter("Version", version); +} + +bool TrainProjectRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void TrainProjectRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool TrainProjectRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void TrainProjectRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool TrainProjectRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void TrainProjectRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string TrainProjectRequest::getRequestId()const +{ + return requestId_; +} + +void TrainProjectRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + diff --git a/ivision/src/model/TrainProjectResult.cc b/ivision/src/model/TrainProjectResult.cc new file mode 100644 index 000000000..4c8019cc2 --- /dev/null +++ b/ivision/src/model/TrainProjectResult.cc @@ -0,0 +1,52 @@ +/* + * 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; + +TrainProjectResult::TrainProjectResult() : + ServiceResult() +{} + +TrainProjectResult::TrainProjectResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TrainProjectResult::~TrainProjectResult() +{} + +void TrainProjectResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["IterationId"].isNull()) + iterationId_ = value["IterationId"].asString(); + +} + +std::string TrainProjectResult::getIterationId()const +{ + return iterationId_; +} +