From 517de0ab21c812d864c4e3fc93ae1c43a1e83616 Mon Sep 17 00:00:00 2001 From: wb-hx510875 Date: Thu, 21 Nov 2019 15:47:40 +0800 Subject: [PATCH] re-generate ivision sdk --- ivision/CMakeLists.txt | 152 -- .../alibabacloud/ivision/IvisionClient.h | 408 +---- .../ivision/model/CreateFaceGroupRequest.h | 66 - .../ivision/model/CreatePredictModelRequest.h | 72 - .../ivision/model/CreatePredictModelResult.h | 63 - .../model/CreatePredictTemplateRequest.h | 66 - .../model/CreatePredictTemplateResult.h | 61 - .../ivision/model/CreateProjectRequest.h | 63 - .../ivision/model/CreateProjectResult.h | 61 - .../ivision/model/CreateQuickDeployRequest.h | 57 - .../ivision/model/CreateQuickDeployResult.h | 59 - .../model/CreateStreamPredictRequest.h | 81 +- .../ivision/model/CreateTagRequest.h | 60 - .../ivision/model/CreateTagResult.h | 60 - .../model/CreateTrainDataRegionTagRequest.h | 123 -- .../model/CreateTrainDataRegionTagResult.h | 76 - .../ivision/model/CreateTrainDataTagRequest.h | 60 - .../ivision/model/CreateTrainDataTagResult.h | 76 - .../CreateTrainDatasFromPredictionRequest.h | 63 - .../CreateTrainDatasFromPredictionResult.h | 76 - .../model/CreateTrainDatasFromUrlsRequest.h | 60 - .../model/CreateTrainDatasFromUrlsResult.h | 76 - .../model/CreateTrainDatasTagRequest.h | 60 - .../ivision/model/CreateTrainDatasTagResult.h | 76 - .../ivision/model/CreateUploadTokenRequest.h | 120 -- .../ivision/model/CreateUploadTokenResult.h | 62 - .../ivision/model/DeleteFaceGroupRequest.h | 66 - .../ivision/model/DeleteIterationRequest.h | 57 - .../ivision/model/DeleteIterationResult.h | 51 - .../ivision/model/DeletePredictDatasRequest.h | 63 - .../ivision/model/DeletePredictDatasResult.h | 49 - .../ivision/model/DeletePredictModelRequest.h | 54 - .../ivision/model/DeletePredictModelResult.h | 51 - .../model/DeletePredictTemplateRequest.h | 54 - .../model/DeletePredictTemplateResult.h | 51 - .../ivision/model/DeleteProjectRequest.h | 54 - .../ivision/model/DeleteProjectResult.h | 51 - .../model/DeleteStreamPredictRequest.h | 18 +- .../ivision/model/DeleteTagRequest.h | 57 - .../ivision/model/DeleteTagResult.h | 51 - .../ivision/model/DeleteTrainDatasRequest.h | 57 - .../ivision/model/DeleteTrainDatasResult.h | 49 - .../model/DeleteTrainDatasTagRequest.h | 60 - .../ivision/model/DeleteTrainDatasTagResult.h | 49 - .../ivision/model/DescribeFaceGroupsRequest.h | 66 - .../ivision/model/DescribeIterationsRequest.h | 63 - .../ivision/model/DescribeIterationsResult.h | 72 - .../model/DescribePredictDatasRequest.h | 81 - .../model/DescribePredictDatasResult.h | 89 -- .../model/DescribePredictModelsRequest.h | 72 - .../model/DescribePredictModelsResult.h | 75 - .../model/DescribePredictTemplatesRequest.h | 69 - .../model/DescribePredictTemplatesResult.h | 69 - .../ivision/model/DescribeProjectsRequest.h | 63 - .../ivision/model/DescribeProjectsResult.h | 69 - .../model/DescribeQuickDeploysRequest.h | 63 - .../model/DescribeQuickDeploysResult.h | 65 - .../DescribeStreamPredictResultRequest.h | 60 +- .../model/DescribeStreamPredictsRequest.h | 36 +- .../DescribeSystemPredictModelsRequest.h | 69 - .../model/DescribeSystemPredictModelsResult.h | 66 - .../ivision/model/DescribeTagsRequest.h | 72 - .../ivision/model/DescribeTagsResult.h | 68 - .../model/DescribeTrainDatasByIdsRequest.h | 60 - .../model/DescribeTrainDatasByIdsResult.h | 76 - .../ivision/model/DescribeTrainDatasRequest.h | 72 - .../ivision/model/DescribeTrainDatasResult.h | 84 - .../model/DescribeTrainResultRequest.h | 60 - .../ivision/model/DescribeTrainResultResult.h | 75 - .../ModifyPredictTemplateAttributeRequest.h | 69 - .../ModifyPredictTemplateAttributeResult.h | 61 - .../model/ModifyProjectAttributeRequest.h | 60 - .../model/ModifyProjectAttributeResult.h | 61 - .../ivision/model/ModifyTagAttributeRequest.h | 63 - .../ivision/model/ModifyTagAttributeResult.h | 61 - ...ModifyTrainDataRegionTagAttributeRequest.h | 60 - .../ModifyTrainDataRegionTagAttributeResult.h | 76 - .../ModifyTrainDataTagAttributeRequest.h | 60 - .../model/ModifyTrainDataTagAttributeResult.h | 76 - .../ivision/model/PredictImageRequest.h | 63 - .../ivision/model/PredictImageResult.h | 82 - .../ivision/model/QuickTestRequest.h | 60 - .../ivision/model/QuickTestResult.h | 63 - .../ivision/model/RegisterFaceRequest.h | 66 - .../ivision/model/SearchFaceRequest.h | 66 - .../ivision/model/StartStreamPredictRequest.h | 18 +- .../ivision/model/StopStreamPredictRequest.h | 18 +- .../ivision/model/TrainProjectRequest.h | 54 - .../ivision/model/TrainProjectResult.h | 51 - .../ivision/model/UnregisterFaceRequest.h | 66 - ivision/src/IvisionClient.cc | 1378 +---------------- ivision/src/model/CreateFaceGroupRequest.cc | 246 +-- ivision/src/model/CreateFaceGroupResult.cc | 8 +- .../src/model/CreatePredictModelRequest.cc | 126 -- ivision/src/model/CreatePredictModelResult.cc | 68 - .../src/model/CreatePredictTemplateRequest.cc | 104 -- .../src/model/CreatePredictTemplateResult.cc | 64 - ivision/src/model/CreateProjectRequest.cc | 93 -- ivision/src/model/CreateProjectResult.cc | 64 - ivision/src/model/CreateQuickDeployRequest.cc | 71 - ivision/src/model/CreateQuickDeployResult.cc | 60 - .../src/model/CreateStreamPredictRequest.cc | 301 ++-- ivision/src/model/CreateTagRequest.cc | 82 - ivision/src/model/CreateTagResult.cc | 62 - .../model/CreateTrainDataRegionTagRequest.cc | 313 ---- .../model/CreateTrainDataRegionTagResult.cc | 89 -- .../src/model/CreateTrainDataTagRequest.cc | 82 - ivision/src/model/CreateTrainDataTagResult.cc | 85 - .../CreateTrainDatasFromPredictionRequest.cc | 93 -- .../CreateTrainDatasFromPredictionResult.cc | 90 -- .../model/CreateTrainDatasFromUrlsRequest.cc | 82 - .../model/CreateTrainDatasFromUrlsResult.cc | 90 -- .../src/model/CreateTrainDatasTagRequest.cc | 82 - .../src/model/CreateTrainDatasTagResult.cc | 85 - ivision/src/model/CreateUploadTokenRequest.cc | 302 ---- ivision/src/model/CreateUploadTokenResult.cc | 70 - ivision/src/model/DeleteFaceGroupRequest.cc | 246 +-- ivision/src/model/DeleteFaceGroupResult.cc | 8 +- ivision/src/model/DeleteIterationRequest.cc | 71 - ivision/src/model/DeleteIterationResult.cc | 51 - .../src/model/DeletePredictDatasRequest.cc | 93 -- ivision/src/model/DeletePredictDatasResult.cc | 44 - .../src/model/DeletePredictModelRequest.cc | 60 - ivision/src/model/DeletePredictModelResult.cc | 51 - .../src/model/DeletePredictTemplateRequest.cc | 60 - .../src/model/DeletePredictTemplateResult.cc | 51 - ivision/src/model/DeleteProjectRequest.cc | 60 - ivision/src/model/DeleteProjectResult.cc | 51 - .../src/model/DeleteStreamPredictRequest.cc | 70 +- ivision/src/model/DeleteTagRequest.cc | 71 - ivision/src/model/DeleteTagResult.cc | 51 - ivision/src/model/DeleteTrainDatasRequest.cc | 71 - ivision/src/model/DeleteTrainDatasResult.cc | 44 - .../src/model/DeleteTrainDatasTagRequest.cc | 82 - .../src/model/DeleteTrainDatasTagResult.cc | 44 - .../src/model/DescribeFaceGroupsRequest.cc | 246 +-- ivision/src/model/DescribeFaceGroupsResult.cc | 24 +- .../src/model/DescribeIterationsRequest.cc | 93 -- ivision/src/model/DescribeIterationsResult.cc | 103 -- .../src/model/DescribePredictDatasRequest.cc | 159 -- .../src/model/DescribePredictDatasResult.cc | 128 -- .../src/model/DescribePredictModelsRequest.cc | 126 -- .../src/model/DescribePredictModelsResult.cc | 106 -- .../model/DescribePredictTemplatesRequest.cc | 115 -- .../model/DescribePredictTemplatesResult.cc | 97 -- ivision/src/model/DescribeProjectsRequest.cc | 93 -- ivision/src/model/DescribeProjectsResult.cc | 97 -- .../src/model/DescribeQuickDeploysRequest.cc | 93 -- .../src/model/DescribeQuickDeploysResult.cc | 86 - .../DescribeStreamPredictResultRequest.cc | 224 +-- .../model/DescribeStreamPredictsRequest.cc | 136 +- .../DescribeSystemPredictModelsRequest.cc | 115 -- .../DescribeSystemPredictModelsResult.cc | 88 -- ivision/src/model/DescribeTagsRequest.cc | 126 -- ivision/src/model/DescribeTagsResult.cc | 95 -- .../model/DescribeTrainDatasByIdsRequest.cc | 82 - .../model/DescribeTrainDatasByIdsResult.cc | 90 -- .../src/model/DescribeTrainDatasRequest.cc | 126 -- ivision/src/model/DescribeTrainDatasResult.cc | 118 -- .../src/model/DescribeTrainResultRequest.cc | 82 - .../src/model/DescribeTrainResultResult.cc | 90 -- ivision/src/model/ImagePredictRequest.cc | 4 +- .../ModifyPredictTemplateAttributeRequest.cc | 115 -- .../ModifyPredictTemplateAttributeResult.cc | 64 - .../model/ModifyProjectAttributeRequest.cc | 82 - .../src/model/ModifyProjectAttributeResult.cc | 64 - .../src/model/ModifyTagAttributeRequest.cc | 93 -- ivision/src/model/ModifyTagAttributeResult.cc | 64 - ...odifyTrainDataRegionTagAttributeRequest.cc | 82 - ...ModifyTrainDataRegionTagAttributeResult.cc | 85 - .../ModifyTrainDataTagAttributeRequest.cc | 82 - .../ModifyTrainDataTagAttributeResult.cc | 85 - ivision/src/model/PredictImageRequest.cc | 93 -- ivision/src/model/PredictImageResult.cc | 102 -- ivision/src/model/QuickTestRequest.cc | 82 - ivision/src/model/QuickTestResult.cc | 68 - ivision/src/model/RegisterFaceRequest.cc | 246 +-- ivision/src/model/RegisterFaceResult.cc | 16 +- ivision/src/model/SearchFaceRequest.cc | 246 +-- ivision/src/model/SearchFaceResult.cc | 20 +- .../src/model/StartStreamPredictRequest.cc | 70 +- ivision/src/model/StopStreamPredictRequest.cc | 70 +- ivision/src/model/TrainProjectRequest.cc | 60 - ivision/src/model/TrainProjectResult.cc | 51 - ivision/src/model/UnregisterFaceRequest.cc | 246 +-- ivision/src/model/UnregisterFaceResult.cc | 8 +- 186 files changed, 658 insertions(+), 16114 deletions(-) delete mode 100644 ivision/include/alibabacloud/ivision/model/CreatePredictModelRequest.h delete mode 100644 ivision/include/alibabacloud/ivision/model/CreatePredictModelResult.h delete mode 100644 ivision/include/alibabacloud/ivision/model/CreatePredictTemplateRequest.h delete mode 100644 ivision/include/alibabacloud/ivision/model/CreatePredictTemplateResult.h delete mode 100644 ivision/include/alibabacloud/ivision/model/CreateProjectRequest.h delete mode 100644 ivision/include/alibabacloud/ivision/model/CreateProjectResult.h delete mode 100644 ivision/include/alibabacloud/ivision/model/CreateQuickDeployRequest.h delete mode 100644 ivision/include/alibabacloud/ivision/model/CreateQuickDeployResult.h delete mode 100644 ivision/include/alibabacloud/ivision/model/CreateTagRequest.h delete mode 100644 ivision/include/alibabacloud/ivision/model/CreateTagResult.h delete mode 100644 ivision/include/alibabacloud/ivision/model/CreateTrainDataRegionTagRequest.h delete mode 100644 ivision/include/alibabacloud/ivision/model/CreateTrainDataRegionTagResult.h delete mode 100644 ivision/include/alibabacloud/ivision/model/CreateTrainDataTagRequest.h delete mode 100644 ivision/include/alibabacloud/ivision/model/CreateTrainDataTagResult.h delete mode 100644 ivision/include/alibabacloud/ivision/model/CreateTrainDatasFromPredictionRequest.h delete mode 100644 ivision/include/alibabacloud/ivision/model/CreateTrainDatasFromPredictionResult.h delete mode 100644 ivision/include/alibabacloud/ivision/model/CreateTrainDatasFromUrlsRequest.h delete mode 100644 ivision/include/alibabacloud/ivision/model/CreateTrainDatasFromUrlsResult.h delete mode 100644 ivision/include/alibabacloud/ivision/model/CreateTrainDatasTagRequest.h delete mode 100644 ivision/include/alibabacloud/ivision/model/CreateTrainDatasTagResult.h delete mode 100644 ivision/include/alibabacloud/ivision/model/CreateUploadTokenRequest.h delete mode 100644 ivision/include/alibabacloud/ivision/model/CreateUploadTokenResult.h delete mode 100644 ivision/include/alibabacloud/ivision/model/DeleteIterationRequest.h delete mode 100644 ivision/include/alibabacloud/ivision/model/DeleteIterationResult.h delete mode 100644 ivision/include/alibabacloud/ivision/model/DeletePredictDatasRequest.h delete mode 100644 ivision/include/alibabacloud/ivision/model/DeletePredictDatasResult.h delete mode 100644 ivision/include/alibabacloud/ivision/model/DeletePredictModelRequest.h delete mode 100644 ivision/include/alibabacloud/ivision/model/DeletePredictModelResult.h delete mode 100644 ivision/include/alibabacloud/ivision/model/DeletePredictTemplateRequest.h delete mode 100644 ivision/include/alibabacloud/ivision/model/DeletePredictTemplateResult.h delete mode 100644 ivision/include/alibabacloud/ivision/model/DeleteProjectRequest.h delete mode 100644 ivision/include/alibabacloud/ivision/model/DeleteProjectResult.h delete mode 100644 ivision/include/alibabacloud/ivision/model/DeleteTagRequest.h delete mode 100644 ivision/include/alibabacloud/ivision/model/DeleteTagResult.h delete mode 100644 ivision/include/alibabacloud/ivision/model/DeleteTrainDatasRequest.h delete mode 100644 ivision/include/alibabacloud/ivision/model/DeleteTrainDatasResult.h delete mode 100644 ivision/include/alibabacloud/ivision/model/DeleteTrainDatasTagRequest.h delete mode 100644 ivision/include/alibabacloud/ivision/model/DeleteTrainDatasTagResult.h delete mode 100644 ivision/include/alibabacloud/ivision/model/DescribeIterationsRequest.h delete mode 100644 ivision/include/alibabacloud/ivision/model/DescribeIterationsResult.h delete mode 100644 ivision/include/alibabacloud/ivision/model/DescribePredictDatasRequest.h delete mode 100644 ivision/include/alibabacloud/ivision/model/DescribePredictDatasResult.h delete mode 100644 ivision/include/alibabacloud/ivision/model/DescribePredictModelsRequest.h delete mode 100644 ivision/include/alibabacloud/ivision/model/DescribePredictModelsResult.h delete mode 100644 ivision/include/alibabacloud/ivision/model/DescribePredictTemplatesRequest.h delete mode 100644 ivision/include/alibabacloud/ivision/model/DescribePredictTemplatesResult.h delete mode 100644 ivision/include/alibabacloud/ivision/model/DescribeProjectsRequest.h delete mode 100644 ivision/include/alibabacloud/ivision/model/DescribeProjectsResult.h delete mode 100644 ivision/include/alibabacloud/ivision/model/DescribeQuickDeploysRequest.h delete mode 100644 ivision/include/alibabacloud/ivision/model/DescribeQuickDeploysResult.h delete mode 100644 ivision/include/alibabacloud/ivision/model/DescribeSystemPredictModelsRequest.h delete mode 100644 ivision/include/alibabacloud/ivision/model/DescribeSystemPredictModelsResult.h delete mode 100644 ivision/include/alibabacloud/ivision/model/DescribeTagsRequest.h delete mode 100644 ivision/include/alibabacloud/ivision/model/DescribeTagsResult.h delete mode 100644 ivision/include/alibabacloud/ivision/model/DescribeTrainDatasByIdsRequest.h delete mode 100644 ivision/include/alibabacloud/ivision/model/DescribeTrainDatasByIdsResult.h delete mode 100644 ivision/include/alibabacloud/ivision/model/DescribeTrainDatasRequest.h delete mode 100644 ivision/include/alibabacloud/ivision/model/DescribeTrainDatasResult.h delete mode 100644 ivision/include/alibabacloud/ivision/model/DescribeTrainResultRequest.h delete mode 100644 ivision/include/alibabacloud/ivision/model/DescribeTrainResultResult.h delete mode 100644 ivision/include/alibabacloud/ivision/model/ModifyPredictTemplateAttributeRequest.h delete mode 100644 ivision/include/alibabacloud/ivision/model/ModifyPredictTemplateAttributeResult.h delete mode 100644 ivision/include/alibabacloud/ivision/model/ModifyProjectAttributeRequest.h delete mode 100644 ivision/include/alibabacloud/ivision/model/ModifyProjectAttributeResult.h delete mode 100644 ivision/include/alibabacloud/ivision/model/ModifyTagAttributeRequest.h delete mode 100644 ivision/include/alibabacloud/ivision/model/ModifyTagAttributeResult.h delete mode 100644 ivision/include/alibabacloud/ivision/model/ModifyTrainDataRegionTagAttributeRequest.h delete mode 100644 ivision/include/alibabacloud/ivision/model/ModifyTrainDataRegionTagAttributeResult.h delete mode 100644 ivision/include/alibabacloud/ivision/model/ModifyTrainDataTagAttributeRequest.h delete mode 100644 ivision/include/alibabacloud/ivision/model/ModifyTrainDataTagAttributeResult.h delete mode 100644 ivision/include/alibabacloud/ivision/model/PredictImageRequest.h delete mode 100644 ivision/include/alibabacloud/ivision/model/PredictImageResult.h delete mode 100644 ivision/include/alibabacloud/ivision/model/QuickTestRequest.h delete mode 100644 ivision/include/alibabacloud/ivision/model/QuickTestResult.h delete mode 100644 ivision/include/alibabacloud/ivision/model/TrainProjectRequest.h delete mode 100644 ivision/include/alibabacloud/ivision/model/TrainProjectResult.h delete mode 100644 ivision/src/model/CreatePredictModelRequest.cc delete mode 100644 ivision/src/model/CreatePredictModelResult.cc delete mode 100644 ivision/src/model/CreatePredictTemplateRequest.cc delete mode 100644 ivision/src/model/CreatePredictTemplateResult.cc delete mode 100644 ivision/src/model/CreateProjectRequest.cc delete mode 100644 ivision/src/model/CreateProjectResult.cc delete mode 100644 ivision/src/model/CreateQuickDeployRequest.cc delete mode 100644 ivision/src/model/CreateQuickDeployResult.cc delete mode 100644 ivision/src/model/CreateTagRequest.cc delete mode 100644 ivision/src/model/CreateTagResult.cc delete mode 100644 ivision/src/model/CreateTrainDataRegionTagRequest.cc delete mode 100644 ivision/src/model/CreateTrainDataRegionTagResult.cc delete mode 100644 ivision/src/model/CreateTrainDataTagRequest.cc delete mode 100644 ivision/src/model/CreateTrainDataTagResult.cc delete mode 100644 ivision/src/model/CreateTrainDatasFromPredictionRequest.cc delete mode 100644 ivision/src/model/CreateTrainDatasFromPredictionResult.cc delete mode 100644 ivision/src/model/CreateTrainDatasFromUrlsRequest.cc delete mode 100644 ivision/src/model/CreateTrainDatasFromUrlsResult.cc delete mode 100644 ivision/src/model/CreateTrainDatasTagRequest.cc delete mode 100644 ivision/src/model/CreateTrainDatasTagResult.cc delete mode 100644 ivision/src/model/CreateUploadTokenRequest.cc delete mode 100644 ivision/src/model/CreateUploadTokenResult.cc delete mode 100644 ivision/src/model/DeleteIterationRequest.cc delete mode 100644 ivision/src/model/DeleteIterationResult.cc delete mode 100644 ivision/src/model/DeletePredictDatasRequest.cc delete mode 100644 ivision/src/model/DeletePredictDatasResult.cc delete mode 100644 ivision/src/model/DeletePredictModelRequest.cc delete mode 100644 ivision/src/model/DeletePredictModelResult.cc delete mode 100644 ivision/src/model/DeletePredictTemplateRequest.cc delete mode 100644 ivision/src/model/DeletePredictTemplateResult.cc delete mode 100644 ivision/src/model/DeleteProjectRequest.cc delete mode 100644 ivision/src/model/DeleteProjectResult.cc delete mode 100644 ivision/src/model/DeleteTagRequest.cc delete mode 100644 ivision/src/model/DeleteTagResult.cc delete mode 100644 ivision/src/model/DeleteTrainDatasRequest.cc delete mode 100644 ivision/src/model/DeleteTrainDatasResult.cc delete mode 100644 ivision/src/model/DeleteTrainDatasTagRequest.cc delete mode 100644 ivision/src/model/DeleteTrainDatasTagResult.cc delete mode 100644 ivision/src/model/DescribeIterationsRequest.cc delete mode 100644 ivision/src/model/DescribeIterationsResult.cc delete mode 100644 ivision/src/model/DescribePredictDatasRequest.cc delete mode 100644 ivision/src/model/DescribePredictDatasResult.cc delete mode 100644 ivision/src/model/DescribePredictModelsRequest.cc delete mode 100644 ivision/src/model/DescribePredictModelsResult.cc delete mode 100644 ivision/src/model/DescribePredictTemplatesRequest.cc delete mode 100644 ivision/src/model/DescribePredictTemplatesResult.cc delete mode 100644 ivision/src/model/DescribeProjectsRequest.cc delete mode 100644 ivision/src/model/DescribeProjectsResult.cc delete mode 100644 ivision/src/model/DescribeQuickDeploysRequest.cc delete mode 100644 ivision/src/model/DescribeQuickDeploysResult.cc delete mode 100644 ivision/src/model/DescribeSystemPredictModelsRequest.cc delete mode 100644 ivision/src/model/DescribeSystemPredictModelsResult.cc delete mode 100644 ivision/src/model/DescribeTagsRequest.cc delete mode 100644 ivision/src/model/DescribeTagsResult.cc delete mode 100644 ivision/src/model/DescribeTrainDatasByIdsRequest.cc delete mode 100644 ivision/src/model/DescribeTrainDatasByIdsResult.cc delete mode 100644 ivision/src/model/DescribeTrainDatasRequest.cc delete mode 100644 ivision/src/model/DescribeTrainDatasResult.cc delete mode 100644 ivision/src/model/DescribeTrainResultRequest.cc delete mode 100644 ivision/src/model/DescribeTrainResultResult.cc delete mode 100644 ivision/src/model/ModifyPredictTemplateAttributeRequest.cc delete mode 100644 ivision/src/model/ModifyPredictTemplateAttributeResult.cc delete mode 100644 ivision/src/model/ModifyProjectAttributeRequest.cc delete mode 100644 ivision/src/model/ModifyProjectAttributeResult.cc delete mode 100644 ivision/src/model/ModifyTagAttributeRequest.cc delete mode 100644 ivision/src/model/ModifyTagAttributeResult.cc delete mode 100644 ivision/src/model/ModifyTrainDataRegionTagAttributeRequest.cc delete mode 100644 ivision/src/model/ModifyTrainDataRegionTagAttributeResult.cc delete mode 100644 ivision/src/model/ModifyTrainDataTagAttributeRequest.cc delete mode 100644 ivision/src/model/ModifyTrainDataTagAttributeResult.cc delete mode 100644 ivision/src/model/PredictImageRequest.cc delete mode 100644 ivision/src/model/PredictImageResult.cc delete mode 100644 ivision/src/model/QuickTestRequest.cc delete mode 100644 ivision/src/model/QuickTestResult.cc delete mode 100644 ivision/src/model/TrainProjectRequest.cc delete mode 100644 ivision/src/model/TrainProjectResult.cc diff --git a/ivision/CMakeLists.txt b/ivision/CMakeLists.txt index 6d0ad0189..7e8d43b00 100644 --- a/ivision/CMakeLists.txt +++ b/ivision/CMakeLists.txt @@ -23,94 +23,20 @@ set(ivision_public_header set(ivision_public_header_model include/alibabacloud/ivision/model/CreateFaceGroupRequest.h include/alibabacloud/ivision/model/CreateFaceGroupResult.h - include/alibabacloud/ivision/model/CreatePredictModelRequest.h - include/alibabacloud/ivision/model/CreatePredictModelResult.h - include/alibabacloud/ivision/model/CreatePredictTemplateRequest.h - include/alibabacloud/ivision/model/CreatePredictTemplateResult.h - include/alibabacloud/ivision/model/CreateProjectRequest.h - include/alibabacloud/ivision/model/CreateProjectResult.h - include/alibabacloud/ivision/model/CreateQuickDeployRequest.h - include/alibabacloud/ivision/model/CreateQuickDeployResult.h include/alibabacloud/ivision/model/CreateStreamPredictRequest.h include/alibabacloud/ivision/model/CreateStreamPredictResult.h - include/alibabacloud/ivision/model/CreateTagRequest.h - include/alibabacloud/ivision/model/CreateTagResult.h - include/alibabacloud/ivision/model/CreateTrainDataRegionTagRequest.h - include/alibabacloud/ivision/model/CreateTrainDataRegionTagResult.h - include/alibabacloud/ivision/model/CreateTrainDataTagRequest.h - include/alibabacloud/ivision/model/CreateTrainDataTagResult.h - include/alibabacloud/ivision/model/CreateTrainDatasFromPredictionRequest.h - include/alibabacloud/ivision/model/CreateTrainDatasFromPredictionResult.h - include/alibabacloud/ivision/model/CreateTrainDatasFromUrlsRequest.h - include/alibabacloud/ivision/model/CreateTrainDatasFromUrlsResult.h - include/alibabacloud/ivision/model/CreateTrainDatasTagRequest.h - include/alibabacloud/ivision/model/CreateTrainDatasTagResult.h - include/alibabacloud/ivision/model/CreateUploadTokenRequest.h - include/alibabacloud/ivision/model/CreateUploadTokenResult.h include/alibabacloud/ivision/model/DeleteFaceGroupRequest.h include/alibabacloud/ivision/model/DeleteFaceGroupResult.h - include/alibabacloud/ivision/model/DeleteIterationRequest.h - include/alibabacloud/ivision/model/DeleteIterationResult.h - include/alibabacloud/ivision/model/DeletePredictDatasRequest.h - include/alibabacloud/ivision/model/DeletePredictDatasResult.h - include/alibabacloud/ivision/model/DeletePredictModelRequest.h - include/alibabacloud/ivision/model/DeletePredictModelResult.h - include/alibabacloud/ivision/model/DeletePredictTemplateRequest.h - include/alibabacloud/ivision/model/DeletePredictTemplateResult.h - include/alibabacloud/ivision/model/DeleteProjectRequest.h - include/alibabacloud/ivision/model/DeleteProjectResult.h include/alibabacloud/ivision/model/DeleteStreamPredictRequest.h include/alibabacloud/ivision/model/DeleteStreamPredictResult.h - include/alibabacloud/ivision/model/DeleteTagRequest.h - include/alibabacloud/ivision/model/DeleteTagResult.h - include/alibabacloud/ivision/model/DeleteTrainDatasRequest.h - include/alibabacloud/ivision/model/DeleteTrainDatasResult.h - include/alibabacloud/ivision/model/DeleteTrainDatasTagRequest.h - include/alibabacloud/ivision/model/DeleteTrainDatasTagResult.h include/alibabacloud/ivision/model/DescribeFaceGroupsRequest.h include/alibabacloud/ivision/model/DescribeFaceGroupsResult.h - include/alibabacloud/ivision/model/DescribeIterationsRequest.h - include/alibabacloud/ivision/model/DescribeIterationsResult.h - include/alibabacloud/ivision/model/DescribePredictDatasRequest.h - include/alibabacloud/ivision/model/DescribePredictDatasResult.h - include/alibabacloud/ivision/model/DescribePredictModelsRequest.h - include/alibabacloud/ivision/model/DescribePredictModelsResult.h - include/alibabacloud/ivision/model/DescribePredictTemplatesRequest.h - include/alibabacloud/ivision/model/DescribePredictTemplatesResult.h - include/alibabacloud/ivision/model/DescribeProjectsRequest.h - include/alibabacloud/ivision/model/DescribeProjectsResult.h - include/alibabacloud/ivision/model/DescribeQuickDeploysRequest.h - include/alibabacloud/ivision/model/DescribeQuickDeploysResult.h include/alibabacloud/ivision/model/DescribeStreamPredictResultRequest.h include/alibabacloud/ivision/model/DescribeStreamPredictResultResult.h include/alibabacloud/ivision/model/DescribeStreamPredictsRequest.h include/alibabacloud/ivision/model/DescribeStreamPredictsResult.h - include/alibabacloud/ivision/model/DescribeSystemPredictModelsRequest.h - include/alibabacloud/ivision/model/DescribeSystemPredictModelsResult.h - include/alibabacloud/ivision/model/DescribeTagsRequest.h - include/alibabacloud/ivision/model/DescribeTagsResult.h - include/alibabacloud/ivision/model/DescribeTrainDatasRequest.h - include/alibabacloud/ivision/model/DescribeTrainDatasResult.h - include/alibabacloud/ivision/model/DescribeTrainDatasByIdsRequest.h - include/alibabacloud/ivision/model/DescribeTrainDatasByIdsResult.h - include/alibabacloud/ivision/model/DescribeTrainResultRequest.h - include/alibabacloud/ivision/model/DescribeTrainResultResult.h include/alibabacloud/ivision/model/ImagePredictRequest.h include/alibabacloud/ivision/model/ImagePredictResult.h - include/alibabacloud/ivision/model/ModifyPredictTemplateAttributeRequest.h - include/alibabacloud/ivision/model/ModifyPredictTemplateAttributeResult.h - include/alibabacloud/ivision/model/ModifyProjectAttributeRequest.h - include/alibabacloud/ivision/model/ModifyProjectAttributeResult.h - include/alibabacloud/ivision/model/ModifyTagAttributeRequest.h - include/alibabacloud/ivision/model/ModifyTagAttributeResult.h - include/alibabacloud/ivision/model/ModifyTrainDataRegionTagAttributeRequest.h - include/alibabacloud/ivision/model/ModifyTrainDataRegionTagAttributeResult.h - include/alibabacloud/ivision/model/ModifyTrainDataTagAttributeRequest.h - include/alibabacloud/ivision/model/ModifyTrainDataTagAttributeResult.h - include/alibabacloud/ivision/model/PredictImageRequest.h - include/alibabacloud/ivision/model/PredictImageResult.h - include/alibabacloud/ivision/model/QuickTestRequest.h - include/alibabacloud/ivision/model/QuickTestResult.h include/alibabacloud/ivision/model/RegisterFaceRequest.h include/alibabacloud/ivision/model/RegisterFaceResult.h include/alibabacloud/ivision/model/SearchFaceRequest.h @@ -119,8 +45,6 @@ set(ivision_public_header_model include/alibabacloud/ivision/model/StartStreamPredictResult.h include/alibabacloud/ivision/model/StopStreamPredictRequest.h include/alibabacloud/ivision/model/StopStreamPredictResult.h - include/alibabacloud/ivision/model/TrainProjectRequest.h - include/alibabacloud/ivision/model/TrainProjectResult.h include/alibabacloud/ivision/model/UnregisterFaceRequest.h include/alibabacloud/ivision/model/UnregisterFaceResult.h ) @@ -128,94 +52,20 @@ set(ivision_src src/IvisionClient.cc src/model/CreateFaceGroupRequest.cc src/model/CreateFaceGroupResult.cc - src/model/CreatePredictModelRequest.cc - src/model/CreatePredictModelResult.cc - src/model/CreatePredictTemplateRequest.cc - src/model/CreatePredictTemplateResult.cc - src/model/CreateProjectRequest.cc - src/model/CreateProjectResult.cc - src/model/CreateQuickDeployRequest.cc - src/model/CreateQuickDeployResult.cc src/model/CreateStreamPredictRequest.cc src/model/CreateStreamPredictResult.cc - src/model/CreateTagRequest.cc - src/model/CreateTagResult.cc - src/model/CreateTrainDataRegionTagRequest.cc - src/model/CreateTrainDataRegionTagResult.cc - src/model/CreateTrainDataTagRequest.cc - src/model/CreateTrainDataTagResult.cc - src/model/CreateTrainDatasFromPredictionRequest.cc - src/model/CreateTrainDatasFromPredictionResult.cc - src/model/CreateTrainDatasFromUrlsRequest.cc - src/model/CreateTrainDatasFromUrlsResult.cc - src/model/CreateTrainDatasTagRequest.cc - src/model/CreateTrainDatasTagResult.cc - src/model/CreateUploadTokenRequest.cc - src/model/CreateUploadTokenResult.cc src/model/DeleteFaceGroupRequest.cc src/model/DeleteFaceGroupResult.cc - src/model/DeleteIterationRequest.cc - src/model/DeleteIterationResult.cc - src/model/DeletePredictDatasRequest.cc - src/model/DeletePredictDatasResult.cc - src/model/DeletePredictModelRequest.cc - src/model/DeletePredictModelResult.cc - src/model/DeletePredictTemplateRequest.cc - src/model/DeletePredictTemplateResult.cc - src/model/DeleteProjectRequest.cc - src/model/DeleteProjectResult.cc src/model/DeleteStreamPredictRequest.cc src/model/DeleteStreamPredictResult.cc - src/model/DeleteTagRequest.cc - src/model/DeleteTagResult.cc - src/model/DeleteTrainDatasRequest.cc - src/model/DeleteTrainDatasResult.cc - src/model/DeleteTrainDatasTagRequest.cc - src/model/DeleteTrainDatasTagResult.cc src/model/DescribeFaceGroupsRequest.cc src/model/DescribeFaceGroupsResult.cc - src/model/DescribeIterationsRequest.cc - src/model/DescribeIterationsResult.cc - src/model/DescribePredictDatasRequest.cc - src/model/DescribePredictDatasResult.cc - src/model/DescribePredictModelsRequest.cc - src/model/DescribePredictModelsResult.cc - src/model/DescribePredictTemplatesRequest.cc - src/model/DescribePredictTemplatesResult.cc - src/model/DescribeProjectsRequest.cc - src/model/DescribeProjectsResult.cc - src/model/DescribeQuickDeploysRequest.cc - src/model/DescribeQuickDeploysResult.cc src/model/DescribeStreamPredictResultRequest.cc src/model/DescribeStreamPredictResultResult.cc src/model/DescribeStreamPredictsRequest.cc src/model/DescribeStreamPredictsResult.cc - src/model/DescribeSystemPredictModelsRequest.cc - src/model/DescribeSystemPredictModelsResult.cc - src/model/DescribeTagsRequest.cc - src/model/DescribeTagsResult.cc - src/model/DescribeTrainDatasRequest.cc - src/model/DescribeTrainDatasResult.cc - src/model/DescribeTrainDatasByIdsRequest.cc - src/model/DescribeTrainDatasByIdsResult.cc - src/model/DescribeTrainResultRequest.cc - src/model/DescribeTrainResultResult.cc src/model/ImagePredictRequest.cc src/model/ImagePredictResult.cc - src/model/ModifyPredictTemplateAttributeRequest.cc - src/model/ModifyPredictTemplateAttributeResult.cc - src/model/ModifyProjectAttributeRequest.cc - src/model/ModifyProjectAttributeResult.cc - src/model/ModifyTagAttributeRequest.cc - src/model/ModifyTagAttributeResult.cc - src/model/ModifyTrainDataRegionTagAttributeRequest.cc - src/model/ModifyTrainDataRegionTagAttributeResult.cc - src/model/ModifyTrainDataTagAttributeRequest.cc - src/model/ModifyTrainDataTagAttributeResult.cc - src/model/PredictImageRequest.cc - src/model/PredictImageResult.cc - src/model/QuickTestRequest.cc - src/model/QuickTestResult.cc src/model/RegisterFaceRequest.cc src/model/RegisterFaceResult.cc src/model/SearchFaceRequest.cc @@ -224,8 +74,6 @@ set(ivision_src src/model/StartStreamPredictResult.cc src/model/StopStreamPredictRequest.cc src/model/StopStreamPredictResult.cc - src/model/TrainProjectRequest.cc - src/model/TrainProjectResult.cc src/model/UnregisterFaceRequest.cc src/model/UnregisterFaceResult.cc ) diff --git a/ivision/include/alibabacloud/ivision/IvisionClient.h b/ivision/include/alibabacloud/ivision/IvisionClient.h index b26c05c7e..e34e65c93 100644 --- a/ivision/include/alibabacloud/ivision/IvisionClient.h +++ b/ivision/include/alibabacloud/ivision/IvisionClient.h @@ -22,108 +22,32 @@ #include #include #include "IvisionExport.h" -#include "model/CreateFaceGroupRequest.h" -#include "model/CreateFaceGroupResult.h" -#include "model/CreatePredictModelRequest.h" -#include "model/CreatePredictModelResult.h" -#include "model/CreatePredictTemplateRequest.h" -#include "model/CreatePredictTemplateResult.h" -#include "model/CreateProjectRequest.h" -#include "model/CreateProjectResult.h" -#include "model/CreateQuickDeployRequest.h" -#include "model/CreateQuickDeployResult.h" -#include "model/CreateStreamPredictRequest.h" -#include "model/CreateStreamPredictResult.h" -#include "model/CreateTagRequest.h" -#include "model/CreateTagResult.h" -#include "model/CreateTrainDataRegionTagRequest.h" -#include "model/CreateTrainDataRegionTagResult.h" -#include "model/CreateTrainDataTagRequest.h" -#include "model/CreateTrainDataTagResult.h" -#include "model/CreateTrainDatasFromPredictionRequest.h" -#include "model/CreateTrainDatasFromPredictionResult.h" -#include "model/CreateTrainDatasFromUrlsRequest.h" -#include "model/CreateTrainDatasFromUrlsResult.h" -#include "model/CreateTrainDatasTagRequest.h" -#include "model/CreateTrainDatasTagResult.h" -#include "model/CreateUploadTokenRequest.h" -#include "model/CreateUploadTokenResult.h" -#include "model/DeleteFaceGroupRequest.h" -#include "model/DeleteFaceGroupResult.h" -#include "model/DeleteIterationRequest.h" -#include "model/DeleteIterationResult.h" -#include "model/DeletePredictDatasRequest.h" -#include "model/DeletePredictDatasResult.h" -#include "model/DeletePredictModelRequest.h" -#include "model/DeletePredictModelResult.h" -#include "model/DeletePredictTemplateRequest.h" -#include "model/DeletePredictTemplateResult.h" -#include "model/DeleteProjectRequest.h" -#include "model/DeleteProjectResult.h" -#include "model/DeleteStreamPredictRequest.h" -#include "model/DeleteStreamPredictResult.h" -#include "model/DeleteTagRequest.h" -#include "model/DeleteTagResult.h" -#include "model/DeleteTrainDatasRequest.h" -#include "model/DeleteTrainDatasResult.h" -#include "model/DeleteTrainDatasTagRequest.h" -#include "model/DeleteTrainDatasTagResult.h" -#include "model/DescribeFaceGroupsRequest.h" -#include "model/DescribeFaceGroupsResult.h" -#include "model/DescribeIterationsRequest.h" -#include "model/DescribeIterationsResult.h" -#include "model/DescribePredictDatasRequest.h" -#include "model/DescribePredictDatasResult.h" -#include "model/DescribePredictModelsRequest.h" -#include "model/DescribePredictModelsResult.h" -#include "model/DescribePredictTemplatesRequest.h" -#include "model/DescribePredictTemplatesResult.h" -#include "model/DescribeProjectsRequest.h" -#include "model/DescribeProjectsResult.h" -#include "model/DescribeQuickDeploysRequest.h" -#include "model/DescribeQuickDeploysResult.h" -#include "model/DescribeStreamPredictResultRequest.h" -#include "model/DescribeStreamPredictResultResult.h" -#include "model/DescribeStreamPredictsRequest.h" -#include "model/DescribeStreamPredictsResult.h" -#include "model/DescribeSystemPredictModelsRequest.h" -#include "model/DescribeSystemPredictModelsResult.h" -#include "model/DescribeTagsRequest.h" -#include "model/DescribeTagsResult.h" -#include "model/DescribeTrainDatasRequest.h" -#include "model/DescribeTrainDatasResult.h" -#include "model/DescribeTrainDatasByIdsRequest.h" -#include "model/DescribeTrainDatasByIdsResult.h" -#include "model/DescribeTrainResultRequest.h" -#include "model/DescribeTrainResultResult.h" -#include "model/ImagePredictRequest.h" -#include "model/ImagePredictResult.h" -#include "model/ModifyPredictTemplateAttributeRequest.h" -#include "model/ModifyPredictTemplateAttributeResult.h" -#include "model/ModifyProjectAttributeRequest.h" -#include "model/ModifyProjectAttributeResult.h" -#include "model/ModifyTagAttributeRequest.h" -#include "model/ModifyTagAttributeResult.h" -#include "model/ModifyTrainDataRegionTagAttributeRequest.h" -#include "model/ModifyTrainDataRegionTagAttributeResult.h" -#include "model/ModifyTrainDataTagAttributeRequest.h" -#include "model/ModifyTrainDataTagAttributeResult.h" -#include "model/PredictImageRequest.h" -#include "model/PredictImageResult.h" -#include "model/QuickTestRequest.h" -#include "model/QuickTestResult.h" -#include "model/RegisterFaceRequest.h" -#include "model/RegisterFaceResult.h" -#include "model/SearchFaceRequest.h" -#include "model/SearchFaceResult.h" -#include "model/StartStreamPredictRequest.h" -#include "model/StartStreamPredictResult.h" -#include "model/StopStreamPredictRequest.h" -#include "model/StopStreamPredictResult.h" -#include "model/TrainProjectRequest.h" -#include "model/TrainProjectResult.h" -#include "model/UnregisterFaceRequest.h" -#include "model/UnregisterFaceResult.h" +#include "model/CreateFaceGroupRequest.h" +#include "model/CreateFaceGroupResult.h" +#include "model/CreateStreamPredictRequest.h" +#include "model/CreateStreamPredictResult.h" +#include "model/DeleteFaceGroupRequest.h" +#include "model/DeleteFaceGroupResult.h" +#include "model/DeleteStreamPredictRequest.h" +#include "model/DeleteStreamPredictResult.h" +#include "model/DescribeFaceGroupsRequest.h" +#include "model/DescribeFaceGroupsResult.h" +#include "model/DescribeStreamPredictResultRequest.h" +#include "model/DescribeStreamPredictResultResult.h" +#include "model/DescribeStreamPredictsRequest.h" +#include "model/DescribeStreamPredictsResult.h" +#include "model/ImagePredictRequest.h" +#include "model/ImagePredictResult.h" +#include "model/RegisterFaceRequest.h" +#include "model/RegisterFaceResult.h" +#include "model/SearchFaceRequest.h" +#include "model/SearchFaceResult.h" +#include "model/StartStreamPredictRequest.h" +#include "model/StartStreamPredictResult.h" +#include "model/StopStreamPredictRequest.h" +#include "model/StopStreamPredictResult.h" +#include "model/UnregisterFaceRequest.h" +#include "model/UnregisterFaceResult.h" namespace AlibabaCloud @@ -135,157 +59,43 @@ namespace AlibabaCloud public: typedef Outcome CreateFaceGroupOutcome; typedef std::future CreateFaceGroupOutcomeCallable; - typedef std::function&)> CreateFaceGroupAsyncHandler; - typedef Outcome CreatePredictModelOutcome; - typedef std::future CreatePredictModelOutcomeCallable; - typedef std::function&)> CreatePredictModelAsyncHandler; - typedef Outcome CreatePredictTemplateOutcome; - typedef std::future CreatePredictTemplateOutcomeCallable; - typedef std::function&)> CreatePredictTemplateAsyncHandler; - typedef Outcome CreateProjectOutcome; - typedef std::future CreateProjectOutcomeCallable; - typedef std::function&)> CreateProjectAsyncHandler; - typedef Outcome CreateQuickDeployOutcome; - typedef std::future CreateQuickDeployOutcomeCallable; - typedef std::function&)> CreateQuickDeployAsyncHandler; + typedef std::function&)> CreateFaceGroupAsyncHandler; typedef Outcome CreateStreamPredictOutcome; typedef std::future CreateStreamPredictOutcomeCallable; - typedef std::function&)> CreateStreamPredictAsyncHandler; - typedef Outcome CreateTagOutcome; - typedef std::future CreateTagOutcomeCallable; - typedef std::function&)> CreateTagAsyncHandler; - typedef Outcome CreateTrainDataRegionTagOutcome; - typedef std::future CreateTrainDataRegionTagOutcomeCallable; - typedef std::function&)> CreateTrainDataRegionTagAsyncHandler; - typedef Outcome CreateTrainDataTagOutcome; - typedef std::future CreateTrainDataTagOutcomeCallable; - typedef std::function&)> CreateTrainDataTagAsyncHandler; - typedef Outcome CreateTrainDatasFromPredictionOutcome; - typedef std::future CreateTrainDatasFromPredictionOutcomeCallable; - typedef std::function&)> CreateTrainDatasFromPredictionAsyncHandler; - typedef Outcome CreateTrainDatasFromUrlsOutcome; - typedef std::future CreateTrainDatasFromUrlsOutcomeCallable; - typedef std::function&)> CreateTrainDatasFromUrlsAsyncHandler; - typedef Outcome CreateTrainDatasTagOutcome; - typedef std::future CreateTrainDatasTagOutcomeCallable; - typedef std::function&)> CreateTrainDatasTagAsyncHandler; - typedef Outcome CreateUploadTokenOutcome; - typedef std::future CreateUploadTokenOutcomeCallable; - typedef std::function&)> CreateUploadTokenAsyncHandler; + typedef std::function&)> CreateStreamPredictAsyncHandler; typedef Outcome DeleteFaceGroupOutcome; typedef std::future DeleteFaceGroupOutcomeCallable; - typedef std::function&)> DeleteFaceGroupAsyncHandler; - typedef Outcome DeleteIterationOutcome; - typedef std::future DeleteIterationOutcomeCallable; - typedef std::function&)> DeleteIterationAsyncHandler; - typedef Outcome DeletePredictDatasOutcome; - typedef std::future DeletePredictDatasOutcomeCallable; - typedef std::function&)> DeletePredictDatasAsyncHandler; - typedef Outcome DeletePredictModelOutcome; - typedef std::future DeletePredictModelOutcomeCallable; - typedef std::function&)> DeletePredictModelAsyncHandler; - typedef Outcome DeletePredictTemplateOutcome; - typedef std::future DeletePredictTemplateOutcomeCallable; - typedef std::function&)> DeletePredictTemplateAsyncHandler; - typedef Outcome DeleteProjectOutcome; - typedef std::future DeleteProjectOutcomeCallable; - typedef std::function&)> DeleteProjectAsyncHandler; + typedef std::function&)> DeleteFaceGroupAsyncHandler; typedef Outcome DeleteStreamPredictOutcome; typedef std::future DeleteStreamPredictOutcomeCallable; - typedef std::function&)> DeleteStreamPredictAsyncHandler; - typedef Outcome DeleteTagOutcome; - typedef std::future DeleteTagOutcomeCallable; - typedef std::function&)> DeleteTagAsyncHandler; - typedef Outcome DeleteTrainDatasOutcome; - typedef std::future DeleteTrainDatasOutcomeCallable; - typedef std::function&)> DeleteTrainDatasAsyncHandler; - typedef Outcome DeleteTrainDatasTagOutcome; - typedef std::future DeleteTrainDatasTagOutcomeCallable; - typedef std::function&)> DeleteTrainDatasTagAsyncHandler; + typedef std::function&)> DeleteStreamPredictAsyncHandler; typedef Outcome DescribeFaceGroupsOutcome; typedef std::future DescribeFaceGroupsOutcomeCallable; - typedef std::function&)> DescribeFaceGroupsAsyncHandler; - typedef Outcome DescribeIterationsOutcome; - typedef std::future DescribeIterationsOutcomeCallable; - typedef std::function&)> DescribeIterationsAsyncHandler; - typedef Outcome DescribePredictDatasOutcome; - typedef std::future DescribePredictDatasOutcomeCallable; - typedef std::function&)> DescribePredictDatasAsyncHandler; - typedef Outcome DescribePredictModelsOutcome; - typedef std::future DescribePredictModelsOutcomeCallable; - typedef std::function&)> DescribePredictModelsAsyncHandler; - typedef Outcome DescribePredictTemplatesOutcome; - typedef std::future DescribePredictTemplatesOutcomeCallable; - typedef std::function&)> DescribePredictTemplatesAsyncHandler; - typedef Outcome DescribeProjectsOutcome; - typedef std::future DescribeProjectsOutcomeCallable; - typedef std::function&)> DescribeProjectsAsyncHandler; - typedef Outcome DescribeQuickDeploysOutcome; - typedef std::future DescribeQuickDeploysOutcomeCallable; - typedef std::function&)> DescribeQuickDeploysAsyncHandler; + typedef std::function&)> DescribeFaceGroupsAsyncHandler; typedef Outcome DescribeStreamPredictResultOutcome; typedef std::future DescribeStreamPredictResultOutcomeCallable; - typedef std::function&)> DescribeStreamPredictResultAsyncHandler; + typedef std::function&)> DescribeStreamPredictResultAsyncHandler; typedef Outcome DescribeStreamPredictsOutcome; typedef std::future DescribeStreamPredictsOutcomeCallable; - typedef std::function&)> DescribeStreamPredictsAsyncHandler; - typedef Outcome DescribeSystemPredictModelsOutcome; - typedef std::future DescribeSystemPredictModelsOutcomeCallable; - typedef std::function&)> DescribeSystemPredictModelsAsyncHandler; - typedef Outcome DescribeTagsOutcome; - typedef std::future DescribeTagsOutcomeCallable; - typedef std::function&)> DescribeTagsAsyncHandler; - typedef Outcome DescribeTrainDatasOutcome; - typedef std::future DescribeTrainDatasOutcomeCallable; - typedef std::function&)> DescribeTrainDatasAsyncHandler; - typedef Outcome DescribeTrainDatasByIdsOutcome; - typedef std::future DescribeTrainDatasByIdsOutcomeCallable; - typedef std::function&)> DescribeTrainDatasByIdsAsyncHandler; - typedef Outcome DescribeTrainResultOutcome; - typedef std::future DescribeTrainResultOutcomeCallable; - typedef std::function&)> DescribeTrainResultAsyncHandler; + typedef std::function&)> DescribeStreamPredictsAsyncHandler; typedef Outcome ImagePredictOutcome; typedef std::future ImagePredictOutcomeCallable; - typedef std::function&)> ImagePredictAsyncHandler; - typedef Outcome ModifyPredictTemplateAttributeOutcome; - typedef std::future ModifyPredictTemplateAttributeOutcomeCallable; - typedef std::function&)> ModifyPredictTemplateAttributeAsyncHandler; - typedef Outcome ModifyProjectAttributeOutcome; - typedef std::future ModifyProjectAttributeOutcomeCallable; - typedef std::function&)> ModifyProjectAttributeAsyncHandler; - typedef Outcome ModifyTagAttributeOutcome; - typedef std::future ModifyTagAttributeOutcomeCallable; - typedef std::function&)> ModifyTagAttributeAsyncHandler; - typedef Outcome ModifyTrainDataRegionTagAttributeOutcome; - typedef std::future ModifyTrainDataRegionTagAttributeOutcomeCallable; - typedef std::function&)> ModifyTrainDataRegionTagAttributeAsyncHandler; - typedef Outcome ModifyTrainDataTagAttributeOutcome; - typedef std::future ModifyTrainDataTagAttributeOutcomeCallable; - typedef std::function&)> ModifyTrainDataTagAttributeAsyncHandler; - typedef Outcome PredictImageOutcome; - typedef std::future PredictImageOutcomeCallable; - typedef std::function&)> PredictImageAsyncHandler; - typedef Outcome QuickTestOutcome; - typedef std::future QuickTestOutcomeCallable; - typedef std::function&)> QuickTestAsyncHandler; + typedef std::function&)> ImagePredictAsyncHandler; typedef Outcome RegisterFaceOutcome; typedef std::future RegisterFaceOutcomeCallable; - typedef std::function&)> RegisterFaceAsyncHandler; + typedef std::function&)> RegisterFaceAsyncHandler; typedef Outcome SearchFaceOutcome; typedef std::future SearchFaceOutcomeCallable; - typedef std::function&)> SearchFaceAsyncHandler; + typedef std::function&)> SearchFaceAsyncHandler; typedef Outcome StartStreamPredictOutcome; typedef std::future StartStreamPredictOutcomeCallable; - typedef std::function&)> StartStreamPredictAsyncHandler; + typedef std::function&)> StartStreamPredictAsyncHandler; typedef Outcome StopStreamPredictOutcome; typedef std::future StopStreamPredictOutcomeCallable; - typedef std::function&)> StopStreamPredictAsyncHandler; - typedef Outcome TrainProjectOutcome; - typedef std::future TrainProjectOutcomeCallable; - typedef std::function&)> TrainProjectAsyncHandler; + typedef std::function&)> StopStreamPredictAsyncHandler; typedef Outcome UnregisterFaceOutcome; typedef std::future UnregisterFaceOutcomeCallable; - typedef std::function&)> UnregisterFaceAsyncHandler; + typedef std::function&)> UnregisterFaceAsyncHandler; IvisionClient(const Credentials &credentials, const ClientConfiguration &configuration); IvisionClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); @@ -293,157 +103,43 @@ namespace AlibabaCloud ~IvisionClient(); CreateFaceGroupOutcome createFaceGroup(const Model::CreateFaceGroupRequest &request)const; void createFaceGroupAsync(const Model::CreateFaceGroupRequest& request, const CreateFaceGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateFaceGroupOutcomeCallable createFaceGroupCallable(const Model::CreateFaceGroupRequest& request) const; - CreatePredictModelOutcome createPredictModel(const Model::CreatePredictModelRequest &request)const; - void createPredictModelAsync(const Model::CreatePredictModelRequest& request, const CreatePredictModelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreatePredictModelOutcomeCallable createPredictModelCallable(const Model::CreatePredictModelRequest& request) const; - CreatePredictTemplateOutcome createPredictTemplate(const Model::CreatePredictTemplateRequest &request)const; - void createPredictTemplateAsync(const Model::CreatePredictTemplateRequest& request, const CreatePredictTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreatePredictTemplateOutcomeCallable createPredictTemplateCallable(const Model::CreatePredictTemplateRequest& 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; - CreateQuickDeployOutcome createQuickDeploy(const Model::CreateQuickDeployRequest &request)const; - void createQuickDeployAsync(const Model::CreateQuickDeployRequest& request, const CreateQuickDeployAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateQuickDeployOutcomeCallable createQuickDeployCallable(const Model::CreateQuickDeployRequest& request) const; + CreateFaceGroupOutcomeCallable createFaceGroupCallable(const Model::CreateFaceGroupRequest& request) const; CreateStreamPredictOutcome createStreamPredict(const Model::CreateStreamPredictRequest &request)const; void createStreamPredictAsync(const Model::CreateStreamPredictRequest& request, const CreateStreamPredictAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateStreamPredictOutcomeCallable createStreamPredictCallable(const Model::CreateStreamPredictRequest& request) const; - 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; - 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; - 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; - 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; - 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; - 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; - 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; + CreateStreamPredictOutcomeCallable createStreamPredictCallable(const Model::CreateStreamPredictRequest& request) const; DeleteFaceGroupOutcome deleteFaceGroup(const Model::DeleteFaceGroupRequest &request)const; void deleteFaceGroupAsync(const Model::DeleteFaceGroupRequest& request, const DeleteFaceGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteFaceGroupOutcomeCallable deleteFaceGroupCallable(const Model::DeleteFaceGroupRequest& request) const; - 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; - 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; - DeletePredictModelOutcome deletePredictModel(const Model::DeletePredictModelRequest &request)const; - void deletePredictModelAsync(const Model::DeletePredictModelRequest& request, const DeletePredictModelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeletePredictModelOutcomeCallable deletePredictModelCallable(const Model::DeletePredictModelRequest& request) const; - DeletePredictTemplateOutcome deletePredictTemplate(const Model::DeletePredictTemplateRequest &request)const; - void deletePredictTemplateAsync(const Model::DeletePredictTemplateRequest& request, const DeletePredictTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeletePredictTemplateOutcomeCallable deletePredictTemplateCallable(const Model::DeletePredictTemplateRequest& 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; + DeleteFaceGroupOutcomeCallable deleteFaceGroupCallable(const Model::DeleteFaceGroupRequest& request) const; DeleteStreamPredictOutcome deleteStreamPredict(const Model::DeleteStreamPredictRequest &request)const; void deleteStreamPredictAsync(const Model::DeleteStreamPredictRequest& request, const DeleteStreamPredictAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteStreamPredictOutcomeCallable deleteStreamPredictCallable(const Model::DeleteStreamPredictRequest& request) const; - 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; - 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; - 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; + DeleteStreamPredictOutcomeCallable deleteStreamPredictCallable(const Model::DeleteStreamPredictRequest& request) const; DescribeFaceGroupsOutcome describeFaceGroups(const Model::DescribeFaceGroupsRequest &request)const; void describeFaceGroupsAsync(const Model::DescribeFaceGroupsRequest& request, const DescribeFaceGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeFaceGroupsOutcomeCallable describeFaceGroupsCallable(const Model::DescribeFaceGroupsRequest& request) const; - 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; - 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; - DescribePredictModelsOutcome describePredictModels(const Model::DescribePredictModelsRequest &request)const; - void describePredictModelsAsync(const Model::DescribePredictModelsRequest& request, const DescribePredictModelsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribePredictModelsOutcomeCallable describePredictModelsCallable(const Model::DescribePredictModelsRequest& request) const; - DescribePredictTemplatesOutcome describePredictTemplates(const Model::DescribePredictTemplatesRequest &request)const; - void describePredictTemplatesAsync(const Model::DescribePredictTemplatesRequest& request, const DescribePredictTemplatesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribePredictTemplatesOutcomeCallable describePredictTemplatesCallable(const Model::DescribePredictTemplatesRequest& 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; - DescribeQuickDeploysOutcome describeQuickDeploys(const Model::DescribeQuickDeploysRequest &request)const; - void describeQuickDeploysAsync(const Model::DescribeQuickDeploysRequest& request, const DescribeQuickDeploysAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeQuickDeploysOutcomeCallable describeQuickDeploysCallable(const Model::DescribeQuickDeploysRequest& request) const; + DescribeFaceGroupsOutcomeCallable describeFaceGroupsCallable(const Model::DescribeFaceGroupsRequest& request) const; DescribeStreamPredictResultOutcome describeStreamPredictResult(const Model::DescribeStreamPredictResultRequest &request)const; void describeStreamPredictResultAsync(const Model::DescribeStreamPredictResultRequest& request, const DescribeStreamPredictResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeStreamPredictResultOutcomeCallable describeStreamPredictResultCallable(const Model::DescribeStreamPredictResultRequest& request) const; + DescribeStreamPredictResultOutcomeCallable describeStreamPredictResultCallable(const Model::DescribeStreamPredictResultRequest& request) const; DescribeStreamPredictsOutcome describeStreamPredicts(const Model::DescribeStreamPredictsRequest &request)const; void describeStreamPredictsAsync(const Model::DescribeStreamPredictsRequest& request, const DescribeStreamPredictsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeStreamPredictsOutcomeCallable describeStreamPredictsCallable(const Model::DescribeStreamPredictsRequest& request) const; - DescribeSystemPredictModelsOutcome describeSystemPredictModels(const Model::DescribeSystemPredictModelsRequest &request)const; - void describeSystemPredictModelsAsync(const Model::DescribeSystemPredictModelsRequest& request, const DescribeSystemPredictModelsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeSystemPredictModelsOutcomeCallable describeSystemPredictModelsCallable(const Model::DescribeSystemPredictModelsRequest& 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; - 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; - 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; - 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; + DescribeStreamPredictsOutcomeCallable describeStreamPredictsCallable(const Model::DescribeStreamPredictsRequest& request) const; ImagePredictOutcome imagePredict(const Model::ImagePredictRequest &request)const; void imagePredictAsync(const Model::ImagePredictRequest& request, const ImagePredictAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ImagePredictOutcomeCallable imagePredictCallable(const Model::ImagePredictRequest& request) const; - ModifyPredictTemplateAttributeOutcome modifyPredictTemplateAttribute(const Model::ModifyPredictTemplateAttributeRequest &request)const; - void modifyPredictTemplateAttributeAsync(const Model::ModifyPredictTemplateAttributeRequest& request, const ModifyPredictTemplateAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyPredictTemplateAttributeOutcomeCallable modifyPredictTemplateAttributeCallable(const Model::ModifyPredictTemplateAttributeRequest& 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; - 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; - 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; - 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; - 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; - QuickTestOutcome quickTest(const Model::QuickTestRequest &request)const; - void quickTestAsync(const Model::QuickTestRequest& request, const QuickTestAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QuickTestOutcomeCallable quickTestCallable(const Model::QuickTestRequest& request) const; + ImagePredictOutcomeCallable imagePredictCallable(const Model::ImagePredictRequest& request) const; RegisterFaceOutcome registerFace(const Model::RegisterFaceRequest &request)const; void registerFaceAsync(const Model::RegisterFaceRequest& request, const RegisterFaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - RegisterFaceOutcomeCallable registerFaceCallable(const Model::RegisterFaceRequest& request) const; + RegisterFaceOutcomeCallable registerFaceCallable(const Model::RegisterFaceRequest& request) const; SearchFaceOutcome searchFace(const Model::SearchFaceRequest &request)const; void searchFaceAsync(const Model::SearchFaceRequest& request, const SearchFaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SearchFaceOutcomeCallable searchFaceCallable(const Model::SearchFaceRequest& request) const; + SearchFaceOutcomeCallable searchFaceCallable(const Model::SearchFaceRequest& request) const; StartStreamPredictOutcome startStreamPredict(const Model::StartStreamPredictRequest &request)const; void startStreamPredictAsync(const Model::StartStreamPredictRequest& request, const StartStreamPredictAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - StartStreamPredictOutcomeCallable startStreamPredictCallable(const Model::StartStreamPredictRequest& request) const; + StartStreamPredictOutcomeCallable startStreamPredictCallable(const Model::StartStreamPredictRequest& request) const; StopStreamPredictOutcome stopStreamPredict(const Model::StopStreamPredictRequest &request)const; void stopStreamPredictAsync(const Model::StopStreamPredictRequest& request, const StopStreamPredictAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - StopStreamPredictOutcomeCallable stopStreamPredictCallable(const Model::StopStreamPredictRequest& request) const; - 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; + StopStreamPredictOutcomeCallable stopStreamPredictCallable(const Model::StopStreamPredictRequest& request) const; UnregisterFaceOutcome unregisterFace(const Model::UnregisterFaceRequest &request)const; void unregisterFaceAsync(const Model::UnregisterFaceRequest& request, const UnregisterFaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UnregisterFaceOutcomeCallable unregisterFaceCallable(const Model::UnregisterFaceRequest& request) const; + UnregisterFaceOutcomeCallable unregisterFaceCallable(const Model::UnregisterFaceRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/ivision/include/alibabacloud/ivision/model/CreateFaceGroupRequest.h b/ivision/include/alibabacloud/ivision/model/CreateFaceGroupRequest.h index fcdd0d5f0..4809ec46b 100644 --- a/ivision/include/alibabacloud/ivision/model/CreateFaceGroupRequest.h +++ b/ivision/include/alibabacloud/ivision/model/CreateFaceGroupRequest.h @@ -35,82 +35,16 @@ namespace AlibabaCloud CreateFaceGroupRequest(); ~CreateFaceGroupRequest(); - 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 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 getServiceCode()const; - void setServiceCode(const std::string& serviceCode); - 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 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 serviceCode_; - std::string requestId_; std::string name_; }; diff --git a/ivision/include/alibabacloud/ivision/model/CreatePredictModelRequest.h b/ivision/include/alibabacloud/ivision/model/CreatePredictModelRequest.h deleted file mode 100644 index 930e98381..000000000 --- a/ivision/include/alibabacloud/ivision/model/CreatePredictModelRequest.h +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IVISION_MODEL_CREATEPREDICTMODELREQUEST_H_ -#define ALIBABACLOUD_IVISION_MODEL_CREATEPREDICTMODELREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ivision - { - namespace Model - { - class ALIBABACLOUD_IVISION_EXPORT CreatePredictModelRequest : public RpcServiceRequest - { - - public: - CreatePredictModelRequest(); - ~CreatePredictModelRequest(); - - std::string getRegions()const; - void setRegions(const std::string& regions); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getSource()const; - void setSource(const std::string& source); - std::string getProjectId()const; - void setProjectId(const std::string& projectId); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - std::string getModelId()const; - void setModelId(const std::string& modelId); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getName()const; - void setName(const std::string& name); - std::string getIterationId()const; - void setIterationId(const std::string& iterationId); - - private: - std::string regions_; - std::string description_; - std::string source_; - std::string projectId_; - std::string showLog_; - std::string modelId_; - long ownerId_; - std::string name_; - std::string iterationId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_IVISION_MODEL_CREATEPREDICTMODELREQUEST_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/CreatePredictModelResult.h b/ivision/include/alibabacloud/ivision/model/CreatePredictModelResult.h deleted file mode 100644 index c19744122..000000000 --- a/ivision/include/alibabacloud/ivision/model/CreatePredictModelResult.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IVISION_MODEL_CREATEPREDICTMODELRESULT_H_ -#define ALIBABACLOUD_IVISION_MODEL_CREATEPREDICTMODELRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ivision - { - namespace Model - { - class ALIBABACLOUD_IVISION_EXPORT CreatePredictModelResult : public ServiceResult - { - public: - struct Model - { - std::string iterationVersion; - std::string description; - std::string projectName; - std::string iterationId; - std::string projectId; - std::string creationTime; - std::string regions; - std::string modelId; - std::string name; - }; - - - CreatePredictModelResult(); - explicit CreatePredictModelResult(const std::string &payload); - ~CreatePredictModelResult(); - Model getModel()const; - - protected: - void parse(const std::string &payload); - private: - Model model_; - - }; - } - } -} -#endif // !ALIBABACLOUD_IVISION_MODEL_CREATEPREDICTMODELRESULT_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/CreatePredictTemplateRequest.h b/ivision/include/alibabacloud/ivision/model/CreatePredictTemplateRequest.h deleted file mode 100644 index 9d5943767..000000000 --- a/ivision/include/alibabacloud/ivision/model/CreatePredictTemplateRequest.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IVISION_MODEL_CREATEPREDICTTEMPLATEREQUEST_H_ -#define ALIBABACLOUD_IVISION_MODEL_CREATEPREDICTTEMPLATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ivision - { - namespace Model - { - class ALIBABACLOUD_IVISION_EXPORT CreatePredictTemplateRequest : public RpcServiceRequest - { - - public: - CreatePredictTemplateRequest(); - ~CreatePredictTemplateRequest(); - - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getOutput()const; - void setOutput(const std::string& output); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getModelIds()const; - void setModelIds(const std::string& modelIds); - std::string getName()const; - void setName(const std::string& name); - int getInterval()const; - void setInterval(int interval); - - private: - std::string description_; - std::string output_; - std::string showLog_; - long ownerId_; - std::string modelIds_; - std::string name_; - int interval_; - - }; - } - } -} -#endif // !ALIBABACLOUD_IVISION_MODEL_CREATEPREDICTTEMPLATEREQUEST_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/CreatePredictTemplateResult.h b/ivision/include/alibabacloud/ivision/model/CreatePredictTemplateResult.h deleted file mode 100644 index 582a7ec98..000000000 --- a/ivision/include/alibabacloud/ivision/model/CreatePredictTemplateResult.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IVISION_MODEL_CREATEPREDICTTEMPLATERESULT_H_ -#define ALIBABACLOUD_IVISION_MODEL_CREATEPREDICTTEMPLATERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ivision - { - namespace Model - { - class ALIBABACLOUD_IVISION_EXPORT CreatePredictTemplateResult : public ServiceResult - { - public: - struct _Template - { - std::string description; - std::string output; - std::string creationTime; - std::string modelIds; - std::string templateId; - std::string name; - int interval; - }; - - - CreatePredictTemplateResult(); - explicit CreatePredictTemplateResult(const std::string &payload); - ~CreatePredictTemplateResult(); - _Template get_Template()const; - - protected: - void parse(const std::string &payload); - private: - _Template _template_; - - }; - } - } -} -#endif // !ALIBABACLOUD_IVISION_MODEL_CREATEPREDICTTEMPLATERESULT_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 deleted file mode 100644 index 4ec52971a..000000000 --- a/ivision/include/alibabacloud/ivision/model/CreateProjectRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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(); - - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - std::string getModelId()const; - void setModelId(const std::string& modelId); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getProType()const; - void setProType(const std::string& proType); - std::string getName()const; - void setName(const std::string& name); - - private: - std::string description_; - std::string showLog_; - std::string modelId_; - long ownerId_; - std::string proType_; - 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 deleted file mode 100644 index 541bf7a12..000000000 --- a/ivision/include/alibabacloud/ivision/model/CreateProjectResult.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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/CreateQuickDeployRequest.h b/ivision/include/alibabacloud/ivision/model/CreateQuickDeployRequest.h deleted file mode 100644 index 2a8e15159..000000000 --- a/ivision/include/alibabacloud/ivision/model/CreateQuickDeployRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IVISION_MODEL_CREATEQUICKDEPLOYREQUEST_H_ -#define ALIBABACLOUD_IVISION_MODEL_CREATEQUICKDEPLOYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ivision - { - namespace Model - { - class ALIBABACLOUD_IVISION_EXPORT CreateQuickDeployRequest : public RpcServiceRequest - { - - public: - CreateQuickDeployRequest(); - ~CreateQuickDeployRequest(); - - std::string getProjectId()const; - void setProjectId(const std::string& projectId); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getIterationId()const; - void setIterationId(const std::string& iterationId); - - private: - std::string projectId_; - std::string showLog_; - long ownerId_; - std::string iterationId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_IVISION_MODEL_CREATEQUICKDEPLOYREQUEST_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/CreateQuickDeployResult.h b/ivision/include/alibabacloud/ivision/model/CreateQuickDeployResult.h deleted file mode 100644 index 61264fb62..000000000 --- a/ivision/include/alibabacloud/ivision/model/CreateQuickDeployResult.h +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IVISION_MODEL_CREATEQUICKDEPLOYRESULT_H_ -#define ALIBABACLOUD_IVISION_MODEL_CREATEQUICKDEPLOYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ivision - { - namespace Model - { - class ALIBABACLOUD_IVISION_EXPORT CreateQuickDeployResult : public ServiceResult - { - public: - struct QuickDeploy - { - std::string iterationId; - std::string projectId; - std::string creationTime; - std::string deployStatus; - std::string modelId; - }; - - - CreateQuickDeployResult(); - explicit CreateQuickDeployResult(const std::string &payload); - ~CreateQuickDeployResult(); - QuickDeploy getQuickDeploy()const; - - protected: - void parse(const std::string &payload); - private: - QuickDeploy quickDeploy_; - - }; - } - } -} -#endif // !ALIBABACLOUD_IVISION_MODEL_CREATEQUICKDEPLOYRESULT_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 index 3535af316..ad192630b 100644 --- a/ivision/include/alibabacloud/ivision/model/CreateStreamPredictRequest.h +++ b/ivision/include/alibabacloud/ivision/model/CreateStreamPredictRequest.h @@ -35,50 +35,47 @@ namespace AlibabaCloud CreateStreamPredictRequest(); ~CreateStreamPredictRequest(); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getAutoStart()const; - void setAutoStart(const std::string& autoStart); - std::string getNotify()const; - void setNotify(const std::string& notify); - std::string getOutput()const; - void setOutput(const std::string& output); - std::string getUserData()const; - void setUserData(const std::string& userData); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - std::string getStreamType()const; - void setStreamType(const std::string& streamType); - std::string getFaceGroupId()const; - void setFaceGroupId(const std::string& faceGroupId); - std::string getStreamId()const; - void setStreamId(const std::string& streamId); - std::string getDetectIntervals()const; - void setDetectIntervals(const std::string& detectIntervals); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getProbabilityThresholds()const; - void setProbabilityThresholds(const std::string& probabilityThresholds); - std::string getModelIds()const; - void setModelIds(const std::string& modelIds); - std::string getModelUserData()const; - void setModelUserData(const std::string& modelUserData); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getAutoStart()const; + void setAutoStart(const std::string& autoStart); + std::string getNotify()const; + void setNotify(const std::string& notify); + std::string getOutput()const; + void setOutput(const std::string& output); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getStreamType()const; + void setStreamType(const std::string& streamType); + std::string getFaceGroupId()const; + void setFaceGroupId(const std::string& faceGroupId); + std::string getStreamId()const; + void setStreamId(const std::string& streamId); + std::string getDetectIntervals()const; + void setDetectIntervals(const std::string& detectIntervals); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getProbabilityThresholds()const; + void setProbabilityThresholds(const std::string& probabilityThresholds); + std::string getModelIds()const; + void setModelIds(const std::string& modelIds); + std::string getModelUserData()const; + void setModelUserData(const std::string& modelUserData); private: - std::string clientToken_; - std::string autoStart_; - std::string notify_; - std::string output_; - std::string userData_; - std::string showLog_; - std::string streamType_; - std::string faceGroupId_; - std::string streamId_; - std::string detectIntervals_; - long ownerId_; - std::string probabilityThresholds_; - std::string modelIds_; - std::string modelUserData_; + std::string clientToken_; + std::string autoStart_; + std::string notify_; + std::string output_; + std::string showLog_; + std::string streamType_; + std::string faceGroupId_; + std::string streamId_; + std::string detectIntervals_; + long ownerId_; + std::string probabilityThresholds_; + std::string modelIds_; + std::string modelUserData_; }; } diff --git a/ivision/include/alibabacloud/ivision/model/CreateTagRequest.h b/ivision/include/alibabacloud/ivision/model/CreateTagRequest.h deleted file mode 100644 index 2c6b123d3..000000000 --- a/ivision/include/alibabacloud/ivision/model/CreateTagRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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(); - - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getProjectId()const; - void setProjectId(const std::string& projectId); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getName()const; - void setName(const std::string& name); - - private: - std::string description_; - std::string projectId_; - std::string showLog_; - long ownerId_; - 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 deleted file mode 100644 index 93dac4869..000000000 --- a/ivision/include/alibabacloud/ivision/model/CreateTagResult.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index 64910c29b..000000000 --- a/ivision/include/alibabacloud/ivision/model/CreateTrainDataRegionTagRequest.h +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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 deleted file mode 100644 index b2ae64bba..000000000 --- a/ivision/include/alibabacloud/ivision/model/CreateTrainDataRegionTagResult.h +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index 4f41161ca..000000000 --- a/ivision/include/alibabacloud/ivision/model/CreateTrainDataTagRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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(); - - std::string getProjectId()const; - void setProjectId(const std::string& projectId); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - std::string getTagItems()const; - void setTagItems(const std::string& tagItems); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getDataId()const; - void setDataId(const std::string& dataId); - - private: - std::string projectId_; - std::string showLog_; - std::string tagItems_; - long ownerId_; - std::string dataId_; - - }; - } - } -} -#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 deleted file mode 100644 index 79f2549fc..000000000 --- a/ivision/include/alibabacloud/ivision/model/CreateTrainDataTagResult.h +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index 0d271fbf4..000000000 --- a/ivision/include/alibabacloud/ivision/model/CreateTrainDatasFromPredictionRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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(); - - std::string getDataIds()const; - void setDataIds(const std::string& dataIds); - std::string getProjectId()const; - void setProjectId(const std::string& projectId); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - std::string getTagId()const; - void setTagId(const std::string& tagId); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getIterationId()const; - void setIterationId(const std::string& iterationId); - - private: - std::string dataIds_; - std::string projectId_; - std::string showLog_; - std::string tagId_; - long ownerId_; - 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 deleted file mode 100644 index b6b9d8d59..000000000 --- a/ivision/include/alibabacloud/ivision/model/CreateTrainDatasFromPredictionResult.h +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index 609f564ea..000000000 --- a/ivision/include/alibabacloud/ivision/model/CreateTrainDatasFromUrlsRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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(); - - std::string getUrls()const; - void setUrls(const std::string& urls); - std::string getProjectId()const; - void setProjectId(const std::string& projectId); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - std::string getTagId()const; - void setTagId(const std::string& tagId); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - std::string urls_; - std::string projectId_; - std::string showLog_; - std::string tagId_; - long ownerId_; - - }; - } - } -} -#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 deleted file mode 100644 index fb55c0efb..000000000 --- a/ivision/include/alibabacloud/ivision/model/CreateTrainDatasFromUrlsResult.h +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index 9e3d06c02..000000000 --- a/ivision/include/alibabacloud/ivision/model/CreateTrainDatasTagRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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(); - - std::string getDataIds()const; - void setDataIds(const std::string& dataIds); - std::string getProjectId()const; - void setProjectId(const std::string& projectId); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - std::string getTagId()const; - void setTagId(const std::string& tagId); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - std::string dataIds_; - std::string projectId_; - std::string showLog_; - std::string tagId_; - long ownerId_; - - }; - } - } -} -#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 deleted file mode 100644 index b8369c2ac..000000000 --- a/ivision/include/alibabacloud/ivision/model/CreateTrainDatasTagResult.h +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index 453ece8db..000000000 --- a/ivision/include/alibabacloud/ivision/model/CreateUploadTokenRequest.h +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index 3360ff600..000000000 --- a/ivision/include/alibabacloud/ivision/model/CreateUploadTokenResult.h +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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/DeleteFaceGroupRequest.h b/ivision/include/alibabacloud/ivision/model/DeleteFaceGroupRequest.h index f5b541975..256b1c997 100644 --- a/ivision/include/alibabacloud/ivision/model/DeleteFaceGroupRequest.h +++ b/ivision/include/alibabacloud/ivision/model/DeleteFaceGroupRequest.h @@ -35,83 +35,17 @@ namespace AlibabaCloud DeleteFaceGroupRequest(); ~DeleteFaceGroupRequest(); - 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 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 getGroupId()const; void setGroupId(const std::string& groupId); - 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 getServiceCode()const; - void setServiceCode(const std::string& serviceCode); - 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 callerUidEmail_; - long callerUid_; std::string showLog_; - std::string app_ip_; - std::string popProduct_; std::string groupId_; - std::string callerBid_; long ownerId_; - std::string version_; - bool proxy_trust_transport_info_; - bool ak_mfa_present_; - bool security_transport_; - std::string serviceCode_; - std::string requestId_; }; } diff --git a/ivision/include/alibabacloud/ivision/model/DeleteIterationRequest.h b/ivision/include/alibabacloud/ivision/model/DeleteIterationRequest.h deleted file mode 100644 index db6694607..000000000 --- a/ivision/include/alibabacloud/ivision/model/DeleteIterationRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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(); - - std::string getProjectId()const; - void setProjectId(const std::string& projectId); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getIterationId()const; - void setIterationId(const std::string& iterationId); - - private: - std::string projectId_; - std::string showLog_; - long ownerId_; - 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 deleted file mode 100644 index 4eaf6ad80..000000000 --- a/ivision/include/alibabacloud/ivision/model/DeleteIterationResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index 0b88352f3..000000000 --- a/ivision/include/alibabacloud/ivision/model/DeletePredictDatasRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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(); - - std::string getDataIds()const; - void setDataIds(const std::string& dataIds); - std::string getProjectId()const; - void setProjectId(const std::string& projectId); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - std::string getModelId()const; - void setModelId(const std::string& modelId); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getIterationId()const; - void setIterationId(const std::string& iterationId); - - private: - std::string dataIds_; - std::string projectId_; - std::string showLog_; - std::string modelId_; - long ownerId_; - 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 deleted file mode 100644 index 488f003d1..000000000 --- a/ivision/include/alibabacloud/ivision/model/DeletePredictDatasResult.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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/DeletePredictModelRequest.h b/ivision/include/alibabacloud/ivision/model/DeletePredictModelRequest.h deleted file mode 100644 index 06642a563..000000000 --- a/ivision/include/alibabacloud/ivision/model/DeletePredictModelRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IVISION_MODEL_DELETEPREDICTMODELREQUEST_H_ -#define ALIBABACLOUD_IVISION_MODEL_DELETEPREDICTMODELREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ivision - { - namespace Model - { - class ALIBABACLOUD_IVISION_EXPORT DeletePredictModelRequest : public RpcServiceRequest - { - - public: - DeletePredictModelRequest(); - ~DeletePredictModelRequest(); - - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - std::string getModelId()const; - void setModelId(const std::string& modelId); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - std::string showLog_; - std::string modelId_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_IVISION_MODEL_DELETEPREDICTMODELREQUEST_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/DeletePredictModelResult.h b/ivision/include/alibabacloud/ivision/model/DeletePredictModelResult.h deleted file mode 100644 index 33c1c4228..000000000 --- a/ivision/include/alibabacloud/ivision/model/DeletePredictModelResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IVISION_MODEL_DELETEPREDICTMODELRESULT_H_ -#define ALIBABACLOUD_IVISION_MODEL_DELETEPREDICTMODELRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ivision - { - namespace Model - { - class ALIBABACLOUD_IVISION_EXPORT DeletePredictModelResult : public ServiceResult - { - public: - - - DeletePredictModelResult(); - explicit DeletePredictModelResult(const std::string &payload); - ~DeletePredictModelResult(); - std::string getModelId()const; - - protected: - void parse(const std::string &payload); - private: - std::string modelId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_IVISION_MODEL_DELETEPREDICTMODELRESULT_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/DeletePredictTemplateRequest.h b/ivision/include/alibabacloud/ivision/model/DeletePredictTemplateRequest.h deleted file mode 100644 index 2bb253307..000000000 --- a/ivision/include/alibabacloud/ivision/model/DeletePredictTemplateRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IVISION_MODEL_DELETEPREDICTTEMPLATEREQUEST_H_ -#define ALIBABACLOUD_IVISION_MODEL_DELETEPREDICTTEMPLATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ivision - { - namespace Model - { - class ALIBABACLOUD_IVISION_EXPORT DeletePredictTemplateRequest : public RpcServiceRequest - { - - public: - DeletePredictTemplateRequest(); - ~DeletePredictTemplateRequest(); - - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getTemplateId()const; - void setTemplateId(const std::string& templateId); - - private: - std::string showLog_; - long ownerId_; - std::string templateId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_IVISION_MODEL_DELETEPREDICTTEMPLATEREQUEST_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/DeletePredictTemplateResult.h b/ivision/include/alibabacloud/ivision/model/DeletePredictTemplateResult.h deleted file mode 100644 index f60e33fba..000000000 --- a/ivision/include/alibabacloud/ivision/model/DeletePredictTemplateResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IVISION_MODEL_DELETEPREDICTTEMPLATERESULT_H_ -#define ALIBABACLOUD_IVISION_MODEL_DELETEPREDICTTEMPLATERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ivision - { - namespace Model - { - class ALIBABACLOUD_IVISION_EXPORT DeletePredictTemplateResult : public ServiceResult - { - public: - - - DeletePredictTemplateResult(); - explicit DeletePredictTemplateResult(const std::string &payload); - ~DeletePredictTemplateResult(); - std::string getTemplateId()const; - - protected: - void parse(const std::string &payload); - private: - std::string templateId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_IVISION_MODEL_DELETEPREDICTTEMPLATERESULT_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 deleted file mode 100644 index 59915d7b3..000000000 --- a/ivision/include/alibabacloud/ivision/model/DeleteProjectRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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(); - - std::string getProjectId()const; - void setProjectId(const std::string& projectId); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - std::string projectId_; - std::string showLog_; - long ownerId_; - - }; - } - } -} -#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 deleted file mode 100644 index c4d88a077..000000000 --- a/ivision/include/alibabacloud/ivision/model/DeleteProjectResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 index 38fe581ae..f3f84e5a9 100644 --- a/ivision/include/alibabacloud/ivision/model/DeleteStreamPredictRequest.h +++ b/ivision/include/alibabacloud/ivision/model/DeleteStreamPredictRequest.h @@ -35,17 +35,17 @@ namespace AlibabaCloud DeleteStreamPredictRequest(); ~DeleteStreamPredictRequest(); - std::string getPredictId()const; - void setPredictId(const std::string& predictId); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - long getOwnerId()const; - void setOwnerId(long ownerId); + std::string getPredictId()const; + void setPredictId(const std::string& predictId); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + long getOwnerId()const; + void setOwnerId(long ownerId); private: - std::string predictId_; - std::string showLog_; - long ownerId_; + std::string predictId_; + std::string showLog_; + long ownerId_; }; } diff --git a/ivision/include/alibabacloud/ivision/model/DeleteTagRequest.h b/ivision/include/alibabacloud/ivision/model/DeleteTagRequest.h deleted file mode 100644 index 978cac37a..000000000 --- a/ivision/include/alibabacloud/ivision/model/DeleteTagRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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(); - - std::string getProjectId()const; - void setProjectId(const std::string& projectId); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - std::string getTagId()const; - void setTagId(const std::string& tagId); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - std::string projectId_; - std::string showLog_; - std::string tagId_; - long ownerId_; - - }; - } - } -} -#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 deleted file mode 100644 index 1028c0070..000000000 --- a/ivision/include/alibabacloud/ivision/model/DeleteTagResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index ea0d83d59..000000000 --- a/ivision/include/alibabacloud/ivision/model/DeleteTrainDatasRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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(); - - std::string getDataIds()const; - void setDataIds(const std::string& dataIds); - std::string getProjectId()const; - void setProjectId(const std::string& projectId); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - std::string dataIds_; - std::string projectId_; - std::string showLog_; - long ownerId_; - - }; - } - } -} -#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 deleted file mode 100644 index 3e01d3fa3..000000000 --- a/ivision/include/alibabacloud/ivision/model/DeleteTrainDatasResult.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index eb133708b..000000000 --- a/ivision/include/alibabacloud/ivision/model/DeleteTrainDatasTagRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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(); - - std::string getDataIds()const; - void setDataIds(const std::string& dataIds); - std::string getProjectId()const; - void setProjectId(const std::string& projectId); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - std::string getTagId()const; - void setTagId(const std::string& tagId); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - std::string dataIds_; - std::string projectId_; - std::string showLog_; - std::string tagId_; - long ownerId_; - - }; - } - } -} -#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 deleted file mode 100644 index 47f019871..000000000 --- a/ivision/include/alibabacloud/ivision/model/DeleteTrainDatasTagResult.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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/DescribeFaceGroupsRequest.h b/ivision/include/alibabacloud/ivision/model/DescribeFaceGroupsRequest.h index ff1f001f4..8a9a861be 100644 --- a/ivision/include/alibabacloud/ivision/model/DescribeFaceGroupsRequest.h +++ b/ivision/include/alibabacloud/ivision/model/DescribeFaceGroupsRequest.h @@ -35,89 +35,23 @@ namespace AlibabaCloud DescribeFaceGroupsRequest(); ~DescribeFaceGroupsRequest(); - 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); 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 getServiceCode()const; - void setServiceCode(const std::string& serviceCode); - 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_; long ownerId_; - std::string version_; - bool proxy_trust_transport_info_; - bool ak_mfa_present_; - bool security_transport_; - std::string serviceCode_; - std::string requestId_; }; } diff --git a/ivision/include/alibabacloud/ivision/model/DescribeIterationsRequest.h b/ivision/include/alibabacloud/ivision/model/DescribeIterationsRequest.h deleted file mode 100644 index bf9fa5733..000000000 --- a/ivision/include/alibabacloud/ivision/model/DescribeIterationsRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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(); - - std::string getThreshold()const; - void setThreshold(const std::string& threshold); - std::string getProjectId()const; - void setProjectId(const std::string& projectId); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - std::string getIterationIds()const; - void setIterationIds(const std::string& iterationIds); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getStatus()const; - void setStatus(const std::string& status); - - private: - std::string threshold_; - std::string projectId_; - std::string showLog_; - std::string iterationIds_; - long ownerId_; - 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 deleted file mode 100644 index ae9919822..000000000 --- a/ivision/include/alibabacloud/ivision/model/DescribeIterationsResult.h +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index c19dbb557..000000000 --- a/ivision/include/alibabacloud/ivision/model/DescribePredictDatasRequest.h +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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(); - - std::string getNextPageToken()const; - void setNextPageToken(const std::string& nextPageToken); - std::string getDataIds()const; - void setDataIds(const std::string& dataIds); - long getPageSize()const; - void setPageSize(long pageSize); - 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 getShowLog()const; - void setShowLog(const std::string& showLog); - 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); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getIterationId()const; - void setIterationId(const std::string& iterationId); - - private: - std::string nextPageToken_; - std::string dataIds_; - long pageSize_; - std::string probabilityThreshold_; - std::string overlapThreshold_; - std::string projectId_; - std::string showLog_; - std::string modelId_; - std::string tagId_; - long currentPage_; - long ownerId_; - 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 deleted file mode 100644 index 4b8b924e1..000000000 --- a/ivision/include/alibabacloud/ivision/model/DescribePredictDatasResult.h +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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/DescribePredictModelsRequest.h b/ivision/include/alibabacloud/ivision/model/DescribePredictModelsRequest.h deleted file mode 100644 index 40fd38c47..000000000 --- a/ivision/include/alibabacloud/ivision/model/DescribePredictModelsRequest.h +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IVISION_MODEL_DESCRIBEPREDICTMODELSREQUEST_H_ -#define ALIBABACLOUD_IVISION_MODEL_DESCRIBEPREDICTMODELSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ivision - { - namespace Model - { - class ALIBABACLOUD_IVISION_EXPORT DescribePredictModelsRequest : public RpcServiceRequest - { - - public: - DescribePredictModelsRequest(); - ~DescribePredictModelsRequest(); - - std::string getSource()const; - void setSource(const std::string& source); - std::string getType()const; - void setType(const std::string& type); - long getPageSize()const; - void setPageSize(long pageSize); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - long getCurrentPage()const; - void setCurrentPage(long currentPage); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getModelIds()const; - void setModelIds(const std::string& modelIds); - std::string getName()const; - void setName(const std::string& name); - std::string getDeployStatus()const; - void setDeployStatus(const std::string& deployStatus); - - private: - std::string source_; - std::string type_; - long pageSize_; - std::string showLog_; - long currentPage_; - long ownerId_; - std::string modelIds_; - std::string name_; - std::string deployStatus_; - - }; - } - } -} -#endif // !ALIBABACLOUD_IVISION_MODEL_DESCRIBEPREDICTMODELSREQUEST_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/DescribePredictModelsResult.h b/ivision/include/alibabacloud/ivision/model/DescribePredictModelsResult.h deleted file mode 100644 index 392e8d202..000000000 --- a/ivision/include/alibabacloud/ivision/model/DescribePredictModelsResult.h +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IVISION_MODEL_DESCRIBEPREDICTMODELSRESULT_H_ -#define ALIBABACLOUD_IVISION_MODEL_DESCRIBEPREDICTMODELSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ivision - { - namespace Model - { - class ALIBABACLOUD_IVISION_EXPORT DescribePredictModelsResult : public ServiceResult - { - public: - struct Model - { - std::string description; - std::string projectName; - std::string projectId; - std::string deployStatus; - std::string regions; - std::string source; - std::string name; - std::string iterationVersion; - std::string type; - std::string precision; - std::string iterationId; - std::string creationTime; - std::string recall; - std::string mAP; - std::string modelId; - }; - - - DescribePredictModelsResult(); - explicit DescribePredictModelsResult(const std::string &payload); - ~DescribePredictModelsResult(); - long getTotalNum()const; - long getPageSize()const; - long getCurrentPage()const; - std::vector getModels()const; - - protected: - void parse(const std::string &payload); - private: - long totalNum_; - long pageSize_; - long currentPage_; - std::vector models_; - - }; - } - } -} -#endif // !ALIBABACLOUD_IVISION_MODEL_DESCRIBEPREDICTMODELSRESULT_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/DescribePredictTemplatesRequest.h b/ivision/include/alibabacloud/ivision/model/DescribePredictTemplatesRequest.h deleted file mode 100644 index b5b23d8bc..000000000 --- a/ivision/include/alibabacloud/ivision/model/DescribePredictTemplatesRequest.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IVISION_MODEL_DESCRIBEPREDICTTEMPLATESREQUEST_H_ -#define ALIBABACLOUD_IVISION_MODEL_DESCRIBEPREDICTTEMPLATESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ivision - { - namespace Model - { - class ALIBABACLOUD_IVISION_EXPORT DescribePredictTemplatesRequest : public RpcServiceRequest - { - - public: - DescribePredictTemplatesRequest(); - ~DescribePredictTemplatesRequest(); - - std::string getTemplateIds()const; - void setTemplateIds(const std::string& templateIds); - std::string getNextPageToken()const; - void setNextPageToken(const std::string& nextPageToken); - long getPageSize()const; - void setPageSize(long pageSize); - std::string getSortOrder()const; - void setSortOrder(const std::string& sortOrder); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - long getCurrentPage()const; - void setCurrentPage(long currentPage); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSortBy()const; - void setSortBy(const std::string& sortBy); - - private: - std::string templateIds_; - std::string nextPageToken_; - long pageSize_; - std::string sortOrder_; - std::string showLog_; - long currentPage_; - long ownerId_; - std::string sortBy_; - - }; - } - } -} -#endif // !ALIBABACLOUD_IVISION_MODEL_DESCRIBEPREDICTTEMPLATESREQUEST_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/DescribePredictTemplatesResult.h b/ivision/include/alibabacloud/ivision/model/DescribePredictTemplatesResult.h deleted file mode 100644 index 8f5144e0b..000000000 --- a/ivision/include/alibabacloud/ivision/model/DescribePredictTemplatesResult.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IVISION_MODEL_DESCRIBEPREDICTTEMPLATESRESULT_H_ -#define ALIBABACLOUD_IVISION_MODEL_DESCRIBEPREDICTTEMPLATESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ivision - { - namespace Model - { - class ALIBABACLOUD_IVISION_EXPORT DescribePredictTemplatesResult : public ServiceResult - { - public: - struct _Template - { - std::string description; - std::string output; - std::string creationTime; - std::string modelIds; - std::string templateId; - std::string name; - int interval; - }; - - - DescribePredictTemplatesResult(); - explicit DescribePredictTemplatesResult(const std::string &payload); - ~DescribePredictTemplatesResult(); - long getTotalNum()const; - long getPageSize()const; - long getCurrentPage()const; - std::string getNextPageToken()const; - std::vector<_Template> getTemplates()const; - - protected: - void parse(const std::string &payload); - private: - long totalNum_; - long pageSize_; - long currentPage_; - std::string nextPageToken_; - std::vector<_Template> templates_; - - }; - } - } -} -#endif // !ALIBABACLOUD_IVISION_MODEL_DESCRIBEPREDICTTEMPLATESRESULT_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 deleted file mode 100644 index 5c36348d1..000000000 --- a/ivision/include/alibabacloud/ivision/model/DescribeProjectsRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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(); - - std::string getNextPageToken()const; - void setNextPageToken(const std::string& nextPageToken); - long getPageSize()const; - void setPageSize(long pageSize); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - long getCurrentPage()const; - void setCurrentPage(long currentPage); - std::string getProjectIds()const; - void setProjectIds(const std::string& projectIds); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - std::string nextPageToken_; - long pageSize_; - std::string showLog_; - long currentPage_; - std::string projectIds_; - long ownerId_; - - }; - } - } -} -#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 deleted file mode 100644 index 015154dfc..000000000 --- a/ivision/include/alibabacloud/ivision/model/DescribeProjectsResult.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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/DescribeQuickDeploysRequest.h b/ivision/include/alibabacloud/ivision/model/DescribeQuickDeploysRequest.h deleted file mode 100644 index f554bfaab..000000000 --- a/ivision/include/alibabacloud/ivision/model/DescribeQuickDeploysRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IVISION_MODEL_DESCRIBEQUICKDEPLOYSREQUEST_H_ -#define ALIBABACLOUD_IVISION_MODEL_DESCRIBEQUICKDEPLOYSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ivision - { - namespace Model - { - class ALIBABACLOUD_IVISION_EXPORT DescribeQuickDeploysRequest : public RpcServiceRequest - { - - public: - DescribeQuickDeploysRequest(); - ~DescribeQuickDeploysRequest(); - - long getPageSize()const; - void setPageSize(long pageSize); - std::string getProjectId()const; - void setProjectId(const std::string& projectId); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - long getCurrentPage()const; - void setCurrentPage(long currentPage); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getIterationId()const; - void setIterationId(const std::string& iterationId); - - private: - long pageSize_; - std::string projectId_; - std::string showLog_; - long currentPage_; - long ownerId_; - std::string iterationId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_IVISION_MODEL_DESCRIBEQUICKDEPLOYSREQUEST_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/DescribeQuickDeploysResult.h b/ivision/include/alibabacloud/ivision/model/DescribeQuickDeploysResult.h deleted file mode 100644 index 2395c7997..000000000 --- a/ivision/include/alibabacloud/ivision/model/DescribeQuickDeploysResult.h +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IVISION_MODEL_DESCRIBEQUICKDEPLOYSRESULT_H_ -#define ALIBABACLOUD_IVISION_MODEL_DESCRIBEQUICKDEPLOYSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ivision - { - namespace Model - { - class ALIBABACLOUD_IVISION_EXPORT DescribeQuickDeploysResult : public ServiceResult - { - public: - struct QuickDeploy - { - std::string iterationId; - std::string projectId; - std::string creationTime; - std::string deployStatus; - std::string modelId; - }; - - - DescribeQuickDeploysResult(); - explicit DescribeQuickDeploysResult(const std::string &payload); - ~DescribeQuickDeploysResult(); - std::vector getQuickDeploys()const; - long getTotalNum()const; - long getPageSize()const; - long getCurrentPage()const; - - protected: - void parse(const std::string &payload); - private: - std::vector quickDeploys_; - long totalNum_; - long pageSize_; - long currentPage_; - - }; - } - } -} -#endif // !ALIBABACLOUD_IVISION_MODEL_DESCRIBEQUICKDEPLOYSRESULT_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 index 01c5650d4..e1d2727aa 100644 --- a/ivision/include/alibabacloud/ivision/model/DescribeStreamPredictResultRequest.h +++ b/ivision/include/alibabacloud/ivision/model/DescribeStreamPredictResultRequest.h @@ -35,38 +35,38 @@ namespace AlibabaCloud DescribeStreamPredictResultRequest(); ~DescribeStreamPredictResultRequest(); - std::string getNextPageToken()const; - void setNextPageToken(const std::string& nextPageToken); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - std::string getPredictId()const; - void setPredictId(const std::string& predictId); - long getPageSize()const; - void setPageSize(long pageSize); - std::string getProbabilityThreshold()const; - void setProbabilityThreshold(const std::string& probabilityThreshold); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - std::string getModelId()const; - void setModelId(const std::string& modelId); - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - long getCurrentPage()const; - void setCurrentPage(long currentPage); - long getOwnerId()const; - void setOwnerId(long ownerId); + std::string getNextPageToken()const; + void setNextPageToken(const std::string& nextPageToken); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getPredictId()const; + void setPredictId(const std::string& predictId); + long getPageSize()const; + void setPageSize(long pageSize); + std::string getProbabilityThreshold()const; + void setProbabilityThreshold(const std::string& probabilityThreshold); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getModelId()const; + void setModelId(const std::string& modelId); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + long getCurrentPage()const; + void setCurrentPage(long currentPage); + long getOwnerId()const; + void setOwnerId(long ownerId); private: - std::string nextPageToken_; - std::string startTime_; - std::string predictId_; - long pageSize_; - std::string probabilityThreshold_; - std::string showLog_; - std::string modelId_; - std::string endTime_; - long currentPage_; - long ownerId_; + std::string nextPageToken_; + std::string startTime_; + std::string predictId_; + long pageSize_; + std::string probabilityThreshold_; + std::string showLog_; + std::string modelId_; + std::string endTime_; + long currentPage_; + long ownerId_; }; } diff --git a/ivision/include/alibabacloud/ivision/model/DescribeStreamPredictsRequest.h b/ivision/include/alibabacloud/ivision/model/DescribeStreamPredictsRequest.h index 1f421cdb3..bb86b3d3c 100644 --- a/ivision/include/alibabacloud/ivision/model/DescribeStreamPredictsRequest.h +++ b/ivision/include/alibabacloud/ivision/model/DescribeStreamPredictsRequest.h @@ -35,26 +35,26 @@ namespace AlibabaCloud DescribeStreamPredictsRequest(); ~DescribeStreamPredictsRequest(); - std::string getNextPageToken()const; - void setNextPageToken(const std::string& nextPageToken); - std::string getPredictIds()const; - void setPredictIds(const std::string& predictIds); - long getPageSize()const; - void setPageSize(long pageSize); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - long getCurrentPage()const; - void setCurrentPage(long currentPage); - long getOwnerId()const; - void setOwnerId(long ownerId); + std::string getNextPageToken()const; + void setNextPageToken(const std::string& nextPageToken); + std::string getPredictIds()const; + void setPredictIds(const std::string& predictIds); + long getPageSize()const; + void setPageSize(long pageSize); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + long getCurrentPage()const; + void setCurrentPage(long currentPage); + long getOwnerId()const; + void setOwnerId(long ownerId); private: - std::string nextPageToken_; - std::string predictIds_; - long pageSize_; - std::string showLog_; - long currentPage_; - long ownerId_; + std::string nextPageToken_; + std::string predictIds_; + long pageSize_; + std::string showLog_; + long currentPage_; + long ownerId_; }; } diff --git a/ivision/include/alibabacloud/ivision/model/DescribeSystemPredictModelsRequest.h b/ivision/include/alibabacloud/ivision/model/DescribeSystemPredictModelsRequest.h deleted file mode 100644 index a3e2adb11..000000000 --- a/ivision/include/alibabacloud/ivision/model/DescribeSystemPredictModelsRequest.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IVISION_MODEL_DESCRIBESYSTEMPREDICTMODELSREQUEST_H_ -#define ALIBABACLOUD_IVISION_MODEL_DESCRIBESYSTEMPREDICTMODELSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ivision - { - namespace Model - { - class ALIBABACLOUD_IVISION_EXPORT DescribeSystemPredictModelsRequest : public RpcServiceRequest - { - - public: - DescribeSystemPredictModelsRequest(); - ~DescribeSystemPredictModelsRequest(); - - std::string getType()const; - void setType(const std::string& type); - std::string getScene()const; - void setScene(const std::string& scene); - long getPageSize()const; - void setPageSize(long pageSize); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - long getCurrentPage()const; - void setCurrentPage(long currentPage); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getModelIds()const; - void setModelIds(const std::string& modelIds); - std::string getName()const; - void setName(const std::string& name); - - private: - std::string type_; - std::string scene_; - long pageSize_; - std::string showLog_; - long currentPage_; - long ownerId_; - std::string modelIds_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_IVISION_MODEL_DESCRIBESYSTEMPREDICTMODELSREQUEST_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/DescribeSystemPredictModelsResult.h b/ivision/include/alibabacloud/ivision/model/DescribeSystemPredictModelsResult.h deleted file mode 100644 index fc2803c04..000000000 --- a/ivision/include/alibabacloud/ivision/model/DescribeSystemPredictModelsResult.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IVISION_MODEL_DESCRIBESYSTEMPREDICTMODELSRESULT_H_ -#define ALIBABACLOUD_IVISION_MODEL_DESCRIBESYSTEMPREDICTMODELSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ivision - { - namespace Model - { - class ALIBABACLOUD_IVISION_EXPORT DescribeSystemPredictModelsResult : public ServiceResult - { - public: - struct Model - { - std::string type; - std::string description; - std::string creationTime; - std::string scene; - std::string modelId; - std::string name; - }; - - - DescribeSystemPredictModelsResult(); - explicit DescribeSystemPredictModelsResult(const std::string &payload); - ~DescribeSystemPredictModelsResult(); - long getTotalNum()const; - long getPageSize()const; - long getCurrentPage()const; - std::vector getModels()const; - - protected: - void parse(const std::string &payload); - private: - long totalNum_; - long pageSize_; - long currentPage_; - std::vector models_; - - }; - } - } -} -#endif // !ALIBABACLOUD_IVISION_MODEL_DESCRIBESYSTEMPREDICTMODELSRESULT_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 deleted file mode 100644 index 2839002a8..000000000 --- a/ivision/include/alibabacloud/ivision/model/DescribeTagsRequest.h +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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(); - - std::string getNextPageToken()const; - void setNextPageToken(const std::string& nextPageToken); - long getPageSize()const; - void setPageSize(long pageSize); - std::string getProjectId()const; - void setProjectId(const std::string& projectId); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - std::string getModelId()const; - void setModelId(const std::string& modelId); - std::string getTagIds()const; - void setTagIds(const std::string& tagIds); - long getCurrentPage()const; - void setCurrentPage(long currentPage); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getIterationId()const; - void setIterationId(const std::string& iterationId); - - private: - std::string nextPageToken_; - long pageSize_; - std::string projectId_; - std::string showLog_; - std::string modelId_; - std::string tagIds_; - long currentPage_; - long ownerId_; - 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 deleted file mode 100644 index 2bfc1b077..000000000 --- a/ivision/include/alibabacloud/ivision/model/DescribeTagsResult.h +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index 51e383404..000000000 --- a/ivision/include/alibabacloud/ivision/model/DescribeTrainDatasByIdsRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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(); - - std::string getDataIds()const; - void setDataIds(const std::string& dataIds); - std::string getProjectId()const; - void setProjectId(const std::string& projectId); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getIterationId()const; - void setIterationId(const std::string& iterationId); - - private: - std::string dataIds_; - std::string projectId_; - std::string showLog_; - long ownerId_; - 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 deleted file mode 100644 index e94e53415..000000000 --- a/ivision/include/alibabacloud/ivision/model/DescribeTrainDatasByIdsResult.h +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index c8ea978cd..000000000 --- a/ivision/include/alibabacloud/ivision/model/DescribeTrainDatasRequest.h +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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(); - - std::string getNextPageToken()const; - void setNextPageToken(const std::string& nextPageToken); - std::string getTagStatus()const; - void setTagStatus(const std::string& tagStatus); - long getPageSize()const; - void setPageSize(long pageSize); - std::string getProjectId()const; - void setProjectId(const std::string& projectId); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - std::string getTagId()const; - void setTagId(const std::string& tagId); - long getCurrentPage()const; - void setCurrentPage(long currentPage); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getIterationId()const; - void setIterationId(const std::string& iterationId); - - private: - std::string nextPageToken_; - std::string tagStatus_; - long pageSize_; - std::string projectId_; - std::string showLog_; - std::string tagId_; - long currentPage_; - long ownerId_; - 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 deleted file mode 100644 index 76e766f1c..000000000 --- a/ivision/include/alibabacloud/ivision/model/DescribeTrainDatasResult.h +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index 81fff02ca..000000000 --- a/ivision/include/alibabacloud/ivision/model/DescribeTrainResultRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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(); - - std::string getThreshold()const; - void setThreshold(const std::string& threshold); - std::string getProjectId()const; - void setProjectId(const std::string& projectId); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getIterationId()const; - void setIterationId(const std::string& iterationId); - - private: - std::string threshold_; - std::string projectId_; - std::string showLog_; - long ownerId_; - 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 deleted file mode 100644 index e95ebb120..000000000 --- a/ivision/include/alibabacloud/ivision/model/DescribeTrainResultResult.h +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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/ModifyPredictTemplateAttributeRequest.h b/ivision/include/alibabacloud/ivision/model/ModifyPredictTemplateAttributeRequest.h deleted file mode 100644 index b0427962f..000000000 --- a/ivision/include/alibabacloud/ivision/model/ModifyPredictTemplateAttributeRequest.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IVISION_MODEL_MODIFYPREDICTTEMPLATEATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_IVISION_MODEL_MODIFYPREDICTTEMPLATEATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ivision - { - namespace Model - { - class ALIBABACLOUD_IVISION_EXPORT ModifyPredictTemplateAttributeRequest : public RpcServiceRequest - { - - public: - ModifyPredictTemplateAttributeRequest(); - ~ModifyPredictTemplateAttributeRequest(); - - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getOutput()const; - void setOutput(const std::string& output); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getTemplateId()const; - void setTemplateId(const std::string& templateId); - std::string getModelIds()const; - void setModelIds(const std::string& modelIds); - std::string getName()const; - void setName(const std::string& name); - int getInterval()const; - void setInterval(int interval); - - private: - std::string description_; - std::string output_; - std::string showLog_; - long ownerId_; - std::string templateId_; - std::string modelIds_; - std::string name_; - int interval_; - - }; - } - } -} -#endif // !ALIBABACLOUD_IVISION_MODEL_MODIFYPREDICTTEMPLATEATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/ModifyPredictTemplateAttributeResult.h b/ivision/include/alibabacloud/ivision/model/ModifyPredictTemplateAttributeResult.h deleted file mode 100644 index 529465a8c..000000000 --- a/ivision/include/alibabacloud/ivision/model/ModifyPredictTemplateAttributeResult.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IVISION_MODEL_MODIFYPREDICTTEMPLATEATTRIBUTERESULT_H_ -#define ALIBABACLOUD_IVISION_MODEL_MODIFYPREDICTTEMPLATEATTRIBUTERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ivision - { - namespace Model - { - class ALIBABACLOUD_IVISION_EXPORT ModifyPredictTemplateAttributeResult : public ServiceResult - { - public: - struct _Template - { - std::string description; - std::string output; - std::string creationTime; - std::string modelIds; - std::string templateId; - std::string name; - int interval; - }; - - - ModifyPredictTemplateAttributeResult(); - explicit ModifyPredictTemplateAttributeResult(const std::string &payload); - ~ModifyPredictTemplateAttributeResult(); - _Template get_Template()const; - - protected: - void parse(const std::string &payload); - private: - _Template _template_; - - }; - } - } -} -#endif // !ALIBABACLOUD_IVISION_MODEL_MODIFYPREDICTTEMPLATEATTRIBUTERESULT_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 deleted file mode 100644 index 045e7fcef..000000000 --- a/ivision/include/alibabacloud/ivision/model/ModifyProjectAttributeRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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(); - - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getProjectId()const; - void setProjectId(const std::string& projectId); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getName()const; - void setName(const std::string& name); - - private: - std::string description_; - std::string projectId_; - std::string showLog_; - long ownerId_; - 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 deleted file mode 100644 index a8a0ee9e2..000000000 --- a/ivision/include/alibabacloud/ivision/model/ModifyProjectAttributeResult.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index 8ba35a78f..000000000 --- a/ivision/include/alibabacloud/ivision/model/ModifyTagAttributeRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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(); - - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getProjectId()const; - void setProjectId(const std::string& projectId); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - std::string getTagId()const; - void setTagId(const std::string& tagId); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getName()const; - void setName(const std::string& name); - - private: - std::string description_; - std::string projectId_; - std::string showLog_; - std::string tagId_; - long ownerId_; - 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 deleted file mode 100644 index 1a7f9733a..000000000 --- a/ivision/include/alibabacloud/ivision/model/ModifyTagAttributeResult.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index edacbbc79..000000000 --- a/ivision/include/alibabacloud/ivision/model/ModifyTrainDataRegionTagAttributeRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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(); - - std::string getProjectId()const; - void setProjectId(const std::string& projectId); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - std::string getTagItems()const; - void setTagItems(const std::string& tagItems); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getDataId()const; - void setDataId(const std::string& dataId); - - private: - std::string projectId_; - std::string showLog_; - std::string tagItems_; - long ownerId_; - std::string dataId_; - - }; - } - } -} -#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 deleted file mode 100644 index edd74b718..000000000 --- a/ivision/include/alibabacloud/ivision/model/ModifyTrainDataRegionTagAttributeResult.h +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index 0276ca3b2..000000000 --- a/ivision/include/alibabacloud/ivision/model/ModifyTrainDataTagAttributeRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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(); - - std::string getProjectId()const; - void setProjectId(const std::string& projectId); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - std::string getTagItems()const; - void setTagItems(const std::string& tagItems); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getDataId()const; - void setDataId(const std::string& dataId); - - private: - std::string projectId_; - std::string showLog_; - std::string tagItems_; - long ownerId_; - std::string dataId_; - - }; - } - } -} -#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 deleted file mode 100644 index 80528e9b8..000000000 --- a/ivision/include/alibabacloud/ivision/model/ModifyTrainDataTagAttributeResult.h +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index 15aed3db8..000000000 --- a/ivision/include/alibabacloud/ivision/model/PredictImageRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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(); - - std::string getProjectId()const; - void setProjectId(const std::string& projectId); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - std::string getModelId()const; - void setModelId(const std::string& modelId); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getIterationId()const; - void setIterationId(const std::string& iterationId); - std::string getDataUrls()const; - void setDataUrls(const std::string& dataUrls); - - private: - std::string projectId_; - std::string showLog_; - std::string modelId_; - long ownerId_; - 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 deleted file mode 100644 index 40f23ff0e..000000000 --- a/ivision/include/alibabacloud/ivision/model/PredictImageResult.h +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 modelId; - 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/QuickTestRequest.h b/ivision/include/alibabacloud/ivision/model/QuickTestRequest.h deleted file mode 100644 index 463ea91b3..000000000 --- a/ivision/include/alibabacloud/ivision/model/QuickTestRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IVISION_MODEL_QUICKTESTREQUEST_H_ -#define ALIBABACLOUD_IVISION_MODEL_QUICKTESTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ivision - { - namespace Model - { - class ALIBABACLOUD_IVISION_EXPORT QuickTestRequest : public RpcServiceRequest - { - - public: - QuickTestRequest(); - ~QuickTestRequest(); - - std::string getDataUrl()const; - void setDataUrl(const std::string& dataUrl); - std::string getProjectId()const; - void setProjectId(const std::string& projectId); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getIterationId()const; - void setIterationId(const std::string& iterationId); - - private: - std::string dataUrl_; - std::string projectId_; - std::string showLog_; - long ownerId_; - std::string iterationId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_IVISION_MODEL_QUICKTESTREQUEST_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/QuickTestResult.h b/ivision/include/alibabacloud/ivision/model/QuickTestResult.h deleted file mode 100644 index ab2c268c7..000000000 --- a/ivision/include/alibabacloud/ivision/model/QuickTestResult.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IVISION_MODEL_QUICKTESTRESULT_H_ -#define ALIBABACLOUD_IVISION_MODEL_QUICKTESTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ivision - { - namespace Model - { - class ALIBABACLOUD_IVISION_EXPORT QuickTestResult : public ServiceResult - { - public: - struct Result - { - std::string status; - std::string message; - std::string predictResult; - std::string iterationId; - std::string projectId; - std::string dataUrl; - std::string predictTime; - std::string predictId; - std::string code; - }; - - - QuickTestResult(); - explicit QuickTestResult(const std::string &payload); - ~QuickTestResult(); - QuickTestResult getQuickTestResult()const; - - protected: - void parse(const std::string &payload); - private: - QuickTestResult quickTestResult_; - - }; - } - } -} -#endif // !ALIBABACLOUD_IVISION_MODEL_QUICKTESTRESULT_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/RegisterFaceRequest.h b/ivision/include/alibabacloud/ivision/model/RegisterFaceRequest.h index b1c76ae6b..02777ef39 100644 --- a/ivision/include/alibabacloud/ivision/model/RegisterFaceRequest.h +++ b/ivision/include/alibabacloud/ivision/model/RegisterFaceRequest.h @@ -35,89 +35,23 @@ namespace AlibabaCloud RegisterFaceRequest(); ~RegisterFaceRequest(); - 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 getContent()const; void setContent(const std::string& content); - 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 getDataType()const; void setDataType(const std::string& dataType); - 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 getGroupId()const; void setGroupId(const std::string& groupId); - 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 getServiceCode()const; - void setServiceCode(const std::string& serviceCode); - 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 content_; - std::string accessKeyId_; - std::string securityToken_; - std::string regionId_; std::string dataType_; - std::string requestContent_; - std::string callerBidEmail_; - std::string callerUidEmail_; - long callerUid_; std::string showLog_; - std::string app_ip_; - std::string popProduct_; std::string groupId_; - std::string callerBid_; long ownerId_; - std::string version_; - bool proxy_trust_transport_info_; - bool ak_mfa_present_; - bool security_transport_; - std::string serviceCode_; - std::string requestId_; }; } diff --git a/ivision/include/alibabacloud/ivision/model/SearchFaceRequest.h b/ivision/include/alibabacloud/ivision/model/SearchFaceRequest.h index 3f2004a45..d5b24b7a1 100644 --- a/ivision/include/alibabacloud/ivision/model/SearchFaceRequest.h +++ b/ivision/include/alibabacloud/ivision/model/SearchFaceRequest.h @@ -35,95 +35,29 @@ namespace AlibabaCloud SearchFaceRequest(); ~SearchFaceRequest(); - 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 getContent()const; void setContent(const std::string& content); - 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 getDataType()const; void setDataType(const std::string& dataType); - std::string getRequestContent()const; - void setRequestContent(const std::string& requestContent); - std::string getCallerBidEmail()const; - void setCallerBidEmail(const std::string& callerBidEmail); float getProbabilityThreshold()const; void setProbabilityThreshold(float 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 getGroupId()const; void setGroupId(const std::string& groupId); int getCount()const; void setCount(int count); - 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 getServiceCode()const; - void setServiceCode(const std::string& serviceCode); - 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 content_; - std::string accessKeyId_; - std::string securityToken_; - std::string regionId_; std::string dataType_; - std::string requestContent_; - std::string callerBidEmail_; float probabilityThreshold_; - std::string callerUidEmail_; - long callerUid_; std::string showLog_; - std::string app_ip_; - std::string popProduct_; std::string groupId_; int count_; - std::string callerBid_; long ownerId_; - std::string version_; - bool proxy_trust_transport_info_; - bool ak_mfa_present_; - bool security_transport_; - std::string serviceCode_; - std::string requestId_; }; } diff --git a/ivision/include/alibabacloud/ivision/model/StartStreamPredictRequest.h b/ivision/include/alibabacloud/ivision/model/StartStreamPredictRequest.h index a168ffd59..a458f733b 100644 --- a/ivision/include/alibabacloud/ivision/model/StartStreamPredictRequest.h +++ b/ivision/include/alibabacloud/ivision/model/StartStreamPredictRequest.h @@ -35,17 +35,17 @@ namespace AlibabaCloud StartStreamPredictRequest(); ~StartStreamPredictRequest(); - std::string getPredictId()const; - void setPredictId(const std::string& predictId); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - long getOwnerId()const; - void setOwnerId(long ownerId); + std::string getPredictId()const; + void setPredictId(const std::string& predictId); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + long getOwnerId()const; + void setOwnerId(long ownerId); private: - std::string predictId_; - std::string showLog_; - long ownerId_; + std::string predictId_; + std::string showLog_; + long ownerId_; }; } diff --git a/ivision/include/alibabacloud/ivision/model/StopStreamPredictRequest.h b/ivision/include/alibabacloud/ivision/model/StopStreamPredictRequest.h index f97ce918e..2b64fcd82 100644 --- a/ivision/include/alibabacloud/ivision/model/StopStreamPredictRequest.h +++ b/ivision/include/alibabacloud/ivision/model/StopStreamPredictRequest.h @@ -35,17 +35,17 @@ namespace AlibabaCloud StopStreamPredictRequest(); ~StopStreamPredictRequest(); - std::string getPredictId()const; - void setPredictId(const std::string& predictId); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - long getOwnerId()const; - void setOwnerId(long ownerId); + std::string getPredictId()const; + void setPredictId(const std::string& predictId); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + long getOwnerId()const; + void setOwnerId(long ownerId); private: - std::string predictId_; - std::string showLog_; - long ownerId_; + std::string predictId_; + std::string showLog_; + long ownerId_; }; } diff --git a/ivision/include/alibabacloud/ivision/model/TrainProjectRequest.h b/ivision/include/alibabacloud/ivision/model/TrainProjectRequest.h deleted file mode 100644 index 239adb02d..000000000 --- a/ivision/include/alibabacloud/ivision/model/TrainProjectRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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(); - - std::string getProjectId()const; - void setProjectId(const std::string& projectId); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - std::string projectId_; - std::string showLog_; - long ownerId_; - - }; - } - } -} -#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 deleted file mode 100644 index ce690cdcd..000000000 --- a/ivision/include/alibabacloud/ivision/model/TrainProjectResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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/include/alibabacloud/ivision/model/UnregisterFaceRequest.h b/ivision/include/alibabacloud/ivision/model/UnregisterFaceRequest.h index a1af274bc..06dfcc70a 100644 --- a/ivision/include/alibabacloud/ivision/model/UnregisterFaceRequest.h +++ b/ivision/include/alibabacloud/ivision/model/UnregisterFaceRequest.h @@ -35,86 +35,20 @@ namespace AlibabaCloud UnregisterFaceRequest(); ~UnregisterFaceRequest(); - 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 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 getGroupId()const; void setGroupId(const std::string& groupId); - 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 getFaceToken()const; void setFaceToken(const std::string& faceToken); - std::string getServiceCode()const; - void setServiceCode(const std::string& serviceCode); - 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 callerUidEmail_; - long callerUid_; std::string showLog_; - std::string app_ip_; - std::string popProduct_; std::string groupId_; - std::string callerBid_; long ownerId_; - std::string version_; - bool proxy_trust_transport_info_; - bool ak_mfa_present_; - bool security_transport_; std::string faceToken_; - std::string serviceCode_; - std::string requestId_; }; } diff --git a/ivision/src/IvisionClient.cc b/ivision/src/IvisionClient.cc index 9232224ca..2084c8bb8 100644 --- a/ivision/src/IvisionClient.cc +++ b/ivision/src/IvisionClient.cc @@ -86,151 +86,7 @@ IvisionClient::CreateFaceGroupOutcomeCallable IvisionClient::createFaceGroupCall asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - -IvisionClient::CreatePredictModelOutcome IvisionClient::createPredictModel(const CreatePredictModelRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreatePredictModelOutcome(endpointOutcome.error()); - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreatePredictModelOutcome(CreatePredictModelResult(outcome.result())); - else - return CreatePredictModelOutcome(outcome.error()); -} - -void IvisionClient::createPredictModelAsync(const CreatePredictModelRequest& request, const CreatePredictModelAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createPredictModel(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -IvisionClient::CreatePredictModelOutcomeCallable IvisionClient::createPredictModelCallable(const CreatePredictModelRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createPredictModel(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -IvisionClient::CreatePredictTemplateOutcome IvisionClient::createPredictTemplate(const CreatePredictTemplateRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreatePredictTemplateOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreatePredictTemplateOutcome(CreatePredictTemplateResult(outcome.result())); - else - return CreatePredictTemplateOutcome(outcome.error()); -} - -void IvisionClient::createPredictTemplateAsync(const CreatePredictTemplateRequest& request, const CreatePredictTemplateAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createPredictTemplate(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -IvisionClient::CreatePredictTemplateOutcomeCallable IvisionClient::createPredictTemplateCallable(const CreatePredictTemplateRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createPredictTemplate(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::CreateQuickDeployOutcome IvisionClient::createQuickDeploy(const CreateQuickDeployRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateQuickDeployOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateQuickDeployOutcome(CreateQuickDeployResult(outcome.result())); - else - return CreateQuickDeployOutcome(outcome.error()); -} - -void IvisionClient::createQuickDeployAsync(const CreateQuickDeployRequest& request, const CreateQuickDeployAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createQuickDeploy(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -IvisionClient::CreateQuickDeployOutcomeCallable IvisionClient::createQuickDeployCallable(const CreateQuickDeployRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createQuickDeploy(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - IvisionClient::CreateStreamPredictOutcome IvisionClient::createStreamPredict(const CreateStreamPredictRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -266,259 +122,7 @@ IvisionClient::CreateStreamPredictOutcomeCallable IvisionClient::createStreamPre 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::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::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::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::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::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::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::DeleteFaceGroupOutcome IvisionClient::deleteFaceGroup(const DeleteFaceGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -554,187 +158,7 @@ IvisionClient::DeleteFaceGroupOutcomeCallable IvisionClient::deleteFaceGroupCall 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::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::DeletePredictModelOutcome IvisionClient::deletePredictModel(const DeletePredictModelRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeletePredictModelOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeletePredictModelOutcome(DeletePredictModelResult(outcome.result())); - else - return DeletePredictModelOutcome(outcome.error()); -} - -void IvisionClient::deletePredictModelAsync(const DeletePredictModelRequest& request, const DeletePredictModelAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deletePredictModel(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -IvisionClient::DeletePredictModelOutcomeCallable IvisionClient::deletePredictModelCallable(const DeletePredictModelRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deletePredictModel(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -IvisionClient::DeletePredictTemplateOutcome IvisionClient::deletePredictTemplate(const DeletePredictTemplateRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeletePredictTemplateOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeletePredictTemplateOutcome(DeletePredictTemplateResult(outcome.result())); - else - return DeletePredictTemplateOutcome(outcome.error()); -} - -void IvisionClient::deletePredictTemplateAsync(const DeletePredictTemplateRequest& request, const DeletePredictTemplateAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deletePredictTemplate(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -IvisionClient::DeletePredictTemplateOutcomeCallable IvisionClient::deletePredictTemplateCallable(const DeletePredictTemplateRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deletePredictTemplate(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::DeleteStreamPredictOutcome IvisionClient::deleteStreamPredict(const DeleteStreamPredictRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -770,115 +194,7 @@ IvisionClient::DeleteStreamPredictOutcomeCallable IvisionClient::deleteStreamPre 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::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::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::DescribeFaceGroupsOutcome IvisionClient::describeFaceGroups(const DescribeFaceGroupsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -914,223 +230,7 @@ IvisionClient::DescribeFaceGroupsOutcomeCallable IvisionClient::describeFaceGrou 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::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::DescribePredictModelsOutcome IvisionClient::describePredictModels(const DescribePredictModelsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribePredictModelsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribePredictModelsOutcome(DescribePredictModelsResult(outcome.result())); - else - return DescribePredictModelsOutcome(outcome.error()); -} - -void IvisionClient::describePredictModelsAsync(const DescribePredictModelsRequest& request, const DescribePredictModelsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describePredictModels(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -IvisionClient::DescribePredictModelsOutcomeCallable IvisionClient::describePredictModelsCallable(const DescribePredictModelsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describePredictModels(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -IvisionClient::DescribePredictTemplatesOutcome IvisionClient::describePredictTemplates(const DescribePredictTemplatesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribePredictTemplatesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribePredictTemplatesOutcome(DescribePredictTemplatesResult(outcome.result())); - else - return DescribePredictTemplatesOutcome(outcome.error()); -} - -void IvisionClient::describePredictTemplatesAsync(const DescribePredictTemplatesRequest& request, const DescribePredictTemplatesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describePredictTemplates(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -IvisionClient::DescribePredictTemplatesOutcomeCallable IvisionClient::describePredictTemplatesCallable(const DescribePredictTemplatesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describePredictTemplates(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::DescribeQuickDeploysOutcome IvisionClient::describeQuickDeploys(const DescribeQuickDeploysRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeQuickDeploysOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeQuickDeploysOutcome(DescribeQuickDeploysResult(outcome.result())); - else - return DescribeQuickDeploysOutcome(outcome.error()); -} - -void IvisionClient::describeQuickDeploysAsync(const DescribeQuickDeploysRequest& request, const DescribeQuickDeploysAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeQuickDeploys(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -IvisionClient::DescribeQuickDeploysOutcomeCallable IvisionClient::describeQuickDeploysCallable(const DescribeQuickDeploysRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeQuickDeploys(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - IvisionClient::DescribeStreamPredictResultOutcome IvisionClient::describeStreamPredictResult(const DescribeStreamPredictResultRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1166,7 +266,7 @@ IvisionClient::DescribeStreamPredictResultOutcomeCallable IvisionClient::describ asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - + IvisionClient::DescribeStreamPredictsOutcome IvisionClient::describeStreamPredicts(const DescribeStreamPredictsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1202,187 +302,7 @@ IvisionClient::DescribeStreamPredictsOutcomeCallable IvisionClient::describeStre asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - -IvisionClient::DescribeSystemPredictModelsOutcome IvisionClient::describeSystemPredictModels(const DescribeSystemPredictModelsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeSystemPredictModelsOutcome(endpointOutcome.error()); - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeSystemPredictModelsOutcome(DescribeSystemPredictModelsResult(outcome.result())); - else - return DescribeSystemPredictModelsOutcome(outcome.error()); -} - -void IvisionClient::describeSystemPredictModelsAsync(const DescribeSystemPredictModelsRequest& request, const DescribeSystemPredictModelsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeSystemPredictModels(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -IvisionClient::DescribeSystemPredictModelsOutcomeCallable IvisionClient::describeSystemPredictModelsCallable(const DescribeSystemPredictModelsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeSystemPredictModels(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::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::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::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::ImagePredictOutcome IvisionClient::imagePredict(const ImagePredictRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1418,259 +338,7 @@ IvisionClient::ImagePredictOutcomeCallable IvisionClient::imagePredictCallable(c asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - -IvisionClient::ModifyPredictTemplateAttributeOutcome IvisionClient::modifyPredictTemplateAttribute(const ModifyPredictTemplateAttributeRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyPredictTemplateAttributeOutcome(endpointOutcome.error()); - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyPredictTemplateAttributeOutcome(ModifyPredictTemplateAttributeResult(outcome.result())); - else - return ModifyPredictTemplateAttributeOutcome(outcome.error()); -} - -void IvisionClient::modifyPredictTemplateAttributeAsync(const ModifyPredictTemplateAttributeRequest& request, const ModifyPredictTemplateAttributeAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyPredictTemplateAttribute(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -IvisionClient::ModifyPredictTemplateAttributeOutcomeCallable IvisionClient::modifyPredictTemplateAttributeCallable(const ModifyPredictTemplateAttributeRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyPredictTemplateAttribute(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::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::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::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::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(); -} - -IvisionClient::QuickTestOutcome IvisionClient::quickTest(const QuickTestRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QuickTestOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QuickTestOutcome(QuickTestResult(outcome.result())); - else - return QuickTestOutcome(outcome.error()); -} - -void IvisionClient::quickTestAsync(const QuickTestRequest& request, const QuickTestAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, quickTest(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -IvisionClient::QuickTestOutcomeCallable IvisionClient::quickTestCallable(const QuickTestRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->quickTest(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - IvisionClient::RegisterFaceOutcome IvisionClient::registerFace(const RegisterFaceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1706,7 +374,7 @@ IvisionClient::RegisterFaceOutcomeCallable IvisionClient::registerFaceCallable(c asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - + IvisionClient::SearchFaceOutcome IvisionClient::searchFace(const SearchFaceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1742,7 +410,7 @@ IvisionClient::SearchFaceOutcomeCallable IvisionClient::searchFaceCallable(const asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - + IvisionClient::StartStreamPredictOutcome IvisionClient::startStreamPredict(const StartStreamPredictRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1778,7 +446,7 @@ IvisionClient::StartStreamPredictOutcomeCallable IvisionClient::startStreamPredi asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - + IvisionClient::StopStreamPredictOutcome IvisionClient::stopStreamPredict(const StopStreamPredictRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1814,43 +482,7 @@ IvisionClient::StopStreamPredictOutcomeCallable IvisionClient::stopStreamPredict asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - -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::UnregisterFaceOutcome IvisionClient::unregisterFace(const UnregisterFaceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1886,4 +518,4 @@ IvisionClient::UnregisterFaceOutcomeCallable IvisionClient::unregisterFaceCallab asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - + diff --git a/ivision/src/model/CreateFaceGroupRequest.cc b/ivision/src/model/CreateFaceGroupRequest.cc index 0bf3e9aa9..e151291d6 100644 --- a/ivision/src/model/CreateFaceGroupRequest.cc +++ b/ivision/src/model/CreateFaceGroupRequest.cc @@ -20,154 +20,13 @@ using AlibabaCloud::Ivision::Model::CreateFaceGroupRequest; CreateFaceGroupRequest::CreateFaceGroupRequest() : RpcServiceRequest("ivision", "2019-03-08", "CreateFaceGroup") -{} +{ + setMethod(HttpRequest::Method::Get); +} CreateFaceGroupRequest::~CreateFaceGroupRequest() {} -long CreateFaceGroupRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void CreateFaceGroupRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -long CreateFaceGroupRequest::getCallerParentId()const -{ - return callerParentId_; -} - -void CreateFaceGroupRequest::setCallerParentId(long callerParentId) -{ - callerParentId_ = callerParentId; - setCoreParameter("CallerParentId", std::to_string(callerParentId)); -} - -bool CreateFaceGroupRequest::getProxy_original_security_transport()const -{ - return proxy_original_security_transport_; -} - -void CreateFaceGroupRequest::setProxy_original_security_transport(bool proxy_original_security_transport) -{ - proxy_original_security_transport_ = proxy_original_security_transport; - setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); -} - -std::string CreateFaceGroupRequest::getProxy_original_source_ip()const -{ - return proxy_original_source_ip_; -} - -void CreateFaceGroupRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) -{ - proxy_original_source_ip_ = proxy_original_source_ip; - setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); -} - -std::string CreateFaceGroupRequest::getOwnerIdLoginEmail()const -{ - return ownerIdLoginEmail_; -} - -void CreateFaceGroupRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) -{ - ownerIdLoginEmail_ = ownerIdLoginEmail; - setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); -} - -std::string CreateFaceGroupRequest::getCallerType()const -{ - return callerType_; -} - -void CreateFaceGroupRequest::setCallerType(const std::string& callerType) -{ - callerType_ = callerType; - setCoreParameter("CallerType", callerType); -} - -std::string CreateFaceGroupRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void CreateFaceGroupRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setCoreParameter("AccessKeyId", accessKeyId); -} - -std::string CreateFaceGroupRequest::getSecurityToken()const -{ - return securityToken_; -} - -void CreateFaceGroupRequest::setSecurityToken(const std::string& securityToken) -{ - securityToken_ = securityToken; - setCoreParameter("SecurityToken", securityToken); -} - -std::string CreateFaceGroupRequest::getRegionId()const -{ - return regionId_; -} - -void CreateFaceGroupRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setCoreParameter("RegionId", regionId); -} - -std::string CreateFaceGroupRequest::getRequestContent()const -{ - return requestContent_; -} - -void CreateFaceGroupRequest::setRequestContent(const std::string& requestContent) -{ - requestContent_ = requestContent; - setCoreParameter("RequestContent", requestContent); -} - -std::string CreateFaceGroupRequest::getCallerBidEmail()const -{ - return callerBidEmail_; -} - -void CreateFaceGroupRequest::setCallerBidEmail(const std::string& callerBidEmail) -{ - callerBidEmail_ = callerBidEmail; - setCoreParameter("CallerBidEmail", callerBidEmail); -} - -std::string CreateFaceGroupRequest::getCallerUidEmail()const -{ - return callerUidEmail_; -} - -void CreateFaceGroupRequest::setCallerUidEmail(const std::string& callerUidEmail) -{ - callerUidEmail_ = callerUidEmail; - setCoreParameter("CallerUidEmail", callerUidEmail); -} - -long CreateFaceGroupRequest::getCallerUid()const -{ - return callerUid_; -} - -void CreateFaceGroupRequest::setCallerUid(long callerUid) -{ - callerUid_ = callerUid; - setCoreParameter("CallerUid", std::to_string(callerUid)); -} - std::string CreateFaceGroupRequest::getShowLog()const { return showLog_; @@ -179,39 +38,6 @@ void CreateFaceGroupRequest::setShowLog(const std::string& showLog) setCoreParameter("ShowLog", showLog); } -std::string CreateFaceGroupRequest::getApp_ip()const -{ - return app_ip_; -} - -void CreateFaceGroupRequest::setApp_ip(const std::string& app_ip) -{ - app_ip_ = app_ip; - setCoreParameter("App_ip", app_ip); -} - -std::string CreateFaceGroupRequest::getPopProduct()const -{ - return popProduct_; -} - -void CreateFaceGroupRequest::setPopProduct(const std::string& popProduct) -{ - popProduct_ = popProduct; - setCoreParameter("PopProduct", popProduct); -} - -std::string CreateFaceGroupRequest::getCallerBid()const -{ - return callerBid_; -} - -void CreateFaceGroupRequest::setCallerBid(const std::string& callerBid) -{ - callerBid_ = callerBid; - setCoreParameter("CallerBid", callerBid); -} - long CreateFaceGroupRequest::getOwnerId()const { return ownerId_; @@ -223,72 +49,6 @@ void CreateFaceGroupRequest::setOwnerId(long ownerId) setCoreParameter("OwnerId", std::to_string(ownerId)); } -std::string CreateFaceGroupRequest::getVersion()const -{ - return version_; -} - -void CreateFaceGroupRequest::setVersion(const std::string& version) -{ - version_ = version; - setCoreParameter("Version", version); -} - -bool CreateFaceGroupRequest::getProxy_trust_transport_info()const -{ - return proxy_trust_transport_info_; -} - -void CreateFaceGroupRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) -{ - proxy_trust_transport_info_ = proxy_trust_transport_info; - setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); -} - -bool CreateFaceGroupRequest::getAk_mfa_present()const -{ - return ak_mfa_present_; -} - -void CreateFaceGroupRequest::setAk_mfa_present(bool ak_mfa_present) -{ - ak_mfa_present_ = ak_mfa_present; - setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); -} - -bool CreateFaceGroupRequest::getSecurity_transport()const -{ - return security_transport_; -} - -void CreateFaceGroupRequest::setSecurity_transport(bool security_transport) -{ - security_transport_ = security_transport; - setCoreParameter("Security_transport", security_transport ? "true" : "false"); -} - -std::string CreateFaceGroupRequest::getServiceCode()const -{ - return serviceCode_; -} - -void CreateFaceGroupRequest::setServiceCode(const std::string& serviceCode) -{ - serviceCode_ = serviceCode; - setCoreParameter("ServiceCode", serviceCode); -} - -std::string CreateFaceGroupRequest::getRequestId()const -{ - return requestId_; -} - -void CreateFaceGroupRequest::setRequestId(const std::string& requestId) -{ - requestId_ = requestId; - setCoreParameter("RequestId", requestId); -} - std::string CreateFaceGroupRequest::getName()const { return name_; diff --git a/ivision/src/model/CreateFaceGroupResult.cc b/ivision/src/model/CreateFaceGroupResult.cc index b0fdf9fcd..2c3a34089 100644 --- a/ivision/src/model/CreateFaceGroupResult.cc +++ b/ivision/src/model/CreateFaceGroupResult.cc @@ -35,13 +35,9 @@ CreateFaceGroupResult::~CreateFaceGroupResult() void CreateFaceGroupResult::parse(const std::string &payload) { - Json::CharReaderBuilder builder; - Json::CharReader *reader = builder.newCharReader(); - Json::Value *val; + Json::Reader reader; Json::Value value; - JSONCPP_STRING *errs; - reader->parse(payload.data(), payload.data() + payload.size(), val, errs); - value = *val; + reader.parse(payload, value); setRequestId(value["RequestId"].asString()); if(!value["GroupId"].isNull()) groupId_ = value["GroupId"].asString(); diff --git a/ivision/src/model/CreatePredictModelRequest.cc b/ivision/src/model/CreatePredictModelRequest.cc deleted file mode 100644 index 62c68021a..000000000 --- a/ivision/src/model/CreatePredictModelRequest.cc +++ /dev/null @@ -1,126 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ivision::Model::CreatePredictModelRequest; - -CreatePredictModelRequest::CreatePredictModelRequest() : - RpcServiceRequest("ivision", "2019-03-08", "CreatePredictModel") -{} - -CreatePredictModelRequest::~CreatePredictModelRequest() -{} - -std::string CreatePredictModelRequest::getRegions()const -{ - return regions_; -} - -void CreatePredictModelRequest::setRegions(const std::string& regions) -{ - regions_ = regions; - setCoreParameter("Regions", regions); -} - -std::string CreatePredictModelRequest::getDescription()const -{ - return description_; -} - -void CreatePredictModelRequest::setDescription(const std::string& description) -{ - description_ = description; - setCoreParameter("Description", description); -} - -std::string CreatePredictModelRequest::getSource()const -{ - return source_; -} - -void CreatePredictModelRequest::setSource(const std::string& source) -{ - source_ = source; - setCoreParameter("Source", source); -} - -std::string CreatePredictModelRequest::getProjectId()const -{ - return projectId_; -} - -void CreatePredictModelRequest::setProjectId(const std::string& projectId) -{ - projectId_ = projectId; - setCoreParameter("ProjectId", projectId); -} - -std::string CreatePredictModelRequest::getShowLog()const -{ - return showLog_; -} - -void CreatePredictModelRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -std::string CreatePredictModelRequest::getModelId()const -{ - return modelId_; -} - -void CreatePredictModelRequest::setModelId(const std::string& modelId) -{ - modelId_ = modelId; - setCoreParameter("ModelId", modelId); -} - -long CreatePredictModelRequest::getOwnerId()const -{ - return ownerId_; -} - -void CreatePredictModelRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - -std::string CreatePredictModelRequest::getName()const -{ - return name_; -} - -void CreatePredictModelRequest::setName(const std::string& name) -{ - name_ = name; - setCoreParameter("Name", name); -} - -std::string CreatePredictModelRequest::getIterationId()const -{ - return iterationId_; -} - -void CreatePredictModelRequest::setIterationId(const std::string& iterationId) -{ - iterationId_ = iterationId; - setCoreParameter("IterationId", iterationId); -} - diff --git a/ivision/src/model/CreatePredictModelResult.cc b/ivision/src/model/CreatePredictModelResult.cc deleted file mode 100644 index d041cf3ee..000000000 --- a/ivision/src/model/CreatePredictModelResult.cc +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ivision; -using namespace AlibabaCloud::Ivision::Model; - -CreatePredictModelResult::CreatePredictModelResult() : - ServiceResult() -{} - -CreatePredictModelResult::CreatePredictModelResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreatePredictModelResult::~CreatePredictModelResult() -{} - -void CreatePredictModelResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto modelNode = value["Model"]; - if(!modelNode["ModelId"].isNull()) - model_.modelId = modelNode["ModelId"].asString(); - if(!modelNode["Name"].isNull()) - model_.name = modelNode["Name"].asString(); - if(!modelNode["Description"].isNull()) - model_.description = modelNode["Description"].asString(); - if(!modelNode["ProjectId"].isNull()) - model_.projectId = modelNode["ProjectId"].asString(); - if(!modelNode["ProjectName"].isNull()) - model_.projectName = modelNode["ProjectName"].asString(); - if(!modelNode["IterationId"].isNull()) - model_.iterationId = modelNode["IterationId"].asString(); - if(!modelNode["IterationVersion"].isNull()) - model_.iterationVersion = modelNode["IterationVersion"].asString(); - if(!modelNode["Regions"].isNull()) - model_.regions = modelNode["Regions"].asString(); - if(!modelNode["CreationTime"].isNull()) - model_.creationTime = modelNode["CreationTime"].asString(); - -} - -CreatePredictModelResult::Model CreatePredictModelResult::getModel()const -{ - return model_; -} - diff --git a/ivision/src/model/CreatePredictTemplateRequest.cc b/ivision/src/model/CreatePredictTemplateRequest.cc deleted file mode 100644 index 70402db65..000000000 --- a/ivision/src/model/CreatePredictTemplateRequest.cc +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ivision::Model::CreatePredictTemplateRequest; - -CreatePredictTemplateRequest::CreatePredictTemplateRequest() : - RpcServiceRequest("ivision", "2019-03-08", "CreatePredictTemplate") -{} - -CreatePredictTemplateRequest::~CreatePredictTemplateRequest() -{} - -std::string CreatePredictTemplateRequest::getDescription()const -{ - return description_; -} - -void CreatePredictTemplateRequest::setDescription(const std::string& description) -{ - description_ = description; - setCoreParameter("Description", description); -} - -std::string CreatePredictTemplateRequest::getOutput()const -{ - return output_; -} - -void CreatePredictTemplateRequest::setOutput(const std::string& output) -{ - output_ = output; - setCoreParameter("Output", output); -} - -std::string CreatePredictTemplateRequest::getShowLog()const -{ - return showLog_; -} - -void CreatePredictTemplateRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -long CreatePredictTemplateRequest::getOwnerId()const -{ - return ownerId_; -} - -void CreatePredictTemplateRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - -std::string CreatePredictTemplateRequest::getModelIds()const -{ - return modelIds_; -} - -void CreatePredictTemplateRequest::setModelIds(const std::string& modelIds) -{ - modelIds_ = modelIds; - setCoreParameter("ModelIds", modelIds); -} - -std::string CreatePredictTemplateRequest::getName()const -{ - return name_; -} - -void CreatePredictTemplateRequest::setName(const std::string& name) -{ - name_ = name; - setCoreParameter("Name", name); -} - -int CreatePredictTemplateRequest::getInterval()const -{ - return interval_; -} - -void CreatePredictTemplateRequest::setInterval(int interval) -{ - interval_ = interval; - setCoreParameter("Interval", std::to_string(interval)); -} - diff --git a/ivision/src/model/CreatePredictTemplateResult.cc b/ivision/src/model/CreatePredictTemplateResult.cc deleted file mode 100644 index 9980c7af3..000000000 --- a/ivision/src/model/CreatePredictTemplateResult.cc +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ivision; -using namespace AlibabaCloud::Ivision::Model; - -CreatePredictTemplateResult::CreatePredictTemplateResult() : - ServiceResult() -{} - -CreatePredictTemplateResult::CreatePredictTemplateResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreatePredictTemplateResult::~CreatePredictTemplateResult() -{} - -void CreatePredictTemplateResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto _templateNode = value["Template"]; - if(!_templateNode["TemplateId"].isNull()) - _template_.templateId = _templateNode["TemplateId"].asString(); - if(!_templateNode["Name"].isNull()) - _template_.name = _templateNode["Name"].asString(); - if(!_templateNode["Description"].isNull()) - _template_.description = _templateNode["Description"].asString(); - if(!_templateNode["Interval"].isNull()) - _template_.interval = std::stoi(_templateNode["Interval"].asString()); - if(!_templateNode["Output"].isNull()) - _template_.output = _templateNode["Output"].asString(); - if(!_templateNode["ModelIds"].isNull()) - _template_.modelIds = _templateNode["ModelIds"].asString(); - if(!_templateNode["CreationTime"].isNull()) - _template_.creationTime = _templateNode["CreationTime"].asString(); - -} - -CreatePredictTemplateResult::_Template CreatePredictTemplateResult::get_Template()const -{ - return _template_; -} - diff --git a/ivision/src/model/CreateProjectRequest.cc b/ivision/src/model/CreateProjectRequest.cc deleted file mode 100644 index 3868b9a2d..000000000 --- a/ivision/src/model/CreateProjectRequest.cc +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ivision::Model::CreateProjectRequest; - -CreateProjectRequest::CreateProjectRequest() : - RpcServiceRequest("ivision", "2019-03-08", "CreateProject") -{} - -CreateProjectRequest::~CreateProjectRequest() -{} - -std::string CreateProjectRequest::getDescription()const -{ - return description_; -} - -void CreateProjectRequest::setDescription(const std::string& description) -{ - description_ = description; - setCoreParameter("Description", description); -} - -std::string CreateProjectRequest::getShowLog()const -{ - return showLog_; -} - -void CreateProjectRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -std::string CreateProjectRequest::getModelId()const -{ - return modelId_; -} - -void CreateProjectRequest::setModelId(const std::string& modelId) -{ - modelId_ = modelId; - setCoreParameter("ModelId", modelId); -} - -long CreateProjectRequest::getOwnerId()const -{ - return ownerId_; -} - -void CreateProjectRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - -std::string CreateProjectRequest::getProType()const -{ - return proType_; -} - -void CreateProjectRequest::setProType(const std::string& proType) -{ - proType_ = proType; - setCoreParameter("ProType", proType); -} - -std::string CreateProjectRequest::getName()const -{ - return name_; -} - -void CreateProjectRequest::setName(const std::string& name) -{ - name_ = name; - setCoreParameter("Name", name); -} - diff --git a/ivision/src/model/CreateProjectResult.cc b/ivision/src/model/CreateProjectResult.cc deleted file mode 100644 index e53311a1b..000000000 --- a/ivision/src/model/CreateProjectResult.cc +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#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/CreateQuickDeployRequest.cc b/ivision/src/model/CreateQuickDeployRequest.cc deleted file mode 100644 index 29cbffca6..000000000 --- a/ivision/src/model/CreateQuickDeployRequest.cc +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ivision::Model::CreateQuickDeployRequest; - -CreateQuickDeployRequest::CreateQuickDeployRequest() : - RpcServiceRequest("ivision", "2019-03-08", "CreateQuickDeploy") -{} - -CreateQuickDeployRequest::~CreateQuickDeployRequest() -{} - -std::string CreateQuickDeployRequest::getProjectId()const -{ - return projectId_; -} - -void CreateQuickDeployRequest::setProjectId(const std::string& projectId) -{ - projectId_ = projectId; - setCoreParameter("ProjectId", projectId); -} - -std::string CreateQuickDeployRequest::getShowLog()const -{ - return showLog_; -} - -void CreateQuickDeployRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -long CreateQuickDeployRequest::getOwnerId()const -{ - return ownerId_; -} - -void CreateQuickDeployRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - -std::string CreateQuickDeployRequest::getIterationId()const -{ - return iterationId_; -} - -void CreateQuickDeployRequest::setIterationId(const std::string& iterationId) -{ - iterationId_ = iterationId; - setCoreParameter("IterationId", iterationId); -} - diff --git a/ivision/src/model/CreateQuickDeployResult.cc b/ivision/src/model/CreateQuickDeployResult.cc deleted file mode 100644 index ffa16f409..000000000 --- a/ivision/src/model/CreateQuickDeployResult.cc +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ivision; -using namespace AlibabaCloud::Ivision::Model; - -CreateQuickDeployResult::CreateQuickDeployResult() : - ServiceResult() -{} - -CreateQuickDeployResult::CreateQuickDeployResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateQuickDeployResult::~CreateQuickDeployResult() -{} - -void CreateQuickDeployResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto quickDeployNode = value["QuickDeploy"]; - if(!quickDeployNode["ProjectId"].isNull()) - quickDeploy_.projectId = quickDeployNode["ProjectId"].asString(); - if(!quickDeployNode["IterationId"].isNull()) - quickDeploy_.iterationId = quickDeployNode["IterationId"].asString(); - if(!quickDeployNode["ModelId"].isNull()) - quickDeploy_.modelId = quickDeployNode["ModelId"].asString(); - if(!quickDeployNode["CreationTime"].isNull()) - quickDeploy_.creationTime = quickDeployNode["CreationTime"].asString(); - if(!quickDeployNode["DeployStatus"].isNull()) - quickDeploy_.deployStatus = quickDeployNode["DeployStatus"].asString(); - -} - -CreateQuickDeployResult::QuickDeploy CreateQuickDeployResult::getQuickDeploy()const -{ - return quickDeploy_; -} - diff --git a/ivision/src/model/CreateStreamPredictRequest.cc b/ivision/src/model/CreateStreamPredictRequest.cc index 976c2dd9e..619438f5b 100644 --- a/ivision/src/model/CreateStreamPredictRequest.cc +++ b/ivision/src/model/CreateStreamPredictRequest.cc @@ -20,162 +20,153 @@ using AlibabaCloud::Ivision::Model::CreateStreamPredictRequest; CreateStreamPredictRequest::CreateStreamPredictRequest() : RpcServiceRequest("ivision", "2019-03-08", "CreateStreamPredict") -{} +{ + setMethod(HttpRequest::Method::Post); +} CreateStreamPredictRequest::~CreateStreamPredictRequest() {} -std::string CreateStreamPredictRequest::getClientToken()const -{ - return clientToken_; -} - -void CreateStreamPredictRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setCoreParameter("ClientToken", clientToken); -} - -std::string CreateStreamPredictRequest::getAutoStart()const -{ - return autoStart_; -} - -void CreateStreamPredictRequest::setAutoStart(const std::string& autoStart) -{ - autoStart_ = autoStart; - setCoreParameter("AutoStart", autoStart); -} - -std::string CreateStreamPredictRequest::getNotify()const -{ - return notify_; -} - -void CreateStreamPredictRequest::setNotify(const std::string& notify) -{ - notify_ = notify; - setCoreParameter("Notify", notify); -} - -std::string CreateStreamPredictRequest::getOutput()const -{ - return output_; -} - -void CreateStreamPredictRequest::setOutput(const std::string& output) -{ - output_ = output; - setCoreParameter("Output", output); -} - -std::string CreateStreamPredictRequest::getUserData()const -{ - return userData_; -} - -void CreateStreamPredictRequest::setUserData(const std::string& userData) -{ - userData_ = userData; - setCoreParameter("UserData", userData); -} - -std::string CreateStreamPredictRequest::getShowLog()const -{ - return showLog_; -} - -void CreateStreamPredictRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -std::string CreateStreamPredictRequest::getStreamType()const -{ - return streamType_; -} - -void CreateStreamPredictRequest::setStreamType(const std::string& streamType) -{ - streamType_ = streamType; - setCoreParameter("StreamType", streamType); -} - -std::string CreateStreamPredictRequest::getFaceGroupId()const -{ - return faceGroupId_; -} - -void CreateStreamPredictRequest::setFaceGroupId(const std::string& faceGroupId) -{ - faceGroupId_ = faceGroupId; - setCoreParameter("FaceGroupId", faceGroupId); -} - -std::string CreateStreamPredictRequest::getStreamId()const -{ - return streamId_; -} - -void CreateStreamPredictRequest::setStreamId(const std::string& streamId) -{ - streamId_ = streamId; - setCoreParameter("StreamId", streamId); -} - -std::string CreateStreamPredictRequest::getDetectIntervals()const -{ - return detectIntervals_; -} - -void CreateStreamPredictRequest::setDetectIntervals(const std::string& detectIntervals) -{ - detectIntervals_ = detectIntervals; - setCoreParameter("DetectIntervals", detectIntervals); -} - -long CreateStreamPredictRequest::getOwnerId()const -{ - return ownerId_; -} - -void CreateStreamPredictRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - -std::string CreateStreamPredictRequest::getProbabilityThresholds()const -{ - return probabilityThresholds_; -} - -void CreateStreamPredictRequest::setProbabilityThresholds(const std::string& probabilityThresholds) -{ - probabilityThresholds_ = probabilityThresholds; - setCoreParameter("ProbabilityThresholds", probabilityThresholds); -} - -std::string CreateStreamPredictRequest::getModelIds()const -{ - return modelIds_; -} - -void CreateStreamPredictRequest::setModelIds(const std::string& modelIds) -{ - modelIds_ = modelIds; - setCoreParameter("ModelIds", modelIds); -} - -std::string CreateStreamPredictRequest::getModelUserData()const -{ - return modelUserData_; -} - -void CreateStreamPredictRequest::setModelUserData(const std::string& modelUserData) -{ - modelUserData_ = modelUserData; - setCoreParameter("ModelUserData", modelUserData); -} - +std::string CreateStreamPredictRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateStreamPredictRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + +std::string CreateStreamPredictRequest::getAutoStart()const +{ + return autoStart_; +} + +void CreateStreamPredictRequest::setAutoStart(const std::string& autoStart) +{ + autoStart_ = autoStart; + setCoreParameter("AutoStart", autoStart); +} + +std::string CreateStreamPredictRequest::getNotify()const +{ + return notify_; +} + +void CreateStreamPredictRequest::setNotify(const std::string& notify) +{ + notify_ = notify; + setCoreParameter("Notify", notify); +} + +std::string CreateStreamPredictRequest::getOutput()const +{ + return output_; +} + +void CreateStreamPredictRequest::setOutput(const std::string& output) +{ + output_ = output; + setCoreParameter("Output", output); +} + +std::string CreateStreamPredictRequest::getShowLog()const +{ + return showLog_; +} + +void CreateStreamPredictRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setCoreParameter("ShowLog", showLog); +} + +std::string CreateStreamPredictRequest::getStreamType()const +{ + return streamType_; +} + +void CreateStreamPredictRequest::setStreamType(const std::string& streamType) +{ + streamType_ = streamType; + setCoreParameter("StreamType", streamType); +} + +std::string CreateStreamPredictRequest::getFaceGroupId()const +{ + return faceGroupId_; +} + +void CreateStreamPredictRequest::setFaceGroupId(const std::string& faceGroupId) +{ + faceGroupId_ = faceGroupId; + setCoreParameter("FaceGroupId", faceGroupId); +} + +std::string CreateStreamPredictRequest::getStreamId()const +{ + return streamId_; +} + +void CreateStreamPredictRequest::setStreamId(const std::string& streamId) +{ + streamId_ = streamId; + setCoreParameter("StreamId", streamId); +} + +std::string CreateStreamPredictRequest::getDetectIntervals()const +{ + return detectIntervals_; +} + +void CreateStreamPredictRequest::setDetectIntervals(const std::string& detectIntervals) +{ + detectIntervals_ = detectIntervals; + setCoreParameter("DetectIntervals", detectIntervals); +} + +long CreateStreamPredictRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateStreamPredictRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateStreamPredictRequest::getProbabilityThresholds()const +{ + return probabilityThresholds_; +} + +void CreateStreamPredictRequest::setProbabilityThresholds(const std::string& probabilityThresholds) +{ + probabilityThresholds_ = probabilityThresholds; + setCoreParameter("ProbabilityThresholds", probabilityThresholds); +} + +std::string CreateStreamPredictRequest::getModelIds()const +{ + return modelIds_; +} + +void CreateStreamPredictRequest::setModelIds(const std::string& modelIds) +{ + modelIds_ = modelIds; + setCoreParameter("ModelIds", modelIds); +} + +std::string CreateStreamPredictRequest::getModelUserData()const +{ + return modelUserData_; +} + +void CreateStreamPredictRequest::setModelUserData(const std::string& modelUserData) +{ + modelUserData_ = modelUserData; + setCoreParameter("ModelUserData", modelUserData); +} + diff --git a/ivision/src/model/CreateTagRequest.cc b/ivision/src/model/CreateTagRequest.cc deleted file mode 100644 index 061757ba2..000000000 --- a/ivision/src/model/CreateTagRequest.cc +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ivision::Model::CreateTagRequest; - -CreateTagRequest::CreateTagRequest() : - RpcServiceRequest("ivision", "2019-03-08", "CreateTag") -{} - -CreateTagRequest::~CreateTagRequest() -{} - -std::string CreateTagRequest::getDescription()const -{ - return description_; -} - -void CreateTagRequest::setDescription(const std::string& description) -{ - description_ = description; - setCoreParameter("Description", description); -} - -std::string CreateTagRequest::getProjectId()const -{ - return projectId_; -} - -void CreateTagRequest::setProjectId(const std::string& projectId) -{ - projectId_ = projectId; - setCoreParameter("ProjectId", projectId); -} - -std::string CreateTagRequest::getShowLog()const -{ - return showLog_; -} - -void CreateTagRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -long CreateTagRequest::getOwnerId()const -{ - return ownerId_; -} - -void CreateTagRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - -std::string CreateTagRequest::getName()const -{ - return name_; -} - -void CreateTagRequest::setName(const std::string& name) -{ - name_ = name; - setCoreParameter("Name", name); -} - diff --git a/ivision/src/model/CreateTagResult.cc b/ivision/src/model/CreateTagResult.cc deleted file mode 100644 index 0a1993d97..000000000 --- a/ivision/src/model/CreateTagResult.cc +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#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 deleted file mode 100644 index 708b2202c..000000000 --- a/ivision/src/model/CreateTrainDataRegionTagRequest.cc +++ /dev/null @@ -1,313 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -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; - setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -long CreateTrainDataRegionTagRequest::getCallerParentId()const -{ - return callerParentId_; -} - -void CreateTrainDataRegionTagRequest::setCallerParentId(long callerParentId) -{ - callerParentId_ = callerParentId; - setCoreParameter("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; - setCoreParameter("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; - setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); -} - -std::string CreateTrainDataRegionTagRequest::getOwnerIdLoginEmail()const -{ - return ownerIdLoginEmail_; -} - -void CreateTrainDataRegionTagRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) -{ - ownerIdLoginEmail_ = ownerIdLoginEmail; - setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); -} - -std::string CreateTrainDataRegionTagRequest::getCallerType()const -{ - return callerType_; -} - -void CreateTrainDataRegionTagRequest::setCallerType(const std::string& callerType) -{ - callerType_ = callerType; - setCoreParameter("CallerType", callerType); -} - -std::string CreateTrainDataRegionTagRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void CreateTrainDataRegionTagRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setCoreParameter("AccessKeyId", accessKeyId); -} - -std::string CreateTrainDataRegionTagRequest::getSecurityToken()const -{ - return securityToken_; -} - -void CreateTrainDataRegionTagRequest::setSecurityToken(const std::string& securityToken) -{ - securityToken_ = securityToken; - setCoreParameter("SecurityToken", securityToken); -} - -std::string CreateTrainDataRegionTagRequest::getRegionId()const -{ - return regionId_; -} - -void CreateTrainDataRegionTagRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setCoreParameter("RegionId", regionId); -} - -std::string CreateTrainDataRegionTagRequest::getRequestContent()const -{ - return requestContent_; -} - -void CreateTrainDataRegionTagRequest::setRequestContent(const std::string& requestContent) -{ - requestContent_ = requestContent; - setCoreParameter("RequestContent", requestContent); -} - -std::string CreateTrainDataRegionTagRequest::getCallerBidEmail()const -{ - return callerBidEmail_; -} - -void CreateTrainDataRegionTagRequest::setCallerBidEmail(const std::string& callerBidEmail) -{ - callerBidEmail_ = callerBidEmail; - setCoreParameter("CallerBidEmail", callerBidEmail); -} - -std::string CreateTrainDataRegionTagRequest::getProjectId()const -{ - return projectId_; -} - -void CreateTrainDataRegionTagRequest::setProjectId(const std::string& projectId) -{ - projectId_ = projectId; - setCoreParameter("ProjectId", projectId); -} - -std::string CreateTrainDataRegionTagRequest::getCallerUidEmail()const -{ - return callerUidEmail_; -} - -void CreateTrainDataRegionTagRequest::setCallerUidEmail(const std::string& callerUidEmail) -{ - callerUidEmail_ = callerUidEmail; - setCoreParameter("CallerUidEmail", callerUidEmail); -} - -long CreateTrainDataRegionTagRequest::getCallerUid()const -{ - return callerUid_; -} - -void CreateTrainDataRegionTagRequest::setCallerUid(long callerUid) -{ - callerUid_ = callerUid; - setCoreParameter("CallerUid", std::to_string(callerUid)); -} - -std::string CreateTrainDataRegionTagRequest::getShowLog()const -{ - return showLog_; -} - -void CreateTrainDataRegionTagRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -std::string CreateTrainDataRegionTagRequest::getApp_ip()const -{ - return app_ip_; -} - -void CreateTrainDataRegionTagRequest::setApp_ip(const std::string& app_ip) -{ - app_ip_ = app_ip; - setCoreParameter("App_ip", app_ip); -} - -std::string CreateTrainDataRegionTagRequest::getPopProduct()const -{ - return popProduct_; -} - -void CreateTrainDataRegionTagRequest::setPopProduct(const std::string& popProduct) -{ - popProduct_ = popProduct; - setCoreParameter("PopProduct", popProduct); -} - -std::string CreateTrainDataRegionTagRequest::getTagItems()const -{ - return tagItems_; -} - -void CreateTrainDataRegionTagRequest::setTagItems(const std::string& tagItems) -{ - tagItems_ = tagItems; - setCoreParameter("TagItems", tagItems); -} - -std::string CreateTrainDataRegionTagRequest::getCallerBid()const -{ - return callerBid_; -} - -void CreateTrainDataRegionTagRequest::setCallerBid(const std::string& callerBid) -{ - callerBid_ = callerBid; - setCoreParameter("CallerBid", callerBid); -} - -long CreateTrainDataRegionTagRequest::getOwnerId()const -{ - return ownerId_; -} - -void CreateTrainDataRegionTagRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - -std::string CreateTrainDataRegionTagRequest::getVersion()const -{ - return version_; -} - -void CreateTrainDataRegionTagRequest::setVersion(const std::string& version) -{ - version_ = version; - setCoreParameter("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; - setCoreParameter("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; - setCoreParameter("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; - setCoreParameter("Security_transport", security_transport ? "true" : "false"); -} - -std::string CreateTrainDataRegionTagRequest::getDataId()const -{ - return dataId_; -} - -void CreateTrainDataRegionTagRequest::setDataId(const std::string& dataId) -{ - dataId_ = dataId; - setCoreParameter("DataId", dataId); -} - -std::string CreateTrainDataRegionTagRequest::getRequestId()const -{ - return requestId_; -} - -void CreateTrainDataRegionTagRequest::setRequestId(const std::string& requestId) -{ - requestId_ = requestId; - setCoreParameter("RequestId", requestId); -} - diff --git a/ivision/src/model/CreateTrainDataRegionTagResult.cc b/ivision/src/model/CreateTrainDataRegionTagResult.cc deleted file mode 100644 index 27c0de7fb..000000000 --- a/ivision/src/model/CreateTrainDataRegionTagResult.cc +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#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::CharReaderBuilder builder; - Json::CharReader *reader = builder.newCharReader(); - Json::Value *val; - Json::Value value; - JSONCPP_STRING *errs; - reader->parse(payload.data(), payload.data() + payload.size(), val, errs); - value = *val; - 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 deleted file mode 100644 index 9e0b7eeed..000000000 --- a/ivision/src/model/CreateTrainDataTagRequest.cc +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ivision::Model::CreateTrainDataTagRequest; - -CreateTrainDataTagRequest::CreateTrainDataTagRequest() : - RpcServiceRequest("ivision", "2019-03-08", "CreateTrainDataTag") -{} - -CreateTrainDataTagRequest::~CreateTrainDataTagRequest() -{} - -std::string CreateTrainDataTagRequest::getProjectId()const -{ - return projectId_; -} - -void CreateTrainDataTagRequest::setProjectId(const std::string& projectId) -{ - projectId_ = projectId; - setCoreParameter("ProjectId", projectId); -} - -std::string CreateTrainDataTagRequest::getShowLog()const -{ - return showLog_; -} - -void CreateTrainDataTagRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -std::string CreateTrainDataTagRequest::getTagItems()const -{ - return tagItems_; -} - -void CreateTrainDataTagRequest::setTagItems(const std::string& tagItems) -{ - tagItems_ = tagItems; - setCoreParameter("TagItems", tagItems); -} - -long CreateTrainDataTagRequest::getOwnerId()const -{ - return ownerId_; -} - -void CreateTrainDataTagRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - -std::string CreateTrainDataTagRequest::getDataId()const -{ - return dataId_; -} - -void CreateTrainDataTagRequest::setDataId(const std::string& dataId) -{ - dataId_ = dataId; - setCoreParameter("DataId", dataId); -} - diff --git a/ivision/src/model/CreateTrainDataTagResult.cc b/ivision/src/model/CreateTrainDataTagResult.cc deleted file mode 100644 index 7405a4a19..000000000 --- a/ivision/src/model/CreateTrainDataTagResult.cc +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#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 allTagItemsNode = trainDataNode["TagItems"]["TagItem"]; - for (auto trainDataNodeTagItemsTagItem : allTagItemsNode) - { - TrainData::TagItem tagItemObject; - if(!trainDataNodeTagItemsTagItem["TagId"].isNull()) - tagItemObject.tagId = trainDataNodeTagItemsTagItem["TagId"].asString(); - if(!trainDataNodeTagItemsTagItem["RegionType"].isNull()) - tagItemObject.regionType = trainDataNodeTagItemsTagItem["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 deleted file mode 100644 index cb9682161..000000000 --- a/ivision/src/model/CreateTrainDatasFromPredictionRequest.cc +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ivision::Model::CreateTrainDatasFromPredictionRequest; - -CreateTrainDatasFromPredictionRequest::CreateTrainDatasFromPredictionRequest() : - RpcServiceRequest("ivision", "2019-03-08", "CreateTrainDatasFromPrediction") -{} - -CreateTrainDatasFromPredictionRequest::~CreateTrainDatasFromPredictionRequest() -{} - -std::string CreateTrainDatasFromPredictionRequest::getDataIds()const -{ - return dataIds_; -} - -void CreateTrainDatasFromPredictionRequest::setDataIds(const std::string& dataIds) -{ - dataIds_ = dataIds; - setCoreParameter("DataIds", dataIds); -} - -std::string CreateTrainDatasFromPredictionRequest::getProjectId()const -{ - return projectId_; -} - -void CreateTrainDatasFromPredictionRequest::setProjectId(const std::string& projectId) -{ - projectId_ = projectId; - setCoreParameter("ProjectId", projectId); -} - -std::string CreateTrainDatasFromPredictionRequest::getShowLog()const -{ - return showLog_; -} - -void CreateTrainDatasFromPredictionRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -std::string CreateTrainDatasFromPredictionRequest::getTagId()const -{ - return tagId_; -} - -void CreateTrainDatasFromPredictionRequest::setTagId(const std::string& tagId) -{ - tagId_ = tagId; - setCoreParameter("TagId", tagId); -} - -long CreateTrainDatasFromPredictionRequest::getOwnerId()const -{ - return ownerId_; -} - -void CreateTrainDatasFromPredictionRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - -std::string CreateTrainDatasFromPredictionRequest::getIterationId()const -{ - return iterationId_; -} - -void CreateTrainDatasFromPredictionRequest::setIterationId(const std::string& iterationId) -{ - iterationId_ = iterationId; - setCoreParameter("IterationId", iterationId); -} - diff --git a/ivision/src/model/CreateTrainDatasFromPredictionResult.cc b/ivision/src/model/CreateTrainDatasFromPredictionResult.cc deleted file mode 100644 index 188b419d1..000000000 --- a/ivision/src/model/CreateTrainDatasFromPredictionResult.cc +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#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 allTrainDatasNode = value["TrainDatas"]["TrainData"]; - for (auto valueTrainDatasTrainData : allTrainDatasNode) - { - TrainData trainDatasObject; - if(!valueTrainDatasTrainData["ProjectId"].isNull()) - trainDatasObject.projectId = valueTrainDatasTrainData["ProjectId"].asString(); - if(!valueTrainDatasTrainData["IterationId"].isNull()) - trainDatasObject.iterationId = valueTrainDatasTrainData["IterationId"].asString(); - if(!valueTrainDatasTrainData["DataId"].isNull()) - trainDatasObject.dataId = valueTrainDatasTrainData["DataId"].asString(); - if(!valueTrainDatasTrainData["DataName"].isNull()) - trainDatasObject.dataName = valueTrainDatasTrainData["DataName"].asString(); - if(!valueTrainDatasTrainData["DataUrl"].isNull()) - trainDatasObject.dataUrl = valueTrainDatasTrainData["DataUrl"].asString(); - if(!valueTrainDatasTrainData["CreationTime"].isNull()) - trainDatasObject.creationTime = valueTrainDatasTrainData["CreationTime"].asString(); - if(!valueTrainDatasTrainData["Status"].isNull()) - trainDatasObject.status = valueTrainDatasTrainData["Status"].asString(); - if(!valueTrainDatasTrainData["TagStatus"].isNull()) - trainDatasObject.tagStatus = valueTrainDatasTrainData["TagStatus"].asString(); - auto allTagItemsNode = allTrainDatasNode["TagItems"]["TagItem"]; - for (auto allTrainDatasNodeTagItemsTagItem : allTagItemsNode) - { - TrainData::TagItem tagItemsObject; - if(!allTrainDatasNodeTagItemsTagItem["TagId"].isNull()) - tagItemsObject.tagId = allTrainDatasNodeTagItemsTagItem["TagId"].asString(); - if(!allTrainDatasNodeTagItemsTagItem["RegionType"].isNull()) - tagItemsObject.regionType = allTrainDatasNodeTagItemsTagItem["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 deleted file mode 100644 index fbd2c2133..000000000 --- a/ivision/src/model/CreateTrainDatasFromUrlsRequest.cc +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ivision::Model::CreateTrainDatasFromUrlsRequest; - -CreateTrainDatasFromUrlsRequest::CreateTrainDatasFromUrlsRequest() : - RpcServiceRequest("ivision", "2019-03-08", "CreateTrainDatasFromUrls") -{} - -CreateTrainDatasFromUrlsRequest::~CreateTrainDatasFromUrlsRequest() -{} - -std::string CreateTrainDatasFromUrlsRequest::getUrls()const -{ - return urls_; -} - -void CreateTrainDatasFromUrlsRequest::setUrls(const std::string& urls) -{ - urls_ = urls; - setCoreParameter("Urls", urls); -} - -std::string CreateTrainDatasFromUrlsRequest::getProjectId()const -{ - return projectId_; -} - -void CreateTrainDatasFromUrlsRequest::setProjectId(const std::string& projectId) -{ - projectId_ = projectId; - setCoreParameter("ProjectId", projectId); -} - -std::string CreateTrainDatasFromUrlsRequest::getShowLog()const -{ - return showLog_; -} - -void CreateTrainDatasFromUrlsRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -std::string CreateTrainDatasFromUrlsRequest::getTagId()const -{ - return tagId_; -} - -void CreateTrainDatasFromUrlsRequest::setTagId(const std::string& tagId) -{ - tagId_ = tagId; - setCoreParameter("TagId", tagId); -} - -long CreateTrainDatasFromUrlsRequest::getOwnerId()const -{ - return ownerId_; -} - -void CreateTrainDatasFromUrlsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - diff --git a/ivision/src/model/CreateTrainDatasFromUrlsResult.cc b/ivision/src/model/CreateTrainDatasFromUrlsResult.cc deleted file mode 100644 index 352af2112..000000000 --- a/ivision/src/model/CreateTrainDatasFromUrlsResult.cc +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#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 allTrainDatasNode = value["TrainDatas"]["TrainData"]; - for (auto valueTrainDatasTrainData : allTrainDatasNode) - { - TrainData trainDatasObject; - if(!valueTrainDatasTrainData["ProjectId"].isNull()) - trainDatasObject.projectId = valueTrainDatasTrainData["ProjectId"].asString(); - if(!valueTrainDatasTrainData["IterationId"].isNull()) - trainDatasObject.iterationId = valueTrainDatasTrainData["IterationId"].asString(); - if(!valueTrainDatasTrainData["DataId"].isNull()) - trainDatasObject.dataId = valueTrainDatasTrainData["DataId"].asString(); - if(!valueTrainDatasTrainData["DataName"].isNull()) - trainDatasObject.dataName = valueTrainDatasTrainData["DataName"].asString(); - if(!valueTrainDatasTrainData["DataUrl"].isNull()) - trainDatasObject.dataUrl = valueTrainDatasTrainData["DataUrl"].asString(); - if(!valueTrainDatasTrainData["CreationTime"].isNull()) - trainDatasObject.creationTime = valueTrainDatasTrainData["CreationTime"].asString(); - if(!valueTrainDatasTrainData["Status"].isNull()) - trainDatasObject.status = valueTrainDatasTrainData["Status"].asString(); - if(!valueTrainDatasTrainData["TagStatus"].isNull()) - trainDatasObject.tagStatus = valueTrainDatasTrainData["TagStatus"].asString(); - auto allTagItemsNode = allTrainDatasNode["TagItems"]["TagItem"]; - for (auto allTrainDatasNodeTagItemsTagItem : allTagItemsNode) - { - TrainData::TagItem tagItemsObject; - if(!allTrainDatasNodeTagItemsTagItem["TagId"].isNull()) - tagItemsObject.tagId = allTrainDatasNodeTagItemsTagItem["TagId"].asString(); - if(!allTrainDatasNodeTagItemsTagItem["RegionType"].isNull()) - tagItemsObject.regionType = allTrainDatasNodeTagItemsTagItem["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 deleted file mode 100644 index dc783cd72..000000000 --- a/ivision/src/model/CreateTrainDatasTagRequest.cc +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ivision::Model::CreateTrainDatasTagRequest; - -CreateTrainDatasTagRequest::CreateTrainDatasTagRequest() : - RpcServiceRequest("ivision", "2019-03-08", "CreateTrainDatasTag") -{} - -CreateTrainDatasTagRequest::~CreateTrainDatasTagRequest() -{} - -std::string CreateTrainDatasTagRequest::getDataIds()const -{ - return dataIds_; -} - -void CreateTrainDatasTagRequest::setDataIds(const std::string& dataIds) -{ - dataIds_ = dataIds; - setCoreParameter("DataIds", dataIds); -} - -std::string CreateTrainDatasTagRequest::getProjectId()const -{ - return projectId_; -} - -void CreateTrainDatasTagRequest::setProjectId(const std::string& projectId) -{ - projectId_ = projectId; - setCoreParameter("ProjectId", projectId); -} - -std::string CreateTrainDatasTagRequest::getShowLog()const -{ - return showLog_; -} - -void CreateTrainDatasTagRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -std::string CreateTrainDatasTagRequest::getTagId()const -{ - return tagId_; -} - -void CreateTrainDatasTagRequest::setTagId(const std::string& tagId) -{ - tagId_ = tagId; - setCoreParameter("TagId", tagId); -} - -long CreateTrainDatasTagRequest::getOwnerId()const -{ - return ownerId_; -} - -void CreateTrainDatasTagRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - diff --git a/ivision/src/model/CreateTrainDatasTagResult.cc b/ivision/src/model/CreateTrainDatasTagResult.cc deleted file mode 100644 index b47d29019..000000000 --- a/ivision/src/model/CreateTrainDatasTagResult.cc +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#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 allTagItemsNode = trainDataNode["TagItems"]["TagItem"]; - for (auto trainDataNodeTagItemsTagItem : allTagItemsNode) - { - TrainData::TagItem tagItemObject; - if(!trainDataNodeTagItemsTagItem["TagId"].isNull()) - tagItemObject.tagId = trainDataNodeTagItemsTagItem["TagId"].asString(); - if(!trainDataNodeTagItemsTagItem["RegionType"].isNull()) - tagItemObject.regionType = trainDataNodeTagItemsTagItem["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 deleted file mode 100644 index 43373a032..000000000 --- a/ivision/src/model/CreateUploadTokenRequest.cc +++ /dev/null @@ -1,302 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -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; - setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -long CreateUploadTokenRequest::getCallerParentId()const -{ - return callerParentId_; -} - -void CreateUploadTokenRequest::setCallerParentId(long callerParentId) -{ - callerParentId_ = callerParentId; - setCoreParameter("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; - setCoreParameter("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; - setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); -} - -std::string CreateUploadTokenRequest::getOwnerIdLoginEmail()const -{ - return ownerIdLoginEmail_; -} - -void CreateUploadTokenRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) -{ - ownerIdLoginEmail_ = ownerIdLoginEmail; - setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); -} - -std::string CreateUploadTokenRequest::getCallerType()const -{ - return callerType_; -} - -void CreateUploadTokenRequest::setCallerType(const std::string& callerType) -{ - callerType_ = callerType; - setCoreParameter("CallerType", callerType); -} - -std::string CreateUploadTokenRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void CreateUploadTokenRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setCoreParameter("AccessKeyId", accessKeyId); -} - -std::string CreateUploadTokenRequest::getSecurityToken()const -{ - return securityToken_; -} - -void CreateUploadTokenRequest::setSecurityToken(const std::string& securityToken) -{ - securityToken_ = securityToken; - setCoreParameter("SecurityToken", securityToken); -} - -std::string CreateUploadTokenRequest::getRegionId()const -{ - return regionId_; -} - -void CreateUploadTokenRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setCoreParameter("RegionId", regionId); -} - -std::string CreateUploadTokenRequest::getRequestContent()const -{ - return requestContent_; -} - -void CreateUploadTokenRequest::setRequestContent(const std::string& requestContent) -{ - requestContent_ = requestContent; - setCoreParameter("RequestContent", requestContent); -} - -std::string CreateUploadTokenRequest::getCallerBidEmail()const -{ - return callerBidEmail_; -} - -void CreateUploadTokenRequest::setCallerBidEmail(const std::string& callerBidEmail) -{ - callerBidEmail_ = callerBidEmail; - setCoreParameter("CallerBidEmail", callerBidEmail); -} - -std::string CreateUploadTokenRequest::getProjectId()const -{ - return projectId_; -} - -void CreateUploadTokenRequest::setProjectId(const std::string& projectId) -{ - projectId_ = projectId; - setCoreParameter("ProjectId", projectId); -} - -std::string CreateUploadTokenRequest::getCallerUidEmail()const -{ - return callerUidEmail_; -} - -void CreateUploadTokenRequest::setCallerUidEmail(const std::string& callerUidEmail) -{ - callerUidEmail_ = callerUidEmail; - setCoreParameter("CallerUidEmail", callerUidEmail); -} - -long CreateUploadTokenRequest::getCallerUid()const -{ - return callerUid_; -} - -void CreateUploadTokenRequest::setCallerUid(long callerUid) -{ - callerUid_ = callerUid; - setCoreParameter("CallerUid", std::to_string(callerUid)); -} - -std::string CreateUploadTokenRequest::getShowLog()const -{ - return showLog_; -} - -void CreateUploadTokenRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -std::string CreateUploadTokenRequest::getApp_ip()const -{ - return app_ip_; -} - -void CreateUploadTokenRequest::setApp_ip(const std::string& app_ip) -{ - app_ip_ = app_ip; - setCoreParameter("App_ip", app_ip); -} - -std::string CreateUploadTokenRequest::getPopProduct()const -{ - return popProduct_; -} - -void CreateUploadTokenRequest::setPopProduct(const std::string& popProduct) -{ - popProduct_ = popProduct; - setCoreParameter("PopProduct", popProduct); -} - -std::string CreateUploadTokenRequest::getCallerBid()const -{ - return callerBid_; -} - -void CreateUploadTokenRequest::setCallerBid(const std::string& callerBid) -{ - callerBid_ = callerBid; - setCoreParameter("CallerBid", callerBid); -} - -long CreateUploadTokenRequest::getOwnerId()const -{ - return ownerId_; -} - -void CreateUploadTokenRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - -std::string CreateUploadTokenRequest::getVersion()const -{ - return version_; -} - -void CreateUploadTokenRequest::setVersion(const std::string& version) -{ - version_ = version; - setCoreParameter("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; - setCoreParameter("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; - setCoreParameter("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; - setCoreParameter("Security_transport", security_transport ? "true" : "false"); -} - -std::string CreateUploadTokenRequest::getFileName()const -{ - return fileName_; -} - -void CreateUploadTokenRequest::setFileName(const std::string& fileName) -{ - fileName_ = fileName; - setCoreParameter("FileName", fileName); -} - -std::string CreateUploadTokenRequest::getRequestId()const -{ - return requestId_; -} - -void CreateUploadTokenRequest::setRequestId(const std::string& requestId) -{ - requestId_ = requestId; - setCoreParameter("RequestId", requestId); -} - diff --git a/ivision/src/model/CreateUploadTokenResult.cc b/ivision/src/model/CreateUploadTokenResult.cc deleted file mode 100644 index 3b4f44151..000000000 --- a/ivision/src/model/CreateUploadTokenResult.cc +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#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::CharReaderBuilder builder; - Json::CharReader *reader = builder.newCharReader(); - Json::Value *val; - Json::Value value; - JSONCPP_STRING *errs; - reader->parse(payload.data(), payload.data() + payload.size(), val, errs); - value = *val; - 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/DeleteFaceGroupRequest.cc b/ivision/src/model/DeleteFaceGroupRequest.cc index bc9d609bb..6bdc7cb19 100644 --- a/ivision/src/model/DeleteFaceGroupRequest.cc +++ b/ivision/src/model/DeleteFaceGroupRequest.cc @@ -20,154 +20,13 @@ using AlibabaCloud::Ivision::Model::DeleteFaceGroupRequest; DeleteFaceGroupRequest::DeleteFaceGroupRequest() : RpcServiceRequest("ivision", "2019-03-08", "DeleteFaceGroup") -{} +{ + setMethod(HttpRequest::Method::Get); +} DeleteFaceGroupRequest::~DeleteFaceGroupRequest() {} -long DeleteFaceGroupRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void DeleteFaceGroupRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -long DeleteFaceGroupRequest::getCallerParentId()const -{ - return callerParentId_; -} - -void DeleteFaceGroupRequest::setCallerParentId(long callerParentId) -{ - callerParentId_ = callerParentId; - setCoreParameter("CallerParentId", std::to_string(callerParentId)); -} - -bool DeleteFaceGroupRequest::getProxy_original_security_transport()const -{ - return proxy_original_security_transport_; -} - -void DeleteFaceGroupRequest::setProxy_original_security_transport(bool proxy_original_security_transport) -{ - proxy_original_security_transport_ = proxy_original_security_transport; - setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); -} - -std::string DeleteFaceGroupRequest::getProxy_original_source_ip()const -{ - return proxy_original_source_ip_; -} - -void DeleteFaceGroupRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) -{ - proxy_original_source_ip_ = proxy_original_source_ip; - setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); -} - -std::string DeleteFaceGroupRequest::getOwnerIdLoginEmail()const -{ - return ownerIdLoginEmail_; -} - -void DeleteFaceGroupRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) -{ - ownerIdLoginEmail_ = ownerIdLoginEmail; - setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); -} - -std::string DeleteFaceGroupRequest::getCallerType()const -{ - return callerType_; -} - -void DeleteFaceGroupRequest::setCallerType(const std::string& callerType) -{ - callerType_ = callerType; - setCoreParameter("CallerType", callerType); -} - -std::string DeleteFaceGroupRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DeleteFaceGroupRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setCoreParameter("AccessKeyId", accessKeyId); -} - -std::string DeleteFaceGroupRequest::getSecurityToken()const -{ - return securityToken_; -} - -void DeleteFaceGroupRequest::setSecurityToken(const std::string& securityToken) -{ - securityToken_ = securityToken; - setCoreParameter("SecurityToken", securityToken); -} - -std::string DeleteFaceGroupRequest::getRegionId()const -{ - return regionId_; -} - -void DeleteFaceGroupRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setCoreParameter("RegionId", regionId); -} - -std::string DeleteFaceGroupRequest::getRequestContent()const -{ - return requestContent_; -} - -void DeleteFaceGroupRequest::setRequestContent(const std::string& requestContent) -{ - requestContent_ = requestContent; - setCoreParameter("RequestContent", requestContent); -} - -std::string DeleteFaceGroupRequest::getCallerBidEmail()const -{ - return callerBidEmail_; -} - -void DeleteFaceGroupRequest::setCallerBidEmail(const std::string& callerBidEmail) -{ - callerBidEmail_ = callerBidEmail; - setCoreParameter("CallerBidEmail", callerBidEmail); -} - -std::string DeleteFaceGroupRequest::getCallerUidEmail()const -{ - return callerUidEmail_; -} - -void DeleteFaceGroupRequest::setCallerUidEmail(const std::string& callerUidEmail) -{ - callerUidEmail_ = callerUidEmail; - setCoreParameter("CallerUidEmail", callerUidEmail); -} - -long DeleteFaceGroupRequest::getCallerUid()const -{ - return callerUid_; -} - -void DeleteFaceGroupRequest::setCallerUid(long callerUid) -{ - callerUid_ = callerUid; - setCoreParameter("CallerUid", std::to_string(callerUid)); -} - std::string DeleteFaceGroupRequest::getShowLog()const { return showLog_; @@ -179,28 +38,6 @@ void DeleteFaceGroupRequest::setShowLog(const std::string& showLog) setCoreParameter("ShowLog", showLog); } -std::string DeleteFaceGroupRequest::getApp_ip()const -{ - return app_ip_; -} - -void DeleteFaceGroupRequest::setApp_ip(const std::string& app_ip) -{ - app_ip_ = app_ip; - setCoreParameter("App_ip", app_ip); -} - -std::string DeleteFaceGroupRequest::getPopProduct()const -{ - return popProduct_; -} - -void DeleteFaceGroupRequest::setPopProduct(const std::string& popProduct) -{ - popProduct_ = popProduct; - setCoreParameter("PopProduct", popProduct); -} - std::string DeleteFaceGroupRequest::getGroupId()const { return groupId_; @@ -212,17 +49,6 @@ void DeleteFaceGroupRequest::setGroupId(const std::string& groupId) setCoreParameter("GroupId", groupId); } -std::string DeleteFaceGroupRequest::getCallerBid()const -{ - return callerBid_; -} - -void DeleteFaceGroupRequest::setCallerBid(const std::string& callerBid) -{ - callerBid_ = callerBid; - setCoreParameter("CallerBid", callerBid); -} - long DeleteFaceGroupRequest::getOwnerId()const { return ownerId_; @@ -234,69 +60,3 @@ void DeleteFaceGroupRequest::setOwnerId(long ownerId) setCoreParameter("OwnerId", std::to_string(ownerId)); } -std::string DeleteFaceGroupRequest::getVersion()const -{ - return version_; -} - -void DeleteFaceGroupRequest::setVersion(const std::string& version) -{ - version_ = version; - setCoreParameter("Version", version); -} - -bool DeleteFaceGroupRequest::getProxy_trust_transport_info()const -{ - return proxy_trust_transport_info_; -} - -void DeleteFaceGroupRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) -{ - proxy_trust_transport_info_ = proxy_trust_transport_info; - setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); -} - -bool DeleteFaceGroupRequest::getAk_mfa_present()const -{ - return ak_mfa_present_; -} - -void DeleteFaceGroupRequest::setAk_mfa_present(bool ak_mfa_present) -{ - ak_mfa_present_ = ak_mfa_present; - setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); -} - -bool DeleteFaceGroupRequest::getSecurity_transport()const -{ - return security_transport_; -} - -void DeleteFaceGroupRequest::setSecurity_transport(bool security_transport) -{ - security_transport_ = security_transport; - setCoreParameter("Security_transport", security_transport ? "true" : "false"); -} - -std::string DeleteFaceGroupRequest::getServiceCode()const -{ - return serviceCode_; -} - -void DeleteFaceGroupRequest::setServiceCode(const std::string& serviceCode) -{ - serviceCode_ = serviceCode; - setCoreParameter("ServiceCode", serviceCode); -} - -std::string DeleteFaceGroupRequest::getRequestId()const -{ - return requestId_; -} - -void DeleteFaceGroupRequest::setRequestId(const std::string& requestId) -{ - requestId_ = requestId; - setCoreParameter("RequestId", requestId); -} - diff --git a/ivision/src/model/DeleteFaceGroupResult.cc b/ivision/src/model/DeleteFaceGroupResult.cc index 5e5423b5f..bda0f6ca3 100644 --- a/ivision/src/model/DeleteFaceGroupResult.cc +++ b/ivision/src/model/DeleteFaceGroupResult.cc @@ -35,13 +35,9 @@ DeleteFaceGroupResult::~DeleteFaceGroupResult() void DeleteFaceGroupResult::parse(const std::string &payload) { - Json::CharReaderBuilder builder; - Json::CharReader *reader = builder.newCharReader(); - Json::Value *val; + Json::Reader reader; Json::Value value; - JSONCPP_STRING *errs; - reader->parse(payload.data(), payload.data() + payload.size(), val, errs); - value = *val; + reader.parse(payload, value); setRequestId(value["RequestId"].asString()); if(!value["GroupId"].isNull()) groupId_ = value["GroupId"].asString(); diff --git a/ivision/src/model/DeleteIterationRequest.cc b/ivision/src/model/DeleteIterationRequest.cc deleted file mode 100644 index e3d5ebe80..000000000 --- a/ivision/src/model/DeleteIterationRequest.cc +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ivision::Model::DeleteIterationRequest; - -DeleteIterationRequest::DeleteIterationRequest() : - RpcServiceRequest("ivision", "2019-03-08", "DeleteIteration") -{} - -DeleteIterationRequest::~DeleteIterationRequest() -{} - -std::string DeleteIterationRequest::getProjectId()const -{ - return projectId_; -} - -void DeleteIterationRequest::setProjectId(const std::string& projectId) -{ - projectId_ = projectId; - setCoreParameter("ProjectId", projectId); -} - -std::string DeleteIterationRequest::getShowLog()const -{ - return showLog_; -} - -void DeleteIterationRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -long DeleteIterationRequest::getOwnerId()const -{ - return ownerId_; -} - -void DeleteIterationRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DeleteIterationRequest::getIterationId()const -{ - return iterationId_; -} - -void DeleteIterationRequest::setIterationId(const std::string& iterationId) -{ - iterationId_ = iterationId; - setCoreParameter("IterationId", iterationId); -} - diff --git a/ivision/src/model/DeleteIterationResult.cc b/ivision/src/model/DeleteIterationResult.cc deleted file mode 100644 index e804eb554..000000000 --- a/ivision/src/model/DeleteIterationResult.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#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 deleted file mode 100644 index 9fd793022..000000000 --- a/ivision/src/model/DeletePredictDatasRequest.cc +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ivision::Model::DeletePredictDatasRequest; - -DeletePredictDatasRequest::DeletePredictDatasRequest() : - RpcServiceRequest("ivision", "2019-03-08", "DeletePredictDatas") -{} - -DeletePredictDatasRequest::~DeletePredictDatasRequest() -{} - -std::string DeletePredictDatasRequest::getDataIds()const -{ - return dataIds_; -} - -void DeletePredictDatasRequest::setDataIds(const std::string& dataIds) -{ - dataIds_ = dataIds; - setCoreParameter("DataIds", dataIds); -} - -std::string DeletePredictDatasRequest::getProjectId()const -{ - return projectId_; -} - -void DeletePredictDatasRequest::setProjectId(const std::string& projectId) -{ - projectId_ = projectId; - setCoreParameter("ProjectId", projectId); -} - -std::string DeletePredictDatasRequest::getShowLog()const -{ - return showLog_; -} - -void DeletePredictDatasRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -std::string DeletePredictDatasRequest::getModelId()const -{ - return modelId_; -} - -void DeletePredictDatasRequest::setModelId(const std::string& modelId) -{ - modelId_ = modelId; - setCoreParameter("ModelId", modelId); -} - -long DeletePredictDatasRequest::getOwnerId()const -{ - return ownerId_; -} - -void DeletePredictDatasRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DeletePredictDatasRequest::getIterationId()const -{ - return iterationId_; -} - -void DeletePredictDatasRequest::setIterationId(const std::string& iterationId) -{ - iterationId_ = iterationId; - setCoreParameter("IterationId", iterationId); -} - diff --git a/ivision/src/model/DeletePredictDatasResult.cc b/ivision/src/model/DeletePredictDatasResult.cc deleted file mode 100644 index 93435e8af..000000000 --- a/ivision/src/model/DeletePredictDatasResult.cc +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#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/DeletePredictModelRequest.cc b/ivision/src/model/DeletePredictModelRequest.cc deleted file mode 100644 index b6d7f294f..000000000 --- a/ivision/src/model/DeletePredictModelRequest.cc +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ivision::Model::DeletePredictModelRequest; - -DeletePredictModelRequest::DeletePredictModelRequest() : - RpcServiceRequest("ivision", "2019-03-08", "DeletePredictModel") -{} - -DeletePredictModelRequest::~DeletePredictModelRequest() -{} - -std::string DeletePredictModelRequest::getShowLog()const -{ - return showLog_; -} - -void DeletePredictModelRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -std::string DeletePredictModelRequest::getModelId()const -{ - return modelId_; -} - -void DeletePredictModelRequest::setModelId(const std::string& modelId) -{ - modelId_ = modelId; - setCoreParameter("ModelId", modelId); -} - -long DeletePredictModelRequest::getOwnerId()const -{ - return ownerId_; -} - -void DeletePredictModelRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - diff --git a/ivision/src/model/DeletePredictModelResult.cc b/ivision/src/model/DeletePredictModelResult.cc deleted file mode 100644 index 52898403f..000000000 --- a/ivision/src/model/DeletePredictModelResult.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ivision; -using namespace AlibabaCloud::Ivision::Model; - -DeletePredictModelResult::DeletePredictModelResult() : - ServiceResult() -{} - -DeletePredictModelResult::DeletePredictModelResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeletePredictModelResult::~DeletePredictModelResult() -{} - -void DeletePredictModelResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["ModelId"].isNull()) - modelId_ = value["ModelId"].asString(); - -} - -std::string DeletePredictModelResult::getModelId()const -{ - return modelId_; -} - diff --git a/ivision/src/model/DeletePredictTemplateRequest.cc b/ivision/src/model/DeletePredictTemplateRequest.cc deleted file mode 100644 index 3ab37ec79..000000000 --- a/ivision/src/model/DeletePredictTemplateRequest.cc +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ivision::Model::DeletePredictTemplateRequest; - -DeletePredictTemplateRequest::DeletePredictTemplateRequest() : - RpcServiceRequest("ivision", "2019-03-08", "DeletePredictTemplate") -{} - -DeletePredictTemplateRequest::~DeletePredictTemplateRequest() -{} - -std::string DeletePredictTemplateRequest::getShowLog()const -{ - return showLog_; -} - -void DeletePredictTemplateRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -long DeletePredictTemplateRequest::getOwnerId()const -{ - return ownerId_; -} - -void DeletePredictTemplateRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DeletePredictTemplateRequest::getTemplateId()const -{ - return templateId_; -} - -void DeletePredictTemplateRequest::setTemplateId(const std::string& templateId) -{ - templateId_ = templateId; - setCoreParameter("TemplateId", templateId); -} - diff --git a/ivision/src/model/DeletePredictTemplateResult.cc b/ivision/src/model/DeletePredictTemplateResult.cc deleted file mode 100644 index 5594e2e6d..000000000 --- a/ivision/src/model/DeletePredictTemplateResult.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ivision; -using namespace AlibabaCloud::Ivision::Model; - -DeletePredictTemplateResult::DeletePredictTemplateResult() : - ServiceResult() -{} - -DeletePredictTemplateResult::DeletePredictTemplateResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeletePredictTemplateResult::~DeletePredictTemplateResult() -{} - -void DeletePredictTemplateResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["TemplateId"].isNull()) - templateId_ = value["TemplateId"].asString(); - -} - -std::string DeletePredictTemplateResult::getTemplateId()const -{ - return templateId_; -} - diff --git a/ivision/src/model/DeleteProjectRequest.cc b/ivision/src/model/DeleteProjectRequest.cc deleted file mode 100644 index 69120d817..000000000 --- a/ivision/src/model/DeleteProjectRequest.cc +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ivision::Model::DeleteProjectRequest; - -DeleteProjectRequest::DeleteProjectRequest() : - RpcServiceRequest("ivision", "2019-03-08", "DeleteProject") -{} - -DeleteProjectRequest::~DeleteProjectRequest() -{} - -std::string DeleteProjectRequest::getProjectId()const -{ - return projectId_; -} - -void DeleteProjectRequest::setProjectId(const std::string& projectId) -{ - projectId_ = projectId; - setCoreParameter("ProjectId", projectId); -} - -std::string DeleteProjectRequest::getShowLog()const -{ - return showLog_; -} - -void DeleteProjectRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -long DeleteProjectRequest::getOwnerId()const -{ - return ownerId_; -} - -void DeleteProjectRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - diff --git a/ivision/src/model/DeleteProjectResult.cc b/ivision/src/model/DeleteProjectResult.cc deleted file mode 100644 index 4932fbd2a..000000000 --- a/ivision/src/model/DeleteProjectResult.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#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 index e913e272d..bdbe2a2e2 100644 --- a/ivision/src/model/DeleteStreamPredictRequest.cc +++ b/ivision/src/model/DeleteStreamPredictRequest.cc @@ -20,41 +20,43 @@ using AlibabaCloud::Ivision::Model::DeleteStreamPredictRequest; DeleteStreamPredictRequest::DeleteStreamPredictRequest() : RpcServiceRequest("ivision", "2019-03-08", "DeleteStreamPredict") -{} +{ + setMethod(HttpRequest::Method::Post); +} DeleteStreamPredictRequest::~DeleteStreamPredictRequest() {} -std::string DeleteStreamPredictRequest::getPredictId()const -{ - return predictId_; -} - -void DeleteStreamPredictRequest::setPredictId(const std::string& predictId) -{ - predictId_ = predictId; - setCoreParameter("PredictId", predictId); -} - -std::string DeleteStreamPredictRequest::getShowLog()const -{ - return showLog_; -} - -void DeleteStreamPredictRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -long DeleteStreamPredictRequest::getOwnerId()const -{ - return ownerId_; -} - -void DeleteStreamPredictRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - +std::string DeleteStreamPredictRequest::getPredictId()const +{ + return predictId_; +} + +void DeleteStreamPredictRequest::setPredictId(const std::string& predictId) +{ + predictId_ = predictId; + setCoreParameter("PredictId", predictId); +} + +std::string DeleteStreamPredictRequest::getShowLog()const +{ + return showLog_; +} + +void DeleteStreamPredictRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setCoreParameter("ShowLog", showLog); +} + +long DeleteStreamPredictRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteStreamPredictRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ivision/src/model/DeleteTagRequest.cc b/ivision/src/model/DeleteTagRequest.cc deleted file mode 100644 index 6b626a3ab..000000000 --- a/ivision/src/model/DeleteTagRequest.cc +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ivision::Model::DeleteTagRequest; - -DeleteTagRequest::DeleteTagRequest() : - RpcServiceRequest("ivision", "2019-03-08", "DeleteTag") -{} - -DeleteTagRequest::~DeleteTagRequest() -{} - -std::string DeleteTagRequest::getProjectId()const -{ - return projectId_; -} - -void DeleteTagRequest::setProjectId(const std::string& projectId) -{ - projectId_ = projectId; - setCoreParameter("ProjectId", projectId); -} - -std::string DeleteTagRequest::getShowLog()const -{ - return showLog_; -} - -void DeleteTagRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -std::string DeleteTagRequest::getTagId()const -{ - return tagId_; -} - -void DeleteTagRequest::setTagId(const std::string& tagId) -{ - tagId_ = tagId; - setCoreParameter("TagId", tagId); -} - -long DeleteTagRequest::getOwnerId()const -{ - return ownerId_; -} - -void DeleteTagRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - diff --git a/ivision/src/model/DeleteTagResult.cc b/ivision/src/model/DeleteTagResult.cc deleted file mode 100644 index cbb9515a2..000000000 --- a/ivision/src/model/DeleteTagResult.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#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 deleted file mode 100644 index b9b2c2dd0..000000000 --- a/ivision/src/model/DeleteTrainDatasRequest.cc +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ivision::Model::DeleteTrainDatasRequest; - -DeleteTrainDatasRequest::DeleteTrainDatasRequest() : - RpcServiceRequest("ivision", "2019-03-08", "DeleteTrainDatas") -{} - -DeleteTrainDatasRequest::~DeleteTrainDatasRequest() -{} - -std::string DeleteTrainDatasRequest::getDataIds()const -{ - return dataIds_; -} - -void DeleteTrainDatasRequest::setDataIds(const std::string& dataIds) -{ - dataIds_ = dataIds; - setCoreParameter("DataIds", dataIds); -} - -std::string DeleteTrainDatasRequest::getProjectId()const -{ - return projectId_; -} - -void DeleteTrainDatasRequest::setProjectId(const std::string& projectId) -{ - projectId_ = projectId; - setCoreParameter("ProjectId", projectId); -} - -std::string DeleteTrainDatasRequest::getShowLog()const -{ - return showLog_; -} - -void DeleteTrainDatasRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -long DeleteTrainDatasRequest::getOwnerId()const -{ - return ownerId_; -} - -void DeleteTrainDatasRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - diff --git a/ivision/src/model/DeleteTrainDatasResult.cc b/ivision/src/model/DeleteTrainDatasResult.cc deleted file mode 100644 index d1d8145ef..000000000 --- a/ivision/src/model/DeleteTrainDatasResult.cc +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#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 deleted file mode 100644 index cf262f11b..000000000 --- a/ivision/src/model/DeleteTrainDatasTagRequest.cc +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ivision::Model::DeleteTrainDatasTagRequest; - -DeleteTrainDatasTagRequest::DeleteTrainDatasTagRequest() : - RpcServiceRequest("ivision", "2019-03-08", "DeleteTrainDatasTag") -{} - -DeleteTrainDatasTagRequest::~DeleteTrainDatasTagRequest() -{} - -std::string DeleteTrainDatasTagRequest::getDataIds()const -{ - return dataIds_; -} - -void DeleteTrainDatasTagRequest::setDataIds(const std::string& dataIds) -{ - dataIds_ = dataIds; - setCoreParameter("DataIds", dataIds); -} - -std::string DeleteTrainDatasTagRequest::getProjectId()const -{ - return projectId_; -} - -void DeleteTrainDatasTagRequest::setProjectId(const std::string& projectId) -{ - projectId_ = projectId; - setCoreParameter("ProjectId", projectId); -} - -std::string DeleteTrainDatasTagRequest::getShowLog()const -{ - return showLog_; -} - -void DeleteTrainDatasTagRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -std::string DeleteTrainDatasTagRequest::getTagId()const -{ - return tagId_; -} - -void DeleteTrainDatasTagRequest::setTagId(const std::string& tagId) -{ - tagId_ = tagId; - setCoreParameter("TagId", tagId); -} - -long DeleteTrainDatasTagRequest::getOwnerId()const -{ - return ownerId_; -} - -void DeleteTrainDatasTagRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - diff --git a/ivision/src/model/DeleteTrainDatasTagResult.cc b/ivision/src/model/DeleteTrainDatasTagResult.cc deleted file mode 100644 index 0e97f20df..000000000 --- a/ivision/src/model/DeleteTrainDatasTagResult.cc +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#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/DescribeFaceGroupsRequest.cc b/ivision/src/model/DescribeFaceGroupsRequest.cc index bbb566f7f..dc8f9c9e4 100644 --- a/ivision/src/model/DescribeFaceGroupsRequest.cc +++ b/ivision/src/model/DescribeFaceGroupsRequest.cc @@ -20,22 +20,13 @@ using AlibabaCloud::Ivision::Model::DescribeFaceGroupsRequest; DescribeFaceGroupsRequest::DescribeFaceGroupsRequest() : RpcServiceRequest("ivision", "2019-03-08", "DescribeFaceGroups") -{} +{ + setMethod(HttpRequest::Method::Get); +} DescribeFaceGroupsRequest::~DescribeFaceGroupsRequest() {} -long DescribeFaceGroupsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void DescribeFaceGroupsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - std::string DescribeFaceGroupsRequest::getNextPageToken()const { return nextPageToken_; @@ -47,105 +38,6 @@ void DescribeFaceGroupsRequest::setNextPageToken(const std::string& nextPageToke setCoreParameter("NextPageToken", nextPageToken); } -long DescribeFaceGroupsRequest::getCallerParentId()const -{ - return callerParentId_; -} - -void DescribeFaceGroupsRequest::setCallerParentId(long callerParentId) -{ - callerParentId_ = callerParentId; - setCoreParameter("CallerParentId", std::to_string(callerParentId)); -} - -bool DescribeFaceGroupsRequest::getProxy_original_security_transport()const -{ - return proxy_original_security_transport_; -} - -void DescribeFaceGroupsRequest::setProxy_original_security_transport(bool proxy_original_security_transport) -{ - proxy_original_security_transport_ = proxy_original_security_transport; - setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); -} - -std::string DescribeFaceGroupsRequest::getProxy_original_source_ip()const -{ - return proxy_original_source_ip_; -} - -void DescribeFaceGroupsRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) -{ - proxy_original_source_ip_ = proxy_original_source_ip; - setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); -} - -std::string DescribeFaceGroupsRequest::getOwnerIdLoginEmail()const -{ - return ownerIdLoginEmail_; -} - -void DescribeFaceGroupsRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) -{ - ownerIdLoginEmail_ = ownerIdLoginEmail; - setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); -} - -std::string DescribeFaceGroupsRequest::getCallerType()const -{ - return callerType_; -} - -void DescribeFaceGroupsRequest::setCallerType(const std::string& callerType) -{ - callerType_ = callerType; - setCoreParameter("CallerType", callerType); -} - -std::string DescribeFaceGroupsRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DescribeFaceGroupsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setCoreParameter("AccessKeyId", accessKeyId); -} - -std::string DescribeFaceGroupsRequest::getSecurityToken()const -{ - return securityToken_; -} - -void DescribeFaceGroupsRequest::setSecurityToken(const std::string& securityToken) -{ - securityToken_ = securityToken; - setCoreParameter("SecurityToken", securityToken); -} - -std::string DescribeFaceGroupsRequest::getRegionId()const -{ - return regionId_; -} - -void DescribeFaceGroupsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setCoreParameter("RegionId", regionId); -} - -std::string DescribeFaceGroupsRequest::getRequestContent()const -{ - return requestContent_; -} - -void DescribeFaceGroupsRequest::setRequestContent(const std::string& requestContent) -{ - requestContent_ = requestContent; - setCoreParameter("RequestContent", requestContent); -} - long DescribeFaceGroupsRequest::getPageSize()const { return pageSize_; @@ -157,39 +49,6 @@ void DescribeFaceGroupsRequest::setPageSize(long pageSize) setCoreParameter("PageSize", std::to_string(pageSize)); } -std::string DescribeFaceGroupsRequest::getCallerBidEmail()const -{ - return callerBidEmail_; -} - -void DescribeFaceGroupsRequest::setCallerBidEmail(const std::string& callerBidEmail) -{ - callerBidEmail_ = callerBidEmail; - setCoreParameter("CallerBidEmail", callerBidEmail); -} - -std::string DescribeFaceGroupsRequest::getCallerUidEmail()const -{ - return callerUidEmail_; -} - -void DescribeFaceGroupsRequest::setCallerUidEmail(const std::string& callerUidEmail) -{ - callerUidEmail_ = callerUidEmail; - setCoreParameter("CallerUidEmail", callerUidEmail); -} - -long DescribeFaceGroupsRequest::getCallerUid()const -{ - return callerUid_; -} - -void DescribeFaceGroupsRequest::setCallerUid(long callerUid) -{ - callerUid_ = callerUid; - setCoreParameter("CallerUid", std::to_string(callerUid)); -} - std::string DescribeFaceGroupsRequest::getShowLog()const { return showLog_; @@ -201,28 +60,6 @@ void DescribeFaceGroupsRequest::setShowLog(const std::string& showLog) setCoreParameter("ShowLog", showLog); } -std::string DescribeFaceGroupsRequest::getApp_ip()const -{ - return app_ip_; -} - -void DescribeFaceGroupsRequest::setApp_ip(const std::string& app_ip) -{ - app_ip_ = app_ip; - setCoreParameter("App_ip", app_ip); -} - -std::string DescribeFaceGroupsRequest::getPopProduct()const -{ - return popProduct_; -} - -void DescribeFaceGroupsRequest::setPopProduct(const std::string& popProduct) -{ - popProduct_ = popProduct; - setCoreParameter("PopProduct", popProduct); -} - long DescribeFaceGroupsRequest::getCurrentPage()const { return currentPage_; @@ -234,17 +71,6 @@ void DescribeFaceGroupsRequest::setCurrentPage(long currentPage) setCoreParameter("CurrentPage", std::to_string(currentPage)); } -std::string DescribeFaceGroupsRequest::getCallerBid()const -{ - return callerBid_; -} - -void DescribeFaceGroupsRequest::setCallerBid(const std::string& callerBid) -{ - callerBid_ = callerBid; - setCoreParameter("CallerBid", callerBid); -} - long DescribeFaceGroupsRequest::getOwnerId()const { return ownerId_; @@ -256,69 +82,3 @@ void DescribeFaceGroupsRequest::setOwnerId(long ownerId) setCoreParameter("OwnerId", std::to_string(ownerId)); } -std::string DescribeFaceGroupsRequest::getVersion()const -{ - return version_; -} - -void DescribeFaceGroupsRequest::setVersion(const std::string& version) -{ - version_ = version; - setCoreParameter("Version", version); -} - -bool DescribeFaceGroupsRequest::getProxy_trust_transport_info()const -{ - return proxy_trust_transport_info_; -} - -void DescribeFaceGroupsRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) -{ - proxy_trust_transport_info_ = proxy_trust_transport_info; - setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); -} - -bool DescribeFaceGroupsRequest::getAk_mfa_present()const -{ - return ak_mfa_present_; -} - -void DescribeFaceGroupsRequest::setAk_mfa_present(bool ak_mfa_present) -{ - ak_mfa_present_ = ak_mfa_present; - setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); -} - -bool DescribeFaceGroupsRequest::getSecurity_transport()const -{ - return security_transport_; -} - -void DescribeFaceGroupsRequest::setSecurity_transport(bool security_transport) -{ - security_transport_ = security_transport; - setCoreParameter("Security_transport", security_transport ? "true" : "false"); -} - -std::string DescribeFaceGroupsRequest::getServiceCode()const -{ - return serviceCode_; -} - -void DescribeFaceGroupsRequest::setServiceCode(const std::string& serviceCode) -{ - serviceCode_ = serviceCode; - setCoreParameter("ServiceCode", serviceCode); -} - -std::string DescribeFaceGroupsRequest::getRequestId()const -{ - return requestId_; -} - -void DescribeFaceGroupsRequest::setRequestId(const std::string& requestId) -{ - requestId_ = requestId; - setCoreParameter("RequestId", requestId); -} - diff --git a/ivision/src/model/DescribeFaceGroupsResult.cc b/ivision/src/model/DescribeFaceGroupsResult.cc index 36fd302b0..d919014c9 100644 --- a/ivision/src/model/DescribeFaceGroupsResult.cc +++ b/ivision/src/model/DescribeFaceGroupsResult.cc @@ -35,24 +35,20 @@ DescribeFaceGroupsResult::~DescribeFaceGroupsResult() void DescribeFaceGroupsResult::parse(const std::string &payload) { - Json::CharReaderBuilder builder; - Json::CharReader *reader = builder.newCharReader(); - Json::Value *val; + Json::Reader reader; Json::Value value; - JSONCPP_STRING *errs; - reader->parse(payload.data(), payload.data() + payload.size(), val, errs); - value = *val; + reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allGroups = value["Groups"]["Group"]; - for (auto value : allGroups) + auto allGroupsNode = value["Groups"]["Group"]; + for (auto valueGroupsGroup : allGroupsNode) { Group groupsObject; - if(!value["GroupId"].isNull()) - groupsObject.groupId = value["GroupId"].asString(); - if(!value["Name"].isNull()) - groupsObject.name = value["Name"].asString(); - if(!value["CreationTime"].isNull()) - groupsObject.creationTime = value["CreationTime"].asString(); + if(!valueGroupsGroup["GroupId"].isNull()) + groupsObject.groupId = valueGroupsGroup["GroupId"].asString(); + if(!valueGroupsGroup["Name"].isNull()) + groupsObject.name = valueGroupsGroup["Name"].asString(); + if(!valueGroupsGroup["CreationTime"].isNull()) + groupsObject.creationTime = valueGroupsGroup["CreationTime"].asString(); groups_.push_back(groupsObject); } if(!value["CurrentPage"].isNull()) diff --git a/ivision/src/model/DescribeIterationsRequest.cc b/ivision/src/model/DescribeIterationsRequest.cc deleted file mode 100644 index 609f12a9c..000000000 --- a/ivision/src/model/DescribeIterationsRequest.cc +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ivision::Model::DescribeIterationsRequest; - -DescribeIterationsRequest::DescribeIterationsRequest() : - RpcServiceRequest("ivision", "2019-03-08", "DescribeIterations") -{} - -DescribeIterationsRequest::~DescribeIterationsRequest() -{} - -std::string DescribeIterationsRequest::getThreshold()const -{ - return threshold_; -} - -void DescribeIterationsRequest::setThreshold(const std::string& threshold) -{ - threshold_ = threshold; - setCoreParameter("Threshold", threshold); -} - -std::string DescribeIterationsRequest::getProjectId()const -{ - return projectId_; -} - -void DescribeIterationsRequest::setProjectId(const std::string& projectId) -{ - projectId_ = projectId; - setCoreParameter("ProjectId", projectId); -} - -std::string DescribeIterationsRequest::getShowLog()const -{ - return showLog_; -} - -void DescribeIterationsRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -std::string DescribeIterationsRequest::getIterationIds()const -{ - return iterationIds_; -} - -void DescribeIterationsRequest::setIterationIds(const std::string& iterationIds) -{ - iterationIds_ = iterationIds; - setCoreParameter("IterationIds", iterationIds); -} - -long DescribeIterationsRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeIterationsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeIterationsRequest::getStatus()const -{ - return status_; -} - -void DescribeIterationsRequest::setStatus(const std::string& status) -{ - status_ = status; - setCoreParameter("Status", status); -} - diff --git a/ivision/src/model/DescribeIterationsResult.cc b/ivision/src/model/DescribeIterationsResult.cc deleted file mode 100644 index 985fa979b..000000000 --- a/ivision/src/model/DescribeIterationsResult.cc +++ /dev/null @@ -1,103 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#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 allIterationsNode = value["Iterations"]["Iteration"]; - for (auto valueIterationsIteration : allIterationsNode) - { - Iteration iterationsObject; - if(!valueIterationsIteration["ProjectId"].isNull()) - iterationsObject.projectId = valueIterationsIteration["ProjectId"].asString(); - if(!valueIterationsIteration["IterationId"].isNull()) - iterationsObject.iterationId = valueIterationsIteration["IterationId"].asString(); - if(!valueIterationsIteration["IterationName"].isNull()) - iterationsObject.iterationName = valueIterationsIteration["IterationName"].asString(); - if(!valueIterationsIteration["Status"].isNull()) - iterationsObject.status = valueIterationsIteration["Status"].asString(); - if(!valueIterationsIteration["CreationTime"].isNull()) - iterationsObject.creationTime = valueIterationsIteration["CreationTime"].asString(); - if(!valueIterationsIteration["FinishTime"].isNull()) - iterationsObject.finishTime = valueIterationsIteration["FinishTime"].asString(); - if(!valueIterationsIteration["ModelId"].isNull()) - iterationsObject.modelId = valueIterationsIteration["ModelId"].asString(); - if(!valueIterationsIteration["Precision"].isNull()) - iterationsObject.precision = valueIterationsIteration["Precision"].asString(); - if(!valueIterationsIteration["Recall"].isNull()) - iterationsObject.recall = valueIterationsIteration["Recall"].asString(); - if(!valueIterationsIteration["MAP"].isNull()) - iterationsObject.mAP = valueIterationsIteration["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 deleted file mode 100644 index b1b9c6889..000000000 --- a/ivision/src/model/DescribePredictDatasRequest.cc +++ /dev/null @@ -1,159 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ivision::Model::DescribePredictDatasRequest; - -DescribePredictDatasRequest::DescribePredictDatasRequest() : - RpcServiceRequest("ivision", "2019-03-08", "DescribePredictDatas") -{} - -DescribePredictDatasRequest::~DescribePredictDatasRequest() -{} - -std::string DescribePredictDatasRequest::getNextPageToken()const -{ - return nextPageToken_; -} - -void DescribePredictDatasRequest::setNextPageToken(const std::string& nextPageToken) -{ - nextPageToken_ = nextPageToken; - setCoreParameter("NextPageToken", nextPageToken); -} - -std::string DescribePredictDatasRequest::getDataIds()const -{ - return dataIds_; -} - -void DescribePredictDatasRequest::setDataIds(const std::string& dataIds) -{ - dataIds_ = dataIds; - setCoreParameter("DataIds", dataIds); -} - -long DescribePredictDatasRequest::getPageSize()const -{ - return pageSize_; -} - -void DescribePredictDatasRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setCoreParameter("PageSize", std::to_string(pageSize)); -} - -std::string DescribePredictDatasRequest::getProbabilityThreshold()const -{ - return probabilityThreshold_; -} - -void DescribePredictDatasRequest::setProbabilityThreshold(const std::string& probabilityThreshold) -{ - probabilityThreshold_ = probabilityThreshold; - setCoreParameter("ProbabilityThreshold", probabilityThreshold); -} - -std::string DescribePredictDatasRequest::getOverlapThreshold()const -{ - return overlapThreshold_; -} - -void DescribePredictDatasRequest::setOverlapThreshold(const std::string& overlapThreshold) -{ - overlapThreshold_ = overlapThreshold; - setCoreParameter("OverlapThreshold", overlapThreshold); -} - -std::string DescribePredictDatasRequest::getProjectId()const -{ - return projectId_; -} - -void DescribePredictDatasRequest::setProjectId(const std::string& projectId) -{ - projectId_ = projectId; - setCoreParameter("ProjectId", projectId); -} - -std::string DescribePredictDatasRequest::getShowLog()const -{ - return showLog_; -} - -void DescribePredictDatasRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -std::string DescribePredictDatasRequest::getModelId()const -{ - return modelId_; -} - -void DescribePredictDatasRequest::setModelId(const std::string& modelId) -{ - modelId_ = modelId; - setCoreParameter("ModelId", modelId); -} - -std::string DescribePredictDatasRequest::getTagId()const -{ - return tagId_; -} - -void DescribePredictDatasRequest::setTagId(const std::string& tagId) -{ - tagId_ = tagId; - setCoreParameter("TagId", tagId); -} - -long DescribePredictDatasRequest::getCurrentPage()const -{ - return currentPage_; -} - -void DescribePredictDatasRequest::setCurrentPage(long currentPage) -{ - currentPage_ = currentPage; - setCoreParameter("CurrentPage", std::to_string(currentPage)); -} - -long DescribePredictDatasRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribePredictDatasRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribePredictDatasRequest::getIterationId()const -{ - return iterationId_; -} - -void DescribePredictDatasRequest::setIterationId(const std::string& iterationId) -{ - iterationId_ = iterationId; - setCoreParameter("IterationId", iterationId); -} - diff --git a/ivision/src/model/DescribePredictDatasResult.cc b/ivision/src/model/DescribePredictDatasResult.cc deleted file mode 100644 index 3027c1cbc..000000000 --- a/ivision/src/model/DescribePredictDatasResult.cc +++ /dev/null @@ -1,128 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#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 allPredictDatasNode = value["PredictDatas"]["PredictData"]; - for (auto valuePredictDatasPredictData : allPredictDatasNode) - { - PredictData predictDatasObject; - if(!valuePredictDatasPredictData["ProjectId"].isNull()) - predictDatasObject.projectId = valuePredictDatasPredictData["ProjectId"].asString(); - if(!valuePredictDatasPredictData["IterationId"].isNull()) - predictDatasObject.iterationId = valuePredictDatasPredictData["IterationId"].asString(); - if(!valuePredictDatasPredictData["DataId"].isNull()) - predictDatasObject.dataId = valuePredictDatasPredictData["DataId"].asString(); - if(!valuePredictDatasPredictData["DataName"].isNull()) - predictDatasObject.dataName = valuePredictDatasPredictData["DataName"].asString(); - if(!valuePredictDatasPredictData["DataUrl"].isNull()) - predictDatasObject.dataUrl = valuePredictDatasPredictData["DataUrl"].asString(); - if(!valuePredictDatasPredictData["CreationTime"].isNull()) - predictDatasObject.creationTime = valuePredictDatasPredictData["CreationTime"].asString(); - if(!valuePredictDatasPredictData["Status"].isNull()) - predictDatasObject.status = valuePredictDatasPredictData["Status"].asString(); - if(!valuePredictDatasPredictData["ErrorCode"].isNull()) - predictDatasObject.errorCode = valuePredictDatasPredictData["ErrorCode"].asString(); - if(!valuePredictDatasPredictData["ErrorMessage"].isNull()) - predictDatasObject.errorMessage = valuePredictDatasPredictData["ErrorMessage"].asString(); - auto allPredictionResultsNode = allPredictDatasNode["PredictionResults"]["PredictionResult"]; - for (auto allPredictDatasNodePredictionResultsPredictionResult : allPredictionResultsNode) - { - PredictData::PredictionResult predictionResultsObject; - if(!allPredictDatasNodePredictionResultsPredictionResult["TagId"].isNull()) - predictionResultsObject.tagId = allPredictDatasNodePredictionResultsPredictionResult["TagId"].asString(); - if(!allPredictDatasNodePredictionResultsPredictionResult["TagName"].isNull()) - predictionResultsObject.tagName = allPredictDatasNodePredictionResultsPredictionResult["TagName"].asString(); - if(!allPredictDatasNodePredictionResultsPredictionResult["Probability"].isNull()) - predictionResultsObject.probability = allPredictDatasNodePredictionResultsPredictionResult["Probability"].asString(); - if(!allPredictDatasNodePredictionResultsPredictionResult["Overlap"].isNull()) - predictionResultsObject.overlap = allPredictDatasNodePredictionResultsPredictionResult["Overlap"].asString(); - if(!allPredictDatasNodePredictionResultsPredictionResult["RegionType"].isNull()) - predictionResultsObject.regionType = allPredictDatasNodePredictionResultsPredictionResult["RegionType"].asString(); - if(!allPredictDatasNodePredictionResultsPredictionResult["Properties"].isNull()) - predictionResultsObject.properties = allPredictDatasNodePredictionResultsPredictionResult["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/DescribePredictModelsRequest.cc b/ivision/src/model/DescribePredictModelsRequest.cc deleted file mode 100644 index 1cba2e6f0..000000000 --- a/ivision/src/model/DescribePredictModelsRequest.cc +++ /dev/null @@ -1,126 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ivision::Model::DescribePredictModelsRequest; - -DescribePredictModelsRequest::DescribePredictModelsRequest() : - RpcServiceRequest("ivision", "2019-03-08", "DescribePredictModels") -{} - -DescribePredictModelsRequest::~DescribePredictModelsRequest() -{} - -std::string DescribePredictModelsRequest::getSource()const -{ - return source_; -} - -void DescribePredictModelsRequest::setSource(const std::string& source) -{ - source_ = source; - setCoreParameter("Source", source); -} - -std::string DescribePredictModelsRequest::getType()const -{ - return type_; -} - -void DescribePredictModelsRequest::setType(const std::string& type) -{ - type_ = type; - setCoreParameter("Type", type); -} - -long DescribePredictModelsRequest::getPageSize()const -{ - return pageSize_; -} - -void DescribePredictModelsRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setCoreParameter("PageSize", std::to_string(pageSize)); -} - -std::string DescribePredictModelsRequest::getShowLog()const -{ - return showLog_; -} - -void DescribePredictModelsRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -long DescribePredictModelsRequest::getCurrentPage()const -{ - return currentPage_; -} - -void DescribePredictModelsRequest::setCurrentPage(long currentPage) -{ - currentPage_ = currentPage; - setCoreParameter("CurrentPage", std::to_string(currentPage)); -} - -long DescribePredictModelsRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribePredictModelsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribePredictModelsRequest::getModelIds()const -{ - return modelIds_; -} - -void DescribePredictModelsRequest::setModelIds(const std::string& modelIds) -{ - modelIds_ = modelIds; - setCoreParameter("ModelIds", modelIds); -} - -std::string DescribePredictModelsRequest::getName()const -{ - return name_; -} - -void DescribePredictModelsRequest::setName(const std::string& name) -{ - name_ = name; - setCoreParameter("Name", name); -} - -std::string DescribePredictModelsRequest::getDeployStatus()const -{ - return deployStatus_; -} - -void DescribePredictModelsRequest::setDeployStatus(const std::string& deployStatus) -{ - deployStatus_ = deployStatus; - setCoreParameter("DeployStatus", deployStatus); -} - diff --git a/ivision/src/model/DescribePredictModelsResult.cc b/ivision/src/model/DescribePredictModelsResult.cc deleted file mode 100644 index f678a2815..000000000 --- a/ivision/src/model/DescribePredictModelsResult.cc +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ivision; -using namespace AlibabaCloud::Ivision::Model; - -DescribePredictModelsResult::DescribePredictModelsResult() : - ServiceResult() -{} - -DescribePredictModelsResult::DescribePredictModelsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribePredictModelsResult::~DescribePredictModelsResult() -{} - -void DescribePredictModelsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allModelsNode = value["Models"]["Model"]; - for (auto valueModelsModel : allModelsNode) - { - Model modelsObject; - if(!valueModelsModel["ModelId"].isNull()) - modelsObject.modelId = valueModelsModel["ModelId"].asString(); - if(!valueModelsModel["Name"].isNull()) - modelsObject.name = valueModelsModel["Name"].asString(); - if(!valueModelsModel["Description"].isNull()) - modelsObject.description = valueModelsModel["Description"].asString(); - if(!valueModelsModel["ProjectId"].isNull()) - modelsObject.projectId = valueModelsModel["ProjectId"].asString(); - if(!valueModelsModel["ProjectName"].isNull()) - modelsObject.projectName = valueModelsModel["ProjectName"].asString(); - if(!valueModelsModel["IterationId"].isNull()) - modelsObject.iterationId = valueModelsModel["IterationId"].asString(); - if(!valueModelsModel["IterationVersion"].isNull()) - modelsObject.iterationVersion = valueModelsModel["IterationVersion"].asString(); - if(!valueModelsModel["Regions"].isNull()) - modelsObject.regions = valueModelsModel["Regions"].asString(); - if(!valueModelsModel["CreationTime"].isNull()) - modelsObject.creationTime = valueModelsModel["CreationTime"].asString(); - if(!valueModelsModel["Source"].isNull()) - modelsObject.source = valueModelsModel["Source"].asString(); - if(!valueModelsModel["Type"].isNull()) - modelsObject.type = valueModelsModel["Type"].asString(); - if(!valueModelsModel["DeployStatus"].isNull()) - modelsObject.deployStatus = valueModelsModel["DeployStatus"].asString(); - if(!valueModelsModel["Precision"].isNull()) - modelsObject.precision = valueModelsModel["Precision"].asString(); - if(!valueModelsModel["Recall"].isNull()) - modelsObject.recall = valueModelsModel["Recall"].asString(); - if(!valueModelsModel["MAP"].isNull()) - modelsObject.mAP = valueModelsModel["MAP"].asString(); - models_.push_back(modelsObject); - } - if(!value["CurrentPage"].isNull()) - currentPage_ = std::stol(value["CurrentPage"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stol(value["PageSize"].asString()); - if(!value["TotalNum"].isNull()) - totalNum_ = std::stol(value["TotalNum"].asString()); - -} - -long DescribePredictModelsResult::getTotalNum()const -{ - return totalNum_; -} - -long DescribePredictModelsResult::getPageSize()const -{ - return pageSize_; -} - -long DescribePredictModelsResult::getCurrentPage()const -{ - return currentPage_; -} - -std::vector DescribePredictModelsResult::getModels()const -{ - return models_; -} - diff --git a/ivision/src/model/DescribePredictTemplatesRequest.cc b/ivision/src/model/DescribePredictTemplatesRequest.cc deleted file mode 100644 index 7105d6c8f..000000000 --- a/ivision/src/model/DescribePredictTemplatesRequest.cc +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ivision::Model::DescribePredictTemplatesRequest; - -DescribePredictTemplatesRequest::DescribePredictTemplatesRequest() : - RpcServiceRequest("ivision", "2019-03-08", "DescribePredictTemplates") -{} - -DescribePredictTemplatesRequest::~DescribePredictTemplatesRequest() -{} - -std::string DescribePredictTemplatesRequest::getTemplateIds()const -{ - return templateIds_; -} - -void DescribePredictTemplatesRequest::setTemplateIds(const std::string& templateIds) -{ - templateIds_ = templateIds; - setCoreParameter("TemplateIds", templateIds); -} - -std::string DescribePredictTemplatesRequest::getNextPageToken()const -{ - return nextPageToken_; -} - -void DescribePredictTemplatesRequest::setNextPageToken(const std::string& nextPageToken) -{ - nextPageToken_ = nextPageToken; - setCoreParameter("NextPageToken", nextPageToken); -} - -long DescribePredictTemplatesRequest::getPageSize()const -{ - return pageSize_; -} - -void DescribePredictTemplatesRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setCoreParameter("PageSize", std::to_string(pageSize)); -} - -std::string DescribePredictTemplatesRequest::getSortOrder()const -{ - return sortOrder_; -} - -void DescribePredictTemplatesRequest::setSortOrder(const std::string& sortOrder) -{ - sortOrder_ = sortOrder; - setCoreParameter("SortOrder", sortOrder); -} - -std::string DescribePredictTemplatesRequest::getShowLog()const -{ - return showLog_; -} - -void DescribePredictTemplatesRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -long DescribePredictTemplatesRequest::getCurrentPage()const -{ - return currentPage_; -} - -void DescribePredictTemplatesRequest::setCurrentPage(long currentPage) -{ - currentPage_ = currentPage; - setCoreParameter("CurrentPage", std::to_string(currentPage)); -} - -long DescribePredictTemplatesRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribePredictTemplatesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribePredictTemplatesRequest::getSortBy()const -{ - return sortBy_; -} - -void DescribePredictTemplatesRequest::setSortBy(const std::string& sortBy) -{ - sortBy_ = sortBy; - setCoreParameter("SortBy", sortBy); -} - diff --git a/ivision/src/model/DescribePredictTemplatesResult.cc b/ivision/src/model/DescribePredictTemplatesResult.cc deleted file mode 100644 index c364aba68..000000000 --- a/ivision/src/model/DescribePredictTemplatesResult.cc +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ivision; -using namespace AlibabaCloud::Ivision::Model; - -DescribePredictTemplatesResult::DescribePredictTemplatesResult() : - ServiceResult() -{} - -DescribePredictTemplatesResult::DescribePredictTemplatesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribePredictTemplatesResult::~DescribePredictTemplatesResult() -{} - -void DescribePredictTemplatesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allTemplatesNode = value["Templates"]["Template"]; - for (auto valueTemplatesTemplate : allTemplatesNode) - { - _Template templatesObject; - if(!valueTemplatesTemplate["TemplateId"].isNull()) - templatesObject.templateId = valueTemplatesTemplate["TemplateId"].asString(); - if(!valueTemplatesTemplate["Name"].isNull()) - templatesObject.name = valueTemplatesTemplate["Name"].asString(); - if(!valueTemplatesTemplate["Description"].isNull()) - templatesObject.description = valueTemplatesTemplate["Description"].asString(); - if(!valueTemplatesTemplate["Interval"].isNull()) - templatesObject.interval = std::stoi(valueTemplatesTemplate["Interval"].asString()); - if(!valueTemplatesTemplate["Output"].isNull()) - templatesObject.output = valueTemplatesTemplate["Output"].asString(); - if(!valueTemplatesTemplate["ModelIds"].isNull()) - templatesObject.modelIds = valueTemplatesTemplate["ModelIds"].asString(); - if(!valueTemplatesTemplate["CreationTime"].isNull()) - templatesObject.creationTime = valueTemplatesTemplate["CreationTime"].asString(); - templates_.push_back(templatesObject); - } - 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(); - if(!value["TotalNum"].isNull()) - totalNum_ = std::stol(value["TotalNum"].asString()); - -} - -long DescribePredictTemplatesResult::getTotalNum()const -{ - return totalNum_; -} - -long DescribePredictTemplatesResult::getPageSize()const -{ - return pageSize_; -} - -long DescribePredictTemplatesResult::getCurrentPage()const -{ - return currentPage_; -} - -std::string DescribePredictTemplatesResult::getNextPageToken()const -{ - return nextPageToken_; -} - -std::vector DescribePredictTemplatesResult::getTemplates()const -{ - return templates_; -} - diff --git a/ivision/src/model/DescribeProjectsRequest.cc b/ivision/src/model/DescribeProjectsRequest.cc deleted file mode 100644 index 22b448716..000000000 --- a/ivision/src/model/DescribeProjectsRequest.cc +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ivision::Model::DescribeProjectsRequest; - -DescribeProjectsRequest::DescribeProjectsRequest() : - RpcServiceRequest("ivision", "2019-03-08", "DescribeProjects") -{} - -DescribeProjectsRequest::~DescribeProjectsRequest() -{} - -std::string DescribeProjectsRequest::getNextPageToken()const -{ - return nextPageToken_; -} - -void DescribeProjectsRequest::setNextPageToken(const std::string& nextPageToken) -{ - nextPageToken_ = nextPageToken; - setCoreParameter("NextPageToken", nextPageToken); -} - -long DescribeProjectsRequest::getPageSize()const -{ - return pageSize_; -} - -void DescribeProjectsRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setCoreParameter("PageSize", std::to_string(pageSize)); -} - -std::string DescribeProjectsRequest::getShowLog()const -{ - return showLog_; -} - -void DescribeProjectsRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -long DescribeProjectsRequest::getCurrentPage()const -{ - return currentPage_; -} - -void DescribeProjectsRequest::setCurrentPage(long currentPage) -{ - currentPage_ = currentPage; - setCoreParameter("CurrentPage", std::to_string(currentPage)); -} - -std::string DescribeProjectsRequest::getProjectIds()const -{ - return projectIds_; -} - -void DescribeProjectsRequest::setProjectIds(const std::string& projectIds) -{ - projectIds_ = projectIds; - setCoreParameter("ProjectIds", projectIds); -} - -long DescribeProjectsRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeProjectsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - diff --git a/ivision/src/model/DescribeProjectsResult.cc b/ivision/src/model/DescribeProjectsResult.cc deleted file mode 100644 index a4efcbaf7..000000000 --- a/ivision/src/model/DescribeProjectsResult.cc +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#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 allProjectsNode = value["Projects"]["Project"]; - for (auto valueProjectsProject : allProjectsNode) - { - Project projectsObject; - if(!valueProjectsProject["ProjectId"].isNull()) - projectsObject.projectId = valueProjectsProject["ProjectId"].asString(); - if(!valueProjectsProject["Name"].isNull()) - projectsObject.name = valueProjectsProject["Name"].asString(); - if(!valueProjectsProject["Description"].isNull()) - projectsObject.description = valueProjectsProject["Description"].asString(); - if(!valueProjectsProject["ProType"].isNull()) - projectsObject.proType = valueProjectsProject["ProType"].asString(); - if(!valueProjectsProject["IterCount"].isNull()) - projectsObject.iterCount = std::stoi(valueProjectsProject["IterCount"].asString()); - if(!valueProjectsProject["CreationTime"].isNull()) - projectsObject.creationTime = valueProjectsProject["CreationTime"].asString(); - if(!valueProjectsProject["Status"].isNull()) - projectsObject.status = valueProjectsProject["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/DescribeQuickDeploysRequest.cc b/ivision/src/model/DescribeQuickDeploysRequest.cc deleted file mode 100644 index 5a5b9d594..000000000 --- a/ivision/src/model/DescribeQuickDeploysRequest.cc +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ivision::Model::DescribeQuickDeploysRequest; - -DescribeQuickDeploysRequest::DescribeQuickDeploysRequest() : - RpcServiceRequest("ivision", "2019-03-08", "DescribeQuickDeploys") -{} - -DescribeQuickDeploysRequest::~DescribeQuickDeploysRequest() -{} - -long DescribeQuickDeploysRequest::getPageSize()const -{ - return pageSize_; -} - -void DescribeQuickDeploysRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setCoreParameter("PageSize", std::to_string(pageSize)); -} - -std::string DescribeQuickDeploysRequest::getProjectId()const -{ - return projectId_; -} - -void DescribeQuickDeploysRequest::setProjectId(const std::string& projectId) -{ - projectId_ = projectId; - setCoreParameter("ProjectId", projectId); -} - -std::string DescribeQuickDeploysRequest::getShowLog()const -{ - return showLog_; -} - -void DescribeQuickDeploysRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -long DescribeQuickDeploysRequest::getCurrentPage()const -{ - return currentPage_; -} - -void DescribeQuickDeploysRequest::setCurrentPage(long currentPage) -{ - currentPage_ = currentPage; - setCoreParameter("CurrentPage", std::to_string(currentPage)); -} - -long DescribeQuickDeploysRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeQuickDeploysRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeQuickDeploysRequest::getIterationId()const -{ - return iterationId_; -} - -void DescribeQuickDeploysRequest::setIterationId(const std::string& iterationId) -{ - iterationId_ = iterationId; - setCoreParameter("IterationId", iterationId); -} - diff --git a/ivision/src/model/DescribeQuickDeploysResult.cc b/ivision/src/model/DescribeQuickDeploysResult.cc deleted file mode 100644 index 3a844f4e3..000000000 --- a/ivision/src/model/DescribeQuickDeploysResult.cc +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ivision; -using namespace AlibabaCloud::Ivision::Model; - -DescribeQuickDeploysResult::DescribeQuickDeploysResult() : - ServiceResult() -{} - -DescribeQuickDeploysResult::DescribeQuickDeploysResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeQuickDeploysResult::~DescribeQuickDeploysResult() -{} - -void DescribeQuickDeploysResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allQuickDeploysNode = value["QuickDeploys"]["QuickDeploy"]; - for (auto valueQuickDeploysQuickDeploy : allQuickDeploysNode) - { - QuickDeploy quickDeploysObject; - if(!valueQuickDeploysQuickDeploy["ProjectId"].isNull()) - quickDeploysObject.projectId = valueQuickDeploysQuickDeploy["ProjectId"].asString(); - if(!valueQuickDeploysQuickDeploy["IterationId"].isNull()) - quickDeploysObject.iterationId = valueQuickDeploysQuickDeploy["IterationId"].asString(); - if(!valueQuickDeploysQuickDeploy["ModelId"].isNull()) - quickDeploysObject.modelId = valueQuickDeploysQuickDeploy["ModelId"].asString(); - if(!valueQuickDeploysQuickDeploy["CreationTime"].isNull()) - quickDeploysObject.creationTime = valueQuickDeploysQuickDeploy["CreationTime"].asString(); - if(!valueQuickDeploysQuickDeploy["DeployStatus"].isNull()) - quickDeploysObject.deployStatus = valueQuickDeploysQuickDeploy["DeployStatus"].asString(); - quickDeploys_.push_back(quickDeploysObject); - } - if(!value["CurrentPage"].isNull()) - currentPage_ = std::stol(value["CurrentPage"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stol(value["PageSize"].asString()); - if(!value["TotalNum"].isNull()) - totalNum_ = std::stol(value["TotalNum"].asString()); - -} - -std::vector DescribeQuickDeploysResult::getQuickDeploys()const -{ - return quickDeploys_; -} - -long DescribeQuickDeploysResult::getTotalNum()const -{ - return totalNum_; -} - -long DescribeQuickDeploysResult::getPageSize()const -{ - return pageSize_; -} - -long DescribeQuickDeploysResult::getCurrentPage()const -{ - return currentPage_; -} - diff --git a/ivision/src/model/DescribeStreamPredictResultRequest.cc b/ivision/src/model/DescribeStreamPredictResultRequest.cc index 9b580146a..5f15ef5d1 100644 --- a/ivision/src/model/DescribeStreamPredictResultRequest.cc +++ b/ivision/src/model/DescribeStreamPredictResultRequest.cc @@ -20,118 +20,120 @@ using AlibabaCloud::Ivision::Model::DescribeStreamPredictResultRequest; DescribeStreamPredictResultRequest::DescribeStreamPredictResultRequest() : RpcServiceRequest("ivision", "2019-03-08", "DescribeStreamPredictResult") -{} +{ + setMethod(HttpRequest::Method::Post); +} DescribeStreamPredictResultRequest::~DescribeStreamPredictResultRequest() {} -std::string DescribeStreamPredictResultRequest::getNextPageToken()const -{ - return nextPageToken_; -} - -void DescribeStreamPredictResultRequest::setNextPageToken(const std::string& nextPageToken) -{ - nextPageToken_ = nextPageToken; - setCoreParameter("NextPageToken", nextPageToken); -} - -std::string DescribeStreamPredictResultRequest::getStartTime()const -{ - return startTime_; -} - -void DescribeStreamPredictResultRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setCoreParameter("StartTime", startTime); -} - -std::string DescribeStreamPredictResultRequest::getPredictId()const -{ - return predictId_; -} - -void DescribeStreamPredictResultRequest::setPredictId(const std::string& predictId) -{ - predictId_ = predictId; - setCoreParameter("PredictId", predictId); -} - -long DescribeStreamPredictResultRequest::getPageSize()const -{ - return pageSize_; -} - -void DescribeStreamPredictResultRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setCoreParameter("PageSize", std::to_string(pageSize)); -} - -std::string DescribeStreamPredictResultRequest::getProbabilityThreshold()const -{ - return probabilityThreshold_; -} - -void DescribeStreamPredictResultRequest::setProbabilityThreshold(const std::string& probabilityThreshold) -{ - probabilityThreshold_ = probabilityThreshold; - setCoreParameter("ProbabilityThreshold", probabilityThreshold); -} - -std::string DescribeStreamPredictResultRequest::getShowLog()const -{ - return showLog_; -} - -void DescribeStreamPredictResultRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -std::string DescribeStreamPredictResultRequest::getModelId()const -{ - return modelId_; -} - -void DescribeStreamPredictResultRequest::setModelId(const std::string& modelId) -{ - modelId_ = modelId; - setCoreParameter("ModelId", modelId); -} - -std::string DescribeStreamPredictResultRequest::getEndTime()const -{ - return endTime_; -} - -void DescribeStreamPredictResultRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setCoreParameter("EndTime", endTime); -} - -long DescribeStreamPredictResultRequest::getCurrentPage()const -{ - return currentPage_; -} - -void DescribeStreamPredictResultRequest::setCurrentPage(long currentPage) -{ - currentPage_ = currentPage; - setCoreParameter("CurrentPage", std::to_string(currentPage)); -} - -long DescribeStreamPredictResultRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeStreamPredictResultRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - +std::string DescribeStreamPredictResultRequest::getNextPageToken()const +{ + return nextPageToken_; +} + +void DescribeStreamPredictResultRequest::setNextPageToken(const std::string& nextPageToken) +{ + nextPageToken_ = nextPageToken; + setCoreParameter("NextPageToken", nextPageToken); +} + +std::string DescribeStreamPredictResultRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeStreamPredictResultRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +std::string DescribeStreamPredictResultRequest::getPredictId()const +{ + return predictId_; +} + +void DescribeStreamPredictResultRequest::setPredictId(const std::string& predictId) +{ + predictId_ = predictId; + setCoreParameter("PredictId", predictId); +} + +long DescribeStreamPredictResultRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeStreamPredictResultRequest::setPageSize(long pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeStreamPredictResultRequest::getProbabilityThreshold()const +{ + return probabilityThreshold_; +} + +void DescribeStreamPredictResultRequest::setProbabilityThreshold(const std::string& probabilityThreshold) +{ + probabilityThreshold_ = probabilityThreshold; + setCoreParameter("ProbabilityThreshold", probabilityThreshold); +} + +std::string DescribeStreamPredictResultRequest::getShowLog()const +{ + return showLog_; +} + +void DescribeStreamPredictResultRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setCoreParameter("ShowLog", showLog); +} + +std::string DescribeStreamPredictResultRequest::getModelId()const +{ + return modelId_; +} + +void DescribeStreamPredictResultRequest::setModelId(const std::string& modelId) +{ + modelId_ = modelId; + setCoreParameter("ModelId", modelId); +} + +std::string DescribeStreamPredictResultRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeStreamPredictResultRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +long DescribeStreamPredictResultRequest::getCurrentPage()const +{ + return currentPage_; +} + +void DescribeStreamPredictResultRequest::setCurrentPage(long currentPage) +{ + currentPage_ = currentPage; + setCoreParameter("CurrentPage", std::to_string(currentPage)); +} + +long DescribeStreamPredictResultRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeStreamPredictResultRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ivision/src/model/DescribeStreamPredictsRequest.cc b/ivision/src/model/DescribeStreamPredictsRequest.cc index 0bb4d13ea..2282129c6 100644 --- a/ivision/src/model/DescribeStreamPredictsRequest.cc +++ b/ivision/src/model/DescribeStreamPredictsRequest.cc @@ -20,74 +20,76 @@ using AlibabaCloud::Ivision::Model::DescribeStreamPredictsRequest; DescribeStreamPredictsRequest::DescribeStreamPredictsRequest() : RpcServiceRequest("ivision", "2019-03-08", "DescribeStreamPredicts") -{} +{ + setMethod(HttpRequest::Method::Post); +} DescribeStreamPredictsRequest::~DescribeStreamPredictsRequest() {} -std::string DescribeStreamPredictsRequest::getNextPageToken()const -{ - return nextPageToken_; -} - -void DescribeStreamPredictsRequest::setNextPageToken(const std::string& nextPageToken) -{ - nextPageToken_ = nextPageToken; - setCoreParameter("NextPageToken", nextPageToken); -} - -std::string DescribeStreamPredictsRequest::getPredictIds()const -{ - return predictIds_; -} - -void DescribeStreamPredictsRequest::setPredictIds(const std::string& predictIds) -{ - predictIds_ = predictIds; - setCoreParameter("PredictIds", predictIds); -} - -long DescribeStreamPredictsRequest::getPageSize()const -{ - return pageSize_; -} - -void DescribeStreamPredictsRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setCoreParameter("PageSize", std::to_string(pageSize)); -} - -std::string DescribeStreamPredictsRequest::getShowLog()const -{ - return showLog_; -} - -void DescribeStreamPredictsRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -long DescribeStreamPredictsRequest::getCurrentPage()const -{ - return currentPage_; -} - -void DescribeStreamPredictsRequest::setCurrentPage(long currentPage) -{ - currentPage_ = currentPage; - setCoreParameter("CurrentPage", std::to_string(currentPage)); -} - -long DescribeStreamPredictsRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeStreamPredictsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - +std::string DescribeStreamPredictsRequest::getNextPageToken()const +{ + return nextPageToken_; +} + +void DescribeStreamPredictsRequest::setNextPageToken(const std::string& nextPageToken) +{ + nextPageToken_ = nextPageToken; + setCoreParameter("NextPageToken", nextPageToken); +} + +std::string DescribeStreamPredictsRequest::getPredictIds()const +{ + return predictIds_; +} + +void DescribeStreamPredictsRequest::setPredictIds(const std::string& predictIds) +{ + predictIds_ = predictIds; + setCoreParameter("PredictIds", predictIds); +} + +long DescribeStreamPredictsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeStreamPredictsRequest::setPageSize(long pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeStreamPredictsRequest::getShowLog()const +{ + return showLog_; +} + +void DescribeStreamPredictsRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setCoreParameter("ShowLog", showLog); +} + +long DescribeStreamPredictsRequest::getCurrentPage()const +{ + return currentPage_; +} + +void DescribeStreamPredictsRequest::setCurrentPage(long currentPage) +{ + currentPage_ = currentPage; + setCoreParameter("CurrentPage", std::to_string(currentPage)); +} + +long DescribeStreamPredictsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeStreamPredictsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ivision/src/model/DescribeSystemPredictModelsRequest.cc b/ivision/src/model/DescribeSystemPredictModelsRequest.cc deleted file mode 100644 index 53a2f6dfe..000000000 --- a/ivision/src/model/DescribeSystemPredictModelsRequest.cc +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ivision::Model::DescribeSystemPredictModelsRequest; - -DescribeSystemPredictModelsRequest::DescribeSystemPredictModelsRequest() : - RpcServiceRequest("ivision", "2019-03-08", "DescribeSystemPredictModels") -{} - -DescribeSystemPredictModelsRequest::~DescribeSystemPredictModelsRequest() -{} - -std::string DescribeSystemPredictModelsRequest::getType()const -{ - return type_; -} - -void DescribeSystemPredictModelsRequest::setType(const std::string& type) -{ - type_ = type; - setCoreParameter("Type", type); -} - -std::string DescribeSystemPredictModelsRequest::getScene()const -{ - return scene_; -} - -void DescribeSystemPredictModelsRequest::setScene(const std::string& scene) -{ - scene_ = scene; - setCoreParameter("Scene", scene); -} - -long DescribeSystemPredictModelsRequest::getPageSize()const -{ - return pageSize_; -} - -void DescribeSystemPredictModelsRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setCoreParameter("PageSize", std::to_string(pageSize)); -} - -std::string DescribeSystemPredictModelsRequest::getShowLog()const -{ - return showLog_; -} - -void DescribeSystemPredictModelsRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -long DescribeSystemPredictModelsRequest::getCurrentPage()const -{ - return currentPage_; -} - -void DescribeSystemPredictModelsRequest::setCurrentPage(long currentPage) -{ - currentPage_ = currentPage; - setCoreParameter("CurrentPage", std::to_string(currentPage)); -} - -long DescribeSystemPredictModelsRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeSystemPredictModelsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeSystemPredictModelsRequest::getModelIds()const -{ - return modelIds_; -} - -void DescribeSystemPredictModelsRequest::setModelIds(const std::string& modelIds) -{ - modelIds_ = modelIds; - setCoreParameter("ModelIds", modelIds); -} - -std::string DescribeSystemPredictModelsRequest::getName()const -{ - return name_; -} - -void DescribeSystemPredictModelsRequest::setName(const std::string& name) -{ - name_ = name; - setCoreParameter("Name", name); -} - diff --git a/ivision/src/model/DescribeSystemPredictModelsResult.cc b/ivision/src/model/DescribeSystemPredictModelsResult.cc deleted file mode 100644 index f7c617d5c..000000000 --- a/ivision/src/model/DescribeSystemPredictModelsResult.cc +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ivision; -using namespace AlibabaCloud::Ivision::Model; - -DescribeSystemPredictModelsResult::DescribeSystemPredictModelsResult() : - ServiceResult() -{} - -DescribeSystemPredictModelsResult::DescribeSystemPredictModelsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeSystemPredictModelsResult::~DescribeSystemPredictModelsResult() -{} - -void DescribeSystemPredictModelsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allModelsNode = value["Models"]["Model"]; - for (auto valueModelsModel : allModelsNode) - { - Model modelsObject; - if(!valueModelsModel["ModelId"].isNull()) - modelsObject.modelId = valueModelsModel["ModelId"].asString(); - if(!valueModelsModel["Type"].isNull()) - modelsObject.type = valueModelsModel["Type"].asString(); - if(!valueModelsModel["Name"].isNull()) - modelsObject.name = valueModelsModel["Name"].asString(); - if(!valueModelsModel["Description"].isNull()) - modelsObject.description = valueModelsModel["Description"].asString(); - if(!valueModelsModel["Scene"].isNull()) - modelsObject.scene = valueModelsModel["Scene"].asString(); - if(!valueModelsModel["CreationTime"].isNull()) - modelsObject.creationTime = valueModelsModel["CreationTime"].asString(); - models_.push_back(modelsObject); - } - if(!value["CurrentPage"].isNull()) - currentPage_ = std::stol(value["CurrentPage"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stol(value["PageSize"].asString()); - if(!value["TotalNum"].isNull()) - totalNum_ = std::stol(value["TotalNum"].asString()); - -} - -long DescribeSystemPredictModelsResult::getTotalNum()const -{ - return totalNum_; -} - -long DescribeSystemPredictModelsResult::getPageSize()const -{ - return pageSize_; -} - -long DescribeSystemPredictModelsResult::getCurrentPage()const -{ - return currentPage_; -} - -std::vector DescribeSystemPredictModelsResult::getModels()const -{ - return models_; -} - diff --git a/ivision/src/model/DescribeTagsRequest.cc b/ivision/src/model/DescribeTagsRequest.cc deleted file mode 100644 index 17ca66105..000000000 --- a/ivision/src/model/DescribeTagsRequest.cc +++ /dev/null @@ -1,126 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ivision::Model::DescribeTagsRequest; - -DescribeTagsRequest::DescribeTagsRequest() : - RpcServiceRequest("ivision", "2019-03-08", "DescribeTags") -{} - -DescribeTagsRequest::~DescribeTagsRequest() -{} - -std::string DescribeTagsRequest::getNextPageToken()const -{ - return nextPageToken_; -} - -void DescribeTagsRequest::setNextPageToken(const std::string& nextPageToken) -{ - nextPageToken_ = nextPageToken; - setCoreParameter("NextPageToken", nextPageToken); -} - -long DescribeTagsRequest::getPageSize()const -{ - return pageSize_; -} - -void DescribeTagsRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setCoreParameter("PageSize", std::to_string(pageSize)); -} - -std::string DescribeTagsRequest::getProjectId()const -{ - return projectId_; -} - -void DescribeTagsRequest::setProjectId(const std::string& projectId) -{ - projectId_ = projectId; - setCoreParameter("ProjectId", projectId); -} - -std::string DescribeTagsRequest::getShowLog()const -{ - return showLog_; -} - -void DescribeTagsRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -std::string DescribeTagsRequest::getModelId()const -{ - return modelId_; -} - -void DescribeTagsRequest::setModelId(const std::string& modelId) -{ - modelId_ = modelId; - setCoreParameter("ModelId", modelId); -} - -std::string DescribeTagsRequest::getTagIds()const -{ - return tagIds_; -} - -void DescribeTagsRequest::setTagIds(const std::string& tagIds) -{ - tagIds_ = tagIds; - setCoreParameter("TagIds", tagIds); -} - -long DescribeTagsRequest::getCurrentPage()const -{ - return currentPage_; -} - -void DescribeTagsRequest::setCurrentPage(long currentPage) -{ - currentPage_ = currentPage; - setCoreParameter("CurrentPage", std::to_string(currentPage)); -} - -long DescribeTagsRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeTagsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeTagsRequest::getIterationId()const -{ - return iterationId_; -} - -void DescribeTagsRequest::setIterationId(const std::string& iterationId) -{ - iterationId_ = iterationId; - setCoreParameter("IterationId", iterationId); -} - diff --git a/ivision/src/model/DescribeTagsResult.cc b/ivision/src/model/DescribeTagsResult.cc deleted file mode 100644 index c8fdd85c9..000000000 --- a/ivision/src/model/DescribeTagsResult.cc +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#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 allTagsNode = value["Tags"]["Tag"]; - for (auto valueTagsTag : allTagsNode) - { - Tag tagsObject; - if(!valueTagsTag["ProjectId"].isNull()) - tagsObject.projectId = valueTagsTag["ProjectId"].asString(); - if(!valueTagsTag["TagId"].isNull()) - tagsObject.tagId = valueTagsTag["TagId"].asString(); - if(!valueTagsTag["TagName"].isNull()) - tagsObject.tagName = valueTagsTag["TagName"].asString(); - if(!valueTagsTag["Description"].isNull()) - tagsObject.description = valueTagsTag["Description"].asString(); - if(!valueTagsTag["Count"].isNull()) - tagsObject.count = std::stoi(valueTagsTag["Count"].asString()); - if(!valueTagsTag["CreationTime"].isNull()) - tagsObject.creationTime = valueTagsTag["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 deleted file mode 100644 index 4df0f4806..000000000 --- a/ivision/src/model/DescribeTrainDatasByIdsRequest.cc +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ivision::Model::DescribeTrainDatasByIdsRequest; - -DescribeTrainDatasByIdsRequest::DescribeTrainDatasByIdsRequest() : - RpcServiceRequest("ivision", "2019-03-08", "DescribeTrainDatasByIds") -{} - -DescribeTrainDatasByIdsRequest::~DescribeTrainDatasByIdsRequest() -{} - -std::string DescribeTrainDatasByIdsRequest::getDataIds()const -{ - return dataIds_; -} - -void DescribeTrainDatasByIdsRequest::setDataIds(const std::string& dataIds) -{ - dataIds_ = dataIds; - setCoreParameter("DataIds", dataIds); -} - -std::string DescribeTrainDatasByIdsRequest::getProjectId()const -{ - return projectId_; -} - -void DescribeTrainDatasByIdsRequest::setProjectId(const std::string& projectId) -{ - projectId_ = projectId; - setCoreParameter("ProjectId", projectId); -} - -std::string DescribeTrainDatasByIdsRequest::getShowLog()const -{ - return showLog_; -} - -void DescribeTrainDatasByIdsRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -long DescribeTrainDatasByIdsRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeTrainDatasByIdsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeTrainDatasByIdsRequest::getIterationId()const -{ - return iterationId_; -} - -void DescribeTrainDatasByIdsRequest::setIterationId(const std::string& iterationId) -{ - iterationId_ = iterationId; - setCoreParameter("IterationId", iterationId); -} - diff --git a/ivision/src/model/DescribeTrainDatasByIdsResult.cc b/ivision/src/model/DescribeTrainDatasByIdsResult.cc deleted file mode 100644 index be9046dac..000000000 --- a/ivision/src/model/DescribeTrainDatasByIdsResult.cc +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#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 allTrainDatasNode = value["TrainDatas"]["TrainData"]; - for (auto valueTrainDatasTrainData : allTrainDatasNode) - { - TrainData trainDatasObject; - if(!valueTrainDatasTrainData["ProjectId"].isNull()) - trainDatasObject.projectId = valueTrainDatasTrainData["ProjectId"].asString(); - if(!valueTrainDatasTrainData["IterationId"].isNull()) - trainDatasObject.iterationId = valueTrainDatasTrainData["IterationId"].asString(); - if(!valueTrainDatasTrainData["DataId"].isNull()) - trainDatasObject.dataId = valueTrainDatasTrainData["DataId"].asString(); - if(!valueTrainDatasTrainData["DataName"].isNull()) - trainDatasObject.dataName = valueTrainDatasTrainData["DataName"].asString(); - if(!valueTrainDatasTrainData["DataUrl"].isNull()) - trainDatasObject.dataUrl = valueTrainDatasTrainData["DataUrl"].asString(); - if(!valueTrainDatasTrainData["CreationTime"].isNull()) - trainDatasObject.creationTime = valueTrainDatasTrainData["CreationTime"].asString(); - if(!valueTrainDatasTrainData["Status"].isNull()) - trainDatasObject.status = valueTrainDatasTrainData["Status"].asString(); - if(!valueTrainDatasTrainData["TagStatus"].isNull()) - trainDatasObject.tagStatus = valueTrainDatasTrainData["TagStatus"].asString(); - auto allTagItemsNode = allTrainDatasNode["TagItems"]["TagItem"]; - for (auto allTrainDatasNodeTagItemsTagItem : allTagItemsNode) - { - TrainData::TagItem tagItemsObject; - if(!allTrainDatasNodeTagItemsTagItem["TagId"].isNull()) - tagItemsObject.tagId = allTrainDatasNodeTagItemsTagItem["TagId"].asString(); - if(!allTrainDatasNodeTagItemsTagItem["RegionType"].isNull()) - tagItemsObject.regionType = allTrainDatasNodeTagItemsTagItem["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 deleted file mode 100644 index 7177ee4e9..000000000 --- a/ivision/src/model/DescribeTrainDatasRequest.cc +++ /dev/null @@ -1,126 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ivision::Model::DescribeTrainDatasRequest; - -DescribeTrainDatasRequest::DescribeTrainDatasRequest() : - RpcServiceRequest("ivision", "2019-03-08", "DescribeTrainDatas") -{} - -DescribeTrainDatasRequest::~DescribeTrainDatasRequest() -{} - -std::string DescribeTrainDatasRequest::getNextPageToken()const -{ - return nextPageToken_; -} - -void DescribeTrainDatasRequest::setNextPageToken(const std::string& nextPageToken) -{ - nextPageToken_ = nextPageToken; - setCoreParameter("NextPageToken", nextPageToken); -} - -std::string DescribeTrainDatasRequest::getTagStatus()const -{ - return tagStatus_; -} - -void DescribeTrainDatasRequest::setTagStatus(const std::string& tagStatus) -{ - tagStatus_ = tagStatus; - setCoreParameter("TagStatus", tagStatus); -} - -long DescribeTrainDatasRequest::getPageSize()const -{ - return pageSize_; -} - -void DescribeTrainDatasRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setCoreParameter("PageSize", std::to_string(pageSize)); -} - -std::string DescribeTrainDatasRequest::getProjectId()const -{ - return projectId_; -} - -void DescribeTrainDatasRequest::setProjectId(const std::string& projectId) -{ - projectId_ = projectId; - setCoreParameter("ProjectId", projectId); -} - -std::string DescribeTrainDatasRequest::getShowLog()const -{ - return showLog_; -} - -void DescribeTrainDatasRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -std::string DescribeTrainDatasRequest::getTagId()const -{ - return tagId_; -} - -void DescribeTrainDatasRequest::setTagId(const std::string& tagId) -{ - tagId_ = tagId; - setCoreParameter("TagId", tagId); -} - -long DescribeTrainDatasRequest::getCurrentPage()const -{ - return currentPage_; -} - -void DescribeTrainDatasRequest::setCurrentPage(long currentPage) -{ - currentPage_ = currentPage; - setCoreParameter("CurrentPage", std::to_string(currentPage)); -} - -long DescribeTrainDatasRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeTrainDatasRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeTrainDatasRequest::getIterationId()const -{ - return iterationId_; -} - -void DescribeTrainDatasRequest::setIterationId(const std::string& iterationId) -{ - iterationId_ = iterationId; - setCoreParameter("IterationId", iterationId); -} - diff --git a/ivision/src/model/DescribeTrainDatasResult.cc b/ivision/src/model/DescribeTrainDatasResult.cc deleted file mode 100644 index 624482569..000000000 --- a/ivision/src/model/DescribeTrainDatasResult.cc +++ /dev/null @@ -1,118 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#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 allTrainDatasNode = value["TrainDatas"]["TrainData"]; - for (auto valueTrainDatasTrainData : allTrainDatasNode) - { - TrainData trainDatasObject; - if(!valueTrainDatasTrainData["ProjectId"].isNull()) - trainDatasObject.projectId = valueTrainDatasTrainData["ProjectId"].asString(); - if(!valueTrainDatasTrainData["IterationId"].isNull()) - trainDatasObject.iterationId = valueTrainDatasTrainData["IterationId"].asString(); - if(!valueTrainDatasTrainData["DataId"].isNull()) - trainDatasObject.dataId = valueTrainDatasTrainData["DataId"].asString(); - if(!valueTrainDatasTrainData["DataName"].isNull()) - trainDatasObject.dataName = valueTrainDatasTrainData["DataName"].asString(); - if(!valueTrainDatasTrainData["DataUrl"].isNull()) - trainDatasObject.dataUrl = valueTrainDatasTrainData["DataUrl"].asString(); - if(!valueTrainDatasTrainData["CreationTime"].isNull()) - trainDatasObject.creationTime = valueTrainDatasTrainData["CreationTime"].asString(); - if(!valueTrainDatasTrainData["Status"].isNull()) - trainDatasObject.status = valueTrainDatasTrainData["Status"].asString(); - if(!valueTrainDatasTrainData["TagStatus"].isNull()) - trainDatasObject.tagStatus = valueTrainDatasTrainData["TagStatus"].asString(); - auto allTagItemsNode = allTrainDatasNode["TagItems"]["TagItem"]; - for (auto allTrainDatasNodeTagItemsTagItem : allTagItemsNode) - { - TrainData::TagItem tagItemsObject; - if(!allTrainDatasNodeTagItemsTagItem["TagId"].isNull()) - tagItemsObject.tagId = allTrainDatasNodeTagItemsTagItem["TagId"].asString(); - if(!allTrainDatasNodeTagItemsTagItem["RegionType"].isNull()) - tagItemsObject.regionType = allTrainDatasNodeTagItemsTagItem["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 deleted file mode 100644 index 70cb7c8fa..000000000 --- a/ivision/src/model/DescribeTrainResultRequest.cc +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ivision::Model::DescribeTrainResultRequest; - -DescribeTrainResultRequest::DescribeTrainResultRequest() : - RpcServiceRequest("ivision", "2019-03-08", "DescribeTrainResult") -{} - -DescribeTrainResultRequest::~DescribeTrainResultRequest() -{} - -std::string DescribeTrainResultRequest::getThreshold()const -{ - return threshold_; -} - -void DescribeTrainResultRequest::setThreshold(const std::string& threshold) -{ - threshold_ = threshold; - setCoreParameter("Threshold", threshold); -} - -std::string DescribeTrainResultRequest::getProjectId()const -{ - return projectId_; -} - -void DescribeTrainResultRequest::setProjectId(const std::string& projectId) -{ - projectId_ = projectId; - setCoreParameter("ProjectId", projectId); -} - -std::string DescribeTrainResultRequest::getShowLog()const -{ - return showLog_; -} - -void DescribeTrainResultRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -long DescribeTrainResultRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeTrainResultRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeTrainResultRequest::getIterationId()const -{ - return iterationId_; -} - -void DescribeTrainResultRequest::setIterationId(const std::string& iterationId) -{ - iterationId_ = iterationId; - setCoreParameter("IterationId", iterationId); -} - diff --git a/ivision/src/model/DescribeTrainResultResult.cc b/ivision/src/model/DescribeTrainResultResult.cc deleted file mode 100644 index 5cc48ddcd..000000000 --- a/ivision/src/model/DescribeTrainResultResult.cc +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#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 allTagResultsNode = trainResultNode["TagResults"]["TagResult"]; - for (auto trainResultNodeTagResultsTagResult : allTagResultsNode) - { - TrainResult::TagResult tagResultObject; - if(!trainResultNodeTagResultsTagResult["TagId"].isNull()) - tagResultObject.tagId = trainResultNodeTagResultsTagResult["TagId"].asString(); - if(!trainResultNodeTagResultsTagResult["TagName"].isNull()) - tagResultObject.tagName = trainResultNodeTagResultsTagResult["TagName"].asString(); - if(!trainResultNodeTagResultsTagResult["Precision"].isNull()) - tagResultObject.precision = trainResultNodeTagResultsTagResult["Precision"].asString(); - if(!trainResultNodeTagResultsTagResult["Recall"].isNull()) - tagResultObject.recall = trainResultNodeTagResultsTagResult["Recall"].asString(); - if(!trainResultNodeTagResultsTagResult["AP"].isNull()) - tagResultObject.aP = trainResultNodeTagResultsTagResult["AP"].asString(); - trainResult_.tagResults.push_back(tagResultObject); - } - -} - -DescribeTrainResultResult::TrainResult DescribeTrainResultResult::getTrainResult()const -{ - return trainResult_; -} - diff --git a/ivision/src/model/ImagePredictRequest.cc b/ivision/src/model/ImagePredictRequest.cc index 92431e508..b1cc89f67 100644 --- a/ivision/src/model/ImagePredictRequest.cc +++ b/ivision/src/model/ImagePredictRequest.cc @@ -20,7 +20,9 @@ using AlibabaCloud::Ivision::Model::ImagePredictRequest; ImagePredictRequest::ImagePredictRequest() : RpcServiceRequest("ivision", "2019-03-08", "ImagePredict") -{} +{ + setMethod(HttpRequest::Method::Get); +} ImagePredictRequest::~ImagePredictRequest() {} diff --git a/ivision/src/model/ModifyPredictTemplateAttributeRequest.cc b/ivision/src/model/ModifyPredictTemplateAttributeRequest.cc deleted file mode 100644 index b8f08f696..000000000 --- a/ivision/src/model/ModifyPredictTemplateAttributeRequest.cc +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ivision::Model::ModifyPredictTemplateAttributeRequest; - -ModifyPredictTemplateAttributeRequest::ModifyPredictTemplateAttributeRequest() : - RpcServiceRequest("ivision", "2019-03-08", "ModifyPredictTemplateAttribute") -{} - -ModifyPredictTemplateAttributeRequest::~ModifyPredictTemplateAttributeRequest() -{} - -std::string ModifyPredictTemplateAttributeRequest::getDescription()const -{ - return description_; -} - -void ModifyPredictTemplateAttributeRequest::setDescription(const std::string& description) -{ - description_ = description; - setCoreParameter("Description", description); -} - -std::string ModifyPredictTemplateAttributeRequest::getOutput()const -{ - return output_; -} - -void ModifyPredictTemplateAttributeRequest::setOutput(const std::string& output) -{ - output_ = output; - setCoreParameter("Output", output); -} - -std::string ModifyPredictTemplateAttributeRequest::getShowLog()const -{ - return showLog_; -} - -void ModifyPredictTemplateAttributeRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -long ModifyPredictTemplateAttributeRequest::getOwnerId()const -{ - return ownerId_; -} - -void ModifyPredictTemplateAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - -std::string ModifyPredictTemplateAttributeRequest::getTemplateId()const -{ - return templateId_; -} - -void ModifyPredictTemplateAttributeRequest::setTemplateId(const std::string& templateId) -{ - templateId_ = templateId; - setCoreParameter("TemplateId", templateId); -} - -std::string ModifyPredictTemplateAttributeRequest::getModelIds()const -{ - return modelIds_; -} - -void ModifyPredictTemplateAttributeRequest::setModelIds(const std::string& modelIds) -{ - modelIds_ = modelIds; - setCoreParameter("ModelIds", modelIds); -} - -std::string ModifyPredictTemplateAttributeRequest::getName()const -{ - return name_; -} - -void ModifyPredictTemplateAttributeRequest::setName(const std::string& name) -{ - name_ = name; - setCoreParameter("Name", name); -} - -int ModifyPredictTemplateAttributeRequest::getInterval()const -{ - return interval_; -} - -void ModifyPredictTemplateAttributeRequest::setInterval(int interval) -{ - interval_ = interval; - setCoreParameter("Interval", std::to_string(interval)); -} - diff --git a/ivision/src/model/ModifyPredictTemplateAttributeResult.cc b/ivision/src/model/ModifyPredictTemplateAttributeResult.cc deleted file mode 100644 index 39fc0e408..000000000 --- a/ivision/src/model/ModifyPredictTemplateAttributeResult.cc +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ivision; -using namespace AlibabaCloud::Ivision::Model; - -ModifyPredictTemplateAttributeResult::ModifyPredictTemplateAttributeResult() : - ServiceResult() -{} - -ModifyPredictTemplateAttributeResult::ModifyPredictTemplateAttributeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyPredictTemplateAttributeResult::~ModifyPredictTemplateAttributeResult() -{} - -void ModifyPredictTemplateAttributeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto _templateNode = value["Template"]; - if(!_templateNode["TemplateId"].isNull()) - _template_.templateId = _templateNode["TemplateId"].asString(); - if(!_templateNode["Name"].isNull()) - _template_.name = _templateNode["Name"].asString(); - if(!_templateNode["Description"].isNull()) - _template_.description = _templateNode["Description"].asString(); - if(!_templateNode["Interval"].isNull()) - _template_.interval = std::stoi(_templateNode["Interval"].asString()); - if(!_templateNode["Output"].isNull()) - _template_.output = _templateNode["Output"].asString(); - if(!_templateNode["ModelIds"].isNull()) - _template_.modelIds = _templateNode["ModelIds"].asString(); - if(!_templateNode["CreationTime"].isNull()) - _template_.creationTime = _templateNode["CreationTime"].asString(); - -} - -ModifyPredictTemplateAttributeResult::_Template ModifyPredictTemplateAttributeResult::get_Template()const -{ - return _template_; -} - diff --git a/ivision/src/model/ModifyProjectAttributeRequest.cc b/ivision/src/model/ModifyProjectAttributeRequest.cc deleted file mode 100644 index 56b8b3e18..000000000 --- a/ivision/src/model/ModifyProjectAttributeRequest.cc +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ivision::Model::ModifyProjectAttributeRequest; - -ModifyProjectAttributeRequest::ModifyProjectAttributeRequest() : - RpcServiceRequest("ivision", "2019-03-08", "ModifyProjectAttribute") -{} - -ModifyProjectAttributeRequest::~ModifyProjectAttributeRequest() -{} - -std::string ModifyProjectAttributeRequest::getDescription()const -{ - return description_; -} - -void ModifyProjectAttributeRequest::setDescription(const std::string& description) -{ - description_ = description; - setCoreParameter("Description", description); -} - -std::string ModifyProjectAttributeRequest::getProjectId()const -{ - return projectId_; -} - -void ModifyProjectAttributeRequest::setProjectId(const std::string& projectId) -{ - projectId_ = projectId; - setCoreParameter("ProjectId", projectId); -} - -std::string ModifyProjectAttributeRequest::getShowLog()const -{ - return showLog_; -} - -void ModifyProjectAttributeRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -long ModifyProjectAttributeRequest::getOwnerId()const -{ - return ownerId_; -} - -void ModifyProjectAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - -std::string ModifyProjectAttributeRequest::getName()const -{ - return name_; -} - -void ModifyProjectAttributeRequest::setName(const std::string& name) -{ - name_ = name; - setCoreParameter("Name", name); -} - diff --git a/ivision/src/model/ModifyProjectAttributeResult.cc b/ivision/src/model/ModifyProjectAttributeResult.cc deleted file mode 100644 index 177474408..000000000 --- a/ivision/src/model/ModifyProjectAttributeResult.cc +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#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 deleted file mode 100644 index bf8b3b668..000000000 --- a/ivision/src/model/ModifyTagAttributeRequest.cc +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ivision::Model::ModifyTagAttributeRequest; - -ModifyTagAttributeRequest::ModifyTagAttributeRequest() : - RpcServiceRequest("ivision", "2019-03-08", "ModifyTagAttribute") -{} - -ModifyTagAttributeRequest::~ModifyTagAttributeRequest() -{} - -std::string ModifyTagAttributeRequest::getDescription()const -{ - return description_; -} - -void ModifyTagAttributeRequest::setDescription(const std::string& description) -{ - description_ = description; - setCoreParameter("Description", description); -} - -std::string ModifyTagAttributeRequest::getProjectId()const -{ - return projectId_; -} - -void ModifyTagAttributeRequest::setProjectId(const std::string& projectId) -{ - projectId_ = projectId; - setCoreParameter("ProjectId", projectId); -} - -std::string ModifyTagAttributeRequest::getShowLog()const -{ - return showLog_; -} - -void ModifyTagAttributeRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -std::string ModifyTagAttributeRequest::getTagId()const -{ - return tagId_; -} - -void ModifyTagAttributeRequest::setTagId(const std::string& tagId) -{ - tagId_ = tagId; - setCoreParameter("TagId", tagId); -} - -long ModifyTagAttributeRequest::getOwnerId()const -{ - return ownerId_; -} - -void ModifyTagAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - -std::string ModifyTagAttributeRequest::getName()const -{ - return name_; -} - -void ModifyTagAttributeRequest::setName(const std::string& name) -{ - name_ = name; - setCoreParameter("Name", name); -} - diff --git a/ivision/src/model/ModifyTagAttributeResult.cc b/ivision/src/model/ModifyTagAttributeResult.cc deleted file mode 100644 index 09988f742..000000000 --- a/ivision/src/model/ModifyTagAttributeResult.cc +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#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 deleted file mode 100644 index 7de539eb6..000000000 --- a/ivision/src/model/ModifyTrainDataRegionTagAttributeRequest.cc +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ivision::Model::ModifyTrainDataRegionTagAttributeRequest; - -ModifyTrainDataRegionTagAttributeRequest::ModifyTrainDataRegionTagAttributeRequest() : - RpcServiceRequest("ivision", "2019-03-08", "ModifyTrainDataRegionTagAttribute") -{} - -ModifyTrainDataRegionTagAttributeRequest::~ModifyTrainDataRegionTagAttributeRequest() -{} - -std::string ModifyTrainDataRegionTagAttributeRequest::getProjectId()const -{ - return projectId_; -} - -void ModifyTrainDataRegionTagAttributeRequest::setProjectId(const std::string& projectId) -{ - projectId_ = projectId; - setCoreParameter("ProjectId", projectId); -} - -std::string ModifyTrainDataRegionTagAttributeRequest::getShowLog()const -{ - return showLog_; -} - -void ModifyTrainDataRegionTagAttributeRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -std::string ModifyTrainDataRegionTagAttributeRequest::getTagItems()const -{ - return tagItems_; -} - -void ModifyTrainDataRegionTagAttributeRequest::setTagItems(const std::string& tagItems) -{ - tagItems_ = tagItems; - setCoreParameter("TagItems", tagItems); -} - -long ModifyTrainDataRegionTagAttributeRequest::getOwnerId()const -{ - return ownerId_; -} - -void ModifyTrainDataRegionTagAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - -std::string ModifyTrainDataRegionTagAttributeRequest::getDataId()const -{ - return dataId_; -} - -void ModifyTrainDataRegionTagAttributeRequest::setDataId(const std::string& dataId) -{ - dataId_ = dataId; - setCoreParameter("DataId", dataId); -} - diff --git a/ivision/src/model/ModifyTrainDataRegionTagAttributeResult.cc b/ivision/src/model/ModifyTrainDataRegionTagAttributeResult.cc deleted file mode 100644 index cd6145b44..000000000 --- a/ivision/src/model/ModifyTrainDataRegionTagAttributeResult.cc +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#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 allTagItemsNode = trainDataNode["TagItems"]["TagItem"]; - for (auto trainDataNodeTagItemsTagItem : allTagItemsNode) - { - TrainData::TagItem tagItemObject; - if(!trainDataNodeTagItemsTagItem["TagId"].isNull()) - tagItemObject.tagId = trainDataNodeTagItemsTagItem["TagId"].asString(); - if(!trainDataNodeTagItemsTagItem["RegionType"].isNull()) - tagItemObject.regionType = trainDataNodeTagItemsTagItem["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 deleted file mode 100644 index ec688bf71..000000000 --- a/ivision/src/model/ModifyTrainDataTagAttributeRequest.cc +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ivision::Model::ModifyTrainDataTagAttributeRequest; - -ModifyTrainDataTagAttributeRequest::ModifyTrainDataTagAttributeRequest() : - RpcServiceRequest("ivision", "2019-03-08", "ModifyTrainDataTagAttribute") -{} - -ModifyTrainDataTagAttributeRequest::~ModifyTrainDataTagAttributeRequest() -{} - -std::string ModifyTrainDataTagAttributeRequest::getProjectId()const -{ - return projectId_; -} - -void ModifyTrainDataTagAttributeRequest::setProjectId(const std::string& projectId) -{ - projectId_ = projectId; - setCoreParameter("ProjectId", projectId); -} - -std::string ModifyTrainDataTagAttributeRequest::getShowLog()const -{ - return showLog_; -} - -void ModifyTrainDataTagAttributeRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -std::string ModifyTrainDataTagAttributeRequest::getTagItems()const -{ - return tagItems_; -} - -void ModifyTrainDataTagAttributeRequest::setTagItems(const std::string& tagItems) -{ - tagItems_ = tagItems; - setCoreParameter("TagItems", tagItems); -} - -long ModifyTrainDataTagAttributeRequest::getOwnerId()const -{ - return ownerId_; -} - -void ModifyTrainDataTagAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - -std::string ModifyTrainDataTagAttributeRequest::getDataId()const -{ - return dataId_; -} - -void ModifyTrainDataTagAttributeRequest::setDataId(const std::string& dataId) -{ - dataId_ = dataId; - setCoreParameter("DataId", dataId); -} - diff --git a/ivision/src/model/ModifyTrainDataTagAttributeResult.cc b/ivision/src/model/ModifyTrainDataTagAttributeResult.cc deleted file mode 100644 index 661e43e00..000000000 --- a/ivision/src/model/ModifyTrainDataTagAttributeResult.cc +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#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 allTagItemsNode = trainDataNode["TagItems"]["TagItem"]; - for (auto trainDataNodeTagItemsTagItem : allTagItemsNode) - { - TrainData::TagItem tagItemObject; - if(!trainDataNodeTagItemsTagItem["TagId"].isNull()) - tagItemObject.tagId = trainDataNodeTagItemsTagItem["TagId"].asString(); - if(!trainDataNodeTagItemsTagItem["RegionType"].isNull()) - tagItemObject.regionType = trainDataNodeTagItemsTagItem["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 deleted file mode 100644 index 35603b813..000000000 --- a/ivision/src/model/PredictImageRequest.cc +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ivision::Model::PredictImageRequest; - -PredictImageRequest::PredictImageRequest() : - RpcServiceRequest("ivision", "2019-03-08", "PredictImage") -{} - -PredictImageRequest::~PredictImageRequest() -{} - -std::string PredictImageRequest::getProjectId()const -{ - return projectId_; -} - -void PredictImageRequest::setProjectId(const std::string& projectId) -{ - projectId_ = projectId; - setCoreParameter("ProjectId", projectId); -} - -std::string PredictImageRequest::getShowLog()const -{ - return showLog_; -} - -void PredictImageRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -std::string PredictImageRequest::getModelId()const -{ - return modelId_; -} - -void PredictImageRequest::setModelId(const std::string& modelId) -{ - modelId_ = modelId; - setCoreParameter("ModelId", modelId); -} - -long PredictImageRequest::getOwnerId()const -{ - return ownerId_; -} - -void PredictImageRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - -std::string PredictImageRequest::getIterationId()const -{ - return iterationId_; -} - -void PredictImageRequest::setIterationId(const std::string& iterationId) -{ - iterationId_ = iterationId; - setCoreParameter("IterationId", iterationId); -} - -std::string PredictImageRequest::getDataUrls()const -{ - return dataUrls_; -} - -void PredictImageRequest::setDataUrls(const std::string& dataUrls) -{ - dataUrls_ = dataUrls; - setCoreParameter("DataUrls", dataUrls); -} - diff --git a/ivision/src/model/PredictImageResult.cc b/ivision/src/model/PredictImageResult.cc deleted file mode 100644 index a227f1507..000000000 --- a/ivision/src/model/PredictImageResult.cc +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#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 allPredictDatasNode = value["PredictDatas"]["PredictData"]; - for (auto valuePredictDatasPredictData : allPredictDatasNode) - { - PredictData predictDatasObject; - if(!valuePredictDatasPredictData["ProjectId"].isNull()) - predictDatasObject.projectId = valuePredictDatasPredictData["ProjectId"].asString(); - if(!valuePredictDatasPredictData["IterationId"].isNull()) - predictDatasObject.iterationId = valuePredictDatasPredictData["IterationId"].asString(); - if(!valuePredictDatasPredictData["ModelId"].isNull()) - predictDatasObject.modelId = valuePredictDatasPredictData["ModelId"].asString(); - if(!valuePredictDatasPredictData["DataId"].isNull()) - predictDatasObject.dataId = valuePredictDatasPredictData["DataId"].asString(); - if(!valuePredictDatasPredictData["DataName"].isNull()) - predictDatasObject.dataName = valuePredictDatasPredictData["DataName"].asString(); - if(!valuePredictDatasPredictData["DataUrl"].isNull()) - predictDatasObject.dataUrl = valuePredictDatasPredictData["DataUrl"].asString(); - if(!valuePredictDatasPredictData["CreationTime"].isNull()) - predictDatasObject.creationTime = valuePredictDatasPredictData["CreationTime"].asString(); - if(!valuePredictDatasPredictData["Status"].isNull()) - predictDatasObject.status = valuePredictDatasPredictData["Status"].asString(); - if(!valuePredictDatasPredictData["ErrorCode"].isNull()) - predictDatasObject.errorCode = valuePredictDatasPredictData["ErrorCode"].asString(); - if(!valuePredictDatasPredictData["ErrorMessage"].isNull()) - predictDatasObject.errorMessage = valuePredictDatasPredictData["ErrorMessage"].asString(); - auto allPredictionResultsNode = allPredictDatasNode["PredictionResults"]["PredictionResult"]; - for (auto allPredictDatasNodePredictionResultsPredictionResult : allPredictionResultsNode) - { - PredictData::PredictionResult predictionResultsObject; - if(!allPredictDatasNodePredictionResultsPredictionResult["TagId"].isNull()) - predictionResultsObject.tagId = allPredictDatasNodePredictionResultsPredictionResult["TagId"].asString(); - if(!allPredictDatasNodePredictionResultsPredictionResult["TagName"].isNull()) - predictionResultsObject.tagName = allPredictDatasNodePredictionResultsPredictionResult["TagName"].asString(); - if(!allPredictDatasNodePredictionResultsPredictionResult["Probability"].isNull()) - predictionResultsObject.probability = allPredictDatasNodePredictionResultsPredictionResult["Probability"].asString(); - if(!allPredictDatasNodePredictionResultsPredictionResult["Overlap"].isNull()) - predictionResultsObject.overlap = allPredictDatasNodePredictionResultsPredictionResult["Overlap"].asString(); - if(!allPredictDatasNodePredictionResultsPredictionResult["RegionType"].isNull()) - predictionResultsObject.regionType = allPredictDatasNodePredictionResultsPredictionResult["RegionType"].asString(); - if(!allPredictDatasNodePredictionResultsPredictionResult["Properties"].isNull()) - predictionResultsObject.properties = allPredictDatasNodePredictionResultsPredictionResult["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/QuickTestRequest.cc b/ivision/src/model/QuickTestRequest.cc deleted file mode 100644 index 8f4f3a87d..000000000 --- a/ivision/src/model/QuickTestRequest.cc +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ivision::Model::QuickTestRequest; - -QuickTestRequest::QuickTestRequest() : - RpcServiceRequest("ivision", "2019-03-08", "QuickTest") -{} - -QuickTestRequest::~QuickTestRequest() -{} - -std::string QuickTestRequest::getDataUrl()const -{ - return dataUrl_; -} - -void QuickTestRequest::setDataUrl(const std::string& dataUrl) -{ - dataUrl_ = dataUrl; - setCoreParameter("DataUrl", dataUrl); -} - -std::string QuickTestRequest::getProjectId()const -{ - return projectId_; -} - -void QuickTestRequest::setProjectId(const std::string& projectId) -{ - projectId_ = projectId; - setCoreParameter("ProjectId", projectId); -} - -std::string QuickTestRequest::getShowLog()const -{ - return showLog_; -} - -void QuickTestRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -long QuickTestRequest::getOwnerId()const -{ - return ownerId_; -} - -void QuickTestRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - -std::string QuickTestRequest::getIterationId()const -{ - return iterationId_; -} - -void QuickTestRequest::setIterationId(const std::string& iterationId) -{ - iterationId_ = iterationId; - setCoreParameter("IterationId", iterationId); -} - diff --git a/ivision/src/model/QuickTestResult.cc b/ivision/src/model/QuickTestResult.cc deleted file mode 100644 index 02d195272..000000000 --- a/ivision/src/model/QuickTestResult.cc +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ivision; -using namespace AlibabaCloud::Ivision::Model; - -QuickTestResult::QuickTestResult() : - ServiceResult() -{} - -QuickTestResult::QuickTestResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -QuickTestResult::~QuickTestResult() -{} - -void QuickTestResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto quickTestResultNode = value["QuickTestResult"]; - if(!quickTestResultNode["PredictId"].isNull()) - quickTestResult_.predictId = quickTestResultNode["PredictId"].asString(); - if(!quickTestResultNode["ProjectId"].isNull()) - quickTestResult_.projectId = quickTestResultNode["ProjectId"].asString(); - if(!quickTestResultNode["IterationId"].isNull()) - quickTestResult_.iterationId = quickTestResultNode["IterationId"].asString(); - if(!quickTestResultNode["DataUrl"].isNull()) - quickTestResult_.dataUrl = quickTestResultNode["DataUrl"].asString(); - if(!quickTestResultNode["PredictTime"].isNull()) - quickTestResult_.predictTime = quickTestResultNode["PredictTime"].asString(); - if(!quickTestResultNode["Status"].isNull()) - quickTestResult_.status = quickTestResultNode["Status"].asString(); - if(!quickTestResultNode["Code"].isNull()) - quickTestResult_.code = quickTestResultNode["Code"].asString(); - if(!quickTestResultNode["Message"].isNull()) - quickTestResult_.message = quickTestResultNode["Message"].asString(); - if(!quickTestResultNode["PredictResult"].isNull()) - quickTestResult_.predictResult = quickTestResultNode["PredictResult"].asString(); - -} - -QuickTestResult::QuickTestResult QuickTestResult::getQuickTestResult()const -{ - return quickTestResult_; -} - diff --git a/ivision/src/model/RegisterFaceRequest.cc b/ivision/src/model/RegisterFaceRequest.cc index a02270e83..42ee7e40e 100644 --- a/ivision/src/model/RegisterFaceRequest.cc +++ b/ivision/src/model/RegisterFaceRequest.cc @@ -20,77 +20,13 @@ using AlibabaCloud::Ivision::Model::RegisterFaceRequest; RegisterFaceRequest::RegisterFaceRequest() : RpcServiceRequest("ivision", "2019-03-08", "RegisterFace") -{} +{ + setMethod(HttpRequest::Method::Get); +} RegisterFaceRequest::~RegisterFaceRequest() {} -long RegisterFaceRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void RegisterFaceRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -long RegisterFaceRequest::getCallerParentId()const -{ - return callerParentId_; -} - -void RegisterFaceRequest::setCallerParentId(long callerParentId) -{ - callerParentId_ = callerParentId; - setCoreParameter("CallerParentId", std::to_string(callerParentId)); -} - -bool RegisterFaceRequest::getProxy_original_security_transport()const -{ - return proxy_original_security_transport_; -} - -void RegisterFaceRequest::setProxy_original_security_transport(bool proxy_original_security_transport) -{ - proxy_original_security_transport_ = proxy_original_security_transport; - setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); -} - -std::string RegisterFaceRequest::getProxy_original_source_ip()const -{ - return proxy_original_source_ip_; -} - -void RegisterFaceRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) -{ - proxy_original_source_ip_ = proxy_original_source_ip; - setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); -} - -std::string RegisterFaceRequest::getOwnerIdLoginEmail()const -{ - return ownerIdLoginEmail_; -} - -void RegisterFaceRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) -{ - ownerIdLoginEmail_ = ownerIdLoginEmail; - setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); -} - -std::string RegisterFaceRequest::getCallerType()const -{ - return callerType_; -} - -void RegisterFaceRequest::setCallerType(const std::string& callerType) -{ - callerType_ = callerType; - setCoreParameter("CallerType", callerType); -} - std::string RegisterFaceRequest::getContent()const { return content_; @@ -102,39 +38,6 @@ void RegisterFaceRequest::setContent(const std::string& content) setCoreParameter("Content", content); } -std::string RegisterFaceRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void RegisterFaceRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setCoreParameter("AccessKeyId", accessKeyId); -} - -std::string RegisterFaceRequest::getSecurityToken()const -{ - return securityToken_; -} - -void RegisterFaceRequest::setSecurityToken(const std::string& securityToken) -{ - securityToken_ = securityToken; - setCoreParameter("SecurityToken", securityToken); -} - -std::string RegisterFaceRequest::getRegionId()const -{ - return regionId_; -} - -void RegisterFaceRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setCoreParameter("RegionId", regionId); -} - std::string RegisterFaceRequest::getDataType()const { return dataType_; @@ -146,50 +49,6 @@ void RegisterFaceRequest::setDataType(const std::string& dataType) setCoreParameter("DataType", dataType); } -std::string RegisterFaceRequest::getRequestContent()const -{ - return requestContent_; -} - -void RegisterFaceRequest::setRequestContent(const std::string& requestContent) -{ - requestContent_ = requestContent; - setCoreParameter("RequestContent", requestContent); -} - -std::string RegisterFaceRequest::getCallerBidEmail()const -{ - return callerBidEmail_; -} - -void RegisterFaceRequest::setCallerBidEmail(const std::string& callerBidEmail) -{ - callerBidEmail_ = callerBidEmail; - setCoreParameter("CallerBidEmail", callerBidEmail); -} - -std::string RegisterFaceRequest::getCallerUidEmail()const -{ - return callerUidEmail_; -} - -void RegisterFaceRequest::setCallerUidEmail(const std::string& callerUidEmail) -{ - callerUidEmail_ = callerUidEmail; - setCoreParameter("CallerUidEmail", callerUidEmail); -} - -long RegisterFaceRequest::getCallerUid()const -{ - return callerUid_; -} - -void RegisterFaceRequest::setCallerUid(long callerUid) -{ - callerUid_ = callerUid; - setCoreParameter("CallerUid", std::to_string(callerUid)); -} - std::string RegisterFaceRequest::getShowLog()const { return showLog_; @@ -201,28 +60,6 @@ void RegisterFaceRequest::setShowLog(const std::string& showLog) setCoreParameter("ShowLog", showLog); } -std::string RegisterFaceRequest::getApp_ip()const -{ - return app_ip_; -} - -void RegisterFaceRequest::setApp_ip(const std::string& app_ip) -{ - app_ip_ = app_ip; - setCoreParameter("App_ip", app_ip); -} - -std::string RegisterFaceRequest::getPopProduct()const -{ - return popProduct_; -} - -void RegisterFaceRequest::setPopProduct(const std::string& popProduct) -{ - popProduct_ = popProduct; - setCoreParameter("PopProduct", popProduct); -} - std::string RegisterFaceRequest::getGroupId()const { return groupId_; @@ -234,17 +71,6 @@ void RegisterFaceRequest::setGroupId(const std::string& groupId) setCoreParameter("GroupId", groupId); } -std::string RegisterFaceRequest::getCallerBid()const -{ - return callerBid_; -} - -void RegisterFaceRequest::setCallerBid(const std::string& callerBid) -{ - callerBid_ = callerBid; - setCoreParameter("CallerBid", callerBid); -} - long RegisterFaceRequest::getOwnerId()const { return ownerId_; @@ -256,69 +82,3 @@ void RegisterFaceRequest::setOwnerId(long ownerId) setCoreParameter("OwnerId", std::to_string(ownerId)); } -std::string RegisterFaceRequest::getVersion()const -{ - return version_; -} - -void RegisterFaceRequest::setVersion(const std::string& version) -{ - version_ = version; - setCoreParameter("Version", version); -} - -bool RegisterFaceRequest::getProxy_trust_transport_info()const -{ - return proxy_trust_transport_info_; -} - -void RegisterFaceRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) -{ - proxy_trust_transport_info_ = proxy_trust_transport_info; - setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); -} - -bool RegisterFaceRequest::getAk_mfa_present()const -{ - return ak_mfa_present_; -} - -void RegisterFaceRequest::setAk_mfa_present(bool ak_mfa_present) -{ - ak_mfa_present_ = ak_mfa_present; - setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); -} - -bool RegisterFaceRequest::getSecurity_transport()const -{ - return security_transport_; -} - -void RegisterFaceRequest::setSecurity_transport(bool security_transport) -{ - security_transport_ = security_transport; - setCoreParameter("Security_transport", security_transport ? "true" : "false"); -} - -std::string RegisterFaceRequest::getServiceCode()const -{ - return serviceCode_; -} - -void RegisterFaceRequest::setServiceCode(const std::string& serviceCode) -{ - serviceCode_ = serviceCode; - setCoreParameter("ServiceCode", serviceCode); -} - -std::string RegisterFaceRequest::getRequestId()const -{ - return requestId_; -} - -void RegisterFaceRequest::setRequestId(const std::string& requestId) -{ - requestId_ = requestId; - setCoreParameter("RequestId", requestId); -} - diff --git a/ivision/src/model/RegisterFaceResult.cc b/ivision/src/model/RegisterFaceResult.cc index 0f54dd263..eedc941cd 100644 --- a/ivision/src/model/RegisterFaceResult.cc +++ b/ivision/src/model/RegisterFaceResult.cc @@ -35,20 +35,16 @@ RegisterFaceResult::~RegisterFaceResult() void RegisterFaceResult::parse(const std::string &payload) { - Json::CharReaderBuilder builder; - Json::CharReader *reader = builder.newCharReader(); - Json::Value *val; + Json::Reader reader; Json::Value value; - JSONCPP_STRING *errs; - reader->parse(payload.data(), payload.data() + payload.size(), val, errs); - value = *val; + reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allFaces = value["Faces"]["Face"]; - for (auto value : allFaces) + auto allFacesNode = value["Faces"]["Face"]; + for (auto valueFacesFace : allFacesNode) { Face facesObject; - if(!value["FaceToken"].isNull()) - facesObject.faceToken = value["FaceToken"].asString(); + if(!valueFacesFace["FaceToken"].isNull()) + facesObject.faceToken = valueFacesFace["FaceToken"].asString(); auto rectNode = value["Rect"]; if(!rectNode["Left"].isNull()) facesObject.rect.left = std::stoi(rectNode["Left"].asString()); diff --git a/ivision/src/model/SearchFaceRequest.cc b/ivision/src/model/SearchFaceRequest.cc index 3a34a46fa..d39cdc516 100644 --- a/ivision/src/model/SearchFaceRequest.cc +++ b/ivision/src/model/SearchFaceRequest.cc @@ -20,77 +20,13 @@ using AlibabaCloud::Ivision::Model::SearchFaceRequest; SearchFaceRequest::SearchFaceRequest() : RpcServiceRequest("ivision", "2019-03-08", "SearchFace") -{} +{ + setMethod(HttpRequest::Method::Get); +} SearchFaceRequest::~SearchFaceRequest() {} -long SearchFaceRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void SearchFaceRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -long SearchFaceRequest::getCallerParentId()const -{ - return callerParentId_; -} - -void SearchFaceRequest::setCallerParentId(long callerParentId) -{ - callerParentId_ = callerParentId; - setCoreParameter("CallerParentId", std::to_string(callerParentId)); -} - -bool SearchFaceRequest::getProxy_original_security_transport()const -{ - return proxy_original_security_transport_; -} - -void SearchFaceRequest::setProxy_original_security_transport(bool proxy_original_security_transport) -{ - proxy_original_security_transport_ = proxy_original_security_transport; - setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); -} - -std::string SearchFaceRequest::getProxy_original_source_ip()const -{ - return proxy_original_source_ip_; -} - -void SearchFaceRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) -{ - proxy_original_source_ip_ = proxy_original_source_ip; - setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); -} - -std::string SearchFaceRequest::getOwnerIdLoginEmail()const -{ - return ownerIdLoginEmail_; -} - -void SearchFaceRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) -{ - ownerIdLoginEmail_ = ownerIdLoginEmail; - setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); -} - -std::string SearchFaceRequest::getCallerType()const -{ - return callerType_; -} - -void SearchFaceRequest::setCallerType(const std::string& callerType) -{ - callerType_ = callerType; - setCoreParameter("CallerType", callerType); -} - std::string SearchFaceRequest::getContent()const { return content_; @@ -102,39 +38,6 @@ void SearchFaceRequest::setContent(const std::string& content) setCoreParameter("Content", content); } -std::string SearchFaceRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void SearchFaceRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setCoreParameter("AccessKeyId", accessKeyId); -} - -std::string SearchFaceRequest::getSecurityToken()const -{ - return securityToken_; -} - -void SearchFaceRequest::setSecurityToken(const std::string& securityToken) -{ - securityToken_ = securityToken; - setCoreParameter("SecurityToken", securityToken); -} - -std::string SearchFaceRequest::getRegionId()const -{ - return regionId_; -} - -void SearchFaceRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setCoreParameter("RegionId", regionId); -} - std::string SearchFaceRequest::getDataType()const { return dataType_; @@ -146,28 +49,6 @@ void SearchFaceRequest::setDataType(const std::string& dataType) setCoreParameter("DataType", dataType); } -std::string SearchFaceRequest::getRequestContent()const -{ - return requestContent_; -} - -void SearchFaceRequest::setRequestContent(const std::string& requestContent) -{ - requestContent_ = requestContent; - setCoreParameter("RequestContent", requestContent); -} - -std::string SearchFaceRequest::getCallerBidEmail()const -{ - return callerBidEmail_; -} - -void SearchFaceRequest::setCallerBidEmail(const std::string& callerBidEmail) -{ - callerBidEmail_ = callerBidEmail; - setCoreParameter("CallerBidEmail", callerBidEmail); -} - float SearchFaceRequest::getProbabilityThreshold()const { return probabilityThreshold_; @@ -179,28 +60,6 @@ void SearchFaceRequest::setProbabilityThreshold(float probabilityThreshold) setCoreParameter("ProbabilityThreshold", std::to_string(probabilityThreshold)); } -std::string SearchFaceRequest::getCallerUidEmail()const -{ - return callerUidEmail_; -} - -void SearchFaceRequest::setCallerUidEmail(const std::string& callerUidEmail) -{ - callerUidEmail_ = callerUidEmail; - setCoreParameter("CallerUidEmail", callerUidEmail); -} - -long SearchFaceRequest::getCallerUid()const -{ - return callerUid_; -} - -void SearchFaceRequest::setCallerUid(long callerUid) -{ - callerUid_ = callerUid; - setCoreParameter("CallerUid", std::to_string(callerUid)); -} - std::string SearchFaceRequest::getShowLog()const { return showLog_; @@ -212,28 +71,6 @@ void SearchFaceRequest::setShowLog(const std::string& showLog) setCoreParameter("ShowLog", showLog); } -std::string SearchFaceRequest::getApp_ip()const -{ - return app_ip_; -} - -void SearchFaceRequest::setApp_ip(const std::string& app_ip) -{ - app_ip_ = app_ip; - setCoreParameter("App_ip", app_ip); -} - -std::string SearchFaceRequest::getPopProduct()const -{ - return popProduct_; -} - -void SearchFaceRequest::setPopProduct(const std::string& popProduct) -{ - popProduct_ = popProduct; - setCoreParameter("PopProduct", popProduct); -} - std::string SearchFaceRequest::getGroupId()const { return groupId_; @@ -256,17 +93,6 @@ void SearchFaceRequest::setCount(int count) setCoreParameter("Count", std::to_string(count)); } -std::string SearchFaceRequest::getCallerBid()const -{ - return callerBid_; -} - -void SearchFaceRequest::setCallerBid(const std::string& callerBid) -{ - callerBid_ = callerBid; - setCoreParameter("CallerBid", callerBid); -} - long SearchFaceRequest::getOwnerId()const { return ownerId_; @@ -278,69 +104,3 @@ void SearchFaceRequest::setOwnerId(long ownerId) setCoreParameter("OwnerId", std::to_string(ownerId)); } -std::string SearchFaceRequest::getVersion()const -{ - return version_; -} - -void SearchFaceRequest::setVersion(const std::string& version) -{ - version_ = version; - setCoreParameter("Version", version); -} - -bool SearchFaceRequest::getProxy_trust_transport_info()const -{ - return proxy_trust_transport_info_; -} - -void SearchFaceRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) -{ - proxy_trust_transport_info_ = proxy_trust_transport_info; - setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); -} - -bool SearchFaceRequest::getAk_mfa_present()const -{ - return ak_mfa_present_; -} - -void SearchFaceRequest::setAk_mfa_present(bool ak_mfa_present) -{ - ak_mfa_present_ = ak_mfa_present; - setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); -} - -bool SearchFaceRequest::getSecurity_transport()const -{ - return security_transport_; -} - -void SearchFaceRequest::setSecurity_transport(bool security_transport) -{ - security_transport_ = security_transport; - setCoreParameter("Security_transport", security_transport ? "true" : "false"); -} - -std::string SearchFaceRequest::getServiceCode()const -{ - return serviceCode_; -} - -void SearchFaceRequest::setServiceCode(const std::string& serviceCode) -{ - serviceCode_ = serviceCode; - setCoreParameter("ServiceCode", serviceCode); -} - -std::string SearchFaceRequest::getRequestId()const -{ - return requestId_; -} - -void SearchFaceRequest::setRequestId(const std::string& requestId) -{ - requestId_ = requestId; - setCoreParameter("RequestId", requestId); -} - diff --git a/ivision/src/model/SearchFaceResult.cc b/ivision/src/model/SearchFaceResult.cc index a4112140b..f81b4c41c 100644 --- a/ivision/src/model/SearchFaceResult.cc +++ b/ivision/src/model/SearchFaceResult.cc @@ -35,22 +35,18 @@ SearchFaceResult::~SearchFaceResult() void SearchFaceResult::parse(const std::string &payload) { - Json::CharReaderBuilder builder; - Json::CharReader *reader = builder.newCharReader(); - Json::Value *val; + Json::Reader reader; Json::Value value; - JSONCPP_STRING *errs; - reader->parse(payload.data(), payload.data() + payload.size(), val, errs); - value = *val; + reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allFaceResults = value["FaceResults"]["FaceResult"]; - for (auto value : allFaceResults) + auto allFaceResultsNode = value["FaceResults"]["FaceResult"]; + for (auto valueFaceResultsFaceResult : allFaceResultsNode) { FaceResult faceResultsObject; - if(!value["FaceToken"].isNull()) - faceResultsObject.faceToken = value["FaceToken"].asString(); - if(!value["Probability"].isNull()) - faceResultsObject.probability = std::stof(value["Probability"].asString()); + if(!valueFaceResultsFaceResult["FaceToken"].isNull()) + faceResultsObject.faceToken = valueFaceResultsFaceResult["FaceToken"].asString(); + if(!valueFaceResultsFaceResult["Probability"].isNull()) + faceResultsObject.probability = std::stof(valueFaceResultsFaceResult["Probability"].asString()); faceResults_.push_back(faceResultsObject); } auto rectNode = value["Rect"]; diff --git a/ivision/src/model/StartStreamPredictRequest.cc b/ivision/src/model/StartStreamPredictRequest.cc index 83ed89d21..afa6dcfa7 100644 --- a/ivision/src/model/StartStreamPredictRequest.cc +++ b/ivision/src/model/StartStreamPredictRequest.cc @@ -20,41 +20,43 @@ using AlibabaCloud::Ivision::Model::StartStreamPredictRequest; StartStreamPredictRequest::StartStreamPredictRequest() : RpcServiceRequest("ivision", "2019-03-08", "StartStreamPredict") -{} +{ + setMethod(HttpRequest::Method::Post); +} StartStreamPredictRequest::~StartStreamPredictRequest() {} -std::string StartStreamPredictRequest::getPredictId()const -{ - return predictId_; -} - -void StartStreamPredictRequest::setPredictId(const std::string& predictId) -{ - predictId_ = predictId; - setCoreParameter("PredictId", predictId); -} - -std::string StartStreamPredictRequest::getShowLog()const -{ - return showLog_; -} - -void StartStreamPredictRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -long StartStreamPredictRequest::getOwnerId()const -{ - return ownerId_; -} - -void StartStreamPredictRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - +std::string StartStreamPredictRequest::getPredictId()const +{ + return predictId_; +} + +void StartStreamPredictRequest::setPredictId(const std::string& predictId) +{ + predictId_ = predictId; + setCoreParameter("PredictId", predictId); +} + +std::string StartStreamPredictRequest::getShowLog()const +{ + return showLog_; +} + +void StartStreamPredictRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setCoreParameter("ShowLog", showLog); +} + +long StartStreamPredictRequest::getOwnerId()const +{ + return ownerId_; +} + +void StartStreamPredictRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ivision/src/model/StopStreamPredictRequest.cc b/ivision/src/model/StopStreamPredictRequest.cc index 26a0316f3..e3e6f33d5 100644 --- a/ivision/src/model/StopStreamPredictRequest.cc +++ b/ivision/src/model/StopStreamPredictRequest.cc @@ -20,41 +20,43 @@ using AlibabaCloud::Ivision::Model::StopStreamPredictRequest; StopStreamPredictRequest::StopStreamPredictRequest() : RpcServiceRequest("ivision", "2019-03-08", "StopStreamPredict") -{} +{ + setMethod(HttpRequest::Method::Post); +} StopStreamPredictRequest::~StopStreamPredictRequest() {} -std::string StopStreamPredictRequest::getPredictId()const -{ - return predictId_; -} - -void StopStreamPredictRequest::setPredictId(const std::string& predictId) -{ - predictId_ = predictId; - setCoreParameter("PredictId", predictId); -} - -std::string StopStreamPredictRequest::getShowLog()const -{ - return showLog_; -} - -void StopStreamPredictRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -long StopStreamPredictRequest::getOwnerId()const -{ - return ownerId_; -} - -void StopStreamPredictRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - +std::string StopStreamPredictRequest::getPredictId()const +{ + return predictId_; +} + +void StopStreamPredictRequest::setPredictId(const std::string& predictId) +{ + predictId_ = predictId; + setCoreParameter("PredictId", predictId); +} + +std::string StopStreamPredictRequest::getShowLog()const +{ + return showLog_; +} + +void StopStreamPredictRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setCoreParameter("ShowLog", showLog); +} + +long StopStreamPredictRequest::getOwnerId()const +{ + return ownerId_; +} + +void StopStreamPredictRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ivision/src/model/TrainProjectRequest.cc b/ivision/src/model/TrainProjectRequest.cc deleted file mode 100644 index 2be340628..000000000 --- a/ivision/src/model/TrainProjectRequest.cc +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ivision::Model::TrainProjectRequest; - -TrainProjectRequest::TrainProjectRequest() : - RpcServiceRequest("ivision", "2019-03-08", "TrainProject") -{} - -TrainProjectRequest::~TrainProjectRequest() -{} - -std::string TrainProjectRequest::getProjectId()const -{ - return projectId_; -} - -void TrainProjectRequest::setProjectId(const std::string& projectId) -{ - projectId_ = projectId; - setCoreParameter("ProjectId", projectId); -} - -std::string TrainProjectRequest::getShowLog()const -{ - return showLog_; -} - -void TrainProjectRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -long TrainProjectRequest::getOwnerId()const -{ - return ownerId_; -} - -void TrainProjectRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - diff --git a/ivision/src/model/TrainProjectResult.cc b/ivision/src/model/TrainProjectResult.cc deleted file mode 100644 index c67b9e9be..000000000 --- a/ivision/src/model/TrainProjectResult.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#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_; -} - diff --git a/ivision/src/model/UnregisterFaceRequest.cc b/ivision/src/model/UnregisterFaceRequest.cc index af7c6de5f..c819c516a 100644 --- a/ivision/src/model/UnregisterFaceRequest.cc +++ b/ivision/src/model/UnregisterFaceRequest.cc @@ -20,154 +20,13 @@ using AlibabaCloud::Ivision::Model::UnregisterFaceRequest; UnregisterFaceRequest::UnregisterFaceRequest() : RpcServiceRequest("ivision", "2019-03-08", "UnregisterFace") -{} +{ + setMethod(HttpRequest::Method::Get); +} UnregisterFaceRequest::~UnregisterFaceRequest() {} -long UnregisterFaceRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void UnregisterFaceRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -long UnregisterFaceRequest::getCallerParentId()const -{ - return callerParentId_; -} - -void UnregisterFaceRequest::setCallerParentId(long callerParentId) -{ - callerParentId_ = callerParentId; - setCoreParameter("CallerParentId", std::to_string(callerParentId)); -} - -bool UnregisterFaceRequest::getProxy_original_security_transport()const -{ - return proxy_original_security_transport_; -} - -void UnregisterFaceRequest::setProxy_original_security_transport(bool proxy_original_security_transport) -{ - proxy_original_security_transport_ = proxy_original_security_transport; - setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); -} - -std::string UnregisterFaceRequest::getProxy_original_source_ip()const -{ - return proxy_original_source_ip_; -} - -void UnregisterFaceRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) -{ - proxy_original_source_ip_ = proxy_original_source_ip; - setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); -} - -std::string UnregisterFaceRequest::getOwnerIdLoginEmail()const -{ - return ownerIdLoginEmail_; -} - -void UnregisterFaceRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) -{ - ownerIdLoginEmail_ = ownerIdLoginEmail; - setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); -} - -std::string UnregisterFaceRequest::getCallerType()const -{ - return callerType_; -} - -void UnregisterFaceRequest::setCallerType(const std::string& callerType) -{ - callerType_ = callerType; - setCoreParameter("CallerType", callerType); -} - -std::string UnregisterFaceRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void UnregisterFaceRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setCoreParameter("AccessKeyId", accessKeyId); -} - -std::string UnregisterFaceRequest::getSecurityToken()const -{ - return securityToken_; -} - -void UnregisterFaceRequest::setSecurityToken(const std::string& securityToken) -{ - securityToken_ = securityToken; - setCoreParameter("SecurityToken", securityToken); -} - -std::string UnregisterFaceRequest::getRegionId()const -{ - return regionId_; -} - -void UnregisterFaceRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setCoreParameter("RegionId", regionId); -} - -std::string UnregisterFaceRequest::getRequestContent()const -{ - return requestContent_; -} - -void UnregisterFaceRequest::setRequestContent(const std::string& requestContent) -{ - requestContent_ = requestContent; - setCoreParameter("RequestContent", requestContent); -} - -std::string UnregisterFaceRequest::getCallerBidEmail()const -{ - return callerBidEmail_; -} - -void UnregisterFaceRequest::setCallerBidEmail(const std::string& callerBidEmail) -{ - callerBidEmail_ = callerBidEmail; - setCoreParameter("CallerBidEmail", callerBidEmail); -} - -std::string UnregisterFaceRequest::getCallerUidEmail()const -{ - return callerUidEmail_; -} - -void UnregisterFaceRequest::setCallerUidEmail(const std::string& callerUidEmail) -{ - callerUidEmail_ = callerUidEmail; - setCoreParameter("CallerUidEmail", callerUidEmail); -} - -long UnregisterFaceRequest::getCallerUid()const -{ - return callerUid_; -} - -void UnregisterFaceRequest::setCallerUid(long callerUid) -{ - callerUid_ = callerUid; - setCoreParameter("CallerUid", std::to_string(callerUid)); -} - std::string UnregisterFaceRequest::getShowLog()const { return showLog_; @@ -179,28 +38,6 @@ void UnregisterFaceRequest::setShowLog(const std::string& showLog) setCoreParameter("ShowLog", showLog); } -std::string UnregisterFaceRequest::getApp_ip()const -{ - return app_ip_; -} - -void UnregisterFaceRequest::setApp_ip(const std::string& app_ip) -{ - app_ip_ = app_ip; - setCoreParameter("App_ip", app_ip); -} - -std::string UnregisterFaceRequest::getPopProduct()const -{ - return popProduct_; -} - -void UnregisterFaceRequest::setPopProduct(const std::string& popProduct) -{ - popProduct_ = popProduct; - setCoreParameter("PopProduct", popProduct); -} - std::string UnregisterFaceRequest::getGroupId()const { return groupId_; @@ -212,17 +49,6 @@ void UnregisterFaceRequest::setGroupId(const std::string& groupId) setCoreParameter("GroupId", groupId); } -std::string UnregisterFaceRequest::getCallerBid()const -{ - return callerBid_; -} - -void UnregisterFaceRequest::setCallerBid(const std::string& callerBid) -{ - callerBid_ = callerBid; - setCoreParameter("CallerBid", callerBid); -} - long UnregisterFaceRequest::getOwnerId()const { return ownerId_; @@ -234,50 +60,6 @@ void UnregisterFaceRequest::setOwnerId(long ownerId) setCoreParameter("OwnerId", std::to_string(ownerId)); } -std::string UnregisterFaceRequest::getVersion()const -{ - return version_; -} - -void UnregisterFaceRequest::setVersion(const std::string& version) -{ - version_ = version; - setCoreParameter("Version", version); -} - -bool UnregisterFaceRequest::getProxy_trust_transport_info()const -{ - return proxy_trust_transport_info_; -} - -void UnregisterFaceRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) -{ - proxy_trust_transport_info_ = proxy_trust_transport_info; - setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); -} - -bool UnregisterFaceRequest::getAk_mfa_present()const -{ - return ak_mfa_present_; -} - -void UnregisterFaceRequest::setAk_mfa_present(bool ak_mfa_present) -{ - ak_mfa_present_ = ak_mfa_present; - setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); -} - -bool UnregisterFaceRequest::getSecurity_transport()const -{ - return security_transport_; -} - -void UnregisterFaceRequest::setSecurity_transport(bool security_transport) -{ - security_transport_ = security_transport; - setCoreParameter("Security_transport", security_transport ? "true" : "false"); -} - std::string UnregisterFaceRequest::getFaceToken()const { return faceToken_; @@ -289,25 +71,3 @@ void UnregisterFaceRequest::setFaceToken(const std::string& faceToken) setCoreParameter("FaceToken", faceToken); } -std::string UnregisterFaceRequest::getServiceCode()const -{ - return serviceCode_; -} - -void UnregisterFaceRequest::setServiceCode(const std::string& serviceCode) -{ - serviceCode_ = serviceCode; - setCoreParameter("ServiceCode", serviceCode); -} - -std::string UnregisterFaceRequest::getRequestId()const -{ - return requestId_; -} - -void UnregisterFaceRequest::setRequestId(const std::string& requestId) -{ - requestId_ = requestId; - setCoreParameter("RequestId", requestId); -} - diff --git a/ivision/src/model/UnregisterFaceResult.cc b/ivision/src/model/UnregisterFaceResult.cc index 0a848b8a1..3b47cc486 100644 --- a/ivision/src/model/UnregisterFaceResult.cc +++ b/ivision/src/model/UnregisterFaceResult.cc @@ -35,13 +35,9 @@ UnregisterFaceResult::~UnregisterFaceResult() void UnregisterFaceResult::parse(const std::string &payload) { - Json::CharReaderBuilder builder; - Json::CharReader *reader = builder.newCharReader(); - Json::Value *val; + Json::Reader reader; Json::Value value; - JSONCPP_STRING *errs; - reader->parse(payload.data(), payload.data() + payload.size(), val, errs); - value = *val; + reader.parse(payload, value); setRequestId(value["RequestId"].asString()); if(!value["GroupId"].isNull()) groupId_ = value["GroupId"].asString();