Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
586250dbe5 | ||
|
|
51b76b4599 | ||
|
|
ff63a49df8 | ||
|
|
51589f4643 |
12
CHANGELOG
12
CHANGELOG
@@ -1,3 +1,15 @@
|
||||
2019-08-30 Version 1.36.101
|
||||
- Supported Meida complex for IMM.
|
||||
|
||||
2019-08-30 Version 1.36.100
|
||||
- Add api for getTrace and searchTracelist.
|
||||
|
||||
2019-08-29 Version 1.36.99
|
||||
- Move StopExecution params to body.
|
||||
|
||||
2019-08-29 Version 1.36.98
|
||||
- For publish.
|
||||
|
||||
2019-08-28 Version 1.36.97
|
||||
- Add DBS API UpgradeBackupPlan.
|
||||
- Add DBS API DescribePreCheckProgressList.
|
||||
|
||||
@@ -23,12 +23,22 @@ set(fnf_public_header
|
||||
set(fnf_public_header_model
|
||||
include/alibabacloud/fnf/model/UpdateFlowRequest.h
|
||||
include/alibabacloud/fnf/model/UpdateFlowResult.h
|
||||
include/alibabacloud/fnf/model/DeleteFlowRequest.h
|
||||
include/alibabacloud/fnf/model/DeleteFlowResult.h
|
||||
include/alibabacloud/fnf/model/CreateFlowRequest.h
|
||||
include/alibabacloud/fnf/model/CreateFlowResult.h
|
||||
include/alibabacloud/fnf/model/DescribeExecutionRequest.h
|
||||
include/alibabacloud/fnf/model/DescribeExecutionResult.h
|
||||
include/alibabacloud/fnf/model/ReportTaskFailedRequest.h
|
||||
include/alibabacloud/fnf/model/ReportTaskFailedResult.h
|
||||
include/alibabacloud/fnf/model/DescribeFlowRequest.h
|
||||
include/alibabacloud/fnf/model/DescribeFlowResult.h
|
||||
include/alibabacloud/fnf/model/StopExecutionRequest.h
|
||||
include/alibabacloud/fnf/model/StopExecutionResult.h
|
||||
include/alibabacloud/fnf/model/StartExecutionRequest.h
|
||||
include/alibabacloud/fnf/model/StartExecutionResult.h
|
||||
include/alibabacloud/fnf/model/GetExecutionHistoryRequest.h
|
||||
include/alibabacloud/fnf/model/GetExecutionHistoryResult.h
|
||||
include/alibabacloud/fnf/model/ListExecutionsRequest.h
|
||||
include/alibabacloud/fnf/model/ListExecutionsResult.h
|
||||
include/alibabacloud/fnf/model/ReportTaskSucceededRequest.h
|
||||
@@ -40,12 +50,22 @@ set(fnf_src
|
||||
src/FnfClient.cc
|
||||
src/model/UpdateFlowRequest.cc
|
||||
src/model/UpdateFlowResult.cc
|
||||
src/model/DeleteFlowRequest.cc
|
||||
src/model/DeleteFlowResult.cc
|
||||
src/model/CreateFlowRequest.cc
|
||||
src/model/CreateFlowResult.cc
|
||||
src/model/DescribeExecutionRequest.cc
|
||||
src/model/DescribeExecutionResult.cc
|
||||
src/model/ReportTaskFailedRequest.cc
|
||||
src/model/ReportTaskFailedResult.cc
|
||||
src/model/DescribeFlowRequest.cc
|
||||
src/model/DescribeFlowResult.cc
|
||||
src/model/StopExecutionRequest.cc
|
||||
src/model/StopExecutionResult.cc
|
||||
src/model/StartExecutionRequest.cc
|
||||
src/model/StartExecutionResult.cc
|
||||
src/model/GetExecutionHistoryRequest.cc
|
||||
src/model/GetExecutionHistoryResult.cc
|
||||
src/model/ListExecutionsRequest.cc
|
||||
src/model/ListExecutionsResult.cc
|
||||
src/model/ReportTaskSucceededRequest.cc
|
||||
|
||||
@@ -39,10 +39,10 @@ set(imm_public_header_model
|
||||
include/alibabacloud/imm/model/ListFaceSearchGroupUsersResult.h
|
||||
include/alibabacloud/imm/model/ListFaceSearchGroupImagesRequest.h
|
||||
include/alibabacloud/imm/model/ListFaceSearchGroupImagesResult.h
|
||||
include/alibabacloud/imm/model/ListSetsRequest.h
|
||||
include/alibabacloud/imm/model/ListSetsResult.h
|
||||
include/alibabacloud/imm/model/PutProjectRequest.h
|
||||
include/alibabacloud/imm/model/PutProjectResult.h
|
||||
include/alibabacloud/imm/model/ListSetsRequest.h
|
||||
include/alibabacloud/imm/model/ListSetsResult.h
|
||||
include/alibabacloud/imm/model/FindImagesRequest.h
|
||||
include/alibabacloud/imm/model/FindImagesResult.h
|
||||
include/alibabacloud/imm/model/DetectImageLogosRequest.h
|
||||
@@ -61,10 +61,10 @@ set(imm_public_header_model
|
||||
include/alibabacloud/imm/model/DetectImageCelebrityResult.h
|
||||
include/alibabacloud/imm/model/ListFaceSearchGroupsRequest.h
|
||||
include/alibabacloud/imm/model/ListFaceSearchGroupsResult.h
|
||||
include/alibabacloud/imm/model/DeletePornBatchDetectJobRequest.h
|
||||
include/alibabacloud/imm/model/DeletePornBatchDetectJobResult.h
|
||||
include/alibabacloud/imm/model/GetTagSetRequest.h
|
||||
include/alibabacloud/imm/model/GetTagSetResult.h
|
||||
include/alibabacloud/imm/model/DeletePornBatchDetectJobRequest.h
|
||||
include/alibabacloud/imm/model/DeletePornBatchDetectJobResult.h
|
||||
include/alibabacloud/imm/model/ListTagPhotosRequest.h
|
||||
include/alibabacloud/imm/model/ListTagPhotosResult.h
|
||||
include/alibabacloud/imm/model/DeleteFaceSearchImageByIdRequest.h
|
||||
@@ -85,16 +85,18 @@ set(imm_public_header_model
|
||||
include/alibabacloud/imm/model/CompareImageFacesResult.h
|
||||
include/alibabacloud/imm/model/DeleteTagJobRequest.h
|
||||
include/alibabacloud/imm/model/DeleteTagJobResult.h
|
||||
include/alibabacloud/imm/model/CreateMediaComplexTaskRequest.h
|
||||
include/alibabacloud/imm/model/CreateMediaComplexTaskResult.h
|
||||
include/alibabacloud/imm/model/PhotoProcessRequest.h
|
||||
include/alibabacloud/imm/model/PhotoProcessResult.h
|
||||
include/alibabacloud/imm/model/DeleteFaceSearchUserRequest.h
|
||||
include/alibabacloud/imm/model/DeleteFaceSearchUserResult.h
|
||||
include/alibabacloud/imm/model/GetOfficeConversionTaskRequest.h
|
||||
include/alibabacloud/imm/model/GetOfficeConversionTaskResult.h
|
||||
include/alibabacloud/imm/model/CreateTagSetRequest.h
|
||||
include/alibabacloud/imm/model/CreateTagSetResult.h
|
||||
include/alibabacloud/imm/model/RegistFaceRequest.h
|
||||
include/alibabacloud/imm/model/RegistFaceResult.h
|
||||
include/alibabacloud/imm/model/CreateTagSetRequest.h
|
||||
include/alibabacloud/imm/model/CreateTagSetResult.h
|
||||
include/alibabacloud/imm/model/GetFaceSearchUserRequest.h
|
||||
include/alibabacloud/imm/model/GetFaceSearchUserResult.h
|
||||
include/alibabacloud/imm/model/CreateFaceSetRequest.h
|
||||
@@ -123,10 +125,10 @@ set(imm_public_header_model
|
||||
include/alibabacloud/imm/model/DetectTagResult.h
|
||||
include/alibabacloud/imm/model/CreateCADConversionTaskRequest.h
|
||||
include/alibabacloud/imm/model/CreateCADConversionTaskResult.h
|
||||
include/alibabacloud/imm/model/DeleteFaceJobRequest.h
|
||||
include/alibabacloud/imm/model/DeleteFaceJobResult.h
|
||||
include/alibabacloud/imm/model/GetTagJobRequest.h
|
||||
include/alibabacloud/imm/model/GetTagJobResult.h
|
||||
include/alibabacloud/imm/model/DeleteFaceJobRequest.h
|
||||
include/alibabacloud/imm/model/DeleteFaceJobResult.h
|
||||
include/alibabacloud/imm/model/CreateDocIndexTaskRequest.h
|
||||
include/alibabacloud/imm/model/CreateDocIndexTaskResult.h
|
||||
include/alibabacloud/imm/model/GetVideoTaskRequest.h
|
||||
@@ -165,10 +167,10 @@ set(imm_public_header_model
|
||||
include/alibabacloud/imm/model/DetectImageBodiesResult.h
|
||||
include/alibabacloud/imm/model/DeleteDocIndexRequest.h
|
||||
include/alibabacloud/imm/model/DeleteDocIndexResult.h
|
||||
include/alibabacloud/imm/model/GetImageJobRequest.h
|
||||
include/alibabacloud/imm/model/GetImageJobResult.h
|
||||
include/alibabacloud/imm/model/GetDocIndexTaskRequest.h
|
||||
include/alibabacloud/imm/model/GetDocIndexTaskResult.h
|
||||
include/alibabacloud/imm/model/GetImageJobRequest.h
|
||||
include/alibabacloud/imm/model/GetImageJobResult.h
|
||||
include/alibabacloud/imm/model/DeleteTagByUrlRequest.h
|
||||
include/alibabacloud/imm/model/DeleteTagByUrlResult.h
|
||||
include/alibabacloud/imm/model/ListTagSetsRequest.h
|
||||
@@ -187,10 +189,10 @@ set(imm_public_header_model
|
||||
include/alibabacloud/imm/model/ListVideoFramesResult.h
|
||||
include/alibabacloud/imm/model/GetPornBatchDetectJobRequest.h
|
||||
include/alibabacloud/imm/model/GetPornBatchDetectJobResult.h
|
||||
include/alibabacloud/imm/model/DetectClothesRequest.h
|
||||
include/alibabacloud/imm/model/DetectClothesResult.h
|
||||
include/alibabacloud/imm/model/ListTagJobsRequest.h
|
||||
include/alibabacloud/imm/model/ListTagJobsResult.h
|
||||
include/alibabacloud/imm/model/DetectClothesRequest.h
|
||||
include/alibabacloud/imm/model/DetectClothesResult.h
|
||||
include/alibabacloud/imm/model/DetectLogoRequest.h
|
||||
include/alibabacloud/imm/model/DetectLogoResult.h
|
||||
include/alibabacloud/imm/model/DescribeRegionsRequest.h
|
||||
@@ -238,10 +240,10 @@ set(imm_src
|
||||
src/model/ListFaceSearchGroupUsersResult.cc
|
||||
src/model/ListFaceSearchGroupImagesRequest.cc
|
||||
src/model/ListFaceSearchGroupImagesResult.cc
|
||||
src/model/ListSetsRequest.cc
|
||||
src/model/ListSetsResult.cc
|
||||
src/model/PutProjectRequest.cc
|
||||
src/model/PutProjectResult.cc
|
||||
src/model/ListSetsRequest.cc
|
||||
src/model/ListSetsResult.cc
|
||||
src/model/FindImagesRequest.cc
|
||||
src/model/FindImagesResult.cc
|
||||
src/model/DetectImageLogosRequest.cc
|
||||
@@ -260,10 +262,10 @@ set(imm_src
|
||||
src/model/DetectImageCelebrityResult.cc
|
||||
src/model/ListFaceSearchGroupsRequest.cc
|
||||
src/model/ListFaceSearchGroupsResult.cc
|
||||
src/model/DeletePornBatchDetectJobRequest.cc
|
||||
src/model/DeletePornBatchDetectJobResult.cc
|
||||
src/model/GetTagSetRequest.cc
|
||||
src/model/GetTagSetResult.cc
|
||||
src/model/DeletePornBatchDetectJobRequest.cc
|
||||
src/model/DeletePornBatchDetectJobResult.cc
|
||||
src/model/ListTagPhotosRequest.cc
|
||||
src/model/ListTagPhotosResult.cc
|
||||
src/model/DeleteFaceSearchImageByIdRequest.cc
|
||||
@@ -284,16 +286,18 @@ set(imm_src
|
||||
src/model/CompareImageFacesResult.cc
|
||||
src/model/DeleteTagJobRequest.cc
|
||||
src/model/DeleteTagJobResult.cc
|
||||
src/model/CreateMediaComplexTaskRequest.cc
|
||||
src/model/CreateMediaComplexTaskResult.cc
|
||||
src/model/PhotoProcessRequest.cc
|
||||
src/model/PhotoProcessResult.cc
|
||||
src/model/DeleteFaceSearchUserRequest.cc
|
||||
src/model/DeleteFaceSearchUserResult.cc
|
||||
src/model/GetOfficeConversionTaskRequest.cc
|
||||
src/model/GetOfficeConversionTaskResult.cc
|
||||
src/model/CreateTagSetRequest.cc
|
||||
src/model/CreateTagSetResult.cc
|
||||
src/model/RegistFaceRequest.cc
|
||||
src/model/RegistFaceResult.cc
|
||||
src/model/CreateTagSetRequest.cc
|
||||
src/model/CreateTagSetResult.cc
|
||||
src/model/GetFaceSearchUserRequest.cc
|
||||
src/model/GetFaceSearchUserResult.cc
|
||||
src/model/CreateFaceSetRequest.cc
|
||||
@@ -322,10 +326,10 @@ set(imm_src
|
||||
src/model/DetectTagResult.cc
|
||||
src/model/CreateCADConversionTaskRequest.cc
|
||||
src/model/CreateCADConversionTaskResult.cc
|
||||
src/model/DeleteFaceJobRequest.cc
|
||||
src/model/DeleteFaceJobResult.cc
|
||||
src/model/GetTagJobRequest.cc
|
||||
src/model/GetTagJobResult.cc
|
||||
src/model/DeleteFaceJobRequest.cc
|
||||
src/model/DeleteFaceJobResult.cc
|
||||
src/model/CreateDocIndexTaskRequest.cc
|
||||
src/model/CreateDocIndexTaskResult.cc
|
||||
src/model/GetVideoTaskRequest.cc
|
||||
@@ -364,10 +368,10 @@ set(imm_src
|
||||
src/model/DetectImageBodiesResult.cc
|
||||
src/model/DeleteDocIndexRequest.cc
|
||||
src/model/DeleteDocIndexResult.cc
|
||||
src/model/GetImageJobRequest.cc
|
||||
src/model/GetImageJobResult.cc
|
||||
src/model/GetDocIndexTaskRequest.cc
|
||||
src/model/GetDocIndexTaskResult.cc
|
||||
src/model/GetImageJobRequest.cc
|
||||
src/model/GetImageJobResult.cc
|
||||
src/model/DeleteTagByUrlRequest.cc
|
||||
src/model/DeleteTagByUrlResult.cc
|
||||
src/model/ListTagSetsRequest.cc
|
||||
@@ -386,10 +390,10 @@ set(imm_src
|
||||
src/model/ListVideoFramesResult.cc
|
||||
src/model/GetPornBatchDetectJobRequest.cc
|
||||
src/model/GetPornBatchDetectJobResult.cc
|
||||
src/model/DetectClothesRequest.cc
|
||||
src/model/DetectClothesResult.cc
|
||||
src/model/ListTagJobsRequest.cc
|
||||
src/model/ListTagJobsResult.cc
|
||||
src/model/DetectClothesRequest.cc
|
||||
src/model/DetectClothesResult.cc
|
||||
src/model/DetectLogoRequest.cc
|
||||
src/model/DetectLogoResult.cc
|
||||
src/model/DescribeRegionsRequest.cc
|
||||
|
||||
@@ -40,10 +40,10 @@
|
||||
#include "model/ListFaceSearchGroupUsersResult.h"
|
||||
#include "model/ListFaceSearchGroupImagesRequest.h"
|
||||
#include "model/ListFaceSearchGroupImagesResult.h"
|
||||
#include "model/ListSetsRequest.h"
|
||||
#include "model/ListSetsResult.h"
|
||||
#include "model/PutProjectRequest.h"
|
||||
#include "model/PutProjectResult.h"
|
||||
#include "model/ListSetsRequest.h"
|
||||
#include "model/ListSetsResult.h"
|
||||
#include "model/FindImagesRequest.h"
|
||||
#include "model/FindImagesResult.h"
|
||||
#include "model/DetectImageLogosRequest.h"
|
||||
@@ -62,10 +62,10 @@
|
||||
#include "model/DetectImageCelebrityResult.h"
|
||||
#include "model/ListFaceSearchGroupsRequest.h"
|
||||
#include "model/ListFaceSearchGroupsResult.h"
|
||||
#include "model/DeletePornBatchDetectJobRequest.h"
|
||||
#include "model/DeletePornBatchDetectJobResult.h"
|
||||
#include "model/GetTagSetRequest.h"
|
||||
#include "model/GetTagSetResult.h"
|
||||
#include "model/DeletePornBatchDetectJobRequest.h"
|
||||
#include "model/DeletePornBatchDetectJobResult.h"
|
||||
#include "model/ListTagPhotosRequest.h"
|
||||
#include "model/ListTagPhotosResult.h"
|
||||
#include "model/DeleteFaceSearchImageByIdRequest.h"
|
||||
@@ -86,16 +86,18 @@
|
||||
#include "model/CompareImageFacesResult.h"
|
||||
#include "model/DeleteTagJobRequest.h"
|
||||
#include "model/DeleteTagJobResult.h"
|
||||
#include "model/CreateMediaComplexTaskRequest.h"
|
||||
#include "model/CreateMediaComplexTaskResult.h"
|
||||
#include "model/PhotoProcessRequest.h"
|
||||
#include "model/PhotoProcessResult.h"
|
||||
#include "model/DeleteFaceSearchUserRequest.h"
|
||||
#include "model/DeleteFaceSearchUserResult.h"
|
||||
#include "model/GetOfficeConversionTaskRequest.h"
|
||||
#include "model/GetOfficeConversionTaskResult.h"
|
||||
#include "model/CreateTagSetRequest.h"
|
||||
#include "model/CreateTagSetResult.h"
|
||||
#include "model/RegistFaceRequest.h"
|
||||
#include "model/RegistFaceResult.h"
|
||||
#include "model/CreateTagSetRequest.h"
|
||||
#include "model/CreateTagSetResult.h"
|
||||
#include "model/GetFaceSearchUserRequest.h"
|
||||
#include "model/GetFaceSearchUserResult.h"
|
||||
#include "model/CreateFaceSetRequest.h"
|
||||
@@ -124,10 +126,10 @@
|
||||
#include "model/DetectTagResult.h"
|
||||
#include "model/CreateCADConversionTaskRequest.h"
|
||||
#include "model/CreateCADConversionTaskResult.h"
|
||||
#include "model/DeleteFaceJobRequest.h"
|
||||
#include "model/DeleteFaceJobResult.h"
|
||||
#include "model/GetTagJobRequest.h"
|
||||
#include "model/GetTagJobResult.h"
|
||||
#include "model/DeleteFaceJobRequest.h"
|
||||
#include "model/DeleteFaceJobResult.h"
|
||||
#include "model/CreateDocIndexTaskRequest.h"
|
||||
#include "model/CreateDocIndexTaskResult.h"
|
||||
#include "model/GetVideoTaskRequest.h"
|
||||
@@ -166,10 +168,10 @@
|
||||
#include "model/DetectImageBodiesResult.h"
|
||||
#include "model/DeleteDocIndexRequest.h"
|
||||
#include "model/DeleteDocIndexResult.h"
|
||||
#include "model/GetImageJobRequest.h"
|
||||
#include "model/GetImageJobResult.h"
|
||||
#include "model/GetDocIndexTaskRequest.h"
|
||||
#include "model/GetDocIndexTaskResult.h"
|
||||
#include "model/GetImageJobRequest.h"
|
||||
#include "model/GetImageJobResult.h"
|
||||
#include "model/DeleteTagByUrlRequest.h"
|
||||
#include "model/DeleteTagByUrlResult.h"
|
||||
#include "model/ListTagSetsRequest.h"
|
||||
@@ -188,10 +190,10 @@
|
||||
#include "model/ListVideoFramesResult.h"
|
||||
#include "model/GetPornBatchDetectJobRequest.h"
|
||||
#include "model/GetPornBatchDetectJobResult.h"
|
||||
#include "model/DetectClothesRequest.h"
|
||||
#include "model/DetectClothesResult.h"
|
||||
#include "model/ListTagJobsRequest.h"
|
||||
#include "model/ListTagJobsResult.h"
|
||||
#include "model/DetectClothesRequest.h"
|
||||
#include "model/DetectClothesResult.h"
|
||||
#include "model/DetectLogoRequest.h"
|
||||
#include "model/DetectLogoResult.h"
|
||||
#include "model/DescribeRegionsRequest.h"
|
||||
@@ -254,12 +256,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListFaceSearchGroupImagesResult> ListFaceSearchGroupImagesOutcome;
|
||||
typedef std::future<ListFaceSearchGroupImagesOutcome> ListFaceSearchGroupImagesOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::ListFaceSearchGroupImagesRequest&, const ListFaceSearchGroupImagesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListFaceSearchGroupImagesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListSetsResult> ListSetsOutcome;
|
||||
typedef std::future<ListSetsOutcome> ListSetsOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::ListSetsRequest&, const ListSetsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListSetsAsyncHandler;
|
||||
typedef Outcome<Error, Model::PutProjectResult> PutProjectOutcome;
|
||||
typedef std::future<PutProjectOutcome> PutProjectOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::PutProjectRequest&, const PutProjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PutProjectAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListSetsResult> ListSetsOutcome;
|
||||
typedef std::future<ListSetsOutcome> ListSetsOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::ListSetsRequest&, const ListSetsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListSetsAsyncHandler;
|
||||
typedef Outcome<Error, Model::FindImagesResult> FindImagesOutcome;
|
||||
typedef std::future<FindImagesOutcome> FindImagesOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::FindImagesRequest&, const FindImagesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> FindImagesAsyncHandler;
|
||||
@@ -287,12 +289,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListFaceSearchGroupsResult> ListFaceSearchGroupsOutcome;
|
||||
typedef std::future<ListFaceSearchGroupsOutcome> ListFaceSearchGroupsOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::ListFaceSearchGroupsRequest&, const ListFaceSearchGroupsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListFaceSearchGroupsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeletePornBatchDetectJobResult> DeletePornBatchDetectJobOutcome;
|
||||
typedef std::future<DeletePornBatchDetectJobOutcome> DeletePornBatchDetectJobOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::DeletePornBatchDetectJobRequest&, const DeletePornBatchDetectJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeletePornBatchDetectJobAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetTagSetResult> GetTagSetOutcome;
|
||||
typedef std::future<GetTagSetOutcome> GetTagSetOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::GetTagSetRequest&, const GetTagSetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTagSetAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeletePornBatchDetectJobResult> DeletePornBatchDetectJobOutcome;
|
||||
typedef std::future<DeletePornBatchDetectJobOutcome> DeletePornBatchDetectJobOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::DeletePornBatchDetectJobRequest&, const DeletePornBatchDetectJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeletePornBatchDetectJobAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListTagPhotosResult> ListTagPhotosOutcome;
|
||||
typedef std::future<ListTagPhotosOutcome> ListTagPhotosOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::ListTagPhotosRequest&, const ListTagPhotosOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTagPhotosAsyncHandler;
|
||||
@@ -323,6 +325,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DeleteTagJobResult> DeleteTagJobOutcome;
|
||||
typedef std::future<DeleteTagJobOutcome> DeleteTagJobOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::DeleteTagJobRequest&, const DeleteTagJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteTagJobAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateMediaComplexTaskResult> CreateMediaComplexTaskOutcome;
|
||||
typedef std::future<CreateMediaComplexTaskOutcome> CreateMediaComplexTaskOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::CreateMediaComplexTaskRequest&, const CreateMediaComplexTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateMediaComplexTaskAsyncHandler;
|
||||
typedef Outcome<Error, Model::PhotoProcessResult> PhotoProcessOutcome;
|
||||
typedef std::future<PhotoProcessOutcome> PhotoProcessOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::PhotoProcessRequest&, const PhotoProcessOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PhotoProcessAsyncHandler;
|
||||
@@ -332,12 +337,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetOfficeConversionTaskResult> GetOfficeConversionTaskOutcome;
|
||||
typedef std::future<GetOfficeConversionTaskOutcome> GetOfficeConversionTaskOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::GetOfficeConversionTaskRequest&, const GetOfficeConversionTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetOfficeConversionTaskAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateTagSetResult> CreateTagSetOutcome;
|
||||
typedef std::future<CreateTagSetOutcome> CreateTagSetOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::CreateTagSetRequest&, const CreateTagSetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateTagSetAsyncHandler;
|
||||
typedef Outcome<Error, Model::RegistFaceResult> RegistFaceOutcome;
|
||||
typedef std::future<RegistFaceOutcome> RegistFaceOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::RegistFaceRequest&, const RegistFaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RegistFaceAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateTagSetResult> CreateTagSetOutcome;
|
||||
typedef std::future<CreateTagSetOutcome> CreateTagSetOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::CreateTagSetRequest&, const CreateTagSetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateTagSetAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetFaceSearchUserResult> GetFaceSearchUserOutcome;
|
||||
typedef std::future<GetFaceSearchUserOutcome> GetFaceSearchUserOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::GetFaceSearchUserRequest&, const GetFaceSearchUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetFaceSearchUserAsyncHandler;
|
||||
@@ -380,12 +385,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateCADConversionTaskResult> CreateCADConversionTaskOutcome;
|
||||
typedef std::future<CreateCADConversionTaskOutcome> CreateCADConversionTaskOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::CreateCADConversionTaskRequest&, const CreateCADConversionTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateCADConversionTaskAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteFaceJobResult> DeleteFaceJobOutcome;
|
||||
typedef std::future<DeleteFaceJobOutcome> DeleteFaceJobOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::DeleteFaceJobRequest&, const DeleteFaceJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteFaceJobAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetTagJobResult> GetTagJobOutcome;
|
||||
typedef std::future<GetTagJobOutcome> GetTagJobOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::GetTagJobRequest&, const GetTagJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTagJobAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteFaceJobResult> DeleteFaceJobOutcome;
|
||||
typedef std::future<DeleteFaceJobOutcome> DeleteFaceJobOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::DeleteFaceJobRequest&, const DeleteFaceJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteFaceJobAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateDocIndexTaskResult> CreateDocIndexTaskOutcome;
|
||||
typedef std::future<CreateDocIndexTaskOutcome> CreateDocIndexTaskOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::CreateDocIndexTaskRequest&, const CreateDocIndexTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDocIndexTaskAsyncHandler;
|
||||
@@ -443,12 +448,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DeleteDocIndexResult> DeleteDocIndexOutcome;
|
||||
typedef std::future<DeleteDocIndexOutcome> DeleteDocIndexOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::DeleteDocIndexRequest&, const DeleteDocIndexOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDocIndexAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetImageJobResult> GetImageJobOutcome;
|
||||
typedef std::future<GetImageJobOutcome> GetImageJobOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::GetImageJobRequest&, const GetImageJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetImageJobAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetDocIndexTaskResult> GetDocIndexTaskOutcome;
|
||||
typedef std::future<GetDocIndexTaskOutcome> GetDocIndexTaskOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::GetDocIndexTaskRequest&, const GetDocIndexTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDocIndexTaskAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetImageJobResult> GetImageJobOutcome;
|
||||
typedef std::future<GetImageJobOutcome> GetImageJobOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::GetImageJobRequest&, const GetImageJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetImageJobAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteTagByUrlResult> DeleteTagByUrlOutcome;
|
||||
typedef std::future<DeleteTagByUrlOutcome> DeleteTagByUrlOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::DeleteTagByUrlRequest&, const DeleteTagByUrlOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteTagByUrlAsyncHandler;
|
||||
@@ -476,12 +481,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetPornBatchDetectJobResult> GetPornBatchDetectJobOutcome;
|
||||
typedef std::future<GetPornBatchDetectJobOutcome> GetPornBatchDetectJobOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::GetPornBatchDetectJobRequest&, const GetPornBatchDetectJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPornBatchDetectJobAsyncHandler;
|
||||
typedef Outcome<Error, Model::DetectClothesResult> DetectClothesOutcome;
|
||||
typedef std::future<DetectClothesOutcome> DetectClothesOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::DetectClothesRequest&, const DetectClothesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetectClothesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListTagJobsResult> ListTagJobsOutcome;
|
||||
typedef std::future<ListTagJobsOutcome> ListTagJobsOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::ListTagJobsRequest&, const ListTagJobsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTagJobsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DetectClothesResult> DetectClothesOutcome;
|
||||
typedef std::future<DetectClothesOutcome> DetectClothesOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::DetectClothesRequest&, const DetectClothesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetectClothesAsyncHandler;
|
||||
typedef Outcome<Error, Model::DetectLogoResult> DetectLogoOutcome;
|
||||
typedef std::future<DetectLogoOutcome> DetectLogoOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::DetectLogoRequest&, const DetectLogoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetectLogoAsyncHandler;
|
||||
@@ -553,12 +558,12 @@ namespace AlibabaCloud
|
||||
ListFaceSearchGroupImagesOutcome listFaceSearchGroupImages(const Model::ListFaceSearchGroupImagesRequest &request)const;
|
||||
void listFaceSearchGroupImagesAsync(const Model::ListFaceSearchGroupImagesRequest& request, const ListFaceSearchGroupImagesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListFaceSearchGroupImagesOutcomeCallable listFaceSearchGroupImagesCallable(const Model::ListFaceSearchGroupImagesRequest& request) const;
|
||||
ListSetsOutcome listSets(const Model::ListSetsRequest &request)const;
|
||||
void listSetsAsync(const Model::ListSetsRequest& request, const ListSetsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListSetsOutcomeCallable listSetsCallable(const Model::ListSetsRequest& request) const;
|
||||
PutProjectOutcome putProject(const Model::PutProjectRequest &request)const;
|
||||
void putProjectAsync(const Model::PutProjectRequest& request, const PutProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PutProjectOutcomeCallable putProjectCallable(const Model::PutProjectRequest& request) const;
|
||||
ListSetsOutcome listSets(const Model::ListSetsRequest &request)const;
|
||||
void listSetsAsync(const Model::ListSetsRequest& request, const ListSetsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListSetsOutcomeCallable listSetsCallable(const Model::ListSetsRequest& request) const;
|
||||
FindImagesOutcome findImages(const Model::FindImagesRequest &request)const;
|
||||
void findImagesAsync(const Model::FindImagesRequest& request, const FindImagesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
FindImagesOutcomeCallable findImagesCallable(const Model::FindImagesRequest& request) const;
|
||||
@@ -586,12 +591,12 @@ namespace AlibabaCloud
|
||||
ListFaceSearchGroupsOutcome listFaceSearchGroups(const Model::ListFaceSearchGroupsRequest &request)const;
|
||||
void listFaceSearchGroupsAsync(const Model::ListFaceSearchGroupsRequest& request, const ListFaceSearchGroupsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListFaceSearchGroupsOutcomeCallable listFaceSearchGroupsCallable(const Model::ListFaceSearchGroupsRequest& request) const;
|
||||
DeletePornBatchDetectJobOutcome deletePornBatchDetectJob(const Model::DeletePornBatchDetectJobRequest &request)const;
|
||||
void deletePornBatchDetectJobAsync(const Model::DeletePornBatchDetectJobRequest& request, const DeletePornBatchDetectJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeletePornBatchDetectJobOutcomeCallable deletePornBatchDetectJobCallable(const Model::DeletePornBatchDetectJobRequest& request) const;
|
||||
GetTagSetOutcome getTagSet(const Model::GetTagSetRequest &request)const;
|
||||
void getTagSetAsync(const Model::GetTagSetRequest& request, const GetTagSetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetTagSetOutcomeCallable getTagSetCallable(const Model::GetTagSetRequest& request) const;
|
||||
DeletePornBatchDetectJobOutcome deletePornBatchDetectJob(const Model::DeletePornBatchDetectJobRequest &request)const;
|
||||
void deletePornBatchDetectJobAsync(const Model::DeletePornBatchDetectJobRequest& request, const DeletePornBatchDetectJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeletePornBatchDetectJobOutcomeCallable deletePornBatchDetectJobCallable(const Model::DeletePornBatchDetectJobRequest& request) const;
|
||||
ListTagPhotosOutcome listTagPhotos(const Model::ListTagPhotosRequest &request)const;
|
||||
void listTagPhotosAsync(const Model::ListTagPhotosRequest& request, const ListTagPhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListTagPhotosOutcomeCallable listTagPhotosCallable(const Model::ListTagPhotosRequest& request) const;
|
||||
@@ -622,6 +627,9 @@ namespace AlibabaCloud
|
||||
DeleteTagJobOutcome deleteTagJob(const Model::DeleteTagJobRequest &request)const;
|
||||
void deleteTagJobAsync(const Model::DeleteTagJobRequest& request, const DeleteTagJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteTagJobOutcomeCallable deleteTagJobCallable(const Model::DeleteTagJobRequest& request) const;
|
||||
CreateMediaComplexTaskOutcome createMediaComplexTask(const Model::CreateMediaComplexTaskRequest &request)const;
|
||||
void createMediaComplexTaskAsync(const Model::CreateMediaComplexTaskRequest& request, const CreateMediaComplexTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateMediaComplexTaskOutcomeCallable createMediaComplexTaskCallable(const Model::CreateMediaComplexTaskRequest& request) const;
|
||||
PhotoProcessOutcome photoProcess(const Model::PhotoProcessRequest &request)const;
|
||||
void photoProcessAsync(const Model::PhotoProcessRequest& request, const PhotoProcessAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PhotoProcessOutcomeCallable photoProcessCallable(const Model::PhotoProcessRequest& request) const;
|
||||
@@ -631,12 +639,12 @@ namespace AlibabaCloud
|
||||
GetOfficeConversionTaskOutcome getOfficeConversionTask(const Model::GetOfficeConversionTaskRequest &request)const;
|
||||
void getOfficeConversionTaskAsync(const Model::GetOfficeConversionTaskRequest& request, const GetOfficeConversionTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetOfficeConversionTaskOutcomeCallable getOfficeConversionTaskCallable(const Model::GetOfficeConversionTaskRequest& request) const;
|
||||
CreateTagSetOutcome createTagSet(const Model::CreateTagSetRequest &request)const;
|
||||
void createTagSetAsync(const Model::CreateTagSetRequest& request, const CreateTagSetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateTagSetOutcomeCallable createTagSetCallable(const Model::CreateTagSetRequest& request) const;
|
||||
RegistFaceOutcome registFace(const Model::RegistFaceRequest &request)const;
|
||||
void registFaceAsync(const Model::RegistFaceRequest& request, const RegistFaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RegistFaceOutcomeCallable registFaceCallable(const Model::RegistFaceRequest& request) const;
|
||||
CreateTagSetOutcome createTagSet(const Model::CreateTagSetRequest &request)const;
|
||||
void createTagSetAsync(const Model::CreateTagSetRequest& request, const CreateTagSetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateTagSetOutcomeCallable createTagSetCallable(const Model::CreateTagSetRequest& request) const;
|
||||
GetFaceSearchUserOutcome getFaceSearchUser(const Model::GetFaceSearchUserRequest &request)const;
|
||||
void getFaceSearchUserAsync(const Model::GetFaceSearchUserRequest& request, const GetFaceSearchUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetFaceSearchUserOutcomeCallable getFaceSearchUserCallable(const Model::GetFaceSearchUserRequest& request) const;
|
||||
@@ -679,12 +687,12 @@ namespace AlibabaCloud
|
||||
CreateCADConversionTaskOutcome createCADConversionTask(const Model::CreateCADConversionTaskRequest &request)const;
|
||||
void createCADConversionTaskAsync(const Model::CreateCADConversionTaskRequest& request, const CreateCADConversionTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateCADConversionTaskOutcomeCallable createCADConversionTaskCallable(const Model::CreateCADConversionTaskRequest& request) const;
|
||||
DeleteFaceJobOutcome deleteFaceJob(const Model::DeleteFaceJobRequest &request)const;
|
||||
void deleteFaceJobAsync(const Model::DeleteFaceJobRequest& request, const DeleteFaceJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteFaceJobOutcomeCallable deleteFaceJobCallable(const Model::DeleteFaceJobRequest& request) const;
|
||||
GetTagJobOutcome getTagJob(const Model::GetTagJobRequest &request)const;
|
||||
void getTagJobAsync(const Model::GetTagJobRequest& request, const GetTagJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetTagJobOutcomeCallable getTagJobCallable(const Model::GetTagJobRequest& request) const;
|
||||
DeleteFaceJobOutcome deleteFaceJob(const Model::DeleteFaceJobRequest &request)const;
|
||||
void deleteFaceJobAsync(const Model::DeleteFaceJobRequest& request, const DeleteFaceJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteFaceJobOutcomeCallable deleteFaceJobCallable(const Model::DeleteFaceJobRequest& request) const;
|
||||
CreateDocIndexTaskOutcome createDocIndexTask(const Model::CreateDocIndexTaskRequest &request)const;
|
||||
void createDocIndexTaskAsync(const Model::CreateDocIndexTaskRequest& request, const CreateDocIndexTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateDocIndexTaskOutcomeCallable createDocIndexTaskCallable(const Model::CreateDocIndexTaskRequest& request) const;
|
||||
@@ -742,12 +750,12 @@ namespace AlibabaCloud
|
||||
DeleteDocIndexOutcome deleteDocIndex(const Model::DeleteDocIndexRequest &request)const;
|
||||
void deleteDocIndexAsync(const Model::DeleteDocIndexRequest& request, const DeleteDocIndexAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteDocIndexOutcomeCallable deleteDocIndexCallable(const Model::DeleteDocIndexRequest& request) const;
|
||||
GetImageJobOutcome getImageJob(const Model::GetImageJobRequest &request)const;
|
||||
void getImageJobAsync(const Model::GetImageJobRequest& request, const GetImageJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetImageJobOutcomeCallable getImageJobCallable(const Model::GetImageJobRequest& request) const;
|
||||
GetDocIndexTaskOutcome getDocIndexTask(const Model::GetDocIndexTaskRequest &request)const;
|
||||
void getDocIndexTaskAsync(const Model::GetDocIndexTaskRequest& request, const GetDocIndexTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetDocIndexTaskOutcomeCallable getDocIndexTaskCallable(const Model::GetDocIndexTaskRequest& request) const;
|
||||
GetImageJobOutcome getImageJob(const Model::GetImageJobRequest &request)const;
|
||||
void getImageJobAsync(const Model::GetImageJobRequest& request, const GetImageJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetImageJobOutcomeCallable getImageJobCallable(const Model::GetImageJobRequest& request) const;
|
||||
DeleteTagByUrlOutcome deleteTagByUrl(const Model::DeleteTagByUrlRequest &request)const;
|
||||
void deleteTagByUrlAsync(const Model::DeleteTagByUrlRequest& request, const DeleteTagByUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteTagByUrlOutcomeCallable deleteTagByUrlCallable(const Model::DeleteTagByUrlRequest& request) const;
|
||||
@@ -775,12 +783,12 @@ namespace AlibabaCloud
|
||||
GetPornBatchDetectJobOutcome getPornBatchDetectJob(const Model::GetPornBatchDetectJobRequest &request)const;
|
||||
void getPornBatchDetectJobAsync(const Model::GetPornBatchDetectJobRequest& request, const GetPornBatchDetectJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetPornBatchDetectJobOutcomeCallable getPornBatchDetectJobCallable(const Model::GetPornBatchDetectJobRequest& request) const;
|
||||
DetectClothesOutcome detectClothes(const Model::DetectClothesRequest &request)const;
|
||||
void detectClothesAsync(const Model::DetectClothesRequest& request, const DetectClothesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DetectClothesOutcomeCallable detectClothesCallable(const Model::DetectClothesRequest& request) const;
|
||||
ListTagJobsOutcome listTagJobs(const Model::ListTagJobsRequest &request)const;
|
||||
void listTagJobsAsync(const Model::ListTagJobsRequest& request, const ListTagJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListTagJobsOutcomeCallable listTagJobsCallable(const Model::ListTagJobsRequest& request) const;
|
||||
DetectClothesOutcome detectClothes(const Model::DetectClothesRequest &request)const;
|
||||
void detectClothesAsync(const Model::DetectClothesRequest& request, const DetectClothesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DetectClothesOutcomeCallable detectClothesCallable(const Model::DetectClothesRequest& request) const;
|
||||
DetectLogoOutcome detectLogo(const Model::DetectLogoRequest &request)const;
|
||||
void detectLogoAsync(const Model::DetectLogoRequest& request, const DetectLogoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DetectLogoOutcomeCallable detectLogoCallable(const Model::DetectLogoRequest& request) const;
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IMM_MODEL_CREATEMEDIACOMPLEXTASKREQUEST_H_
|
||||
#define ALIBABACLOUD_IMM_MODEL_CREATEMEDIACOMPLEXTASKREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/imm/ImmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMM_EXPORT CreateMediaComplexTaskRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateMediaComplexTaskRequest();
|
||||
~CreateMediaComplexTaskRequest();
|
||||
|
||||
std::string getNotifyTopicName()const;
|
||||
void setNotifyTopicName(const std::string& notifyTopicName);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getNotifyEndpoint()const;
|
||||
void setNotifyEndpoint(const std::string& notifyEndpoint);
|
||||
std::string getProject()const;
|
||||
void setProject(const std::string& project);
|
||||
std::string getParameters()const;
|
||||
void setParameters(const std::string& parameters);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
std::string notifyTopicName_;
|
||||
std::string regionId_;
|
||||
std::string notifyEndpoint_;
|
||||
std::string project_;
|
||||
std::string parameters_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMM_MODEL_CREATEMEDIACOMPLEXTASKREQUEST_H_
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_IMM_MODEL_CREATEMEDIACOMPLEXTASKRESULT_H_
|
||||
#define ALIBABACLOUD_IMM_MODEL_CREATEMEDIACOMPLEXTASKRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/imm/ImmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMM_EXPORT CreateMediaComplexTaskResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateMediaComplexTaskResult();
|
||||
explicit CreateMediaComplexTaskResult(const std::string &payload);
|
||||
~CreateMediaComplexTaskResult();
|
||||
std::string getTaskId()const;
|
||||
std::string getTaskType()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string taskId_;
|
||||
std::string taskType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMM_MODEL_CREATEMEDIACOMPLEXTASKRESULT_H_
|
||||
@@ -41,6 +41,8 @@ namespace AlibabaCloud
|
||||
void setProject(const std::string& project);
|
||||
std::string getExternalId()const;
|
||||
void setExternalId(const std::string& externalId);
|
||||
std::string getFacesModifyTimeRange()const;
|
||||
void setFacesModifyTimeRange(const std::string& facesModifyTimeRange);
|
||||
std::string getImageSizeRange()const;
|
||||
void setImageSizeRange(const std::string& imageSizeRange);
|
||||
std::string getRemarksBPrefix()const;
|
||||
@@ -59,6 +61,8 @@ namespace AlibabaCloud
|
||||
void setLimit(int limit);
|
||||
std::string getRemarksDPrefix()const;
|
||||
void setRemarksDPrefix(const std::string& remarksDPrefix);
|
||||
std::string getTagsModifyTimeRange()const;
|
||||
void setTagsModifyTimeRange(const std::string& tagsModifyTimeRange);
|
||||
std::string getSourceType()const;
|
||||
void setSourceType(const std::string& sourceType);
|
||||
std::string getAgeRange()const;
|
||||
@@ -92,6 +96,7 @@ namespace AlibabaCloud
|
||||
std::string gender_;
|
||||
std::string project_;
|
||||
std::string externalId_;
|
||||
std::string facesModifyTimeRange_;
|
||||
std::string imageSizeRange_;
|
||||
std::string remarksBPrefix_;
|
||||
std::string accessKeyId_;
|
||||
@@ -101,6 +106,7 @@ namespace AlibabaCloud
|
||||
std::string oCRContentsMatch_;
|
||||
int limit_;
|
||||
std::string remarksDPrefix_;
|
||||
std::string tagsModifyTimeRange_;
|
||||
std::string sourceType_;
|
||||
std::string ageRange_;
|
||||
std::string order_;
|
||||
|
||||
@@ -375,42 +375,6 @@ ImmClient::ListFaceSearchGroupImagesOutcomeCallable ImmClient::listFaceSearchGro
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::ListSetsOutcome ImmClient::listSets(const ListSetsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListSetsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListSetsOutcome(ListSetsResult(outcome.result()));
|
||||
else
|
||||
return ListSetsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ImmClient::listSetsAsync(const ListSetsRequest& request, const ListSetsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listSets(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ImmClient::ListSetsOutcomeCallable ImmClient::listSetsCallable(const ListSetsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListSetsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listSets(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::PutProjectOutcome ImmClient::putProject(const PutProjectRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -447,6 +411,42 @@ ImmClient::PutProjectOutcomeCallable ImmClient::putProjectCallable(const PutProj
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::ListSetsOutcome ImmClient::listSets(const ListSetsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListSetsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListSetsOutcome(ListSetsResult(outcome.result()));
|
||||
else
|
||||
return ListSetsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ImmClient::listSetsAsync(const ListSetsRequest& request, const ListSetsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listSets(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ImmClient::ListSetsOutcomeCallable ImmClient::listSetsCallable(const ListSetsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListSetsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listSets(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::FindImagesOutcome ImmClient::findImages(const FindImagesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -771,42 +771,6 @@ ImmClient::ListFaceSearchGroupsOutcomeCallable ImmClient::listFaceSearchGroupsCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::DeletePornBatchDetectJobOutcome ImmClient::deletePornBatchDetectJob(const DeletePornBatchDetectJobRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeletePornBatchDetectJobOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeletePornBatchDetectJobOutcome(DeletePornBatchDetectJobResult(outcome.result()));
|
||||
else
|
||||
return DeletePornBatchDetectJobOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ImmClient::deletePornBatchDetectJobAsync(const DeletePornBatchDetectJobRequest& request, const DeletePornBatchDetectJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deletePornBatchDetectJob(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ImmClient::DeletePornBatchDetectJobOutcomeCallable ImmClient::deletePornBatchDetectJobCallable(const DeletePornBatchDetectJobRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeletePornBatchDetectJobOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deletePornBatchDetectJob(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::GetTagSetOutcome ImmClient::getTagSet(const GetTagSetRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -843,6 +807,42 @@ ImmClient::GetTagSetOutcomeCallable ImmClient::getTagSetCallable(const GetTagSet
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::DeletePornBatchDetectJobOutcome ImmClient::deletePornBatchDetectJob(const DeletePornBatchDetectJobRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeletePornBatchDetectJobOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeletePornBatchDetectJobOutcome(DeletePornBatchDetectJobResult(outcome.result()));
|
||||
else
|
||||
return DeletePornBatchDetectJobOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ImmClient::deletePornBatchDetectJobAsync(const DeletePornBatchDetectJobRequest& request, const DeletePornBatchDetectJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deletePornBatchDetectJob(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ImmClient::DeletePornBatchDetectJobOutcomeCallable ImmClient::deletePornBatchDetectJobCallable(const DeletePornBatchDetectJobRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeletePornBatchDetectJobOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deletePornBatchDetectJob(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::ListTagPhotosOutcome ImmClient::listTagPhotos(const ListTagPhotosRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1203,6 +1203,42 @@ ImmClient::DeleteTagJobOutcomeCallable ImmClient::deleteTagJobCallable(const Del
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::CreateMediaComplexTaskOutcome ImmClient::createMediaComplexTask(const CreateMediaComplexTaskRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateMediaComplexTaskOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateMediaComplexTaskOutcome(CreateMediaComplexTaskResult(outcome.result()));
|
||||
else
|
||||
return CreateMediaComplexTaskOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ImmClient::createMediaComplexTaskAsync(const CreateMediaComplexTaskRequest& request, const CreateMediaComplexTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createMediaComplexTask(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ImmClient::CreateMediaComplexTaskOutcomeCallable ImmClient::createMediaComplexTaskCallable(const CreateMediaComplexTaskRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateMediaComplexTaskOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createMediaComplexTask(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::PhotoProcessOutcome ImmClient::photoProcess(const PhotoProcessRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1311,42 +1347,6 @@ ImmClient::GetOfficeConversionTaskOutcomeCallable ImmClient::getOfficeConversion
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::CreateTagSetOutcome ImmClient::createTagSet(const CreateTagSetRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateTagSetOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateTagSetOutcome(CreateTagSetResult(outcome.result()));
|
||||
else
|
||||
return CreateTagSetOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ImmClient::createTagSetAsync(const CreateTagSetRequest& request, const CreateTagSetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createTagSet(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ImmClient::CreateTagSetOutcomeCallable ImmClient::createTagSetCallable(const CreateTagSetRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateTagSetOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createTagSet(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::RegistFaceOutcome ImmClient::registFace(const RegistFaceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1383,6 +1383,42 @@ ImmClient::RegistFaceOutcomeCallable ImmClient::registFaceCallable(const RegistF
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::CreateTagSetOutcome ImmClient::createTagSet(const CreateTagSetRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateTagSetOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateTagSetOutcome(CreateTagSetResult(outcome.result()));
|
||||
else
|
||||
return CreateTagSetOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ImmClient::createTagSetAsync(const CreateTagSetRequest& request, const CreateTagSetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createTagSet(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ImmClient::CreateTagSetOutcomeCallable ImmClient::createTagSetCallable(const CreateTagSetRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateTagSetOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createTagSet(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::GetFaceSearchUserOutcome ImmClient::getFaceSearchUser(const GetFaceSearchUserRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1887,42 +1923,6 @@ ImmClient::CreateCADConversionTaskOutcomeCallable ImmClient::createCADConversion
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::DeleteFaceJobOutcome ImmClient::deleteFaceJob(const DeleteFaceJobRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteFaceJobOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteFaceJobOutcome(DeleteFaceJobResult(outcome.result()));
|
||||
else
|
||||
return DeleteFaceJobOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ImmClient::deleteFaceJobAsync(const DeleteFaceJobRequest& request, const DeleteFaceJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteFaceJob(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ImmClient::DeleteFaceJobOutcomeCallable ImmClient::deleteFaceJobCallable(const DeleteFaceJobRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteFaceJobOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteFaceJob(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::GetTagJobOutcome ImmClient::getTagJob(const GetTagJobRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1959,6 +1959,42 @@ ImmClient::GetTagJobOutcomeCallable ImmClient::getTagJobCallable(const GetTagJob
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::DeleteFaceJobOutcome ImmClient::deleteFaceJob(const DeleteFaceJobRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteFaceJobOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteFaceJobOutcome(DeleteFaceJobResult(outcome.result()));
|
||||
else
|
||||
return DeleteFaceJobOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ImmClient::deleteFaceJobAsync(const DeleteFaceJobRequest& request, const DeleteFaceJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteFaceJob(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ImmClient::DeleteFaceJobOutcomeCallable ImmClient::deleteFaceJobCallable(const DeleteFaceJobRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteFaceJobOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteFaceJob(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::CreateDocIndexTaskOutcome ImmClient::createDocIndexTask(const CreateDocIndexTaskRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2643,42 +2679,6 @@ ImmClient::DeleteDocIndexOutcomeCallable ImmClient::deleteDocIndexCallable(const
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::GetImageJobOutcome ImmClient::getImageJob(const GetImageJobRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetImageJobOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetImageJobOutcome(GetImageJobResult(outcome.result()));
|
||||
else
|
||||
return GetImageJobOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ImmClient::getImageJobAsync(const GetImageJobRequest& request, const GetImageJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getImageJob(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ImmClient::GetImageJobOutcomeCallable ImmClient::getImageJobCallable(const GetImageJobRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetImageJobOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getImageJob(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::GetDocIndexTaskOutcome ImmClient::getDocIndexTask(const GetDocIndexTaskRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2715,6 +2715,42 @@ ImmClient::GetDocIndexTaskOutcomeCallable ImmClient::getDocIndexTaskCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::GetImageJobOutcome ImmClient::getImageJob(const GetImageJobRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetImageJobOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetImageJobOutcome(GetImageJobResult(outcome.result()));
|
||||
else
|
||||
return GetImageJobOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ImmClient::getImageJobAsync(const GetImageJobRequest& request, const GetImageJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getImageJob(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ImmClient::GetImageJobOutcomeCallable ImmClient::getImageJobCallable(const GetImageJobRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetImageJobOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getImageJob(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::DeleteTagByUrlOutcome ImmClient::deleteTagByUrl(const DeleteTagByUrlRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3039,42 +3075,6 @@ ImmClient::GetPornBatchDetectJobOutcomeCallable ImmClient::getPornBatchDetectJob
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::DetectClothesOutcome ImmClient::detectClothes(const DetectClothesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DetectClothesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DetectClothesOutcome(DetectClothesResult(outcome.result()));
|
||||
else
|
||||
return DetectClothesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ImmClient::detectClothesAsync(const DetectClothesRequest& request, const DetectClothesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, detectClothes(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ImmClient::DetectClothesOutcomeCallable ImmClient::detectClothesCallable(const DetectClothesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DetectClothesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->detectClothes(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::ListTagJobsOutcome ImmClient::listTagJobs(const ListTagJobsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3111,6 +3111,42 @@ ImmClient::ListTagJobsOutcomeCallable ImmClient::listTagJobsCallable(const ListT
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::DetectClothesOutcome ImmClient::detectClothes(const DetectClothesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DetectClothesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DetectClothesOutcome(DetectClothesResult(outcome.result()));
|
||||
else
|
||||
return DetectClothesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ImmClient::detectClothesAsync(const DetectClothesRequest& request, const DetectClothesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, detectClothes(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ImmClient::DetectClothesOutcomeCallable ImmClient::detectClothesCallable(const DetectClothesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DetectClothesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->detectClothes(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::DetectLogoOutcome ImmClient::detectLogo(const DetectLogoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
93
imm/src/model/CreateMediaComplexTaskRequest.cc
Normal file
93
imm/src/model/CreateMediaComplexTaskRequest.cc
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/imm/model/CreateMediaComplexTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Imm::Model::CreateMediaComplexTaskRequest;
|
||||
|
||||
CreateMediaComplexTaskRequest::CreateMediaComplexTaskRequest() :
|
||||
RpcServiceRequest("imm", "2017-09-06", "CreateMediaComplexTask")
|
||||
{}
|
||||
|
||||
CreateMediaComplexTaskRequest::~CreateMediaComplexTaskRequest()
|
||||
{}
|
||||
|
||||
std::string CreateMediaComplexTaskRequest::getNotifyTopicName()const
|
||||
{
|
||||
return notifyTopicName_;
|
||||
}
|
||||
|
||||
void CreateMediaComplexTaskRequest::setNotifyTopicName(const std::string& notifyTopicName)
|
||||
{
|
||||
notifyTopicName_ = notifyTopicName;
|
||||
setCoreParameter("NotifyTopicName", notifyTopicName);
|
||||
}
|
||||
|
||||
std::string CreateMediaComplexTaskRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateMediaComplexTaskRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateMediaComplexTaskRequest::getNotifyEndpoint()const
|
||||
{
|
||||
return notifyEndpoint_;
|
||||
}
|
||||
|
||||
void CreateMediaComplexTaskRequest::setNotifyEndpoint(const std::string& notifyEndpoint)
|
||||
{
|
||||
notifyEndpoint_ = notifyEndpoint;
|
||||
setCoreParameter("NotifyEndpoint", notifyEndpoint);
|
||||
}
|
||||
|
||||
std::string CreateMediaComplexTaskRequest::getProject()const
|
||||
{
|
||||
return project_;
|
||||
}
|
||||
|
||||
void CreateMediaComplexTaskRequest::setProject(const std::string& project)
|
||||
{
|
||||
project_ = project;
|
||||
setCoreParameter("Project", project);
|
||||
}
|
||||
|
||||
std::string CreateMediaComplexTaskRequest::getParameters()const
|
||||
{
|
||||
return parameters_;
|
||||
}
|
||||
|
||||
void CreateMediaComplexTaskRequest::setParameters(const std::string& parameters)
|
||||
{
|
||||
parameters_ = parameters;
|
||||
setCoreParameter("Parameters", parameters);
|
||||
}
|
||||
|
||||
std::string CreateMediaComplexTaskRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateMediaComplexTaskRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
62
imm/src/model/CreateMediaComplexTaskResult.cc
Normal file
62
imm/src/model/CreateMediaComplexTaskResult.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/imm/model/CreateMediaComplexTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Imm;
|
||||
using namespace AlibabaCloud::Imm::Model;
|
||||
|
||||
CreateMediaComplexTaskResult::CreateMediaComplexTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateMediaComplexTaskResult::CreateMediaComplexTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateMediaComplexTaskResult::~CreateMediaComplexTaskResult()
|
||||
{}
|
||||
|
||||
void CreateMediaComplexTaskResult::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());
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
if(!value["TaskType"].isNull())
|
||||
taskType_ = value["TaskType"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateMediaComplexTaskResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
std::string CreateMediaComplexTaskResult::getTaskType()const
|
||||
{
|
||||
return taskType_;
|
||||
}
|
||||
|
||||
@@ -58,6 +58,17 @@ void FindImagesRequest::setExternalId(const std::string& externalId)
|
||||
setCoreParameter("ExternalId", externalId);
|
||||
}
|
||||
|
||||
std::string FindImagesRequest::getFacesModifyTimeRange()const
|
||||
{
|
||||
return facesModifyTimeRange_;
|
||||
}
|
||||
|
||||
void FindImagesRequest::setFacesModifyTimeRange(const std::string& facesModifyTimeRange)
|
||||
{
|
||||
facesModifyTimeRange_ = facesModifyTimeRange;
|
||||
setCoreParameter("FacesModifyTimeRange", facesModifyTimeRange);
|
||||
}
|
||||
|
||||
std::string FindImagesRequest::getImageSizeRange()const
|
||||
{
|
||||
return imageSizeRange_;
|
||||
@@ -157,6 +168,17 @@ void FindImagesRequest::setRemarksDPrefix(const std::string& remarksDPrefix)
|
||||
setCoreParameter("RemarksDPrefix", remarksDPrefix);
|
||||
}
|
||||
|
||||
std::string FindImagesRequest::getTagsModifyTimeRange()const
|
||||
{
|
||||
return tagsModifyTimeRange_;
|
||||
}
|
||||
|
||||
void FindImagesRequest::setTagsModifyTimeRange(const std::string& tagsModifyTimeRange)
|
||||
{
|
||||
tagsModifyTimeRange_ = tagsModifyTimeRange;
|
||||
setCoreParameter("TagsModifyTimeRange", tagsModifyTimeRange);
|
||||
}
|
||||
|
||||
std::string FindImagesRequest::getSourceType()const
|
||||
{
|
||||
return sourceType_;
|
||||
|
||||
32
xtrace/include/alibabacloud/xtrace/XtraceExport.h
Normal file
32
xtrace/include/alibabacloud/xtrace/XtraceExport.h
Normal file
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_XTRACE_XTRACEEXPORT_H_
|
||||
#define ALIBABACLOUD_XTRACE_XTRACEEXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_XTRACE_LIBRARY)
|
||||
# define ALIBABACLOUD_XTRACE_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_XTRACE_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_XTRACE_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // !ALIBABACLOUD_XTRACE_XTRACEEXPORT_H_
|
||||
60
xtrace/include/alibabacloud/xtrace/model/GetTagKeyRequest.h
Normal file
60
xtrace/include/alibabacloud/xtrace/model/GetTagKeyRequest.h
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_XTRACE_MODEL_GETTAGKEYREQUEST_H_
|
||||
#define ALIBABACLOUD_XTRACE_MODEL_GETTAGKEYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/xtrace/XtraceExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Xtrace
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_XTRACE_EXPORT GetTagKeyRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetTagKeyRequest();
|
||||
~GetTagKeyRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
long getEndTime()const;
|
||||
void setEndTime(long endTime);
|
||||
std::string getServiceName()const;
|
||||
void setServiceName(const std::string& serviceName);
|
||||
long getStartTime()const;
|
||||
void setStartTime(long startTime);
|
||||
std::string getSpanName()const;
|
||||
void setSpanName(const std::string& spanName);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
long endTime_;
|
||||
std::string serviceName_;
|
||||
long startTime_;
|
||||
std::string spanName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_XTRACE_MODEL_GETTAGKEYREQUEST_H_
|
||||
51
xtrace/include/alibabacloud/xtrace/model/GetTagKeyResult.h
Normal file
51
xtrace/include/alibabacloud/xtrace/model/GetTagKeyResult.h
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_XTRACE_MODEL_GETTAGKEYRESULT_H_
|
||||
#define ALIBABACLOUD_XTRACE_MODEL_GETTAGKEYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/xtrace/XtraceExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Xtrace
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_XTRACE_EXPORT GetTagKeyResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
GetTagKeyResult();
|
||||
explicit GetTagKeyResult(const std::string &payload);
|
||||
~GetTagKeyResult();
|
||||
std::vector<std::string> getTagKeys()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<std::string> tagKeys_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_XTRACE_MODEL_GETTAGKEYRESULT_H_
|
||||
63
xtrace/include/alibabacloud/xtrace/model/GetTagValRequest.h
Normal file
63
xtrace/include/alibabacloud/xtrace/model/GetTagValRequest.h
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_XTRACE_MODEL_GETTAGVALREQUEST_H_
|
||||
#define ALIBABACLOUD_XTRACE_MODEL_GETTAGVALREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/xtrace/XtraceExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Xtrace
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_XTRACE_EXPORT GetTagValRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetTagValRequest();
|
||||
~GetTagValRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
long getEndTime()const;
|
||||
void setEndTime(long endTime);
|
||||
std::string getServiceName()const;
|
||||
void setServiceName(const std::string& serviceName);
|
||||
long getStartTime()const;
|
||||
void setStartTime(long startTime);
|
||||
std::string getTagKey()const;
|
||||
void setTagKey(const std::string& tagKey);
|
||||
std::string getSpanName()const;
|
||||
void setSpanName(const std::string& spanName);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
long endTime_;
|
||||
std::string serviceName_;
|
||||
long startTime_;
|
||||
std::string tagKey_;
|
||||
std::string spanName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_XTRACE_MODEL_GETTAGVALREQUEST_H_
|
||||
51
xtrace/include/alibabacloud/xtrace/model/GetTagValResult.h
Normal file
51
xtrace/include/alibabacloud/xtrace/model/GetTagValResult.h
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_XTRACE_MODEL_GETTAGVALRESULT_H_
|
||||
#define ALIBABACLOUD_XTRACE_MODEL_GETTAGVALRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/xtrace/XtraceExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Xtrace
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_XTRACE_EXPORT GetTagValResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
GetTagValResult();
|
||||
explicit GetTagValResult(const std::string &payload);
|
||||
~GetTagValResult();
|
||||
std::vector<std::string> getTagValues()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<std::string> tagValues_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_XTRACE_MODEL_GETTAGVALRESULT_H_
|
||||
51
xtrace/include/alibabacloud/xtrace/model/GetTokenRequest.h
Normal file
51
xtrace/include/alibabacloud/xtrace/model/GetTokenRequest.h
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_XTRACE_MODEL_GETTOKENREQUEST_H_
|
||||
#define ALIBABACLOUD_XTRACE_MODEL_GETTOKENREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/xtrace/XtraceExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Xtrace
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_XTRACE_EXPORT GetTokenRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetTokenRequest();
|
||||
~GetTokenRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getAppType()const;
|
||||
void setAppType(const std::string& appType);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
std::string appType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_XTRACE_MODEL_GETTOKENREQUEST_H_
|
||||
58
xtrace/include/alibabacloud/xtrace/model/GetTokenResult.h
Normal file
58
xtrace/include/alibabacloud/xtrace/model/GetTokenResult.h
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_XTRACE_MODEL_GETTOKENRESULT_H_
|
||||
#define ALIBABACLOUD_XTRACE_MODEL_GETTOKENRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/xtrace/XtraceExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Xtrace
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_XTRACE_EXPORT GetTokenResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Token
|
||||
{
|
||||
std::string pid;
|
||||
std::string domain;
|
||||
std::string internalDomain;
|
||||
std::string licenseKey;
|
||||
};
|
||||
|
||||
|
||||
GetTokenResult();
|
||||
explicit GetTokenResult(const std::string &payload);
|
||||
~GetTokenResult();
|
||||
Token getToken()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Token token_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_XTRACE_MODEL_GETTOKENRESULT_H_
|
||||
54
xtrace/include/alibabacloud/xtrace/model/GetTraceRequest.h
Normal file
54
xtrace/include/alibabacloud/xtrace/model/GetTraceRequest.h
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_XTRACE_MODEL_GETTRACEREQUEST_H_
|
||||
#define ALIBABACLOUD_XTRACE_MODEL_GETTRACEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/xtrace/XtraceExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Xtrace
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_XTRACE_EXPORT GetTraceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetTraceRequest();
|
||||
~GetTraceRequest();
|
||||
|
||||
std::string getTraceID()const;
|
||||
void setTraceID(const std::string& traceID);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getAppType()const;
|
||||
void setAppType(const std::string& appType);
|
||||
|
||||
private:
|
||||
std::string traceID_;
|
||||
std::string regionId_;
|
||||
std::string appType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_XTRACE_MODEL_GETTRACEREQUEST_H_
|
||||
80
xtrace/include/alibabacloud/xtrace/model/GetTraceResult.h
Normal file
80
xtrace/include/alibabacloud/xtrace/model/GetTraceResult.h
Normal file
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_XTRACE_MODEL_GETTRACERESULT_H_
|
||||
#define ALIBABACLOUD_XTRACE_MODEL_GETTRACERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/xtrace/XtraceExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Xtrace
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_XTRACE_EXPORT GetTraceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Span
|
||||
{
|
||||
struct TagEntry
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
struct LogEvent
|
||||
{
|
||||
struct TagEntry2
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
std::vector<LogEvent::TagEntry2> tagEntryList1;
|
||||
long timestamp;
|
||||
};
|
||||
bool haveStack;
|
||||
std::string serviceIp;
|
||||
std::vector<Span::LogEvent> logEventList;
|
||||
std::string operationName;
|
||||
std::string serviceName;
|
||||
std::string rpcId;
|
||||
std::string traceID;
|
||||
long duration;
|
||||
std::vector<Span::TagEntry> tagEntryList;
|
||||
long timestamp;
|
||||
std::string resultCode;
|
||||
};
|
||||
|
||||
|
||||
GetTraceResult();
|
||||
explicit GetTraceResult(const std::string &payload);
|
||||
~GetTraceResult();
|
||||
std::vector<Span> getSpans()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<Span> spans_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_XTRACE_MODEL_GETTRACERESULT_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_XTRACE_MODEL_LISTIPORHOSTSREQUEST_H_
|
||||
#define ALIBABACLOUD_XTRACE_MODEL_LISTIPORHOSTSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/xtrace/XtraceExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Xtrace
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_XTRACE_EXPORT ListIpOrHostsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListIpOrHostsRequest();
|
||||
~ListIpOrHostsRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
long getEndTime()const;
|
||||
void setEndTime(long endTime);
|
||||
std::string getServiceName()const;
|
||||
void setServiceName(const std::string& serviceName);
|
||||
long getStartTime()const;
|
||||
void setStartTime(long startTime);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
long endTime_;
|
||||
std::string serviceName_;
|
||||
long startTime_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_XTRACE_MODEL_LISTIPORHOSTSREQUEST_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_XTRACE_MODEL_LISTIPORHOSTSRESULT_H_
|
||||
#define ALIBABACLOUD_XTRACE_MODEL_LISTIPORHOSTSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/xtrace/XtraceExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Xtrace
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_XTRACE_EXPORT ListIpOrHostsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ListIpOrHostsResult();
|
||||
explicit ListIpOrHostsResult(const std::string &payload);
|
||||
~ListIpOrHostsResult();
|
||||
std::vector<std::string> getIpNames()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<std::string> ipNames_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_XTRACE_MODEL_LISTIPORHOSTSRESULT_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_XTRACE_MODEL_LISTSERVICESREQUEST_H_
|
||||
#define ALIBABACLOUD_XTRACE_MODEL_LISTSERVICESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/xtrace/XtraceExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Xtrace
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_XTRACE_EXPORT ListServicesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListServicesRequest();
|
||||
~ListServicesRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getAppType()const;
|
||||
void setAppType(const std::string& appType);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
std::string appType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_XTRACE_MODEL_LISTSERVICESREQUEST_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_XTRACE_MODEL_LISTSERVICESRESULT_H_
|
||||
#define ALIBABACLOUD_XTRACE_MODEL_LISTSERVICESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/xtrace/XtraceExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Xtrace
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_XTRACE_EXPORT ListServicesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Service
|
||||
{
|
||||
std::string serviceName;
|
||||
std::string pid;
|
||||
std::string regionId;
|
||||
};
|
||||
|
||||
|
||||
ListServicesResult();
|
||||
explicit ListServicesResult(const std::string &payload);
|
||||
~ListServicesResult();
|
||||
std::vector<Service> getServices()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<Service> services_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_XTRACE_MODEL_LISTSERVICESRESULT_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_XTRACE_MODEL_LISTSPANNAMESREQUEST_H_
|
||||
#define ALIBABACLOUD_XTRACE_MODEL_LISTSPANNAMESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/xtrace/XtraceExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Xtrace
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_XTRACE_EXPORT ListSpanNamesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListSpanNamesRequest();
|
||||
~ListSpanNamesRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
long getEndTime()const;
|
||||
void setEndTime(long endTime);
|
||||
std::string getServiceName()const;
|
||||
void setServiceName(const std::string& serviceName);
|
||||
long getStartTime()const;
|
||||
void setStartTime(long startTime);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
long endTime_;
|
||||
std::string serviceName_;
|
||||
long startTime_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_XTRACE_MODEL_LISTSPANNAMESREQUEST_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_XTRACE_MODEL_LISTSPANNAMESRESULT_H_
|
||||
#define ALIBABACLOUD_XTRACE_MODEL_LISTSPANNAMESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/xtrace/XtraceExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Xtrace
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_XTRACE_EXPORT ListSpanNamesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ListSpanNamesResult();
|
||||
explicit ListSpanNamesResult(const std::string &payload);
|
||||
~ListSpanNamesResult();
|
||||
std::vector<std::string> getSpanNames()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<std::string> spanNames_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_XTRACE_MODEL_LISTSPANNAMESRESULT_H_
|
||||
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_XTRACE_MODEL_SEARCHTRACESREQUEST_H_
|
||||
#define ALIBABACLOUD_XTRACE_MODEL_SEARCHTRACESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/xtrace/XtraceExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Xtrace
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_XTRACE_EXPORT SearchTracesRequest : public RpcServiceRequest
|
||||
{
|
||||
struct Tag
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
|
||||
public:
|
||||
SearchTracesRequest();
|
||||
~SearchTracesRequest();
|
||||
|
||||
std::string getServiceIp()const;
|
||||
void setServiceIp(const std::string& serviceIp);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getOperationName()const;
|
||||
void setOperationName(const std::string& operationName);
|
||||
std::string getAppType()const;
|
||||
void setAppType(const std::string& appType);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
long getEndTime()const;
|
||||
void setEndTime(long endTime);
|
||||
std::string getServiceName()const;
|
||||
void setServiceName(const std::string& serviceName);
|
||||
long getStartTime()const;
|
||||
void setStartTime(long startTime);
|
||||
std::vector<Tag> getTag()const;
|
||||
void setTag(const std::vector<Tag>& tag);
|
||||
bool getReverse()const;
|
||||
void setReverse(bool reverse);
|
||||
long getMinDuration()const;
|
||||
void setMinDuration(long minDuration);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
|
||||
private:
|
||||
std::string serviceIp_;
|
||||
std::string regionId_;
|
||||
std::string operationName_;
|
||||
std::string appType_;
|
||||
int pageSize_;
|
||||
long endTime_;
|
||||
std::string serviceName_;
|
||||
long startTime_;
|
||||
std::vector<Tag> tag_;
|
||||
bool reverse_;
|
||||
long minDuration_;
|
||||
int pageNumber_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_XTRACE_MODEL_SEARCHTRACESREQUEST_H_
|
||||
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_XTRACE_MODEL_SEARCHTRACESRESULT_H_
|
||||
#define ALIBABACLOUD_XTRACE_MODEL_SEARCHTRACESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/xtrace/XtraceExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Xtrace
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_XTRACE_EXPORT SearchTracesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct PageBean
|
||||
{
|
||||
struct TraceInfo
|
||||
{
|
||||
std::string serviceIp;
|
||||
std::string operationName;
|
||||
std::string serviceName;
|
||||
std::string traceID;
|
||||
long duration;
|
||||
long timestamp;
|
||||
};
|
||||
long totalCount;
|
||||
int pageSize;
|
||||
int pageNumber;
|
||||
std::vector<TraceInfo> traceInfos;
|
||||
};
|
||||
|
||||
|
||||
SearchTracesResult();
|
||||
explicit SearchTracesResult(const std::string &payload);
|
||||
~SearchTracesResult();
|
||||
PageBean getPageBean()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
PageBean pageBean_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_XTRACE_MODEL_SEARCHTRACESRESULT_H_
|
||||
82
xtrace/src/model/GetTagKeyRequest.cc
Normal file
82
xtrace/src/model/GetTagKeyRequest.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/xtrace/model/GetTagKeyRequest.h>
|
||||
|
||||
using AlibabaCloud::Xtrace::Model::GetTagKeyRequest;
|
||||
|
||||
GetTagKeyRequest::GetTagKeyRequest() :
|
||||
RpcServiceRequest("xtrace", "2019-08-08", "GetTagKey")
|
||||
{}
|
||||
|
||||
GetTagKeyRequest::~GetTagKeyRequest()
|
||||
{}
|
||||
|
||||
std::string GetTagKeyRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetTagKeyRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
long GetTagKeyRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void GetTagKeyRequest::setEndTime(long endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setCoreParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
std::string GetTagKeyRequest::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void GetTagKeyRequest::setServiceName(const std::string& serviceName)
|
||||
{
|
||||
serviceName_ = serviceName;
|
||||
setCoreParameter("ServiceName", serviceName);
|
||||
}
|
||||
|
||||
long GetTagKeyRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void GetTagKeyRequest::setStartTime(long startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setCoreParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::string GetTagKeyRequest::getSpanName()const
|
||||
{
|
||||
return spanName_;
|
||||
}
|
||||
|
||||
void GetTagKeyRequest::setSpanName(const std::string& spanName)
|
||||
{
|
||||
spanName_ = spanName;
|
||||
setCoreParameter("SpanName", spanName);
|
||||
}
|
||||
|
||||
56
xtrace/src/model/GetTagKeyResult.cc
Normal file
56
xtrace/src/model/GetTagKeyResult.cc
Normal file
@@ -0,0 +1,56 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/xtrace/model/GetTagKeyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Xtrace;
|
||||
using namespace AlibabaCloud::Xtrace::Model;
|
||||
|
||||
GetTagKeyResult::GetTagKeyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetTagKeyResult::GetTagKeyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetTagKeyResult::~GetTagKeyResult()
|
||||
{}
|
||||
|
||||
void GetTagKeyResult::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 allTagKeys = value["TagKeys"]["TagKey"];
|
||||
for (const auto &item : allTagKeys)
|
||||
tagKeys_.push_back(item.asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> GetTagKeyResult::getTagKeys()const
|
||||
{
|
||||
return tagKeys_;
|
||||
}
|
||||
|
||||
93
xtrace/src/model/GetTagValRequest.cc
Normal file
93
xtrace/src/model/GetTagValRequest.cc
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/xtrace/model/GetTagValRequest.h>
|
||||
|
||||
using AlibabaCloud::Xtrace::Model::GetTagValRequest;
|
||||
|
||||
GetTagValRequest::GetTagValRequest() :
|
||||
RpcServiceRequest("xtrace", "2019-08-08", "GetTagVal")
|
||||
{}
|
||||
|
||||
GetTagValRequest::~GetTagValRequest()
|
||||
{}
|
||||
|
||||
std::string GetTagValRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetTagValRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
long GetTagValRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void GetTagValRequest::setEndTime(long endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setCoreParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
std::string GetTagValRequest::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void GetTagValRequest::setServiceName(const std::string& serviceName)
|
||||
{
|
||||
serviceName_ = serviceName;
|
||||
setCoreParameter("ServiceName", serviceName);
|
||||
}
|
||||
|
||||
long GetTagValRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void GetTagValRequest::setStartTime(long startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setCoreParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::string GetTagValRequest::getTagKey()const
|
||||
{
|
||||
return tagKey_;
|
||||
}
|
||||
|
||||
void GetTagValRequest::setTagKey(const std::string& tagKey)
|
||||
{
|
||||
tagKey_ = tagKey;
|
||||
setCoreParameter("TagKey", tagKey);
|
||||
}
|
||||
|
||||
std::string GetTagValRequest::getSpanName()const
|
||||
{
|
||||
return spanName_;
|
||||
}
|
||||
|
||||
void GetTagValRequest::setSpanName(const std::string& spanName)
|
||||
{
|
||||
spanName_ = spanName;
|
||||
setCoreParameter("SpanName", spanName);
|
||||
}
|
||||
|
||||
56
xtrace/src/model/GetTagValResult.cc
Normal file
56
xtrace/src/model/GetTagValResult.cc
Normal file
@@ -0,0 +1,56 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/xtrace/model/GetTagValResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Xtrace;
|
||||
using namespace AlibabaCloud::Xtrace::Model;
|
||||
|
||||
GetTagValResult::GetTagValResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetTagValResult::GetTagValResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetTagValResult::~GetTagValResult()
|
||||
{}
|
||||
|
||||
void GetTagValResult::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 allTagValues = value["TagValues"]["TagValue"];
|
||||
for (const auto &item : allTagValues)
|
||||
tagValues_.push_back(item.asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> GetTagValResult::getTagValues()const
|
||||
{
|
||||
return tagValues_;
|
||||
}
|
||||
|
||||
49
xtrace/src/model/GetTokenRequest.cc
Normal file
49
xtrace/src/model/GetTokenRequest.cc
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/xtrace/model/GetTokenRequest.h>
|
||||
|
||||
using AlibabaCloud::Xtrace::Model::GetTokenRequest;
|
||||
|
||||
GetTokenRequest::GetTokenRequest() :
|
||||
RpcServiceRequest("xtrace", "2019-08-08", "GetToken")
|
||||
{}
|
||||
|
||||
GetTokenRequest::~GetTokenRequest()
|
||||
{}
|
||||
|
||||
std::string GetTokenRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetTokenRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string GetTokenRequest::getAppType()const
|
||||
{
|
||||
return appType_;
|
||||
}
|
||||
|
||||
void GetTokenRequest::setAppType(const std::string& appType)
|
||||
{
|
||||
appType_ = appType;
|
||||
setCoreParameter("AppType", appType);
|
||||
}
|
||||
|
||||
62
xtrace/src/model/GetTokenResult.cc
Normal file
62
xtrace/src/model/GetTokenResult.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/xtrace/model/GetTokenResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Xtrace;
|
||||
using namespace AlibabaCloud::Xtrace::Model;
|
||||
|
||||
GetTokenResult::GetTokenResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetTokenResult::GetTokenResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetTokenResult::~GetTokenResult()
|
||||
{}
|
||||
|
||||
void GetTokenResult::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 tokenNode = value["Token"];
|
||||
if(!tokenNode["Domain"].isNull())
|
||||
token_.domain = tokenNode["Domain"].asString();
|
||||
if(!tokenNode["LicenseKey"].isNull())
|
||||
token_.licenseKey = tokenNode["LicenseKey"].asString();
|
||||
if(!tokenNode["Pid"].isNull())
|
||||
token_.pid = tokenNode["Pid"].asString();
|
||||
if(!tokenNode["InternalDomain"].isNull())
|
||||
token_.internalDomain = tokenNode["InternalDomain"].asString();
|
||||
|
||||
}
|
||||
|
||||
GetTokenResult::Token GetTokenResult::getToken()const
|
||||
{
|
||||
return token_;
|
||||
}
|
||||
|
||||
60
xtrace/src/model/GetTraceRequest.cc
Normal file
60
xtrace/src/model/GetTraceRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/xtrace/model/GetTraceRequest.h>
|
||||
|
||||
using AlibabaCloud::Xtrace::Model::GetTraceRequest;
|
||||
|
||||
GetTraceRequest::GetTraceRequest() :
|
||||
RpcServiceRequest("xtrace", "2019-08-08", "GetTrace")
|
||||
{}
|
||||
|
||||
GetTraceRequest::~GetTraceRequest()
|
||||
{}
|
||||
|
||||
std::string GetTraceRequest::getTraceID()const
|
||||
{
|
||||
return traceID_;
|
||||
}
|
||||
|
||||
void GetTraceRequest::setTraceID(const std::string& traceID)
|
||||
{
|
||||
traceID_ = traceID;
|
||||
setCoreParameter("TraceID", traceID);
|
||||
}
|
||||
|
||||
std::string GetTraceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetTraceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string GetTraceRequest::getAppType()const
|
||||
{
|
||||
return appType_;
|
||||
}
|
||||
|
||||
void GetTraceRequest::setAppType(const std::string& appType)
|
||||
{
|
||||
appType_ = appType;
|
||||
setCoreParameter("AppType", appType);
|
||||
}
|
||||
|
||||
105
xtrace/src/model/GetTraceResult.cc
Normal file
105
xtrace/src/model/GetTraceResult.cc
Normal file
@@ -0,0 +1,105 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/xtrace/model/GetTraceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Xtrace;
|
||||
using namespace AlibabaCloud::Xtrace::Model;
|
||||
|
||||
GetTraceResult::GetTraceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetTraceResult::GetTraceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetTraceResult::~GetTraceResult()
|
||||
{}
|
||||
|
||||
void GetTraceResult::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 allSpans = value["Spans"]["Span"];
|
||||
for (auto value : allSpans)
|
||||
{
|
||||
Span spansObject;
|
||||
if(!value["TraceID"].isNull())
|
||||
spansObject.traceID = value["TraceID"].asString();
|
||||
if(!value["OperationName"].isNull())
|
||||
spansObject.operationName = value["OperationName"].asString();
|
||||
if(!value["Duration"].isNull())
|
||||
spansObject.duration = std::stol(value["Duration"].asString());
|
||||
if(!value["ServiceName"].isNull())
|
||||
spansObject.serviceName = value["ServiceName"].asString();
|
||||
if(!value["ServiceIp"].isNull())
|
||||
spansObject.serviceIp = value["ServiceIp"].asString();
|
||||
if(!value["Timestamp"].isNull())
|
||||
spansObject.timestamp = std::stol(value["Timestamp"].asString());
|
||||
if(!value["RpcId"].isNull())
|
||||
spansObject.rpcId = value["RpcId"].asString();
|
||||
if(!value["ResultCode"].isNull())
|
||||
spansObject.resultCode = value["ResultCode"].asString();
|
||||
if(!value["HaveStack"].isNull())
|
||||
spansObject.haveStack = value["HaveStack"].asString() == "true";
|
||||
auto allTagEntryList = value["TagEntryList"]["TagEntry"];
|
||||
for (auto value : allTagEntryList)
|
||||
{
|
||||
Span::TagEntry tagEntryListObject;
|
||||
if(!value["Key"].isNull())
|
||||
tagEntryListObject.key = value["Key"].asString();
|
||||
if(!value["Value"].isNull())
|
||||
tagEntryListObject.value = value["Value"].asString();
|
||||
spansObject.tagEntryList.push_back(tagEntryListObject);
|
||||
}
|
||||
auto allLogEventList = value["LogEventList"]["LogEvent"];
|
||||
for (auto value : allLogEventList)
|
||||
{
|
||||
Span::LogEvent logEventListObject;
|
||||
if(!value["Timestamp"].isNull())
|
||||
logEventListObject.timestamp = std::stol(value["Timestamp"].asString());
|
||||
auto allTagEntryList1 = value["TagEntryList"]["TagEntry"];
|
||||
for (auto value : allTagEntryList1)
|
||||
{
|
||||
Span::LogEvent::TagEntry2 tagEntryList1Object;
|
||||
if(!value["Key"].isNull())
|
||||
tagEntryList1Object.key = value["Key"].asString();
|
||||
if(!value["Value"].isNull())
|
||||
tagEntryList1Object.value = value["Value"].asString();
|
||||
logEventListObject.tagEntryList1.push_back(tagEntryList1Object);
|
||||
}
|
||||
spansObject.logEventList.push_back(logEventListObject);
|
||||
}
|
||||
spans_.push_back(spansObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<GetTraceResult::Span> GetTraceResult::getSpans()const
|
||||
{
|
||||
return spans_;
|
||||
}
|
||||
|
||||
71
xtrace/src/model/ListIpOrHostsRequest.cc
Normal file
71
xtrace/src/model/ListIpOrHostsRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/xtrace/model/ListIpOrHostsRequest.h>
|
||||
|
||||
using AlibabaCloud::Xtrace::Model::ListIpOrHostsRequest;
|
||||
|
||||
ListIpOrHostsRequest::ListIpOrHostsRequest() :
|
||||
RpcServiceRequest("xtrace", "2019-08-08", "ListIpOrHosts")
|
||||
{}
|
||||
|
||||
ListIpOrHostsRequest::~ListIpOrHostsRequest()
|
||||
{}
|
||||
|
||||
std::string ListIpOrHostsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListIpOrHostsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
long ListIpOrHostsRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void ListIpOrHostsRequest::setEndTime(long endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setCoreParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
std::string ListIpOrHostsRequest::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void ListIpOrHostsRequest::setServiceName(const std::string& serviceName)
|
||||
{
|
||||
serviceName_ = serviceName;
|
||||
setCoreParameter("ServiceName", serviceName);
|
||||
}
|
||||
|
||||
long ListIpOrHostsRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void ListIpOrHostsRequest::setStartTime(long startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setCoreParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
56
xtrace/src/model/ListIpOrHostsResult.cc
Normal file
56
xtrace/src/model/ListIpOrHostsResult.cc
Normal file
@@ -0,0 +1,56 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/xtrace/model/ListIpOrHostsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Xtrace;
|
||||
using namespace AlibabaCloud::Xtrace::Model;
|
||||
|
||||
ListIpOrHostsResult::ListIpOrHostsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListIpOrHostsResult::ListIpOrHostsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListIpOrHostsResult::~ListIpOrHostsResult()
|
||||
{}
|
||||
|
||||
void ListIpOrHostsResult::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 allIpNames = value["IpNames"]["IpName"];
|
||||
for (const auto &item : allIpNames)
|
||||
ipNames_.push_back(item.asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> ListIpOrHostsResult::getIpNames()const
|
||||
{
|
||||
return ipNames_;
|
||||
}
|
||||
|
||||
49
xtrace/src/model/ListServicesRequest.cc
Normal file
49
xtrace/src/model/ListServicesRequest.cc
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/xtrace/model/ListServicesRequest.h>
|
||||
|
||||
using AlibabaCloud::Xtrace::Model::ListServicesRequest;
|
||||
|
||||
ListServicesRequest::ListServicesRequest() :
|
||||
RpcServiceRequest("xtrace", "2019-08-08", "ListServices")
|
||||
{}
|
||||
|
||||
ListServicesRequest::~ListServicesRequest()
|
||||
{}
|
||||
|
||||
std::string ListServicesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListServicesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ListServicesRequest::getAppType()const
|
||||
{
|
||||
return appType_;
|
||||
}
|
||||
|
||||
void ListServicesRequest::setAppType(const std::string& appType)
|
||||
{
|
||||
appType_ = appType;
|
||||
setCoreParameter("AppType", appType);
|
||||
}
|
||||
|
||||
65
xtrace/src/model/ListServicesResult.cc
Normal file
65
xtrace/src/model/ListServicesResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/xtrace/model/ListServicesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Xtrace;
|
||||
using namespace AlibabaCloud::Xtrace::Model;
|
||||
|
||||
ListServicesResult::ListServicesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListServicesResult::ListServicesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListServicesResult::~ListServicesResult()
|
||||
{}
|
||||
|
||||
void ListServicesResult::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 allServices = value["Services"]["Service"];
|
||||
for (auto value : allServices)
|
||||
{
|
||||
Service servicesObject;
|
||||
if(!value["ServiceName"].isNull())
|
||||
servicesObject.serviceName = value["ServiceName"].asString();
|
||||
if(!value["Pid"].isNull())
|
||||
servicesObject.pid = value["Pid"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
servicesObject.regionId = value["RegionId"].asString();
|
||||
services_.push_back(servicesObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListServicesResult::Service> ListServicesResult::getServices()const
|
||||
{
|
||||
return services_;
|
||||
}
|
||||
|
||||
71
xtrace/src/model/ListSpanNamesRequest.cc
Normal file
71
xtrace/src/model/ListSpanNamesRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/xtrace/model/ListSpanNamesRequest.h>
|
||||
|
||||
using AlibabaCloud::Xtrace::Model::ListSpanNamesRequest;
|
||||
|
||||
ListSpanNamesRequest::ListSpanNamesRequest() :
|
||||
RpcServiceRequest("xtrace", "2019-08-08", "ListSpanNames")
|
||||
{}
|
||||
|
||||
ListSpanNamesRequest::~ListSpanNamesRequest()
|
||||
{}
|
||||
|
||||
std::string ListSpanNamesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListSpanNamesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
long ListSpanNamesRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void ListSpanNamesRequest::setEndTime(long endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setCoreParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
std::string ListSpanNamesRequest::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void ListSpanNamesRequest::setServiceName(const std::string& serviceName)
|
||||
{
|
||||
serviceName_ = serviceName;
|
||||
setCoreParameter("ServiceName", serviceName);
|
||||
}
|
||||
|
||||
long ListSpanNamesRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void ListSpanNamesRequest::setStartTime(long startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setCoreParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
56
xtrace/src/model/ListSpanNamesResult.cc
Normal file
56
xtrace/src/model/ListSpanNamesResult.cc
Normal file
@@ -0,0 +1,56 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/xtrace/model/ListSpanNamesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Xtrace;
|
||||
using namespace AlibabaCloud::Xtrace::Model;
|
||||
|
||||
ListSpanNamesResult::ListSpanNamesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListSpanNamesResult::ListSpanNamesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListSpanNamesResult::~ListSpanNamesResult()
|
||||
{}
|
||||
|
||||
void ListSpanNamesResult::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 allSpanNames = value["SpanNames"]["SpanName"];
|
||||
for (const auto &item : allSpanNames)
|
||||
spanNames_.push_back(item.asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> ListSpanNamesResult::getSpanNames()const
|
||||
{
|
||||
return spanNames_;
|
||||
}
|
||||
|
||||
165
xtrace/src/model/SearchTracesRequest.cc
Normal file
165
xtrace/src/model/SearchTracesRequest.cc
Normal file
@@ -0,0 +1,165 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/xtrace/model/SearchTracesRequest.h>
|
||||
|
||||
using AlibabaCloud::Xtrace::Model::SearchTracesRequest;
|
||||
|
||||
SearchTracesRequest::SearchTracesRequest() :
|
||||
RpcServiceRequest("xtrace", "2019-08-08", "SearchTraces")
|
||||
{}
|
||||
|
||||
SearchTracesRequest::~SearchTracesRequest()
|
||||
{}
|
||||
|
||||
std::string SearchTracesRequest::getServiceIp()const
|
||||
{
|
||||
return serviceIp_;
|
||||
}
|
||||
|
||||
void SearchTracesRequest::setServiceIp(const std::string& serviceIp)
|
||||
{
|
||||
serviceIp_ = serviceIp;
|
||||
setCoreParameter("ServiceIp", serviceIp);
|
||||
}
|
||||
|
||||
std::string SearchTracesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void SearchTracesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string SearchTracesRequest::getOperationName()const
|
||||
{
|
||||
return operationName_;
|
||||
}
|
||||
|
||||
void SearchTracesRequest::setOperationName(const std::string& operationName)
|
||||
{
|
||||
operationName_ = operationName;
|
||||
setCoreParameter("OperationName", operationName);
|
||||
}
|
||||
|
||||
std::string SearchTracesRequest::getAppType()const
|
||||
{
|
||||
return appType_;
|
||||
}
|
||||
|
||||
void SearchTracesRequest::setAppType(const std::string& appType)
|
||||
{
|
||||
appType_ = appType;
|
||||
setCoreParameter("AppType", appType);
|
||||
}
|
||||
|
||||
int SearchTracesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void SearchTracesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long SearchTracesRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void SearchTracesRequest::setEndTime(long endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setCoreParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
std::string SearchTracesRequest::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void SearchTracesRequest::setServiceName(const std::string& serviceName)
|
||||
{
|
||||
serviceName_ = serviceName;
|
||||
setCoreParameter("ServiceName", serviceName);
|
||||
}
|
||||
|
||||
long SearchTracesRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void SearchTracesRequest::setStartTime(long startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setCoreParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::vector<SearchTracesRequest::Tag> SearchTracesRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void SearchTracesRequest::setTag(const std::vector<Tag>& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= tag.size(); i++) {
|
||||
auto obj = tag.at(i);
|
||||
std::string str ="Tag."+ std::to_string(i);
|
||||
setCoreParameter(str + ".Value", obj.value);
|
||||
setCoreParameter(str + ".Key", obj.key);
|
||||
}
|
||||
}
|
||||
|
||||
bool SearchTracesRequest::getReverse()const
|
||||
{
|
||||
return reverse_;
|
||||
}
|
||||
|
||||
void SearchTracesRequest::setReverse(bool reverse)
|
||||
{
|
||||
reverse_ = reverse;
|
||||
setCoreParameter("Reverse", reverse ? "true" : "false");
|
||||
}
|
||||
|
||||
long SearchTracesRequest::getMinDuration()const
|
||||
{
|
||||
return minDuration_;
|
||||
}
|
||||
|
||||
void SearchTracesRequest::setMinDuration(long minDuration)
|
||||
{
|
||||
minDuration_ = minDuration;
|
||||
setCoreParameter("MinDuration", std::to_string(minDuration));
|
||||
}
|
||||
|
||||
int SearchTracesRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void SearchTracesRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
78
xtrace/src/model/SearchTracesResult.cc
Normal file
78
xtrace/src/model/SearchTracesResult.cc
Normal file
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/xtrace/model/SearchTracesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Xtrace;
|
||||
using namespace AlibabaCloud::Xtrace::Model;
|
||||
|
||||
SearchTracesResult::SearchTracesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SearchTracesResult::SearchTracesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SearchTracesResult::~SearchTracesResult()
|
||||
{}
|
||||
|
||||
void SearchTracesResult::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 pageBeanNode = value["PageBean"];
|
||||
if(!pageBeanNode["TotalCount"].isNull())
|
||||
pageBean_.totalCount = std::stol(pageBeanNode["TotalCount"].asString());
|
||||
if(!pageBeanNode["PageSize"].isNull())
|
||||
pageBean_.pageSize = std::stoi(pageBeanNode["PageSize"].asString());
|
||||
if(!pageBeanNode["PageNumber"].isNull())
|
||||
pageBean_.pageNumber = std::stoi(pageBeanNode["PageNumber"].asString());
|
||||
auto allTraceInfos = value["TraceInfos"]["TraceInfo"];
|
||||
for (auto value : allTraceInfos)
|
||||
{
|
||||
PageBean::TraceInfo traceInfoObject;
|
||||
if(!value["TraceID"].isNull())
|
||||
traceInfoObject.traceID = value["TraceID"].asString();
|
||||
if(!value["OperationName"].isNull())
|
||||
traceInfoObject.operationName = value["OperationName"].asString();
|
||||
if(!value["ServiceName"].isNull())
|
||||
traceInfoObject.serviceName = value["ServiceName"].asString();
|
||||
if(!value["ServiceIp"].isNull())
|
||||
traceInfoObject.serviceIp = value["ServiceIp"].asString();
|
||||
if(!value["Duration"].isNull())
|
||||
traceInfoObject.duration = std::stol(value["Duration"].asString());
|
||||
if(!value["Timestamp"].isNull())
|
||||
traceInfoObject.timestamp = std::stol(value["Timestamp"].asString());
|
||||
pageBean_.traceInfos.push_back(traceInfoObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
SearchTracesResult::PageBean SearchTracesResult::getPageBean()const
|
||||
{
|
||||
return pageBean_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user