From 2d49d2072f2d25de52753dc1bb28fce116f28037 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Fri, 15 Jan 2021 03:59:05 +0000 Subject: [PATCH] Add API CreateSortScriptValidation. --- CHANGELOG | 4 + opensearch/CMakeLists.txt | 522 +++ .../opensearch/OpenSearchClient.h | 926 ++++ .../opensearch/OpenSearchExport.h | 32 + .../model/CompileSortScriptRequest.h | 54 + .../model/CompileSortScriptResult.h | 51 + .../model/CreateABTestExperimentRequest.h | 54 + .../model/CreateABTestExperimentResult.h | 63 + .../model/CreateABTestGroupRequest.h | 51 + .../model/CreateABTestGroupResult.h | 61 + .../model/CreateABTestSceneRequest.h | 48 + .../model/CreateABTestSceneResult.h | 62 + .../opensearch/model/CreateAppGroupRequest.h | 45 + .../opensearch/model/CreateAppGroupResult.h | 86 + .../opensearch/model/CreateAppRequest.h | 51 + .../opensearch/model/CreateAppResult.h | 53 + .../model/CreateDataCollectionRequest.h | 48 + .../model/CreateDataCollectionResult.h | 65 + .../opensearch/model/CreateFirstRankRequest.h | 54 + .../opensearch/model/CreateFirstRankResult.h | 65 + .../CreateInterventionDictionaryRequest.h | 45 + .../CreateInterventionDictionaryResult.h | 61 + .../opensearch/model/CreateModelRequest.h | 48 + .../opensearch/model/CreateModelResult.h | 53 + .../model/CreateQueryProcessorRequest.h | 54 + .../model/CreateQueryProcessorResult.h | 63 + .../model/CreateScheduledTaskRequest.h | 48 + .../model/CreateScheduledTaskResult.h | 53 + .../model/CreateSecondRankRequest.h | 54 + .../opensearch/model/CreateSecondRankResult.h | 51 + .../model/CreateSortScriptRequest.h | 51 + .../opensearch/model/CreateSortScriptResult.h | 51 + .../model/CreateUserAnalyzerRequest.h | 45 + .../model/CreateUserAnalyzerResult.h | 51 + .../model/DeleteABTestExperimentRequest.h | 57 + .../model/DeleteABTestExperimentResult.h | 53 + .../model/DeleteABTestGroupRequest.h | 54 + .../model/DeleteABTestGroupResult.h | 53 + .../model/DeleteABTestSceneRequest.h | 51 + .../model/DeleteABTestSceneResult.h | 53 + .../opensearch/model/DeleteModelRequest.h | 51 + .../opensearch/model/DeleteModelResult.h | 53 + .../model/DeleteSortScriptFileRequest.h | 57 + .../model/DeleteSortScriptFileResult.h | 51 + .../model/DeleteSortScriptRequest.h | 54 + .../opensearch/model/DeleteSortScriptResult.h | 51 + .../model/DescribeABTestExperimentRequest.h | 57 + .../model/DescribeABTestExperimentResult.h | 67 + .../model/DescribeABTestGroupRequest.h | 54 + .../model/DescribeABTestGroupResult.h | 61 + .../model/DescribeABTestSceneRequest.h | 51 + .../model/DescribeABTestSceneResult.h | 62 + .../model/DescribeAppGroupDataReportRequest.h | 54 + .../model/DescribeAppGroupDataReportResult.h | 76 + .../model/DescribeAppGroupRequest.h | 48 + .../opensearch/model/DescribeAppGroupResult.h | 86 + .../opensearch/model/DescribeAppRequest.h | 51 + .../opensearch/model/DescribeAppResult.h | 75 + .../model/DescribeAppStatisticsRequest.h | 51 + .../model/DescribeAppStatisticsResult.h | 53 + .../opensearch/model/DescribeAppsRequest.h | 48 + .../opensearch/model/DescribeAppsResult.h | 53 + .../model/DescribeDataCollctionRequest.h | 51 + .../model/DescribeDataCollctionResult.h | 65 + .../model/DescribeFirstRankRequest.h | 54 + .../model/DescribeFirstRankResult.h | 66 + .../DescribeInterventionDictionaryRequest.h | 48 + .../DescribeInterventionDictionaryResult.h | 61 + .../opensearch/model/DescribeModelRequest.h | 51 + .../opensearch/model/DescribeModelResult.h | 53 + .../model/DescribeQueryProcessorRequest.h | 54 + .../model/DescribeQueryProcessorResult.h | 63 + .../opensearch/model/DescribeRegionRequest.h | 45 + .../opensearch/model/DescribeRegionResult.h | 58 + .../opensearch/model/DescribeRegionsRequest.h | 45 + .../opensearch/model/DescribeRegionsResult.h | 60 + .../model/DescribeScheduledTaskRequest.h | 51 + .../model/DescribeScheduledTaskResult.h | 53 + .../model/DescribeSecondRankRequest.h | 54 + .../model/DescribeSecondRankResult.h | 65 + .../model/DescribeSlowQueryStatusRequest.h | 48 + .../model/DescribeSlowQueryStatusResult.h | 59 + .../model/DescribeUserAnalyzerRequest.h | 51 + .../model/DescribeUserAnalyzerResult.h | 53 + .../model/DisableSlowQueryRequest.h | 48 + .../opensearch/model/DisableSlowQueryResult.h | 53 + .../opensearch/model/EnableSlowQueryRequest.h | 48 + .../opensearch/model/EnableSlowQueryResult.h | 53 + .../model/GetModelProgressRequest.h | 51 + .../opensearch/model/GetModelProgressResult.h | 58 + .../opensearch/model/GetModelReportRequest.h | 51 + .../opensearch/model/GetModelReportResult.h | 53 + .../model/GetScriptFileNamesRequest.h | 54 + .../model/GetScriptFileNamesResult.h | 59 + .../model/GetSortScriptFileRequest.h | 57 + .../model/GetSortScriptFileResult.h | 60 + .../opensearch/model/GetSortScriptRequest.h | 54 + .../opensearch/model/GetSortScriptResult.h | 61 + .../model/GetValidationErrorRequest.h | 51 + .../model/GetValidationErrorResult.h | 53 + .../model/GetValidationReportRequest.h | 51 + .../model/GetValidationReportResult.h | 53 + .../model/ListABTestExperimentsRequest.h | 54 + .../model/ListABTestExperimentsResult.h | 63 + .../ListABTestFixedFlowDividersRequest.h | 57 + .../model/ListABTestFixedFlowDividersResult.h | 53 + .../model/ListABTestGroupsRequest.h | 51 + .../opensearch/model/ListABTestGroupsResult.h | 61 + .../model/ListABTestMetricsRequest.h | 54 + .../model/ListABTestMetricsResult.h | 64 + .../model/ListABTestScenesRequest.h | 48 + .../opensearch/model/ListABTestScenesResult.h | 62 + .../model/ListAppGroupErrorsRequest.h | 63 + .../model/ListAppGroupErrorsResult.h | 55 + .../model/ListAppGroupMetricsRequest.h | 60 + .../model/ListAppGroupMetricsResult.h | 53 + .../opensearch/model/ListAppGroupsRequest.h | 66 + .../opensearch/model/ListAppGroupsResult.h | 88 + .../opensearch/model/ListAppsRequest.h | 54 + .../opensearch/model/ListAppsResult.h | 49 + .../model/ListDataCollectionsRequest.h | 54 + .../model/ListDataCollectionsResult.h | 67 + .../ListDeployedAlgorithmModelsRequest.h | 54 + .../model/ListDeployedAlgorithmModelsResult.h | 74 + .../opensearch/model/ListFirstRanksRequest.h | 51 + .../opensearch/model/ListFirstRanksResult.h | 68 + .../ListInterventionDictionariesRequest.h | 54 + .../ListInterventionDictionariesResult.h | 64 + ...ListInterventionDictionaryEntriesRequest.h | 57 + .../ListInterventionDictionaryEntriesResult.h | 72 + ...tInterventionDictionaryNerResultsRequest.h | 51 + ...stInterventionDictionaryNerResultsResult.h | 60 + ...rventionDictionaryRelatedEntitiesRequest.h | 48 + ...erventionDictionaryRelatedEntitiesResult.h | 53 + .../opensearch/model/ListModelsRequest.h | 57 + .../opensearch/model/ListModelsResult.h | 53 + .../model/ListQueryProcessorNersRequest.h | 48 + .../model/ListQueryProcessorNersResult.h | 60 + .../model/ListQueryProcessorsRequest.h | 54 + .../model/ListQueryProcessorsResult.h | 63 + .../model/ListScheduledTasksRequest.h | 57 + .../model/ListScheduledTasksResult.h | 55 + .../opensearch/model/ListSecondRanksRequest.h | 51 + .../opensearch/model/ListSecondRanksResult.h | 67 + .../model/ListSlowQueryCategoriesRequest.h | 48 + .../model/ListSlowQueryCategoriesResult.h | 59 + .../model/ListSlowQueryQueriesRequest.h | 51 + .../model/ListSlowQueryQueriesResult.h | 60 + .../model/ListSortExpressionsRequest.h | 51 + .../model/ListSortExpressionsResult.h | 61 + .../opensearch/model/ListSortScriptsRequest.h | 51 + .../opensearch/model/ListSortScriptsResult.h | 62 + .../model/ListStatisticLogsRequest.h | 75 + .../model/ListStatisticLogsResult.h | 55 + .../model/ListStatisticReportRequest.h | 69 + .../model/ListStatisticReportResult.h | 55 + .../model/ListUserAnalyzerEntriesRequest.h | 57 + .../model/ListUserAnalyzerEntriesResult.h | 51 + .../model/ListUserAnalyzersRequest.h | 51 + .../model/ListUserAnalyzersResult.h | 75 + .../model/ModifyAppGroupQuotaRequest.h | 48 + .../model/ModifyAppGroupQuotaResult.h | 86 + .../opensearch/model/ModifyAppGroupRequest.h | 48 + .../opensearch/model/ModifyAppGroupResult.h | 86 + .../opensearch/model/ModifyFirstRankRequest.h | 57 + .../opensearch/model/ModifyFirstRankResult.h | 66 + .../opensearch/model/ModifyModelRequest.h | 51 + .../opensearch/model/ModifyModelResult.h | 53 + .../model/ModifyQueryProcessorRequest.h | 57 + .../model/ModifyQueryProcessorResult.h | 63 + .../model/ModifyScheduledTaskRequest.h | 51 + .../model/ModifyScheduledTaskResult.h | 53 + .../model/ModifySecondRankRequest.h | 57 + .../opensearch/model/ModifySecondRankResult.h | 65 + .../opensearch/model/PreviewModelRequest.h | 54 + .../opensearch/model/PreviewModelResult.h | 55 + ...PushInterventionDictionaryEntriesRequest.h | 48 + .../PushInterventionDictionaryEntriesResult.h | 53 + .../model/PushUserAnalyzerEntriesRequest.h | 48 + .../model/PushUserAnalyzerEntriesResult.h | 51 + .../model/RankPreviewQueryRequest.h | 51 + .../opensearch/model/RankPreviewQueryResult.h | 51 + .../model/ReleaseSortScriptRequest.h | 54 + .../model/ReleaseSortScriptResult.h | 51 + .../opensearch/model/RemoveAppGroupRequest.h | 48 + .../opensearch/model/RemoveAppGroupResult.h | 53 + .../opensearch/model/RemoveAppRequest.h | 51 + .../opensearch/model/RemoveAppResult.h | 53 + .../model/RemoveDataCollectionRequest.h | 51 + .../model/RemoveDataCollectionResult.h | 53 + .../opensearch/model/RemoveFirstRankRequest.h | 54 + .../opensearch/model/RemoveFirstRankResult.h | 66 + .../RemoveInterventionDictionaryRequest.h | 48 + .../RemoveInterventionDictionaryResult.h | 61 + .../model/RemoveQueryProcessorRequest.h | 54 + .../model/RemoveQueryProcessorResult.h | 53 + .../model/RemoveScheduledTaskRequest.h | 51 + .../model/RemoveScheduledTaskResult.h | 53 + .../model/RemoveSecondRankRequest.h | 54 + .../opensearch/model/RemoveSecondRankResult.h | 53 + .../model/RemoveUserAnalyzerRequest.h | 48 + .../model/RemoveUserAnalyzerResult.h | 53 + .../opensearch/model/RenewAppGroupRequest.h | 48 + .../opensearch/model/RenewAppGroupResult.h | 51 + .../ReplaceAppGroupCommodityCodeRequest.h | 48 + .../ReplaceAppGroupCommodityCodeResult.h | 87 + .../model/SaveSortScriptFileRequest.h | 57 + .../model/SaveSortScriptFileResult.h | 51 + .../model/StartSlowQueryAnalyzerRequest.h | 48 + .../model/StartSlowQueryAnalyzerResult.h | 53 + .../opensearch/model/TrainModelRequest.h | 51 + .../opensearch/model/TrainModelResult.h | 53 + .../model/UpdateABTestExperimentRequest.h | 57 + .../model/UpdateABTestExperimentResult.h | 63 + .../UpdateABTestFixedFlowDividersRequest.h | 57 + .../UpdateABTestFixedFlowDividersResult.h | 53 + .../model/UpdateABTestGroupRequest.h | 54 + .../model/UpdateABTestGroupResult.h | 61 + .../model/UpdateABTestSceneRequest.h | 51 + .../model/UpdateABTestSceneResult.h | 63 + .../model/UpdateFetchFieldsRequest.h | 54 + .../model/UpdateFetchFieldsResult.h | 53 + .../opensearch/model/UpdateSummariesRequest.h | 54 + .../opensearch/model/UpdateSummariesResult.h | 53 + opensearch/src/OpenSearchClient.cc | 4013 +++++++++++++++++ .../src/model/CompileSortScriptRequest.cc | 63 + .../src/model/CompileSortScriptResult.cc | 51 + .../model/CreateABTestExperimentRequest.cc | 63 + .../src/model/CreateABTestExperimentResult.cc | 71 + .../src/model/CreateABTestGroupRequest.cc | 52 + .../src/model/CreateABTestGroupResult.cc | 67 + .../src/model/CreateABTestSceneRequest.cc | 41 + .../src/model/CreateABTestSceneResult.cc | 70 + opensearch/src/model/CreateAppGroupRequest.cc | 30 + opensearch/src/model/CreateAppGroupResult.cc | 110 + opensearch/src/model/CreateAppRequest.cc | 52 + opensearch/src/model/CreateAppResult.cc | 58 + .../src/model/CreateDataCollectionRequest.cc | 41 + .../src/model/CreateDataCollectionResult.cc | 75 + .../src/model/CreateFirstRankRequest.cc | 63 + opensearch/src/model/CreateFirstRankResult.cc | 73 + .../CreateInterventionDictionaryRequest.cc | 30 + .../CreateInterventionDictionaryResult.cc | 67 + opensearch/src/model/CreateModelRequest.cc | 41 + opensearch/src/model/CreateModelResult.cc | 58 + .../src/model/CreateQueryProcessorRequest.cc | 63 + .../src/model/CreateQueryProcessorResult.cc | 73 + .../src/model/CreateScheduledTaskRequest.cc | 41 + .../src/model/CreateScheduledTaskResult.cc | 58 + .../src/model/CreateSecondRankRequest.cc | 63 + .../src/model/CreateSecondRankResult.cc | 51 + .../src/model/CreateSortScriptRequest.cc | 52 + .../src/model/CreateSortScriptResult.cc | 51 + .../src/model/CreateUserAnalyzerRequest.cc | 30 + .../src/model/CreateUserAnalyzerResult.cc | 51 + .../model/DeleteABTestExperimentRequest.cc | 74 + .../src/model/DeleteABTestExperimentResult.cc | 58 + .../src/model/DeleteABTestGroupRequest.cc | 63 + .../src/model/DeleteABTestGroupResult.cc | 58 + .../src/model/DeleteABTestSceneRequest.cc | 52 + .../src/model/DeleteABTestSceneResult.cc | 58 + opensearch/src/model/DeleteModelRequest.cc | 52 + opensearch/src/model/DeleteModelResult.cc | 58 + .../src/model/DeleteSortScriptFileRequest.cc | 74 + .../src/model/DeleteSortScriptFileResult.cc | 51 + .../src/model/DeleteSortScriptRequest.cc | 63 + .../src/model/DeleteSortScriptResult.cc | 51 + .../model/DescribeABTestExperimentRequest.cc | 74 + .../model/DescribeABTestExperimentResult.cc | 72 + .../src/model/DescribeABTestGroupRequest.cc | 63 + .../src/model/DescribeABTestGroupResult.cc | 67 + .../src/model/DescribeABTestSceneRequest.cc | 52 + .../src/model/DescribeABTestSceneResult.cc | 70 + .../DescribeAppGroupDataReportRequest.cc | 63 + .../model/DescribeAppGroupDataReportResult.cc | 88 + .../src/model/DescribeAppGroupRequest.cc | 41 + .../src/model/DescribeAppGroupResult.cc | 110 + opensearch/src/model/DescribeAppRequest.cc | 52 + opensearch/src/model/DescribeAppResult.cc | 89 + .../src/model/DescribeAppStatisticsRequest.cc | 52 + .../src/model/DescribeAppStatisticsResult.cc | 58 + opensearch/src/model/DescribeAppsRequest.cc | 41 + opensearch/src/model/DescribeAppsResult.cc | 59 + .../src/model/DescribeDataCollctionRequest.cc | 52 + .../src/model/DescribeDataCollctionResult.cc | 75 + .../src/model/DescribeFirstRankRequest.cc | 63 + .../src/model/DescribeFirstRankResult.cc | 75 + .../DescribeInterventionDictionaryRequest.cc | 41 + .../DescribeInterventionDictionaryResult.cc | 67 + opensearch/src/model/DescribeModelRequest.cc | 52 + opensearch/src/model/DescribeModelResult.cc | 58 + .../model/DescribeQueryProcessorRequest.cc | 63 + .../src/model/DescribeQueryProcessorResult.cc | 73 + opensearch/src/model/DescribeRegionRequest.cc | 30 + opensearch/src/model/DescribeRegionResult.cc | 61 + .../src/model/DescribeRegionsRequest.cc | 30 + opensearch/src/model/DescribeRegionsResult.cc | 70 + .../src/model/DescribeScheduledTaskRequest.cc | 52 + .../src/model/DescribeScheduledTaskResult.cc | 58 + .../src/model/DescribeSecondRankRequest.cc | 63 + .../src/model/DescribeSecondRankResult.cc | 75 + .../model/DescribeSlowQueryStatusRequest.cc | 41 + .../model/DescribeSlowQueryStatusResult.cc | 63 + .../src/model/DescribeUserAnalyzerRequest.cc | 52 + .../src/model/DescribeUserAnalyzerResult.cc | 58 + .../src/model/DisableSlowQueryRequest.cc | 41 + .../src/model/DisableSlowQueryResult.cc | 58 + .../src/model/EnableSlowQueryRequest.cc | 41 + opensearch/src/model/EnableSlowQueryResult.cc | 58 + .../src/model/GetModelProgressRequest.cc | 52 + .../src/model/GetModelProgressResult.cc | 61 + opensearch/src/model/GetModelReportRequest.cc | 52 + opensearch/src/model/GetModelReportResult.cc | 58 + .../src/model/GetScriptFileNamesRequest.cc | 63 + .../src/model/GetScriptFileNamesResult.cc | 68 + .../src/model/GetSortScriptFileRequest.cc | 74 + .../src/model/GetSortScriptFileResult.cc | 65 + opensearch/src/model/GetSortScriptRequest.cc | 63 + opensearch/src/model/GetSortScriptResult.cc | 67 + .../src/model/GetValidationErrorRequest.cc | 52 + .../src/model/GetValidationErrorResult.cc | 59 + .../src/model/GetValidationReportRequest.cc | 52 + .../src/model/GetValidationReportResult.cc | 59 + .../src/model/ListABTestExperimentsRequest.cc | 63 + .../src/model/ListABTestExperimentsResult.cc | 76 + .../ListABTestFixedFlowDividersRequest.cc | 74 + .../ListABTestFixedFlowDividersResult.cc | 59 + .../src/model/ListABTestGroupsRequest.cc | 52 + .../src/model/ListABTestGroupsResult.cc | 72 + .../src/model/ListABTestMetricsRequest.cc | 63 + .../src/model/ListABTestMetricsResult.cc | 78 + .../src/model/ListABTestScenesRequest.cc | 41 + .../src/model/ListABTestScenesResult.cc | 75 + .../src/model/ListAppGroupErrorsRequest.cc | 96 + .../src/model/ListAppGroupErrorsResult.cc | 66 + .../src/model/ListAppGroupMetricsRequest.cc | 85 + .../src/model/ListAppGroupMetricsResult.cc | 59 + opensearch/src/model/ListAppGroupsRequest.cc | 107 + opensearch/src/model/ListAppGroupsResult.cc | 122 + opensearch/src/model/ListAppsRequest.cc | 63 + opensearch/src/model/ListAppsResult.cc | 44 + .../src/model/ListDataCollectionsRequest.cc | 63 + .../src/model/ListDataCollectionsResult.cc | 87 + .../ListDeployedAlgorithmModelsRequest.cc | 63 + .../ListDeployedAlgorithmModelsResult.cc | 97 + opensearch/src/model/ListFirstRanksRequest.cc | 52 + opensearch/src/model/ListFirstRanksResult.cc | 84 + .../ListInterventionDictionariesRequest.cc | 63 + .../ListInterventionDictionariesResult.cc | 81 + ...istInterventionDictionaryEntriesRequest.cc | 74 + ...ListInterventionDictionaryEntriesResult.cc | 95 + ...InterventionDictionaryNerResultsRequest.cc | 52 + ...tInterventionDictionaryNerResultsResult.cc | 70 + ...ventionDictionaryRelatedEntitiesRequest.cc | 41 + ...rventionDictionaryRelatedEntitiesResult.cc | 59 + opensearch/src/model/ListModelsRequest.cc | 74 + opensearch/src/model/ListModelsResult.cc | 59 + .../model/ListQueryProcessorNersRequest.cc | 41 + .../src/model/ListQueryProcessorNersResult.cc | 70 + .../src/model/ListQueryProcessorsRequest.cc | 63 + .../src/model/ListQueryProcessorsResult.cc | 78 + .../src/model/ListScheduledTasksRequest.cc | 74 + .../src/model/ListScheduledTasksResult.cc | 66 + .../src/model/ListSecondRanksRequest.cc | 52 + opensearch/src/model/ListSecondRanksResult.cc | 87 + .../model/ListSlowQueryCategoriesRequest.cc | 41 + .../model/ListSlowQueryCategoriesResult.cc | 63 + .../src/model/ListSlowQueryQueriesRequest.cc | 52 + .../src/model/ListSlowQueryQueriesResult.cc | 65 + .../src/model/ListSortExpressionsRequest.cc | 52 + .../src/model/ListSortExpressionsResult.cc | 72 + .../src/model/ListSortScriptsRequest.cc | 52 + opensearch/src/model/ListSortScriptsResult.cc | 74 + .../src/model/ListStatisticLogsRequest.cc | 140 + .../src/model/ListStatisticLogsResult.cc | 66 + .../src/model/ListStatisticReportRequest.cc | 118 + .../src/model/ListStatisticReportResult.cc | 66 + .../model/ListUserAnalyzerEntriesRequest.cc | 74 + .../model/ListUserAnalyzerEntriesResult.cc | 51 + .../src/model/ListUserAnalyzersRequest.cc | 52 + .../src/model/ListUserAnalyzersResult.cc | 101 + .../src/model/ModifyAppGroupQuotaRequest.cc | 41 + .../src/model/ModifyAppGroupQuotaResult.cc | 110 + opensearch/src/model/ModifyAppGroupRequest.cc | 41 + opensearch/src/model/ModifyAppGroupResult.cc | 110 + .../src/model/ModifyFirstRankRequest.cc | 74 + opensearch/src/model/ModifyFirstRankResult.cc | 75 + opensearch/src/model/ModifyModelRequest.cc | 52 + opensearch/src/model/ModifyModelResult.cc | 58 + .../src/model/ModifyQueryProcessorRequest.cc | 74 + .../src/model/ModifyQueryProcessorResult.cc | 73 + .../src/model/ModifyScheduledTaskRequest.cc | 52 + .../src/model/ModifyScheduledTaskResult.cc | 58 + .../src/model/ModifySecondRankRequest.cc | 74 + .../src/model/ModifySecondRankResult.cc | 75 + opensearch/src/model/PreviewModelRequest.cc | 63 + opensearch/src/model/PreviewModelResult.cc | 66 + ...ushInterventionDictionaryEntriesRequest.cc | 41 + ...PushInterventionDictionaryEntriesResult.cc | 59 + .../model/PushUserAnalyzerEntriesRequest.cc | 41 + .../model/PushUserAnalyzerEntriesResult.cc | 51 + .../src/model/RankPreviewQueryRequest.cc | 52 + .../src/model/RankPreviewQueryResult.cc | 51 + .../src/model/ReleaseSortScriptRequest.cc | 63 + .../src/model/ReleaseSortScriptResult.cc | 51 + opensearch/src/model/RemoveAppGroupRequest.cc | 41 + opensearch/src/model/RemoveAppGroupResult.cc | 59 + opensearch/src/model/RemoveAppRequest.cc | 52 + opensearch/src/model/RemoveAppResult.cc | 59 + .../src/model/RemoveDataCollectionRequest.cc | 52 + .../src/model/RemoveDataCollectionResult.cc | 58 + .../src/model/RemoveFirstRankRequest.cc | 63 + opensearch/src/model/RemoveFirstRankResult.cc | 75 + .../RemoveInterventionDictionaryRequest.cc | 41 + .../RemoveInterventionDictionaryResult.cc | 67 + .../src/model/RemoveQueryProcessorRequest.cc | 63 + .../src/model/RemoveQueryProcessorResult.cc | 58 + .../src/model/RemoveScheduledTaskRequest.cc | 52 + .../src/model/RemoveScheduledTaskResult.cc | 59 + .../src/model/RemoveSecondRankRequest.cc | 63 + .../src/model/RemoveSecondRankResult.cc | 58 + .../src/model/RemoveUserAnalyzerRequest.cc | 41 + .../src/model/RemoveUserAnalyzerResult.cc | 58 + opensearch/src/model/RenewAppGroupRequest.cc | 41 + opensearch/src/model/RenewAppGroupResult.cc | 51 + .../ReplaceAppGroupCommodityCodeRequest.cc | 41 + .../ReplaceAppGroupCommodityCodeResult.cc | 113 + .../src/model/SaveSortScriptFileRequest.cc | 74 + .../src/model/SaveSortScriptFileResult.cc | 51 + .../model/StartSlowQueryAnalyzerRequest.cc | 41 + .../src/model/StartSlowQueryAnalyzerResult.cc | 58 + opensearch/src/model/TrainModelRequest.cc | 52 + opensearch/src/model/TrainModelResult.cc | 58 + .../model/UpdateABTestExperimentRequest.cc | 74 + .../src/model/UpdateABTestExperimentResult.cc | 71 + .../UpdateABTestFixedFlowDividersRequest.cc | 74 + .../UpdateABTestFixedFlowDividersResult.cc | 59 + .../src/model/UpdateABTestGroupRequest.cc | 63 + .../src/model/UpdateABTestGroupResult.cc | 67 + .../src/model/UpdateABTestSceneRequest.cc | 52 + .../src/model/UpdateABTestSceneResult.cc | 71 + .../src/model/UpdateFetchFieldsRequest.cc | 63 + .../src/model/UpdateFetchFieldsResult.cc | 58 + .../src/model/UpdateSummariesRequest.cc | 63 + opensearch/src/model/UpdateSummariesResult.cc | 58 + 445 files changed, 31552 insertions(+) create mode 100644 opensearch/CMakeLists.txt create mode 100644 opensearch/include/alibabacloud/opensearch/OpenSearchClient.h create mode 100644 opensearch/include/alibabacloud/opensearch/OpenSearchExport.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/CompileSortScriptRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/CompileSortScriptResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/CreateABTestExperimentRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/CreateABTestExperimentResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/CreateABTestGroupRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/CreateABTestGroupResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/CreateABTestSceneRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/CreateABTestSceneResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/CreateAppGroupRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/CreateAppGroupResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/CreateAppRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/CreateAppResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/CreateDataCollectionRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/CreateDataCollectionResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/CreateFirstRankRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/CreateFirstRankResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/CreateInterventionDictionaryRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/CreateInterventionDictionaryResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/CreateModelRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/CreateModelResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/CreateQueryProcessorRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/CreateQueryProcessorResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/CreateScheduledTaskRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/CreateScheduledTaskResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/CreateSecondRankRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/CreateSecondRankResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/CreateSortScriptRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/CreateSortScriptResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/CreateUserAnalyzerRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/CreateUserAnalyzerResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DeleteABTestExperimentRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DeleteABTestExperimentResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DeleteABTestGroupRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DeleteABTestGroupResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DeleteABTestSceneRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DeleteABTestSceneResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DeleteModelRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DeleteModelResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DeleteSortScriptFileRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DeleteSortScriptFileResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DeleteSortScriptRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DeleteSortScriptResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DescribeABTestExperimentRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DescribeABTestExperimentResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DescribeABTestGroupRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DescribeABTestGroupResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DescribeABTestSceneRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DescribeABTestSceneResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DescribeAppGroupDataReportRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DescribeAppGroupDataReportResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DescribeAppGroupRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DescribeAppGroupResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DescribeAppRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DescribeAppResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DescribeAppStatisticsRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DescribeAppStatisticsResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DescribeAppsRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DescribeAppsResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DescribeDataCollctionRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DescribeDataCollctionResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DescribeFirstRankRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DescribeFirstRankResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DescribeInterventionDictionaryRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DescribeInterventionDictionaryResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DescribeModelRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DescribeModelResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DescribeQueryProcessorRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DescribeQueryProcessorResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DescribeRegionRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DescribeRegionResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DescribeRegionsRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DescribeRegionsResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DescribeScheduledTaskRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DescribeScheduledTaskResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DescribeSecondRankRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DescribeSecondRankResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DescribeSlowQueryStatusRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DescribeSlowQueryStatusResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DescribeUserAnalyzerRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DescribeUserAnalyzerResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DisableSlowQueryRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DisableSlowQueryResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/EnableSlowQueryRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/EnableSlowQueryResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/GetModelProgressRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/GetModelProgressResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/GetModelReportRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/GetModelReportResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/GetScriptFileNamesRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/GetScriptFileNamesResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/GetSortScriptFileRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/GetSortScriptFileResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/GetSortScriptRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/GetSortScriptResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/GetValidationErrorRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/GetValidationErrorResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/GetValidationReportRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/GetValidationReportResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListABTestExperimentsRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListABTestExperimentsResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListABTestFixedFlowDividersRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListABTestFixedFlowDividersResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListABTestGroupsRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListABTestGroupsResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListABTestMetricsRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListABTestMetricsResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListABTestScenesRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListABTestScenesResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListAppGroupErrorsRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListAppGroupErrorsResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListAppGroupMetricsRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListAppGroupMetricsResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListAppGroupsRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListAppGroupsResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListAppsRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListAppsResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListDataCollectionsRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListDataCollectionsResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListDeployedAlgorithmModelsRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListDeployedAlgorithmModelsResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListFirstRanksRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListFirstRanksResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionariesRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionariesResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionaryEntriesRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionaryEntriesResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionaryNerResultsRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionaryNerResultsResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionaryRelatedEntitiesRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionaryRelatedEntitiesResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListModelsRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListModelsResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListQueryProcessorNersRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListQueryProcessorNersResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListQueryProcessorsRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListQueryProcessorsResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListScheduledTasksRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListScheduledTasksResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListSecondRanksRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListSecondRanksResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListSlowQueryCategoriesRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListSlowQueryCategoriesResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListSlowQueryQueriesRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListSlowQueryQueriesResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListSortExpressionsRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListSortExpressionsResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListSortScriptsRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListSortScriptsResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListStatisticLogsRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListStatisticLogsResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListStatisticReportRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListStatisticReportResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListUserAnalyzerEntriesRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListUserAnalyzerEntriesResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListUserAnalyzersRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListUserAnalyzersResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ModifyAppGroupQuotaRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ModifyAppGroupQuotaResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ModifyAppGroupRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ModifyAppGroupResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ModifyFirstRankRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ModifyFirstRankResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ModifyModelRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ModifyModelResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ModifyQueryProcessorRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ModifyQueryProcessorResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ModifyScheduledTaskRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ModifyScheduledTaskResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ModifySecondRankRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ModifySecondRankResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/PreviewModelRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/PreviewModelResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/PushInterventionDictionaryEntriesRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/PushInterventionDictionaryEntriesResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/PushUserAnalyzerEntriesRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/PushUserAnalyzerEntriesResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/RankPreviewQueryRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/RankPreviewQueryResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ReleaseSortScriptRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ReleaseSortScriptResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/RemoveAppGroupRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/RemoveAppGroupResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/RemoveAppRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/RemoveAppResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/RemoveDataCollectionRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/RemoveDataCollectionResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/RemoveFirstRankRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/RemoveFirstRankResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/RemoveInterventionDictionaryRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/RemoveInterventionDictionaryResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/RemoveQueryProcessorRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/RemoveQueryProcessorResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/RemoveScheduledTaskRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/RemoveScheduledTaskResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/RemoveSecondRankRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/RemoveSecondRankResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/RemoveUserAnalyzerRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/RemoveUserAnalyzerResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/RenewAppGroupRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/RenewAppGroupResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ReplaceAppGroupCommodityCodeRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ReplaceAppGroupCommodityCodeResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/SaveSortScriptFileRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/SaveSortScriptFileResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/StartSlowQueryAnalyzerRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/StartSlowQueryAnalyzerResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/TrainModelRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/TrainModelResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/UpdateABTestExperimentRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/UpdateABTestExperimentResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/UpdateABTestFixedFlowDividersRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/UpdateABTestFixedFlowDividersResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/UpdateABTestGroupRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/UpdateABTestGroupResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/UpdateABTestSceneRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/UpdateABTestSceneResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/UpdateFetchFieldsRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/UpdateFetchFieldsResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/UpdateSummariesRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/UpdateSummariesResult.h create mode 100644 opensearch/src/OpenSearchClient.cc create mode 100644 opensearch/src/model/CompileSortScriptRequest.cc create mode 100644 opensearch/src/model/CompileSortScriptResult.cc create mode 100644 opensearch/src/model/CreateABTestExperimentRequest.cc create mode 100644 opensearch/src/model/CreateABTestExperimentResult.cc create mode 100644 opensearch/src/model/CreateABTestGroupRequest.cc create mode 100644 opensearch/src/model/CreateABTestGroupResult.cc create mode 100644 opensearch/src/model/CreateABTestSceneRequest.cc create mode 100644 opensearch/src/model/CreateABTestSceneResult.cc create mode 100644 opensearch/src/model/CreateAppGroupRequest.cc create mode 100644 opensearch/src/model/CreateAppGroupResult.cc create mode 100644 opensearch/src/model/CreateAppRequest.cc create mode 100644 opensearch/src/model/CreateAppResult.cc create mode 100644 opensearch/src/model/CreateDataCollectionRequest.cc create mode 100644 opensearch/src/model/CreateDataCollectionResult.cc create mode 100644 opensearch/src/model/CreateFirstRankRequest.cc create mode 100644 opensearch/src/model/CreateFirstRankResult.cc create mode 100644 opensearch/src/model/CreateInterventionDictionaryRequest.cc create mode 100644 opensearch/src/model/CreateInterventionDictionaryResult.cc create mode 100644 opensearch/src/model/CreateModelRequest.cc create mode 100644 opensearch/src/model/CreateModelResult.cc create mode 100644 opensearch/src/model/CreateQueryProcessorRequest.cc create mode 100644 opensearch/src/model/CreateQueryProcessorResult.cc create mode 100644 opensearch/src/model/CreateScheduledTaskRequest.cc create mode 100644 opensearch/src/model/CreateScheduledTaskResult.cc create mode 100644 opensearch/src/model/CreateSecondRankRequest.cc create mode 100644 opensearch/src/model/CreateSecondRankResult.cc create mode 100644 opensearch/src/model/CreateSortScriptRequest.cc create mode 100644 opensearch/src/model/CreateSortScriptResult.cc create mode 100644 opensearch/src/model/CreateUserAnalyzerRequest.cc create mode 100644 opensearch/src/model/CreateUserAnalyzerResult.cc create mode 100644 opensearch/src/model/DeleteABTestExperimentRequest.cc create mode 100644 opensearch/src/model/DeleteABTestExperimentResult.cc create mode 100644 opensearch/src/model/DeleteABTestGroupRequest.cc create mode 100644 opensearch/src/model/DeleteABTestGroupResult.cc create mode 100644 opensearch/src/model/DeleteABTestSceneRequest.cc create mode 100644 opensearch/src/model/DeleteABTestSceneResult.cc create mode 100644 opensearch/src/model/DeleteModelRequest.cc create mode 100644 opensearch/src/model/DeleteModelResult.cc create mode 100644 opensearch/src/model/DeleteSortScriptFileRequest.cc create mode 100644 opensearch/src/model/DeleteSortScriptFileResult.cc create mode 100644 opensearch/src/model/DeleteSortScriptRequest.cc create mode 100644 opensearch/src/model/DeleteSortScriptResult.cc create mode 100644 opensearch/src/model/DescribeABTestExperimentRequest.cc create mode 100644 opensearch/src/model/DescribeABTestExperimentResult.cc create mode 100644 opensearch/src/model/DescribeABTestGroupRequest.cc create mode 100644 opensearch/src/model/DescribeABTestGroupResult.cc create mode 100644 opensearch/src/model/DescribeABTestSceneRequest.cc create mode 100644 opensearch/src/model/DescribeABTestSceneResult.cc create mode 100644 opensearch/src/model/DescribeAppGroupDataReportRequest.cc create mode 100644 opensearch/src/model/DescribeAppGroupDataReportResult.cc create mode 100644 opensearch/src/model/DescribeAppGroupRequest.cc create mode 100644 opensearch/src/model/DescribeAppGroupResult.cc create mode 100644 opensearch/src/model/DescribeAppRequest.cc create mode 100644 opensearch/src/model/DescribeAppResult.cc create mode 100644 opensearch/src/model/DescribeAppStatisticsRequest.cc create mode 100644 opensearch/src/model/DescribeAppStatisticsResult.cc create mode 100644 opensearch/src/model/DescribeAppsRequest.cc create mode 100644 opensearch/src/model/DescribeAppsResult.cc create mode 100644 opensearch/src/model/DescribeDataCollctionRequest.cc create mode 100644 opensearch/src/model/DescribeDataCollctionResult.cc create mode 100644 opensearch/src/model/DescribeFirstRankRequest.cc create mode 100644 opensearch/src/model/DescribeFirstRankResult.cc create mode 100644 opensearch/src/model/DescribeInterventionDictionaryRequest.cc create mode 100644 opensearch/src/model/DescribeInterventionDictionaryResult.cc create mode 100644 opensearch/src/model/DescribeModelRequest.cc create mode 100644 opensearch/src/model/DescribeModelResult.cc create mode 100644 opensearch/src/model/DescribeQueryProcessorRequest.cc create mode 100644 opensearch/src/model/DescribeQueryProcessorResult.cc create mode 100644 opensearch/src/model/DescribeRegionRequest.cc create mode 100644 opensearch/src/model/DescribeRegionResult.cc create mode 100644 opensearch/src/model/DescribeRegionsRequest.cc create mode 100644 opensearch/src/model/DescribeRegionsResult.cc create mode 100644 opensearch/src/model/DescribeScheduledTaskRequest.cc create mode 100644 opensearch/src/model/DescribeScheduledTaskResult.cc create mode 100644 opensearch/src/model/DescribeSecondRankRequest.cc create mode 100644 opensearch/src/model/DescribeSecondRankResult.cc create mode 100644 opensearch/src/model/DescribeSlowQueryStatusRequest.cc create mode 100644 opensearch/src/model/DescribeSlowQueryStatusResult.cc create mode 100644 opensearch/src/model/DescribeUserAnalyzerRequest.cc create mode 100644 opensearch/src/model/DescribeUserAnalyzerResult.cc create mode 100644 opensearch/src/model/DisableSlowQueryRequest.cc create mode 100644 opensearch/src/model/DisableSlowQueryResult.cc create mode 100644 opensearch/src/model/EnableSlowQueryRequest.cc create mode 100644 opensearch/src/model/EnableSlowQueryResult.cc create mode 100644 opensearch/src/model/GetModelProgressRequest.cc create mode 100644 opensearch/src/model/GetModelProgressResult.cc create mode 100644 opensearch/src/model/GetModelReportRequest.cc create mode 100644 opensearch/src/model/GetModelReportResult.cc create mode 100644 opensearch/src/model/GetScriptFileNamesRequest.cc create mode 100644 opensearch/src/model/GetScriptFileNamesResult.cc create mode 100644 opensearch/src/model/GetSortScriptFileRequest.cc create mode 100644 opensearch/src/model/GetSortScriptFileResult.cc create mode 100644 opensearch/src/model/GetSortScriptRequest.cc create mode 100644 opensearch/src/model/GetSortScriptResult.cc create mode 100644 opensearch/src/model/GetValidationErrorRequest.cc create mode 100644 opensearch/src/model/GetValidationErrorResult.cc create mode 100644 opensearch/src/model/GetValidationReportRequest.cc create mode 100644 opensearch/src/model/GetValidationReportResult.cc create mode 100644 opensearch/src/model/ListABTestExperimentsRequest.cc create mode 100644 opensearch/src/model/ListABTestExperimentsResult.cc create mode 100644 opensearch/src/model/ListABTestFixedFlowDividersRequest.cc create mode 100644 opensearch/src/model/ListABTestFixedFlowDividersResult.cc create mode 100644 opensearch/src/model/ListABTestGroupsRequest.cc create mode 100644 opensearch/src/model/ListABTestGroupsResult.cc create mode 100644 opensearch/src/model/ListABTestMetricsRequest.cc create mode 100644 opensearch/src/model/ListABTestMetricsResult.cc create mode 100644 opensearch/src/model/ListABTestScenesRequest.cc create mode 100644 opensearch/src/model/ListABTestScenesResult.cc create mode 100644 opensearch/src/model/ListAppGroupErrorsRequest.cc create mode 100644 opensearch/src/model/ListAppGroupErrorsResult.cc create mode 100644 opensearch/src/model/ListAppGroupMetricsRequest.cc create mode 100644 opensearch/src/model/ListAppGroupMetricsResult.cc create mode 100644 opensearch/src/model/ListAppGroupsRequest.cc create mode 100644 opensearch/src/model/ListAppGroupsResult.cc create mode 100644 opensearch/src/model/ListAppsRequest.cc create mode 100644 opensearch/src/model/ListAppsResult.cc create mode 100644 opensearch/src/model/ListDataCollectionsRequest.cc create mode 100644 opensearch/src/model/ListDataCollectionsResult.cc create mode 100644 opensearch/src/model/ListDeployedAlgorithmModelsRequest.cc create mode 100644 opensearch/src/model/ListDeployedAlgorithmModelsResult.cc create mode 100644 opensearch/src/model/ListFirstRanksRequest.cc create mode 100644 opensearch/src/model/ListFirstRanksResult.cc create mode 100644 opensearch/src/model/ListInterventionDictionariesRequest.cc create mode 100644 opensearch/src/model/ListInterventionDictionariesResult.cc create mode 100644 opensearch/src/model/ListInterventionDictionaryEntriesRequest.cc create mode 100644 opensearch/src/model/ListInterventionDictionaryEntriesResult.cc create mode 100644 opensearch/src/model/ListInterventionDictionaryNerResultsRequest.cc create mode 100644 opensearch/src/model/ListInterventionDictionaryNerResultsResult.cc create mode 100644 opensearch/src/model/ListInterventionDictionaryRelatedEntitiesRequest.cc create mode 100644 opensearch/src/model/ListInterventionDictionaryRelatedEntitiesResult.cc create mode 100644 opensearch/src/model/ListModelsRequest.cc create mode 100644 opensearch/src/model/ListModelsResult.cc create mode 100644 opensearch/src/model/ListQueryProcessorNersRequest.cc create mode 100644 opensearch/src/model/ListQueryProcessorNersResult.cc create mode 100644 opensearch/src/model/ListQueryProcessorsRequest.cc create mode 100644 opensearch/src/model/ListQueryProcessorsResult.cc create mode 100644 opensearch/src/model/ListScheduledTasksRequest.cc create mode 100644 opensearch/src/model/ListScheduledTasksResult.cc create mode 100644 opensearch/src/model/ListSecondRanksRequest.cc create mode 100644 opensearch/src/model/ListSecondRanksResult.cc create mode 100644 opensearch/src/model/ListSlowQueryCategoriesRequest.cc create mode 100644 opensearch/src/model/ListSlowQueryCategoriesResult.cc create mode 100644 opensearch/src/model/ListSlowQueryQueriesRequest.cc create mode 100644 opensearch/src/model/ListSlowQueryQueriesResult.cc create mode 100644 opensearch/src/model/ListSortExpressionsRequest.cc create mode 100644 opensearch/src/model/ListSortExpressionsResult.cc create mode 100644 opensearch/src/model/ListSortScriptsRequest.cc create mode 100644 opensearch/src/model/ListSortScriptsResult.cc create mode 100644 opensearch/src/model/ListStatisticLogsRequest.cc create mode 100644 opensearch/src/model/ListStatisticLogsResult.cc create mode 100644 opensearch/src/model/ListStatisticReportRequest.cc create mode 100644 opensearch/src/model/ListStatisticReportResult.cc create mode 100644 opensearch/src/model/ListUserAnalyzerEntriesRequest.cc create mode 100644 opensearch/src/model/ListUserAnalyzerEntriesResult.cc create mode 100644 opensearch/src/model/ListUserAnalyzersRequest.cc create mode 100644 opensearch/src/model/ListUserAnalyzersResult.cc create mode 100644 opensearch/src/model/ModifyAppGroupQuotaRequest.cc create mode 100644 opensearch/src/model/ModifyAppGroupQuotaResult.cc create mode 100644 opensearch/src/model/ModifyAppGroupRequest.cc create mode 100644 opensearch/src/model/ModifyAppGroupResult.cc create mode 100644 opensearch/src/model/ModifyFirstRankRequest.cc create mode 100644 opensearch/src/model/ModifyFirstRankResult.cc create mode 100644 opensearch/src/model/ModifyModelRequest.cc create mode 100644 opensearch/src/model/ModifyModelResult.cc create mode 100644 opensearch/src/model/ModifyQueryProcessorRequest.cc create mode 100644 opensearch/src/model/ModifyQueryProcessorResult.cc create mode 100644 opensearch/src/model/ModifyScheduledTaskRequest.cc create mode 100644 opensearch/src/model/ModifyScheduledTaskResult.cc create mode 100644 opensearch/src/model/ModifySecondRankRequest.cc create mode 100644 opensearch/src/model/ModifySecondRankResult.cc create mode 100644 opensearch/src/model/PreviewModelRequest.cc create mode 100644 opensearch/src/model/PreviewModelResult.cc create mode 100644 opensearch/src/model/PushInterventionDictionaryEntriesRequest.cc create mode 100644 opensearch/src/model/PushInterventionDictionaryEntriesResult.cc create mode 100644 opensearch/src/model/PushUserAnalyzerEntriesRequest.cc create mode 100644 opensearch/src/model/PushUserAnalyzerEntriesResult.cc create mode 100644 opensearch/src/model/RankPreviewQueryRequest.cc create mode 100644 opensearch/src/model/RankPreviewQueryResult.cc create mode 100644 opensearch/src/model/ReleaseSortScriptRequest.cc create mode 100644 opensearch/src/model/ReleaseSortScriptResult.cc create mode 100644 opensearch/src/model/RemoveAppGroupRequest.cc create mode 100644 opensearch/src/model/RemoveAppGroupResult.cc create mode 100644 opensearch/src/model/RemoveAppRequest.cc create mode 100644 opensearch/src/model/RemoveAppResult.cc create mode 100644 opensearch/src/model/RemoveDataCollectionRequest.cc create mode 100644 opensearch/src/model/RemoveDataCollectionResult.cc create mode 100644 opensearch/src/model/RemoveFirstRankRequest.cc create mode 100644 opensearch/src/model/RemoveFirstRankResult.cc create mode 100644 opensearch/src/model/RemoveInterventionDictionaryRequest.cc create mode 100644 opensearch/src/model/RemoveInterventionDictionaryResult.cc create mode 100644 opensearch/src/model/RemoveQueryProcessorRequest.cc create mode 100644 opensearch/src/model/RemoveQueryProcessorResult.cc create mode 100644 opensearch/src/model/RemoveScheduledTaskRequest.cc create mode 100644 opensearch/src/model/RemoveScheduledTaskResult.cc create mode 100644 opensearch/src/model/RemoveSecondRankRequest.cc create mode 100644 opensearch/src/model/RemoveSecondRankResult.cc create mode 100644 opensearch/src/model/RemoveUserAnalyzerRequest.cc create mode 100644 opensearch/src/model/RemoveUserAnalyzerResult.cc create mode 100644 opensearch/src/model/RenewAppGroupRequest.cc create mode 100644 opensearch/src/model/RenewAppGroupResult.cc create mode 100644 opensearch/src/model/ReplaceAppGroupCommodityCodeRequest.cc create mode 100644 opensearch/src/model/ReplaceAppGroupCommodityCodeResult.cc create mode 100644 opensearch/src/model/SaveSortScriptFileRequest.cc create mode 100644 opensearch/src/model/SaveSortScriptFileResult.cc create mode 100644 opensearch/src/model/StartSlowQueryAnalyzerRequest.cc create mode 100644 opensearch/src/model/StartSlowQueryAnalyzerResult.cc create mode 100644 opensearch/src/model/TrainModelRequest.cc create mode 100644 opensearch/src/model/TrainModelResult.cc create mode 100644 opensearch/src/model/UpdateABTestExperimentRequest.cc create mode 100644 opensearch/src/model/UpdateABTestExperimentResult.cc create mode 100644 opensearch/src/model/UpdateABTestFixedFlowDividersRequest.cc create mode 100644 opensearch/src/model/UpdateABTestFixedFlowDividersResult.cc create mode 100644 opensearch/src/model/UpdateABTestGroupRequest.cc create mode 100644 opensearch/src/model/UpdateABTestGroupResult.cc create mode 100644 opensearch/src/model/UpdateABTestSceneRequest.cc create mode 100644 opensearch/src/model/UpdateABTestSceneResult.cc create mode 100644 opensearch/src/model/UpdateFetchFieldsRequest.cc create mode 100644 opensearch/src/model/UpdateFetchFieldsResult.cc create mode 100644 opensearch/src/model/UpdateSummariesRequest.cc create mode 100644 opensearch/src/model/UpdateSummariesResult.cc diff --git a/CHANGELOG b/CHANGELOG index a22a8fdcc..d9c1257f0 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,7 @@ +2021-01-15 Version: patch +- Add API CreateSortScriptValidation. +- Add parameter resourceGroupId to API ListAppGroups. + 2021-01-15 Version: patch - Remove drcGuidRouteApi, ModifyDtsJobPassword API. diff --git a/opensearch/CMakeLists.txt b/opensearch/CMakeLists.txt new file mode 100644 index 000000000..99bbfedf2 --- /dev/null +++ b/opensearch/CMakeLists.txt @@ -0,0 +1,522 @@ +# +# Copyright 2009-2017 Alibaba Cloud All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include) + +set(opensearch_public_header + include/alibabacloud/opensearch/OpenSearchClient.h + include/alibabacloud/opensearch/OpenSearchExport.h ) + +set(opensearch_public_header_model + include/alibabacloud/opensearch/model/CompileSortScriptRequest.h + include/alibabacloud/opensearch/model/CompileSortScriptResult.h + include/alibabacloud/opensearch/model/CreateABTestExperimentRequest.h + include/alibabacloud/opensearch/model/CreateABTestExperimentResult.h + include/alibabacloud/opensearch/model/CreateABTestGroupRequest.h + include/alibabacloud/opensearch/model/CreateABTestGroupResult.h + include/alibabacloud/opensearch/model/CreateABTestSceneRequest.h + include/alibabacloud/opensearch/model/CreateABTestSceneResult.h + include/alibabacloud/opensearch/model/CreateAppRequest.h + include/alibabacloud/opensearch/model/CreateAppResult.h + include/alibabacloud/opensearch/model/CreateAppGroupRequest.h + include/alibabacloud/opensearch/model/CreateAppGroupResult.h + include/alibabacloud/opensearch/model/CreateDataCollectionRequest.h + include/alibabacloud/opensearch/model/CreateDataCollectionResult.h + include/alibabacloud/opensearch/model/CreateFirstRankRequest.h + include/alibabacloud/opensearch/model/CreateFirstRankResult.h + include/alibabacloud/opensearch/model/CreateInterventionDictionaryRequest.h + include/alibabacloud/opensearch/model/CreateInterventionDictionaryResult.h + include/alibabacloud/opensearch/model/CreateModelRequest.h + include/alibabacloud/opensearch/model/CreateModelResult.h + include/alibabacloud/opensearch/model/CreateQueryProcessorRequest.h + include/alibabacloud/opensearch/model/CreateQueryProcessorResult.h + include/alibabacloud/opensearch/model/CreateScheduledTaskRequest.h + include/alibabacloud/opensearch/model/CreateScheduledTaskResult.h + include/alibabacloud/opensearch/model/CreateSecondRankRequest.h + include/alibabacloud/opensearch/model/CreateSecondRankResult.h + include/alibabacloud/opensearch/model/CreateSortScriptRequest.h + include/alibabacloud/opensearch/model/CreateSortScriptResult.h + include/alibabacloud/opensearch/model/CreateUserAnalyzerRequest.h + include/alibabacloud/opensearch/model/CreateUserAnalyzerResult.h + include/alibabacloud/opensearch/model/DeleteABTestExperimentRequest.h + include/alibabacloud/opensearch/model/DeleteABTestExperimentResult.h + include/alibabacloud/opensearch/model/DeleteABTestGroupRequest.h + include/alibabacloud/opensearch/model/DeleteABTestGroupResult.h + include/alibabacloud/opensearch/model/DeleteABTestSceneRequest.h + include/alibabacloud/opensearch/model/DeleteABTestSceneResult.h + include/alibabacloud/opensearch/model/DeleteModelRequest.h + include/alibabacloud/opensearch/model/DeleteModelResult.h + include/alibabacloud/opensearch/model/DeleteSortScriptRequest.h + include/alibabacloud/opensearch/model/DeleteSortScriptResult.h + include/alibabacloud/opensearch/model/DeleteSortScriptFileRequest.h + include/alibabacloud/opensearch/model/DeleteSortScriptFileResult.h + include/alibabacloud/opensearch/model/DescribeABTestExperimentRequest.h + include/alibabacloud/opensearch/model/DescribeABTestExperimentResult.h + include/alibabacloud/opensearch/model/DescribeABTestGroupRequest.h + include/alibabacloud/opensearch/model/DescribeABTestGroupResult.h + include/alibabacloud/opensearch/model/DescribeABTestSceneRequest.h + include/alibabacloud/opensearch/model/DescribeABTestSceneResult.h + include/alibabacloud/opensearch/model/DescribeAppRequest.h + include/alibabacloud/opensearch/model/DescribeAppResult.h + include/alibabacloud/opensearch/model/DescribeAppGroupRequest.h + include/alibabacloud/opensearch/model/DescribeAppGroupResult.h + include/alibabacloud/opensearch/model/DescribeAppGroupDataReportRequest.h + include/alibabacloud/opensearch/model/DescribeAppGroupDataReportResult.h + include/alibabacloud/opensearch/model/DescribeAppStatisticsRequest.h + include/alibabacloud/opensearch/model/DescribeAppStatisticsResult.h + include/alibabacloud/opensearch/model/DescribeAppsRequest.h + include/alibabacloud/opensearch/model/DescribeAppsResult.h + include/alibabacloud/opensearch/model/DescribeDataCollctionRequest.h + include/alibabacloud/opensearch/model/DescribeDataCollctionResult.h + include/alibabacloud/opensearch/model/DescribeFirstRankRequest.h + include/alibabacloud/opensearch/model/DescribeFirstRankResult.h + include/alibabacloud/opensearch/model/DescribeInterventionDictionaryRequest.h + include/alibabacloud/opensearch/model/DescribeInterventionDictionaryResult.h + include/alibabacloud/opensearch/model/DescribeModelRequest.h + include/alibabacloud/opensearch/model/DescribeModelResult.h + include/alibabacloud/opensearch/model/DescribeQueryProcessorRequest.h + include/alibabacloud/opensearch/model/DescribeQueryProcessorResult.h + include/alibabacloud/opensearch/model/DescribeRegionRequest.h + include/alibabacloud/opensearch/model/DescribeRegionResult.h + include/alibabacloud/opensearch/model/DescribeRegionsRequest.h + include/alibabacloud/opensearch/model/DescribeRegionsResult.h + include/alibabacloud/opensearch/model/DescribeScheduledTaskRequest.h + include/alibabacloud/opensearch/model/DescribeScheduledTaskResult.h + include/alibabacloud/opensearch/model/DescribeSecondRankRequest.h + include/alibabacloud/opensearch/model/DescribeSecondRankResult.h + include/alibabacloud/opensearch/model/DescribeSlowQueryStatusRequest.h + include/alibabacloud/opensearch/model/DescribeSlowQueryStatusResult.h + include/alibabacloud/opensearch/model/DescribeUserAnalyzerRequest.h + include/alibabacloud/opensearch/model/DescribeUserAnalyzerResult.h + include/alibabacloud/opensearch/model/DisableSlowQueryRequest.h + include/alibabacloud/opensearch/model/DisableSlowQueryResult.h + include/alibabacloud/opensearch/model/EnableSlowQueryRequest.h + include/alibabacloud/opensearch/model/EnableSlowQueryResult.h + include/alibabacloud/opensearch/model/GetModelProgressRequest.h + include/alibabacloud/opensearch/model/GetModelProgressResult.h + include/alibabacloud/opensearch/model/GetModelReportRequest.h + include/alibabacloud/opensearch/model/GetModelReportResult.h + include/alibabacloud/opensearch/model/GetScriptFileNamesRequest.h + include/alibabacloud/opensearch/model/GetScriptFileNamesResult.h + include/alibabacloud/opensearch/model/GetSortScriptRequest.h + include/alibabacloud/opensearch/model/GetSortScriptResult.h + include/alibabacloud/opensearch/model/GetSortScriptFileRequest.h + include/alibabacloud/opensearch/model/GetSortScriptFileResult.h + include/alibabacloud/opensearch/model/GetValidationErrorRequest.h + include/alibabacloud/opensearch/model/GetValidationErrorResult.h + include/alibabacloud/opensearch/model/GetValidationReportRequest.h + include/alibabacloud/opensearch/model/GetValidationReportResult.h + include/alibabacloud/opensearch/model/ListABTestExperimentsRequest.h + include/alibabacloud/opensearch/model/ListABTestExperimentsResult.h + include/alibabacloud/opensearch/model/ListABTestFixedFlowDividersRequest.h + include/alibabacloud/opensearch/model/ListABTestFixedFlowDividersResult.h + include/alibabacloud/opensearch/model/ListABTestGroupsRequest.h + include/alibabacloud/opensearch/model/ListABTestGroupsResult.h + include/alibabacloud/opensearch/model/ListABTestMetricsRequest.h + include/alibabacloud/opensearch/model/ListABTestMetricsResult.h + include/alibabacloud/opensearch/model/ListABTestScenesRequest.h + include/alibabacloud/opensearch/model/ListABTestScenesResult.h + include/alibabacloud/opensearch/model/ListAppGroupErrorsRequest.h + include/alibabacloud/opensearch/model/ListAppGroupErrorsResult.h + include/alibabacloud/opensearch/model/ListAppGroupMetricsRequest.h + include/alibabacloud/opensearch/model/ListAppGroupMetricsResult.h + include/alibabacloud/opensearch/model/ListAppGroupsRequest.h + include/alibabacloud/opensearch/model/ListAppGroupsResult.h + include/alibabacloud/opensearch/model/ListAppsRequest.h + include/alibabacloud/opensearch/model/ListAppsResult.h + include/alibabacloud/opensearch/model/ListDataCollectionsRequest.h + include/alibabacloud/opensearch/model/ListDataCollectionsResult.h + include/alibabacloud/opensearch/model/ListDeployedAlgorithmModelsRequest.h + include/alibabacloud/opensearch/model/ListDeployedAlgorithmModelsResult.h + include/alibabacloud/opensearch/model/ListFirstRanksRequest.h + include/alibabacloud/opensearch/model/ListFirstRanksResult.h + include/alibabacloud/opensearch/model/ListInterventionDictionariesRequest.h + include/alibabacloud/opensearch/model/ListInterventionDictionariesResult.h + include/alibabacloud/opensearch/model/ListInterventionDictionaryEntriesRequest.h + include/alibabacloud/opensearch/model/ListInterventionDictionaryEntriesResult.h + include/alibabacloud/opensearch/model/ListInterventionDictionaryNerResultsRequest.h + include/alibabacloud/opensearch/model/ListInterventionDictionaryNerResultsResult.h + include/alibabacloud/opensearch/model/ListInterventionDictionaryRelatedEntitiesRequest.h + include/alibabacloud/opensearch/model/ListInterventionDictionaryRelatedEntitiesResult.h + include/alibabacloud/opensearch/model/ListModelsRequest.h + include/alibabacloud/opensearch/model/ListModelsResult.h + include/alibabacloud/opensearch/model/ListQueryProcessorNersRequest.h + include/alibabacloud/opensearch/model/ListQueryProcessorNersResult.h + include/alibabacloud/opensearch/model/ListQueryProcessorsRequest.h + include/alibabacloud/opensearch/model/ListQueryProcessorsResult.h + include/alibabacloud/opensearch/model/ListScheduledTasksRequest.h + include/alibabacloud/opensearch/model/ListScheduledTasksResult.h + include/alibabacloud/opensearch/model/ListSecondRanksRequest.h + include/alibabacloud/opensearch/model/ListSecondRanksResult.h + include/alibabacloud/opensearch/model/ListSlowQueryCategoriesRequest.h + include/alibabacloud/opensearch/model/ListSlowQueryCategoriesResult.h + include/alibabacloud/opensearch/model/ListSlowQueryQueriesRequest.h + include/alibabacloud/opensearch/model/ListSlowQueryQueriesResult.h + include/alibabacloud/opensearch/model/ListSortExpressionsRequest.h + include/alibabacloud/opensearch/model/ListSortExpressionsResult.h + include/alibabacloud/opensearch/model/ListSortScriptsRequest.h + include/alibabacloud/opensearch/model/ListSortScriptsResult.h + include/alibabacloud/opensearch/model/ListStatisticLogsRequest.h + include/alibabacloud/opensearch/model/ListStatisticLogsResult.h + include/alibabacloud/opensearch/model/ListStatisticReportRequest.h + include/alibabacloud/opensearch/model/ListStatisticReportResult.h + include/alibabacloud/opensearch/model/ListUserAnalyzerEntriesRequest.h + include/alibabacloud/opensearch/model/ListUserAnalyzerEntriesResult.h + include/alibabacloud/opensearch/model/ListUserAnalyzersRequest.h + include/alibabacloud/opensearch/model/ListUserAnalyzersResult.h + include/alibabacloud/opensearch/model/ModifyAppGroupRequest.h + include/alibabacloud/opensearch/model/ModifyAppGroupResult.h + include/alibabacloud/opensearch/model/ModifyAppGroupQuotaRequest.h + include/alibabacloud/opensearch/model/ModifyAppGroupQuotaResult.h + include/alibabacloud/opensearch/model/ModifyFirstRankRequest.h + include/alibabacloud/opensearch/model/ModifyFirstRankResult.h + include/alibabacloud/opensearch/model/ModifyModelRequest.h + include/alibabacloud/opensearch/model/ModifyModelResult.h + include/alibabacloud/opensearch/model/ModifyQueryProcessorRequest.h + include/alibabacloud/opensearch/model/ModifyQueryProcessorResult.h + include/alibabacloud/opensearch/model/ModifyScheduledTaskRequest.h + include/alibabacloud/opensearch/model/ModifyScheduledTaskResult.h + include/alibabacloud/opensearch/model/ModifySecondRankRequest.h + include/alibabacloud/opensearch/model/ModifySecondRankResult.h + include/alibabacloud/opensearch/model/PreviewModelRequest.h + include/alibabacloud/opensearch/model/PreviewModelResult.h + include/alibabacloud/opensearch/model/PushInterventionDictionaryEntriesRequest.h + include/alibabacloud/opensearch/model/PushInterventionDictionaryEntriesResult.h + include/alibabacloud/opensearch/model/PushUserAnalyzerEntriesRequest.h + include/alibabacloud/opensearch/model/PushUserAnalyzerEntriesResult.h + include/alibabacloud/opensearch/model/RankPreviewQueryRequest.h + include/alibabacloud/opensearch/model/RankPreviewQueryResult.h + include/alibabacloud/opensearch/model/ReleaseSortScriptRequest.h + include/alibabacloud/opensearch/model/ReleaseSortScriptResult.h + include/alibabacloud/opensearch/model/RemoveAppRequest.h + include/alibabacloud/opensearch/model/RemoveAppResult.h + include/alibabacloud/opensearch/model/RemoveAppGroupRequest.h + include/alibabacloud/opensearch/model/RemoveAppGroupResult.h + include/alibabacloud/opensearch/model/RemoveDataCollectionRequest.h + include/alibabacloud/opensearch/model/RemoveDataCollectionResult.h + include/alibabacloud/opensearch/model/RemoveFirstRankRequest.h + include/alibabacloud/opensearch/model/RemoveFirstRankResult.h + include/alibabacloud/opensearch/model/RemoveInterventionDictionaryRequest.h + include/alibabacloud/opensearch/model/RemoveInterventionDictionaryResult.h + include/alibabacloud/opensearch/model/RemoveQueryProcessorRequest.h + include/alibabacloud/opensearch/model/RemoveQueryProcessorResult.h + include/alibabacloud/opensearch/model/RemoveScheduledTaskRequest.h + include/alibabacloud/opensearch/model/RemoveScheduledTaskResult.h + include/alibabacloud/opensearch/model/RemoveSecondRankRequest.h + include/alibabacloud/opensearch/model/RemoveSecondRankResult.h + include/alibabacloud/opensearch/model/RemoveUserAnalyzerRequest.h + include/alibabacloud/opensearch/model/RemoveUserAnalyzerResult.h + include/alibabacloud/opensearch/model/RenewAppGroupRequest.h + include/alibabacloud/opensearch/model/RenewAppGroupResult.h + include/alibabacloud/opensearch/model/ReplaceAppGroupCommodityCodeRequest.h + include/alibabacloud/opensearch/model/ReplaceAppGroupCommodityCodeResult.h + include/alibabacloud/opensearch/model/SaveSortScriptFileRequest.h + include/alibabacloud/opensearch/model/SaveSortScriptFileResult.h + include/alibabacloud/opensearch/model/StartSlowQueryAnalyzerRequest.h + include/alibabacloud/opensearch/model/StartSlowQueryAnalyzerResult.h + include/alibabacloud/opensearch/model/TrainModelRequest.h + include/alibabacloud/opensearch/model/TrainModelResult.h + include/alibabacloud/opensearch/model/UpdateABTestExperimentRequest.h + include/alibabacloud/opensearch/model/UpdateABTestExperimentResult.h + include/alibabacloud/opensearch/model/UpdateABTestFixedFlowDividersRequest.h + include/alibabacloud/opensearch/model/UpdateABTestFixedFlowDividersResult.h + include/alibabacloud/opensearch/model/UpdateABTestGroupRequest.h + include/alibabacloud/opensearch/model/UpdateABTestGroupResult.h + include/alibabacloud/opensearch/model/UpdateABTestSceneRequest.h + include/alibabacloud/opensearch/model/UpdateABTestSceneResult.h + include/alibabacloud/opensearch/model/UpdateFetchFieldsRequest.h + include/alibabacloud/opensearch/model/UpdateFetchFieldsResult.h + include/alibabacloud/opensearch/model/UpdateSummariesRequest.h + include/alibabacloud/opensearch/model/UpdateSummariesResult.h ) + +set(opensearch_src + src/OpenSearchClient.cc + src/model/CompileSortScriptRequest.cc + src/model/CompileSortScriptResult.cc + src/model/CreateABTestExperimentRequest.cc + src/model/CreateABTestExperimentResult.cc + src/model/CreateABTestGroupRequest.cc + src/model/CreateABTestGroupResult.cc + src/model/CreateABTestSceneRequest.cc + src/model/CreateABTestSceneResult.cc + src/model/CreateAppRequest.cc + src/model/CreateAppResult.cc + src/model/CreateAppGroupRequest.cc + src/model/CreateAppGroupResult.cc + src/model/CreateDataCollectionRequest.cc + src/model/CreateDataCollectionResult.cc + src/model/CreateFirstRankRequest.cc + src/model/CreateFirstRankResult.cc + src/model/CreateInterventionDictionaryRequest.cc + src/model/CreateInterventionDictionaryResult.cc + src/model/CreateModelRequest.cc + src/model/CreateModelResult.cc + src/model/CreateQueryProcessorRequest.cc + src/model/CreateQueryProcessorResult.cc + src/model/CreateScheduledTaskRequest.cc + src/model/CreateScheduledTaskResult.cc + src/model/CreateSecondRankRequest.cc + src/model/CreateSecondRankResult.cc + src/model/CreateSortScriptRequest.cc + src/model/CreateSortScriptResult.cc + src/model/CreateUserAnalyzerRequest.cc + src/model/CreateUserAnalyzerResult.cc + src/model/DeleteABTestExperimentRequest.cc + src/model/DeleteABTestExperimentResult.cc + src/model/DeleteABTestGroupRequest.cc + src/model/DeleteABTestGroupResult.cc + src/model/DeleteABTestSceneRequest.cc + src/model/DeleteABTestSceneResult.cc + src/model/DeleteModelRequest.cc + src/model/DeleteModelResult.cc + src/model/DeleteSortScriptRequest.cc + src/model/DeleteSortScriptResult.cc + src/model/DeleteSortScriptFileRequest.cc + src/model/DeleteSortScriptFileResult.cc + src/model/DescribeABTestExperimentRequest.cc + src/model/DescribeABTestExperimentResult.cc + src/model/DescribeABTestGroupRequest.cc + src/model/DescribeABTestGroupResult.cc + src/model/DescribeABTestSceneRequest.cc + src/model/DescribeABTestSceneResult.cc + src/model/DescribeAppRequest.cc + src/model/DescribeAppResult.cc + src/model/DescribeAppGroupRequest.cc + src/model/DescribeAppGroupResult.cc + src/model/DescribeAppGroupDataReportRequest.cc + src/model/DescribeAppGroupDataReportResult.cc + src/model/DescribeAppStatisticsRequest.cc + src/model/DescribeAppStatisticsResult.cc + src/model/DescribeAppsRequest.cc + src/model/DescribeAppsResult.cc + src/model/DescribeDataCollctionRequest.cc + src/model/DescribeDataCollctionResult.cc + src/model/DescribeFirstRankRequest.cc + src/model/DescribeFirstRankResult.cc + src/model/DescribeInterventionDictionaryRequest.cc + src/model/DescribeInterventionDictionaryResult.cc + src/model/DescribeModelRequest.cc + src/model/DescribeModelResult.cc + src/model/DescribeQueryProcessorRequest.cc + src/model/DescribeQueryProcessorResult.cc + src/model/DescribeRegionRequest.cc + src/model/DescribeRegionResult.cc + src/model/DescribeRegionsRequest.cc + src/model/DescribeRegionsResult.cc + src/model/DescribeScheduledTaskRequest.cc + src/model/DescribeScheduledTaskResult.cc + src/model/DescribeSecondRankRequest.cc + src/model/DescribeSecondRankResult.cc + src/model/DescribeSlowQueryStatusRequest.cc + src/model/DescribeSlowQueryStatusResult.cc + src/model/DescribeUserAnalyzerRequest.cc + src/model/DescribeUserAnalyzerResult.cc + src/model/DisableSlowQueryRequest.cc + src/model/DisableSlowQueryResult.cc + src/model/EnableSlowQueryRequest.cc + src/model/EnableSlowQueryResult.cc + src/model/GetModelProgressRequest.cc + src/model/GetModelProgressResult.cc + src/model/GetModelReportRequest.cc + src/model/GetModelReportResult.cc + src/model/GetScriptFileNamesRequest.cc + src/model/GetScriptFileNamesResult.cc + src/model/GetSortScriptRequest.cc + src/model/GetSortScriptResult.cc + src/model/GetSortScriptFileRequest.cc + src/model/GetSortScriptFileResult.cc + src/model/GetValidationErrorRequest.cc + src/model/GetValidationErrorResult.cc + src/model/GetValidationReportRequest.cc + src/model/GetValidationReportResult.cc + src/model/ListABTestExperimentsRequest.cc + src/model/ListABTestExperimentsResult.cc + src/model/ListABTestFixedFlowDividersRequest.cc + src/model/ListABTestFixedFlowDividersResult.cc + src/model/ListABTestGroupsRequest.cc + src/model/ListABTestGroupsResult.cc + src/model/ListABTestMetricsRequest.cc + src/model/ListABTestMetricsResult.cc + src/model/ListABTestScenesRequest.cc + src/model/ListABTestScenesResult.cc + src/model/ListAppGroupErrorsRequest.cc + src/model/ListAppGroupErrorsResult.cc + src/model/ListAppGroupMetricsRequest.cc + src/model/ListAppGroupMetricsResult.cc + src/model/ListAppGroupsRequest.cc + src/model/ListAppGroupsResult.cc + src/model/ListAppsRequest.cc + src/model/ListAppsResult.cc + src/model/ListDataCollectionsRequest.cc + src/model/ListDataCollectionsResult.cc + src/model/ListDeployedAlgorithmModelsRequest.cc + src/model/ListDeployedAlgorithmModelsResult.cc + src/model/ListFirstRanksRequest.cc + src/model/ListFirstRanksResult.cc + src/model/ListInterventionDictionariesRequest.cc + src/model/ListInterventionDictionariesResult.cc + src/model/ListInterventionDictionaryEntriesRequest.cc + src/model/ListInterventionDictionaryEntriesResult.cc + src/model/ListInterventionDictionaryNerResultsRequest.cc + src/model/ListInterventionDictionaryNerResultsResult.cc + src/model/ListInterventionDictionaryRelatedEntitiesRequest.cc + src/model/ListInterventionDictionaryRelatedEntitiesResult.cc + src/model/ListModelsRequest.cc + src/model/ListModelsResult.cc + src/model/ListQueryProcessorNersRequest.cc + src/model/ListQueryProcessorNersResult.cc + src/model/ListQueryProcessorsRequest.cc + src/model/ListQueryProcessorsResult.cc + src/model/ListScheduledTasksRequest.cc + src/model/ListScheduledTasksResult.cc + src/model/ListSecondRanksRequest.cc + src/model/ListSecondRanksResult.cc + src/model/ListSlowQueryCategoriesRequest.cc + src/model/ListSlowQueryCategoriesResult.cc + src/model/ListSlowQueryQueriesRequest.cc + src/model/ListSlowQueryQueriesResult.cc + src/model/ListSortExpressionsRequest.cc + src/model/ListSortExpressionsResult.cc + src/model/ListSortScriptsRequest.cc + src/model/ListSortScriptsResult.cc + src/model/ListStatisticLogsRequest.cc + src/model/ListStatisticLogsResult.cc + src/model/ListStatisticReportRequest.cc + src/model/ListStatisticReportResult.cc + src/model/ListUserAnalyzerEntriesRequest.cc + src/model/ListUserAnalyzerEntriesResult.cc + src/model/ListUserAnalyzersRequest.cc + src/model/ListUserAnalyzersResult.cc + src/model/ModifyAppGroupRequest.cc + src/model/ModifyAppGroupResult.cc + src/model/ModifyAppGroupQuotaRequest.cc + src/model/ModifyAppGroupQuotaResult.cc + src/model/ModifyFirstRankRequest.cc + src/model/ModifyFirstRankResult.cc + src/model/ModifyModelRequest.cc + src/model/ModifyModelResult.cc + src/model/ModifyQueryProcessorRequest.cc + src/model/ModifyQueryProcessorResult.cc + src/model/ModifyScheduledTaskRequest.cc + src/model/ModifyScheduledTaskResult.cc + src/model/ModifySecondRankRequest.cc + src/model/ModifySecondRankResult.cc + src/model/PreviewModelRequest.cc + src/model/PreviewModelResult.cc + src/model/PushInterventionDictionaryEntriesRequest.cc + src/model/PushInterventionDictionaryEntriesResult.cc + src/model/PushUserAnalyzerEntriesRequest.cc + src/model/PushUserAnalyzerEntriesResult.cc + src/model/RankPreviewQueryRequest.cc + src/model/RankPreviewQueryResult.cc + src/model/ReleaseSortScriptRequest.cc + src/model/ReleaseSortScriptResult.cc + src/model/RemoveAppRequest.cc + src/model/RemoveAppResult.cc + src/model/RemoveAppGroupRequest.cc + src/model/RemoveAppGroupResult.cc + src/model/RemoveDataCollectionRequest.cc + src/model/RemoveDataCollectionResult.cc + src/model/RemoveFirstRankRequest.cc + src/model/RemoveFirstRankResult.cc + src/model/RemoveInterventionDictionaryRequest.cc + src/model/RemoveInterventionDictionaryResult.cc + src/model/RemoveQueryProcessorRequest.cc + src/model/RemoveQueryProcessorResult.cc + src/model/RemoveScheduledTaskRequest.cc + src/model/RemoveScheduledTaskResult.cc + src/model/RemoveSecondRankRequest.cc + src/model/RemoveSecondRankResult.cc + src/model/RemoveUserAnalyzerRequest.cc + src/model/RemoveUserAnalyzerResult.cc + src/model/RenewAppGroupRequest.cc + src/model/RenewAppGroupResult.cc + src/model/ReplaceAppGroupCommodityCodeRequest.cc + src/model/ReplaceAppGroupCommodityCodeResult.cc + src/model/SaveSortScriptFileRequest.cc + src/model/SaveSortScriptFileResult.cc + src/model/StartSlowQueryAnalyzerRequest.cc + src/model/StartSlowQueryAnalyzerResult.cc + src/model/TrainModelRequest.cc + src/model/TrainModelResult.cc + src/model/UpdateABTestExperimentRequest.cc + src/model/UpdateABTestExperimentResult.cc + src/model/UpdateABTestFixedFlowDividersRequest.cc + src/model/UpdateABTestFixedFlowDividersResult.cc + src/model/UpdateABTestGroupRequest.cc + src/model/UpdateABTestGroupResult.cc + src/model/UpdateABTestSceneRequest.cc + src/model/UpdateABTestSceneResult.cc + src/model/UpdateFetchFieldsRequest.cc + src/model/UpdateFetchFieldsResult.cc + src/model/UpdateSummariesRequest.cc + src/model/UpdateSummariesResult.cc ) + +add_library(opensearch ${LIB_TYPE} + ${opensearch_public_header} + ${opensearch_public_header_model} + ${opensearch_src}) + +set_target_properties(opensearch + PROPERTIES + LINKER_LANGUAGE CXX + ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin + OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}opensearch + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(opensearch + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_OPENSEARCH_LIBRARY) +endif() + +target_include_directories(opensearch + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(opensearch + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(opensearch + jsoncpp) + target_include_directories(opensearch + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(opensearch + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(opensearch + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(opensearch + PRIVATE /usr/include/jsoncpp) + target_link_libraries(opensearch + jsoncpp) +endif() + +install(FILES ${opensearch_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/opensearch) +install(FILES ${opensearch_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/opensearch/model) +install(TARGETS opensearch + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/OpenSearchClient.h b/opensearch/include/alibabacloud/opensearch/OpenSearchClient.h new file mode 100644 index 000000000..fe5cd76c1 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/OpenSearchClient.h @@ -0,0 +1,926 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_OPENSEARCH_OPENSEARCHCLIENT_H_ +#define ALIBABACLOUD_OPENSEARCH_OPENSEARCHCLIENT_H_ + +#include +#include +#include +#include +#include "OpenSearchExport.h" +#include "model/CompileSortScriptRequest.h" +#include "model/CompileSortScriptResult.h" +#include "model/CreateABTestExperimentRequest.h" +#include "model/CreateABTestExperimentResult.h" +#include "model/CreateABTestGroupRequest.h" +#include "model/CreateABTestGroupResult.h" +#include "model/CreateABTestSceneRequest.h" +#include "model/CreateABTestSceneResult.h" +#include "model/CreateAppRequest.h" +#include "model/CreateAppResult.h" +#include "model/CreateAppGroupRequest.h" +#include "model/CreateAppGroupResult.h" +#include "model/CreateDataCollectionRequest.h" +#include "model/CreateDataCollectionResult.h" +#include "model/CreateFirstRankRequest.h" +#include "model/CreateFirstRankResult.h" +#include "model/CreateInterventionDictionaryRequest.h" +#include "model/CreateInterventionDictionaryResult.h" +#include "model/CreateModelRequest.h" +#include "model/CreateModelResult.h" +#include "model/CreateQueryProcessorRequest.h" +#include "model/CreateQueryProcessorResult.h" +#include "model/CreateScheduledTaskRequest.h" +#include "model/CreateScheduledTaskResult.h" +#include "model/CreateSecondRankRequest.h" +#include "model/CreateSecondRankResult.h" +#include "model/CreateSortScriptRequest.h" +#include "model/CreateSortScriptResult.h" +#include "model/CreateUserAnalyzerRequest.h" +#include "model/CreateUserAnalyzerResult.h" +#include "model/DeleteABTestExperimentRequest.h" +#include "model/DeleteABTestExperimentResult.h" +#include "model/DeleteABTestGroupRequest.h" +#include "model/DeleteABTestGroupResult.h" +#include "model/DeleteABTestSceneRequest.h" +#include "model/DeleteABTestSceneResult.h" +#include "model/DeleteModelRequest.h" +#include "model/DeleteModelResult.h" +#include "model/DeleteSortScriptRequest.h" +#include "model/DeleteSortScriptResult.h" +#include "model/DeleteSortScriptFileRequest.h" +#include "model/DeleteSortScriptFileResult.h" +#include "model/DescribeABTestExperimentRequest.h" +#include "model/DescribeABTestExperimentResult.h" +#include "model/DescribeABTestGroupRequest.h" +#include "model/DescribeABTestGroupResult.h" +#include "model/DescribeABTestSceneRequest.h" +#include "model/DescribeABTestSceneResult.h" +#include "model/DescribeAppRequest.h" +#include "model/DescribeAppResult.h" +#include "model/DescribeAppGroupRequest.h" +#include "model/DescribeAppGroupResult.h" +#include "model/DescribeAppGroupDataReportRequest.h" +#include "model/DescribeAppGroupDataReportResult.h" +#include "model/DescribeAppStatisticsRequest.h" +#include "model/DescribeAppStatisticsResult.h" +#include "model/DescribeAppsRequest.h" +#include "model/DescribeAppsResult.h" +#include "model/DescribeDataCollctionRequest.h" +#include "model/DescribeDataCollctionResult.h" +#include "model/DescribeFirstRankRequest.h" +#include "model/DescribeFirstRankResult.h" +#include "model/DescribeInterventionDictionaryRequest.h" +#include "model/DescribeInterventionDictionaryResult.h" +#include "model/DescribeModelRequest.h" +#include "model/DescribeModelResult.h" +#include "model/DescribeQueryProcessorRequest.h" +#include "model/DescribeQueryProcessorResult.h" +#include "model/DescribeRegionRequest.h" +#include "model/DescribeRegionResult.h" +#include "model/DescribeRegionsRequest.h" +#include "model/DescribeRegionsResult.h" +#include "model/DescribeScheduledTaskRequest.h" +#include "model/DescribeScheduledTaskResult.h" +#include "model/DescribeSecondRankRequest.h" +#include "model/DescribeSecondRankResult.h" +#include "model/DescribeSlowQueryStatusRequest.h" +#include "model/DescribeSlowQueryStatusResult.h" +#include "model/DescribeUserAnalyzerRequest.h" +#include "model/DescribeUserAnalyzerResult.h" +#include "model/DisableSlowQueryRequest.h" +#include "model/DisableSlowQueryResult.h" +#include "model/EnableSlowQueryRequest.h" +#include "model/EnableSlowQueryResult.h" +#include "model/GetModelProgressRequest.h" +#include "model/GetModelProgressResult.h" +#include "model/GetModelReportRequest.h" +#include "model/GetModelReportResult.h" +#include "model/GetScriptFileNamesRequest.h" +#include "model/GetScriptFileNamesResult.h" +#include "model/GetSortScriptRequest.h" +#include "model/GetSortScriptResult.h" +#include "model/GetSortScriptFileRequest.h" +#include "model/GetSortScriptFileResult.h" +#include "model/GetValidationErrorRequest.h" +#include "model/GetValidationErrorResult.h" +#include "model/GetValidationReportRequest.h" +#include "model/GetValidationReportResult.h" +#include "model/ListABTestExperimentsRequest.h" +#include "model/ListABTestExperimentsResult.h" +#include "model/ListABTestFixedFlowDividersRequest.h" +#include "model/ListABTestFixedFlowDividersResult.h" +#include "model/ListABTestGroupsRequest.h" +#include "model/ListABTestGroupsResult.h" +#include "model/ListABTestMetricsRequest.h" +#include "model/ListABTestMetricsResult.h" +#include "model/ListABTestScenesRequest.h" +#include "model/ListABTestScenesResult.h" +#include "model/ListAppGroupErrorsRequest.h" +#include "model/ListAppGroupErrorsResult.h" +#include "model/ListAppGroupMetricsRequest.h" +#include "model/ListAppGroupMetricsResult.h" +#include "model/ListAppGroupsRequest.h" +#include "model/ListAppGroupsResult.h" +#include "model/ListAppsRequest.h" +#include "model/ListAppsResult.h" +#include "model/ListDataCollectionsRequest.h" +#include "model/ListDataCollectionsResult.h" +#include "model/ListDeployedAlgorithmModelsRequest.h" +#include "model/ListDeployedAlgorithmModelsResult.h" +#include "model/ListFirstRanksRequest.h" +#include "model/ListFirstRanksResult.h" +#include "model/ListInterventionDictionariesRequest.h" +#include "model/ListInterventionDictionariesResult.h" +#include "model/ListInterventionDictionaryEntriesRequest.h" +#include "model/ListInterventionDictionaryEntriesResult.h" +#include "model/ListInterventionDictionaryNerResultsRequest.h" +#include "model/ListInterventionDictionaryNerResultsResult.h" +#include "model/ListInterventionDictionaryRelatedEntitiesRequest.h" +#include "model/ListInterventionDictionaryRelatedEntitiesResult.h" +#include "model/ListModelsRequest.h" +#include "model/ListModelsResult.h" +#include "model/ListQueryProcessorNersRequest.h" +#include "model/ListQueryProcessorNersResult.h" +#include "model/ListQueryProcessorsRequest.h" +#include "model/ListQueryProcessorsResult.h" +#include "model/ListScheduledTasksRequest.h" +#include "model/ListScheduledTasksResult.h" +#include "model/ListSecondRanksRequest.h" +#include "model/ListSecondRanksResult.h" +#include "model/ListSlowQueryCategoriesRequest.h" +#include "model/ListSlowQueryCategoriesResult.h" +#include "model/ListSlowQueryQueriesRequest.h" +#include "model/ListSlowQueryQueriesResult.h" +#include "model/ListSortExpressionsRequest.h" +#include "model/ListSortExpressionsResult.h" +#include "model/ListSortScriptsRequest.h" +#include "model/ListSortScriptsResult.h" +#include "model/ListStatisticLogsRequest.h" +#include "model/ListStatisticLogsResult.h" +#include "model/ListStatisticReportRequest.h" +#include "model/ListStatisticReportResult.h" +#include "model/ListUserAnalyzerEntriesRequest.h" +#include "model/ListUserAnalyzerEntriesResult.h" +#include "model/ListUserAnalyzersRequest.h" +#include "model/ListUserAnalyzersResult.h" +#include "model/ModifyAppGroupRequest.h" +#include "model/ModifyAppGroupResult.h" +#include "model/ModifyAppGroupQuotaRequest.h" +#include "model/ModifyAppGroupQuotaResult.h" +#include "model/ModifyFirstRankRequest.h" +#include "model/ModifyFirstRankResult.h" +#include "model/ModifyModelRequest.h" +#include "model/ModifyModelResult.h" +#include "model/ModifyQueryProcessorRequest.h" +#include "model/ModifyQueryProcessorResult.h" +#include "model/ModifyScheduledTaskRequest.h" +#include "model/ModifyScheduledTaskResult.h" +#include "model/ModifySecondRankRequest.h" +#include "model/ModifySecondRankResult.h" +#include "model/PreviewModelRequest.h" +#include "model/PreviewModelResult.h" +#include "model/PushInterventionDictionaryEntriesRequest.h" +#include "model/PushInterventionDictionaryEntriesResult.h" +#include "model/PushUserAnalyzerEntriesRequest.h" +#include "model/PushUserAnalyzerEntriesResult.h" +#include "model/RankPreviewQueryRequest.h" +#include "model/RankPreviewQueryResult.h" +#include "model/ReleaseSortScriptRequest.h" +#include "model/ReleaseSortScriptResult.h" +#include "model/RemoveAppRequest.h" +#include "model/RemoveAppResult.h" +#include "model/RemoveAppGroupRequest.h" +#include "model/RemoveAppGroupResult.h" +#include "model/RemoveDataCollectionRequest.h" +#include "model/RemoveDataCollectionResult.h" +#include "model/RemoveFirstRankRequest.h" +#include "model/RemoveFirstRankResult.h" +#include "model/RemoveInterventionDictionaryRequest.h" +#include "model/RemoveInterventionDictionaryResult.h" +#include "model/RemoveQueryProcessorRequest.h" +#include "model/RemoveQueryProcessorResult.h" +#include "model/RemoveScheduledTaskRequest.h" +#include "model/RemoveScheduledTaskResult.h" +#include "model/RemoveSecondRankRequest.h" +#include "model/RemoveSecondRankResult.h" +#include "model/RemoveUserAnalyzerRequest.h" +#include "model/RemoveUserAnalyzerResult.h" +#include "model/RenewAppGroupRequest.h" +#include "model/RenewAppGroupResult.h" +#include "model/ReplaceAppGroupCommodityCodeRequest.h" +#include "model/ReplaceAppGroupCommodityCodeResult.h" +#include "model/SaveSortScriptFileRequest.h" +#include "model/SaveSortScriptFileResult.h" +#include "model/StartSlowQueryAnalyzerRequest.h" +#include "model/StartSlowQueryAnalyzerResult.h" +#include "model/TrainModelRequest.h" +#include "model/TrainModelResult.h" +#include "model/UpdateABTestExperimentRequest.h" +#include "model/UpdateABTestExperimentResult.h" +#include "model/UpdateABTestFixedFlowDividersRequest.h" +#include "model/UpdateABTestFixedFlowDividersResult.h" +#include "model/UpdateABTestGroupRequest.h" +#include "model/UpdateABTestGroupResult.h" +#include "model/UpdateABTestSceneRequest.h" +#include "model/UpdateABTestSceneResult.h" +#include "model/UpdateFetchFieldsRequest.h" +#include "model/UpdateFetchFieldsResult.h" +#include "model/UpdateSummariesRequest.h" +#include "model/UpdateSummariesResult.h" + + +namespace AlibabaCloud +{ + namespace OpenSearch + { + class ALIBABACLOUD_OPENSEARCH_EXPORT OpenSearchClient : public RoaServiceClient + { + public: + typedef Outcome CompileSortScriptOutcome; + typedef std::future CompileSortScriptOutcomeCallable; + typedef std::function&)> CompileSortScriptAsyncHandler; + typedef Outcome CreateABTestExperimentOutcome; + typedef std::future CreateABTestExperimentOutcomeCallable; + typedef std::function&)> CreateABTestExperimentAsyncHandler; + typedef Outcome CreateABTestGroupOutcome; + typedef std::future CreateABTestGroupOutcomeCallable; + typedef std::function&)> CreateABTestGroupAsyncHandler; + typedef Outcome CreateABTestSceneOutcome; + typedef std::future CreateABTestSceneOutcomeCallable; + typedef std::function&)> CreateABTestSceneAsyncHandler; + typedef Outcome CreateAppOutcome; + typedef std::future CreateAppOutcomeCallable; + typedef std::function&)> CreateAppAsyncHandler; + typedef Outcome CreateAppGroupOutcome; + typedef std::future CreateAppGroupOutcomeCallable; + typedef std::function&)> CreateAppGroupAsyncHandler; + typedef Outcome CreateDataCollectionOutcome; + typedef std::future CreateDataCollectionOutcomeCallable; + typedef std::function&)> CreateDataCollectionAsyncHandler; + typedef Outcome CreateFirstRankOutcome; + typedef std::future CreateFirstRankOutcomeCallable; + typedef std::function&)> CreateFirstRankAsyncHandler; + typedef Outcome CreateInterventionDictionaryOutcome; + typedef std::future CreateInterventionDictionaryOutcomeCallable; + typedef std::function&)> CreateInterventionDictionaryAsyncHandler; + typedef Outcome CreateModelOutcome; + typedef std::future CreateModelOutcomeCallable; + typedef std::function&)> CreateModelAsyncHandler; + typedef Outcome CreateQueryProcessorOutcome; + typedef std::future CreateQueryProcessorOutcomeCallable; + typedef std::function&)> CreateQueryProcessorAsyncHandler; + typedef Outcome CreateScheduledTaskOutcome; + typedef std::future CreateScheduledTaskOutcomeCallable; + typedef std::function&)> CreateScheduledTaskAsyncHandler; + typedef Outcome CreateSecondRankOutcome; + typedef std::future CreateSecondRankOutcomeCallable; + typedef std::function&)> CreateSecondRankAsyncHandler; + typedef Outcome CreateSortScriptOutcome; + typedef std::future CreateSortScriptOutcomeCallable; + typedef std::function&)> CreateSortScriptAsyncHandler; + typedef Outcome CreateUserAnalyzerOutcome; + typedef std::future CreateUserAnalyzerOutcomeCallable; + typedef std::function&)> CreateUserAnalyzerAsyncHandler; + typedef Outcome DeleteABTestExperimentOutcome; + typedef std::future DeleteABTestExperimentOutcomeCallable; + typedef std::function&)> DeleteABTestExperimentAsyncHandler; + typedef Outcome DeleteABTestGroupOutcome; + typedef std::future DeleteABTestGroupOutcomeCallable; + typedef std::function&)> DeleteABTestGroupAsyncHandler; + typedef Outcome DeleteABTestSceneOutcome; + typedef std::future DeleteABTestSceneOutcomeCallable; + typedef std::function&)> DeleteABTestSceneAsyncHandler; + typedef Outcome DeleteModelOutcome; + typedef std::future DeleteModelOutcomeCallable; + typedef std::function&)> DeleteModelAsyncHandler; + typedef Outcome DeleteSortScriptOutcome; + typedef std::future DeleteSortScriptOutcomeCallable; + typedef std::function&)> DeleteSortScriptAsyncHandler; + typedef Outcome DeleteSortScriptFileOutcome; + typedef std::future DeleteSortScriptFileOutcomeCallable; + typedef std::function&)> DeleteSortScriptFileAsyncHandler; + typedef Outcome DescribeABTestExperimentOutcome; + typedef std::future DescribeABTestExperimentOutcomeCallable; + typedef std::function&)> DescribeABTestExperimentAsyncHandler; + typedef Outcome DescribeABTestGroupOutcome; + typedef std::future DescribeABTestGroupOutcomeCallable; + typedef std::function&)> DescribeABTestGroupAsyncHandler; + typedef Outcome DescribeABTestSceneOutcome; + typedef std::future DescribeABTestSceneOutcomeCallable; + typedef std::function&)> DescribeABTestSceneAsyncHandler; + typedef Outcome DescribeAppOutcome; + typedef std::future DescribeAppOutcomeCallable; + typedef std::function&)> DescribeAppAsyncHandler; + typedef Outcome DescribeAppGroupOutcome; + typedef std::future DescribeAppGroupOutcomeCallable; + typedef std::function&)> DescribeAppGroupAsyncHandler; + typedef Outcome DescribeAppGroupDataReportOutcome; + typedef std::future DescribeAppGroupDataReportOutcomeCallable; + typedef std::function&)> DescribeAppGroupDataReportAsyncHandler; + typedef Outcome DescribeAppStatisticsOutcome; + typedef std::future DescribeAppStatisticsOutcomeCallable; + typedef std::function&)> DescribeAppStatisticsAsyncHandler; + typedef Outcome DescribeAppsOutcome; + typedef std::future DescribeAppsOutcomeCallable; + typedef std::function&)> DescribeAppsAsyncHandler; + typedef Outcome DescribeDataCollctionOutcome; + typedef std::future DescribeDataCollctionOutcomeCallable; + typedef std::function&)> DescribeDataCollctionAsyncHandler; + typedef Outcome DescribeFirstRankOutcome; + typedef std::future DescribeFirstRankOutcomeCallable; + typedef std::function&)> DescribeFirstRankAsyncHandler; + typedef Outcome DescribeInterventionDictionaryOutcome; + typedef std::future DescribeInterventionDictionaryOutcomeCallable; + typedef std::function&)> DescribeInterventionDictionaryAsyncHandler; + typedef Outcome DescribeModelOutcome; + typedef std::future DescribeModelOutcomeCallable; + typedef std::function&)> DescribeModelAsyncHandler; + typedef Outcome DescribeQueryProcessorOutcome; + typedef std::future DescribeQueryProcessorOutcomeCallable; + typedef std::function&)> DescribeQueryProcessorAsyncHandler; + typedef Outcome DescribeRegionOutcome; + typedef std::future DescribeRegionOutcomeCallable; + typedef std::function&)> DescribeRegionAsyncHandler; + typedef Outcome DescribeRegionsOutcome; + typedef std::future DescribeRegionsOutcomeCallable; + typedef std::function&)> DescribeRegionsAsyncHandler; + typedef Outcome DescribeScheduledTaskOutcome; + typedef std::future DescribeScheduledTaskOutcomeCallable; + typedef std::function&)> DescribeScheduledTaskAsyncHandler; + typedef Outcome DescribeSecondRankOutcome; + typedef std::future DescribeSecondRankOutcomeCallable; + typedef std::function&)> DescribeSecondRankAsyncHandler; + typedef Outcome DescribeSlowQueryStatusOutcome; + typedef std::future DescribeSlowQueryStatusOutcomeCallable; + typedef std::function&)> DescribeSlowQueryStatusAsyncHandler; + typedef Outcome DescribeUserAnalyzerOutcome; + typedef std::future DescribeUserAnalyzerOutcomeCallable; + typedef std::function&)> DescribeUserAnalyzerAsyncHandler; + typedef Outcome DisableSlowQueryOutcome; + typedef std::future DisableSlowQueryOutcomeCallable; + typedef std::function&)> DisableSlowQueryAsyncHandler; + typedef Outcome EnableSlowQueryOutcome; + typedef std::future EnableSlowQueryOutcomeCallable; + typedef std::function&)> EnableSlowQueryAsyncHandler; + typedef Outcome GetModelProgressOutcome; + typedef std::future GetModelProgressOutcomeCallable; + typedef std::function&)> GetModelProgressAsyncHandler; + typedef Outcome GetModelReportOutcome; + typedef std::future GetModelReportOutcomeCallable; + typedef std::function&)> GetModelReportAsyncHandler; + typedef Outcome GetScriptFileNamesOutcome; + typedef std::future GetScriptFileNamesOutcomeCallable; + typedef std::function&)> GetScriptFileNamesAsyncHandler; + typedef Outcome GetSortScriptOutcome; + typedef std::future GetSortScriptOutcomeCallable; + typedef std::function&)> GetSortScriptAsyncHandler; + typedef Outcome GetSortScriptFileOutcome; + typedef std::future GetSortScriptFileOutcomeCallable; + typedef std::function&)> GetSortScriptFileAsyncHandler; + typedef Outcome GetValidationErrorOutcome; + typedef std::future GetValidationErrorOutcomeCallable; + typedef std::function&)> GetValidationErrorAsyncHandler; + typedef Outcome GetValidationReportOutcome; + typedef std::future GetValidationReportOutcomeCallable; + typedef std::function&)> GetValidationReportAsyncHandler; + typedef Outcome ListABTestExperimentsOutcome; + typedef std::future ListABTestExperimentsOutcomeCallable; + typedef std::function&)> ListABTestExperimentsAsyncHandler; + typedef Outcome ListABTestFixedFlowDividersOutcome; + typedef std::future ListABTestFixedFlowDividersOutcomeCallable; + typedef std::function&)> ListABTestFixedFlowDividersAsyncHandler; + typedef Outcome ListABTestGroupsOutcome; + typedef std::future ListABTestGroupsOutcomeCallable; + typedef std::function&)> ListABTestGroupsAsyncHandler; + typedef Outcome ListABTestMetricsOutcome; + typedef std::future ListABTestMetricsOutcomeCallable; + typedef std::function&)> ListABTestMetricsAsyncHandler; + typedef Outcome ListABTestScenesOutcome; + typedef std::future ListABTestScenesOutcomeCallable; + typedef std::function&)> ListABTestScenesAsyncHandler; + typedef Outcome ListAppGroupErrorsOutcome; + typedef std::future ListAppGroupErrorsOutcomeCallable; + typedef std::function&)> ListAppGroupErrorsAsyncHandler; + typedef Outcome ListAppGroupMetricsOutcome; + typedef std::future ListAppGroupMetricsOutcomeCallable; + typedef std::function&)> ListAppGroupMetricsAsyncHandler; + typedef Outcome ListAppGroupsOutcome; + typedef std::future ListAppGroupsOutcomeCallable; + typedef std::function&)> ListAppGroupsAsyncHandler; + typedef Outcome ListAppsOutcome; + typedef std::future ListAppsOutcomeCallable; + typedef std::function&)> ListAppsAsyncHandler; + typedef Outcome ListDataCollectionsOutcome; + typedef std::future ListDataCollectionsOutcomeCallable; + typedef std::function&)> ListDataCollectionsAsyncHandler; + typedef Outcome ListDeployedAlgorithmModelsOutcome; + typedef std::future ListDeployedAlgorithmModelsOutcomeCallable; + typedef std::function&)> ListDeployedAlgorithmModelsAsyncHandler; + typedef Outcome ListFirstRanksOutcome; + typedef std::future ListFirstRanksOutcomeCallable; + typedef std::function&)> ListFirstRanksAsyncHandler; + typedef Outcome ListInterventionDictionariesOutcome; + typedef std::future ListInterventionDictionariesOutcomeCallable; + typedef std::function&)> ListInterventionDictionariesAsyncHandler; + typedef Outcome ListInterventionDictionaryEntriesOutcome; + typedef std::future ListInterventionDictionaryEntriesOutcomeCallable; + typedef std::function&)> ListInterventionDictionaryEntriesAsyncHandler; + typedef Outcome ListInterventionDictionaryNerResultsOutcome; + typedef std::future ListInterventionDictionaryNerResultsOutcomeCallable; + typedef std::function&)> ListInterventionDictionaryNerResultsAsyncHandler; + typedef Outcome ListInterventionDictionaryRelatedEntitiesOutcome; + typedef std::future ListInterventionDictionaryRelatedEntitiesOutcomeCallable; + typedef std::function&)> ListInterventionDictionaryRelatedEntitiesAsyncHandler; + typedef Outcome ListModelsOutcome; + typedef std::future ListModelsOutcomeCallable; + typedef std::function&)> ListModelsAsyncHandler; + typedef Outcome ListQueryProcessorNersOutcome; + typedef std::future ListQueryProcessorNersOutcomeCallable; + typedef std::function&)> ListQueryProcessorNersAsyncHandler; + typedef Outcome ListQueryProcessorsOutcome; + typedef std::future ListQueryProcessorsOutcomeCallable; + typedef std::function&)> ListQueryProcessorsAsyncHandler; + typedef Outcome ListScheduledTasksOutcome; + typedef std::future ListScheduledTasksOutcomeCallable; + typedef std::function&)> ListScheduledTasksAsyncHandler; + typedef Outcome ListSecondRanksOutcome; + typedef std::future ListSecondRanksOutcomeCallable; + typedef std::function&)> ListSecondRanksAsyncHandler; + typedef Outcome ListSlowQueryCategoriesOutcome; + typedef std::future ListSlowQueryCategoriesOutcomeCallable; + typedef std::function&)> ListSlowQueryCategoriesAsyncHandler; + typedef Outcome ListSlowQueryQueriesOutcome; + typedef std::future ListSlowQueryQueriesOutcomeCallable; + typedef std::function&)> ListSlowQueryQueriesAsyncHandler; + typedef Outcome ListSortExpressionsOutcome; + typedef std::future ListSortExpressionsOutcomeCallable; + typedef std::function&)> ListSortExpressionsAsyncHandler; + typedef Outcome ListSortScriptsOutcome; + typedef std::future ListSortScriptsOutcomeCallable; + typedef std::function&)> ListSortScriptsAsyncHandler; + typedef Outcome ListStatisticLogsOutcome; + typedef std::future ListStatisticLogsOutcomeCallable; + typedef std::function&)> ListStatisticLogsAsyncHandler; + typedef Outcome ListStatisticReportOutcome; + typedef std::future ListStatisticReportOutcomeCallable; + typedef std::function&)> ListStatisticReportAsyncHandler; + typedef Outcome ListUserAnalyzerEntriesOutcome; + typedef std::future ListUserAnalyzerEntriesOutcomeCallable; + typedef std::function&)> ListUserAnalyzerEntriesAsyncHandler; + typedef Outcome ListUserAnalyzersOutcome; + typedef std::future ListUserAnalyzersOutcomeCallable; + typedef std::function&)> ListUserAnalyzersAsyncHandler; + typedef Outcome ModifyAppGroupOutcome; + typedef std::future ModifyAppGroupOutcomeCallable; + typedef std::function&)> ModifyAppGroupAsyncHandler; + typedef Outcome ModifyAppGroupQuotaOutcome; + typedef std::future ModifyAppGroupQuotaOutcomeCallable; + typedef std::function&)> ModifyAppGroupQuotaAsyncHandler; + typedef Outcome ModifyFirstRankOutcome; + typedef std::future ModifyFirstRankOutcomeCallable; + typedef std::function&)> ModifyFirstRankAsyncHandler; + typedef Outcome ModifyModelOutcome; + typedef std::future ModifyModelOutcomeCallable; + typedef std::function&)> ModifyModelAsyncHandler; + typedef Outcome ModifyQueryProcessorOutcome; + typedef std::future ModifyQueryProcessorOutcomeCallable; + typedef std::function&)> ModifyQueryProcessorAsyncHandler; + typedef Outcome ModifyScheduledTaskOutcome; + typedef std::future ModifyScheduledTaskOutcomeCallable; + typedef std::function&)> ModifyScheduledTaskAsyncHandler; + typedef Outcome ModifySecondRankOutcome; + typedef std::future ModifySecondRankOutcomeCallable; + typedef std::function&)> ModifySecondRankAsyncHandler; + typedef Outcome PreviewModelOutcome; + typedef std::future PreviewModelOutcomeCallable; + typedef std::function&)> PreviewModelAsyncHandler; + typedef Outcome PushInterventionDictionaryEntriesOutcome; + typedef std::future PushInterventionDictionaryEntriesOutcomeCallable; + typedef std::function&)> PushInterventionDictionaryEntriesAsyncHandler; + typedef Outcome PushUserAnalyzerEntriesOutcome; + typedef std::future PushUserAnalyzerEntriesOutcomeCallable; + typedef std::function&)> PushUserAnalyzerEntriesAsyncHandler; + typedef Outcome RankPreviewQueryOutcome; + typedef std::future RankPreviewQueryOutcomeCallable; + typedef std::function&)> RankPreviewQueryAsyncHandler; + typedef Outcome ReleaseSortScriptOutcome; + typedef std::future ReleaseSortScriptOutcomeCallable; + typedef std::function&)> ReleaseSortScriptAsyncHandler; + typedef Outcome RemoveAppOutcome; + typedef std::future RemoveAppOutcomeCallable; + typedef std::function&)> RemoveAppAsyncHandler; + typedef Outcome RemoveAppGroupOutcome; + typedef std::future RemoveAppGroupOutcomeCallable; + typedef std::function&)> RemoveAppGroupAsyncHandler; + typedef Outcome RemoveDataCollectionOutcome; + typedef std::future RemoveDataCollectionOutcomeCallable; + typedef std::function&)> RemoveDataCollectionAsyncHandler; + typedef Outcome RemoveFirstRankOutcome; + typedef std::future RemoveFirstRankOutcomeCallable; + typedef std::function&)> RemoveFirstRankAsyncHandler; + typedef Outcome RemoveInterventionDictionaryOutcome; + typedef std::future RemoveInterventionDictionaryOutcomeCallable; + typedef std::function&)> RemoveInterventionDictionaryAsyncHandler; + typedef Outcome RemoveQueryProcessorOutcome; + typedef std::future RemoveQueryProcessorOutcomeCallable; + typedef std::function&)> RemoveQueryProcessorAsyncHandler; + typedef Outcome RemoveScheduledTaskOutcome; + typedef std::future RemoveScheduledTaskOutcomeCallable; + typedef std::function&)> RemoveScheduledTaskAsyncHandler; + typedef Outcome RemoveSecondRankOutcome; + typedef std::future RemoveSecondRankOutcomeCallable; + typedef std::function&)> RemoveSecondRankAsyncHandler; + typedef Outcome RemoveUserAnalyzerOutcome; + typedef std::future RemoveUserAnalyzerOutcomeCallable; + typedef std::function&)> RemoveUserAnalyzerAsyncHandler; + typedef Outcome RenewAppGroupOutcome; + typedef std::future RenewAppGroupOutcomeCallable; + typedef std::function&)> RenewAppGroupAsyncHandler; + typedef Outcome ReplaceAppGroupCommodityCodeOutcome; + typedef std::future ReplaceAppGroupCommodityCodeOutcomeCallable; + typedef std::function&)> ReplaceAppGroupCommodityCodeAsyncHandler; + typedef Outcome SaveSortScriptFileOutcome; + typedef std::future SaveSortScriptFileOutcomeCallable; + typedef std::function&)> SaveSortScriptFileAsyncHandler; + typedef Outcome StartSlowQueryAnalyzerOutcome; + typedef std::future StartSlowQueryAnalyzerOutcomeCallable; + typedef std::function&)> StartSlowQueryAnalyzerAsyncHandler; + typedef Outcome TrainModelOutcome; + typedef std::future TrainModelOutcomeCallable; + typedef std::function&)> TrainModelAsyncHandler; + typedef Outcome UpdateABTestExperimentOutcome; + typedef std::future UpdateABTestExperimentOutcomeCallable; + typedef std::function&)> UpdateABTestExperimentAsyncHandler; + typedef Outcome UpdateABTestFixedFlowDividersOutcome; + typedef std::future UpdateABTestFixedFlowDividersOutcomeCallable; + typedef std::function&)> UpdateABTestFixedFlowDividersAsyncHandler; + typedef Outcome UpdateABTestGroupOutcome; + typedef std::future UpdateABTestGroupOutcomeCallable; + typedef std::function&)> UpdateABTestGroupAsyncHandler; + typedef Outcome UpdateABTestSceneOutcome; + typedef std::future UpdateABTestSceneOutcomeCallable; + typedef std::function&)> UpdateABTestSceneAsyncHandler; + typedef Outcome UpdateFetchFieldsOutcome; + typedef std::future UpdateFetchFieldsOutcomeCallable; + typedef std::function&)> UpdateFetchFieldsAsyncHandler; + typedef Outcome UpdateSummariesOutcome; + typedef std::future UpdateSummariesOutcomeCallable; + typedef std::function&)> UpdateSummariesAsyncHandler; + + OpenSearchClient(const Credentials &credentials, const ClientConfiguration &configuration); + OpenSearchClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + OpenSearchClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~OpenSearchClient(); + CompileSortScriptOutcome compileSortScript(const Model::CompileSortScriptRequest &request)const; + void compileSortScriptAsync(const Model::CompileSortScriptRequest& request, const CompileSortScriptAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CompileSortScriptOutcomeCallable compileSortScriptCallable(const Model::CompileSortScriptRequest& request) const; + CreateABTestExperimentOutcome createABTestExperiment(const Model::CreateABTestExperimentRequest &request)const; + void createABTestExperimentAsync(const Model::CreateABTestExperimentRequest& request, const CreateABTestExperimentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateABTestExperimentOutcomeCallable createABTestExperimentCallable(const Model::CreateABTestExperimentRequest& request) const; + CreateABTestGroupOutcome createABTestGroup(const Model::CreateABTestGroupRequest &request)const; + void createABTestGroupAsync(const Model::CreateABTestGroupRequest& request, const CreateABTestGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateABTestGroupOutcomeCallable createABTestGroupCallable(const Model::CreateABTestGroupRequest& request) const; + CreateABTestSceneOutcome createABTestScene(const Model::CreateABTestSceneRequest &request)const; + void createABTestSceneAsync(const Model::CreateABTestSceneRequest& request, const CreateABTestSceneAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateABTestSceneOutcomeCallable createABTestSceneCallable(const Model::CreateABTestSceneRequest& request) const; + CreateAppOutcome createApp(const Model::CreateAppRequest &request)const; + void createAppAsync(const Model::CreateAppRequest& request, const CreateAppAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAppOutcomeCallable createAppCallable(const Model::CreateAppRequest& request) const; + CreateAppGroupOutcome createAppGroup(const Model::CreateAppGroupRequest &request)const; + void createAppGroupAsync(const Model::CreateAppGroupRequest& request, const CreateAppGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAppGroupOutcomeCallable createAppGroupCallable(const Model::CreateAppGroupRequest& request) const; + CreateDataCollectionOutcome createDataCollection(const Model::CreateDataCollectionRequest &request)const; + void createDataCollectionAsync(const Model::CreateDataCollectionRequest& request, const CreateDataCollectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDataCollectionOutcomeCallable createDataCollectionCallable(const Model::CreateDataCollectionRequest& request) const; + CreateFirstRankOutcome createFirstRank(const Model::CreateFirstRankRequest &request)const; + void createFirstRankAsync(const Model::CreateFirstRankRequest& request, const CreateFirstRankAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateFirstRankOutcomeCallable createFirstRankCallable(const Model::CreateFirstRankRequest& request) const; + CreateInterventionDictionaryOutcome createInterventionDictionary(const Model::CreateInterventionDictionaryRequest &request)const; + void createInterventionDictionaryAsync(const Model::CreateInterventionDictionaryRequest& request, const CreateInterventionDictionaryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateInterventionDictionaryOutcomeCallable createInterventionDictionaryCallable(const Model::CreateInterventionDictionaryRequest& request) const; + CreateModelOutcome createModel(const Model::CreateModelRequest &request)const; + void createModelAsync(const Model::CreateModelRequest& request, const CreateModelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateModelOutcomeCallable createModelCallable(const Model::CreateModelRequest& request) const; + CreateQueryProcessorOutcome createQueryProcessor(const Model::CreateQueryProcessorRequest &request)const; + void createQueryProcessorAsync(const Model::CreateQueryProcessorRequest& request, const CreateQueryProcessorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateQueryProcessorOutcomeCallable createQueryProcessorCallable(const Model::CreateQueryProcessorRequest& request) const; + CreateScheduledTaskOutcome createScheduledTask(const Model::CreateScheduledTaskRequest &request)const; + void createScheduledTaskAsync(const Model::CreateScheduledTaskRequest& request, const CreateScheduledTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateScheduledTaskOutcomeCallable createScheduledTaskCallable(const Model::CreateScheduledTaskRequest& request) const; + CreateSecondRankOutcome createSecondRank(const Model::CreateSecondRankRequest &request)const; + void createSecondRankAsync(const Model::CreateSecondRankRequest& request, const CreateSecondRankAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateSecondRankOutcomeCallable createSecondRankCallable(const Model::CreateSecondRankRequest& request) const; + CreateSortScriptOutcome createSortScript(const Model::CreateSortScriptRequest &request)const; + void createSortScriptAsync(const Model::CreateSortScriptRequest& request, const CreateSortScriptAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateSortScriptOutcomeCallable createSortScriptCallable(const Model::CreateSortScriptRequest& request) const; + CreateUserAnalyzerOutcome createUserAnalyzer(const Model::CreateUserAnalyzerRequest &request)const; + void createUserAnalyzerAsync(const Model::CreateUserAnalyzerRequest& request, const CreateUserAnalyzerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateUserAnalyzerOutcomeCallable createUserAnalyzerCallable(const Model::CreateUserAnalyzerRequest& request) const; + DeleteABTestExperimentOutcome deleteABTestExperiment(const Model::DeleteABTestExperimentRequest &request)const; + void deleteABTestExperimentAsync(const Model::DeleteABTestExperimentRequest& request, const DeleteABTestExperimentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteABTestExperimentOutcomeCallable deleteABTestExperimentCallable(const Model::DeleteABTestExperimentRequest& request) const; + DeleteABTestGroupOutcome deleteABTestGroup(const Model::DeleteABTestGroupRequest &request)const; + void deleteABTestGroupAsync(const Model::DeleteABTestGroupRequest& request, const DeleteABTestGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteABTestGroupOutcomeCallable deleteABTestGroupCallable(const Model::DeleteABTestGroupRequest& request) const; + DeleteABTestSceneOutcome deleteABTestScene(const Model::DeleteABTestSceneRequest &request)const; + void deleteABTestSceneAsync(const Model::DeleteABTestSceneRequest& request, const DeleteABTestSceneAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteABTestSceneOutcomeCallable deleteABTestSceneCallable(const Model::DeleteABTestSceneRequest& request) const; + DeleteModelOutcome deleteModel(const Model::DeleteModelRequest &request)const; + void deleteModelAsync(const Model::DeleteModelRequest& request, const DeleteModelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteModelOutcomeCallable deleteModelCallable(const Model::DeleteModelRequest& request) const; + DeleteSortScriptOutcome deleteSortScript(const Model::DeleteSortScriptRequest &request)const; + void deleteSortScriptAsync(const Model::DeleteSortScriptRequest& request, const DeleteSortScriptAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteSortScriptOutcomeCallable deleteSortScriptCallable(const Model::DeleteSortScriptRequest& request) const; + DeleteSortScriptFileOutcome deleteSortScriptFile(const Model::DeleteSortScriptFileRequest &request)const; + void deleteSortScriptFileAsync(const Model::DeleteSortScriptFileRequest& request, const DeleteSortScriptFileAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteSortScriptFileOutcomeCallable deleteSortScriptFileCallable(const Model::DeleteSortScriptFileRequest& request) const; + DescribeABTestExperimentOutcome describeABTestExperiment(const Model::DescribeABTestExperimentRequest &request)const; + void describeABTestExperimentAsync(const Model::DescribeABTestExperimentRequest& request, const DescribeABTestExperimentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeABTestExperimentOutcomeCallable describeABTestExperimentCallable(const Model::DescribeABTestExperimentRequest& request) const; + DescribeABTestGroupOutcome describeABTestGroup(const Model::DescribeABTestGroupRequest &request)const; + void describeABTestGroupAsync(const Model::DescribeABTestGroupRequest& request, const DescribeABTestGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeABTestGroupOutcomeCallable describeABTestGroupCallable(const Model::DescribeABTestGroupRequest& request) const; + DescribeABTestSceneOutcome describeABTestScene(const Model::DescribeABTestSceneRequest &request)const; + void describeABTestSceneAsync(const Model::DescribeABTestSceneRequest& request, const DescribeABTestSceneAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeABTestSceneOutcomeCallable describeABTestSceneCallable(const Model::DescribeABTestSceneRequest& request) const; + DescribeAppOutcome describeApp(const Model::DescribeAppRequest &request)const; + void describeAppAsync(const Model::DescribeAppRequest& request, const DescribeAppAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAppOutcomeCallable describeAppCallable(const Model::DescribeAppRequest& request) const; + DescribeAppGroupOutcome describeAppGroup(const Model::DescribeAppGroupRequest &request)const; + void describeAppGroupAsync(const Model::DescribeAppGroupRequest& request, const DescribeAppGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAppGroupOutcomeCallable describeAppGroupCallable(const Model::DescribeAppGroupRequest& request) const; + DescribeAppGroupDataReportOutcome describeAppGroupDataReport(const Model::DescribeAppGroupDataReportRequest &request)const; + void describeAppGroupDataReportAsync(const Model::DescribeAppGroupDataReportRequest& request, const DescribeAppGroupDataReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAppGroupDataReportOutcomeCallable describeAppGroupDataReportCallable(const Model::DescribeAppGroupDataReportRequest& request) const; + DescribeAppStatisticsOutcome describeAppStatistics(const Model::DescribeAppStatisticsRequest &request)const; + void describeAppStatisticsAsync(const Model::DescribeAppStatisticsRequest& request, const DescribeAppStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAppStatisticsOutcomeCallable describeAppStatisticsCallable(const Model::DescribeAppStatisticsRequest& request) const; + DescribeAppsOutcome describeApps(const Model::DescribeAppsRequest &request)const; + void describeAppsAsync(const Model::DescribeAppsRequest& request, const DescribeAppsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAppsOutcomeCallable describeAppsCallable(const Model::DescribeAppsRequest& request) const; + DescribeDataCollctionOutcome describeDataCollction(const Model::DescribeDataCollctionRequest &request)const; + void describeDataCollctionAsync(const Model::DescribeDataCollctionRequest& request, const DescribeDataCollctionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDataCollctionOutcomeCallable describeDataCollctionCallable(const Model::DescribeDataCollctionRequest& request) const; + DescribeFirstRankOutcome describeFirstRank(const Model::DescribeFirstRankRequest &request)const; + void describeFirstRankAsync(const Model::DescribeFirstRankRequest& request, const DescribeFirstRankAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeFirstRankOutcomeCallable describeFirstRankCallable(const Model::DescribeFirstRankRequest& request) const; + DescribeInterventionDictionaryOutcome describeInterventionDictionary(const Model::DescribeInterventionDictionaryRequest &request)const; + void describeInterventionDictionaryAsync(const Model::DescribeInterventionDictionaryRequest& request, const DescribeInterventionDictionaryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeInterventionDictionaryOutcomeCallable describeInterventionDictionaryCallable(const Model::DescribeInterventionDictionaryRequest& request) const; + DescribeModelOutcome describeModel(const Model::DescribeModelRequest &request)const; + void describeModelAsync(const Model::DescribeModelRequest& request, const DescribeModelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeModelOutcomeCallable describeModelCallable(const Model::DescribeModelRequest& request) const; + DescribeQueryProcessorOutcome describeQueryProcessor(const Model::DescribeQueryProcessorRequest &request)const; + void describeQueryProcessorAsync(const Model::DescribeQueryProcessorRequest& request, const DescribeQueryProcessorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeQueryProcessorOutcomeCallable describeQueryProcessorCallable(const Model::DescribeQueryProcessorRequest& request) const; + DescribeRegionOutcome describeRegion(const Model::DescribeRegionRequest &request)const; + void describeRegionAsync(const Model::DescribeRegionRequest& request, const DescribeRegionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRegionOutcomeCallable describeRegionCallable(const Model::DescribeRegionRequest& request) const; + DescribeRegionsOutcome describeRegions(const Model::DescribeRegionsRequest &request)const; + void describeRegionsAsync(const Model::DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRegionsOutcomeCallable describeRegionsCallable(const Model::DescribeRegionsRequest& request) const; + DescribeScheduledTaskOutcome describeScheduledTask(const Model::DescribeScheduledTaskRequest &request)const; + void describeScheduledTaskAsync(const Model::DescribeScheduledTaskRequest& request, const DescribeScheduledTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeScheduledTaskOutcomeCallable describeScheduledTaskCallable(const Model::DescribeScheduledTaskRequest& request) const; + DescribeSecondRankOutcome describeSecondRank(const Model::DescribeSecondRankRequest &request)const; + void describeSecondRankAsync(const Model::DescribeSecondRankRequest& request, const DescribeSecondRankAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSecondRankOutcomeCallable describeSecondRankCallable(const Model::DescribeSecondRankRequest& request) const; + DescribeSlowQueryStatusOutcome describeSlowQueryStatus(const Model::DescribeSlowQueryStatusRequest &request)const; + void describeSlowQueryStatusAsync(const Model::DescribeSlowQueryStatusRequest& request, const DescribeSlowQueryStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSlowQueryStatusOutcomeCallable describeSlowQueryStatusCallable(const Model::DescribeSlowQueryStatusRequest& request) const; + DescribeUserAnalyzerOutcome describeUserAnalyzer(const Model::DescribeUserAnalyzerRequest &request)const; + void describeUserAnalyzerAsync(const Model::DescribeUserAnalyzerRequest& request, const DescribeUserAnalyzerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeUserAnalyzerOutcomeCallable describeUserAnalyzerCallable(const Model::DescribeUserAnalyzerRequest& request) const; + DisableSlowQueryOutcome disableSlowQuery(const Model::DisableSlowQueryRequest &request)const; + void disableSlowQueryAsync(const Model::DisableSlowQueryRequest& request, const DisableSlowQueryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DisableSlowQueryOutcomeCallable disableSlowQueryCallable(const Model::DisableSlowQueryRequest& request) const; + EnableSlowQueryOutcome enableSlowQuery(const Model::EnableSlowQueryRequest &request)const; + void enableSlowQueryAsync(const Model::EnableSlowQueryRequest& request, const EnableSlowQueryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + EnableSlowQueryOutcomeCallable enableSlowQueryCallable(const Model::EnableSlowQueryRequest& request) const; + GetModelProgressOutcome getModelProgress(const Model::GetModelProgressRequest &request)const; + void getModelProgressAsync(const Model::GetModelProgressRequest& request, const GetModelProgressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetModelProgressOutcomeCallable getModelProgressCallable(const Model::GetModelProgressRequest& request) const; + GetModelReportOutcome getModelReport(const Model::GetModelReportRequest &request)const; + void getModelReportAsync(const Model::GetModelReportRequest& request, const GetModelReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetModelReportOutcomeCallable getModelReportCallable(const Model::GetModelReportRequest& request) const; + GetScriptFileNamesOutcome getScriptFileNames(const Model::GetScriptFileNamesRequest &request)const; + void getScriptFileNamesAsync(const Model::GetScriptFileNamesRequest& request, const GetScriptFileNamesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetScriptFileNamesOutcomeCallable getScriptFileNamesCallable(const Model::GetScriptFileNamesRequest& request) const; + GetSortScriptOutcome getSortScript(const Model::GetSortScriptRequest &request)const; + void getSortScriptAsync(const Model::GetSortScriptRequest& request, const GetSortScriptAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSortScriptOutcomeCallable getSortScriptCallable(const Model::GetSortScriptRequest& request) const; + GetSortScriptFileOutcome getSortScriptFile(const Model::GetSortScriptFileRequest &request)const; + void getSortScriptFileAsync(const Model::GetSortScriptFileRequest& request, const GetSortScriptFileAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSortScriptFileOutcomeCallable getSortScriptFileCallable(const Model::GetSortScriptFileRequest& request) const; + GetValidationErrorOutcome getValidationError(const Model::GetValidationErrorRequest &request)const; + void getValidationErrorAsync(const Model::GetValidationErrorRequest& request, const GetValidationErrorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetValidationErrorOutcomeCallable getValidationErrorCallable(const Model::GetValidationErrorRequest& request) const; + GetValidationReportOutcome getValidationReport(const Model::GetValidationReportRequest &request)const; + void getValidationReportAsync(const Model::GetValidationReportRequest& request, const GetValidationReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetValidationReportOutcomeCallable getValidationReportCallable(const Model::GetValidationReportRequest& request) const; + ListABTestExperimentsOutcome listABTestExperiments(const Model::ListABTestExperimentsRequest &request)const; + void listABTestExperimentsAsync(const Model::ListABTestExperimentsRequest& request, const ListABTestExperimentsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListABTestExperimentsOutcomeCallable listABTestExperimentsCallable(const Model::ListABTestExperimentsRequest& request) const; + ListABTestFixedFlowDividersOutcome listABTestFixedFlowDividers(const Model::ListABTestFixedFlowDividersRequest &request)const; + void listABTestFixedFlowDividersAsync(const Model::ListABTestFixedFlowDividersRequest& request, const ListABTestFixedFlowDividersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListABTestFixedFlowDividersOutcomeCallable listABTestFixedFlowDividersCallable(const Model::ListABTestFixedFlowDividersRequest& request) const; + ListABTestGroupsOutcome listABTestGroups(const Model::ListABTestGroupsRequest &request)const; + void listABTestGroupsAsync(const Model::ListABTestGroupsRequest& request, const ListABTestGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListABTestGroupsOutcomeCallable listABTestGroupsCallable(const Model::ListABTestGroupsRequest& request) const; + ListABTestMetricsOutcome listABTestMetrics(const Model::ListABTestMetricsRequest &request)const; + void listABTestMetricsAsync(const Model::ListABTestMetricsRequest& request, const ListABTestMetricsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListABTestMetricsOutcomeCallable listABTestMetricsCallable(const Model::ListABTestMetricsRequest& request) const; + ListABTestScenesOutcome listABTestScenes(const Model::ListABTestScenesRequest &request)const; + void listABTestScenesAsync(const Model::ListABTestScenesRequest& request, const ListABTestScenesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListABTestScenesOutcomeCallable listABTestScenesCallable(const Model::ListABTestScenesRequest& request) const; + ListAppGroupErrorsOutcome listAppGroupErrors(const Model::ListAppGroupErrorsRequest &request)const; + void listAppGroupErrorsAsync(const Model::ListAppGroupErrorsRequest& request, const ListAppGroupErrorsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAppGroupErrorsOutcomeCallable listAppGroupErrorsCallable(const Model::ListAppGroupErrorsRequest& request) const; + ListAppGroupMetricsOutcome listAppGroupMetrics(const Model::ListAppGroupMetricsRequest &request)const; + void listAppGroupMetricsAsync(const Model::ListAppGroupMetricsRequest& request, const ListAppGroupMetricsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAppGroupMetricsOutcomeCallable listAppGroupMetricsCallable(const Model::ListAppGroupMetricsRequest& request) const; + ListAppGroupsOutcome listAppGroups(const Model::ListAppGroupsRequest &request)const; + void listAppGroupsAsync(const Model::ListAppGroupsRequest& request, const ListAppGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAppGroupsOutcomeCallable listAppGroupsCallable(const Model::ListAppGroupsRequest& request) const; + ListAppsOutcome listApps(const Model::ListAppsRequest &request)const; + void listAppsAsync(const Model::ListAppsRequest& request, const ListAppsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAppsOutcomeCallable listAppsCallable(const Model::ListAppsRequest& request) const; + ListDataCollectionsOutcome listDataCollections(const Model::ListDataCollectionsRequest &request)const; + void listDataCollectionsAsync(const Model::ListDataCollectionsRequest& request, const ListDataCollectionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListDataCollectionsOutcomeCallable listDataCollectionsCallable(const Model::ListDataCollectionsRequest& request) const; + ListDeployedAlgorithmModelsOutcome listDeployedAlgorithmModels(const Model::ListDeployedAlgorithmModelsRequest &request)const; + void listDeployedAlgorithmModelsAsync(const Model::ListDeployedAlgorithmModelsRequest& request, const ListDeployedAlgorithmModelsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListDeployedAlgorithmModelsOutcomeCallable listDeployedAlgorithmModelsCallable(const Model::ListDeployedAlgorithmModelsRequest& request) const; + ListFirstRanksOutcome listFirstRanks(const Model::ListFirstRanksRequest &request)const; + void listFirstRanksAsync(const Model::ListFirstRanksRequest& request, const ListFirstRanksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListFirstRanksOutcomeCallable listFirstRanksCallable(const Model::ListFirstRanksRequest& request) const; + ListInterventionDictionariesOutcome listInterventionDictionaries(const Model::ListInterventionDictionariesRequest &request)const; + void listInterventionDictionariesAsync(const Model::ListInterventionDictionariesRequest& request, const ListInterventionDictionariesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListInterventionDictionariesOutcomeCallable listInterventionDictionariesCallable(const Model::ListInterventionDictionariesRequest& request) const; + ListInterventionDictionaryEntriesOutcome listInterventionDictionaryEntries(const Model::ListInterventionDictionaryEntriesRequest &request)const; + void listInterventionDictionaryEntriesAsync(const Model::ListInterventionDictionaryEntriesRequest& request, const ListInterventionDictionaryEntriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListInterventionDictionaryEntriesOutcomeCallable listInterventionDictionaryEntriesCallable(const Model::ListInterventionDictionaryEntriesRequest& request) const; + ListInterventionDictionaryNerResultsOutcome listInterventionDictionaryNerResults(const Model::ListInterventionDictionaryNerResultsRequest &request)const; + void listInterventionDictionaryNerResultsAsync(const Model::ListInterventionDictionaryNerResultsRequest& request, const ListInterventionDictionaryNerResultsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListInterventionDictionaryNerResultsOutcomeCallable listInterventionDictionaryNerResultsCallable(const Model::ListInterventionDictionaryNerResultsRequest& request) const; + ListInterventionDictionaryRelatedEntitiesOutcome listInterventionDictionaryRelatedEntities(const Model::ListInterventionDictionaryRelatedEntitiesRequest &request)const; + void listInterventionDictionaryRelatedEntitiesAsync(const Model::ListInterventionDictionaryRelatedEntitiesRequest& request, const ListInterventionDictionaryRelatedEntitiesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListInterventionDictionaryRelatedEntitiesOutcomeCallable listInterventionDictionaryRelatedEntitiesCallable(const Model::ListInterventionDictionaryRelatedEntitiesRequest& request) const; + ListModelsOutcome listModels(const Model::ListModelsRequest &request)const; + void listModelsAsync(const Model::ListModelsRequest& request, const ListModelsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListModelsOutcomeCallable listModelsCallable(const Model::ListModelsRequest& request) const; + ListQueryProcessorNersOutcome listQueryProcessorNers(const Model::ListQueryProcessorNersRequest &request)const; + void listQueryProcessorNersAsync(const Model::ListQueryProcessorNersRequest& request, const ListQueryProcessorNersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListQueryProcessorNersOutcomeCallable listQueryProcessorNersCallable(const Model::ListQueryProcessorNersRequest& request) const; + ListQueryProcessorsOutcome listQueryProcessors(const Model::ListQueryProcessorsRequest &request)const; + void listQueryProcessorsAsync(const Model::ListQueryProcessorsRequest& request, const ListQueryProcessorsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListQueryProcessorsOutcomeCallable listQueryProcessorsCallable(const Model::ListQueryProcessorsRequest& request) const; + ListScheduledTasksOutcome listScheduledTasks(const Model::ListScheduledTasksRequest &request)const; + void listScheduledTasksAsync(const Model::ListScheduledTasksRequest& request, const ListScheduledTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListScheduledTasksOutcomeCallable listScheduledTasksCallable(const Model::ListScheduledTasksRequest& request) const; + ListSecondRanksOutcome listSecondRanks(const Model::ListSecondRanksRequest &request)const; + void listSecondRanksAsync(const Model::ListSecondRanksRequest& request, const ListSecondRanksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSecondRanksOutcomeCallable listSecondRanksCallable(const Model::ListSecondRanksRequest& request) const; + ListSlowQueryCategoriesOutcome listSlowQueryCategories(const Model::ListSlowQueryCategoriesRequest &request)const; + void listSlowQueryCategoriesAsync(const Model::ListSlowQueryCategoriesRequest& request, const ListSlowQueryCategoriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSlowQueryCategoriesOutcomeCallable listSlowQueryCategoriesCallable(const Model::ListSlowQueryCategoriesRequest& request) const; + ListSlowQueryQueriesOutcome listSlowQueryQueries(const Model::ListSlowQueryQueriesRequest &request)const; + void listSlowQueryQueriesAsync(const Model::ListSlowQueryQueriesRequest& request, const ListSlowQueryQueriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSlowQueryQueriesOutcomeCallable listSlowQueryQueriesCallable(const Model::ListSlowQueryQueriesRequest& request) const; + ListSortExpressionsOutcome listSortExpressions(const Model::ListSortExpressionsRequest &request)const; + void listSortExpressionsAsync(const Model::ListSortExpressionsRequest& request, const ListSortExpressionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSortExpressionsOutcomeCallable listSortExpressionsCallable(const Model::ListSortExpressionsRequest& request) const; + ListSortScriptsOutcome listSortScripts(const Model::ListSortScriptsRequest &request)const; + void listSortScriptsAsync(const Model::ListSortScriptsRequest& request, const ListSortScriptsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSortScriptsOutcomeCallable listSortScriptsCallable(const Model::ListSortScriptsRequest& request) const; + ListStatisticLogsOutcome listStatisticLogs(const Model::ListStatisticLogsRequest &request)const; + void listStatisticLogsAsync(const Model::ListStatisticLogsRequest& request, const ListStatisticLogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListStatisticLogsOutcomeCallable listStatisticLogsCallable(const Model::ListStatisticLogsRequest& request) const; + ListStatisticReportOutcome listStatisticReport(const Model::ListStatisticReportRequest &request)const; + void listStatisticReportAsync(const Model::ListStatisticReportRequest& request, const ListStatisticReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListStatisticReportOutcomeCallable listStatisticReportCallable(const Model::ListStatisticReportRequest& request) const; + ListUserAnalyzerEntriesOutcome listUserAnalyzerEntries(const Model::ListUserAnalyzerEntriesRequest &request)const; + void listUserAnalyzerEntriesAsync(const Model::ListUserAnalyzerEntriesRequest& request, const ListUserAnalyzerEntriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListUserAnalyzerEntriesOutcomeCallable listUserAnalyzerEntriesCallable(const Model::ListUserAnalyzerEntriesRequest& request) const; + ListUserAnalyzersOutcome listUserAnalyzers(const Model::ListUserAnalyzersRequest &request)const; + void listUserAnalyzersAsync(const Model::ListUserAnalyzersRequest& request, const ListUserAnalyzersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListUserAnalyzersOutcomeCallable listUserAnalyzersCallable(const Model::ListUserAnalyzersRequest& request) const; + ModifyAppGroupOutcome modifyAppGroup(const Model::ModifyAppGroupRequest &request)const; + void modifyAppGroupAsync(const Model::ModifyAppGroupRequest& request, const ModifyAppGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyAppGroupOutcomeCallable modifyAppGroupCallable(const Model::ModifyAppGroupRequest& request) const; + ModifyAppGroupQuotaOutcome modifyAppGroupQuota(const Model::ModifyAppGroupQuotaRequest &request)const; + void modifyAppGroupQuotaAsync(const Model::ModifyAppGroupQuotaRequest& request, const ModifyAppGroupQuotaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyAppGroupQuotaOutcomeCallable modifyAppGroupQuotaCallable(const Model::ModifyAppGroupQuotaRequest& request) const; + ModifyFirstRankOutcome modifyFirstRank(const Model::ModifyFirstRankRequest &request)const; + void modifyFirstRankAsync(const Model::ModifyFirstRankRequest& request, const ModifyFirstRankAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyFirstRankOutcomeCallable modifyFirstRankCallable(const Model::ModifyFirstRankRequest& request) const; + ModifyModelOutcome modifyModel(const Model::ModifyModelRequest &request)const; + void modifyModelAsync(const Model::ModifyModelRequest& request, const ModifyModelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyModelOutcomeCallable modifyModelCallable(const Model::ModifyModelRequest& request) const; + ModifyQueryProcessorOutcome modifyQueryProcessor(const Model::ModifyQueryProcessorRequest &request)const; + void modifyQueryProcessorAsync(const Model::ModifyQueryProcessorRequest& request, const ModifyQueryProcessorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyQueryProcessorOutcomeCallable modifyQueryProcessorCallable(const Model::ModifyQueryProcessorRequest& request) const; + ModifyScheduledTaskOutcome modifyScheduledTask(const Model::ModifyScheduledTaskRequest &request)const; + void modifyScheduledTaskAsync(const Model::ModifyScheduledTaskRequest& request, const ModifyScheduledTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyScheduledTaskOutcomeCallable modifyScheduledTaskCallable(const Model::ModifyScheduledTaskRequest& request) const; + ModifySecondRankOutcome modifySecondRank(const Model::ModifySecondRankRequest &request)const; + void modifySecondRankAsync(const Model::ModifySecondRankRequest& request, const ModifySecondRankAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifySecondRankOutcomeCallable modifySecondRankCallable(const Model::ModifySecondRankRequest& request) const; + PreviewModelOutcome previewModel(const Model::PreviewModelRequest &request)const; + void previewModelAsync(const Model::PreviewModelRequest& request, const PreviewModelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PreviewModelOutcomeCallable previewModelCallable(const Model::PreviewModelRequest& request) const; + PushInterventionDictionaryEntriesOutcome pushInterventionDictionaryEntries(const Model::PushInterventionDictionaryEntriesRequest &request)const; + void pushInterventionDictionaryEntriesAsync(const Model::PushInterventionDictionaryEntriesRequest& request, const PushInterventionDictionaryEntriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PushInterventionDictionaryEntriesOutcomeCallable pushInterventionDictionaryEntriesCallable(const Model::PushInterventionDictionaryEntriesRequest& request) const; + PushUserAnalyzerEntriesOutcome pushUserAnalyzerEntries(const Model::PushUserAnalyzerEntriesRequest &request)const; + void pushUserAnalyzerEntriesAsync(const Model::PushUserAnalyzerEntriesRequest& request, const PushUserAnalyzerEntriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PushUserAnalyzerEntriesOutcomeCallable pushUserAnalyzerEntriesCallable(const Model::PushUserAnalyzerEntriesRequest& request) const; + RankPreviewQueryOutcome rankPreviewQuery(const Model::RankPreviewQueryRequest &request)const; + void rankPreviewQueryAsync(const Model::RankPreviewQueryRequest& request, const RankPreviewQueryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RankPreviewQueryOutcomeCallable rankPreviewQueryCallable(const Model::RankPreviewQueryRequest& request) const; + ReleaseSortScriptOutcome releaseSortScript(const Model::ReleaseSortScriptRequest &request)const; + void releaseSortScriptAsync(const Model::ReleaseSortScriptRequest& request, const ReleaseSortScriptAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ReleaseSortScriptOutcomeCallable releaseSortScriptCallable(const Model::ReleaseSortScriptRequest& request) const; + RemoveAppOutcome removeApp(const Model::RemoveAppRequest &request)const; + void removeAppAsync(const Model::RemoveAppRequest& request, const RemoveAppAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveAppOutcomeCallable removeAppCallable(const Model::RemoveAppRequest& request) const; + RemoveAppGroupOutcome removeAppGroup(const Model::RemoveAppGroupRequest &request)const; + void removeAppGroupAsync(const Model::RemoveAppGroupRequest& request, const RemoveAppGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveAppGroupOutcomeCallable removeAppGroupCallable(const Model::RemoveAppGroupRequest& request) const; + RemoveDataCollectionOutcome removeDataCollection(const Model::RemoveDataCollectionRequest &request)const; + void removeDataCollectionAsync(const Model::RemoveDataCollectionRequest& request, const RemoveDataCollectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveDataCollectionOutcomeCallable removeDataCollectionCallable(const Model::RemoveDataCollectionRequest& request) const; + RemoveFirstRankOutcome removeFirstRank(const Model::RemoveFirstRankRequest &request)const; + void removeFirstRankAsync(const Model::RemoveFirstRankRequest& request, const RemoveFirstRankAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveFirstRankOutcomeCallable removeFirstRankCallable(const Model::RemoveFirstRankRequest& request) const; + RemoveInterventionDictionaryOutcome removeInterventionDictionary(const Model::RemoveInterventionDictionaryRequest &request)const; + void removeInterventionDictionaryAsync(const Model::RemoveInterventionDictionaryRequest& request, const RemoveInterventionDictionaryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveInterventionDictionaryOutcomeCallable removeInterventionDictionaryCallable(const Model::RemoveInterventionDictionaryRequest& request) const; + RemoveQueryProcessorOutcome removeQueryProcessor(const Model::RemoveQueryProcessorRequest &request)const; + void removeQueryProcessorAsync(const Model::RemoveQueryProcessorRequest& request, const RemoveQueryProcessorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveQueryProcessorOutcomeCallable removeQueryProcessorCallable(const Model::RemoveQueryProcessorRequest& request) const; + RemoveScheduledTaskOutcome removeScheduledTask(const Model::RemoveScheduledTaskRequest &request)const; + void removeScheduledTaskAsync(const Model::RemoveScheduledTaskRequest& request, const RemoveScheduledTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveScheduledTaskOutcomeCallable removeScheduledTaskCallable(const Model::RemoveScheduledTaskRequest& request) const; + RemoveSecondRankOutcome removeSecondRank(const Model::RemoveSecondRankRequest &request)const; + void removeSecondRankAsync(const Model::RemoveSecondRankRequest& request, const RemoveSecondRankAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveSecondRankOutcomeCallable removeSecondRankCallable(const Model::RemoveSecondRankRequest& request) const; + RemoveUserAnalyzerOutcome removeUserAnalyzer(const Model::RemoveUserAnalyzerRequest &request)const; + void removeUserAnalyzerAsync(const Model::RemoveUserAnalyzerRequest& request, const RemoveUserAnalyzerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveUserAnalyzerOutcomeCallable removeUserAnalyzerCallable(const Model::RemoveUserAnalyzerRequest& request) const; + RenewAppGroupOutcome renewAppGroup(const Model::RenewAppGroupRequest &request)const; + void renewAppGroupAsync(const Model::RenewAppGroupRequest& request, const RenewAppGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RenewAppGroupOutcomeCallable renewAppGroupCallable(const Model::RenewAppGroupRequest& request) const; + ReplaceAppGroupCommodityCodeOutcome replaceAppGroupCommodityCode(const Model::ReplaceAppGroupCommodityCodeRequest &request)const; + void replaceAppGroupCommodityCodeAsync(const Model::ReplaceAppGroupCommodityCodeRequest& request, const ReplaceAppGroupCommodityCodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ReplaceAppGroupCommodityCodeOutcomeCallable replaceAppGroupCommodityCodeCallable(const Model::ReplaceAppGroupCommodityCodeRequest& request) const; + SaveSortScriptFileOutcome saveSortScriptFile(const Model::SaveSortScriptFileRequest &request)const; + void saveSortScriptFileAsync(const Model::SaveSortScriptFileRequest& request, const SaveSortScriptFileAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SaveSortScriptFileOutcomeCallable saveSortScriptFileCallable(const Model::SaveSortScriptFileRequest& request) const; + StartSlowQueryAnalyzerOutcome startSlowQueryAnalyzer(const Model::StartSlowQueryAnalyzerRequest &request)const; + void startSlowQueryAnalyzerAsync(const Model::StartSlowQueryAnalyzerRequest& request, const StartSlowQueryAnalyzerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartSlowQueryAnalyzerOutcomeCallable startSlowQueryAnalyzerCallable(const Model::StartSlowQueryAnalyzerRequest& request) const; + TrainModelOutcome trainModel(const Model::TrainModelRequest &request)const; + void trainModelAsync(const Model::TrainModelRequest& request, const TrainModelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TrainModelOutcomeCallable trainModelCallable(const Model::TrainModelRequest& request) const; + UpdateABTestExperimentOutcome updateABTestExperiment(const Model::UpdateABTestExperimentRequest &request)const; + void updateABTestExperimentAsync(const Model::UpdateABTestExperimentRequest& request, const UpdateABTestExperimentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateABTestExperimentOutcomeCallable updateABTestExperimentCallable(const Model::UpdateABTestExperimentRequest& request) const; + UpdateABTestFixedFlowDividersOutcome updateABTestFixedFlowDividers(const Model::UpdateABTestFixedFlowDividersRequest &request)const; + void updateABTestFixedFlowDividersAsync(const Model::UpdateABTestFixedFlowDividersRequest& request, const UpdateABTestFixedFlowDividersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateABTestFixedFlowDividersOutcomeCallable updateABTestFixedFlowDividersCallable(const Model::UpdateABTestFixedFlowDividersRequest& request) const; + UpdateABTestGroupOutcome updateABTestGroup(const Model::UpdateABTestGroupRequest &request)const; + void updateABTestGroupAsync(const Model::UpdateABTestGroupRequest& request, const UpdateABTestGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateABTestGroupOutcomeCallable updateABTestGroupCallable(const Model::UpdateABTestGroupRequest& request) const; + UpdateABTestSceneOutcome updateABTestScene(const Model::UpdateABTestSceneRequest &request)const; + void updateABTestSceneAsync(const Model::UpdateABTestSceneRequest& request, const UpdateABTestSceneAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateABTestSceneOutcomeCallable updateABTestSceneCallable(const Model::UpdateABTestSceneRequest& request) const; + UpdateFetchFieldsOutcome updateFetchFields(const Model::UpdateFetchFieldsRequest &request)const; + void updateFetchFieldsAsync(const Model::UpdateFetchFieldsRequest& request, const UpdateFetchFieldsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateFetchFieldsOutcomeCallable updateFetchFieldsCallable(const Model::UpdateFetchFieldsRequest& request) const; + UpdateSummariesOutcome updateSummaries(const Model::UpdateSummariesRequest &request)const; + void updateSummariesAsync(const Model::UpdateSummariesRequest& request, const UpdateSummariesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateSummariesOutcomeCallable updateSummariesCallable(const Model::UpdateSummariesRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_OPENSEARCH_OPENSEARCHCLIENT_H_ diff --git a/opensearch/include/alibabacloud/opensearch/OpenSearchExport.h b/opensearch/include/alibabacloud/opensearch/OpenSearchExport.h new file mode 100644 index 000000000..be6420167 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/OpenSearchExport.h @@ -0,0 +1,32 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_OPENSEARCHEXPORT_H_ +#define ALIBABACLOUD_OPENSEARCH_OPENSEARCHEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_OPENSEARCH_LIBRARY) +# define ALIBABACLOUD_OPENSEARCH_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_OPENSEARCH_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_OPENSEARCH_EXPORT +#endif + +#endif // !ALIBABACLOUD_OPENSEARCH_OPENSEARCHEXPORT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/CompileSortScriptRequest.h b/opensearch/include/alibabacloud/opensearch/model/CompileSortScriptRequest.h new file mode 100644 index 000000000..1d48acfd8 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/CompileSortScriptRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_COMPILESORTSCRIPTREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_COMPILESORTSCRIPTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT CompileSortScriptRequest : public RoaServiceRequest + { + + public: + CompileSortScriptRequest(); + ~CompileSortScriptRequest(); + + std::string getAppVersionId()const; + void setAppVersionId(const std::string& appVersionId); + std::string getScriptName()const; + void setScriptName(const std::string& scriptName); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + std::string appVersionId_; + std::string scriptName_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_COMPILESORTSCRIPTREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/CompileSortScriptResult.h b/opensearch/include/alibabacloud/opensearch/model/CompileSortScriptResult.h new file mode 100644 index 000000000..99df79f5d --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/CompileSortScriptResult.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_OPENSEARCH_MODEL_COMPILESORTSCRIPTRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_COMPILESORTSCRIPTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT CompileSortScriptResult : public ServiceResult + { + public: + + + CompileSortScriptResult(); + explicit CompileSortScriptResult(const std::string &payload); + ~CompileSortScriptResult(); + std::string getRequestId()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_COMPILESORTSCRIPTRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/CreateABTestExperimentRequest.h b/opensearch/include/alibabacloud/opensearch/model/CreateABTestExperimentRequest.h new file mode 100644 index 000000000..18bce3a6a --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/CreateABTestExperimentRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_CREATEABTESTEXPERIMENTREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_CREATEABTESTEXPERIMENTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT CreateABTestExperimentRequest : public RoaServiceRequest + { + + public: + CreateABTestExperimentRequest(); + ~CreateABTestExperimentRequest(); + + int getGroupId()const; + void setGroupId(int groupId); + int getSceneId()const; + void setSceneId(int sceneId); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + int groupId_; + int sceneId_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_CREATEABTESTEXPERIMENTREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/CreateABTestExperimentResult.h b/opensearch/include/alibabacloud/opensearch/model/CreateABTestExperimentResult.h new file mode 100644 index 000000000..1dbfd96e0 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/CreateABTestExperimentResult.h @@ -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_OPENSEARCH_MODEL_CREATEABTESTEXPERIMENTRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_CREATEABTESTEXPERIMENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT CreateABTestExperimentResult : public ServiceResult + { + public: + struct Result + { + int updated; + int traffic; + std::string params; + std::string id; + bool online; + std::string name; + int created; + }; + + + CreateABTestExperimentResult(); + explicit CreateABTestExperimentResult(const std::string &payload); + ~CreateABTestExperimentResult(); + std::string getRequestId()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_CREATEABTESTEXPERIMENTRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/CreateABTestGroupRequest.h b/opensearch/include/alibabacloud/opensearch/model/CreateABTestGroupRequest.h new file mode 100644 index 000000000..e333e7ad2 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/CreateABTestGroupRequest.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_OPENSEARCH_MODEL_CREATEABTESTGROUPREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_CREATEABTESTGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT CreateABTestGroupRequest : public RoaServiceRequest + { + + public: + CreateABTestGroupRequest(); + ~CreateABTestGroupRequest(); + + int getSceneId()const; + void setSceneId(int sceneId); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + int sceneId_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_CREATEABTESTGROUPREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/CreateABTestGroupResult.h b/opensearch/include/alibabacloud/opensearch/model/CreateABTestGroupResult.h new file mode 100644 index 000000000..3bf401218 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/CreateABTestGroupResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_CREATEABTESTGROUPRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_CREATEABTESTGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT CreateABTestGroupResult : public ServiceResult + { + public: + struct Result + { + int status; + int updated; + std::string id; + std::string name; + int created; + }; + + + CreateABTestGroupResult(); + explicit CreateABTestGroupResult(const std::string &payload); + ~CreateABTestGroupResult(); + std::string getRequestId()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_CREATEABTESTGROUPRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/CreateABTestSceneRequest.h b/opensearch/include/alibabacloud/opensearch/model/CreateABTestSceneRequest.h new file mode 100644 index 000000000..4e8e10cfd --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/CreateABTestSceneRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_OPENSEARCH_MODEL_CREATEABTESTSCENEREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_CREATEABTESTSCENEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT CreateABTestSceneRequest : public RoaServiceRequest + { + + public: + CreateABTestSceneRequest(); + ~CreateABTestSceneRequest(); + + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_CREATEABTESTSCENEREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/CreateABTestSceneResult.h b/opensearch/include/alibabacloud/opensearch/model/CreateABTestSceneResult.h new file mode 100644 index 000000000..e3f65ed7c --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/CreateABTestSceneResult.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_CREATEABTESTSCENERESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_CREATEABTESTSCENERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT CreateABTestSceneResult : public ServiceResult + { + public: + struct Result + { + int status; + int updated; + std::vector values; + std::string id; + std::string name; + int created; + }; + + + CreateABTestSceneResult(); + explicit CreateABTestSceneResult(const std::string &payload); + ~CreateABTestSceneResult(); + std::string getRequestId()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_CREATEABTESTSCENERESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/CreateAppGroupRequest.h b/opensearch/include/alibabacloud/opensearch/model/CreateAppGroupRequest.h new file mode 100644 index 000000000..c5ec7a3d9 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/CreateAppGroupRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_CREATEAPPGROUPREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_CREATEAPPGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT CreateAppGroupRequest : public RoaServiceRequest + { + + public: + CreateAppGroupRequest(); + ~CreateAppGroupRequest(); + + + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_CREATEAPPGROUPREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/CreateAppGroupResult.h b/opensearch/include/alibabacloud/opensearch/model/CreateAppGroupResult.h new file mode 100644 index 000000000..9b9a1b253 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/CreateAppGroupResult.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_OPENSEARCH_MODEL_CREATEAPPGROUPRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_CREATEAPPGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT CreateAppGroupResult : public ServiceResult + { + public: + struct Result + { + struct Quota + { + int docSize; + int computeResource; + std::string spec; + }; + int secondRankAlgoDeploymentId; + std::string status; + int firstRankAlgoDeploymentId; + int produced; + std::string description; + int updated; + std::string instanceId; + std::string processingOrderId; + std::string expireOn; + std::string currentVersion; + int switchedTime; + std::string projectId; + std::string lockMode; + std::string name; + int chargingWay; + int created; + std::string type; + Quota quota; + std::string chargeType; + std::string commodityCode; + int hasPendingQuotaReviewTask; + std::string id; + int pendingSecondRankAlgoDeploymentId; + int lockedByExpiration; + }; + + + CreateAppGroupResult(); + explicit CreateAppGroupResult(const std::string &payload); + ~CreateAppGroupResult(); + std::string getRequestId()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_CREATEAPPGROUPRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/CreateAppRequest.h b/opensearch/include/alibabacloud/opensearch/model/CreateAppRequest.h new file mode 100644 index 000000000..5352142ed --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/CreateAppRequest.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_OPENSEARCH_MODEL_CREATEAPPREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_CREATEAPPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT CreateAppRequest : public RoaServiceRequest + { + + public: + CreateAppRequest(); + ~CreateAppRequest(); + + bool getDryRun()const; + void setDryRun(bool dryRun); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + bool dryRun_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_CREATEAPPREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/CreateAppResult.h b/opensearch/include/alibabacloud/opensearch/model/CreateAppResult.h new file mode 100644 index 000000000..b847212dc --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/CreateAppResult.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_OPENSEARCH_MODEL_CREATEAPPRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_CREATEAPPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT CreateAppResult : public ServiceResult + { + public: + + + CreateAppResult(); + explicit CreateAppResult(const std::string &payload); + ~CreateAppResult(); + std::string getRequestId()const; + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_CREATEAPPRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/CreateDataCollectionRequest.h b/opensearch/include/alibabacloud/opensearch/model/CreateDataCollectionRequest.h new file mode 100644 index 000000000..4b5d11c56 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/CreateDataCollectionRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_OPENSEARCH_MODEL_CREATEDATACOLLECTIONREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_CREATEDATACOLLECTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT CreateDataCollectionRequest : public RoaServiceRequest + { + + public: + CreateDataCollectionRequest(); + ~CreateDataCollectionRequest(); + + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_CREATEDATACOLLECTIONREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/CreateDataCollectionResult.h b/opensearch/include/alibabacloud/opensearch/model/CreateDataCollectionResult.h new file mode 100644 index 000000000..b1e8915d5 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/CreateDataCollectionResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_CREATEDATACOLLECTIONRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_CREATEDATACOLLECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT CreateDataCollectionResult : public ServiceResult + { + public: + struct Result + { + int status; + std::string type; + int updated; + std::string sundialId; + std::string dataCollectionType; + std::string id; + std::string industryName; + std::string name; + int created; + }; + + + CreateDataCollectionResult(); + explicit CreateDataCollectionResult(const std::string &payload); + ~CreateDataCollectionResult(); + std::string getRequestId()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_CREATEDATACOLLECTIONRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/CreateFirstRankRequest.h b/opensearch/include/alibabacloud/opensearch/model/CreateFirstRankRequest.h new file mode 100644 index 000000000..3122329d4 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/CreateFirstRankRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_CREATEFIRSTRANKREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_CREATEFIRSTRANKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT CreateFirstRankRequest : public RoaServiceRequest + { + + public: + CreateFirstRankRequest(); + ~CreateFirstRankRequest(); + + bool getDryRun()const; + void setDryRun(bool dryRun); + int getAppId()const; + void setAppId(int appId); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + bool dryRun_; + int appId_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_CREATEFIRSTRANKREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/CreateFirstRankResult.h b/opensearch/include/alibabacloud/opensearch/model/CreateFirstRankResult.h new file mode 100644 index 000000000..06ef0d9ca --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/CreateFirstRankResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_CREATEFIRSTRANKRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_CREATEFIRSTRANKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT CreateFirstRankResult : public ServiceResult + { + public: + struct Result + { + struct MetaItem + { + std::string attribute; + std::string arg; + float weight; + }; + bool active; + std::vector meta; + std::string name; + }; + + + CreateFirstRankResult(); + explicit CreateFirstRankResult(const std::string &payload); + ~CreateFirstRankResult(); + std::string getRequestId()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_CREATEFIRSTRANKRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/CreateInterventionDictionaryRequest.h b/opensearch/include/alibabacloud/opensearch/model/CreateInterventionDictionaryRequest.h new file mode 100644 index 000000000..ca47e07f7 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/CreateInterventionDictionaryRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_CREATEINTERVENTIONDICTIONARYREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_CREATEINTERVENTIONDICTIONARYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT CreateInterventionDictionaryRequest : public RoaServiceRequest + { + + public: + CreateInterventionDictionaryRequest(); + ~CreateInterventionDictionaryRequest(); + + + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_CREATEINTERVENTIONDICTIONARYREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/CreateInterventionDictionaryResult.h b/opensearch/include/alibabacloud/opensearch/model/CreateInterventionDictionaryResult.h new file mode 100644 index 000000000..346a4d0d6 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/CreateInterventionDictionaryResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_CREATEINTERVENTIONDICTIONARYRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_CREATEINTERVENTIONDICTIONARYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT CreateInterventionDictionaryResult : public ServiceResult + { + public: + struct Result + { + std::string type; + std::string updated; + std::string analyzer; + std::string name; + std::string created; + }; + + + CreateInterventionDictionaryResult(); + explicit CreateInterventionDictionaryResult(const std::string &payload); + ~CreateInterventionDictionaryResult(); + std::string getRequestId()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_CREATEINTERVENTIONDICTIONARYRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/CreateModelRequest.h b/opensearch/include/alibabacloud/opensearch/model/CreateModelRequest.h new file mode 100644 index 000000000..fa69ae893 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/CreateModelRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_OPENSEARCH_MODEL_CREATEMODELREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_CREATEMODELREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT CreateModelRequest : public RoaServiceRequest + { + + public: + CreateModelRequest(); + ~CreateModelRequest(); + + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_CREATEMODELREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/CreateModelResult.h b/opensearch/include/alibabacloud/opensearch/model/CreateModelResult.h new file mode 100644 index 000000000..29aad4699 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/CreateModelResult.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_OPENSEARCH_MODEL_CREATEMODELRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_CREATEMODELRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT CreateModelResult : public ServiceResult + { + public: + + + CreateModelResult(); + explicit CreateModelResult(const std::string &payload); + ~CreateModelResult(); + std::string getRequestId()const; + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_CREATEMODELRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/CreateQueryProcessorRequest.h b/opensearch/include/alibabacloud/opensearch/model/CreateQueryProcessorRequest.h new file mode 100644 index 000000000..7a93f6d10 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/CreateQueryProcessorRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_CREATEQUERYPROCESSORREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_CREATEQUERYPROCESSORREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT CreateQueryProcessorRequest : public RoaServiceRequest + { + + public: + CreateQueryProcessorRequest(); + ~CreateQueryProcessorRequest(); + + bool getDryRun()const; + void setDryRun(bool dryRun); + int getAppId()const; + void setAppId(int appId); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + bool dryRun_; + int appId_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_CREATEQUERYPROCESSORREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/CreateQueryProcessorResult.h b/opensearch/include/alibabacloud/opensearch/model/CreateQueryProcessorResult.h new file mode 100644 index 000000000..20fbd09da --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/CreateQueryProcessorResult.h @@ -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_OPENSEARCH_MODEL_CREATEQUERYPROCESSORRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_CREATEQUERYPROCESSORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT CreateQueryProcessorResult : public ServiceResult + { + public: + struct Result + { + bool active; + int updated; + std::string domain; + std::vector indexes; + std::vector processors; + std::string name; + int created; + }; + + + CreateQueryProcessorResult(); + explicit CreateQueryProcessorResult(const std::string &payload); + ~CreateQueryProcessorResult(); + std::string getRequestId()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_CREATEQUERYPROCESSORRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/CreateScheduledTaskRequest.h b/opensearch/include/alibabacloud/opensearch/model/CreateScheduledTaskRequest.h new file mode 100644 index 000000000..8c7e1a6b7 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/CreateScheduledTaskRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_OPENSEARCH_MODEL_CREATESCHEDULEDTASKREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_CREATESCHEDULEDTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT CreateScheduledTaskRequest : public RoaServiceRequest + { + + public: + CreateScheduledTaskRequest(); + ~CreateScheduledTaskRequest(); + + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_CREATESCHEDULEDTASKREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/CreateScheduledTaskResult.h b/opensearch/include/alibabacloud/opensearch/model/CreateScheduledTaskResult.h new file mode 100644 index 000000000..761446753 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/CreateScheduledTaskResult.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_OPENSEARCH_MODEL_CREATESCHEDULEDTASKRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_CREATESCHEDULEDTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT CreateScheduledTaskResult : public ServiceResult + { + public: + + + CreateScheduledTaskResult(); + explicit CreateScheduledTaskResult(const std::string &payload); + ~CreateScheduledTaskResult(); + std::string getRequestId()const; + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_CREATESCHEDULEDTASKRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/CreateSecondRankRequest.h b/opensearch/include/alibabacloud/opensearch/model/CreateSecondRankRequest.h new file mode 100644 index 000000000..56f1859ca --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/CreateSecondRankRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_CREATESECONDRANKREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_CREATESECONDRANKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT CreateSecondRankRequest : public RoaServiceRequest + { + + public: + CreateSecondRankRequest(); + ~CreateSecondRankRequest(); + + bool getDryRun()const; + void setDryRun(bool dryRun); + int getAppId()const; + void setAppId(int appId); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + bool dryRun_; + int appId_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_CREATESECONDRANKREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/CreateSecondRankResult.h b/opensearch/include/alibabacloud/opensearch/model/CreateSecondRankResult.h new file mode 100644 index 000000000..a92eb68e8 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/CreateSecondRankResult.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_OPENSEARCH_MODEL_CREATESECONDRANKRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_CREATESECONDRANKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT CreateSecondRankResult : public ServiceResult + { + public: + + + CreateSecondRankResult(); + explicit CreateSecondRankResult(const std::string &payload); + ~CreateSecondRankResult(); + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_CREATESECONDRANKRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/CreateSortScriptRequest.h b/opensearch/include/alibabacloud/opensearch/model/CreateSortScriptRequest.h new file mode 100644 index 000000000..e98e8fbd5 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/CreateSortScriptRequest.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_OPENSEARCH_MODEL_CREATESORTSCRIPTREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_CREATESORTSCRIPTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT CreateSortScriptRequest : public RoaServiceRequest + { + + public: + CreateSortScriptRequest(); + ~CreateSortScriptRequest(); + + std::string getAppVersionId()const; + void setAppVersionId(const std::string& appVersionId); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + std::string appVersionId_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_CREATESORTSCRIPTREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/CreateSortScriptResult.h b/opensearch/include/alibabacloud/opensearch/model/CreateSortScriptResult.h new file mode 100644 index 000000000..dc314d9f4 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/CreateSortScriptResult.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_OPENSEARCH_MODEL_CREATESORTSCRIPTRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_CREATESORTSCRIPTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT CreateSortScriptResult : public ServiceResult + { + public: + + + CreateSortScriptResult(); + explicit CreateSortScriptResult(const std::string &payload); + ~CreateSortScriptResult(); + std::string getRequestId()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_CREATESORTSCRIPTRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/CreateUserAnalyzerRequest.h b/opensearch/include/alibabacloud/opensearch/model/CreateUserAnalyzerRequest.h new file mode 100644 index 000000000..7c52dfcdb --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/CreateUserAnalyzerRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_CREATEUSERANALYZERREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_CREATEUSERANALYZERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT CreateUserAnalyzerRequest : public RoaServiceRequest + { + + public: + CreateUserAnalyzerRequest(); + ~CreateUserAnalyzerRequest(); + + + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_CREATEUSERANALYZERREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/CreateUserAnalyzerResult.h b/opensearch/include/alibabacloud/opensearch/model/CreateUserAnalyzerResult.h new file mode 100644 index 000000000..c3c0b107e --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/CreateUserAnalyzerResult.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_OPENSEARCH_MODEL_CREATEUSERANALYZERRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_CREATEUSERANALYZERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT CreateUserAnalyzerResult : public ServiceResult + { + public: + + + CreateUserAnalyzerResult(); + explicit CreateUserAnalyzerResult(const std::string &payload); + ~CreateUserAnalyzerResult(); + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_CREATEUSERANALYZERRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/DeleteABTestExperimentRequest.h b/opensearch/include/alibabacloud/opensearch/model/DeleteABTestExperimentRequest.h new file mode 100644 index 000000000..3a5711a8c --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DeleteABTestExperimentRequest.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_OPENSEARCH_MODEL_DELETEABTESTEXPERIMENTREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DELETEABTESTEXPERIMENTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DeleteABTestExperimentRequest : public RoaServiceRequest + { + + public: + DeleteABTestExperimentRequest(); + ~DeleteABTestExperimentRequest(); + + int getGroupId()const; + void setGroupId(int groupId); + int getSceneId()const; + void setSceneId(int sceneId); + int getExperimentId()const; + void setExperimentId(int experimentId); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + int groupId_; + int sceneId_; + int experimentId_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DELETEABTESTEXPERIMENTREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/DeleteABTestExperimentResult.h b/opensearch/include/alibabacloud/opensearch/model/DeleteABTestExperimentResult.h new file mode 100644 index 000000000..a0c9e3423 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DeleteABTestExperimentResult.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_OPENSEARCH_MODEL_DELETEABTESTEXPERIMENTRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DELETEABTESTEXPERIMENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DeleteABTestExperimentResult : public ServiceResult + { + public: + + + DeleteABTestExperimentResult(); + explicit DeleteABTestExperimentResult(const std::string &payload); + ~DeleteABTestExperimentResult(); + std::string getRequestId()const; + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DELETEABTESTEXPERIMENTRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/DeleteABTestGroupRequest.h b/opensearch/include/alibabacloud/opensearch/model/DeleteABTestGroupRequest.h new file mode 100644 index 000000000..dfb16fcf4 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DeleteABTestGroupRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_DELETEABTESTGROUPREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DELETEABTESTGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DeleteABTestGroupRequest : public RoaServiceRequest + { + + public: + DeleteABTestGroupRequest(); + ~DeleteABTestGroupRequest(); + + int getGroupId()const; + void setGroupId(int groupId); + int getSceneId()const; + void setSceneId(int sceneId); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + int groupId_; + int sceneId_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DELETEABTESTGROUPREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/DeleteABTestGroupResult.h b/opensearch/include/alibabacloud/opensearch/model/DeleteABTestGroupResult.h new file mode 100644 index 000000000..ab24334f4 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DeleteABTestGroupResult.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_OPENSEARCH_MODEL_DELETEABTESTGROUPRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DELETEABTESTGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DeleteABTestGroupResult : public ServiceResult + { + public: + + + DeleteABTestGroupResult(); + explicit DeleteABTestGroupResult(const std::string &payload); + ~DeleteABTestGroupResult(); + std::string getRequestId()const; + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DELETEABTESTGROUPRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/DeleteABTestSceneRequest.h b/opensearch/include/alibabacloud/opensearch/model/DeleteABTestSceneRequest.h new file mode 100644 index 000000000..6579466c2 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DeleteABTestSceneRequest.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_OPENSEARCH_MODEL_DELETEABTESTSCENEREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DELETEABTESTSCENEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DeleteABTestSceneRequest : public RoaServiceRequest + { + + public: + DeleteABTestSceneRequest(); + ~DeleteABTestSceneRequest(); + + int getSceneId()const; + void setSceneId(int sceneId); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + int sceneId_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DELETEABTESTSCENEREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/DeleteABTestSceneResult.h b/opensearch/include/alibabacloud/opensearch/model/DeleteABTestSceneResult.h new file mode 100644 index 000000000..ae659fcab --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DeleteABTestSceneResult.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_OPENSEARCH_MODEL_DELETEABTESTSCENERESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DELETEABTESTSCENERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DeleteABTestSceneResult : public ServiceResult + { + public: + + + DeleteABTestSceneResult(); + explicit DeleteABTestSceneResult(const std::string &payload); + ~DeleteABTestSceneResult(); + std::string getRequestId()const; + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DELETEABTESTSCENERESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/DeleteModelRequest.h b/opensearch/include/alibabacloud/opensearch/model/DeleteModelRequest.h new file mode 100644 index 000000000..cadf79357 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DeleteModelRequest.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_OPENSEARCH_MODEL_DELETEMODELREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DELETEMODELREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DeleteModelRequest : public RoaServiceRequest + { + + public: + DeleteModelRequest(); + ~DeleteModelRequest(); + + std::string getModelName()const; + void setModelName(const std::string& modelName); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + std::string modelName_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DELETEMODELREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/DeleteModelResult.h b/opensearch/include/alibabacloud/opensearch/model/DeleteModelResult.h new file mode 100644 index 000000000..ef5894f6d --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DeleteModelResult.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_OPENSEARCH_MODEL_DELETEMODELRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DELETEMODELRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DeleteModelResult : public ServiceResult + { + public: + + + DeleteModelResult(); + explicit DeleteModelResult(const std::string &payload); + ~DeleteModelResult(); + std::string getRequestId()const; + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DELETEMODELRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/DeleteSortScriptFileRequest.h b/opensearch/include/alibabacloud/opensearch/model/DeleteSortScriptFileRequest.h new file mode 100644 index 000000000..ce810e1b4 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DeleteSortScriptFileRequest.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_OPENSEARCH_MODEL_DELETESORTSCRIPTFILEREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DELETESORTSCRIPTFILEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DeleteSortScriptFileRequest : public RoaServiceRequest + { + + public: + DeleteSortScriptFileRequest(); + ~DeleteSortScriptFileRequest(); + + std::string getAppVersionId()const; + void setAppVersionId(const std::string& appVersionId); + std::string getFileName()const; + void setFileName(const std::string& fileName); + std::string getScriptName()const; + void setScriptName(const std::string& scriptName); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + std::string appVersionId_; + std::string fileName_; + std::string scriptName_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DELETESORTSCRIPTFILEREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/DeleteSortScriptFileResult.h b/opensearch/include/alibabacloud/opensearch/model/DeleteSortScriptFileResult.h new file mode 100644 index 000000000..3e0cbaf2b --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DeleteSortScriptFileResult.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_OPENSEARCH_MODEL_DELETESORTSCRIPTFILERESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DELETESORTSCRIPTFILERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DeleteSortScriptFileResult : public ServiceResult + { + public: + + + DeleteSortScriptFileResult(); + explicit DeleteSortScriptFileResult(const std::string &payload); + ~DeleteSortScriptFileResult(); + std::string getRequestId()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DELETESORTSCRIPTFILERESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/DeleteSortScriptRequest.h b/opensearch/include/alibabacloud/opensearch/model/DeleteSortScriptRequest.h new file mode 100644 index 000000000..39e25c678 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DeleteSortScriptRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_DELETESORTSCRIPTREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DELETESORTSCRIPTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DeleteSortScriptRequest : public RoaServiceRequest + { + + public: + DeleteSortScriptRequest(); + ~DeleteSortScriptRequest(); + + std::string getAppVersionId()const; + void setAppVersionId(const std::string& appVersionId); + std::string getScriptName()const; + void setScriptName(const std::string& scriptName); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + std::string appVersionId_; + std::string scriptName_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DELETESORTSCRIPTREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/DeleteSortScriptResult.h b/opensearch/include/alibabacloud/opensearch/model/DeleteSortScriptResult.h new file mode 100644 index 000000000..b7bc5bc2c --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DeleteSortScriptResult.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_OPENSEARCH_MODEL_DELETESORTSCRIPTRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DELETESORTSCRIPTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DeleteSortScriptResult : public ServiceResult + { + public: + + + DeleteSortScriptResult(); + explicit DeleteSortScriptResult(const std::string &payload); + ~DeleteSortScriptResult(); + std::string getRequestId()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DELETESORTSCRIPTRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeABTestExperimentRequest.h b/opensearch/include/alibabacloud/opensearch/model/DescribeABTestExperimentRequest.h new file mode 100644 index 000000000..d4d6d3c04 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeABTestExperimentRequest.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_OPENSEARCH_MODEL_DESCRIBEABTESTEXPERIMENTREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEABTESTEXPERIMENTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DescribeABTestExperimentRequest : public RoaServiceRequest + { + + public: + DescribeABTestExperimentRequest(); + ~DescribeABTestExperimentRequest(); + + int getGroupId()const; + void setGroupId(int groupId); + int getSceneId()const; + void setSceneId(int sceneId); + int getExperimentId()const; + void setExperimentId(int experimentId); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + int groupId_; + int sceneId_; + int experimentId_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEABTESTEXPERIMENTREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeABTestExperimentResult.h b/opensearch/include/alibabacloud/opensearch/model/DescribeABTestExperimentResult.h new file mode 100644 index 000000000..8648c9a9d --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeABTestExperimentResult.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_OPENSEARCH_MODEL_DESCRIBEABTESTEXPERIMENTRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEABTESTEXPERIMENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DescribeABTestExperimentResult : public ServiceResult + { + public: + struct Result + { + struct Params + { + std::string first_formula_name; + }; + int updated; + int traffic; + Params params; + std::string id; + bool online; + std::string name; + int created; + }; + + + DescribeABTestExperimentResult(); + explicit DescribeABTestExperimentResult(const std::string &payload); + ~DescribeABTestExperimentResult(); + std::string getRequestId()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEABTESTEXPERIMENTRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeABTestGroupRequest.h b/opensearch/include/alibabacloud/opensearch/model/DescribeABTestGroupRequest.h new file mode 100644 index 000000000..ba496c3d7 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeABTestGroupRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEABTESTGROUPREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEABTESTGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DescribeABTestGroupRequest : public RoaServiceRequest + { + + public: + DescribeABTestGroupRequest(); + ~DescribeABTestGroupRequest(); + + int getGroupId()const; + void setGroupId(int groupId); + int getSceneId()const; + void setSceneId(int sceneId); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + int groupId_; + int sceneId_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEABTESTGROUPREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeABTestGroupResult.h b/opensearch/include/alibabacloud/opensearch/model/DescribeABTestGroupResult.h new file mode 100644 index 000000000..1fbbc3231 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeABTestGroupResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEABTESTGROUPRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEABTESTGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DescribeABTestGroupResult : public ServiceResult + { + public: + struct Result + { + int status; + int updated; + std::string id; + std::string name; + int created; + }; + + + DescribeABTestGroupResult(); + explicit DescribeABTestGroupResult(const std::string &payload); + ~DescribeABTestGroupResult(); + std::string getRequestId()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEABTESTGROUPRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeABTestSceneRequest.h b/opensearch/include/alibabacloud/opensearch/model/DescribeABTestSceneRequest.h new file mode 100644 index 000000000..81906b593 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeABTestSceneRequest.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_OPENSEARCH_MODEL_DESCRIBEABTESTSCENEREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEABTESTSCENEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DescribeABTestSceneRequest : public RoaServiceRequest + { + + public: + DescribeABTestSceneRequest(); + ~DescribeABTestSceneRequest(); + + int getSceneId()const; + void setSceneId(int sceneId); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + int sceneId_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEABTESTSCENEREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeABTestSceneResult.h b/opensearch/include/alibabacloud/opensearch/model/DescribeABTestSceneResult.h new file mode 100644 index 000000000..e46c58407 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeABTestSceneResult.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEABTESTSCENERESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEABTESTSCENERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DescribeABTestSceneResult : public ServiceResult + { + public: + struct Result + { + int status; + int updated; + std::vector values; + std::string id; + std::string name; + int created; + }; + + + DescribeABTestSceneResult(); + explicit DescribeABTestSceneResult(const std::string &payload); + ~DescribeABTestSceneResult(); + std::string getRequestId()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEABTESTSCENERESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeAppGroupDataReportRequest.h b/opensearch/include/alibabacloud/opensearch/model/DescribeAppGroupDataReportRequest.h new file mode 100644 index 000000000..38bcb8947 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeAppGroupDataReportRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEAPPGROUPDATAREPORTREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEAPPGROUPDATAREPORTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DescribeAppGroupDataReportRequest : public RoaServiceRequest + { + + public: + DescribeAppGroupDataReportRequest(); + ~DescribeAppGroupDataReportRequest(); + + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + std::string endTime_; + std::string startTime_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEAPPGROUPDATAREPORTREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeAppGroupDataReportResult.h b/opensearch/include/alibabacloud/opensearch/model/DescribeAppGroupDataReportResult.h new file mode 100644 index 000000000..163b36c75 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeAppGroupDataReportResult.h @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEAPPGROUPDATAREPORTRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEAPPGROUPDATAREPORTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DescribeAppGroupDataReportResult : public ServiceResult + { + public: + struct Result + { + struct ReceivedSampleItem + { + struct Message + { + std::string sdkType; + std::string arg3; + std::string args; + std::string arg1; + std::string userId; + std::string sdkVersion; + int eventId; + std::string page; + std::string clientIp; + std::string sessionId; + }; + Message message; + long receivedTimeMs; + }; + std::vector receivedSample; + int receivedCount; + }; + + + DescribeAppGroupDataReportResult(); + explicit DescribeAppGroupDataReportResult(const std::string &payload); + ~DescribeAppGroupDataReportResult(); + std::string getRequestId()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEAPPGROUPDATAREPORTRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeAppGroupRequest.h b/opensearch/include/alibabacloud/opensearch/model/DescribeAppGroupRequest.h new file mode 100644 index 000000000..94ea45de3 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeAppGroupRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_OPENSEARCH_MODEL_DESCRIBEAPPGROUPREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEAPPGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DescribeAppGroupRequest : public RoaServiceRequest + { + + public: + DescribeAppGroupRequest(); + ~DescribeAppGroupRequest(); + + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEAPPGROUPREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeAppGroupResult.h b/opensearch/include/alibabacloud/opensearch/model/DescribeAppGroupResult.h new file mode 100644 index 000000000..dd88b102d --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeAppGroupResult.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_OPENSEARCH_MODEL_DESCRIBEAPPGROUPRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEAPPGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DescribeAppGroupResult : public ServiceResult + { + public: + struct Result + { + struct Quota + { + int docSize; + int computeResource; + std::string spec; + }; + int secondRankAlgoDeploymentId; + std::string status; + int firstRankAlgoDeploymentId; + int produced; + std::string description; + int updated; + std::string instanceId; + std::string processingOrderId; + std::string expireOn; + std::string currentVersion; + int switchedTime; + std::string projectId; + std::string lockMode; + std::string name; + int chargingWay; + int created; + std::string type; + Quota quota; + std::string chargeType; + std::string commodityCode; + int hasPendingQuotaReviewTask; + std::string id; + int pendingSecondRankAlgoDeploymentId; + int lockedByExpiration; + }; + + + DescribeAppGroupResult(); + explicit DescribeAppGroupResult(const std::string &payload); + ~DescribeAppGroupResult(); + std::string getRequestId()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEAPPGROUPRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeAppRequest.h b/opensearch/include/alibabacloud/opensearch/model/DescribeAppRequest.h new file mode 100644 index 000000000..8545942b8 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeAppRequest.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_OPENSEARCH_MODEL_DESCRIBEAPPREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEAPPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DescribeAppRequest : public RoaServiceRequest + { + + public: + DescribeAppRequest(); + ~DescribeAppRequest(); + + int getAppId()const; + void setAppId(int appId); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + int appId_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEAPPREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeAppResult.h b/opensearch/include/alibabacloud/opensearch/model/DescribeAppResult.h new file mode 100644 index 000000000..8b21bdcd4 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeAppResult.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEAPPRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEAPPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DescribeAppResult : public ServiceResult + { + public: + struct Result + { + struct Quota + { + int docSize; + int qps; + int computeResource; + std::string spec; + }; + std::string status; + std::string type; + std::string description; + Quota quota; + std::string schema; + std::vector fetchFields; + std::string clusterName; + bool autoSwitch; + std::string id; + int algoDeploymentId; + int progressPercent; + int created; + }; + + + DescribeAppResult(); + explicit DescribeAppResult(const std::string &payload); + ~DescribeAppResult(); + std::string getRequestId()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEAPPRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeAppStatisticsRequest.h b/opensearch/include/alibabacloud/opensearch/model/DescribeAppStatisticsRequest.h new file mode 100644 index 000000000..db1113dfa --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeAppStatisticsRequest.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_OPENSEARCH_MODEL_DESCRIBEAPPSTATISTICSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEAPPSTATISTICSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DescribeAppStatisticsRequest : public RoaServiceRequest + { + + public: + DescribeAppStatisticsRequest(); + ~DescribeAppStatisticsRequest(); + + std::string getAppId()const; + void setAppId(const std::string& appId); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + std::string appId_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEAPPSTATISTICSREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeAppStatisticsResult.h b/opensearch/include/alibabacloud/opensearch/model/DescribeAppStatisticsResult.h new file mode 100644 index 000000000..e7867d1dd --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeAppStatisticsResult.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_OPENSEARCH_MODEL_DESCRIBEAPPSTATISTICSRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEAPPSTATISTICSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DescribeAppStatisticsResult : public ServiceResult + { + public: + + + DescribeAppStatisticsResult(); + explicit DescribeAppStatisticsResult(const std::string &payload); + ~DescribeAppStatisticsResult(); + std::string getRequestId()const; + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEAPPSTATISTICSRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeAppsRequest.h b/opensearch/include/alibabacloud/opensearch/model/DescribeAppsRequest.h new file mode 100644 index 000000000..823ae5c18 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeAppsRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_OPENSEARCH_MODEL_DESCRIBEAPPSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEAPPSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DescribeAppsRequest : public RoaServiceRequest + { + + public: + DescribeAppsRequest(); + ~DescribeAppsRequest(); + + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEAPPSREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeAppsResult.h b/opensearch/include/alibabacloud/opensearch/model/DescribeAppsResult.h new file mode 100644 index 000000000..5bd3bafb3 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeAppsResult.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_OPENSEARCH_MODEL_DESCRIBEAPPSRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEAPPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DescribeAppsResult : public ServiceResult + { + public: + + + DescribeAppsResult(); + explicit DescribeAppsResult(const std::string &payload); + ~DescribeAppsResult(); + std::string getRequestId()const; + std::vector getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::vector result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEAPPSRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeDataCollctionRequest.h b/opensearch/include/alibabacloud/opensearch/model/DescribeDataCollctionRequest.h new file mode 100644 index 000000000..f151eafea --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeDataCollctionRequest.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_OPENSEARCH_MODEL_DESCRIBEDATACOLLCTIONREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEDATACOLLCTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DescribeDataCollctionRequest : public RoaServiceRequest + { + + public: + DescribeDataCollctionRequest(); + ~DescribeDataCollctionRequest(); + + std::string getDataCollectionIdentity()const; + void setDataCollectionIdentity(const std::string& dataCollectionIdentity); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + std::string dataCollectionIdentity_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEDATACOLLCTIONREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeDataCollctionResult.h b/opensearch/include/alibabacloud/opensearch/model/DescribeDataCollctionResult.h new file mode 100644 index 000000000..6a340745e --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeDataCollctionResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEDATACOLLCTIONRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEDATACOLLCTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DescribeDataCollctionResult : public ServiceResult + { + public: + struct Result + { + int status; + std::string type; + int updated; + std::string sundialId; + std::string dataCollectionType; + std::string id; + std::string industryName; + std::string name; + int created; + }; + + + DescribeDataCollctionResult(); + explicit DescribeDataCollctionResult(const std::string &payload); + ~DescribeDataCollctionResult(); + std::string getRequestId()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEDATACOLLCTIONRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeFirstRankRequest.h b/opensearch/include/alibabacloud/opensearch/model/DescribeFirstRankRequest.h new file mode 100644 index 000000000..f8aed2c25 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeFirstRankRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEFIRSTRANKREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEFIRSTRANKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DescribeFirstRankRequest : public RoaServiceRequest + { + + public: + DescribeFirstRankRequest(); + ~DescribeFirstRankRequest(); + + int getAppId()const; + void setAppId(int appId); + std::string getName()const; + void setName(const std::string& name); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + int appId_; + std::string name_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEFIRSTRANKREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeFirstRankResult.h b/opensearch/include/alibabacloud/opensearch/model/DescribeFirstRankResult.h new file mode 100644 index 000000000..39aa545a9 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeFirstRankResult.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEFIRSTRANKRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEFIRSTRANKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DescribeFirstRankResult : public ServiceResult + { + public: + struct Result + { + struct MetaItem + { + std::string attribute; + std::string arg; + float weight; + }; + bool active; + std::string description; + std::vector meta; + std::string name; + }; + + + DescribeFirstRankResult(); + explicit DescribeFirstRankResult(const std::string &payload); + ~DescribeFirstRankResult(); + std::string getRequestId()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEFIRSTRANKRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeInterventionDictionaryRequest.h b/opensearch/include/alibabacloud/opensearch/model/DescribeInterventionDictionaryRequest.h new file mode 100644 index 000000000..25605be0e --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeInterventionDictionaryRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_OPENSEARCH_MODEL_DESCRIBEINTERVENTIONDICTIONARYREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEINTERVENTIONDICTIONARYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DescribeInterventionDictionaryRequest : public RoaServiceRequest + { + + public: + DescribeInterventionDictionaryRequest(); + ~DescribeInterventionDictionaryRequest(); + + std::string getName()const; + void setName(const std::string& name); + + private: + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEINTERVENTIONDICTIONARYREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeInterventionDictionaryResult.h b/opensearch/include/alibabacloud/opensearch/model/DescribeInterventionDictionaryResult.h new file mode 100644 index 000000000..1fe17a475 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeInterventionDictionaryResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEINTERVENTIONDICTIONARYRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEINTERVENTIONDICTIONARYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DescribeInterventionDictionaryResult : public ServiceResult + { + public: + struct Result + { + std::string type; + std::string updated; + std::string analyzer; + std::string name; + std::string created; + }; + + + DescribeInterventionDictionaryResult(); + explicit DescribeInterventionDictionaryResult(const std::string &payload); + ~DescribeInterventionDictionaryResult(); + std::string getRequestId()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEINTERVENTIONDICTIONARYRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeModelRequest.h b/opensearch/include/alibabacloud/opensearch/model/DescribeModelRequest.h new file mode 100644 index 000000000..88f4a390f --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeModelRequest.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_OPENSEARCH_MODEL_DESCRIBEMODELREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEMODELREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DescribeModelRequest : public RoaServiceRequest + { + + public: + DescribeModelRequest(); + ~DescribeModelRequest(); + + std::string getModelName()const; + void setModelName(const std::string& modelName); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + std::string modelName_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEMODELREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeModelResult.h b/opensearch/include/alibabacloud/opensearch/model/DescribeModelResult.h new file mode 100644 index 000000000..a7b59f21e --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeModelResult.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_OPENSEARCH_MODEL_DESCRIBEMODELRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEMODELRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DescribeModelResult : public ServiceResult + { + public: + + + DescribeModelResult(); + explicit DescribeModelResult(const std::string &payload); + ~DescribeModelResult(); + std::string getRequestId()const; + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEMODELRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeQueryProcessorRequest.h b/opensearch/include/alibabacloud/opensearch/model/DescribeQueryProcessorRequest.h new file mode 100644 index 000000000..34f848c47 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeQueryProcessorRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEQUERYPROCESSORREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEQUERYPROCESSORREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DescribeQueryProcessorRequest : public RoaServiceRequest + { + + public: + DescribeQueryProcessorRequest(); + ~DescribeQueryProcessorRequest(); + + int getAppId()const; + void setAppId(int appId); + std::string getName()const; + void setName(const std::string& name); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + int appId_; + std::string name_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEQUERYPROCESSORREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeQueryProcessorResult.h b/opensearch/include/alibabacloud/opensearch/model/DescribeQueryProcessorResult.h new file mode 100644 index 000000000..6e77918a6 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeQueryProcessorResult.h @@ -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_OPENSEARCH_MODEL_DESCRIBEQUERYPROCESSORRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEQUERYPROCESSORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DescribeQueryProcessorResult : public ServiceResult + { + public: + struct Result + { + bool active; + int updated; + std::string domain; + std::vector indexes; + std::vector processors; + std::string name; + int created; + }; + + + DescribeQueryProcessorResult(); + explicit DescribeQueryProcessorResult(const std::string &payload); + ~DescribeQueryProcessorResult(); + std::string getRequestId()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEQUERYPROCESSORRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeRegionRequest.h b/opensearch/include/alibabacloud/opensearch/model/DescribeRegionRequest.h new file mode 100644 index 000000000..8d2b6b6e3 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeRegionRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEREGIONREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEREGIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DescribeRegionRequest : public RoaServiceRequest + { + + public: + DescribeRegionRequest(); + ~DescribeRegionRequest(); + + + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEREGIONREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeRegionResult.h b/opensearch/include/alibabacloud/opensearch/model/DescribeRegionResult.h new file mode 100644 index 000000000..5616914cd --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeRegionResult.h @@ -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_OPENSEARCH_MODEL_DESCRIBEREGIONRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEREGIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DescribeRegionResult : public ServiceResult + { + public: + struct Result + { + std::string config; + std::string regionId; + }; + + + DescribeRegionResult(); + explicit DescribeRegionResult(const std::string &payload); + ~DescribeRegionResult(); + std::string getRequestId()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEREGIONRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeRegionsRequest.h b/opensearch/include/alibabacloud/opensearch/model/DescribeRegionsRequest.h new file mode 100644 index 000000000..dd49553ad --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeRegionsRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEREGIONSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEREGIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DescribeRegionsRequest : public RoaServiceRequest + { + + public: + DescribeRegionsRequest(); + ~DescribeRegionsRequest(); + + + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEREGIONSREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeRegionsResult.h b/opensearch/include/alibabacloud/opensearch/model/DescribeRegionsResult.h new file mode 100644 index 000000000..78e48bf20 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeRegionsResult.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEREGIONSRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEREGIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DescribeRegionsResult : public ServiceResult + { + public: + struct ResultItem + { + std::string endpoint; + std::string consoleUrl; + std::string regionId; + std::string localName; + }; + + + DescribeRegionsResult(); + explicit DescribeRegionsResult(const std::string &payload); + ~DescribeRegionsResult(); + std::vector getresult()const; + std::string getRequestId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEREGIONSRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeScheduledTaskRequest.h b/opensearch/include/alibabacloud/opensearch/model/DescribeScheduledTaskRequest.h new file mode 100644 index 000000000..e97dfd562 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeScheduledTaskRequest.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_OPENSEARCH_MODEL_DESCRIBESCHEDULEDTASKREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBESCHEDULEDTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DescribeScheduledTaskRequest : public RoaServiceRequest + { + + public: + DescribeScheduledTaskRequest(); + ~DescribeScheduledTaskRequest(); + + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + + private: + std::string appGroupIdentity_; + std::string taskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBESCHEDULEDTASKREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeScheduledTaskResult.h b/opensearch/include/alibabacloud/opensearch/model/DescribeScheduledTaskResult.h new file mode 100644 index 000000000..8a1d6730e --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeScheduledTaskResult.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_OPENSEARCH_MODEL_DESCRIBESCHEDULEDTASKRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBESCHEDULEDTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DescribeScheduledTaskResult : public ServiceResult + { + public: + + + DescribeScheduledTaskResult(); + explicit DescribeScheduledTaskResult(const std::string &payload); + ~DescribeScheduledTaskResult(); + std::string getRequestId()const; + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBESCHEDULEDTASKRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeSecondRankRequest.h b/opensearch/include/alibabacloud/opensearch/model/DescribeSecondRankRequest.h new file mode 100644 index 000000000..f38070cf0 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeSecondRankRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBESECONDRANKREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBESECONDRANKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DescribeSecondRankRequest : public RoaServiceRequest + { + + public: + DescribeSecondRankRequest(); + ~DescribeSecondRankRequest(); + + int getAppId()const; + void setAppId(int appId); + std::string getName()const; + void setName(const std::string& name); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + int appId_; + std::string name_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBESECONDRANKREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeSecondRankResult.h b/opensearch/include/alibabacloud/opensearch/model/DescribeSecondRankResult.h new file mode 100644 index 000000000..d1990f61b --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeSecondRankResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBESECONDRANKRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBESECONDRANKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DescribeSecondRankResult : public ServiceResult + { + public: + struct Result + { + std::string isDefault; + std::string meta; + bool active; + std::string description; + int updated; + std::string isSys; + std::string id; + std::string name; + int created; + }; + + + DescribeSecondRankResult(); + explicit DescribeSecondRankResult(const std::string &payload); + ~DescribeSecondRankResult(); + std::string getRequestId()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBESECONDRANKRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeSlowQueryStatusRequest.h b/opensearch/include/alibabacloud/opensearch/model/DescribeSlowQueryStatusRequest.h new file mode 100644 index 000000000..aae6742c9 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeSlowQueryStatusRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_OPENSEARCH_MODEL_DESCRIBESLOWQUERYSTATUSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBESLOWQUERYSTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DescribeSlowQueryStatusRequest : public RoaServiceRequest + { + + public: + DescribeSlowQueryStatusRequest(); + ~DescribeSlowQueryStatusRequest(); + + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBESLOWQUERYSTATUSREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeSlowQueryStatusResult.h b/opensearch/include/alibabacloud/opensearch/model/DescribeSlowQueryStatusResult.h new file mode 100644 index 000000000..118a0f4ab --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeSlowQueryStatusResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBESLOWQUERYSTATUSRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBESLOWQUERYSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DescribeSlowQueryStatusResult : public ServiceResult + { + public: + struct Result + { + std::string status; + std::string appGroupId; + std::string region; + }; + + + DescribeSlowQueryStatusResult(); + explicit DescribeSlowQueryStatusResult(const std::string &payload); + ~DescribeSlowQueryStatusResult(); + std::string getRequestId()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBESLOWQUERYSTATUSRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeUserAnalyzerRequest.h b/opensearch/include/alibabacloud/opensearch/model/DescribeUserAnalyzerRequest.h new file mode 100644 index 000000000..6d04b96a7 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeUserAnalyzerRequest.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_OPENSEARCH_MODEL_DESCRIBEUSERANALYZERREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEUSERANALYZERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DescribeUserAnalyzerRequest : public RoaServiceRequest + { + + public: + DescribeUserAnalyzerRequest(); + ~DescribeUserAnalyzerRequest(); + + std::string getWith()const; + void setWith(const std::string& with); + std::string getName()const; + void setName(const std::string& name); + + private: + std::string with_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEUSERANALYZERREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeUserAnalyzerResult.h b/opensearch/include/alibabacloud/opensearch/model/DescribeUserAnalyzerResult.h new file mode 100644 index 000000000..67d13aed8 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeUserAnalyzerResult.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_OPENSEARCH_MODEL_DESCRIBEUSERANALYZERRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEUSERANALYZERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DescribeUserAnalyzerResult : public ServiceResult + { + public: + + + DescribeUserAnalyzerResult(); + explicit DescribeUserAnalyzerResult(const std::string &payload); + ~DescribeUserAnalyzerResult(); + std::string getRequestId()const; + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEUSERANALYZERRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/DisableSlowQueryRequest.h b/opensearch/include/alibabacloud/opensearch/model/DisableSlowQueryRequest.h new file mode 100644 index 000000000..c7673c997 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DisableSlowQueryRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_OPENSEARCH_MODEL_DISABLESLOWQUERYREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DISABLESLOWQUERYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DisableSlowQueryRequest : public RoaServiceRequest + { + + public: + DisableSlowQueryRequest(); + ~DisableSlowQueryRequest(); + + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DISABLESLOWQUERYREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/DisableSlowQueryResult.h b/opensearch/include/alibabacloud/opensearch/model/DisableSlowQueryResult.h new file mode 100644 index 000000000..5e5770b5c --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DisableSlowQueryResult.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_OPENSEARCH_MODEL_DISABLESLOWQUERYRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DISABLESLOWQUERYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DisableSlowQueryResult : public ServiceResult + { + public: + + + DisableSlowQueryResult(); + explicit DisableSlowQueryResult(const std::string &payload); + ~DisableSlowQueryResult(); + std::string getRequestId()const; + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DISABLESLOWQUERYRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/EnableSlowQueryRequest.h b/opensearch/include/alibabacloud/opensearch/model/EnableSlowQueryRequest.h new file mode 100644 index 000000000..da5e5d2f9 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/EnableSlowQueryRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_OPENSEARCH_MODEL_ENABLESLOWQUERYREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_ENABLESLOWQUERYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT EnableSlowQueryRequest : public RoaServiceRequest + { + + public: + EnableSlowQueryRequest(); + ~EnableSlowQueryRequest(); + + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_ENABLESLOWQUERYREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/EnableSlowQueryResult.h b/opensearch/include/alibabacloud/opensearch/model/EnableSlowQueryResult.h new file mode 100644 index 000000000..29302fa7c --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/EnableSlowQueryResult.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_OPENSEARCH_MODEL_ENABLESLOWQUERYRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_ENABLESLOWQUERYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT EnableSlowQueryResult : public ServiceResult + { + public: + + + EnableSlowQueryResult(); + explicit EnableSlowQueryResult(const std::string &payload); + ~EnableSlowQueryResult(); + std::string getRequestId()const; + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_ENABLESLOWQUERYRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/GetModelProgressRequest.h b/opensearch/include/alibabacloud/opensearch/model/GetModelProgressRequest.h new file mode 100644 index 000000000..42348df6a --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/GetModelProgressRequest.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_OPENSEARCH_MODEL_GETMODELPROGRESSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_GETMODELPROGRESSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT GetModelProgressRequest : public RoaServiceRequest + { + + public: + GetModelProgressRequest(); + ~GetModelProgressRequest(); + + std::string getModelName()const; + void setModelName(const std::string& modelName); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + std::string modelName_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_GETMODELPROGRESSREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/GetModelProgressResult.h b/opensearch/include/alibabacloud/opensearch/model/GetModelProgressResult.h new file mode 100644 index 000000000..a6a7867fa --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/GetModelProgressResult.h @@ -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_OPENSEARCH_MODEL_GETMODELPROGRESSRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_GETMODELPROGRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT GetModelProgressResult : public ServiceResult + { + public: + struct Result + { + std::string status; + int progress; + }; + + + GetModelProgressResult(); + explicit GetModelProgressResult(const std::string &payload); + ~GetModelProgressResult(); + std::string getRequestId()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_GETMODELPROGRESSRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/GetModelReportRequest.h b/opensearch/include/alibabacloud/opensearch/model/GetModelReportRequest.h new file mode 100644 index 000000000..82a0f3b85 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/GetModelReportRequest.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_OPENSEARCH_MODEL_GETMODELREPORTREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_GETMODELREPORTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT GetModelReportRequest : public RoaServiceRequest + { + + public: + GetModelReportRequest(); + ~GetModelReportRequest(); + + std::string getModelName()const; + void setModelName(const std::string& modelName); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + std::string modelName_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_GETMODELREPORTREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/GetModelReportResult.h b/opensearch/include/alibabacloud/opensearch/model/GetModelReportResult.h new file mode 100644 index 000000000..53feeb3fe --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/GetModelReportResult.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_OPENSEARCH_MODEL_GETMODELREPORTRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_GETMODELREPORTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT GetModelReportResult : public ServiceResult + { + public: + + + GetModelReportResult(); + explicit GetModelReportResult(const std::string &payload); + ~GetModelReportResult(); + std::string getRequestId()const; + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_GETMODELREPORTRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/GetScriptFileNamesRequest.h b/opensearch/include/alibabacloud/opensearch/model/GetScriptFileNamesRequest.h new file mode 100644 index 000000000..1192e201e --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/GetScriptFileNamesRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_GETSCRIPTFILENAMESREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_GETSCRIPTFILENAMESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT GetScriptFileNamesRequest : public RoaServiceRequest + { + + public: + GetScriptFileNamesRequest(); + ~GetScriptFileNamesRequest(); + + std::string getAppVersionId()const; + void setAppVersionId(const std::string& appVersionId); + std::string getScriptName()const; + void setScriptName(const std::string& scriptName); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + std::string appVersionId_; + std::string scriptName_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_GETSCRIPTFILENAMESREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/GetScriptFileNamesResult.h b/opensearch/include/alibabacloud/opensearch/model/GetScriptFileNamesResult.h new file mode 100644 index 000000000..29c0974bd --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/GetScriptFileNamesResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_GETSCRIPTFILENAMESRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_GETSCRIPTFILENAMESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT GetScriptFileNamesResult : public ServiceResult + { + public: + struct FileInfos + { + std::string modifyTime; + std::string fileName; + std::string createTime; + }; + + + GetScriptFileNamesResult(); + explicit GetScriptFileNamesResult(const std::string &payload); + ~GetScriptFileNamesResult(); + std::vector getresult()const; + std::string getRequestId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_GETSCRIPTFILENAMESRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/GetSortScriptFileRequest.h b/opensearch/include/alibabacloud/opensearch/model/GetSortScriptFileRequest.h new file mode 100644 index 000000000..69e3cb5ad --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/GetSortScriptFileRequest.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_OPENSEARCH_MODEL_GETSORTSCRIPTFILEREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_GETSORTSCRIPTFILEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT GetSortScriptFileRequest : public RoaServiceRequest + { + + public: + GetSortScriptFileRequest(); + ~GetSortScriptFileRequest(); + + std::string getAppVersionId()const; + void setAppVersionId(const std::string& appVersionId); + std::string getFileName()const; + void setFileName(const std::string& fileName); + std::string getScriptName()const; + void setScriptName(const std::string& scriptName); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + std::string appVersionId_; + std::string fileName_; + std::string scriptName_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_GETSORTSCRIPTFILEREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/GetSortScriptFileResult.h b/opensearch/include/alibabacloud/opensearch/model/GetSortScriptFileResult.h new file mode 100644 index 000000000..e072c7a7a --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/GetSortScriptFileResult.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_GETSORTSCRIPTFILERESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_GETSORTSCRIPTFILERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT GetSortScriptFileResult : public ServiceResult + { + public: + struct Result + { + std::string modifyTime; + long version; + std::string content; + std::string createTime; + }; + + + GetSortScriptFileResult(); + explicit GetSortScriptFileResult(const std::string &payload); + ~GetSortScriptFileResult(); + std::string getRequestId()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_GETSORTSCRIPTFILERESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/GetSortScriptRequest.h b/opensearch/include/alibabacloud/opensearch/model/GetSortScriptRequest.h new file mode 100644 index 000000000..e03711e19 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/GetSortScriptRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_GETSORTSCRIPTREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_GETSORTSCRIPTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT GetSortScriptRequest : public RoaServiceRequest + { + + public: + GetSortScriptRequest(); + ~GetSortScriptRequest(); + + std::string getAppVersionId()const; + void setAppVersionId(const std::string& appVersionId); + std::string getScriptName()const; + void setScriptName(const std::string& scriptName); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + std::string appVersionId_; + std::string scriptName_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_GETSORTSCRIPTREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/GetSortScriptResult.h b/opensearch/include/alibabacloud/opensearch/model/GetSortScriptResult.h new file mode 100644 index 000000000..242db28b2 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/GetSortScriptResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_GETSORTSCRIPTRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_GETSORTSCRIPTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT GetSortScriptResult : public ServiceResult + { + public: + struct Result + { + std::string status; + std::string modifyTime; + std::string type; + std::string scope; + std::string createTime; + }; + + + GetSortScriptResult(); + explicit GetSortScriptResult(const std::string &payload); + ~GetSortScriptResult(); + std::string getRequestId()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_GETSORTSCRIPTRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/GetValidationErrorRequest.h b/opensearch/include/alibabacloud/opensearch/model/GetValidationErrorRequest.h new file mode 100644 index 000000000..79ed43c79 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/GetValidationErrorRequest.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_OPENSEARCH_MODEL_GETVALIDATIONERRORREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_GETVALIDATIONERRORREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT GetValidationErrorRequest : public RoaServiceRequest + { + + public: + GetValidationErrorRequest(); + ~GetValidationErrorRequest(); + + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + std::string getErrorCode()const; + void setErrorCode(const std::string& errorCode); + + private: + std::string appGroupIdentity_; + std::string errorCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_GETVALIDATIONERRORREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/GetValidationErrorResult.h b/opensearch/include/alibabacloud/opensearch/model/GetValidationErrorResult.h new file mode 100644 index 000000000..7918e6f6f --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/GetValidationErrorResult.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_OPENSEARCH_MODEL_GETVALIDATIONERRORRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_GETVALIDATIONERRORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT GetValidationErrorResult : public ServiceResult + { + public: + + + GetValidationErrorResult(); + explicit GetValidationErrorResult(const std::string &payload); + ~GetValidationErrorResult(); + std::string getRequestId()const; + std::vector getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::vector result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_GETVALIDATIONERRORRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/GetValidationReportRequest.h b/opensearch/include/alibabacloud/opensearch/model/GetValidationReportRequest.h new file mode 100644 index 000000000..721397afa --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/GetValidationReportRequest.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_OPENSEARCH_MODEL_GETVALIDATIONREPORTREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_GETVALIDATIONREPORTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT GetValidationReportRequest : public RoaServiceRequest + { + + public: + GetValidationReportRequest(); + ~GetValidationReportRequest(); + + std::string getType()const; + void setType(const std::string& type); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + std::string type_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_GETVALIDATIONREPORTREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/GetValidationReportResult.h b/opensearch/include/alibabacloud/opensearch/model/GetValidationReportResult.h new file mode 100644 index 000000000..ff4e5c311 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/GetValidationReportResult.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_OPENSEARCH_MODEL_GETVALIDATIONREPORTRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_GETVALIDATIONREPORTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT GetValidationReportResult : public ServiceResult + { + public: + + + GetValidationReportResult(); + explicit GetValidationReportResult(const std::string &payload); + ~GetValidationReportResult(); + std::string getRequestId()const; + std::vector getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::vector result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_GETVALIDATIONREPORTRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListABTestExperimentsRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListABTestExperimentsRequest.h new file mode 100644 index 000000000..dca9ab694 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListABTestExperimentsRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTABTESTEXPERIMENTSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTABTESTEXPERIMENTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListABTestExperimentsRequest : public RoaServiceRequest + { + + public: + ListABTestExperimentsRequest(); + ~ListABTestExperimentsRequest(); + + int getGroupId()const; + void setGroupId(int groupId); + int getSceneId()const; + void setSceneId(int sceneId); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + int groupId_; + int sceneId_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTABTESTEXPERIMENTSREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListABTestExperimentsResult.h b/opensearch/include/alibabacloud/opensearch/model/ListABTestExperimentsResult.h new file mode 100644 index 000000000..3fc5e82f4 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListABTestExperimentsResult.h @@ -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_OPENSEARCH_MODEL_LISTABTESTEXPERIMENTSRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTABTESTEXPERIMENTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListABTestExperimentsResult : public ServiceResult + { + public: + struct ResultItem + { + int updated; + int traffic; + std::string params; + std::string id; + bool online; + std::string name; + int created; + }; + + + ListABTestExperimentsResult(); + explicit ListABTestExperimentsResult(const std::string &payload); + ~ListABTestExperimentsResult(); + std::vector getresult()const; + std::string getRequestId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTABTESTEXPERIMENTSRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListABTestFixedFlowDividersRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListABTestFixedFlowDividersRequest.h new file mode 100644 index 000000000..4633b08f4 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListABTestFixedFlowDividersRequest.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_OPENSEARCH_MODEL_LISTABTESTFIXEDFLOWDIVIDERSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTABTESTFIXEDFLOWDIVIDERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListABTestFixedFlowDividersRequest : public RoaServiceRequest + { + + public: + ListABTestFixedFlowDividersRequest(); + ~ListABTestFixedFlowDividersRequest(); + + int getGroupId()const; + void setGroupId(int groupId); + int getSceneId()const; + void setSceneId(int sceneId); + int getExperimentId()const; + void setExperimentId(int experimentId); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + int groupId_; + int sceneId_; + int experimentId_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTABTESTFIXEDFLOWDIVIDERSREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListABTestFixedFlowDividersResult.h b/opensearch/include/alibabacloud/opensearch/model/ListABTestFixedFlowDividersResult.h new file mode 100644 index 000000000..11e532636 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListABTestFixedFlowDividersResult.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_OPENSEARCH_MODEL_LISTABTESTFIXEDFLOWDIVIDERSRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTABTESTFIXEDFLOWDIVIDERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListABTestFixedFlowDividersResult : public ServiceResult + { + public: + + + ListABTestFixedFlowDividersResult(); + explicit ListABTestFixedFlowDividersResult(const std::string &payload); + ~ListABTestFixedFlowDividersResult(); + std::string getRequestId()const; + std::vector getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::vector result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTABTESTFIXEDFLOWDIVIDERSRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListABTestGroupsRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListABTestGroupsRequest.h new file mode 100644 index 000000000..f8ab71c54 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListABTestGroupsRequest.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_OPENSEARCH_MODEL_LISTABTESTGROUPSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTABTESTGROUPSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListABTestGroupsRequest : public RoaServiceRequest + { + + public: + ListABTestGroupsRequest(); + ~ListABTestGroupsRequest(); + + int getSceneId()const; + void setSceneId(int sceneId); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + int sceneId_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTABTESTGROUPSREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListABTestGroupsResult.h b/opensearch/include/alibabacloud/opensearch/model/ListABTestGroupsResult.h new file mode 100644 index 000000000..f45893cb1 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListABTestGroupsResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTABTESTGROUPSRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTABTESTGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListABTestGroupsResult : public ServiceResult + { + public: + struct ResultItem + { + int status; + int updated; + std::string id; + std::string name; + int created; + }; + + + ListABTestGroupsResult(); + explicit ListABTestGroupsResult(const std::string &payload); + ~ListABTestGroupsResult(); + std::vector getresult()const; + std::string getRequestId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTABTESTGROUPSRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListABTestMetricsRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListABTestMetricsRequest.h new file mode 100644 index 000000000..2bb2cbeb6 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListABTestMetricsRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTABTESTMETRICSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTABTESTMETRICSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListABTestMetricsRequest : public RoaServiceRequest + { + + public: + ListABTestMetricsRequest(); + ~ListABTestMetricsRequest(); + + int getGroupId()const; + void setGroupId(int groupId); + int getSceneId()const; + void setSceneId(int sceneId); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + int groupId_; + int sceneId_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTABTESTMETRICSREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListABTestMetricsResult.h b/opensearch/include/alibabacloud/opensearch/model/ListABTestMetricsResult.h new file mode 100644 index 000000000..69690a80f --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListABTestMetricsResult.h @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_OPENSEARCH_MODEL_LISTABTESTMETRICSRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTABTESTMETRICSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListABTestMetricsResult : public ServiceResult + { + public: + struct ResultItem + { + float ctr; + int uv; + std::string experimentName; + int pv; + float zeroHitRate; + int ipvUv; + std::string date; + int ipv; + }; + + + ListABTestMetricsResult(); + explicit ListABTestMetricsResult(const std::string &payload); + ~ListABTestMetricsResult(); + std::vector getresult()const; + std::string getRequestId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTABTESTMETRICSRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListABTestScenesRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListABTestScenesRequest.h new file mode 100644 index 000000000..7d9f18f77 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListABTestScenesRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_OPENSEARCH_MODEL_LISTABTESTSCENESREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTABTESTSCENESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListABTestScenesRequest : public RoaServiceRequest + { + + public: + ListABTestScenesRequest(); + ~ListABTestScenesRequest(); + + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTABTESTSCENESREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListABTestScenesResult.h b/opensearch/include/alibabacloud/opensearch/model/ListABTestScenesResult.h new file mode 100644 index 000000000..f76b03a7f --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListABTestScenesResult.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTABTESTSCENESRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTABTESTSCENESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListABTestScenesResult : public ServiceResult + { + public: + struct ResultItem + { + int status; + int updated; + std::vector values; + std::string id; + std::string name; + int created; + }; + + + ListABTestScenesResult(); + explicit ListABTestScenesResult(const std::string &payload); + ~ListABTestScenesResult(); + std::vector getresult()const; + std::string getRequestId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTABTESTSCENESRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListAppGroupErrorsRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListAppGroupErrorsRequest.h new file mode 100644 index 000000000..eae570732 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListAppGroupErrorsRequest.h @@ -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_OPENSEARCH_MODEL_LISTAPPGROUPERRORSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTAPPGROUPERRORSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListAppGroupErrorsRequest : public RoaServiceRequest + { + + public: + ListAppGroupErrorsRequest(); + ~ListAppGroupErrorsRequest(); + + std::string getAppId()const; + void setAppId(const std::string& appId); + int getPageSize()const; + void setPageSize(int pageSize); + int getStartTime()const; + void setStartTime(int startTime); + int getStopTime()const; + void setStopTime(int stopTime); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + std::string appId_; + int pageSize_; + int startTime_; + int stopTime_; + std::string appGroupIdentity_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTAPPGROUPERRORSREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListAppGroupErrorsResult.h b/opensearch/include/alibabacloud/opensearch/model/ListAppGroupErrorsResult.h new file mode 100644 index 000000000..aed12271f --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListAppGroupErrorsResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_OPENSEARCH_MODEL_LISTAPPGROUPERRORSRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTAPPGROUPERRORSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListAppGroupErrorsResult : public ServiceResult + { + public: + + + ListAppGroupErrorsResult(); + explicit ListAppGroupErrorsResult(const std::string &payload); + ~ListAppGroupErrorsResult(); + long getTotalCount()const; + std::string getRequestId()const; + std::vector getResult()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + std::string requestId_; + std::vector result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTAPPGROUPERRORSRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListAppGroupMetricsRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListAppGroupMetricsRequest.h new file mode 100644 index 000000000..98d4e5307 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListAppGroupMetricsRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTAPPGROUPMETRICSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTAPPGROUPMETRICSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListAppGroupMetricsRequest : public RoaServiceRequest + { + + public: + ListAppGroupMetricsRequest(); + ~ListAppGroupMetricsRequest(); + + std::string getMetricType()const; + void setMetricType(const std::string& metricType); + std::string getIndexes()const; + void setIndexes(const std::string& indexes); + int getEndTime()const; + void setEndTime(int endTime); + int getStartTime()const; + void setStartTime(int startTime); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + std::string metricType_; + std::string indexes_; + int endTime_; + int startTime_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTAPPGROUPMETRICSREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListAppGroupMetricsResult.h b/opensearch/include/alibabacloud/opensearch/model/ListAppGroupMetricsResult.h new file mode 100644 index 000000000..4f8d9cda3 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListAppGroupMetricsResult.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_OPENSEARCH_MODEL_LISTAPPGROUPMETRICSRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTAPPGROUPMETRICSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListAppGroupMetricsResult : public ServiceResult + { + public: + + + ListAppGroupMetricsResult(); + explicit ListAppGroupMetricsResult(const std::string &payload); + ~ListAppGroupMetricsResult(); + std::string getRequestId()const; + std::vector getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::vector result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTAPPGROUPMETRICSRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListAppGroupsRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListAppGroupsRequest.h new file mode 100644 index 000000000..e106fc89b --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListAppGroupsRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTAPPGROUPSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTAPPGROUPSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListAppGroupsRequest : public RoaServiceRequest + { + + public: + ListAppGroupsRequest(); + ~ListAppGroupsRequest(); + + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getName()const; + void setName(const std::string& name); + int getSortBy()const; + void setSortBy(int sortBy); + std::string getType()const; + void setType(const std::string& type); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + std::string resourceGroupId_; + std::string instanceId_; + int pageSize_; + std::string name_; + int sortBy_; + std::string type_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTAPPGROUPSREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListAppGroupsResult.h b/opensearch/include/alibabacloud/opensearch/model/ListAppGroupsResult.h new file mode 100644 index 000000000..a2fb99779 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListAppGroupsResult.h @@ -0,0 +1,88 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_OPENSEARCH_MODEL_LISTAPPGROUPSRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTAPPGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListAppGroupsResult : public ServiceResult + { + public: + struct ResultItem + { + struct Quota + { + int docSize; + int computeResource; + std::string spec; + }; + int secondRankAlgoDeploymentId; + std::string status; + int firstRankAlgoDeploymentId; + int produced; + std::string description; + int updated; + std::string instanceId; + std::string processingOrderId; + std::string expireOn; + std::string currentVersion; + int switchedTime; + std::string projectId; + std::string lockMode; + std::string name; + int chargingWay; + int created; + std::string type; + Quota quota; + std::string chargeType; + std::string commodityCode; + int hasPendingQuotaReviewTask; + std::string id; + int pendingSecondRankAlgoDeploymentId; + int lockedByExpiration; + }; + + + ListAppGroupsResult(); + explicit ListAppGroupsResult(const std::string &payload); + ~ListAppGroupsResult(); + std::vector getresult()const; + int getTotalCount()const; + std::string getRequestId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + int totalCount_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTAPPGROUPSRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListAppsRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListAppsRequest.h new file mode 100644 index 000000000..67f0106da --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListAppsRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTAPPSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTAPPSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListAppsRequest : public RoaServiceRequest + { + + public: + ListAppsRequest(); + ~ListAppsRequest(); + + int getSize()const; + void setSize(int size); + int getPage()const; + void setPage(int page); + bool getGroup()const; + void setGroup(bool group); + + private: + int size_; + int page_; + bool group_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTAPPSREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListAppsResult.h b/opensearch/include/alibabacloud/opensearch/model/ListAppsResult.h new file mode 100644 index 000000000..7e7a576dc --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListAppsResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTAPPSRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTAPPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListAppsResult : public ServiceResult + { + public: + + + ListAppsResult(); + explicit ListAppsResult(const std::string &payload); + ~ListAppsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTAPPSRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListDataCollectionsRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListDataCollectionsRequest.h new file mode 100644 index 000000000..51c4b054c --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListDataCollectionsRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTDATACOLLECTIONSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTDATACOLLECTIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListDataCollectionsRequest : public RoaServiceRequest + { + + public: + ListDataCollectionsRequest(); + ~ListDataCollectionsRequest(); + + int getPageSize()const; + void setPageSize(int pageSize); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + int pageSize_; + std::string appGroupIdentity_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTDATACOLLECTIONSREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListDataCollectionsResult.h b/opensearch/include/alibabacloud/opensearch/model/ListDataCollectionsResult.h new file mode 100644 index 000000000..3ee0dc57a --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListDataCollectionsResult.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_OPENSEARCH_MODEL_LISTDATACOLLECTIONSRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTDATACOLLECTIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListDataCollectionsResult : public ServiceResult + { + public: + struct ResultItem + { + int status; + std::string type; + int updated; + std::string sundialId; + std::string dataCollectionType; + std::string id; + std::string industryName; + std::string name; + int created; + }; + + + ListDataCollectionsResult(); + explicit ListDataCollectionsResult(const std::string &payload); + ~ListDataCollectionsResult(); + std::vector getresult()const; + int getTotalCount()const; + std::string getRequestId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + int totalCount_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTDATACOLLECTIONSRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListDeployedAlgorithmModelsRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListDeployedAlgorithmModelsRequest.h new file mode 100644 index 000000000..0fc0e4477 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListDeployedAlgorithmModelsRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTDEPLOYEDALGORITHMMODELSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTDEPLOYEDALGORITHMMODELSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListDeployedAlgorithmModelsRequest : public RoaServiceRequest + { + + public: + ListDeployedAlgorithmModelsRequest(); + ~ListDeployedAlgorithmModelsRequest(); + + std::string getAlgorithmType()const; + void setAlgorithmType(const std::string& algorithmType); + bool getInServiceOnly()const; + void setInServiceOnly(bool inServiceOnly); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + std::string algorithmType_; + bool inServiceOnly_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTDEPLOYEDALGORITHMMODELSREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListDeployedAlgorithmModelsResult.h b/opensearch/include/alibabacloud/opensearch/model/ListDeployedAlgorithmModelsResult.h new file mode 100644 index 000000000..a622eae63 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListDeployedAlgorithmModelsResult.h @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_OPENSEARCH_MODEL_LISTDEPLOYEDALGORITHMMODELSRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTDEPLOYEDALGORITHMMODELSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListDeployedAlgorithmModelsResult : public ServiceResult + { + public: + struct ResultItem + { + struct ModelsItem + { + std::string status; + int progress; + std::string modelName; + std::string algorithmType; + int projectId; + int modelId; + }; + std::string status; + std::vector models; + std::string desc; + std::string gmtCreate; + std::string gmtModified; + std::string id; + std::string appGroupName; + std::string scene; + std::vector apps; + }; + + + ListDeployedAlgorithmModelsResult(); + explicit ListDeployedAlgorithmModelsResult(const std::string &payload); + ~ListDeployedAlgorithmModelsResult(); + std::vector getresult()const; + std::string getRequestId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTDEPLOYEDALGORITHMMODELSRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListFirstRanksRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListFirstRanksRequest.h new file mode 100644 index 000000000..d0a55c056 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListFirstRanksRequest.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_OPENSEARCH_MODEL_LISTFIRSTRANKSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTFIRSTRANKSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListFirstRanksRequest : public RoaServiceRequest + { + + public: + ListFirstRanksRequest(); + ~ListFirstRanksRequest(); + + int getAppId()const; + void setAppId(int appId); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + int appId_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTFIRSTRANKSREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListFirstRanksResult.h b/opensearch/include/alibabacloud/opensearch/model/ListFirstRanksResult.h new file mode 100644 index 000000000..8840d8af8 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListFirstRanksResult.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTFIRSTRANKSRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTFIRSTRANKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListFirstRanksResult : public ServiceResult + { + public: + struct FirstRankItem + { + struct MetaItem + { + std::string attribute; + std::string arg; + int weight; + }; + bool active; + std::string description; + int updated; + std::vector meta; + std::string name; + int created; + }; + + + ListFirstRanksResult(); + explicit ListFirstRanksResult(const std::string &payload); + ~ListFirstRanksResult(); + std::vector getresult()const; + std::string getRequestId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTFIRSTRANKSRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionariesRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionariesRequest.h new file mode 100644 index 000000000..032f5d814 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionariesRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTINTERVENTIONDICTIONARIESREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTINTERVENTIONDICTIONARIESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListInterventionDictionariesRequest : public RoaServiceRequest + { + + public: + ListInterventionDictionariesRequest(); + ~ListInterventionDictionariesRequest(); + + std::string getTypes()const; + void setTypes(const std::string& types); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + std::string types_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTINTERVENTIONDICTIONARIESREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionariesResult.h b/opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionariesResult.h new file mode 100644 index 000000000..cfb32342a --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionariesResult.h @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_OPENSEARCH_MODEL_LISTINTERVENTIONDICTIONARIESRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTINTERVENTIONDICTIONARIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListInterventionDictionariesResult : public ServiceResult + { + public: + struct ResultItem + { + std::string type; + int updated; + int id; + std::string analyzer; + std::string name; + int created; + }; + + + ListInterventionDictionariesResult(); + explicit ListInterventionDictionariesResult(const std::string &payload); + ~ListInterventionDictionariesResult(); + std::vector getresult()const; + int getTotalCount()const; + std::string getRequestId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + int totalCount_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTINTERVENTIONDICTIONARIESRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionaryEntriesRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionaryEntriesRequest.h new file mode 100644 index 000000000..5f582a11a --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionaryEntriesRequest.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_OPENSEARCH_MODEL_LISTINTERVENTIONDICTIONARYENTRIESREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTINTERVENTIONDICTIONARYENTRIESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListInterventionDictionaryEntriesRequest : public RoaServiceRequest + { + + public: + ListInterventionDictionaryEntriesRequest(); + ~ListInterventionDictionaryEntriesRequest(); + + std::string getName()const; + void setName(const std::string& name); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getWord()const; + void setWord(const std::string& word); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + std::string name_; + int pageSize_; + std::string word_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTINTERVENTIONDICTIONARYENTRIESREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionaryEntriesResult.h b/opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionaryEntriesResult.h new file mode 100644 index 000000000..f0778d01e --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionaryEntriesResult.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTINTERVENTIONDICTIONARYENTRIESRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTINTERVENTIONDICTIONARYENTRIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListInterventionDictionaryEntriesResult : public ServiceResult + { + public: + struct WordItem + { + struct Token + { + int order; + std::string tagLabel; + std::string token; + std::string tag; + }; + std::string status; + std::string relevance; + std::string word; + long updated; + std::vector tokens; + std::string cmd; + long created; + }; + + + ListInterventionDictionaryEntriesResult(); + explicit ListInterventionDictionaryEntriesResult(const std::string &payload); + ~ListInterventionDictionaryEntriesResult(); + std::vector getresult()const; + int getTotalCount()const; + std::string getRequestId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + int totalCount_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTINTERVENTIONDICTIONARYENTRIESRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionaryNerResultsRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionaryNerResultsRequest.h new file mode 100644 index 000000000..c3e3518e9 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionaryNerResultsRequest.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_OPENSEARCH_MODEL_LISTINTERVENTIONDICTIONARYNERRESULTSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTINTERVENTIONDICTIONARYNERRESULTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListInterventionDictionaryNerResultsRequest : public RoaServiceRequest + { + + public: + ListInterventionDictionaryNerResultsRequest(); + ~ListInterventionDictionaryNerResultsRequest(); + + std::string getQuery()const; + void setQuery(const std::string& query); + std::string getName()const; + void setName(const std::string& name); + + private: + std::string query_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTINTERVENTIONDICTIONARYNERRESULTSREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionaryNerResultsResult.h b/opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionaryNerResultsResult.h new file mode 100644 index 000000000..f3558af16 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionaryNerResultsResult.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTINTERVENTIONDICTIONARYNERRESULTSRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTINTERVENTIONDICTIONARYNERRESULTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListInterventionDictionaryNerResultsResult : public ServiceResult + { + public: + struct NerItem + { + int order; + std::string tagLabel; + std::string token; + std::string tag; + }; + + + ListInterventionDictionaryNerResultsResult(); + explicit ListInterventionDictionaryNerResultsResult(const std::string &payload); + ~ListInterventionDictionaryNerResultsResult(); + std::vector getresult()const; + std::string getRequestId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTINTERVENTIONDICTIONARYNERRESULTSRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionaryRelatedEntitiesRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionaryRelatedEntitiesRequest.h new file mode 100644 index 000000000..85ca4b700 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionaryRelatedEntitiesRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_OPENSEARCH_MODEL_LISTINTERVENTIONDICTIONARYRELATEDENTITIESREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTINTERVENTIONDICTIONARYRELATEDENTITIESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListInterventionDictionaryRelatedEntitiesRequest : public RoaServiceRequest + { + + public: + ListInterventionDictionaryRelatedEntitiesRequest(); + ~ListInterventionDictionaryRelatedEntitiesRequest(); + + std::string getName()const; + void setName(const std::string& name); + + private: + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTINTERVENTIONDICTIONARYRELATEDENTITIESREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionaryRelatedEntitiesResult.h b/opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionaryRelatedEntitiesResult.h new file mode 100644 index 000000000..089a5ea42 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionaryRelatedEntitiesResult.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_OPENSEARCH_MODEL_LISTINTERVENTIONDICTIONARYRELATEDENTITIESRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTINTERVENTIONDICTIONARYRELATEDENTITIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListInterventionDictionaryRelatedEntitiesResult : public ServiceResult + { + public: + + + ListInterventionDictionaryRelatedEntitiesResult(); + explicit ListInterventionDictionaryRelatedEntitiesResult(const std::string &payload); + ~ListInterventionDictionaryRelatedEntitiesResult(); + std::string getRequestId()const; + std::vector getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::vector result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTINTERVENTIONDICTIONARYRELATEDENTITIESRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListModelsRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListModelsRequest.h new file mode 100644 index 000000000..f01f4a081 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListModelsRequest.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_OPENSEARCH_MODEL_LISTMODELSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTMODELSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListModelsRequest : public RoaServiceRequest + { + + public: + ListModelsRequest(); + ~ListModelsRequest(); + + int getPageSize()const; + void setPageSize(int pageSize); + std::string getType()const; + void setType(const std::string& type); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + int pageSize_; + std::string type_; + std::string appGroupIdentity_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTMODELSREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListModelsResult.h b/opensearch/include/alibabacloud/opensearch/model/ListModelsResult.h new file mode 100644 index 000000000..5de0de287 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListModelsResult.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_OPENSEARCH_MODEL_LISTMODELSRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTMODELSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListModelsResult : public ServiceResult + { + public: + + + ListModelsResult(); + explicit ListModelsResult(const std::string &payload); + ~ListModelsResult(); + std::string getRequestId()const; + std::vector getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::vector result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTMODELSRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListQueryProcessorNersRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListQueryProcessorNersRequest.h new file mode 100644 index 000000000..437c75b98 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListQueryProcessorNersRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_OPENSEARCH_MODEL_LISTQUERYPROCESSORNERSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTQUERYPROCESSORNERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListQueryProcessorNersRequest : public RoaServiceRequest + { + + public: + ListQueryProcessorNersRequest(); + ~ListQueryProcessorNersRequest(); + + std::string getDomain()const; + void setDomain(const std::string& domain); + + private: + std::string domain_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTQUERYPROCESSORNERSREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListQueryProcessorNersResult.h b/opensearch/include/alibabacloud/opensearch/model/ListQueryProcessorNersResult.h new file mode 100644 index 000000000..0e4c9504e --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListQueryProcessorNersResult.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTQUERYPROCESSORNERSRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTQUERYPROCESSORNERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListQueryProcessorNersResult : public ServiceResult + { + public: + struct ResultItem + { + int order; + std::string priority; + std::string label; + std::string tag; + }; + + + ListQueryProcessorNersResult(); + explicit ListQueryProcessorNersResult(const std::string &payload); + ~ListQueryProcessorNersResult(); + std::vector getresult()const; + std::string getRequestId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTQUERYPROCESSORNERSRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListQueryProcessorsRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListQueryProcessorsRequest.h new file mode 100644 index 000000000..f5548aa0b --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListQueryProcessorsRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTQUERYPROCESSORSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTQUERYPROCESSORSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListQueryProcessorsRequest : public RoaServiceRequest + { + + public: + ListQueryProcessorsRequest(); + ~ListQueryProcessorsRequest(); + + int getAppId()const; + void setAppId(int appId); + int getIsActive()const; + void setIsActive(int isActive); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + int appId_; + int isActive_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTQUERYPROCESSORSREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListQueryProcessorsResult.h b/opensearch/include/alibabacloud/opensearch/model/ListQueryProcessorsResult.h new file mode 100644 index 000000000..8479e52bd --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListQueryProcessorsResult.h @@ -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_OPENSEARCH_MODEL_LISTQUERYPROCESSORSRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTQUERYPROCESSORSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListQueryProcessorsResult : public ServiceResult + { + public: + struct ResultItem + { + bool active; + int updated; + std::string domain; + std::vector indexes; + std::vector processors; + std::string name; + int created; + }; + + + ListQueryProcessorsResult(); + explicit ListQueryProcessorsResult(const std::string &payload); + ~ListQueryProcessorsResult(); + std::vector getresult()const; + std::string getRequestId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTQUERYPROCESSORSRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListScheduledTasksRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListScheduledTasksRequest.h new file mode 100644 index 000000000..772282070 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListScheduledTasksRequest.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_OPENSEARCH_MODEL_LISTSCHEDULEDTASKSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTSCHEDULEDTASKSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListScheduledTasksRequest : public RoaServiceRequest + { + + public: + ListScheduledTasksRequest(); + ~ListScheduledTasksRequest(); + + int getPageSize()const; + void setPageSize(int pageSize); + std::string getType()const; + void setType(const std::string& type); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + int pageSize_; + std::string type_; + std::string appGroupIdentity_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTSCHEDULEDTASKSREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListScheduledTasksResult.h b/opensearch/include/alibabacloud/opensearch/model/ListScheduledTasksResult.h new file mode 100644 index 000000000..34ace4e6f --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListScheduledTasksResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_OPENSEARCH_MODEL_LISTSCHEDULEDTASKSRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTSCHEDULEDTASKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListScheduledTasksResult : public ServiceResult + { + public: + + + ListScheduledTasksResult(); + explicit ListScheduledTasksResult(const std::string &payload); + ~ListScheduledTasksResult(); + long getTotalCount()const; + std::string getRequestId()const; + std::vector getResult()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + std::string requestId_; + std::vector result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTSCHEDULEDTASKSRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListSecondRanksRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListSecondRanksRequest.h new file mode 100644 index 000000000..3c01a8d7f --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListSecondRanksRequest.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_OPENSEARCH_MODEL_LISTSECONDRANKSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTSECONDRANKSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListSecondRanksRequest : public RoaServiceRequest + { + + public: + ListSecondRanksRequest(); + ~ListSecondRanksRequest(); + + int getAppId()const; + void setAppId(int appId); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + int appId_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTSECONDRANKSREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListSecondRanksResult.h b/opensearch/include/alibabacloud/opensearch/model/ListSecondRanksResult.h new file mode 100644 index 000000000..d189e5728 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListSecondRanksResult.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_OPENSEARCH_MODEL_LISTSECONDRANKSRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTSECONDRANKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListSecondRanksResult : public ServiceResult + { + public: + struct ResultItem + { + std::string isDefault; + std::string meta; + bool active; + std::string description; + int updated; + std::string isSys; + std::string id; + std::string name; + int created; + }; + + + ListSecondRanksResult(); + explicit ListSecondRanksResult(const std::string &payload); + ~ListSecondRanksResult(); + std::vector getresult()const; + int getTotalCount()const; + std::string getRequestId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + int totalCount_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTSECONDRANKSRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListSlowQueryCategoriesRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListSlowQueryCategoriesRequest.h new file mode 100644 index 000000000..41cc9cca1 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListSlowQueryCategoriesRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_OPENSEARCH_MODEL_LISTSLOWQUERYCATEGORIESREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTSLOWQUERYCATEGORIESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListSlowQueryCategoriesRequest : public RoaServiceRequest + { + + public: + ListSlowQueryCategoriesRequest(); + ~ListSlowQueryCategoriesRequest(); + + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTSLOWQUERYCATEGORIESREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListSlowQueryCategoriesResult.h b/opensearch/include/alibabacloud/opensearch/model/ListSlowQueryCategoriesResult.h new file mode 100644 index 000000000..b96390f89 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListSlowQueryCategoriesResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTSLOWQUERYCATEGORIESRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTSLOWQUERYCATEGORIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListSlowQueryCategoriesResult : public ServiceResult + { + public: + struct Result + { + std::string analyzeStatus; + int start; + int end; + }; + + + ListSlowQueryCategoriesResult(); + explicit ListSlowQueryCategoriesResult(const std::string &payload); + ~ListSlowQueryCategoriesResult(); + std::string getRequestId()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTSLOWQUERYCATEGORIESRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListSlowQueryQueriesRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListSlowQueryQueriesRequest.h new file mode 100644 index 000000000..8dfbce504 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListSlowQueryQueriesRequest.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_OPENSEARCH_MODEL_LISTSLOWQUERYQUERIESREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTSLOWQUERYQUERIESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListSlowQueryQueriesRequest : public RoaServiceRequest + { + + public: + ListSlowQueryQueriesRequest(); + ~ListSlowQueryQueriesRequest(); + + std::string getCategoryIndex()const; + void setCategoryIndex(const std::string& categoryIndex); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + std::string categoryIndex_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTSLOWQUERYQUERIESREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListSlowQueryQueriesResult.h b/opensearch/include/alibabacloud/opensearch/model/ListSlowQueryQueriesResult.h new file mode 100644 index 000000000..b921598d8 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListSlowQueryQueriesResult.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTSLOWQUERYQUERIESRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTSLOWQUERYQUERIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListSlowQueryQueriesResult : public ServiceResult + { + public: + struct Result + { + int start; + std::string appQuery; + int end; + int index; + }; + + + ListSlowQueryQueriesResult(); + explicit ListSlowQueryQueriesResult(const std::string &payload); + ~ListSlowQueryQueriesResult(); + std::string getRequestId()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTSLOWQUERYQUERIESRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListSortExpressionsRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListSortExpressionsRequest.h new file mode 100644 index 000000000..4bff2b0ff --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListSortExpressionsRequest.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_OPENSEARCH_MODEL_LISTSORTEXPRESSIONSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTSORTEXPRESSIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListSortExpressionsRequest : public RoaServiceRequest + { + + public: + ListSortExpressionsRequest(); + ~ListSortExpressionsRequest(); + + int getAppId()const; + void setAppId(int appId); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + int appId_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTSORTEXPRESSIONSREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListSortExpressionsResult.h b/opensearch/include/alibabacloud/opensearch/model/ListSortExpressionsResult.h new file mode 100644 index 000000000..679f09416 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListSortExpressionsResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTSORTEXPRESSIONSRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTSORTEXPRESSIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListSortExpressionsResult : public ServiceResult + { + public: + struct FirstRankItem + { + bool active; + std::string description; + int updated; + std::string name; + int created; + }; + + + ListSortExpressionsResult(); + explicit ListSortExpressionsResult(const std::string &payload); + ~ListSortExpressionsResult(); + std::vector getresult()const; + std::string getRequestId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTSORTEXPRESSIONSRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListSortScriptsRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListSortScriptsRequest.h new file mode 100644 index 000000000..ecc39abfe --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListSortScriptsRequest.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_OPENSEARCH_MODEL_LISTSORTSCRIPTSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTSORTSCRIPTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListSortScriptsRequest : public RoaServiceRequest + { + + public: + ListSortScriptsRequest(); + ~ListSortScriptsRequest(); + + std::string getAppVersionId()const; + void setAppVersionId(const std::string& appVersionId); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + std::string appVersionId_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTSORTSCRIPTSREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListSortScriptsResult.h b/opensearch/include/alibabacloud/opensearch/model/ListSortScriptsResult.h new file mode 100644 index 000000000..9ba55f163 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListSortScriptsResult.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTSORTSCRIPTSRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTSORTSCRIPTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListSortScriptsResult : public ServiceResult + { + public: + struct ScriptInfo + { + std::string status; + std::string modifyTime; + std::string type; + std::string scope; + std::string scriptName; + std::string createTime; + }; + + + ListSortScriptsResult(); + explicit ListSortScriptsResult(const std::string &payload); + ~ListSortScriptsResult(); + std::vector getresult()const; + std::string getRequestId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTSORTSCRIPTSRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListStatisticLogsRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListStatisticLogsRequest.h new file mode 100644 index 000000000..927f076c6 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListStatisticLogsRequest.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTSTATISTICLOGSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTSTATISTICLOGSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListStatisticLogsRequest : public RoaServiceRequest + { + + public: + ListStatisticLogsRequest(); + ~ListStatisticLogsRequest(); + + std::string getColumns()const; + void setColumns(const std::string& columns); + std::string getQuery()const; + void setQuery(const std::string& query); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getModuleName()const; + void setModuleName(const std::string& moduleName); + bool getDistinct()const; + void setDistinct(bool distinct); + std::string getSortBy()const; + void setSortBy(const std::string& sortBy); + int getStartTime()const; + void setStartTime(int startTime); + int getStopTime()const; + void setStopTime(int stopTime); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + std::string columns_; + std::string query_; + int pageSize_; + std::string moduleName_; + bool distinct_; + std::string sortBy_; + int startTime_; + int stopTime_; + std::string appGroupIdentity_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTSTATISTICLOGSREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListStatisticLogsResult.h b/opensearch/include/alibabacloud/opensearch/model/ListStatisticLogsResult.h new file mode 100644 index 000000000..2acbc22af --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListStatisticLogsResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_OPENSEARCH_MODEL_LISTSTATISTICLOGSRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTSTATISTICLOGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListStatisticLogsResult : public ServiceResult + { + public: + + + ListStatisticLogsResult(); + explicit ListStatisticLogsResult(const std::string &payload); + ~ListStatisticLogsResult(); + long getTotalCount()const; + std::string getRequestId()const; + std::vector getResult()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + std::string requestId_; + std::vector result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTSTATISTICLOGSRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListStatisticReportRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListStatisticReportRequest.h new file mode 100644 index 000000000..7dfcdfac1 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListStatisticReportRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTSTATISTICREPORTREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTSTATISTICREPORTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListStatisticReportRequest : public RoaServiceRequest + { + + public: + ListStatisticReportRequest(); + ~ListStatisticReportRequest(); + + std::string getColumns()const; + void setColumns(const std::string& columns); + std::string getQuery()const; + void setQuery(const std::string& query); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getModuleName()const; + void setModuleName(const std::string& moduleName); + int getEndTime()const; + void setEndTime(int endTime); + int getStartTime()const; + void setStartTime(int startTime); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + std::string columns_; + std::string query_; + int pageSize_; + std::string moduleName_; + int endTime_; + int startTime_; + std::string appGroupIdentity_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTSTATISTICREPORTREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListStatisticReportResult.h b/opensearch/include/alibabacloud/opensearch/model/ListStatisticReportResult.h new file mode 100644 index 000000000..e59979081 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListStatisticReportResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_OPENSEARCH_MODEL_LISTSTATISTICREPORTRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTSTATISTICREPORTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListStatisticReportResult : public ServiceResult + { + public: + + + ListStatisticReportResult(); + explicit ListStatisticReportResult(const std::string &payload); + ~ListStatisticReportResult(); + long getTotalCount()const; + std::string getRequestId()const; + std::vector getResult()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + std::string requestId_; + std::vector result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTSTATISTICREPORTRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListUserAnalyzerEntriesRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListUserAnalyzerEntriesRequest.h new file mode 100644 index 000000000..29352b919 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListUserAnalyzerEntriesRequest.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_OPENSEARCH_MODEL_LISTUSERANALYZERENTRIESREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTUSERANALYZERENTRIESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListUserAnalyzerEntriesRequest : public RoaServiceRequest + { + + public: + ListUserAnalyzerEntriesRequest(); + ~ListUserAnalyzerEntriesRequest(); + + std::string getName()const; + void setName(const std::string& name); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getWord()const; + void setWord(const std::string& word); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + std::string name_; + int pageSize_; + std::string word_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTUSERANALYZERENTRIESREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListUserAnalyzerEntriesResult.h b/opensearch/include/alibabacloud/opensearch/model/ListUserAnalyzerEntriesResult.h new file mode 100644 index 000000000..19a20d49d --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListUserAnalyzerEntriesResult.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_OPENSEARCH_MODEL_LISTUSERANALYZERENTRIESRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTUSERANALYZERENTRIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListUserAnalyzerEntriesResult : public ServiceResult + { + public: + + + ListUserAnalyzerEntriesResult(); + explicit ListUserAnalyzerEntriesResult(const std::string &payload); + ~ListUserAnalyzerEntriesResult(); + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTUSERANALYZERENTRIESRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListUserAnalyzersRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListUserAnalyzersRequest.h new file mode 100644 index 000000000..ddf54db38 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListUserAnalyzersRequest.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_OPENSEARCH_MODEL_LISTUSERANALYZERSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTUSERANALYZERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListUserAnalyzersRequest : public RoaServiceRequest + { + + public: + ListUserAnalyzersRequest(); + ~ListUserAnalyzersRequest(); + + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTUSERANALYZERSREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListUserAnalyzersResult.h b/opensearch/include/alibabacloud/opensearch/model/ListUserAnalyzersResult.h new file mode 100644 index 000000000..44b2c78e9 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListUserAnalyzersResult.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTUSERANALYZERSRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTUSERANALYZERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListUserAnalyzersResult : public ServiceResult + { + public: + struct ResultItem + { + struct DictsItem + { + std::string type; + int updated; + int entriesCount; + bool available; + std::string id; + int entriesLimit; + int created; + }; + int updated; + bool available; + std::string id; + std::vector dicts; + std::string name; + std::string business; + int created; + }; + + + ListUserAnalyzersResult(); + explicit ListUserAnalyzersResult(const std::string &payload); + ~ListUserAnalyzersResult(); + std::vector getresult()const; + int getTotalCount()const; + std::string getRequestId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + int totalCount_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTUSERANALYZERSRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ModifyAppGroupQuotaRequest.h b/opensearch/include/alibabacloud/opensearch/model/ModifyAppGroupQuotaRequest.h new file mode 100644 index 000000000..c24eadaaa --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ModifyAppGroupQuotaRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_OPENSEARCH_MODEL_MODIFYAPPGROUPQUOTAREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_MODIFYAPPGROUPQUOTAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ModifyAppGroupQuotaRequest : public RoaServiceRequest + { + + public: + ModifyAppGroupQuotaRequest(); + ~ModifyAppGroupQuotaRequest(); + + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_MODIFYAPPGROUPQUOTAREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ModifyAppGroupQuotaResult.h b/opensearch/include/alibabacloud/opensearch/model/ModifyAppGroupQuotaResult.h new file mode 100644 index 000000000..d26d30d4c --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ModifyAppGroupQuotaResult.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_OPENSEARCH_MODEL_MODIFYAPPGROUPQUOTARESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_MODIFYAPPGROUPQUOTARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ModifyAppGroupQuotaResult : public ServiceResult + { + public: + struct Result + { + struct Quota + { + int docSize; + int computeResource; + std::string spec; + }; + int secondRankAlgoDeploymentId; + std::string status; + int firstRankAlgoDeploymentId; + int produced; + std::string description; + int updated; + std::string instanceId; + std::string processingOrderId; + std::string expireOn; + std::string currentVersion; + int switchedTime; + std::string projectId; + std::string lockMode; + std::string name; + int chargingWay; + int created; + std::string type; + Quota quota; + std::string chargeType; + std::string commodityCode; + int hasPendingQuotaReviewTask; + std::string id; + int pendingSecondRankAlgoDeploymentId; + int lockedByExpiration; + }; + + + ModifyAppGroupQuotaResult(); + explicit ModifyAppGroupQuotaResult(const std::string &payload); + ~ModifyAppGroupQuotaResult(); + std::string getRequestId()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_MODIFYAPPGROUPQUOTARESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ModifyAppGroupRequest.h b/opensearch/include/alibabacloud/opensearch/model/ModifyAppGroupRequest.h new file mode 100644 index 000000000..995833550 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ModifyAppGroupRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_OPENSEARCH_MODEL_MODIFYAPPGROUPREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_MODIFYAPPGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ModifyAppGroupRequest : public RoaServiceRequest + { + + public: + ModifyAppGroupRequest(); + ~ModifyAppGroupRequest(); + + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_MODIFYAPPGROUPREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ModifyAppGroupResult.h b/opensearch/include/alibabacloud/opensearch/model/ModifyAppGroupResult.h new file mode 100644 index 000000000..559186a9a --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ModifyAppGroupResult.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_OPENSEARCH_MODEL_MODIFYAPPGROUPRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_MODIFYAPPGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ModifyAppGroupResult : public ServiceResult + { + public: + struct Result + { + struct Quota + { + int docSize; + int computeResource; + std::string spec; + }; + int secondRankAlgoDeploymentId; + std::string status; + int firstRankAlgoDeploymentId; + int produced; + std::string description; + int updated; + std::string instanceId; + std::string processingOrderId; + std::string expireOn; + std::string currentVersion; + int switchedTime; + std::string projectId; + std::string lockMode; + std::string name; + int chargingWay; + int created; + std::string type; + Quota quota; + std::string chargeType; + std::string commodityCode; + int hasPendingQuotaReviewTask; + std::string id; + int pendingSecondRankAlgoDeploymentId; + int lockedByExpiration; + }; + + + ModifyAppGroupResult(); + explicit ModifyAppGroupResult(const std::string &payload); + ~ModifyAppGroupResult(); + std::string getRequestId()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_MODIFYAPPGROUPRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ModifyFirstRankRequest.h b/opensearch/include/alibabacloud/opensearch/model/ModifyFirstRankRequest.h new file mode 100644 index 000000000..340f3d818 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ModifyFirstRankRequest.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_OPENSEARCH_MODEL_MODIFYFIRSTRANKREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_MODIFYFIRSTRANKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ModifyFirstRankRequest : public RoaServiceRequest + { + + public: + ModifyFirstRankRequest(); + ~ModifyFirstRankRequest(); + + bool getDryRun()const; + void setDryRun(bool dryRun); + int getAppId()const; + void setAppId(int appId); + std::string getName()const; + void setName(const std::string& name); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + bool dryRun_; + int appId_; + std::string name_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_MODIFYFIRSTRANKREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ModifyFirstRankResult.h b/opensearch/include/alibabacloud/opensearch/model/ModifyFirstRankResult.h new file mode 100644 index 000000000..b79a819ec --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ModifyFirstRankResult.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_MODIFYFIRSTRANKRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_MODIFYFIRSTRANKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ModifyFirstRankResult : public ServiceResult + { + public: + struct Result + { + struct MetaItem + { + std::string attribute; + std::string arg; + float weight; + }; + bool active; + std::string description; + std::vector meta; + std::string name; + }; + + + ModifyFirstRankResult(); + explicit ModifyFirstRankResult(const std::string &payload); + ~ModifyFirstRankResult(); + std::string getRequestId()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_MODIFYFIRSTRANKRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ModifyModelRequest.h b/opensearch/include/alibabacloud/opensearch/model/ModifyModelRequest.h new file mode 100644 index 000000000..ef72b078e --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ModifyModelRequest.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_OPENSEARCH_MODEL_MODIFYMODELREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_MODIFYMODELREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ModifyModelRequest : public RoaServiceRequest + { + + public: + ModifyModelRequest(); + ~ModifyModelRequest(); + + std::string getModelName()const; + void setModelName(const std::string& modelName); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + std::string modelName_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_MODIFYMODELREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ModifyModelResult.h b/opensearch/include/alibabacloud/opensearch/model/ModifyModelResult.h new file mode 100644 index 000000000..4fd78a45e --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ModifyModelResult.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_OPENSEARCH_MODEL_MODIFYMODELRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_MODIFYMODELRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ModifyModelResult : public ServiceResult + { + public: + + + ModifyModelResult(); + explicit ModifyModelResult(const std::string &payload); + ~ModifyModelResult(); + std::string getRequestId()const; + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_MODIFYMODELRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ModifyQueryProcessorRequest.h b/opensearch/include/alibabacloud/opensearch/model/ModifyQueryProcessorRequest.h new file mode 100644 index 000000000..7c4a2983f --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ModifyQueryProcessorRequest.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_OPENSEARCH_MODEL_MODIFYQUERYPROCESSORREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_MODIFYQUERYPROCESSORREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ModifyQueryProcessorRequest : public RoaServiceRequest + { + + public: + ModifyQueryProcessorRequest(); + ~ModifyQueryProcessorRequest(); + + bool getDryRun()const; + void setDryRun(bool dryRun); + int getAppId()const; + void setAppId(int appId); + std::string getName()const; + void setName(const std::string& name); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + bool dryRun_; + int appId_; + std::string name_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_MODIFYQUERYPROCESSORREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ModifyQueryProcessorResult.h b/opensearch/include/alibabacloud/opensearch/model/ModifyQueryProcessorResult.h new file mode 100644 index 000000000..5eb4c1d92 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ModifyQueryProcessorResult.h @@ -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_OPENSEARCH_MODEL_MODIFYQUERYPROCESSORRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_MODIFYQUERYPROCESSORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ModifyQueryProcessorResult : public ServiceResult + { + public: + struct Result + { + bool active; + int updated; + std::string domain; + std::vector indexes; + std::vector processors; + std::string name; + int created; + }; + + + ModifyQueryProcessorResult(); + explicit ModifyQueryProcessorResult(const std::string &payload); + ~ModifyQueryProcessorResult(); + std::string getRequestId()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_MODIFYQUERYPROCESSORRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ModifyScheduledTaskRequest.h b/opensearch/include/alibabacloud/opensearch/model/ModifyScheduledTaskRequest.h new file mode 100644 index 000000000..d3951647f --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ModifyScheduledTaskRequest.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_OPENSEARCH_MODEL_MODIFYSCHEDULEDTASKREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_MODIFYSCHEDULEDTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ModifyScheduledTaskRequest : public RoaServiceRequest + { + + public: + ModifyScheduledTaskRequest(); + ~ModifyScheduledTaskRequest(); + + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + + private: + std::string appGroupIdentity_; + std::string taskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_MODIFYSCHEDULEDTASKREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ModifyScheduledTaskResult.h b/opensearch/include/alibabacloud/opensearch/model/ModifyScheduledTaskResult.h new file mode 100644 index 000000000..d143a55f8 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ModifyScheduledTaskResult.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_OPENSEARCH_MODEL_MODIFYSCHEDULEDTASKRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_MODIFYSCHEDULEDTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ModifyScheduledTaskResult : public ServiceResult + { + public: + + + ModifyScheduledTaskResult(); + explicit ModifyScheduledTaskResult(const std::string &payload); + ~ModifyScheduledTaskResult(); + std::string getRequestId()const; + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_MODIFYSCHEDULEDTASKRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ModifySecondRankRequest.h b/opensearch/include/alibabacloud/opensearch/model/ModifySecondRankRequest.h new file mode 100644 index 000000000..b401c84f0 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ModifySecondRankRequest.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_OPENSEARCH_MODEL_MODIFYSECONDRANKREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_MODIFYSECONDRANKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ModifySecondRankRequest : public RoaServiceRequest + { + + public: + ModifySecondRankRequest(); + ~ModifySecondRankRequest(); + + bool getDryRun()const; + void setDryRun(bool dryRun); + int getAppId()const; + void setAppId(int appId); + std::string getName()const; + void setName(const std::string& name); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + bool dryRun_; + int appId_; + std::string name_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_MODIFYSECONDRANKREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ModifySecondRankResult.h b/opensearch/include/alibabacloud/opensearch/model/ModifySecondRankResult.h new file mode 100644 index 000000000..d0d889403 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ModifySecondRankResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_MODIFYSECONDRANKRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_MODIFYSECONDRANKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ModifySecondRankResult : public ServiceResult + { + public: + struct Result + { + std::string isDefault; + std::string meta; + bool active; + std::string description; + int updated; + std::string isSys; + std::string id; + std::string name; + int created; + }; + + + ModifySecondRankResult(); + explicit ModifySecondRankResult(const std::string &payload); + ~ModifySecondRankResult(); + std::string getRequestId()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_MODIFYSECONDRANKRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/PreviewModelRequest.h b/opensearch/include/alibabacloud/opensearch/model/PreviewModelRequest.h new file mode 100644 index 000000000..f5d29892c --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/PreviewModelRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_PREVIEWMODELREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_PREVIEWMODELREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT PreviewModelRequest : public RoaServiceRequest + { + + public: + PreviewModelRequest(); + ~PreviewModelRequest(); + + std::string getModelName()const; + void setModelName(const std::string& modelName); + std::string getQuery()const; + void setQuery(const std::string& query); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + std::string modelName_; + std::string query_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_PREVIEWMODELREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/PreviewModelResult.h b/opensearch/include/alibabacloud/opensearch/model/PreviewModelResult.h new file mode 100644 index 000000000..1c166ed9a --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/PreviewModelResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_OPENSEARCH_MODEL_PREVIEWMODELRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_PREVIEWMODELRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT PreviewModelResult : public ServiceResult + { + public: + + + PreviewModelResult(); + explicit PreviewModelResult(const std::string &payload); + ~PreviewModelResult(); + long getTotalCount()const; + std::string getRequestId()const; + std::vector getResult()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + std::string requestId_; + std::vector result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_PREVIEWMODELRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/PushInterventionDictionaryEntriesRequest.h b/opensearch/include/alibabacloud/opensearch/model/PushInterventionDictionaryEntriesRequest.h new file mode 100644 index 000000000..076ac34d0 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/PushInterventionDictionaryEntriesRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_OPENSEARCH_MODEL_PUSHINTERVENTIONDICTIONARYENTRIESREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_PUSHINTERVENTIONDICTIONARYENTRIESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT PushInterventionDictionaryEntriesRequest : public RoaServiceRequest + { + + public: + PushInterventionDictionaryEntriesRequest(); + ~PushInterventionDictionaryEntriesRequest(); + + std::string getName()const; + void setName(const std::string& name); + + private: + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_PUSHINTERVENTIONDICTIONARYENTRIESREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/PushInterventionDictionaryEntriesResult.h b/opensearch/include/alibabacloud/opensearch/model/PushInterventionDictionaryEntriesResult.h new file mode 100644 index 000000000..564705bf8 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/PushInterventionDictionaryEntriesResult.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_OPENSEARCH_MODEL_PUSHINTERVENTIONDICTIONARYENTRIESRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_PUSHINTERVENTIONDICTIONARYENTRIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT PushInterventionDictionaryEntriesResult : public ServiceResult + { + public: + + + PushInterventionDictionaryEntriesResult(); + explicit PushInterventionDictionaryEntriesResult(const std::string &payload); + ~PushInterventionDictionaryEntriesResult(); + std::string getRequestId()const; + std::vector getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::vector result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_PUSHINTERVENTIONDICTIONARYENTRIESRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/PushUserAnalyzerEntriesRequest.h b/opensearch/include/alibabacloud/opensearch/model/PushUserAnalyzerEntriesRequest.h new file mode 100644 index 000000000..915193ee6 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/PushUserAnalyzerEntriesRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_OPENSEARCH_MODEL_PUSHUSERANALYZERENTRIESREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_PUSHUSERANALYZERENTRIESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT PushUserAnalyzerEntriesRequest : public RoaServiceRequest + { + + public: + PushUserAnalyzerEntriesRequest(); + ~PushUserAnalyzerEntriesRequest(); + + std::string getName()const; + void setName(const std::string& name); + + private: + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_PUSHUSERANALYZERENTRIESREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/PushUserAnalyzerEntriesResult.h b/opensearch/include/alibabacloud/opensearch/model/PushUserAnalyzerEntriesResult.h new file mode 100644 index 000000000..df2e30529 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/PushUserAnalyzerEntriesResult.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_OPENSEARCH_MODEL_PUSHUSERANALYZERENTRIESRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_PUSHUSERANALYZERENTRIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT PushUserAnalyzerEntriesResult : public ServiceResult + { + public: + + + PushUserAnalyzerEntriesResult(); + explicit PushUserAnalyzerEntriesResult(const std::string &payload); + ~PushUserAnalyzerEntriesResult(); + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_PUSHUSERANALYZERENTRIESRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/RankPreviewQueryRequest.h b/opensearch/include/alibabacloud/opensearch/model/RankPreviewQueryRequest.h new file mode 100644 index 000000000..305df64e0 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/RankPreviewQueryRequest.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_OPENSEARCH_MODEL_RANKPREVIEWQUERYREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_RANKPREVIEWQUERYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT RankPreviewQueryRequest : public RoaServiceRequest + { + + public: + RankPreviewQueryRequest(); + ~RankPreviewQueryRequest(); + + std::string getModelName()const; + void setModelName(const std::string& modelName); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + std::string modelName_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_RANKPREVIEWQUERYREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/RankPreviewQueryResult.h b/opensearch/include/alibabacloud/opensearch/model/RankPreviewQueryResult.h new file mode 100644 index 000000000..86b5f1ce5 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/RankPreviewQueryResult.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_OPENSEARCH_MODEL_RANKPREVIEWQUERYRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_RANKPREVIEWQUERYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT RankPreviewQueryResult : public ServiceResult + { + public: + + + RankPreviewQueryResult(); + explicit RankPreviewQueryResult(const std::string &payload); + ~RankPreviewQueryResult(); + std::string getRequestId()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_RANKPREVIEWQUERYRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ReleaseSortScriptRequest.h b/opensearch/include/alibabacloud/opensearch/model/ReleaseSortScriptRequest.h new file mode 100644 index 000000000..7755ea264 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ReleaseSortScriptRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_RELEASESORTSCRIPTREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_RELEASESORTSCRIPTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ReleaseSortScriptRequest : public RoaServiceRequest + { + + public: + ReleaseSortScriptRequest(); + ~ReleaseSortScriptRequest(); + + std::string getAppVersionId()const; + void setAppVersionId(const std::string& appVersionId); + std::string getScriptName()const; + void setScriptName(const std::string& scriptName); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + std::string appVersionId_; + std::string scriptName_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_RELEASESORTSCRIPTREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ReleaseSortScriptResult.h b/opensearch/include/alibabacloud/opensearch/model/ReleaseSortScriptResult.h new file mode 100644 index 000000000..ebb6ceb86 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ReleaseSortScriptResult.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_OPENSEARCH_MODEL_RELEASESORTSCRIPTRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_RELEASESORTSCRIPTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ReleaseSortScriptResult : public ServiceResult + { + public: + + + ReleaseSortScriptResult(); + explicit ReleaseSortScriptResult(const std::string &payload); + ~ReleaseSortScriptResult(); + std::string getRequestId()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_RELEASESORTSCRIPTRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/RemoveAppGroupRequest.h b/opensearch/include/alibabacloud/opensearch/model/RemoveAppGroupRequest.h new file mode 100644 index 000000000..0f11e964c --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/RemoveAppGroupRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_OPENSEARCH_MODEL_REMOVEAPPGROUPREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_REMOVEAPPGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT RemoveAppGroupRequest : public RoaServiceRequest + { + + public: + RemoveAppGroupRequest(); + ~RemoveAppGroupRequest(); + + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_REMOVEAPPGROUPREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/RemoveAppGroupResult.h b/opensearch/include/alibabacloud/opensearch/model/RemoveAppGroupResult.h new file mode 100644 index 000000000..ce34afcf7 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/RemoveAppGroupResult.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_OPENSEARCH_MODEL_REMOVEAPPGROUPRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_REMOVEAPPGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT RemoveAppGroupResult : public ServiceResult + { + public: + + + RemoveAppGroupResult(); + explicit RemoveAppGroupResult(const std::string &payload); + ~RemoveAppGroupResult(); + std::string getRequestId()const; + std::vector getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::vector result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_REMOVEAPPGROUPRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/RemoveAppRequest.h b/opensearch/include/alibabacloud/opensearch/model/RemoveAppRequest.h new file mode 100644 index 000000000..8dbd72d3f --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/RemoveAppRequest.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_OPENSEARCH_MODEL_REMOVEAPPREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_REMOVEAPPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT RemoveAppRequest : public RoaServiceRequest + { + + public: + RemoveAppRequest(); + ~RemoveAppRequest(); + + int getAppId()const; + void setAppId(int appId); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + int appId_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_REMOVEAPPREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/RemoveAppResult.h b/opensearch/include/alibabacloud/opensearch/model/RemoveAppResult.h new file mode 100644 index 000000000..3d209bdff --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/RemoveAppResult.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_OPENSEARCH_MODEL_REMOVEAPPRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_REMOVEAPPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT RemoveAppResult : public ServiceResult + { + public: + + + RemoveAppResult(); + explicit RemoveAppResult(const std::string &payload); + ~RemoveAppResult(); + std::string getRequestId()const; + std::vector getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::vector result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_REMOVEAPPRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/RemoveDataCollectionRequest.h b/opensearch/include/alibabacloud/opensearch/model/RemoveDataCollectionRequest.h new file mode 100644 index 000000000..9ac2c8d01 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/RemoveDataCollectionRequest.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_OPENSEARCH_MODEL_REMOVEDATACOLLECTIONREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_REMOVEDATACOLLECTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT RemoveDataCollectionRequest : public RoaServiceRequest + { + + public: + RemoveDataCollectionRequest(); + ~RemoveDataCollectionRequest(); + + std::string getDataCollectionIdentity()const; + void setDataCollectionIdentity(const std::string& dataCollectionIdentity); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + std::string dataCollectionIdentity_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_REMOVEDATACOLLECTIONREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/RemoveDataCollectionResult.h b/opensearch/include/alibabacloud/opensearch/model/RemoveDataCollectionResult.h new file mode 100644 index 000000000..93974205d --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/RemoveDataCollectionResult.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_OPENSEARCH_MODEL_REMOVEDATACOLLECTIONRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_REMOVEDATACOLLECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT RemoveDataCollectionResult : public ServiceResult + { + public: + + + RemoveDataCollectionResult(); + explicit RemoveDataCollectionResult(const std::string &payload); + ~RemoveDataCollectionResult(); + std::string getRequestId()const; + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_REMOVEDATACOLLECTIONRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/RemoveFirstRankRequest.h b/opensearch/include/alibabacloud/opensearch/model/RemoveFirstRankRequest.h new file mode 100644 index 000000000..187ab9672 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/RemoveFirstRankRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_REMOVEFIRSTRANKREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_REMOVEFIRSTRANKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT RemoveFirstRankRequest : public RoaServiceRequest + { + + public: + RemoveFirstRankRequest(); + ~RemoveFirstRankRequest(); + + int getAppId()const; + void setAppId(int appId); + std::string getName()const; + void setName(const std::string& name); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + int appId_; + std::string name_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_REMOVEFIRSTRANKREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/RemoveFirstRankResult.h b/opensearch/include/alibabacloud/opensearch/model/RemoveFirstRankResult.h new file mode 100644 index 000000000..9f5196f20 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/RemoveFirstRankResult.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_REMOVEFIRSTRANKRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_REMOVEFIRSTRANKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT RemoveFirstRankResult : public ServiceResult + { + public: + struct Result + { + struct MetaItem + { + std::string attribute; + std::string arg; + float weight; + }; + bool active; + std::string description; + std::vector meta; + std::string name; + }; + + + RemoveFirstRankResult(); + explicit RemoveFirstRankResult(const std::string &payload); + ~RemoveFirstRankResult(); + std::string getRequestId()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_REMOVEFIRSTRANKRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/RemoveInterventionDictionaryRequest.h b/opensearch/include/alibabacloud/opensearch/model/RemoveInterventionDictionaryRequest.h new file mode 100644 index 000000000..c73ac4186 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/RemoveInterventionDictionaryRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_OPENSEARCH_MODEL_REMOVEINTERVENTIONDICTIONARYREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_REMOVEINTERVENTIONDICTIONARYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT RemoveInterventionDictionaryRequest : public RoaServiceRequest + { + + public: + RemoveInterventionDictionaryRequest(); + ~RemoveInterventionDictionaryRequest(); + + std::string getName()const; + void setName(const std::string& name); + + private: + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_REMOVEINTERVENTIONDICTIONARYREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/RemoveInterventionDictionaryResult.h b/opensearch/include/alibabacloud/opensearch/model/RemoveInterventionDictionaryResult.h new file mode 100644 index 000000000..b4c8206e5 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/RemoveInterventionDictionaryResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_REMOVEINTERVENTIONDICTIONARYRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_REMOVEINTERVENTIONDICTIONARYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT RemoveInterventionDictionaryResult : public ServiceResult + { + public: + struct Result + { + std::string type; + std::string updated; + std::string analyzer; + std::string name; + std::string created; + }; + + + RemoveInterventionDictionaryResult(); + explicit RemoveInterventionDictionaryResult(const std::string &payload); + ~RemoveInterventionDictionaryResult(); + std::string getRequestId()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_REMOVEINTERVENTIONDICTIONARYRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/RemoveQueryProcessorRequest.h b/opensearch/include/alibabacloud/opensearch/model/RemoveQueryProcessorRequest.h new file mode 100644 index 000000000..cc456821e --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/RemoveQueryProcessorRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_REMOVEQUERYPROCESSORREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_REMOVEQUERYPROCESSORREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT RemoveQueryProcessorRequest : public RoaServiceRequest + { + + public: + RemoveQueryProcessorRequest(); + ~RemoveQueryProcessorRequest(); + + int getAppId()const; + void setAppId(int appId); + std::string getName()const; + void setName(const std::string& name); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + int appId_; + std::string name_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_REMOVEQUERYPROCESSORREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/RemoveQueryProcessorResult.h b/opensearch/include/alibabacloud/opensearch/model/RemoveQueryProcessorResult.h new file mode 100644 index 000000000..ad3d4a0b9 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/RemoveQueryProcessorResult.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_OPENSEARCH_MODEL_REMOVEQUERYPROCESSORRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_REMOVEQUERYPROCESSORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT RemoveQueryProcessorResult : public ServiceResult + { + public: + + + RemoveQueryProcessorResult(); + explicit RemoveQueryProcessorResult(const std::string &payload); + ~RemoveQueryProcessorResult(); + std::string getRequestId()const; + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_REMOVEQUERYPROCESSORRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/RemoveScheduledTaskRequest.h b/opensearch/include/alibabacloud/opensearch/model/RemoveScheduledTaskRequest.h new file mode 100644 index 000000000..c3a4c9e99 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/RemoveScheduledTaskRequest.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_OPENSEARCH_MODEL_REMOVESCHEDULEDTASKREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_REMOVESCHEDULEDTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT RemoveScheduledTaskRequest : public RoaServiceRequest + { + + public: + RemoveScheduledTaskRequest(); + ~RemoveScheduledTaskRequest(); + + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + + private: + std::string appGroupIdentity_; + std::string taskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_REMOVESCHEDULEDTASKREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/RemoveScheduledTaskResult.h b/opensearch/include/alibabacloud/opensearch/model/RemoveScheduledTaskResult.h new file mode 100644 index 000000000..7c2c6b525 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/RemoveScheduledTaskResult.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_OPENSEARCH_MODEL_REMOVESCHEDULEDTASKRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_REMOVESCHEDULEDTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT RemoveScheduledTaskResult : public ServiceResult + { + public: + + + RemoveScheduledTaskResult(); + explicit RemoveScheduledTaskResult(const std::string &payload); + ~RemoveScheduledTaskResult(); + std::string getRequestId()const; + std::vector getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::vector result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_REMOVESCHEDULEDTASKRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/RemoveSecondRankRequest.h b/opensearch/include/alibabacloud/opensearch/model/RemoveSecondRankRequest.h new file mode 100644 index 000000000..c8026b666 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/RemoveSecondRankRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_REMOVESECONDRANKREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_REMOVESECONDRANKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT RemoveSecondRankRequest : public RoaServiceRequest + { + + public: + RemoveSecondRankRequest(); + ~RemoveSecondRankRequest(); + + int getAppId()const; + void setAppId(int appId); + std::string getName()const; + void setName(const std::string& name); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + int appId_; + std::string name_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_REMOVESECONDRANKREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/RemoveSecondRankResult.h b/opensearch/include/alibabacloud/opensearch/model/RemoveSecondRankResult.h new file mode 100644 index 000000000..3a4f65daf --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/RemoveSecondRankResult.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_OPENSEARCH_MODEL_REMOVESECONDRANKRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_REMOVESECONDRANKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT RemoveSecondRankResult : public ServiceResult + { + public: + + + RemoveSecondRankResult(); + explicit RemoveSecondRankResult(const std::string &payload); + ~RemoveSecondRankResult(); + std::string getRequestId()const; + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_REMOVESECONDRANKRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/RemoveUserAnalyzerRequest.h b/opensearch/include/alibabacloud/opensearch/model/RemoveUserAnalyzerRequest.h new file mode 100644 index 000000000..613d2dcf8 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/RemoveUserAnalyzerRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_OPENSEARCH_MODEL_REMOVEUSERANALYZERREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_REMOVEUSERANALYZERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT RemoveUserAnalyzerRequest : public RoaServiceRequest + { + + public: + RemoveUserAnalyzerRequest(); + ~RemoveUserAnalyzerRequest(); + + std::string getName()const; + void setName(const std::string& name); + + private: + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_REMOVEUSERANALYZERREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/RemoveUserAnalyzerResult.h b/opensearch/include/alibabacloud/opensearch/model/RemoveUserAnalyzerResult.h new file mode 100644 index 000000000..d0a178241 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/RemoveUserAnalyzerResult.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_OPENSEARCH_MODEL_REMOVEUSERANALYZERRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_REMOVEUSERANALYZERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT RemoveUserAnalyzerResult : public ServiceResult + { + public: + + + RemoveUserAnalyzerResult(); + explicit RemoveUserAnalyzerResult(const std::string &payload); + ~RemoveUserAnalyzerResult(); + std::string getRequestId()const; + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_REMOVEUSERANALYZERRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/RenewAppGroupRequest.h b/opensearch/include/alibabacloud/opensearch/model/RenewAppGroupRequest.h new file mode 100644 index 000000000..091ce7417 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/RenewAppGroupRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_OPENSEARCH_MODEL_RENEWAPPGROUPREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_RENEWAPPGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT RenewAppGroupRequest : public RoaServiceRequest + { + + public: + RenewAppGroupRequest(); + ~RenewAppGroupRequest(); + + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_RENEWAPPGROUPREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/RenewAppGroupResult.h b/opensearch/include/alibabacloud/opensearch/model/RenewAppGroupResult.h new file mode 100644 index 000000000..753272f6f --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/RenewAppGroupResult.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_OPENSEARCH_MODEL_RENEWAPPGROUPRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_RENEWAPPGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT RenewAppGroupResult : public ServiceResult + { + public: + + + RenewAppGroupResult(); + explicit RenewAppGroupResult(const std::string &payload); + ~RenewAppGroupResult(); + std::string getRequestId()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_RENEWAPPGROUPRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ReplaceAppGroupCommodityCodeRequest.h b/opensearch/include/alibabacloud/opensearch/model/ReplaceAppGroupCommodityCodeRequest.h new file mode 100644 index 000000000..011a9e853 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ReplaceAppGroupCommodityCodeRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_OPENSEARCH_MODEL_REPLACEAPPGROUPCOMMODITYCODEREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_REPLACEAPPGROUPCOMMODITYCODEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ReplaceAppGroupCommodityCodeRequest : public RoaServiceRequest + { + + public: + ReplaceAppGroupCommodityCodeRequest(); + ~ReplaceAppGroupCommodityCodeRequest(); + + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_REPLACEAPPGROUPCOMMODITYCODEREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ReplaceAppGroupCommodityCodeResult.h b/opensearch/include/alibabacloud/opensearch/model/ReplaceAppGroupCommodityCodeResult.h new file mode 100644 index 000000000..541eaa0e5 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ReplaceAppGroupCommodityCodeResult.h @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_OPENSEARCH_MODEL_REPLACEAPPGROUPCOMMODITYCODERESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_REPLACEAPPGROUPCOMMODITYCODERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ReplaceAppGroupCommodityCodeResult : public ServiceResult + { + public: + struct Result + { + struct Quota + { + int docSize; + int computeResource; + std::string spec; + }; + int secondRankAlgoDeploymentId; + int firstRankAlgoDeploymentId; + std::string description; + std::string processingOrderId; + std::string expireOn; + std::string currentVersion; + int switchedTime; + std::string name; + int created; + std::string commodityCode; + int hasPendingQuotaReviewTask; + std::string status; + int produced; + int updated; + std::string instanceId; + std::string projectId; + std::string lockMode; + int chargingWay; + std::string type; + std::vector versions; + Quota quota; + std::string chargeType; + std::string id; + int pendingSecondRankAlgoDeploymentId; + int lockedByExpiration; + }; + + + ReplaceAppGroupCommodityCodeResult(); + explicit ReplaceAppGroupCommodityCodeResult(const std::string &payload); + ~ReplaceAppGroupCommodityCodeResult(); + std::string getRequestId()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_REPLACEAPPGROUPCOMMODITYCODERESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/SaveSortScriptFileRequest.h b/opensearch/include/alibabacloud/opensearch/model/SaveSortScriptFileRequest.h new file mode 100644 index 000000000..e3b172011 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/SaveSortScriptFileRequest.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_OPENSEARCH_MODEL_SAVESORTSCRIPTFILEREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_SAVESORTSCRIPTFILEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT SaveSortScriptFileRequest : public RoaServiceRequest + { + + public: + SaveSortScriptFileRequest(); + ~SaveSortScriptFileRequest(); + + std::string getAppVersionId()const; + void setAppVersionId(const std::string& appVersionId); + std::string getFileName()const; + void setFileName(const std::string& fileName); + std::string getScriptName()const; + void setScriptName(const std::string& scriptName); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + std::string appVersionId_; + std::string fileName_; + std::string scriptName_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_SAVESORTSCRIPTFILEREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/SaveSortScriptFileResult.h b/opensearch/include/alibabacloud/opensearch/model/SaveSortScriptFileResult.h new file mode 100644 index 000000000..66e0204bf --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/SaveSortScriptFileResult.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_OPENSEARCH_MODEL_SAVESORTSCRIPTFILERESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_SAVESORTSCRIPTFILERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT SaveSortScriptFileResult : public ServiceResult + { + public: + + + SaveSortScriptFileResult(); + explicit SaveSortScriptFileResult(const std::string &payload); + ~SaveSortScriptFileResult(); + std::string getRequestId()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_SAVESORTSCRIPTFILERESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/StartSlowQueryAnalyzerRequest.h b/opensearch/include/alibabacloud/opensearch/model/StartSlowQueryAnalyzerRequest.h new file mode 100644 index 000000000..ce1da9197 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/StartSlowQueryAnalyzerRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_OPENSEARCH_MODEL_STARTSLOWQUERYANALYZERREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_STARTSLOWQUERYANALYZERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT StartSlowQueryAnalyzerRequest : public RoaServiceRequest + { + + public: + StartSlowQueryAnalyzerRequest(); + ~StartSlowQueryAnalyzerRequest(); + + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_STARTSLOWQUERYANALYZERREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/StartSlowQueryAnalyzerResult.h b/opensearch/include/alibabacloud/opensearch/model/StartSlowQueryAnalyzerResult.h new file mode 100644 index 000000000..6f587ce06 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/StartSlowQueryAnalyzerResult.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_OPENSEARCH_MODEL_STARTSLOWQUERYANALYZERRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_STARTSLOWQUERYANALYZERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT StartSlowQueryAnalyzerResult : public ServiceResult + { + public: + + + StartSlowQueryAnalyzerResult(); + explicit StartSlowQueryAnalyzerResult(const std::string &payload); + ~StartSlowQueryAnalyzerResult(); + std::string getRequestId()const; + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_STARTSLOWQUERYANALYZERRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/TrainModelRequest.h b/opensearch/include/alibabacloud/opensearch/model/TrainModelRequest.h new file mode 100644 index 000000000..41721dc3f --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/TrainModelRequest.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_OPENSEARCH_MODEL_TRAINMODELREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_TRAINMODELREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT TrainModelRequest : public RoaServiceRequest + { + + public: + TrainModelRequest(); + ~TrainModelRequest(); + + std::string getModelName()const; + void setModelName(const std::string& modelName); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + std::string modelName_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_TRAINMODELREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/TrainModelResult.h b/opensearch/include/alibabacloud/opensearch/model/TrainModelResult.h new file mode 100644 index 000000000..e8f1d6d53 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/TrainModelResult.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_OPENSEARCH_MODEL_TRAINMODELRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_TRAINMODELRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT TrainModelResult : public ServiceResult + { + public: + + + TrainModelResult(); + explicit TrainModelResult(const std::string &payload); + ~TrainModelResult(); + std::string getRequestId()const; + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_TRAINMODELRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/UpdateABTestExperimentRequest.h b/opensearch/include/alibabacloud/opensearch/model/UpdateABTestExperimentRequest.h new file mode 100644 index 000000000..d7ccfa15e --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/UpdateABTestExperimentRequest.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_OPENSEARCH_MODEL_UPDATEABTESTEXPERIMENTREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_UPDATEABTESTEXPERIMENTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT UpdateABTestExperimentRequest : public RoaServiceRequest + { + + public: + UpdateABTestExperimentRequest(); + ~UpdateABTestExperimentRequest(); + + int getGroupId()const; + void setGroupId(int groupId); + int getSceneId()const; + void setSceneId(int sceneId); + int getExperimentId()const; + void setExperimentId(int experimentId); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + int groupId_; + int sceneId_; + int experimentId_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_UPDATEABTESTEXPERIMENTREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/UpdateABTestExperimentResult.h b/opensearch/include/alibabacloud/opensearch/model/UpdateABTestExperimentResult.h new file mode 100644 index 000000000..ffe3f0f9a --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/UpdateABTestExperimentResult.h @@ -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_OPENSEARCH_MODEL_UPDATEABTESTEXPERIMENTRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_UPDATEABTESTEXPERIMENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT UpdateABTestExperimentResult : public ServiceResult + { + public: + struct Result + { + int updated; + int traffic; + std::string params; + std::string id; + bool online; + std::string name; + int created; + }; + + + UpdateABTestExperimentResult(); + explicit UpdateABTestExperimentResult(const std::string &payload); + ~UpdateABTestExperimentResult(); + std::string getRequestId()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_UPDATEABTESTEXPERIMENTRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/UpdateABTestFixedFlowDividersRequest.h b/opensearch/include/alibabacloud/opensearch/model/UpdateABTestFixedFlowDividersRequest.h new file mode 100644 index 000000000..5165cb2d2 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/UpdateABTestFixedFlowDividersRequest.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_OPENSEARCH_MODEL_UPDATEABTESTFIXEDFLOWDIVIDERSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_UPDATEABTESTFIXEDFLOWDIVIDERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT UpdateABTestFixedFlowDividersRequest : public RoaServiceRequest + { + + public: + UpdateABTestFixedFlowDividersRequest(); + ~UpdateABTestFixedFlowDividersRequest(); + + int getGroupId()const; + void setGroupId(int groupId); + int getSceneId()const; + void setSceneId(int sceneId); + int getExperimentId()const; + void setExperimentId(int experimentId); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + int groupId_; + int sceneId_; + int experimentId_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_UPDATEABTESTFIXEDFLOWDIVIDERSREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/UpdateABTestFixedFlowDividersResult.h b/opensearch/include/alibabacloud/opensearch/model/UpdateABTestFixedFlowDividersResult.h new file mode 100644 index 000000000..7842bee3b --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/UpdateABTestFixedFlowDividersResult.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_OPENSEARCH_MODEL_UPDATEABTESTFIXEDFLOWDIVIDERSRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_UPDATEABTESTFIXEDFLOWDIVIDERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT UpdateABTestFixedFlowDividersResult : public ServiceResult + { + public: + + + UpdateABTestFixedFlowDividersResult(); + explicit UpdateABTestFixedFlowDividersResult(const std::string &payload); + ~UpdateABTestFixedFlowDividersResult(); + std::string getRequestId()const; + std::vector getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::vector result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_UPDATEABTESTFIXEDFLOWDIVIDERSRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/UpdateABTestGroupRequest.h b/opensearch/include/alibabacloud/opensearch/model/UpdateABTestGroupRequest.h new file mode 100644 index 000000000..c72382f5f --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/UpdateABTestGroupRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_UPDATEABTESTGROUPREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_UPDATEABTESTGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT UpdateABTestGroupRequest : public RoaServiceRequest + { + + public: + UpdateABTestGroupRequest(); + ~UpdateABTestGroupRequest(); + + int getGroupId()const; + void setGroupId(int groupId); + int getSceneId()const; + void setSceneId(int sceneId); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + int groupId_; + int sceneId_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_UPDATEABTESTGROUPREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/UpdateABTestGroupResult.h b/opensearch/include/alibabacloud/opensearch/model/UpdateABTestGroupResult.h new file mode 100644 index 000000000..463943a40 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/UpdateABTestGroupResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_UPDATEABTESTGROUPRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_UPDATEABTESTGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT UpdateABTestGroupResult : public ServiceResult + { + public: + struct Result + { + int status; + int updated; + std::string id; + std::string name; + int created; + }; + + + UpdateABTestGroupResult(); + explicit UpdateABTestGroupResult(const std::string &payload); + ~UpdateABTestGroupResult(); + std::string getRequestId()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_UPDATEABTESTGROUPRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/UpdateABTestSceneRequest.h b/opensearch/include/alibabacloud/opensearch/model/UpdateABTestSceneRequest.h new file mode 100644 index 000000000..5f5ab4211 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/UpdateABTestSceneRequest.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_OPENSEARCH_MODEL_UPDATEABTESTSCENEREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_UPDATEABTESTSCENEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT UpdateABTestSceneRequest : public RoaServiceRequest + { + + public: + UpdateABTestSceneRequest(); + ~UpdateABTestSceneRequest(); + + int getSceneId()const; + void setSceneId(int sceneId); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + int sceneId_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_UPDATEABTESTSCENEREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/UpdateABTestSceneResult.h b/opensearch/include/alibabacloud/opensearch/model/UpdateABTestSceneResult.h new file mode 100644 index 000000000..34c079982 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/UpdateABTestSceneResult.h @@ -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_OPENSEARCH_MODEL_UPDATEABTESTSCENERESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_UPDATEABTESTSCENERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT UpdateABTestSceneResult : public ServiceResult + { + public: + struct Result + { + int updated; + int traffic; + std::string params; + std::string id; + bool online; + std::string name; + int created; + }; + + + UpdateABTestSceneResult(); + explicit UpdateABTestSceneResult(const std::string &payload); + ~UpdateABTestSceneResult(); + std::string getRequestId()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_UPDATEABTESTSCENERESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/UpdateFetchFieldsRequest.h b/opensearch/include/alibabacloud/opensearch/model/UpdateFetchFieldsRequest.h new file mode 100644 index 000000000..a25aada56 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/UpdateFetchFieldsRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_UPDATEFETCHFIELDSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_UPDATEFETCHFIELDSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT UpdateFetchFieldsRequest : public RoaServiceRequest + { + + public: + UpdateFetchFieldsRequest(); + ~UpdateFetchFieldsRequest(); + + bool getDryRun()const; + void setDryRun(bool dryRun); + int getAppId()const; + void setAppId(int appId); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + bool dryRun_; + int appId_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_UPDATEFETCHFIELDSREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/UpdateFetchFieldsResult.h b/opensearch/include/alibabacloud/opensearch/model/UpdateFetchFieldsResult.h new file mode 100644 index 000000000..2534876a3 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/UpdateFetchFieldsResult.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_OPENSEARCH_MODEL_UPDATEFETCHFIELDSRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_UPDATEFETCHFIELDSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT UpdateFetchFieldsResult : public ServiceResult + { + public: + + + UpdateFetchFieldsResult(); + explicit UpdateFetchFieldsResult(const std::string &payload); + ~UpdateFetchFieldsResult(); + std::string getRequestId()const; + bool getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + bool result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_UPDATEFETCHFIELDSRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/UpdateSummariesRequest.h b/opensearch/include/alibabacloud/opensearch/model/UpdateSummariesRequest.h new file mode 100644 index 000000000..f464ca99d --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/UpdateSummariesRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_UPDATESUMMARIESREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_UPDATESUMMARIESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT UpdateSummariesRequest : public RoaServiceRequest + { + + public: + UpdateSummariesRequest(); + ~UpdateSummariesRequest(); + + bool getDryRun()const; + void setDryRun(bool dryRun); + int getAppId()const; + void setAppId(int appId); + std::string getAppGroupIdentity()const; + void setAppGroupIdentity(const std::string& appGroupIdentity); + + private: + bool dryRun_; + int appId_; + std::string appGroupIdentity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_UPDATESUMMARIESREQUEST_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/UpdateSummariesResult.h b/opensearch/include/alibabacloud/opensearch/model/UpdateSummariesResult.h new file mode 100644 index 000000000..1b564a578 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/UpdateSummariesResult.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_OPENSEARCH_MODEL_UPDATESUMMARIESRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_UPDATESUMMARIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT UpdateSummariesResult : public ServiceResult + { + public: + + + UpdateSummariesResult(); + explicit UpdateSummariesResult(const std::string &payload); + ~UpdateSummariesResult(); + std::string getRequestId()const; + bool getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + bool result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_UPDATESUMMARIESRESULT_H_ \ No newline at end of file diff --git a/opensearch/src/OpenSearchClient.cc b/opensearch/src/OpenSearchClient.cc new file mode 100644 index 000000000..1965c2109 --- /dev/null +++ b/opensearch/src/OpenSearchClient.cc @@ -0,0 +1,4013 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud; +using namespace AlibabaCloud::Location; +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +namespace +{ + const std::string SERVICE_NAME = "OpenSearch"; +} + +OpenSearchClient::OpenSearchClient(const Credentials &credentials, const ClientConfiguration &configuration) : + RoaServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) +{ + auto locationClient = std::make_shared(credentials, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "opensearch"); +} + +OpenSearchClient::OpenSearchClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : + RoaServiceClient(SERVICE_NAME, credentialsProvider, configuration) +{ + auto locationClient = std::make_shared(credentialsProvider, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "opensearch"); +} + +OpenSearchClient::OpenSearchClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : + RoaServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) +{ + auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "opensearch"); +} + +OpenSearchClient::~OpenSearchClient() +{} + +OpenSearchClient::CompileSortScriptOutcome OpenSearchClient::compileSortScript(const CompileSortScriptRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CompileSortScriptOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CompileSortScriptOutcome(CompileSortScriptResult(outcome.result())); + else + return CompileSortScriptOutcome(outcome.error()); +} + +void OpenSearchClient::compileSortScriptAsync(const CompileSortScriptRequest& request, const CompileSortScriptAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, compileSortScript(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::CompileSortScriptOutcomeCallable OpenSearchClient::compileSortScriptCallable(const CompileSortScriptRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->compileSortScript(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::CreateABTestExperimentOutcome OpenSearchClient::createABTestExperiment(const CreateABTestExperimentRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateABTestExperimentOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateABTestExperimentOutcome(CreateABTestExperimentResult(outcome.result())); + else + return CreateABTestExperimentOutcome(outcome.error()); +} + +void OpenSearchClient::createABTestExperimentAsync(const CreateABTestExperimentRequest& request, const CreateABTestExperimentAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createABTestExperiment(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::CreateABTestExperimentOutcomeCallable OpenSearchClient::createABTestExperimentCallable(const CreateABTestExperimentRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createABTestExperiment(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::CreateABTestGroupOutcome OpenSearchClient::createABTestGroup(const CreateABTestGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateABTestGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateABTestGroupOutcome(CreateABTestGroupResult(outcome.result())); + else + return CreateABTestGroupOutcome(outcome.error()); +} + +void OpenSearchClient::createABTestGroupAsync(const CreateABTestGroupRequest& request, const CreateABTestGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createABTestGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::CreateABTestGroupOutcomeCallable OpenSearchClient::createABTestGroupCallable(const CreateABTestGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createABTestGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::CreateABTestSceneOutcome OpenSearchClient::createABTestScene(const CreateABTestSceneRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateABTestSceneOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateABTestSceneOutcome(CreateABTestSceneResult(outcome.result())); + else + return CreateABTestSceneOutcome(outcome.error()); +} + +void OpenSearchClient::createABTestSceneAsync(const CreateABTestSceneRequest& request, const CreateABTestSceneAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createABTestScene(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::CreateABTestSceneOutcomeCallable OpenSearchClient::createABTestSceneCallable(const CreateABTestSceneRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createABTestScene(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::CreateAppOutcome OpenSearchClient::createApp(const CreateAppRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateAppOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateAppOutcome(CreateAppResult(outcome.result())); + else + return CreateAppOutcome(outcome.error()); +} + +void OpenSearchClient::createAppAsync(const CreateAppRequest& request, const CreateAppAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createApp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::CreateAppOutcomeCallable OpenSearchClient::createAppCallable(const CreateAppRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createApp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::CreateAppGroupOutcome OpenSearchClient::createAppGroup(const CreateAppGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateAppGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateAppGroupOutcome(CreateAppGroupResult(outcome.result())); + else + return CreateAppGroupOutcome(outcome.error()); +} + +void OpenSearchClient::createAppGroupAsync(const CreateAppGroupRequest& request, const CreateAppGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createAppGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::CreateAppGroupOutcomeCallable OpenSearchClient::createAppGroupCallable(const CreateAppGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createAppGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::CreateDataCollectionOutcome OpenSearchClient::createDataCollection(const CreateDataCollectionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDataCollectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDataCollectionOutcome(CreateDataCollectionResult(outcome.result())); + else + return CreateDataCollectionOutcome(outcome.error()); +} + +void OpenSearchClient::createDataCollectionAsync(const CreateDataCollectionRequest& request, const CreateDataCollectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDataCollection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::CreateDataCollectionOutcomeCallable OpenSearchClient::createDataCollectionCallable(const CreateDataCollectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDataCollection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::CreateFirstRankOutcome OpenSearchClient::createFirstRank(const CreateFirstRankRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateFirstRankOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateFirstRankOutcome(CreateFirstRankResult(outcome.result())); + else + return CreateFirstRankOutcome(outcome.error()); +} + +void OpenSearchClient::createFirstRankAsync(const CreateFirstRankRequest& request, const CreateFirstRankAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createFirstRank(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::CreateFirstRankOutcomeCallable OpenSearchClient::createFirstRankCallable(const CreateFirstRankRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createFirstRank(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::CreateInterventionDictionaryOutcome OpenSearchClient::createInterventionDictionary(const CreateInterventionDictionaryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateInterventionDictionaryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateInterventionDictionaryOutcome(CreateInterventionDictionaryResult(outcome.result())); + else + return CreateInterventionDictionaryOutcome(outcome.error()); +} + +void OpenSearchClient::createInterventionDictionaryAsync(const CreateInterventionDictionaryRequest& request, const CreateInterventionDictionaryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createInterventionDictionary(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::CreateInterventionDictionaryOutcomeCallable OpenSearchClient::createInterventionDictionaryCallable(const CreateInterventionDictionaryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createInterventionDictionary(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::CreateModelOutcome OpenSearchClient::createModel(const CreateModelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateModelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateModelOutcome(CreateModelResult(outcome.result())); + else + return CreateModelOutcome(outcome.error()); +} + +void OpenSearchClient::createModelAsync(const CreateModelRequest& request, const CreateModelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createModel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::CreateModelOutcomeCallable OpenSearchClient::createModelCallable(const CreateModelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createModel(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::CreateQueryProcessorOutcome OpenSearchClient::createQueryProcessor(const CreateQueryProcessorRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateQueryProcessorOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateQueryProcessorOutcome(CreateQueryProcessorResult(outcome.result())); + else + return CreateQueryProcessorOutcome(outcome.error()); +} + +void OpenSearchClient::createQueryProcessorAsync(const CreateQueryProcessorRequest& request, const CreateQueryProcessorAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createQueryProcessor(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::CreateQueryProcessorOutcomeCallable OpenSearchClient::createQueryProcessorCallable(const CreateQueryProcessorRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createQueryProcessor(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::CreateScheduledTaskOutcome OpenSearchClient::createScheduledTask(const CreateScheduledTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateScheduledTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateScheduledTaskOutcome(CreateScheduledTaskResult(outcome.result())); + else + return CreateScheduledTaskOutcome(outcome.error()); +} + +void OpenSearchClient::createScheduledTaskAsync(const CreateScheduledTaskRequest& request, const CreateScheduledTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createScheduledTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::CreateScheduledTaskOutcomeCallable OpenSearchClient::createScheduledTaskCallable(const CreateScheduledTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createScheduledTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::CreateSecondRankOutcome OpenSearchClient::createSecondRank(const CreateSecondRankRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateSecondRankOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateSecondRankOutcome(CreateSecondRankResult(outcome.result())); + else + return CreateSecondRankOutcome(outcome.error()); +} + +void OpenSearchClient::createSecondRankAsync(const CreateSecondRankRequest& request, const CreateSecondRankAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createSecondRank(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::CreateSecondRankOutcomeCallable OpenSearchClient::createSecondRankCallable(const CreateSecondRankRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createSecondRank(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::CreateSortScriptOutcome OpenSearchClient::createSortScript(const CreateSortScriptRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateSortScriptOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateSortScriptOutcome(CreateSortScriptResult(outcome.result())); + else + return CreateSortScriptOutcome(outcome.error()); +} + +void OpenSearchClient::createSortScriptAsync(const CreateSortScriptRequest& request, const CreateSortScriptAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createSortScript(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::CreateSortScriptOutcomeCallable OpenSearchClient::createSortScriptCallable(const CreateSortScriptRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createSortScript(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::CreateUserAnalyzerOutcome OpenSearchClient::createUserAnalyzer(const CreateUserAnalyzerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateUserAnalyzerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateUserAnalyzerOutcome(CreateUserAnalyzerResult(outcome.result())); + else + return CreateUserAnalyzerOutcome(outcome.error()); +} + +void OpenSearchClient::createUserAnalyzerAsync(const CreateUserAnalyzerRequest& request, const CreateUserAnalyzerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createUserAnalyzer(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::CreateUserAnalyzerOutcomeCallable OpenSearchClient::createUserAnalyzerCallable(const CreateUserAnalyzerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createUserAnalyzer(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::DeleteABTestExperimentOutcome OpenSearchClient::deleteABTestExperiment(const DeleteABTestExperimentRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteABTestExperimentOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteABTestExperimentOutcome(DeleteABTestExperimentResult(outcome.result())); + else + return DeleteABTestExperimentOutcome(outcome.error()); +} + +void OpenSearchClient::deleteABTestExperimentAsync(const DeleteABTestExperimentRequest& request, const DeleteABTestExperimentAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteABTestExperiment(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::DeleteABTestExperimentOutcomeCallable OpenSearchClient::deleteABTestExperimentCallable(const DeleteABTestExperimentRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteABTestExperiment(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::DeleteABTestGroupOutcome OpenSearchClient::deleteABTestGroup(const DeleteABTestGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteABTestGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteABTestGroupOutcome(DeleteABTestGroupResult(outcome.result())); + else + return DeleteABTestGroupOutcome(outcome.error()); +} + +void OpenSearchClient::deleteABTestGroupAsync(const DeleteABTestGroupRequest& request, const DeleteABTestGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteABTestGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::DeleteABTestGroupOutcomeCallable OpenSearchClient::deleteABTestGroupCallable(const DeleteABTestGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteABTestGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::DeleteABTestSceneOutcome OpenSearchClient::deleteABTestScene(const DeleteABTestSceneRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteABTestSceneOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteABTestSceneOutcome(DeleteABTestSceneResult(outcome.result())); + else + return DeleteABTestSceneOutcome(outcome.error()); +} + +void OpenSearchClient::deleteABTestSceneAsync(const DeleteABTestSceneRequest& request, const DeleteABTestSceneAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteABTestScene(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::DeleteABTestSceneOutcomeCallable OpenSearchClient::deleteABTestSceneCallable(const DeleteABTestSceneRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteABTestScene(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::DeleteModelOutcome OpenSearchClient::deleteModel(const DeleteModelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteModelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteModelOutcome(DeleteModelResult(outcome.result())); + else + return DeleteModelOutcome(outcome.error()); +} + +void OpenSearchClient::deleteModelAsync(const DeleteModelRequest& request, const DeleteModelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteModel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::DeleteModelOutcomeCallable OpenSearchClient::deleteModelCallable(const DeleteModelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteModel(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::DeleteSortScriptOutcome OpenSearchClient::deleteSortScript(const DeleteSortScriptRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteSortScriptOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteSortScriptOutcome(DeleteSortScriptResult(outcome.result())); + else + return DeleteSortScriptOutcome(outcome.error()); +} + +void OpenSearchClient::deleteSortScriptAsync(const DeleteSortScriptRequest& request, const DeleteSortScriptAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteSortScript(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::DeleteSortScriptOutcomeCallable OpenSearchClient::deleteSortScriptCallable(const DeleteSortScriptRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteSortScript(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::DeleteSortScriptFileOutcome OpenSearchClient::deleteSortScriptFile(const DeleteSortScriptFileRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteSortScriptFileOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteSortScriptFileOutcome(DeleteSortScriptFileResult(outcome.result())); + else + return DeleteSortScriptFileOutcome(outcome.error()); +} + +void OpenSearchClient::deleteSortScriptFileAsync(const DeleteSortScriptFileRequest& request, const DeleteSortScriptFileAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteSortScriptFile(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::DeleteSortScriptFileOutcomeCallable OpenSearchClient::deleteSortScriptFileCallable(const DeleteSortScriptFileRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteSortScriptFile(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::DescribeABTestExperimentOutcome OpenSearchClient::describeABTestExperiment(const DescribeABTestExperimentRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeABTestExperimentOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeABTestExperimentOutcome(DescribeABTestExperimentResult(outcome.result())); + else + return DescribeABTestExperimentOutcome(outcome.error()); +} + +void OpenSearchClient::describeABTestExperimentAsync(const DescribeABTestExperimentRequest& request, const DescribeABTestExperimentAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeABTestExperiment(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::DescribeABTestExperimentOutcomeCallable OpenSearchClient::describeABTestExperimentCallable(const DescribeABTestExperimentRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeABTestExperiment(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::DescribeABTestGroupOutcome OpenSearchClient::describeABTestGroup(const DescribeABTestGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeABTestGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeABTestGroupOutcome(DescribeABTestGroupResult(outcome.result())); + else + return DescribeABTestGroupOutcome(outcome.error()); +} + +void OpenSearchClient::describeABTestGroupAsync(const DescribeABTestGroupRequest& request, const DescribeABTestGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeABTestGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::DescribeABTestGroupOutcomeCallable OpenSearchClient::describeABTestGroupCallable(const DescribeABTestGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeABTestGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::DescribeABTestSceneOutcome OpenSearchClient::describeABTestScene(const DescribeABTestSceneRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeABTestSceneOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeABTestSceneOutcome(DescribeABTestSceneResult(outcome.result())); + else + return DescribeABTestSceneOutcome(outcome.error()); +} + +void OpenSearchClient::describeABTestSceneAsync(const DescribeABTestSceneRequest& request, const DescribeABTestSceneAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeABTestScene(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::DescribeABTestSceneOutcomeCallable OpenSearchClient::describeABTestSceneCallable(const DescribeABTestSceneRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeABTestScene(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::DescribeAppOutcome OpenSearchClient::describeApp(const DescribeAppRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAppOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAppOutcome(DescribeAppResult(outcome.result())); + else + return DescribeAppOutcome(outcome.error()); +} + +void OpenSearchClient::describeAppAsync(const DescribeAppRequest& request, const DescribeAppAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeApp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::DescribeAppOutcomeCallable OpenSearchClient::describeAppCallable(const DescribeAppRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeApp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::DescribeAppGroupOutcome OpenSearchClient::describeAppGroup(const DescribeAppGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAppGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAppGroupOutcome(DescribeAppGroupResult(outcome.result())); + else + return DescribeAppGroupOutcome(outcome.error()); +} + +void OpenSearchClient::describeAppGroupAsync(const DescribeAppGroupRequest& request, const DescribeAppGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAppGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::DescribeAppGroupOutcomeCallable OpenSearchClient::describeAppGroupCallable(const DescribeAppGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAppGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::DescribeAppGroupDataReportOutcome OpenSearchClient::describeAppGroupDataReport(const DescribeAppGroupDataReportRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAppGroupDataReportOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAppGroupDataReportOutcome(DescribeAppGroupDataReportResult(outcome.result())); + else + return DescribeAppGroupDataReportOutcome(outcome.error()); +} + +void OpenSearchClient::describeAppGroupDataReportAsync(const DescribeAppGroupDataReportRequest& request, const DescribeAppGroupDataReportAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAppGroupDataReport(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::DescribeAppGroupDataReportOutcomeCallable OpenSearchClient::describeAppGroupDataReportCallable(const DescribeAppGroupDataReportRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAppGroupDataReport(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::DescribeAppStatisticsOutcome OpenSearchClient::describeAppStatistics(const DescribeAppStatisticsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAppStatisticsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAppStatisticsOutcome(DescribeAppStatisticsResult(outcome.result())); + else + return DescribeAppStatisticsOutcome(outcome.error()); +} + +void OpenSearchClient::describeAppStatisticsAsync(const DescribeAppStatisticsRequest& request, const DescribeAppStatisticsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAppStatistics(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::DescribeAppStatisticsOutcomeCallable OpenSearchClient::describeAppStatisticsCallable(const DescribeAppStatisticsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAppStatistics(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::DescribeAppsOutcome OpenSearchClient::describeApps(const DescribeAppsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAppsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAppsOutcome(DescribeAppsResult(outcome.result())); + else + return DescribeAppsOutcome(outcome.error()); +} + +void OpenSearchClient::describeAppsAsync(const DescribeAppsRequest& request, const DescribeAppsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeApps(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::DescribeAppsOutcomeCallable OpenSearchClient::describeAppsCallable(const DescribeAppsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeApps(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::DescribeDataCollctionOutcome OpenSearchClient::describeDataCollction(const DescribeDataCollctionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDataCollctionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDataCollctionOutcome(DescribeDataCollctionResult(outcome.result())); + else + return DescribeDataCollctionOutcome(outcome.error()); +} + +void OpenSearchClient::describeDataCollctionAsync(const DescribeDataCollctionRequest& request, const DescribeDataCollctionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDataCollction(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::DescribeDataCollctionOutcomeCallable OpenSearchClient::describeDataCollctionCallable(const DescribeDataCollctionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDataCollction(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::DescribeFirstRankOutcome OpenSearchClient::describeFirstRank(const DescribeFirstRankRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeFirstRankOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeFirstRankOutcome(DescribeFirstRankResult(outcome.result())); + else + return DescribeFirstRankOutcome(outcome.error()); +} + +void OpenSearchClient::describeFirstRankAsync(const DescribeFirstRankRequest& request, const DescribeFirstRankAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeFirstRank(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::DescribeFirstRankOutcomeCallable OpenSearchClient::describeFirstRankCallable(const DescribeFirstRankRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeFirstRank(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::DescribeInterventionDictionaryOutcome OpenSearchClient::describeInterventionDictionary(const DescribeInterventionDictionaryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeInterventionDictionaryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeInterventionDictionaryOutcome(DescribeInterventionDictionaryResult(outcome.result())); + else + return DescribeInterventionDictionaryOutcome(outcome.error()); +} + +void OpenSearchClient::describeInterventionDictionaryAsync(const DescribeInterventionDictionaryRequest& request, const DescribeInterventionDictionaryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeInterventionDictionary(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::DescribeInterventionDictionaryOutcomeCallable OpenSearchClient::describeInterventionDictionaryCallable(const DescribeInterventionDictionaryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeInterventionDictionary(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::DescribeModelOutcome OpenSearchClient::describeModel(const DescribeModelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeModelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeModelOutcome(DescribeModelResult(outcome.result())); + else + return DescribeModelOutcome(outcome.error()); +} + +void OpenSearchClient::describeModelAsync(const DescribeModelRequest& request, const DescribeModelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeModel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::DescribeModelOutcomeCallable OpenSearchClient::describeModelCallable(const DescribeModelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeModel(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::DescribeQueryProcessorOutcome OpenSearchClient::describeQueryProcessor(const DescribeQueryProcessorRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeQueryProcessorOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeQueryProcessorOutcome(DescribeQueryProcessorResult(outcome.result())); + else + return DescribeQueryProcessorOutcome(outcome.error()); +} + +void OpenSearchClient::describeQueryProcessorAsync(const DescribeQueryProcessorRequest& request, const DescribeQueryProcessorAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeQueryProcessor(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::DescribeQueryProcessorOutcomeCallable OpenSearchClient::describeQueryProcessorCallable(const DescribeQueryProcessorRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeQueryProcessor(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::DescribeRegionOutcome OpenSearchClient::describeRegion(const DescribeRegionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRegionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRegionOutcome(DescribeRegionResult(outcome.result())); + else + return DescribeRegionOutcome(outcome.error()); +} + +void OpenSearchClient::describeRegionAsync(const DescribeRegionRequest& request, const DescribeRegionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRegion(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::DescribeRegionOutcomeCallable OpenSearchClient::describeRegionCallable(const DescribeRegionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRegion(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::DescribeRegionsOutcome OpenSearchClient::describeRegions(const DescribeRegionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRegionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRegionsOutcome(DescribeRegionsResult(outcome.result())); + else + return DescribeRegionsOutcome(outcome.error()); +} + +void OpenSearchClient::describeRegionsAsync(const DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRegions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::DescribeRegionsOutcomeCallable OpenSearchClient::describeRegionsCallable(const DescribeRegionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRegions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::DescribeScheduledTaskOutcome OpenSearchClient::describeScheduledTask(const DescribeScheduledTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeScheduledTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeScheduledTaskOutcome(DescribeScheduledTaskResult(outcome.result())); + else + return DescribeScheduledTaskOutcome(outcome.error()); +} + +void OpenSearchClient::describeScheduledTaskAsync(const DescribeScheduledTaskRequest& request, const DescribeScheduledTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeScheduledTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::DescribeScheduledTaskOutcomeCallable OpenSearchClient::describeScheduledTaskCallable(const DescribeScheduledTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeScheduledTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::DescribeSecondRankOutcome OpenSearchClient::describeSecondRank(const DescribeSecondRankRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSecondRankOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSecondRankOutcome(DescribeSecondRankResult(outcome.result())); + else + return DescribeSecondRankOutcome(outcome.error()); +} + +void OpenSearchClient::describeSecondRankAsync(const DescribeSecondRankRequest& request, const DescribeSecondRankAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSecondRank(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::DescribeSecondRankOutcomeCallable OpenSearchClient::describeSecondRankCallable(const DescribeSecondRankRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSecondRank(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::DescribeSlowQueryStatusOutcome OpenSearchClient::describeSlowQueryStatus(const DescribeSlowQueryStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSlowQueryStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSlowQueryStatusOutcome(DescribeSlowQueryStatusResult(outcome.result())); + else + return DescribeSlowQueryStatusOutcome(outcome.error()); +} + +void OpenSearchClient::describeSlowQueryStatusAsync(const DescribeSlowQueryStatusRequest& request, const DescribeSlowQueryStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSlowQueryStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::DescribeSlowQueryStatusOutcomeCallable OpenSearchClient::describeSlowQueryStatusCallable(const DescribeSlowQueryStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSlowQueryStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::DescribeUserAnalyzerOutcome OpenSearchClient::describeUserAnalyzer(const DescribeUserAnalyzerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeUserAnalyzerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeUserAnalyzerOutcome(DescribeUserAnalyzerResult(outcome.result())); + else + return DescribeUserAnalyzerOutcome(outcome.error()); +} + +void OpenSearchClient::describeUserAnalyzerAsync(const DescribeUserAnalyzerRequest& request, const DescribeUserAnalyzerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeUserAnalyzer(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::DescribeUserAnalyzerOutcomeCallable OpenSearchClient::describeUserAnalyzerCallable(const DescribeUserAnalyzerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeUserAnalyzer(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::DisableSlowQueryOutcome OpenSearchClient::disableSlowQuery(const DisableSlowQueryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DisableSlowQueryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DisableSlowQueryOutcome(DisableSlowQueryResult(outcome.result())); + else + return DisableSlowQueryOutcome(outcome.error()); +} + +void OpenSearchClient::disableSlowQueryAsync(const DisableSlowQueryRequest& request, const DisableSlowQueryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, disableSlowQuery(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::DisableSlowQueryOutcomeCallable OpenSearchClient::disableSlowQueryCallable(const DisableSlowQueryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->disableSlowQuery(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::EnableSlowQueryOutcome OpenSearchClient::enableSlowQuery(const EnableSlowQueryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return EnableSlowQueryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return EnableSlowQueryOutcome(EnableSlowQueryResult(outcome.result())); + else + return EnableSlowQueryOutcome(outcome.error()); +} + +void OpenSearchClient::enableSlowQueryAsync(const EnableSlowQueryRequest& request, const EnableSlowQueryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, enableSlowQuery(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::EnableSlowQueryOutcomeCallable OpenSearchClient::enableSlowQueryCallable(const EnableSlowQueryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->enableSlowQuery(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::GetModelProgressOutcome OpenSearchClient::getModelProgress(const GetModelProgressRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetModelProgressOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetModelProgressOutcome(GetModelProgressResult(outcome.result())); + else + return GetModelProgressOutcome(outcome.error()); +} + +void OpenSearchClient::getModelProgressAsync(const GetModelProgressRequest& request, const GetModelProgressAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getModelProgress(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::GetModelProgressOutcomeCallable OpenSearchClient::getModelProgressCallable(const GetModelProgressRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getModelProgress(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::GetModelReportOutcome OpenSearchClient::getModelReport(const GetModelReportRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetModelReportOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetModelReportOutcome(GetModelReportResult(outcome.result())); + else + return GetModelReportOutcome(outcome.error()); +} + +void OpenSearchClient::getModelReportAsync(const GetModelReportRequest& request, const GetModelReportAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getModelReport(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::GetModelReportOutcomeCallable OpenSearchClient::getModelReportCallable(const GetModelReportRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getModelReport(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::GetScriptFileNamesOutcome OpenSearchClient::getScriptFileNames(const GetScriptFileNamesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetScriptFileNamesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetScriptFileNamesOutcome(GetScriptFileNamesResult(outcome.result())); + else + return GetScriptFileNamesOutcome(outcome.error()); +} + +void OpenSearchClient::getScriptFileNamesAsync(const GetScriptFileNamesRequest& request, const GetScriptFileNamesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getScriptFileNames(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::GetScriptFileNamesOutcomeCallable OpenSearchClient::getScriptFileNamesCallable(const GetScriptFileNamesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getScriptFileNames(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::GetSortScriptOutcome OpenSearchClient::getSortScript(const GetSortScriptRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSortScriptOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSortScriptOutcome(GetSortScriptResult(outcome.result())); + else + return GetSortScriptOutcome(outcome.error()); +} + +void OpenSearchClient::getSortScriptAsync(const GetSortScriptRequest& request, const GetSortScriptAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSortScript(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::GetSortScriptOutcomeCallable OpenSearchClient::getSortScriptCallable(const GetSortScriptRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSortScript(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::GetSortScriptFileOutcome OpenSearchClient::getSortScriptFile(const GetSortScriptFileRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSortScriptFileOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSortScriptFileOutcome(GetSortScriptFileResult(outcome.result())); + else + return GetSortScriptFileOutcome(outcome.error()); +} + +void OpenSearchClient::getSortScriptFileAsync(const GetSortScriptFileRequest& request, const GetSortScriptFileAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSortScriptFile(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::GetSortScriptFileOutcomeCallable OpenSearchClient::getSortScriptFileCallable(const GetSortScriptFileRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSortScriptFile(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::GetValidationErrorOutcome OpenSearchClient::getValidationError(const GetValidationErrorRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetValidationErrorOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetValidationErrorOutcome(GetValidationErrorResult(outcome.result())); + else + return GetValidationErrorOutcome(outcome.error()); +} + +void OpenSearchClient::getValidationErrorAsync(const GetValidationErrorRequest& request, const GetValidationErrorAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getValidationError(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::GetValidationErrorOutcomeCallable OpenSearchClient::getValidationErrorCallable(const GetValidationErrorRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getValidationError(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::GetValidationReportOutcome OpenSearchClient::getValidationReport(const GetValidationReportRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetValidationReportOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetValidationReportOutcome(GetValidationReportResult(outcome.result())); + else + return GetValidationReportOutcome(outcome.error()); +} + +void OpenSearchClient::getValidationReportAsync(const GetValidationReportRequest& request, const GetValidationReportAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getValidationReport(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::GetValidationReportOutcomeCallable OpenSearchClient::getValidationReportCallable(const GetValidationReportRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getValidationReport(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::ListABTestExperimentsOutcome OpenSearchClient::listABTestExperiments(const ListABTestExperimentsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListABTestExperimentsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListABTestExperimentsOutcome(ListABTestExperimentsResult(outcome.result())); + else + return ListABTestExperimentsOutcome(outcome.error()); +} + +void OpenSearchClient::listABTestExperimentsAsync(const ListABTestExperimentsRequest& request, const ListABTestExperimentsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listABTestExperiments(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::ListABTestExperimentsOutcomeCallable OpenSearchClient::listABTestExperimentsCallable(const ListABTestExperimentsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listABTestExperiments(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::ListABTestFixedFlowDividersOutcome OpenSearchClient::listABTestFixedFlowDividers(const ListABTestFixedFlowDividersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListABTestFixedFlowDividersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListABTestFixedFlowDividersOutcome(ListABTestFixedFlowDividersResult(outcome.result())); + else + return ListABTestFixedFlowDividersOutcome(outcome.error()); +} + +void OpenSearchClient::listABTestFixedFlowDividersAsync(const ListABTestFixedFlowDividersRequest& request, const ListABTestFixedFlowDividersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listABTestFixedFlowDividers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::ListABTestFixedFlowDividersOutcomeCallable OpenSearchClient::listABTestFixedFlowDividersCallable(const ListABTestFixedFlowDividersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listABTestFixedFlowDividers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::ListABTestGroupsOutcome OpenSearchClient::listABTestGroups(const ListABTestGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListABTestGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListABTestGroupsOutcome(ListABTestGroupsResult(outcome.result())); + else + return ListABTestGroupsOutcome(outcome.error()); +} + +void OpenSearchClient::listABTestGroupsAsync(const ListABTestGroupsRequest& request, const ListABTestGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listABTestGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::ListABTestGroupsOutcomeCallable OpenSearchClient::listABTestGroupsCallable(const ListABTestGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listABTestGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::ListABTestMetricsOutcome OpenSearchClient::listABTestMetrics(const ListABTestMetricsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListABTestMetricsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListABTestMetricsOutcome(ListABTestMetricsResult(outcome.result())); + else + return ListABTestMetricsOutcome(outcome.error()); +} + +void OpenSearchClient::listABTestMetricsAsync(const ListABTestMetricsRequest& request, const ListABTestMetricsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listABTestMetrics(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::ListABTestMetricsOutcomeCallable OpenSearchClient::listABTestMetricsCallable(const ListABTestMetricsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listABTestMetrics(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::ListABTestScenesOutcome OpenSearchClient::listABTestScenes(const ListABTestScenesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListABTestScenesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListABTestScenesOutcome(ListABTestScenesResult(outcome.result())); + else + return ListABTestScenesOutcome(outcome.error()); +} + +void OpenSearchClient::listABTestScenesAsync(const ListABTestScenesRequest& request, const ListABTestScenesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listABTestScenes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::ListABTestScenesOutcomeCallable OpenSearchClient::listABTestScenesCallable(const ListABTestScenesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listABTestScenes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::ListAppGroupErrorsOutcome OpenSearchClient::listAppGroupErrors(const ListAppGroupErrorsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAppGroupErrorsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAppGroupErrorsOutcome(ListAppGroupErrorsResult(outcome.result())); + else + return ListAppGroupErrorsOutcome(outcome.error()); +} + +void OpenSearchClient::listAppGroupErrorsAsync(const ListAppGroupErrorsRequest& request, const ListAppGroupErrorsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAppGroupErrors(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::ListAppGroupErrorsOutcomeCallable OpenSearchClient::listAppGroupErrorsCallable(const ListAppGroupErrorsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAppGroupErrors(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::ListAppGroupMetricsOutcome OpenSearchClient::listAppGroupMetrics(const ListAppGroupMetricsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAppGroupMetricsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAppGroupMetricsOutcome(ListAppGroupMetricsResult(outcome.result())); + else + return ListAppGroupMetricsOutcome(outcome.error()); +} + +void OpenSearchClient::listAppGroupMetricsAsync(const ListAppGroupMetricsRequest& request, const ListAppGroupMetricsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAppGroupMetrics(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::ListAppGroupMetricsOutcomeCallable OpenSearchClient::listAppGroupMetricsCallable(const ListAppGroupMetricsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAppGroupMetrics(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::ListAppGroupsOutcome OpenSearchClient::listAppGroups(const ListAppGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAppGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAppGroupsOutcome(ListAppGroupsResult(outcome.result())); + else + return ListAppGroupsOutcome(outcome.error()); +} + +void OpenSearchClient::listAppGroupsAsync(const ListAppGroupsRequest& request, const ListAppGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAppGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::ListAppGroupsOutcomeCallable OpenSearchClient::listAppGroupsCallable(const ListAppGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAppGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::ListAppsOutcome OpenSearchClient::listApps(const ListAppsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAppsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAppsOutcome(ListAppsResult(outcome.result())); + else + return ListAppsOutcome(outcome.error()); +} + +void OpenSearchClient::listAppsAsync(const ListAppsRequest& request, const ListAppsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listApps(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::ListAppsOutcomeCallable OpenSearchClient::listAppsCallable(const ListAppsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listApps(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::ListDataCollectionsOutcome OpenSearchClient::listDataCollections(const ListDataCollectionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListDataCollectionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListDataCollectionsOutcome(ListDataCollectionsResult(outcome.result())); + else + return ListDataCollectionsOutcome(outcome.error()); +} + +void OpenSearchClient::listDataCollectionsAsync(const ListDataCollectionsRequest& request, const ListDataCollectionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listDataCollections(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::ListDataCollectionsOutcomeCallable OpenSearchClient::listDataCollectionsCallable(const ListDataCollectionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listDataCollections(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::ListDeployedAlgorithmModelsOutcome OpenSearchClient::listDeployedAlgorithmModels(const ListDeployedAlgorithmModelsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListDeployedAlgorithmModelsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListDeployedAlgorithmModelsOutcome(ListDeployedAlgorithmModelsResult(outcome.result())); + else + return ListDeployedAlgorithmModelsOutcome(outcome.error()); +} + +void OpenSearchClient::listDeployedAlgorithmModelsAsync(const ListDeployedAlgorithmModelsRequest& request, const ListDeployedAlgorithmModelsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listDeployedAlgorithmModels(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::ListDeployedAlgorithmModelsOutcomeCallable OpenSearchClient::listDeployedAlgorithmModelsCallable(const ListDeployedAlgorithmModelsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listDeployedAlgorithmModels(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::ListFirstRanksOutcome OpenSearchClient::listFirstRanks(const ListFirstRanksRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListFirstRanksOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListFirstRanksOutcome(ListFirstRanksResult(outcome.result())); + else + return ListFirstRanksOutcome(outcome.error()); +} + +void OpenSearchClient::listFirstRanksAsync(const ListFirstRanksRequest& request, const ListFirstRanksAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listFirstRanks(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::ListFirstRanksOutcomeCallable OpenSearchClient::listFirstRanksCallable(const ListFirstRanksRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listFirstRanks(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::ListInterventionDictionariesOutcome OpenSearchClient::listInterventionDictionaries(const ListInterventionDictionariesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListInterventionDictionariesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListInterventionDictionariesOutcome(ListInterventionDictionariesResult(outcome.result())); + else + return ListInterventionDictionariesOutcome(outcome.error()); +} + +void OpenSearchClient::listInterventionDictionariesAsync(const ListInterventionDictionariesRequest& request, const ListInterventionDictionariesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listInterventionDictionaries(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::ListInterventionDictionariesOutcomeCallable OpenSearchClient::listInterventionDictionariesCallable(const ListInterventionDictionariesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listInterventionDictionaries(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::ListInterventionDictionaryEntriesOutcome OpenSearchClient::listInterventionDictionaryEntries(const ListInterventionDictionaryEntriesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListInterventionDictionaryEntriesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListInterventionDictionaryEntriesOutcome(ListInterventionDictionaryEntriesResult(outcome.result())); + else + return ListInterventionDictionaryEntriesOutcome(outcome.error()); +} + +void OpenSearchClient::listInterventionDictionaryEntriesAsync(const ListInterventionDictionaryEntriesRequest& request, const ListInterventionDictionaryEntriesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listInterventionDictionaryEntries(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::ListInterventionDictionaryEntriesOutcomeCallable OpenSearchClient::listInterventionDictionaryEntriesCallable(const ListInterventionDictionaryEntriesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listInterventionDictionaryEntries(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::ListInterventionDictionaryNerResultsOutcome OpenSearchClient::listInterventionDictionaryNerResults(const ListInterventionDictionaryNerResultsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListInterventionDictionaryNerResultsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListInterventionDictionaryNerResultsOutcome(ListInterventionDictionaryNerResultsResult(outcome.result())); + else + return ListInterventionDictionaryNerResultsOutcome(outcome.error()); +} + +void OpenSearchClient::listInterventionDictionaryNerResultsAsync(const ListInterventionDictionaryNerResultsRequest& request, const ListInterventionDictionaryNerResultsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listInterventionDictionaryNerResults(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::ListInterventionDictionaryNerResultsOutcomeCallable OpenSearchClient::listInterventionDictionaryNerResultsCallable(const ListInterventionDictionaryNerResultsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listInterventionDictionaryNerResults(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::ListInterventionDictionaryRelatedEntitiesOutcome OpenSearchClient::listInterventionDictionaryRelatedEntities(const ListInterventionDictionaryRelatedEntitiesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListInterventionDictionaryRelatedEntitiesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListInterventionDictionaryRelatedEntitiesOutcome(ListInterventionDictionaryRelatedEntitiesResult(outcome.result())); + else + return ListInterventionDictionaryRelatedEntitiesOutcome(outcome.error()); +} + +void OpenSearchClient::listInterventionDictionaryRelatedEntitiesAsync(const ListInterventionDictionaryRelatedEntitiesRequest& request, const ListInterventionDictionaryRelatedEntitiesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listInterventionDictionaryRelatedEntities(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::ListInterventionDictionaryRelatedEntitiesOutcomeCallable OpenSearchClient::listInterventionDictionaryRelatedEntitiesCallable(const ListInterventionDictionaryRelatedEntitiesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listInterventionDictionaryRelatedEntities(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::ListModelsOutcome OpenSearchClient::listModels(const ListModelsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListModelsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListModelsOutcome(ListModelsResult(outcome.result())); + else + return ListModelsOutcome(outcome.error()); +} + +void OpenSearchClient::listModelsAsync(const ListModelsRequest& request, const ListModelsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listModels(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::ListModelsOutcomeCallable OpenSearchClient::listModelsCallable(const ListModelsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listModels(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::ListQueryProcessorNersOutcome OpenSearchClient::listQueryProcessorNers(const ListQueryProcessorNersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListQueryProcessorNersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListQueryProcessorNersOutcome(ListQueryProcessorNersResult(outcome.result())); + else + return ListQueryProcessorNersOutcome(outcome.error()); +} + +void OpenSearchClient::listQueryProcessorNersAsync(const ListQueryProcessorNersRequest& request, const ListQueryProcessorNersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listQueryProcessorNers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::ListQueryProcessorNersOutcomeCallable OpenSearchClient::listQueryProcessorNersCallable(const ListQueryProcessorNersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listQueryProcessorNers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::ListQueryProcessorsOutcome OpenSearchClient::listQueryProcessors(const ListQueryProcessorsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListQueryProcessorsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListQueryProcessorsOutcome(ListQueryProcessorsResult(outcome.result())); + else + return ListQueryProcessorsOutcome(outcome.error()); +} + +void OpenSearchClient::listQueryProcessorsAsync(const ListQueryProcessorsRequest& request, const ListQueryProcessorsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listQueryProcessors(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::ListQueryProcessorsOutcomeCallable OpenSearchClient::listQueryProcessorsCallable(const ListQueryProcessorsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listQueryProcessors(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::ListScheduledTasksOutcome OpenSearchClient::listScheduledTasks(const ListScheduledTasksRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListScheduledTasksOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListScheduledTasksOutcome(ListScheduledTasksResult(outcome.result())); + else + return ListScheduledTasksOutcome(outcome.error()); +} + +void OpenSearchClient::listScheduledTasksAsync(const ListScheduledTasksRequest& request, const ListScheduledTasksAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listScheduledTasks(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::ListScheduledTasksOutcomeCallable OpenSearchClient::listScheduledTasksCallable(const ListScheduledTasksRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listScheduledTasks(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::ListSecondRanksOutcome OpenSearchClient::listSecondRanks(const ListSecondRanksRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSecondRanksOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSecondRanksOutcome(ListSecondRanksResult(outcome.result())); + else + return ListSecondRanksOutcome(outcome.error()); +} + +void OpenSearchClient::listSecondRanksAsync(const ListSecondRanksRequest& request, const ListSecondRanksAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSecondRanks(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::ListSecondRanksOutcomeCallable OpenSearchClient::listSecondRanksCallable(const ListSecondRanksRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSecondRanks(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::ListSlowQueryCategoriesOutcome OpenSearchClient::listSlowQueryCategories(const ListSlowQueryCategoriesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSlowQueryCategoriesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSlowQueryCategoriesOutcome(ListSlowQueryCategoriesResult(outcome.result())); + else + return ListSlowQueryCategoriesOutcome(outcome.error()); +} + +void OpenSearchClient::listSlowQueryCategoriesAsync(const ListSlowQueryCategoriesRequest& request, const ListSlowQueryCategoriesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSlowQueryCategories(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::ListSlowQueryCategoriesOutcomeCallable OpenSearchClient::listSlowQueryCategoriesCallable(const ListSlowQueryCategoriesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSlowQueryCategories(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::ListSlowQueryQueriesOutcome OpenSearchClient::listSlowQueryQueries(const ListSlowQueryQueriesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSlowQueryQueriesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSlowQueryQueriesOutcome(ListSlowQueryQueriesResult(outcome.result())); + else + return ListSlowQueryQueriesOutcome(outcome.error()); +} + +void OpenSearchClient::listSlowQueryQueriesAsync(const ListSlowQueryQueriesRequest& request, const ListSlowQueryQueriesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSlowQueryQueries(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::ListSlowQueryQueriesOutcomeCallable OpenSearchClient::listSlowQueryQueriesCallable(const ListSlowQueryQueriesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSlowQueryQueries(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::ListSortExpressionsOutcome OpenSearchClient::listSortExpressions(const ListSortExpressionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSortExpressionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSortExpressionsOutcome(ListSortExpressionsResult(outcome.result())); + else + return ListSortExpressionsOutcome(outcome.error()); +} + +void OpenSearchClient::listSortExpressionsAsync(const ListSortExpressionsRequest& request, const ListSortExpressionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSortExpressions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::ListSortExpressionsOutcomeCallable OpenSearchClient::listSortExpressionsCallable(const ListSortExpressionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSortExpressions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::ListSortScriptsOutcome OpenSearchClient::listSortScripts(const ListSortScriptsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSortScriptsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSortScriptsOutcome(ListSortScriptsResult(outcome.result())); + else + return ListSortScriptsOutcome(outcome.error()); +} + +void OpenSearchClient::listSortScriptsAsync(const ListSortScriptsRequest& request, const ListSortScriptsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSortScripts(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::ListSortScriptsOutcomeCallable OpenSearchClient::listSortScriptsCallable(const ListSortScriptsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSortScripts(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::ListStatisticLogsOutcome OpenSearchClient::listStatisticLogs(const ListStatisticLogsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListStatisticLogsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListStatisticLogsOutcome(ListStatisticLogsResult(outcome.result())); + else + return ListStatisticLogsOutcome(outcome.error()); +} + +void OpenSearchClient::listStatisticLogsAsync(const ListStatisticLogsRequest& request, const ListStatisticLogsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listStatisticLogs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::ListStatisticLogsOutcomeCallable OpenSearchClient::listStatisticLogsCallable(const ListStatisticLogsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listStatisticLogs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::ListStatisticReportOutcome OpenSearchClient::listStatisticReport(const ListStatisticReportRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListStatisticReportOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListStatisticReportOutcome(ListStatisticReportResult(outcome.result())); + else + return ListStatisticReportOutcome(outcome.error()); +} + +void OpenSearchClient::listStatisticReportAsync(const ListStatisticReportRequest& request, const ListStatisticReportAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listStatisticReport(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::ListStatisticReportOutcomeCallable OpenSearchClient::listStatisticReportCallable(const ListStatisticReportRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listStatisticReport(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::ListUserAnalyzerEntriesOutcome OpenSearchClient::listUserAnalyzerEntries(const ListUserAnalyzerEntriesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListUserAnalyzerEntriesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListUserAnalyzerEntriesOutcome(ListUserAnalyzerEntriesResult(outcome.result())); + else + return ListUserAnalyzerEntriesOutcome(outcome.error()); +} + +void OpenSearchClient::listUserAnalyzerEntriesAsync(const ListUserAnalyzerEntriesRequest& request, const ListUserAnalyzerEntriesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listUserAnalyzerEntries(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::ListUserAnalyzerEntriesOutcomeCallable OpenSearchClient::listUserAnalyzerEntriesCallable(const ListUserAnalyzerEntriesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listUserAnalyzerEntries(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::ListUserAnalyzersOutcome OpenSearchClient::listUserAnalyzers(const ListUserAnalyzersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListUserAnalyzersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListUserAnalyzersOutcome(ListUserAnalyzersResult(outcome.result())); + else + return ListUserAnalyzersOutcome(outcome.error()); +} + +void OpenSearchClient::listUserAnalyzersAsync(const ListUserAnalyzersRequest& request, const ListUserAnalyzersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listUserAnalyzers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::ListUserAnalyzersOutcomeCallable OpenSearchClient::listUserAnalyzersCallable(const ListUserAnalyzersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listUserAnalyzers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::ModifyAppGroupOutcome OpenSearchClient::modifyAppGroup(const ModifyAppGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyAppGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyAppGroupOutcome(ModifyAppGroupResult(outcome.result())); + else + return ModifyAppGroupOutcome(outcome.error()); +} + +void OpenSearchClient::modifyAppGroupAsync(const ModifyAppGroupRequest& request, const ModifyAppGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyAppGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::ModifyAppGroupOutcomeCallable OpenSearchClient::modifyAppGroupCallable(const ModifyAppGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyAppGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::ModifyAppGroupQuotaOutcome OpenSearchClient::modifyAppGroupQuota(const ModifyAppGroupQuotaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyAppGroupQuotaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyAppGroupQuotaOutcome(ModifyAppGroupQuotaResult(outcome.result())); + else + return ModifyAppGroupQuotaOutcome(outcome.error()); +} + +void OpenSearchClient::modifyAppGroupQuotaAsync(const ModifyAppGroupQuotaRequest& request, const ModifyAppGroupQuotaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyAppGroupQuota(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::ModifyAppGroupQuotaOutcomeCallable OpenSearchClient::modifyAppGroupQuotaCallable(const ModifyAppGroupQuotaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyAppGroupQuota(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::ModifyFirstRankOutcome OpenSearchClient::modifyFirstRank(const ModifyFirstRankRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyFirstRankOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyFirstRankOutcome(ModifyFirstRankResult(outcome.result())); + else + return ModifyFirstRankOutcome(outcome.error()); +} + +void OpenSearchClient::modifyFirstRankAsync(const ModifyFirstRankRequest& request, const ModifyFirstRankAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyFirstRank(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::ModifyFirstRankOutcomeCallable OpenSearchClient::modifyFirstRankCallable(const ModifyFirstRankRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyFirstRank(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::ModifyModelOutcome OpenSearchClient::modifyModel(const ModifyModelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyModelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyModelOutcome(ModifyModelResult(outcome.result())); + else + return ModifyModelOutcome(outcome.error()); +} + +void OpenSearchClient::modifyModelAsync(const ModifyModelRequest& request, const ModifyModelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyModel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::ModifyModelOutcomeCallable OpenSearchClient::modifyModelCallable(const ModifyModelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyModel(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::ModifyQueryProcessorOutcome OpenSearchClient::modifyQueryProcessor(const ModifyQueryProcessorRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyQueryProcessorOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyQueryProcessorOutcome(ModifyQueryProcessorResult(outcome.result())); + else + return ModifyQueryProcessorOutcome(outcome.error()); +} + +void OpenSearchClient::modifyQueryProcessorAsync(const ModifyQueryProcessorRequest& request, const ModifyQueryProcessorAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyQueryProcessor(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::ModifyQueryProcessorOutcomeCallable OpenSearchClient::modifyQueryProcessorCallable(const ModifyQueryProcessorRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyQueryProcessor(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::ModifyScheduledTaskOutcome OpenSearchClient::modifyScheduledTask(const ModifyScheduledTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyScheduledTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyScheduledTaskOutcome(ModifyScheduledTaskResult(outcome.result())); + else + return ModifyScheduledTaskOutcome(outcome.error()); +} + +void OpenSearchClient::modifyScheduledTaskAsync(const ModifyScheduledTaskRequest& request, const ModifyScheduledTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyScheduledTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::ModifyScheduledTaskOutcomeCallable OpenSearchClient::modifyScheduledTaskCallable(const ModifyScheduledTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyScheduledTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::ModifySecondRankOutcome OpenSearchClient::modifySecondRank(const ModifySecondRankRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifySecondRankOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifySecondRankOutcome(ModifySecondRankResult(outcome.result())); + else + return ModifySecondRankOutcome(outcome.error()); +} + +void OpenSearchClient::modifySecondRankAsync(const ModifySecondRankRequest& request, const ModifySecondRankAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifySecondRank(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::ModifySecondRankOutcomeCallable OpenSearchClient::modifySecondRankCallable(const ModifySecondRankRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifySecondRank(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::PreviewModelOutcome OpenSearchClient::previewModel(const PreviewModelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PreviewModelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PreviewModelOutcome(PreviewModelResult(outcome.result())); + else + return PreviewModelOutcome(outcome.error()); +} + +void OpenSearchClient::previewModelAsync(const PreviewModelRequest& request, const PreviewModelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, previewModel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::PreviewModelOutcomeCallable OpenSearchClient::previewModelCallable(const PreviewModelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->previewModel(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::PushInterventionDictionaryEntriesOutcome OpenSearchClient::pushInterventionDictionaryEntries(const PushInterventionDictionaryEntriesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PushInterventionDictionaryEntriesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PushInterventionDictionaryEntriesOutcome(PushInterventionDictionaryEntriesResult(outcome.result())); + else + return PushInterventionDictionaryEntriesOutcome(outcome.error()); +} + +void OpenSearchClient::pushInterventionDictionaryEntriesAsync(const PushInterventionDictionaryEntriesRequest& request, const PushInterventionDictionaryEntriesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, pushInterventionDictionaryEntries(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::PushInterventionDictionaryEntriesOutcomeCallable OpenSearchClient::pushInterventionDictionaryEntriesCallable(const PushInterventionDictionaryEntriesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->pushInterventionDictionaryEntries(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::PushUserAnalyzerEntriesOutcome OpenSearchClient::pushUserAnalyzerEntries(const PushUserAnalyzerEntriesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PushUserAnalyzerEntriesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PushUserAnalyzerEntriesOutcome(PushUserAnalyzerEntriesResult(outcome.result())); + else + return PushUserAnalyzerEntriesOutcome(outcome.error()); +} + +void OpenSearchClient::pushUserAnalyzerEntriesAsync(const PushUserAnalyzerEntriesRequest& request, const PushUserAnalyzerEntriesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, pushUserAnalyzerEntries(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::PushUserAnalyzerEntriesOutcomeCallable OpenSearchClient::pushUserAnalyzerEntriesCallable(const PushUserAnalyzerEntriesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->pushUserAnalyzerEntries(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::RankPreviewQueryOutcome OpenSearchClient::rankPreviewQuery(const RankPreviewQueryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RankPreviewQueryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RankPreviewQueryOutcome(RankPreviewQueryResult(outcome.result())); + else + return RankPreviewQueryOutcome(outcome.error()); +} + +void OpenSearchClient::rankPreviewQueryAsync(const RankPreviewQueryRequest& request, const RankPreviewQueryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, rankPreviewQuery(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::RankPreviewQueryOutcomeCallable OpenSearchClient::rankPreviewQueryCallable(const RankPreviewQueryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->rankPreviewQuery(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::ReleaseSortScriptOutcome OpenSearchClient::releaseSortScript(const ReleaseSortScriptRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ReleaseSortScriptOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ReleaseSortScriptOutcome(ReleaseSortScriptResult(outcome.result())); + else + return ReleaseSortScriptOutcome(outcome.error()); +} + +void OpenSearchClient::releaseSortScriptAsync(const ReleaseSortScriptRequest& request, const ReleaseSortScriptAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, releaseSortScript(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::ReleaseSortScriptOutcomeCallable OpenSearchClient::releaseSortScriptCallable(const ReleaseSortScriptRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->releaseSortScript(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::RemoveAppOutcome OpenSearchClient::removeApp(const RemoveAppRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveAppOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveAppOutcome(RemoveAppResult(outcome.result())); + else + return RemoveAppOutcome(outcome.error()); +} + +void OpenSearchClient::removeAppAsync(const RemoveAppRequest& request, const RemoveAppAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeApp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::RemoveAppOutcomeCallable OpenSearchClient::removeAppCallable(const RemoveAppRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeApp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::RemoveAppGroupOutcome OpenSearchClient::removeAppGroup(const RemoveAppGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveAppGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveAppGroupOutcome(RemoveAppGroupResult(outcome.result())); + else + return RemoveAppGroupOutcome(outcome.error()); +} + +void OpenSearchClient::removeAppGroupAsync(const RemoveAppGroupRequest& request, const RemoveAppGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeAppGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::RemoveAppGroupOutcomeCallable OpenSearchClient::removeAppGroupCallable(const RemoveAppGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeAppGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::RemoveDataCollectionOutcome OpenSearchClient::removeDataCollection(const RemoveDataCollectionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveDataCollectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveDataCollectionOutcome(RemoveDataCollectionResult(outcome.result())); + else + return RemoveDataCollectionOutcome(outcome.error()); +} + +void OpenSearchClient::removeDataCollectionAsync(const RemoveDataCollectionRequest& request, const RemoveDataCollectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeDataCollection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::RemoveDataCollectionOutcomeCallable OpenSearchClient::removeDataCollectionCallable(const RemoveDataCollectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeDataCollection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::RemoveFirstRankOutcome OpenSearchClient::removeFirstRank(const RemoveFirstRankRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveFirstRankOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveFirstRankOutcome(RemoveFirstRankResult(outcome.result())); + else + return RemoveFirstRankOutcome(outcome.error()); +} + +void OpenSearchClient::removeFirstRankAsync(const RemoveFirstRankRequest& request, const RemoveFirstRankAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeFirstRank(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::RemoveFirstRankOutcomeCallable OpenSearchClient::removeFirstRankCallable(const RemoveFirstRankRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeFirstRank(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::RemoveInterventionDictionaryOutcome OpenSearchClient::removeInterventionDictionary(const RemoveInterventionDictionaryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveInterventionDictionaryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveInterventionDictionaryOutcome(RemoveInterventionDictionaryResult(outcome.result())); + else + return RemoveInterventionDictionaryOutcome(outcome.error()); +} + +void OpenSearchClient::removeInterventionDictionaryAsync(const RemoveInterventionDictionaryRequest& request, const RemoveInterventionDictionaryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeInterventionDictionary(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::RemoveInterventionDictionaryOutcomeCallable OpenSearchClient::removeInterventionDictionaryCallable(const RemoveInterventionDictionaryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeInterventionDictionary(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::RemoveQueryProcessorOutcome OpenSearchClient::removeQueryProcessor(const RemoveQueryProcessorRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveQueryProcessorOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveQueryProcessorOutcome(RemoveQueryProcessorResult(outcome.result())); + else + return RemoveQueryProcessorOutcome(outcome.error()); +} + +void OpenSearchClient::removeQueryProcessorAsync(const RemoveQueryProcessorRequest& request, const RemoveQueryProcessorAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeQueryProcessor(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::RemoveQueryProcessorOutcomeCallable OpenSearchClient::removeQueryProcessorCallable(const RemoveQueryProcessorRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeQueryProcessor(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::RemoveScheduledTaskOutcome OpenSearchClient::removeScheduledTask(const RemoveScheduledTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveScheduledTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveScheduledTaskOutcome(RemoveScheduledTaskResult(outcome.result())); + else + return RemoveScheduledTaskOutcome(outcome.error()); +} + +void OpenSearchClient::removeScheduledTaskAsync(const RemoveScheduledTaskRequest& request, const RemoveScheduledTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeScheduledTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::RemoveScheduledTaskOutcomeCallable OpenSearchClient::removeScheduledTaskCallable(const RemoveScheduledTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeScheduledTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::RemoveSecondRankOutcome OpenSearchClient::removeSecondRank(const RemoveSecondRankRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveSecondRankOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveSecondRankOutcome(RemoveSecondRankResult(outcome.result())); + else + return RemoveSecondRankOutcome(outcome.error()); +} + +void OpenSearchClient::removeSecondRankAsync(const RemoveSecondRankRequest& request, const RemoveSecondRankAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeSecondRank(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::RemoveSecondRankOutcomeCallable OpenSearchClient::removeSecondRankCallable(const RemoveSecondRankRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeSecondRank(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::RemoveUserAnalyzerOutcome OpenSearchClient::removeUserAnalyzer(const RemoveUserAnalyzerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveUserAnalyzerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveUserAnalyzerOutcome(RemoveUserAnalyzerResult(outcome.result())); + else + return RemoveUserAnalyzerOutcome(outcome.error()); +} + +void OpenSearchClient::removeUserAnalyzerAsync(const RemoveUserAnalyzerRequest& request, const RemoveUserAnalyzerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeUserAnalyzer(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::RemoveUserAnalyzerOutcomeCallable OpenSearchClient::removeUserAnalyzerCallable(const RemoveUserAnalyzerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeUserAnalyzer(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::RenewAppGroupOutcome OpenSearchClient::renewAppGroup(const RenewAppGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RenewAppGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RenewAppGroupOutcome(RenewAppGroupResult(outcome.result())); + else + return RenewAppGroupOutcome(outcome.error()); +} + +void OpenSearchClient::renewAppGroupAsync(const RenewAppGroupRequest& request, const RenewAppGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, renewAppGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::RenewAppGroupOutcomeCallable OpenSearchClient::renewAppGroupCallable(const RenewAppGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->renewAppGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::ReplaceAppGroupCommodityCodeOutcome OpenSearchClient::replaceAppGroupCommodityCode(const ReplaceAppGroupCommodityCodeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ReplaceAppGroupCommodityCodeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ReplaceAppGroupCommodityCodeOutcome(ReplaceAppGroupCommodityCodeResult(outcome.result())); + else + return ReplaceAppGroupCommodityCodeOutcome(outcome.error()); +} + +void OpenSearchClient::replaceAppGroupCommodityCodeAsync(const ReplaceAppGroupCommodityCodeRequest& request, const ReplaceAppGroupCommodityCodeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, replaceAppGroupCommodityCode(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::ReplaceAppGroupCommodityCodeOutcomeCallable OpenSearchClient::replaceAppGroupCommodityCodeCallable(const ReplaceAppGroupCommodityCodeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->replaceAppGroupCommodityCode(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::SaveSortScriptFileOutcome OpenSearchClient::saveSortScriptFile(const SaveSortScriptFileRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SaveSortScriptFileOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SaveSortScriptFileOutcome(SaveSortScriptFileResult(outcome.result())); + else + return SaveSortScriptFileOutcome(outcome.error()); +} + +void OpenSearchClient::saveSortScriptFileAsync(const SaveSortScriptFileRequest& request, const SaveSortScriptFileAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, saveSortScriptFile(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::SaveSortScriptFileOutcomeCallable OpenSearchClient::saveSortScriptFileCallable(const SaveSortScriptFileRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->saveSortScriptFile(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::StartSlowQueryAnalyzerOutcome OpenSearchClient::startSlowQueryAnalyzer(const StartSlowQueryAnalyzerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StartSlowQueryAnalyzerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartSlowQueryAnalyzerOutcome(StartSlowQueryAnalyzerResult(outcome.result())); + else + return StartSlowQueryAnalyzerOutcome(outcome.error()); +} + +void OpenSearchClient::startSlowQueryAnalyzerAsync(const StartSlowQueryAnalyzerRequest& request, const StartSlowQueryAnalyzerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startSlowQueryAnalyzer(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::StartSlowQueryAnalyzerOutcomeCallable OpenSearchClient::startSlowQueryAnalyzerCallable(const StartSlowQueryAnalyzerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startSlowQueryAnalyzer(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::TrainModelOutcome OpenSearchClient::trainModel(const TrainModelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return TrainModelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TrainModelOutcome(TrainModelResult(outcome.result())); + else + return TrainModelOutcome(outcome.error()); +} + +void OpenSearchClient::trainModelAsync(const TrainModelRequest& request, const TrainModelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, trainModel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::TrainModelOutcomeCallable OpenSearchClient::trainModelCallable(const TrainModelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->trainModel(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::UpdateABTestExperimentOutcome OpenSearchClient::updateABTestExperiment(const UpdateABTestExperimentRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateABTestExperimentOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateABTestExperimentOutcome(UpdateABTestExperimentResult(outcome.result())); + else + return UpdateABTestExperimentOutcome(outcome.error()); +} + +void OpenSearchClient::updateABTestExperimentAsync(const UpdateABTestExperimentRequest& request, const UpdateABTestExperimentAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateABTestExperiment(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::UpdateABTestExperimentOutcomeCallable OpenSearchClient::updateABTestExperimentCallable(const UpdateABTestExperimentRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateABTestExperiment(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::UpdateABTestFixedFlowDividersOutcome OpenSearchClient::updateABTestFixedFlowDividers(const UpdateABTestFixedFlowDividersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateABTestFixedFlowDividersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateABTestFixedFlowDividersOutcome(UpdateABTestFixedFlowDividersResult(outcome.result())); + else + return UpdateABTestFixedFlowDividersOutcome(outcome.error()); +} + +void OpenSearchClient::updateABTestFixedFlowDividersAsync(const UpdateABTestFixedFlowDividersRequest& request, const UpdateABTestFixedFlowDividersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateABTestFixedFlowDividers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::UpdateABTestFixedFlowDividersOutcomeCallable OpenSearchClient::updateABTestFixedFlowDividersCallable(const UpdateABTestFixedFlowDividersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateABTestFixedFlowDividers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::UpdateABTestGroupOutcome OpenSearchClient::updateABTestGroup(const UpdateABTestGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateABTestGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateABTestGroupOutcome(UpdateABTestGroupResult(outcome.result())); + else + return UpdateABTestGroupOutcome(outcome.error()); +} + +void OpenSearchClient::updateABTestGroupAsync(const UpdateABTestGroupRequest& request, const UpdateABTestGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateABTestGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::UpdateABTestGroupOutcomeCallable OpenSearchClient::updateABTestGroupCallable(const UpdateABTestGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateABTestGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::UpdateABTestSceneOutcome OpenSearchClient::updateABTestScene(const UpdateABTestSceneRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateABTestSceneOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateABTestSceneOutcome(UpdateABTestSceneResult(outcome.result())); + else + return UpdateABTestSceneOutcome(outcome.error()); +} + +void OpenSearchClient::updateABTestSceneAsync(const UpdateABTestSceneRequest& request, const UpdateABTestSceneAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateABTestScene(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::UpdateABTestSceneOutcomeCallable OpenSearchClient::updateABTestSceneCallable(const UpdateABTestSceneRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateABTestScene(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::UpdateFetchFieldsOutcome OpenSearchClient::updateFetchFields(const UpdateFetchFieldsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateFetchFieldsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateFetchFieldsOutcome(UpdateFetchFieldsResult(outcome.result())); + else + return UpdateFetchFieldsOutcome(outcome.error()); +} + +void OpenSearchClient::updateFetchFieldsAsync(const UpdateFetchFieldsRequest& request, const UpdateFetchFieldsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateFetchFields(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::UpdateFetchFieldsOutcomeCallable OpenSearchClient::updateFetchFieldsCallable(const UpdateFetchFieldsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateFetchFields(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::UpdateSummariesOutcome OpenSearchClient::updateSummaries(const UpdateSummariesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateSummariesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateSummariesOutcome(UpdateSummariesResult(outcome.result())); + else + return UpdateSummariesOutcome(outcome.error()); +} + +void OpenSearchClient::updateSummariesAsync(const UpdateSummariesRequest& request, const UpdateSummariesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateSummaries(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::UpdateSummariesOutcomeCallable OpenSearchClient::updateSummariesCallable(const UpdateSummariesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateSummaries(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/opensearch/src/model/CompileSortScriptRequest.cc b/opensearch/src/model/CompileSortScriptRequest.cc new file mode 100644 index 000000000..57d98aea3 --- /dev/null +++ b/opensearch/src/model/CompileSortScriptRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::CompileSortScriptRequest; + +CompileSortScriptRequest::CompileSortScriptRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appVersionId]/sort-scripts/[scriptName]/actions/compiling"); + setMethod(HttpRequest::Method::Post); +} + +CompileSortScriptRequest::~CompileSortScriptRequest() +{} + +std::string CompileSortScriptRequest::getAppVersionId()const +{ + return appVersionId_; +} + +void CompileSortScriptRequest::setAppVersionId(const std::string& appVersionId) +{ + appVersionId_ = appVersionId; + setParameter("AppVersionId", appVersionId); +} + +std::string CompileSortScriptRequest::getScriptName()const +{ + return scriptName_; +} + +void CompileSortScriptRequest::setScriptName(const std::string& scriptName) +{ + scriptName_ = scriptName; + setParameter("ScriptName", scriptName); +} + +std::string CompileSortScriptRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void CompileSortScriptRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/CompileSortScriptResult.cc b/opensearch/src/model/CompileSortScriptResult.cc new file mode 100644 index 000000000..bb7e09475 --- /dev/null +++ b/opensearch/src/model/CompileSortScriptResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +CompileSortScriptResult::CompileSortScriptResult() : + ServiceResult() +{} + +CompileSortScriptResult::CompileSortScriptResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CompileSortScriptResult::~CompileSortScriptResult() +{} + +void CompileSortScriptResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string CompileSortScriptResult::getRequestId()const +{ + return requestId_; +} + diff --git a/opensearch/src/model/CreateABTestExperimentRequest.cc b/opensearch/src/model/CreateABTestExperimentRequest.cc new file mode 100644 index 000000000..dc4f7a638 --- /dev/null +++ b/opensearch/src/model/CreateABTestExperimentRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::CreateABTestExperimentRequest; + +CreateABTestExperimentRequest::CreateABTestExperimentRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/scenes/[sceneId]/groups/[groupId]/experiments"); + setMethod(HttpRequest::Method::Post); +} + +CreateABTestExperimentRequest::~CreateABTestExperimentRequest() +{} + +int CreateABTestExperimentRequest::getGroupId()const +{ + return groupId_; +} + +void CreateABTestExperimentRequest::setGroupId(int groupId) +{ + groupId_ = groupId; + setParameter("GroupId", std::to_string(groupId)); +} + +int CreateABTestExperimentRequest::getSceneId()const +{ + return sceneId_; +} + +void CreateABTestExperimentRequest::setSceneId(int sceneId) +{ + sceneId_ = sceneId; + setParameter("SceneId", std::to_string(sceneId)); +} + +std::string CreateABTestExperimentRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void CreateABTestExperimentRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/CreateABTestExperimentResult.cc b/opensearch/src/model/CreateABTestExperimentResult.cc new file mode 100644 index 000000000..3dc36a6af --- /dev/null +++ b/opensearch/src/model/CreateABTestExperimentResult.cc @@ -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 +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +CreateABTestExperimentResult::CreateABTestExperimentResult() : + ServiceResult() +{} + +CreateABTestExperimentResult::CreateABTestExperimentResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateABTestExperimentResult::~CreateABTestExperimentResult() +{} + +void CreateABTestExperimentResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["id"].isNull()) + result_.id = resultNode["id"].asString(); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["params"].isNull()) + result_.params = resultNode["params"].asString(); + if(!resultNode["created"].isNull()) + result_.created = std::stoi(resultNode["created"].asString()); + if(!resultNode["updated"].isNull()) + result_.updated = std::stoi(resultNode["updated"].asString()); + if(!resultNode["online"].isNull()) + result_.online = resultNode["online"].asString() == "true"; + if(!resultNode["traffic"].isNull()) + result_.traffic = std::stoi(resultNode["traffic"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string CreateABTestExperimentResult::getRequestId()const +{ + return requestId_; +} + +CreateABTestExperimentResult::Result CreateABTestExperimentResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/CreateABTestGroupRequest.cc b/opensearch/src/model/CreateABTestGroupRequest.cc new file mode 100644 index 000000000..2d4ceed2b --- /dev/null +++ b/opensearch/src/model/CreateABTestGroupRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::CreateABTestGroupRequest; + +CreateABTestGroupRequest::CreateABTestGroupRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/scenes/[sceneId]/groups"); + setMethod(HttpRequest::Method::Post); +} + +CreateABTestGroupRequest::~CreateABTestGroupRequest() +{} + +int CreateABTestGroupRequest::getSceneId()const +{ + return sceneId_; +} + +void CreateABTestGroupRequest::setSceneId(int sceneId) +{ + sceneId_ = sceneId; + setParameter("SceneId", std::to_string(sceneId)); +} + +std::string CreateABTestGroupRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void CreateABTestGroupRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/CreateABTestGroupResult.cc b/opensearch/src/model/CreateABTestGroupResult.cc new file mode 100644 index 000000000..8ca7b9a76 --- /dev/null +++ b/opensearch/src/model/CreateABTestGroupResult.cc @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +CreateABTestGroupResult::CreateABTestGroupResult() : + ServiceResult() +{} + +CreateABTestGroupResult::CreateABTestGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateABTestGroupResult::~CreateABTestGroupResult() +{} + +void CreateABTestGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["id"].isNull()) + result_.id = resultNode["id"].asString(); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["status"].isNull()) + result_.status = std::stoi(resultNode["status"].asString()); + if(!resultNode["created"].isNull()) + result_.created = std::stoi(resultNode["created"].asString()); + if(!resultNode["updated"].isNull()) + result_.updated = std::stoi(resultNode["updated"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string CreateABTestGroupResult::getRequestId()const +{ + return requestId_; +} + +CreateABTestGroupResult::Result CreateABTestGroupResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/CreateABTestSceneRequest.cc b/opensearch/src/model/CreateABTestSceneRequest.cc new file mode 100644 index 000000000..e21766dce --- /dev/null +++ b/opensearch/src/model/CreateABTestSceneRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::CreateABTestSceneRequest; + +CreateABTestSceneRequest::CreateABTestSceneRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/scenes"); + setMethod(HttpRequest::Method::Post); +} + +CreateABTestSceneRequest::~CreateABTestSceneRequest() +{} + +std::string CreateABTestSceneRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void CreateABTestSceneRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/CreateABTestSceneResult.cc b/opensearch/src/model/CreateABTestSceneResult.cc new file mode 100644 index 000000000..39fd2ea1a --- /dev/null +++ b/opensearch/src/model/CreateABTestSceneResult.cc @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +CreateABTestSceneResult::CreateABTestSceneResult() : + ServiceResult() +{} + +CreateABTestSceneResult::CreateABTestSceneResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateABTestSceneResult::~CreateABTestSceneResult() +{} + +void CreateABTestSceneResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["id"].isNull()) + result_.id = resultNode["id"].asString(); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["status"].isNull()) + result_.status = std::stoi(resultNode["status"].asString()); + if(!resultNode["created"].isNull()) + result_.created = std::stoi(resultNode["created"].asString()); + if(!resultNode["updated"].isNull()) + result_.updated = std::stoi(resultNode["updated"].asString()); + auto allValues = resultNode["values"]["values"]; + for (auto value : allValues) + result_.values.push_back(value.asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string CreateABTestSceneResult::getRequestId()const +{ + return requestId_; +} + +CreateABTestSceneResult::Result CreateABTestSceneResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/CreateAppGroupRequest.cc b/opensearch/src/model/CreateAppGroupRequest.cc new file mode 100644 index 000000000..d6edb1881 --- /dev/null +++ b/opensearch/src/model/CreateAppGroupRequest.cc @@ -0,0 +1,30 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::CreateAppGroupRequest; + +CreateAppGroupRequest::CreateAppGroupRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups"); + setMethod(HttpRequest::Method::Post); +} + +CreateAppGroupRequest::~CreateAppGroupRequest() +{} + diff --git a/opensearch/src/model/CreateAppGroupResult.cc b/opensearch/src/model/CreateAppGroupResult.cc new file mode 100644 index 000000000..deb5d6ea7 --- /dev/null +++ b/opensearch/src/model/CreateAppGroupResult.cc @@ -0,0 +1,110 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +CreateAppGroupResult::CreateAppGroupResult() : + ServiceResult() +{} + +CreateAppGroupResult::CreateAppGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateAppGroupResult::~CreateAppGroupResult() +{} + +void CreateAppGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["id"].isNull()) + result_.id = resultNode["id"].asString(); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["currentVersion"].isNull()) + result_.currentVersion = resultNode["currentVersion"].asString(); + if(!resultNode["switchedTime"].isNull()) + result_.switchedTime = std::stoi(resultNode["switchedTime"].asString()); + if(!resultNode["chargingWay"].isNull()) + result_.chargingWay = std::stoi(resultNode["chargingWay"].asString()); + if(!resultNode["type"].isNull()) + result_.type = resultNode["type"].asString(); + if(!resultNode["projectId"].isNull()) + result_.projectId = resultNode["projectId"].asString(); + if(!resultNode["chargeType"].isNull()) + result_.chargeType = resultNode["chargeType"].asString(); + if(!resultNode["expireOn"].isNull()) + result_.expireOn = resultNode["expireOn"].asString(); + if(!resultNode["instanceId"].isNull()) + result_.instanceId = resultNode["instanceId"].asString(); + if(!resultNode["commodityCode"].isNull()) + result_.commodityCode = resultNode["commodityCode"].asString(); + if(!resultNode["processingOrderId"].isNull()) + result_.processingOrderId = resultNode["processingOrderId"].asString(); + if(!resultNode["firstRankAlgoDeploymentId"].isNull()) + result_.firstRankAlgoDeploymentId = std::stoi(resultNode["firstRankAlgoDeploymentId"].asString()); + if(!resultNode["secondRankAlgoDeploymentId"].isNull()) + result_.secondRankAlgoDeploymentId = std::stoi(resultNode["secondRankAlgoDeploymentId"].asString()); + if(!resultNode["pendingSecondRankAlgoDeploymentId"].isNull()) + result_.pendingSecondRankAlgoDeploymentId = std::stoi(resultNode["pendingSecondRankAlgoDeploymentId"].asString()); + if(!resultNode["description"].isNull()) + result_.description = resultNode["description"].asString(); + if(!resultNode["produced"].isNull()) + result_.produced = std::stoi(resultNode["produced"].asString()); + if(!resultNode["lockedByExpiration"].isNull()) + result_.lockedByExpiration = std::stoi(resultNode["lockedByExpiration"].asString()); + if(!resultNode["hasPendingQuotaReviewTask"].isNull()) + result_.hasPendingQuotaReviewTask = std::stoi(resultNode["hasPendingQuotaReviewTask"].asString()); + if(!resultNode["created"].isNull()) + result_.created = std::stoi(resultNode["created"].asString()); + if(!resultNode["updated"].isNull()) + result_.updated = std::stoi(resultNode["updated"].asString()); + if(!resultNode["status"].isNull()) + result_.status = resultNode["status"].asString(); + if(!resultNode["lockMode"].isNull()) + result_.lockMode = resultNode["lockMode"].asString(); + auto quotaNode = resultNode["quota"]; + if(!quotaNode["docSize"].isNull()) + result_.quota.docSize = std::stoi(quotaNode["docSize"].asString()); + if(!quotaNode["computeResource"].isNull()) + result_.quota.computeResource = std::stoi(quotaNode["computeResource"].asString()); + if(!quotaNode["spec"].isNull()) + result_.quota.spec = quotaNode["spec"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string CreateAppGroupResult::getRequestId()const +{ + return requestId_; +} + +CreateAppGroupResult::Result CreateAppGroupResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/CreateAppRequest.cc b/opensearch/src/model/CreateAppRequest.cc new file mode 100644 index 000000000..4e66235b9 --- /dev/null +++ b/opensearch/src/model/CreateAppRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::CreateAppRequest; + +CreateAppRequest::CreateAppRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps"); + setMethod(HttpRequest::Method::Post); +} + +CreateAppRequest::~CreateAppRequest() +{} + +bool CreateAppRequest::getDryRun()const +{ + return dryRun_; +} + +void CreateAppRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + +std::string CreateAppRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void CreateAppRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/CreateAppResult.cc b/opensearch/src/model/CreateAppResult.cc new file mode 100644 index 000000000..e024fe1f4 --- /dev/null +++ b/opensearch/src/model/CreateAppResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +CreateAppResult::CreateAppResult() : + ServiceResult() +{} + +CreateAppResult::CreateAppResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateAppResult::~CreateAppResult() +{} + +void CreateAppResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["result"].isNull()) + result_ = value["result"].asString(); + +} + +std::string CreateAppResult::getRequestId()const +{ + return requestId_; +} + +std::string CreateAppResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/CreateDataCollectionRequest.cc b/opensearch/src/model/CreateDataCollectionRequest.cc new file mode 100644 index 000000000..738907c5b --- /dev/null +++ b/opensearch/src/model/CreateDataCollectionRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::CreateDataCollectionRequest; + +CreateDataCollectionRequest::CreateDataCollectionRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/data-collections"); + setMethod(HttpRequest::Method::Post); +} + +CreateDataCollectionRequest::~CreateDataCollectionRequest() +{} + +std::string CreateDataCollectionRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void CreateDataCollectionRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/CreateDataCollectionResult.cc b/opensearch/src/model/CreateDataCollectionResult.cc new file mode 100644 index 000000000..7c9ebb6bb --- /dev/null +++ b/opensearch/src/model/CreateDataCollectionResult.cc @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +CreateDataCollectionResult::CreateDataCollectionResult() : + ServiceResult() +{} + +CreateDataCollectionResult::CreateDataCollectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDataCollectionResult::~CreateDataCollectionResult() +{} + +void CreateDataCollectionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["id"].isNull()) + result_.id = resultNode["id"].asString(); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["type"].isNull()) + result_.type = resultNode["type"].asString(); + if(!resultNode["status"].isNull()) + result_.status = std::stoi(resultNode["status"].asString()); + if(!resultNode["dataCollectionType"].isNull()) + result_.dataCollectionType = resultNode["dataCollectionType"].asString(); + if(!resultNode["industryName"].isNull()) + result_.industryName = resultNode["industryName"].asString(); + if(!resultNode["created"].isNull()) + result_.created = std::stoi(resultNode["created"].asString()); + if(!resultNode["updated"].isNull()) + result_.updated = std::stoi(resultNode["updated"].asString()); + if(!resultNode["sundialId"].isNull()) + result_.sundialId = resultNode["sundialId"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string CreateDataCollectionResult::getRequestId()const +{ + return requestId_; +} + +CreateDataCollectionResult::Result CreateDataCollectionResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/CreateFirstRankRequest.cc b/opensearch/src/model/CreateFirstRankRequest.cc new file mode 100644 index 000000000..a3bef9240 --- /dev/null +++ b/opensearch/src/model/CreateFirstRankRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::CreateFirstRankRequest; + +CreateFirstRankRequest::CreateFirstRankRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appId]/first-ranks"); + setMethod(HttpRequest::Method::Post); +} + +CreateFirstRankRequest::~CreateFirstRankRequest() +{} + +bool CreateFirstRankRequest::getDryRun()const +{ + return dryRun_; +} + +void CreateFirstRankRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + +int CreateFirstRankRequest::getAppId()const +{ + return appId_; +} + +void CreateFirstRankRequest::setAppId(int appId) +{ + appId_ = appId; + setParameter("AppId", std::to_string(appId)); +} + +std::string CreateFirstRankRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void CreateFirstRankRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/CreateFirstRankResult.cc b/opensearch/src/model/CreateFirstRankResult.cc new file mode 100644 index 000000000..d6bacfbb3 --- /dev/null +++ b/opensearch/src/model/CreateFirstRankResult.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +CreateFirstRankResult::CreateFirstRankResult() : + ServiceResult() +{} + +CreateFirstRankResult::CreateFirstRankResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateFirstRankResult::~CreateFirstRankResult() +{} + +void CreateFirstRankResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["active"].isNull()) + result_.active = resultNode["active"].asString() == "true"; + auto allmetaNode = resultNode["meta"]["metaItem"]; + for (auto resultNodemetametaItem : allmetaNode) + { + Result::MetaItem metaItemObject; + if(!resultNodemetametaItem["attribute"].isNull()) + metaItemObject.attribute = resultNodemetametaItem["attribute"].asString(); + if(!resultNodemetametaItem["arg"].isNull()) + metaItemObject.arg = resultNodemetametaItem["arg"].asString(); + if(!resultNodemetametaItem["weight"].isNull()) + metaItemObject.weight = std::stof(resultNodemetametaItem["weight"].asString()); + result_.meta.push_back(metaItemObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string CreateFirstRankResult::getRequestId()const +{ + return requestId_; +} + +CreateFirstRankResult::Result CreateFirstRankResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/CreateInterventionDictionaryRequest.cc b/opensearch/src/model/CreateInterventionDictionaryRequest.cc new file mode 100644 index 000000000..97f9b80e2 --- /dev/null +++ b/opensearch/src/model/CreateInterventionDictionaryRequest.cc @@ -0,0 +1,30 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::CreateInterventionDictionaryRequest; + +CreateInterventionDictionaryRequest::CreateInterventionDictionaryRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/intervention-dictionaries"); + setMethod(HttpRequest::Method::Post); +} + +CreateInterventionDictionaryRequest::~CreateInterventionDictionaryRequest() +{} + diff --git a/opensearch/src/model/CreateInterventionDictionaryResult.cc b/opensearch/src/model/CreateInterventionDictionaryResult.cc new file mode 100644 index 000000000..3cae3a3f4 --- /dev/null +++ b/opensearch/src/model/CreateInterventionDictionaryResult.cc @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +CreateInterventionDictionaryResult::CreateInterventionDictionaryResult() : + ServiceResult() +{} + +CreateInterventionDictionaryResult::CreateInterventionDictionaryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateInterventionDictionaryResult::~CreateInterventionDictionaryResult() +{} + +void CreateInterventionDictionaryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["type"].isNull()) + result_.type = resultNode["type"].asString(); + if(!resultNode["analyzer"].isNull()) + result_.analyzer = resultNode["analyzer"].asString(); + if(!resultNode["created"].isNull()) + result_.created = resultNode["created"].asString(); + if(!resultNode["updated"].isNull()) + result_.updated = resultNode["updated"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string CreateInterventionDictionaryResult::getRequestId()const +{ + return requestId_; +} + +CreateInterventionDictionaryResult::Result CreateInterventionDictionaryResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/CreateModelRequest.cc b/opensearch/src/model/CreateModelRequest.cc new file mode 100644 index 000000000..7d0d678d0 --- /dev/null +++ b/opensearch/src/model/CreateModelRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::CreateModelRequest; + +CreateModelRequest::CreateModelRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/algorithm/models"); + setMethod(HttpRequest::Method::Post); +} + +CreateModelRequest::~CreateModelRequest() +{} + +std::string CreateModelRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void CreateModelRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/CreateModelResult.cc b/opensearch/src/model/CreateModelResult.cc new file mode 100644 index 000000000..8423f56ff --- /dev/null +++ b/opensearch/src/model/CreateModelResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +CreateModelResult::CreateModelResult() : + ServiceResult() +{} + +CreateModelResult::CreateModelResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateModelResult::~CreateModelResult() +{} + +void CreateModelResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["result"].isNull()) + result_ = value["result"].asString(); + +} + +std::string CreateModelResult::getRequestId()const +{ + return requestId_; +} + +std::string CreateModelResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/CreateQueryProcessorRequest.cc b/opensearch/src/model/CreateQueryProcessorRequest.cc new file mode 100644 index 000000000..2c3baa464 --- /dev/null +++ b/opensearch/src/model/CreateQueryProcessorRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::CreateQueryProcessorRequest; + +CreateQueryProcessorRequest::CreateQueryProcessorRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appId]/query-processors"); + setMethod(HttpRequest::Method::Post); +} + +CreateQueryProcessorRequest::~CreateQueryProcessorRequest() +{} + +bool CreateQueryProcessorRequest::getDryRun()const +{ + return dryRun_; +} + +void CreateQueryProcessorRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + +int CreateQueryProcessorRequest::getAppId()const +{ + return appId_; +} + +void CreateQueryProcessorRequest::setAppId(int appId) +{ + appId_ = appId; + setParameter("AppId", std::to_string(appId)); +} + +std::string CreateQueryProcessorRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void CreateQueryProcessorRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/CreateQueryProcessorResult.cc b/opensearch/src/model/CreateQueryProcessorResult.cc new file mode 100644 index 000000000..2375ccb06 --- /dev/null +++ b/opensearch/src/model/CreateQueryProcessorResult.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +CreateQueryProcessorResult::CreateQueryProcessorResult() : + ServiceResult() +{} + +CreateQueryProcessorResult::CreateQueryProcessorResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateQueryProcessorResult::~CreateQueryProcessorResult() +{} + +void CreateQueryProcessorResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["active"].isNull()) + result_.active = resultNode["active"].asString() == "true"; + if(!resultNode["domain"].isNull()) + result_.domain = resultNode["domain"].asString(); + if(!resultNode["created"].isNull()) + result_.created = std::stoi(resultNode["created"].asString()); + if(!resultNode["updated"].isNull()) + result_.updated = std::stoi(resultNode["updated"].asString()); + auto allIndexes = resultNode["indexes"]["indexes"]; + for (auto value : allIndexes) + result_.indexes.push_back(value.asString()); + auto allProcessors = resultNode["processors"]["processors"]; + for (auto value : allProcessors) + result_.processors.push_back(value.asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string CreateQueryProcessorResult::getRequestId()const +{ + return requestId_; +} + +CreateQueryProcessorResult::Result CreateQueryProcessorResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/CreateScheduledTaskRequest.cc b/opensearch/src/model/CreateScheduledTaskRequest.cc new file mode 100644 index 000000000..cbda13d5a --- /dev/null +++ b/opensearch/src/model/CreateScheduledTaskRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::CreateScheduledTaskRequest; + +CreateScheduledTaskRequest::CreateScheduledTaskRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/scheduled-tasks"); + setMethod(HttpRequest::Method::Post); +} + +CreateScheduledTaskRequest::~CreateScheduledTaskRequest() +{} + +std::string CreateScheduledTaskRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void CreateScheduledTaskRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/CreateScheduledTaskResult.cc b/opensearch/src/model/CreateScheduledTaskResult.cc new file mode 100644 index 000000000..adbf2108c --- /dev/null +++ b/opensearch/src/model/CreateScheduledTaskResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +CreateScheduledTaskResult::CreateScheduledTaskResult() : + ServiceResult() +{} + +CreateScheduledTaskResult::CreateScheduledTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateScheduledTaskResult::~CreateScheduledTaskResult() +{} + +void CreateScheduledTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["result"].isNull()) + result_ = value["result"].asString(); + +} + +std::string CreateScheduledTaskResult::getRequestId()const +{ + return requestId_; +} + +std::string CreateScheduledTaskResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/CreateSecondRankRequest.cc b/opensearch/src/model/CreateSecondRankRequest.cc new file mode 100644 index 000000000..0c30f2e49 --- /dev/null +++ b/opensearch/src/model/CreateSecondRankRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::CreateSecondRankRequest; + +CreateSecondRankRequest::CreateSecondRankRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appId]/second-ranks"); + setMethod(HttpRequest::Method::Post); +} + +CreateSecondRankRequest::~CreateSecondRankRequest() +{} + +bool CreateSecondRankRequest::getDryRun()const +{ + return dryRun_; +} + +void CreateSecondRankRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + +int CreateSecondRankRequest::getAppId()const +{ + return appId_; +} + +void CreateSecondRankRequest::setAppId(int appId) +{ + appId_ = appId; + setParameter("AppId", std::to_string(appId)); +} + +std::string CreateSecondRankRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void CreateSecondRankRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/CreateSecondRankResult.cc b/opensearch/src/model/CreateSecondRankResult.cc new file mode 100644 index 000000000..48114b3ab --- /dev/null +++ b/opensearch/src/model/CreateSecondRankResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +CreateSecondRankResult::CreateSecondRankResult() : + ServiceResult() +{} + +CreateSecondRankResult::CreateSecondRankResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateSecondRankResult::~CreateSecondRankResult() +{} + +void CreateSecondRankResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["result"].isNull()) + result_ = value["result"].asString(); + +} + +std::string CreateSecondRankResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/CreateSortScriptRequest.cc b/opensearch/src/model/CreateSortScriptRequest.cc new file mode 100644 index 000000000..fe96f45d5 --- /dev/null +++ b/opensearch/src/model/CreateSortScriptRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::CreateSortScriptRequest; + +CreateSortScriptRequest::CreateSortScriptRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appVersionId]/sort-scripts"); + setMethod(HttpRequest::Method::Post); +} + +CreateSortScriptRequest::~CreateSortScriptRequest() +{} + +std::string CreateSortScriptRequest::getAppVersionId()const +{ + return appVersionId_; +} + +void CreateSortScriptRequest::setAppVersionId(const std::string& appVersionId) +{ + appVersionId_ = appVersionId; + setParameter("AppVersionId", appVersionId); +} + +std::string CreateSortScriptRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void CreateSortScriptRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/CreateSortScriptResult.cc b/opensearch/src/model/CreateSortScriptResult.cc new file mode 100644 index 000000000..d5b7b5805 --- /dev/null +++ b/opensearch/src/model/CreateSortScriptResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +CreateSortScriptResult::CreateSortScriptResult() : + ServiceResult() +{} + +CreateSortScriptResult::CreateSortScriptResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateSortScriptResult::~CreateSortScriptResult() +{} + +void CreateSortScriptResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string CreateSortScriptResult::getRequestId()const +{ + return requestId_; +} + diff --git a/opensearch/src/model/CreateUserAnalyzerRequest.cc b/opensearch/src/model/CreateUserAnalyzerRequest.cc new file mode 100644 index 000000000..5bc536c74 --- /dev/null +++ b/opensearch/src/model/CreateUserAnalyzerRequest.cc @@ -0,0 +1,30 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::CreateUserAnalyzerRequest; + +CreateUserAnalyzerRequest::CreateUserAnalyzerRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/user-analyzers"); + setMethod(HttpRequest::Method::Post); +} + +CreateUserAnalyzerRequest::~CreateUserAnalyzerRequest() +{} + diff --git a/opensearch/src/model/CreateUserAnalyzerResult.cc b/opensearch/src/model/CreateUserAnalyzerResult.cc new file mode 100644 index 000000000..32f00658c --- /dev/null +++ b/opensearch/src/model/CreateUserAnalyzerResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +CreateUserAnalyzerResult::CreateUserAnalyzerResult() : + ServiceResult() +{} + +CreateUserAnalyzerResult::CreateUserAnalyzerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateUserAnalyzerResult::~CreateUserAnalyzerResult() +{} + +void CreateUserAnalyzerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["result"].isNull()) + result_ = value["result"].asString(); + +} + +std::string CreateUserAnalyzerResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/DeleteABTestExperimentRequest.cc b/opensearch/src/model/DeleteABTestExperimentRequest.cc new file mode 100644 index 000000000..3e02eeccf --- /dev/null +++ b/opensearch/src/model/DeleteABTestExperimentRequest.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::DeleteABTestExperimentRequest; + +DeleteABTestExperimentRequest::DeleteABTestExperimentRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/scenes/[sceneId]/groups/[groupId]/experiments/[experimentId]"); + setMethod(HttpRequest::Method::Delete); +} + +DeleteABTestExperimentRequest::~DeleteABTestExperimentRequest() +{} + +int DeleteABTestExperimentRequest::getGroupId()const +{ + return groupId_; +} + +void DeleteABTestExperimentRequest::setGroupId(int groupId) +{ + groupId_ = groupId; + setParameter("GroupId", std::to_string(groupId)); +} + +int DeleteABTestExperimentRequest::getSceneId()const +{ + return sceneId_; +} + +void DeleteABTestExperimentRequest::setSceneId(int sceneId) +{ + sceneId_ = sceneId; + setParameter("SceneId", std::to_string(sceneId)); +} + +int DeleteABTestExperimentRequest::getExperimentId()const +{ + return experimentId_; +} + +void DeleteABTestExperimentRequest::setExperimentId(int experimentId) +{ + experimentId_ = experimentId; + setParameter("ExperimentId", std::to_string(experimentId)); +} + +std::string DeleteABTestExperimentRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void DeleteABTestExperimentRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/DeleteABTestExperimentResult.cc b/opensearch/src/model/DeleteABTestExperimentResult.cc new file mode 100644 index 000000000..9cb6f2800 --- /dev/null +++ b/opensearch/src/model/DeleteABTestExperimentResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +DeleteABTestExperimentResult::DeleteABTestExperimentResult() : + ServiceResult() +{} + +DeleteABTestExperimentResult::DeleteABTestExperimentResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteABTestExperimentResult::~DeleteABTestExperimentResult() +{} + +void DeleteABTestExperimentResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["result"].isNull()) + result_ = value["result"].asString(); + +} + +std::string DeleteABTestExperimentResult::getRequestId()const +{ + return requestId_; +} + +std::string DeleteABTestExperimentResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/DeleteABTestGroupRequest.cc b/opensearch/src/model/DeleteABTestGroupRequest.cc new file mode 100644 index 000000000..3030b0e19 --- /dev/null +++ b/opensearch/src/model/DeleteABTestGroupRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::DeleteABTestGroupRequest; + +DeleteABTestGroupRequest::DeleteABTestGroupRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/scenes/[sceneId]/groups/[groupId]"); + setMethod(HttpRequest::Method::Delete); +} + +DeleteABTestGroupRequest::~DeleteABTestGroupRequest() +{} + +int DeleteABTestGroupRequest::getGroupId()const +{ + return groupId_; +} + +void DeleteABTestGroupRequest::setGroupId(int groupId) +{ + groupId_ = groupId; + setParameter("GroupId", std::to_string(groupId)); +} + +int DeleteABTestGroupRequest::getSceneId()const +{ + return sceneId_; +} + +void DeleteABTestGroupRequest::setSceneId(int sceneId) +{ + sceneId_ = sceneId; + setParameter("SceneId", std::to_string(sceneId)); +} + +std::string DeleteABTestGroupRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void DeleteABTestGroupRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/DeleteABTestGroupResult.cc b/opensearch/src/model/DeleteABTestGroupResult.cc new file mode 100644 index 000000000..7850b62a0 --- /dev/null +++ b/opensearch/src/model/DeleteABTestGroupResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +DeleteABTestGroupResult::DeleteABTestGroupResult() : + ServiceResult() +{} + +DeleteABTestGroupResult::DeleteABTestGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteABTestGroupResult::~DeleteABTestGroupResult() +{} + +void DeleteABTestGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["result"].isNull()) + result_ = value["result"].asString(); + +} + +std::string DeleteABTestGroupResult::getRequestId()const +{ + return requestId_; +} + +std::string DeleteABTestGroupResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/DeleteABTestSceneRequest.cc b/opensearch/src/model/DeleteABTestSceneRequest.cc new file mode 100644 index 000000000..ed38d47b2 --- /dev/null +++ b/opensearch/src/model/DeleteABTestSceneRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::DeleteABTestSceneRequest; + +DeleteABTestSceneRequest::DeleteABTestSceneRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/scenes/[sceneId]"); + setMethod(HttpRequest::Method::Delete); +} + +DeleteABTestSceneRequest::~DeleteABTestSceneRequest() +{} + +int DeleteABTestSceneRequest::getSceneId()const +{ + return sceneId_; +} + +void DeleteABTestSceneRequest::setSceneId(int sceneId) +{ + sceneId_ = sceneId; + setParameter("SceneId", std::to_string(sceneId)); +} + +std::string DeleteABTestSceneRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void DeleteABTestSceneRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/DeleteABTestSceneResult.cc b/opensearch/src/model/DeleteABTestSceneResult.cc new file mode 100644 index 000000000..51624c4e9 --- /dev/null +++ b/opensearch/src/model/DeleteABTestSceneResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +DeleteABTestSceneResult::DeleteABTestSceneResult() : + ServiceResult() +{} + +DeleteABTestSceneResult::DeleteABTestSceneResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteABTestSceneResult::~DeleteABTestSceneResult() +{} + +void DeleteABTestSceneResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["result"].isNull()) + result_ = value["result"].asString(); + +} + +std::string DeleteABTestSceneResult::getRequestId()const +{ + return requestId_; +} + +std::string DeleteABTestSceneResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/DeleteModelRequest.cc b/opensearch/src/model/DeleteModelRequest.cc new file mode 100644 index 000000000..b5e7310fe --- /dev/null +++ b/opensearch/src/model/DeleteModelRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::DeleteModelRequest; + +DeleteModelRequest::DeleteModelRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/algorithm/models/[modelName]"); + setMethod(HttpRequest::Method::Delete); +} + +DeleteModelRequest::~DeleteModelRequest() +{} + +std::string DeleteModelRequest::getModelName()const +{ + return modelName_; +} + +void DeleteModelRequest::setModelName(const std::string& modelName) +{ + modelName_ = modelName; + setParameter("ModelName", modelName); +} + +std::string DeleteModelRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void DeleteModelRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/DeleteModelResult.cc b/opensearch/src/model/DeleteModelResult.cc new file mode 100644 index 000000000..bcfba517d --- /dev/null +++ b/opensearch/src/model/DeleteModelResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +DeleteModelResult::DeleteModelResult() : + ServiceResult() +{} + +DeleteModelResult::DeleteModelResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteModelResult::~DeleteModelResult() +{} + +void DeleteModelResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["result"].isNull()) + result_ = value["result"].asString(); + +} + +std::string DeleteModelResult::getRequestId()const +{ + return requestId_; +} + +std::string DeleteModelResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/DeleteSortScriptFileRequest.cc b/opensearch/src/model/DeleteSortScriptFileRequest.cc new file mode 100644 index 000000000..fcf86a2e5 --- /dev/null +++ b/opensearch/src/model/DeleteSortScriptFileRequest.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::DeleteSortScriptFileRequest; + +DeleteSortScriptFileRequest::DeleteSortScriptFileRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appVersionId]/sort-scripts/[scriptName]/files/src/[fileName]"); + setMethod(HttpRequest::Method::Delete); +} + +DeleteSortScriptFileRequest::~DeleteSortScriptFileRequest() +{} + +std::string DeleteSortScriptFileRequest::getAppVersionId()const +{ + return appVersionId_; +} + +void DeleteSortScriptFileRequest::setAppVersionId(const std::string& appVersionId) +{ + appVersionId_ = appVersionId; + setParameter("AppVersionId", appVersionId); +} + +std::string DeleteSortScriptFileRequest::getFileName()const +{ + return fileName_; +} + +void DeleteSortScriptFileRequest::setFileName(const std::string& fileName) +{ + fileName_ = fileName; + setParameter("FileName", fileName); +} + +std::string DeleteSortScriptFileRequest::getScriptName()const +{ + return scriptName_; +} + +void DeleteSortScriptFileRequest::setScriptName(const std::string& scriptName) +{ + scriptName_ = scriptName; + setParameter("ScriptName", scriptName); +} + +std::string DeleteSortScriptFileRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void DeleteSortScriptFileRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/DeleteSortScriptFileResult.cc b/opensearch/src/model/DeleteSortScriptFileResult.cc new file mode 100644 index 000000000..31f16520b --- /dev/null +++ b/opensearch/src/model/DeleteSortScriptFileResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +DeleteSortScriptFileResult::DeleteSortScriptFileResult() : + ServiceResult() +{} + +DeleteSortScriptFileResult::DeleteSortScriptFileResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteSortScriptFileResult::~DeleteSortScriptFileResult() +{} + +void DeleteSortScriptFileResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string DeleteSortScriptFileResult::getRequestId()const +{ + return requestId_; +} + diff --git a/opensearch/src/model/DeleteSortScriptRequest.cc b/opensearch/src/model/DeleteSortScriptRequest.cc new file mode 100644 index 000000000..b42b2c930 --- /dev/null +++ b/opensearch/src/model/DeleteSortScriptRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::DeleteSortScriptRequest; + +DeleteSortScriptRequest::DeleteSortScriptRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appVersionId]/sort-scripts/[scriptName]"); + setMethod(HttpRequest::Method::Delete); +} + +DeleteSortScriptRequest::~DeleteSortScriptRequest() +{} + +std::string DeleteSortScriptRequest::getAppVersionId()const +{ + return appVersionId_; +} + +void DeleteSortScriptRequest::setAppVersionId(const std::string& appVersionId) +{ + appVersionId_ = appVersionId; + setParameter("AppVersionId", appVersionId); +} + +std::string DeleteSortScriptRequest::getScriptName()const +{ + return scriptName_; +} + +void DeleteSortScriptRequest::setScriptName(const std::string& scriptName) +{ + scriptName_ = scriptName; + setParameter("ScriptName", scriptName); +} + +std::string DeleteSortScriptRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void DeleteSortScriptRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/DeleteSortScriptResult.cc b/opensearch/src/model/DeleteSortScriptResult.cc new file mode 100644 index 000000000..9dc0701e0 --- /dev/null +++ b/opensearch/src/model/DeleteSortScriptResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +DeleteSortScriptResult::DeleteSortScriptResult() : + ServiceResult() +{} + +DeleteSortScriptResult::DeleteSortScriptResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteSortScriptResult::~DeleteSortScriptResult() +{} + +void DeleteSortScriptResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string DeleteSortScriptResult::getRequestId()const +{ + return requestId_; +} + diff --git a/opensearch/src/model/DescribeABTestExperimentRequest.cc b/opensearch/src/model/DescribeABTestExperimentRequest.cc new file mode 100644 index 000000000..0c10c76e8 --- /dev/null +++ b/opensearch/src/model/DescribeABTestExperimentRequest.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::DescribeABTestExperimentRequest; + +DescribeABTestExperimentRequest::DescribeABTestExperimentRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/scenes/[sceneId]/groups/[groupId]/experiments/[experimentId]"); + setMethod(HttpRequest::Method::Get); +} + +DescribeABTestExperimentRequest::~DescribeABTestExperimentRequest() +{} + +int DescribeABTestExperimentRequest::getGroupId()const +{ + return groupId_; +} + +void DescribeABTestExperimentRequest::setGroupId(int groupId) +{ + groupId_ = groupId; + setParameter("GroupId", std::to_string(groupId)); +} + +int DescribeABTestExperimentRequest::getSceneId()const +{ + return sceneId_; +} + +void DescribeABTestExperimentRequest::setSceneId(int sceneId) +{ + sceneId_ = sceneId; + setParameter("SceneId", std::to_string(sceneId)); +} + +int DescribeABTestExperimentRequest::getExperimentId()const +{ + return experimentId_; +} + +void DescribeABTestExperimentRequest::setExperimentId(int experimentId) +{ + experimentId_ = experimentId; + setParameter("ExperimentId", std::to_string(experimentId)); +} + +std::string DescribeABTestExperimentRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void DescribeABTestExperimentRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/DescribeABTestExperimentResult.cc b/opensearch/src/model/DescribeABTestExperimentResult.cc new file mode 100644 index 000000000..6ee89d1be --- /dev/null +++ b/opensearch/src/model/DescribeABTestExperimentResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +DescribeABTestExperimentResult::DescribeABTestExperimentResult() : + ServiceResult() +{} + +DescribeABTestExperimentResult::DescribeABTestExperimentResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeABTestExperimentResult::~DescribeABTestExperimentResult() +{} + +void DescribeABTestExperimentResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["id"].isNull()) + result_.id = resultNode["id"].asString(); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["created"].isNull()) + result_.created = std::stoi(resultNode["created"].asString()); + if(!resultNode["updated"].isNull()) + result_.updated = std::stoi(resultNode["updated"].asString()); + if(!resultNode["online"].isNull()) + result_.online = resultNode["online"].asString() == "true"; + if(!resultNode["traffic"].isNull()) + result_.traffic = std::stoi(resultNode["traffic"].asString()); + auto paramsNode = resultNode["params"]; + if(!paramsNode["first_formula_name"].isNull()) + result_.params.first_formula_name = paramsNode["first_formula_name"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string DescribeABTestExperimentResult::getRequestId()const +{ + return requestId_; +} + +DescribeABTestExperimentResult::Result DescribeABTestExperimentResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/DescribeABTestGroupRequest.cc b/opensearch/src/model/DescribeABTestGroupRequest.cc new file mode 100644 index 000000000..980ccded6 --- /dev/null +++ b/opensearch/src/model/DescribeABTestGroupRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::DescribeABTestGroupRequest; + +DescribeABTestGroupRequest::DescribeABTestGroupRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/scenes/[sceneId]/groups/[groupId]"); + setMethod(HttpRequest::Method::Get); +} + +DescribeABTestGroupRequest::~DescribeABTestGroupRequest() +{} + +int DescribeABTestGroupRequest::getGroupId()const +{ + return groupId_; +} + +void DescribeABTestGroupRequest::setGroupId(int groupId) +{ + groupId_ = groupId; + setParameter("GroupId", std::to_string(groupId)); +} + +int DescribeABTestGroupRequest::getSceneId()const +{ + return sceneId_; +} + +void DescribeABTestGroupRequest::setSceneId(int sceneId) +{ + sceneId_ = sceneId; + setParameter("SceneId", std::to_string(sceneId)); +} + +std::string DescribeABTestGroupRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void DescribeABTestGroupRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/DescribeABTestGroupResult.cc b/opensearch/src/model/DescribeABTestGroupResult.cc new file mode 100644 index 000000000..62505a704 --- /dev/null +++ b/opensearch/src/model/DescribeABTestGroupResult.cc @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +DescribeABTestGroupResult::DescribeABTestGroupResult() : + ServiceResult() +{} + +DescribeABTestGroupResult::DescribeABTestGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeABTestGroupResult::~DescribeABTestGroupResult() +{} + +void DescribeABTestGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["id"].isNull()) + result_.id = resultNode["id"].asString(); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["status"].isNull()) + result_.status = std::stoi(resultNode["status"].asString()); + if(!resultNode["created"].isNull()) + result_.created = std::stoi(resultNode["created"].asString()); + if(!resultNode["updated"].isNull()) + result_.updated = std::stoi(resultNode["updated"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string DescribeABTestGroupResult::getRequestId()const +{ + return requestId_; +} + +DescribeABTestGroupResult::Result DescribeABTestGroupResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/DescribeABTestSceneRequest.cc b/opensearch/src/model/DescribeABTestSceneRequest.cc new file mode 100644 index 000000000..e343aee6f --- /dev/null +++ b/opensearch/src/model/DescribeABTestSceneRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::DescribeABTestSceneRequest; + +DescribeABTestSceneRequest::DescribeABTestSceneRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/scenes/[sceneId]"); + setMethod(HttpRequest::Method::Get); +} + +DescribeABTestSceneRequest::~DescribeABTestSceneRequest() +{} + +int DescribeABTestSceneRequest::getSceneId()const +{ + return sceneId_; +} + +void DescribeABTestSceneRequest::setSceneId(int sceneId) +{ + sceneId_ = sceneId; + setParameter("SceneId", std::to_string(sceneId)); +} + +std::string DescribeABTestSceneRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void DescribeABTestSceneRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/DescribeABTestSceneResult.cc b/opensearch/src/model/DescribeABTestSceneResult.cc new file mode 100644 index 000000000..4d7f84389 --- /dev/null +++ b/opensearch/src/model/DescribeABTestSceneResult.cc @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +DescribeABTestSceneResult::DescribeABTestSceneResult() : + ServiceResult() +{} + +DescribeABTestSceneResult::DescribeABTestSceneResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeABTestSceneResult::~DescribeABTestSceneResult() +{} + +void DescribeABTestSceneResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["id"].isNull()) + result_.id = resultNode["id"].asString(); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["status"].isNull()) + result_.status = std::stoi(resultNode["status"].asString()); + if(!resultNode["created"].isNull()) + result_.created = std::stoi(resultNode["created"].asString()); + if(!resultNode["updated"].isNull()) + result_.updated = std::stoi(resultNode["updated"].asString()); + auto allValues = resultNode["values"]["values"]; + for (auto value : allValues) + result_.values.push_back(value.asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string DescribeABTestSceneResult::getRequestId()const +{ + return requestId_; +} + +DescribeABTestSceneResult::Result DescribeABTestSceneResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/DescribeAppGroupDataReportRequest.cc b/opensearch/src/model/DescribeAppGroupDataReportRequest.cc new file mode 100644 index 000000000..4b8d56408 --- /dev/null +++ b/opensearch/src/model/DescribeAppGroupDataReportRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::DescribeAppGroupDataReportRequest; + +DescribeAppGroupDataReportRequest::DescribeAppGroupDataReportRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/data-report"); + setMethod(HttpRequest::Method::Get); +} + +DescribeAppGroupDataReportRequest::~DescribeAppGroupDataReportRequest() +{} + +std::string DescribeAppGroupDataReportRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeAppGroupDataReportRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string DescribeAppGroupDataReportRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeAppGroupDataReportRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +std::string DescribeAppGroupDataReportRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void DescribeAppGroupDataReportRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/DescribeAppGroupDataReportResult.cc b/opensearch/src/model/DescribeAppGroupDataReportResult.cc new file mode 100644 index 000000000..fe85ee870 --- /dev/null +++ b/opensearch/src/model/DescribeAppGroupDataReportResult.cc @@ -0,0 +1,88 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +DescribeAppGroupDataReportResult::DescribeAppGroupDataReportResult() : + ServiceResult() +{} + +DescribeAppGroupDataReportResult::DescribeAppGroupDataReportResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAppGroupDataReportResult::~DescribeAppGroupDataReportResult() +{} + +void DescribeAppGroupDataReportResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["receivedCount"].isNull()) + result_.receivedCount = std::stoi(resultNode["receivedCount"].asString()); + auto allreceivedSampleNode = resultNode["receivedSample"]["receivedSampleItem"]; + for (auto resultNodereceivedSamplereceivedSampleItem : allreceivedSampleNode) + { + Result::ReceivedSampleItem receivedSampleItemObject; + if(!resultNodereceivedSamplereceivedSampleItem["receivedTimeMs"].isNull()) + receivedSampleItemObject.receivedTimeMs = std::stol(resultNodereceivedSamplereceivedSampleItem["receivedTimeMs"].asString()); + auto messageNode = value["message"]; + if(!messageNode["clientIp"].isNull()) + receivedSampleItemObject.message.clientIp = messageNode["clientIp"].asString(); + if(!messageNode["arg3"].isNull()) + receivedSampleItemObject.message.arg3 = messageNode["arg3"].asString(); + if(!messageNode["userId"].isNull()) + receivedSampleItemObject.message.userId = messageNode["userId"].asString(); + if(!messageNode["args"].isNull()) + receivedSampleItemObject.message.args = messageNode["args"].asString(); + if(!messageNode["arg1"].isNull()) + receivedSampleItemObject.message.arg1 = messageNode["arg1"].asString(); + if(!messageNode["sdkType"].isNull()) + receivedSampleItemObject.message.sdkType = messageNode["sdkType"].asString(); + if(!messageNode["sessionId"].isNull()) + receivedSampleItemObject.message.sessionId = messageNode["sessionId"].asString(); + if(!messageNode["eventId"].isNull()) + receivedSampleItemObject.message.eventId = std::stoi(messageNode["eventId"].asString()); + if(!messageNode["sdkVersion"].isNull()) + receivedSampleItemObject.message.sdkVersion = messageNode["sdkVersion"].asString(); + if(!messageNode["page"].isNull()) + receivedSampleItemObject.message.page = messageNode["page"].asString(); + result_.receivedSample.push_back(receivedSampleItemObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string DescribeAppGroupDataReportResult::getRequestId()const +{ + return requestId_; +} + +DescribeAppGroupDataReportResult::Result DescribeAppGroupDataReportResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/DescribeAppGroupRequest.cc b/opensearch/src/model/DescribeAppGroupRequest.cc new file mode 100644 index 000000000..aa0d725be --- /dev/null +++ b/opensearch/src/model/DescribeAppGroupRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::DescribeAppGroupRequest; + +DescribeAppGroupRequest::DescribeAppGroupRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]"); + setMethod(HttpRequest::Method::Get); +} + +DescribeAppGroupRequest::~DescribeAppGroupRequest() +{} + +std::string DescribeAppGroupRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void DescribeAppGroupRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/DescribeAppGroupResult.cc b/opensearch/src/model/DescribeAppGroupResult.cc new file mode 100644 index 000000000..16b728d7d --- /dev/null +++ b/opensearch/src/model/DescribeAppGroupResult.cc @@ -0,0 +1,110 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +DescribeAppGroupResult::DescribeAppGroupResult() : + ServiceResult() +{} + +DescribeAppGroupResult::DescribeAppGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAppGroupResult::~DescribeAppGroupResult() +{} + +void DescribeAppGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["id"].isNull()) + result_.id = resultNode["id"].asString(); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["currentVersion"].isNull()) + result_.currentVersion = resultNode["currentVersion"].asString(); + if(!resultNode["switchedTime"].isNull()) + result_.switchedTime = std::stoi(resultNode["switchedTime"].asString()); + if(!resultNode["chargingWay"].isNull()) + result_.chargingWay = std::stoi(resultNode["chargingWay"].asString()); + if(!resultNode["type"].isNull()) + result_.type = resultNode["type"].asString(); + if(!resultNode["projectId"].isNull()) + result_.projectId = resultNode["projectId"].asString(); + if(!resultNode["chargeType"].isNull()) + result_.chargeType = resultNode["chargeType"].asString(); + if(!resultNode["expireOn"].isNull()) + result_.expireOn = resultNode["expireOn"].asString(); + if(!resultNode["instanceId"].isNull()) + result_.instanceId = resultNode["instanceId"].asString(); + if(!resultNode["commodityCode"].isNull()) + result_.commodityCode = resultNode["commodityCode"].asString(); + if(!resultNode["processingOrderId"].isNull()) + result_.processingOrderId = resultNode["processingOrderId"].asString(); + if(!resultNode["firstRankAlgoDeploymentId"].isNull()) + result_.firstRankAlgoDeploymentId = std::stoi(resultNode["firstRankAlgoDeploymentId"].asString()); + if(!resultNode["secondRankAlgoDeploymentId"].isNull()) + result_.secondRankAlgoDeploymentId = std::stoi(resultNode["secondRankAlgoDeploymentId"].asString()); + if(!resultNode["pendingSecondRankAlgoDeploymentId"].isNull()) + result_.pendingSecondRankAlgoDeploymentId = std::stoi(resultNode["pendingSecondRankAlgoDeploymentId"].asString()); + if(!resultNode["description"].isNull()) + result_.description = resultNode["description"].asString(); + if(!resultNode["produced"].isNull()) + result_.produced = std::stoi(resultNode["produced"].asString()); + if(!resultNode["lockedByExpiration"].isNull()) + result_.lockedByExpiration = std::stoi(resultNode["lockedByExpiration"].asString()); + if(!resultNode["hasPendingQuotaReviewTask"].isNull()) + result_.hasPendingQuotaReviewTask = std::stoi(resultNode["hasPendingQuotaReviewTask"].asString()); + if(!resultNode["created"].isNull()) + result_.created = std::stoi(resultNode["created"].asString()); + if(!resultNode["updated"].isNull()) + result_.updated = std::stoi(resultNode["updated"].asString()); + if(!resultNode["status"].isNull()) + result_.status = resultNode["status"].asString(); + if(!resultNode["lockMode"].isNull()) + result_.lockMode = resultNode["lockMode"].asString(); + auto quotaNode = resultNode["quota"]; + if(!quotaNode["docSize"].isNull()) + result_.quota.docSize = std::stoi(quotaNode["docSize"].asString()); + if(!quotaNode["computeResource"].isNull()) + result_.quota.computeResource = std::stoi(quotaNode["computeResource"].asString()); + if(!quotaNode["spec"].isNull()) + result_.quota.spec = quotaNode["spec"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string DescribeAppGroupResult::getRequestId()const +{ + return requestId_; +} + +DescribeAppGroupResult::Result DescribeAppGroupResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/DescribeAppRequest.cc b/opensearch/src/model/DescribeAppRequest.cc new file mode 100644 index 000000000..9a30f3054 --- /dev/null +++ b/opensearch/src/model/DescribeAppRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::DescribeAppRequest; + +DescribeAppRequest::DescribeAppRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appId]"); + setMethod(HttpRequest::Method::Get); +} + +DescribeAppRequest::~DescribeAppRequest() +{} + +int DescribeAppRequest::getAppId()const +{ + return appId_; +} + +void DescribeAppRequest::setAppId(int appId) +{ + appId_ = appId; + setParameter("AppId", std::to_string(appId)); +} + +std::string DescribeAppRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void DescribeAppRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/DescribeAppResult.cc b/opensearch/src/model/DescribeAppResult.cc new file mode 100644 index 000000000..bf84143dc --- /dev/null +++ b/opensearch/src/model/DescribeAppResult.cc @@ -0,0 +1,89 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +DescribeAppResult::DescribeAppResult() : + ServiceResult() +{} + +DescribeAppResult::DescribeAppResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAppResult::~DescribeAppResult() +{} + +void DescribeAppResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["id"].isNull()) + result_.id = resultNode["id"].asString(); + if(!resultNode["description"].isNull()) + result_.description = resultNode["description"].asString(); + if(!resultNode["status"].isNull()) + result_.status = resultNode["status"].asString(); + if(!resultNode["type"].isNull()) + result_.type = resultNode["type"].asString(); + if(!resultNode["clusterName"].isNull()) + result_.clusterName = resultNode["clusterName"].asString(); + if(!resultNode["algoDeploymentId"].isNull()) + result_.algoDeploymentId = std::stoi(resultNode["algoDeploymentId"].asString()); + if(!resultNode["created"].isNull()) + result_.created = std::stoi(resultNode["created"].asString()); + if(!resultNode["autoSwitch"].isNull()) + result_.autoSwitch = resultNode["autoSwitch"].asString() == "true"; + if(!resultNode["progressPercent"].isNull()) + result_.progressPercent = std::stoi(resultNode["progressPercent"].asString()); + if(!resultNode["schema"].isNull()) + result_.schema = resultNode["schema"].asString(); + auto quotaNode = resultNode["quota"]; + if(!quotaNode["docSize"].isNull()) + result_.quota.docSize = std::stoi(quotaNode["docSize"].asString()); + if(!quotaNode["computeResource"].isNull()) + result_.quota.computeResource = std::stoi(quotaNode["computeResource"].asString()); + if(!quotaNode["qps"].isNull()) + result_.quota.qps = std::stoi(quotaNode["qps"].asString()); + if(!quotaNode["spec"].isNull()) + result_.quota.spec = quotaNode["spec"].asString(); + auto allFetchFields = resultNode["fetchFields"]["fetchFields"]; + for (auto value : allFetchFields) + result_.fetchFields.push_back(value.asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string DescribeAppResult::getRequestId()const +{ + return requestId_; +} + +DescribeAppResult::Result DescribeAppResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/DescribeAppStatisticsRequest.cc b/opensearch/src/model/DescribeAppStatisticsRequest.cc new file mode 100644 index 000000000..153494538 --- /dev/null +++ b/opensearch/src/model/DescribeAppStatisticsRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::DescribeAppStatisticsRequest; + +DescribeAppStatisticsRequest::DescribeAppStatisticsRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appId]/statistics"); + setMethod(HttpRequest::Method::Get); +} + +DescribeAppStatisticsRequest::~DescribeAppStatisticsRequest() +{} + +std::string DescribeAppStatisticsRequest::getAppId()const +{ + return appId_; +} + +void DescribeAppStatisticsRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setParameter("AppId", appId); +} + +std::string DescribeAppStatisticsRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void DescribeAppStatisticsRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/DescribeAppStatisticsResult.cc b/opensearch/src/model/DescribeAppStatisticsResult.cc new file mode 100644 index 000000000..be1e72fb9 --- /dev/null +++ b/opensearch/src/model/DescribeAppStatisticsResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +DescribeAppStatisticsResult::DescribeAppStatisticsResult() : + ServiceResult() +{} + +DescribeAppStatisticsResult::DescribeAppStatisticsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAppStatisticsResult::~DescribeAppStatisticsResult() +{} + +void DescribeAppStatisticsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["result"].isNull()) + result_ = value["result"].asString(); + +} + +std::string DescribeAppStatisticsResult::getRequestId()const +{ + return requestId_; +} + +std::string DescribeAppStatisticsResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/DescribeAppsRequest.cc b/opensearch/src/model/DescribeAppsRequest.cc new file mode 100644 index 000000000..1355a6eca --- /dev/null +++ b/opensearch/src/model/DescribeAppsRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::DescribeAppsRequest; + +DescribeAppsRequest::DescribeAppsRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps"); + setMethod(HttpRequest::Method::Get); +} + +DescribeAppsRequest::~DescribeAppsRequest() +{} + +std::string DescribeAppsRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void DescribeAppsRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/DescribeAppsResult.cc b/opensearch/src/model/DescribeAppsResult.cc new file mode 100644 index 000000000..fa92ee847 --- /dev/null +++ b/opensearch/src/model/DescribeAppsResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +DescribeAppsResult::DescribeAppsResult() : + ServiceResult() +{} + +DescribeAppsResult::DescribeAppsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAppsResult::~DescribeAppsResult() +{} + +void DescribeAppsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresult = value["result"]["result"]; + for (const auto &item : allresult) + result_.push_back(item.asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string DescribeAppsResult::getRequestId()const +{ + return requestId_; +} + +std::vector DescribeAppsResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/DescribeDataCollctionRequest.cc b/opensearch/src/model/DescribeDataCollctionRequest.cc new file mode 100644 index 000000000..c94d5f29b --- /dev/null +++ b/opensearch/src/model/DescribeDataCollctionRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::DescribeDataCollctionRequest; + +DescribeDataCollctionRequest::DescribeDataCollctionRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/data-collections/[dataCollectionIdentity]"); + setMethod(HttpRequest::Method::Get); +} + +DescribeDataCollctionRequest::~DescribeDataCollctionRequest() +{} + +std::string DescribeDataCollctionRequest::getDataCollectionIdentity()const +{ + return dataCollectionIdentity_; +} + +void DescribeDataCollctionRequest::setDataCollectionIdentity(const std::string& dataCollectionIdentity) +{ + dataCollectionIdentity_ = dataCollectionIdentity; + setParameter("DataCollectionIdentity", dataCollectionIdentity); +} + +std::string DescribeDataCollctionRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void DescribeDataCollctionRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/DescribeDataCollctionResult.cc b/opensearch/src/model/DescribeDataCollctionResult.cc new file mode 100644 index 000000000..7224bf3e2 --- /dev/null +++ b/opensearch/src/model/DescribeDataCollctionResult.cc @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +DescribeDataCollctionResult::DescribeDataCollctionResult() : + ServiceResult() +{} + +DescribeDataCollctionResult::DescribeDataCollctionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDataCollctionResult::~DescribeDataCollctionResult() +{} + +void DescribeDataCollctionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["id"].isNull()) + result_.id = resultNode["id"].asString(); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["type"].isNull()) + result_.type = resultNode["type"].asString(); + if(!resultNode["status"].isNull()) + result_.status = std::stoi(resultNode["status"].asString()); + if(!resultNode["dataCollectionType"].isNull()) + result_.dataCollectionType = resultNode["dataCollectionType"].asString(); + if(!resultNode["industryName"].isNull()) + result_.industryName = resultNode["industryName"].asString(); + if(!resultNode["created"].isNull()) + result_.created = std::stoi(resultNode["created"].asString()); + if(!resultNode["updated"].isNull()) + result_.updated = std::stoi(resultNode["updated"].asString()); + if(!resultNode["sundialId"].isNull()) + result_.sundialId = resultNode["sundialId"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string DescribeDataCollctionResult::getRequestId()const +{ + return requestId_; +} + +DescribeDataCollctionResult::Result DescribeDataCollctionResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/DescribeFirstRankRequest.cc b/opensearch/src/model/DescribeFirstRankRequest.cc new file mode 100644 index 000000000..5e5b9d6e5 --- /dev/null +++ b/opensearch/src/model/DescribeFirstRankRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::DescribeFirstRankRequest; + +DescribeFirstRankRequest::DescribeFirstRankRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appId]/first-ranks/[name]"); + setMethod(HttpRequest::Method::Get); +} + +DescribeFirstRankRequest::~DescribeFirstRankRequest() +{} + +int DescribeFirstRankRequest::getAppId()const +{ + return appId_; +} + +void DescribeFirstRankRequest::setAppId(int appId) +{ + appId_ = appId; + setParameter("AppId", std::to_string(appId)); +} + +std::string DescribeFirstRankRequest::getName()const +{ + return name_; +} + +void DescribeFirstRankRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string DescribeFirstRankRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void DescribeFirstRankRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/DescribeFirstRankResult.cc b/opensearch/src/model/DescribeFirstRankResult.cc new file mode 100644 index 000000000..276000edf --- /dev/null +++ b/opensearch/src/model/DescribeFirstRankResult.cc @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +DescribeFirstRankResult::DescribeFirstRankResult() : + ServiceResult() +{} + +DescribeFirstRankResult::DescribeFirstRankResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeFirstRankResult::~DescribeFirstRankResult() +{} + +void DescribeFirstRankResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["description"].isNull()) + result_.description = resultNode["description"].asString(); + if(!resultNode["active"].isNull()) + result_.active = resultNode["active"].asString() == "true"; + auto allmetaNode = resultNode["meta"]["metaItem"]; + for (auto resultNodemetametaItem : allmetaNode) + { + Result::MetaItem metaItemObject; + if(!resultNodemetametaItem["attribute"].isNull()) + metaItemObject.attribute = resultNodemetametaItem["attribute"].asString(); + if(!resultNodemetametaItem["arg"].isNull()) + metaItemObject.arg = resultNodemetametaItem["arg"].asString(); + if(!resultNodemetametaItem["weight"].isNull()) + metaItemObject.weight = std::stof(resultNodemetametaItem["weight"].asString()); + result_.meta.push_back(metaItemObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string DescribeFirstRankResult::getRequestId()const +{ + return requestId_; +} + +DescribeFirstRankResult::Result DescribeFirstRankResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/DescribeInterventionDictionaryRequest.cc b/opensearch/src/model/DescribeInterventionDictionaryRequest.cc new file mode 100644 index 000000000..7dacbc868 --- /dev/null +++ b/opensearch/src/model/DescribeInterventionDictionaryRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::DescribeInterventionDictionaryRequest; + +DescribeInterventionDictionaryRequest::DescribeInterventionDictionaryRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/intervention-dictionaries/[name]"); + setMethod(HttpRequest::Method::Get); +} + +DescribeInterventionDictionaryRequest::~DescribeInterventionDictionaryRequest() +{} + +std::string DescribeInterventionDictionaryRequest::getName()const +{ + return name_; +} + +void DescribeInterventionDictionaryRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + diff --git a/opensearch/src/model/DescribeInterventionDictionaryResult.cc b/opensearch/src/model/DescribeInterventionDictionaryResult.cc new file mode 100644 index 000000000..cd462d01e --- /dev/null +++ b/opensearch/src/model/DescribeInterventionDictionaryResult.cc @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +DescribeInterventionDictionaryResult::DescribeInterventionDictionaryResult() : + ServiceResult() +{} + +DescribeInterventionDictionaryResult::DescribeInterventionDictionaryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeInterventionDictionaryResult::~DescribeInterventionDictionaryResult() +{} + +void DescribeInterventionDictionaryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["type"].isNull()) + result_.type = resultNode["type"].asString(); + if(!resultNode["analyzer"].isNull()) + result_.analyzer = resultNode["analyzer"].asString(); + if(!resultNode["created"].isNull()) + result_.created = resultNode["created"].asString(); + if(!resultNode["updated"].isNull()) + result_.updated = resultNode["updated"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string DescribeInterventionDictionaryResult::getRequestId()const +{ + return requestId_; +} + +DescribeInterventionDictionaryResult::Result DescribeInterventionDictionaryResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/DescribeModelRequest.cc b/opensearch/src/model/DescribeModelRequest.cc new file mode 100644 index 000000000..076c55aa7 --- /dev/null +++ b/opensearch/src/model/DescribeModelRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::DescribeModelRequest; + +DescribeModelRequest::DescribeModelRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/algorithm/models/[modelName]"); + setMethod(HttpRequest::Method::Get); +} + +DescribeModelRequest::~DescribeModelRequest() +{} + +std::string DescribeModelRequest::getModelName()const +{ + return modelName_; +} + +void DescribeModelRequest::setModelName(const std::string& modelName) +{ + modelName_ = modelName; + setParameter("ModelName", modelName); +} + +std::string DescribeModelRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void DescribeModelRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/DescribeModelResult.cc b/opensearch/src/model/DescribeModelResult.cc new file mode 100644 index 000000000..ad7843651 --- /dev/null +++ b/opensearch/src/model/DescribeModelResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +DescribeModelResult::DescribeModelResult() : + ServiceResult() +{} + +DescribeModelResult::DescribeModelResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeModelResult::~DescribeModelResult() +{} + +void DescribeModelResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["result"].isNull()) + result_ = value["result"].asString(); + +} + +std::string DescribeModelResult::getRequestId()const +{ + return requestId_; +} + +std::string DescribeModelResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/DescribeQueryProcessorRequest.cc b/opensearch/src/model/DescribeQueryProcessorRequest.cc new file mode 100644 index 000000000..f86c7419e --- /dev/null +++ b/opensearch/src/model/DescribeQueryProcessorRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::DescribeQueryProcessorRequest; + +DescribeQueryProcessorRequest::DescribeQueryProcessorRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appId]/query-processors/[name]"); + setMethod(HttpRequest::Method::Get); +} + +DescribeQueryProcessorRequest::~DescribeQueryProcessorRequest() +{} + +int DescribeQueryProcessorRequest::getAppId()const +{ + return appId_; +} + +void DescribeQueryProcessorRequest::setAppId(int appId) +{ + appId_ = appId; + setParameter("AppId", std::to_string(appId)); +} + +std::string DescribeQueryProcessorRequest::getName()const +{ + return name_; +} + +void DescribeQueryProcessorRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string DescribeQueryProcessorRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void DescribeQueryProcessorRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/DescribeQueryProcessorResult.cc b/opensearch/src/model/DescribeQueryProcessorResult.cc new file mode 100644 index 000000000..644b2f121 --- /dev/null +++ b/opensearch/src/model/DescribeQueryProcessorResult.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +DescribeQueryProcessorResult::DescribeQueryProcessorResult() : + ServiceResult() +{} + +DescribeQueryProcessorResult::DescribeQueryProcessorResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeQueryProcessorResult::~DescribeQueryProcessorResult() +{} + +void DescribeQueryProcessorResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["active"].isNull()) + result_.active = resultNode["active"].asString() == "true"; + if(!resultNode["domain"].isNull()) + result_.domain = resultNode["domain"].asString(); + if(!resultNode["created"].isNull()) + result_.created = std::stoi(resultNode["created"].asString()); + if(!resultNode["updated"].isNull()) + result_.updated = std::stoi(resultNode["updated"].asString()); + auto allIndexes = resultNode["indexes"]["indexes"]; + for (auto value : allIndexes) + result_.indexes.push_back(value.asString()); + auto allProcessors = resultNode["processors"]["processors"]; + for (auto value : allProcessors) + result_.processors.push_back(value.asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string DescribeQueryProcessorResult::getRequestId()const +{ + return requestId_; +} + +DescribeQueryProcessorResult::Result DescribeQueryProcessorResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/DescribeRegionRequest.cc b/opensearch/src/model/DescribeRegionRequest.cc new file mode 100644 index 000000000..61b073db8 --- /dev/null +++ b/opensearch/src/model/DescribeRegionRequest.cc @@ -0,0 +1,30 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::DescribeRegionRequest; + +DescribeRegionRequest::DescribeRegionRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/region"); + setMethod(HttpRequest::Method::Get); +} + +DescribeRegionRequest::~DescribeRegionRequest() +{} + diff --git a/opensearch/src/model/DescribeRegionResult.cc b/opensearch/src/model/DescribeRegionResult.cc new file mode 100644 index 000000000..3fea5da35 --- /dev/null +++ b/opensearch/src/model/DescribeRegionResult.cc @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +DescribeRegionResult::DescribeRegionResult() : + ServiceResult() +{} + +DescribeRegionResult::DescribeRegionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRegionResult::~DescribeRegionResult() +{} + +void DescribeRegionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["regionId"].isNull()) + result_.regionId = resultNode["regionId"].asString(); + if(!resultNode["config"].isNull()) + result_.config = resultNode["config"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string DescribeRegionResult::getRequestId()const +{ + return requestId_; +} + +DescribeRegionResult::Result DescribeRegionResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/DescribeRegionsRequest.cc b/opensearch/src/model/DescribeRegionsRequest.cc new file mode 100644 index 000000000..768f772a6 --- /dev/null +++ b/opensearch/src/model/DescribeRegionsRequest.cc @@ -0,0 +1,30 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::DescribeRegionsRequest; + +DescribeRegionsRequest::DescribeRegionsRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/regions"); + setMethod(HttpRequest::Method::Get); +} + +DescribeRegionsRequest::~DescribeRegionsRequest() +{} + diff --git a/opensearch/src/model/DescribeRegionsResult.cc b/opensearch/src/model/DescribeRegionsResult.cc new file mode 100644 index 000000000..4c751ef63 --- /dev/null +++ b/opensearch/src/model/DescribeRegionsResult.cc @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +DescribeRegionsResult::DescribeRegionsResult() : + ServiceResult() +{} + +DescribeRegionsResult::DescribeRegionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRegionsResult::~DescribeRegionsResult() +{} + +void DescribeRegionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresultNode = value["result"]["resultItem"]; + for (auto valueresultresultItem : allresultNode) + { + ResultItem resultObject; + if(!valueresultresultItem["regionId"].isNull()) + resultObject.regionId = valueresultresultItem["regionId"].asString(); + if(!valueresultresultItem["localName"].isNull()) + resultObject.localName = valueresultresultItem["localName"].asString(); + if(!valueresultresultItem["endpoint"].isNull()) + resultObject.endpoint = valueresultresultItem["endpoint"].asString(); + if(!valueresultresultItem["consoleUrl"].isNull()) + resultObject.consoleUrl = valueresultresultItem["consoleUrl"].asString(); + result_.push_back(resultObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::vector DescribeRegionsResult::getresult()const +{ + return result_; +} + +std::string DescribeRegionsResult::getRequestId()const +{ + return requestId_; +} + diff --git a/opensearch/src/model/DescribeScheduledTaskRequest.cc b/opensearch/src/model/DescribeScheduledTaskRequest.cc new file mode 100644 index 000000000..a7b66a1b6 --- /dev/null +++ b/opensearch/src/model/DescribeScheduledTaskRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::DescribeScheduledTaskRequest; + +DescribeScheduledTaskRequest::DescribeScheduledTaskRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/scheduled-tasks/[taskId]"); + setMethod(HttpRequest::Method::Get); +} + +DescribeScheduledTaskRequest::~DescribeScheduledTaskRequest() +{} + +std::string DescribeScheduledTaskRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void DescribeScheduledTaskRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + +std::string DescribeScheduledTaskRequest::getTaskId()const +{ + return taskId_; +} + +void DescribeScheduledTaskRequest::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; + setParameter("TaskId", taskId); +} + diff --git a/opensearch/src/model/DescribeScheduledTaskResult.cc b/opensearch/src/model/DescribeScheduledTaskResult.cc new file mode 100644 index 000000000..10fec8f2e --- /dev/null +++ b/opensearch/src/model/DescribeScheduledTaskResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +DescribeScheduledTaskResult::DescribeScheduledTaskResult() : + ServiceResult() +{} + +DescribeScheduledTaskResult::DescribeScheduledTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeScheduledTaskResult::~DescribeScheduledTaskResult() +{} + +void DescribeScheduledTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["result"].isNull()) + result_ = value["result"].asString(); + +} + +std::string DescribeScheduledTaskResult::getRequestId()const +{ + return requestId_; +} + +std::string DescribeScheduledTaskResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/DescribeSecondRankRequest.cc b/opensearch/src/model/DescribeSecondRankRequest.cc new file mode 100644 index 000000000..2a4d93248 --- /dev/null +++ b/opensearch/src/model/DescribeSecondRankRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::DescribeSecondRankRequest; + +DescribeSecondRankRequest::DescribeSecondRankRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appId]/second-ranks/[name]"); + setMethod(HttpRequest::Method::Get); +} + +DescribeSecondRankRequest::~DescribeSecondRankRequest() +{} + +int DescribeSecondRankRequest::getAppId()const +{ + return appId_; +} + +void DescribeSecondRankRequest::setAppId(int appId) +{ + appId_ = appId; + setParameter("AppId", std::to_string(appId)); +} + +std::string DescribeSecondRankRequest::getName()const +{ + return name_; +} + +void DescribeSecondRankRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string DescribeSecondRankRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void DescribeSecondRankRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/DescribeSecondRankResult.cc b/opensearch/src/model/DescribeSecondRankResult.cc new file mode 100644 index 000000000..568d1c605 --- /dev/null +++ b/opensearch/src/model/DescribeSecondRankResult.cc @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +DescribeSecondRankResult::DescribeSecondRankResult() : + ServiceResult() +{} + +DescribeSecondRankResult::DescribeSecondRankResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSecondRankResult::~DescribeSecondRankResult() +{} + +void DescribeSecondRankResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["id"].isNull()) + result_.id = resultNode["id"].asString(); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["meta"].isNull()) + result_.meta = resultNode["meta"].asString(); + if(!resultNode["active"].isNull()) + result_.active = resultNode["active"].asString() == "true"; + if(!resultNode["description"].isNull()) + result_.description = resultNode["description"].asString(); + if(!resultNode["created"].isNull()) + result_.created = std::stoi(resultNode["created"].asString()); + if(!resultNode["updated"].isNull()) + result_.updated = std::stoi(resultNode["updated"].asString()); + if(!resultNode["isDefault"].isNull()) + result_.isDefault = resultNode["isDefault"].asString(); + if(!resultNode["isSys"].isNull()) + result_.isSys = resultNode["isSys"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string DescribeSecondRankResult::getRequestId()const +{ + return requestId_; +} + +DescribeSecondRankResult::Result DescribeSecondRankResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/DescribeSlowQueryStatusRequest.cc b/opensearch/src/model/DescribeSlowQueryStatusRequest.cc new file mode 100644 index 000000000..81edd4b9e --- /dev/null +++ b/opensearch/src/model/DescribeSlowQueryStatusRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::DescribeSlowQueryStatusRequest; + +DescribeSlowQueryStatusRequest::DescribeSlowQueryStatusRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/optimizers/slow-query"); + setMethod(HttpRequest::Method::Get); +} + +DescribeSlowQueryStatusRequest::~DescribeSlowQueryStatusRequest() +{} + +std::string DescribeSlowQueryStatusRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void DescribeSlowQueryStatusRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/DescribeSlowQueryStatusResult.cc b/opensearch/src/model/DescribeSlowQueryStatusResult.cc new file mode 100644 index 000000000..c222c4b33 --- /dev/null +++ b/opensearch/src/model/DescribeSlowQueryStatusResult.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +DescribeSlowQueryStatusResult::DescribeSlowQueryStatusResult() : + ServiceResult() +{} + +DescribeSlowQueryStatusResult::DescribeSlowQueryStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSlowQueryStatusResult::~DescribeSlowQueryStatusResult() +{} + +void DescribeSlowQueryStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["region"].isNull()) + result_.region = resultNode["region"].asString(); + if(!resultNode["appGroupId"].isNull()) + result_.appGroupId = resultNode["appGroupId"].asString(); + if(!resultNode["status"].isNull()) + result_.status = resultNode["status"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string DescribeSlowQueryStatusResult::getRequestId()const +{ + return requestId_; +} + +DescribeSlowQueryStatusResult::Result DescribeSlowQueryStatusResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/DescribeUserAnalyzerRequest.cc b/opensearch/src/model/DescribeUserAnalyzerRequest.cc new file mode 100644 index 000000000..b3e08956b --- /dev/null +++ b/opensearch/src/model/DescribeUserAnalyzerRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::DescribeUserAnalyzerRequest; + +DescribeUserAnalyzerRequest::DescribeUserAnalyzerRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/user-analyzers/[name]"); + setMethod(HttpRequest::Method::Get); +} + +DescribeUserAnalyzerRequest::~DescribeUserAnalyzerRequest() +{} + +std::string DescribeUserAnalyzerRequest::getWith()const +{ + return with_; +} + +void DescribeUserAnalyzerRequest::setWith(const std::string& with) +{ + with_ = with; + setParameter("With", with); +} + +std::string DescribeUserAnalyzerRequest::getName()const +{ + return name_; +} + +void DescribeUserAnalyzerRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + diff --git a/opensearch/src/model/DescribeUserAnalyzerResult.cc b/opensearch/src/model/DescribeUserAnalyzerResult.cc new file mode 100644 index 000000000..42df4f474 --- /dev/null +++ b/opensearch/src/model/DescribeUserAnalyzerResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +DescribeUserAnalyzerResult::DescribeUserAnalyzerResult() : + ServiceResult() +{} + +DescribeUserAnalyzerResult::DescribeUserAnalyzerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeUserAnalyzerResult::~DescribeUserAnalyzerResult() +{} + +void DescribeUserAnalyzerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["result"].isNull()) + result_ = value["result"].asString(); + +} + +std::string DescribeUserAnalyzerResult::getRequestId()const +{ + return requestId_; +} + +std::string DescribeUserAnalyzerResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/DisableSlowQueryRequest.cc b/opensearch/src/model/DisableSlowQueryRequest.cc new file mode 100644 index 000000000..3fccd485e --- /dev/null +++ b/opensearch/src/model/DisableSlowQueryRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::DisableSlowQueryRequest; + +DisableSlowQueryRequest::DisableSlowQueryRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/optimizers/slow-query/actions/disable"); + setMethod(HttpRequest::Method::Post); +} + +DisableSlowQueryRequest::~DisableSlowQueryRequest() +{} + +std::string DisableSlowQueryRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void DisableSlowQueryRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/DisableSlowQueryResult.cc b/opensearch/src/model/DisableSlowQueryResult.cc new file mode 100644 index 000000000..d1c5bf031 --- /dev/null +++ b/opensearch/src/model/DisableSlowQueryResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +DisableSlowQueryResult::DisableSlowQueryResult() : + ServiceResult() +{} + +DisableSlowQueryResult::DisableSlowQueryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DisableSlowQueryResult::~DisableSlowQueryResult() +{} + +void DisableSlowQueryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["result"].isNull()) + result_ = value["result"].asString(); + +} + +std::string DisableSlowQueryResult::getRequestId()const +{ + return requestId_; +} + +std::string DisableSlowQueryResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/EnableSlowQueryRequest.cc b/opensearch/src/model/EnableSlowQueryRequest.cc new file mode 100644 index 000000000..f94b24524 --- /dev/null +++ b/opensearch/src/model/EnableSlowQueryRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::EnableSlowQueryRequest; + +EnableSlowQueryRequest::EnableSlowQueryRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/optimizers/slow-query/actions/enable"); + setMethod(HttpRequest::Method::Post); +} + +EnableSlowQueryRequest::~EnableSlowQueryRequest() +{} + +std::string EnableSlowQueryRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void EnableSlowQueryRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/EnableSlowQueryResult.cc b/opensearch/src/model/EnableSlowQueryResult.cc new file mode 100644 index 000000000..ff421ff27 --- /dev/null +++ b/opensearch/src/model/EnableSlowQueryResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +EnableSlowQueryResult::EnableSlowQueryResult() : + ServiceResult() +{} + +EnableSlowQueryResult::EnableSlowQueryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +EnableSlowQueryResult::~EnableSlowQueryResult() +{} + +void EnableSlowQueryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["result"].isNull()) + result_ = value["result"].asString(); + +} + +std::string EnableSlowQueryResult::getRequestId()const +{ + return requestId_; +} + +std::string EnableSlowQueryResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/GetModelProgressRequest.cc b/opensearch/src/model/GetModelProgressRequest.cc new file mode 100644 index 000000000..4c64c028b --- /dev/null +++ b/opensearch/src/model/GetModelProgressRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::GetModelProgressRequest; + +GetModelProgressRequest::GetModelProgressRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/algorithm/models/[modelName]/progress"); + setMethod(HttpRequest::Method::Get); +} + +GetModelProgressRequest::~GetModelProgressRequest() +{} + +std::string GetModelProgressRequest::getModelName()const +{ + return modelName_; +} + +void GetModelProgressRequest::setModelName(const std::string& modelName) +{ + modelName_ = modelName; + setParameter("ModelName", modelName); +} + +std::string GetModelProgressRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void GetModelProgressRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/GetModelProgressResult.cc b/opensearch/src/model/GetModelProgressResult.cc new file mode 100644 index 000000000..5bb712f1b --- /dev/null +++ b/opensearch/src/model/GetModelProgressResult.cc @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +GetModelProgressResult::GetModelProgressResult() : + ServiceResult() +{} + +GetModelProgressResult::GetModelProgressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetModelProgressResult::~GetModelProgressResult() +{} + +void GetModelProgressResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["progress"].isNull()) + result_.progress = std::stoi(resultNode["progress"].asString()); + if(!resultNode["status"].isNull()) + result_.status = resultNode["status"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string GetModelProgressResult::getRequestId()const +{ + return requestId_; +} + +GetModelProgressResult::Result GetModelProgressResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/GetModelReportRequest.cc b/opensearch/src/model/GetModelReportRequest.cc new file mode 100644 index 000000000..480660827 --- /dev/null +++ b/opensearch/src/model/GetModelReportRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::GetModelReportRequest; + +GetModelReportRequest::GetModelReportRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/algorithm/models/[modelName]/report"); + setMethod(HttpRequest::Method::Get); +} + +GetModelReportRequest::~GetModelReportRequest() +{} + +std::string GetModelReportRequest::getModelName()const +{ + return modelName_; +} + +void GetModelReportRequest::setModelName(const std::string& modelName) +{ + modelName_ = modelName; + setParameter("ModelName", modelName); +} + +std::string GetModelReportRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void GetModelReportRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/GetModelReportResult.cc b/opensearch/src/model/GetModelReportResult.cc new file mode 100644 index 000000000..ce056169f --- /dev/null +++ b/opensearch/src/model/GetModelReportResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +GetModelReportResult::GetModelReportResult() : + ServiceResult() +{} + +GetModelReportResult::GetModelReportResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetModelReportResult::~GetModelReportResult() +{} + +void GetModelReportResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["result"].isNull()) + result_ = value["result"].asString(); + +} + +std::string GetModelReportResult::getRequestId()const +{ + return requestId_; +} + +std::string GetModelReportResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/GetScriptFileNamesRequest.cc b/opensearch/src/model/GetScriptFileNamesRequest.cc new file mode 100644 index 000000000..852a6cfe6 --- /dev/null +++ b/opensearch/src/model/GetScriptFileNamesRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::GetScriptFileNamesRequest; + +GetScriptFileNamesRequest::GetScriptFileNamesRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appVersionId]/sort-scripts/[scriptName]/file-names"); + setMethod(HttpRequest::Method::Get); +} + +GetScriptFileNamesRequest::~GetScriptFileNamesRequest() +{} + +std::string GetScriptFileNamesRequest::getAppVersionId()const +{ + return appVersionId_; +} + +void GetScriptFileNamesRequest::setAppVersionId(const std::string& appVersionId) +{ + appVersionId_ = appVersionId; + setParameter("AppVersionId", appVersionId); +} + +std::string GetScriptFileNamesRequest::getScriptName()const +{ + return scriptName_; +} + +void GetScriptFileNamesRequest::setScriptName(const std::string& scriptName) +{ + scriptName_ = scriptName; + setParameter("ScriptName", scriptName); +} + +std::string GetScriptFileNamesRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void GetScriptFileNamesRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/GetScriptFileNamesResult.cc b/opensearch/src/model/GetScriptFileNamesResult.cc new file mode 100644 index 000000000..606fd054e --- /dev/null +++ b/opensearch/src/model/GetScriptFileNamesResult.cc @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +GetScriptFileNamesResult::GetScriptFileNamesResult() : + ServiceResult() +{} + +GetScriptFileNamesResult::GetScriptFileNamesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetScriptFileNamesResult::~GetScriptFileNamesResult() +{} + +void GetScriptFileNamesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresultNode = value["result"]["fileInfos"]; + for (auto valueresultfileInfos : allresultNode) + { + FileInfos resultObject; + if(!valueresultfileInfos["fileName"].isNull()) + resultObject.fileName = valueresultfileInfos["fileName"].asString(); + if(!valueresultfileInfos["createTime"].isNull()) + resultObject.createTime = valueresultfileInfos["createTime"].asString(); + if(!valueresultfileInfos["modifyTime"].isNull()) + resultObject.modifyTime = valueresultfileInfos["modifyTime"].asString(); + result_.push_back(resultObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::vector GetScriptFileNamesResult::getresult()const +{ + return result_; +} + +std::string GetScriptFileNamesResult::getRequestId()const +{ + return requestId_; +} + diff --git a/opensearch/src/model/GetSortScriptFileRequest.cc b/opensearch/src/model/GetSortScriptFileRequest.cc new file mode 100644 index 000000000..3ae670b67 --- /dev/null +++ b/opensearch/src/model/GetSortScriptFileRequest.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::GetSortScriptFileRequest; + +GetSortScriptFileRequest::GetSortScriptFileRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appVersionId]/sort-scripts/[scriptName]/files/src/[fileName]"); + setMethod(HttpRequest::Method::Get); +} + +GetSortScriptFileRequest::~GetSortScriptFileRequest() +{} + +std::string GetSortScriptFileRequest::getAppVersionId()const +{ + return appVersionId_; +} + +void GetSortScriptFileRequest::setAppVersionId(const std::string& appVersionId) +{ + appVersionId_ = appVersionId; + setParameter("AppVersionId", appVersionId); +} + +std::string GetSortScriptFileRequest::getFileName()const +{ + return fileName_; +} + +void GetSortScriptFileRequest::setFileName(const std::string& fileName) +{ + fileName_ = fileName; + setParameter("FileName", fileName); +} + +std::string GetSortScriptFileRequest::getScriptName()const +{ + return scriptName_; +} + +void GetSortScriptFileRequest::setScriptName(const std::string& scriptName) +{ + scriptName_ = scriptName; + setParameter("ScriptName", scriptName); +} + +std::string GetSortScriptFileRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void GetSortScriptFileRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/GetSortScriptFileResult.cc b/opensearch/src/model/GetSortScriptFileResult.cc new file mode 100644 index 000000000..177bc2970 --- /dev/null +++ b/opensearch/src/model/GetSortScriptFileResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +GetSortScriptFileResult::GetSortScriptFileResult() : + ServiceResult() +{} + +GetSortScriptFileResult::GetSortScriptFileResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetSortScriptFileResult::~GetSortScriptFileResult() +{} + +void GetSortScriptFileResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["content"].isNull()) + result_.content = resultNode["content"].asString(); + if(!resultNode["version"].isNull()) + result_.version = std::stol(resultNode["version"].asString()); + if(!resultNode["createTime"].isNull()) + result_.createTime = resultNode["createTime"].asString(); + if(!resultNode["modifyTime"].isNull()) + result_.modifyTime = resultNode["modifyTime"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string GetSortScriptFileResult::getRequestId()const +{ + return requestId_; +} + +GetSortScriptFileResult::Result GetSortScriptFileResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/GetSortScriptRequest.cc b/opensearch/src/model/GetSortScriptRequest.cc new file mode 100644 index 000000000..ddc2060fe --- /dev/null +++ b/opensearch/src/model/GetSortScriptRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::GetSortScriptRequest; + +GetSortScriptRequest::GetSortScriptRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appVersionId]/sort-scripts/[scriptName]"); + setMethod(HttpRequest::Method::Get); +} + +GetSortScriptRequest::~GetSortScriptRequest() +{} + +std::string GetSortScriptRequest::getAppVersionId()const +{ + return appVersionId_; +} + +void GetSortScriptRequest::setAppVersionId(const std::string& appVersionId) +{ + appVersionId_ = appVersionId; + setParameter("AppVersionId", appVersionId); +} + +std::string GetSortScriptRequest::getScriptName()const +{ + return scriptName_; +} + +void GetSortScriptRequest::setScriptName(const std::string& scriptName) +{ + scriptName_ = scriptName; + setParameter("ScriptName", scriptName); +} + +std::string GetSortScriptRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void GetSortScriptRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/GetSortScriptResult.cc b/opensearch/src/model/GetSortScriptResult.cc new file mode 100644 index 000000000..af45e45a3 --- /dev/null +++ b/opensearch/src/model/GetSortScriptResult.cc @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +GetSortScriptResult::GetSortScriptResult() : + ServiceResult() +{} + +GetSortScriptResult::GetSortScriptResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetSortScriptResult::~GetSortScriptResult() +{} + +void GetSortScriptResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["type"].isNull()) + result_.type = resultNode["type"].asString(); + if(!resultNode["scope"].isNull()) + result_.scope = resultNode["scope"].asString(); + if(!resultNode["status"].isNull()) + result_.status = resultNode["status"].asString(); + if(!resultNode["createTime"].isNull()) + result_.createTime = resultNode["createTime"].asString(); + if(!resultNode["modifyTime"].isNull()) + result_.modifyTime = resultNode["modifyTime"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string GetSortScriptResult::getRequestId()const +{ + return requestId_; +} + +GetSortScriptResult::Result GetSortScriptResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/GetValidationErrorRequest.cc b/opensearch/src/model/GetValidationErrorRequest.cc new file mode 100644 index 000000000..82eb123cf --- /dev/null +++ b/opensearch/src/model/GetValidationErrorRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::GetValidationErrorRequest; + +GetValidationErrorRequest::GetValidationErrorRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/algorithm/data/validation-error"); + setMethod(HttpRequest::Method::Get); +} + +GetValidationErrorRequest::~GetValidationErrorRequest() +{} + +std::string GetValidationErrorRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void GetValidationErrorRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + +std::string GetValidationErrorRequest::getErrorCode()const +{ + return errorCode_; +} + +void GetValidationErrorRequest::setErrorCode(const std::string& errorCode) +{ + errorCode_ = errorCode; + setParameter("ErrorCode", errorCode); +} + diff --git a/opensearch/src/model/GetValidationErrorResult.cc b/opensearch/src/model/GetValidationErrorResult.cc new file mode 100644 index 000000000..f87678d42 --- /dev/null +++ b/opensearch/src/model/GetValidationErrorResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +GetValidationErrorResult::GetValidationErrorResult() : + ServiceResult() +{} + +GetValidationErrorResult::GetValidationErrorResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetValidationErrorResult::~GetValidationErrorResult() +{} + +void GetValidationErrorResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresult = value["result"]["result"]; + for (const auto &item : allresult) + result_.push_back(item.asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string GetValidationErrorResult::getRequestId()const +{ + return requestId_; +} + +std::vector GetValidationErrorResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/GetValidationReportRequest.cc b/opensearch/src/model/GetValidationReportRequest.cc new file mode 100644 index 000000000..6ee363d51 --- /dev/null +++ b/opensearch/src/model/GetValidationReportRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::GetValidationReportRequest; + +GetValidationReportRequest::GetValidationReportRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/algorithm/data/validation-report"); + setMethod(HttpRequest::Method::Get); +} + +GetValidationReportRequest::~GetValidationReportRequest() +{} + +std::string GetValidationReportRequest::getType()const +{ + return type_; +} + +void GetValidationReportRequest::setType(const std::string& type) +{ + type_ = type; + setParameter("Type", type); +} + +std::string GetValidationReportRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void GetValidationReportRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/GetValidationReportResult.cc b/opensearch/src/model/GetValidationReportResult.cc new file mode 100644 index 000000000..53c0e2b93 --- /dev/null +++ b/opensearch/src/model/GetValidationReportResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +GetValidationReportResult::GetValidationReportResult() : + ServiceResult() +{} + +GetValidationReportResult::GetValidationReportResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetValidationReportResult::~GetValidationReportResult() +{} + +void GetValidationReportResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresult = value["result"]["result"]; + for (const auto &item : allresult) + result_.push_back(item.asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string GetValidationReportResult::getRequestId()const +{ + return requestId_; +} + +std::vector GetValidationReportResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/ListABTestExperimentsRequest.cc b/opensearch/src/model/ListABTestExperimentsRequest.cc new file mode 100644 index 000000000..778274dbc --- /dev/null +++ b/opensearch/src/model/ListABTestExperimentsRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ListABTestExperimentsRequest; + +ListABTestExperimentsRequest::ListABTestExperimentsRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/scenes/[sceneId]/groups/[groupId]/experiments"); + setMethod(HttpRequest::Method::Get); +} + +ListABTestExperimentsRequest::~ListABTestExperimentsRequest() +{} + +int ListABTestExperimentsRequest::getGroupId()const +{ + return groupId_; +} + +void ListABTestExperimentsRequest::setGroupId(int groupId) +{ + groupId_ = groupId; + setParameter("GroupId", std::to_string(groupId)); +} + +int ListABTestExperimentsRequest::getSceneId()const +{ + return sceneId_; +} + +void ListABTestExperimentsRequest::setSceneId(int sceneId) +{ + sceneId_ = sceneId; + setParameter("SceneId", std::to_string(sceneId)); +} + +std::string ListABTestExperimentsRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void ListABTestExperimentsRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/ListABTestExperimentsResult.cc b/opensearch/src/model/ListABTestExperimentsResult.cc new file mode 100644 index 000000000..8315957cd --- /dev/null +++ b/opensearch/src/model/ListABTestExperimentsResult.cc @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +ListABTestExperimentsResult::ListABTestExperimentsResult() : + ServiceResult() +{} + +ListABTestExperimentsResult::ListABTestExperimentsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListABTestExperimentsResult::~ListABTestExperimentsResult() +{} + +void ListABTestExperimentsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresultNode = value["result"]["resultItem"]; + for (auto valueresultresultItem : allresultNode) + { + ResultItem resultObject; + if(!valueresultresultItem["id"].isNull()) + resultObject.id = valueresultresultItem["id"].asString(); + if(!valueresultresultItem["name"].isNull()) + resultObject.name = valueresultresultItem["name"].asString(); + if(!valueresultresultItem["params"].isNull()) + resultObject.params = valueresultresultItem["params"].asString(); + if(!valueresultresultItem["created"].isNull()) + resultObject.created = std::stoi(valueresultresultItem["created"].asString()); + if(!valueresultresultItem["updated"].isNull()) + resultObject.updated = std::stoi(valueresultresultItem["updated"].asString()); + if(!valueresultresultItem["online"].isNull()) + resultObject.online = valueresultresultItem["online"].asString() == "true"; + if(!valueresultresultItem["traffic"].isNull()) + resultObject.traffic = std::stoi(valueresultresultItem["traffic"].asString()); + result_.push_back(resultObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::vector ListABTestExperimentsResult::getresult()const +{ + return result_; +} + +std::string ListABTestExperimentsResult::getRequestId()const +{ + return requestId_; +} + diff --git a/opensearch/src/model/ListABTestFixedFlowDividersRequest.cc b/opensearch/src/model/ListABTestFixedFlowDividersRequest.cc new file mode 100644 index 000000000..cfa1f611f --- /dev/null +++ b/opensearch/src/model/ListABTestFixedFlowDividersRequest.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ListABTestFixedFlowDividersRequest; + +ListABTestFixedFlowDividersRequest::ListABTestFixedFlowDividersRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/scenes/[sceneId]/groups/[groupId]/experiments/[experimentId]/fixed-flow-dividers"); + setMethod(HttpRequest::Method::Get); +} + +ListABTestFixedFlowDividersRequest::~ListABTestFixedFlowDividersRequest() +{} + +int ListABTestFixedFlowDividersRequest::getGroupId()const +{ + return groupId_; +} + +void ListABTestFixedFlowDividersRequest::setGroupId(int groupId) +{ + groupId_ = groupId; + setParameter("GroupId", std::to_string(groupId)); +} + +int ListABTestFixedFlowDividersRequest::getSceneId()const +{ + return sceneId_; +} + +void ListABTestFixedFlowDividersRequest::setSceneId(int sceneId) +{ + sceneId_ = sceneId; + setParameter("SceneId", std::to_string(sceneId)); +} + +int ListABTestFixedFlowDividersRequest::getExperimentId()const +{ + return experimentId_; +} + +void ListABTestFixedFlowDividersRequest::setExperimentId(int experimentId) +{ + experimentId_ = experimentId; + setParameter("ExperimentId", std::to_string(experimentId)); +} + +std::string ListABTestFixedFlowDividersRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void ListABTestFixedFlowDividersRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/ListABTestFixedFlowDividersResult.cc b/opensearch/src/model/ListABTestFixedFlowDividersResult.cc new file mode 100644 index 000000000..d67eea794 --- /dev/null +++ b/opensearch/src/model/ListABTestFixedFlowDividersResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +ListABTestFixedFlowDividersResult::ListABTestFixedFlowDividersResult() : + ServiceResult() +{} + +ListABTestFixedFlowDividersResult::ListABTestFixedFlowDividersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListABTestFixedFlowDividersResult::~ListABTestFixedFlowDividersResult() +{} + +void ListABTestFixedFlowDividersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresult = value["result"]["flowDivider"]; + for (const auto &item : allresult) + result_.push_back(item.asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string ListABTestFixedFlowDividersResult::getRequestId()const +{ + return requestId_; +} + +std::vector ListABTestFixedFlowDividersResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/ListABTestGroupsRequest.cc b/opensearch/src/model/ListABTestGroupsRequest.cc new file mode 100644 index 000000000..b4f9440b2 --- /dev/null +++ b/opensearch/src/model/ListABTestGroupsRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ListABTestGroupsRequest; + +ListABTestGroupsRequest::ListABTestGroupsRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/scenes/[sceneId]/groups"); + setMethod(HttpRequest::Method::Get); +} + +ListABTestGroupsRequest::~ListABTestGroupsRequest() +{} + +int ListABTestGroupsRequest::getSceneId()const +{ + return sceneId_; +} + +void ListABTestGroupsRequest::setSceneId(int sceneId) +{ + sceneId_ = sceneId; + setParameter("SceneId", std::to_string(sceneId)); +} + +std::string ListABTestGroupsRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void ListABTestGroupsRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/ListABTestGroupsResult.cc b/opensearch/src/model/ListABTestGroupsResult.cc new file mode 100644 index 000000000..3b379c8b2 --- /dev/null +++ b/opensearch/src/model/ListABTestGroupsResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +ListABTestGroupsResult::ListABTestGroupsResult() : + ServiceResult() +{} + +ListABTestGroupsResult::ListABTestGroupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListABTestGroupsResult::~ListABTestGroupsResult() +{} + +void ListABTestGroupsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresultNode = value["result"]["resultItem"]; + for (auto valueresultresultItem : allresultNode) + { + ResultItem resultObject; + if(!valueresultresultItem["id"].isNull()) + resultObject.id = valueresultresultItem["id"].asString(); + if(!valueresultresultItem["name"].isNull()) + resultObject.name = valueresultresultItem["name"].asString(); + if(!valueresultresultItem["status"].isNull()) + resultObject.status = std::stoi(valueresultresultItem["status"].asString()); + if(!valueresultresultItem["created"].isNull()) + resultObject.created = std::stoi(valueresultresultItem["created"].asString()); + if(!valueresultresultItem["updated"].isNull()) + resultObject.updated = std::stoi(valueresultresultItem["updated"].asString()); + result_.push_back(resultObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::vector ListABTestGroupsResult::getresult()const +{ + return result_; +} + +std::string ListABTestGroupsResult::getRequestId()const +{ + return requestId_; +} + diff --git a/opensearch/src/model/ListABTestMetricsRequest.cc b/opensearch/src/model/ListABTestMetricsRequest.cc new file mode 100644 index 000000000..aad940dd4 --- /dev/null +++ b/opensearch/src/model/ListABTestMetricsRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ListABTestMetricsRequest; + +ListABTestMetricsRequest::ListABTestMetricsRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/scenes/[sceneId]/groups/[groupId]/metrics"); + setMethod(HttpRequest::Method::Get); +} + +ListABTestMetricsRequest::~ListABTestMetricsRequest() +{} + +int ListABTestMetricsRequest::getGroupId()const +{ + return groupId_; +} + +void ListABTestMetricsRequest::setGroupId(int groupId) +{ + groupId_ = groupId; + setParameter("GroupId", std::to_string(groupId)); +} + +int ListABTestMetricsRequest::getSceneId()const +{ + return sceneId_; +} + +void ListABTestMetricsRequest::setSceneId(int sceneId) +{ + sceneId_ = sceneId; + setParameter("SceneId", std::to_string(sceneId)); +} + +std::string ListABTestMetricsRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void ListABTestMetricsRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/ListABTestMetricsResult.cc b/opensearch/src/model/ListABTestMetricsResult.cc new file mode 100644 index 000000000..db10aa0c7 --- /dev/null +++ b/opensearch/src/model/ListABTestMetricsResult.cc @@ -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 +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +ListABTestMetricsResult::ListABTestMetricsResult() : + ServiceResult() +{} + +ListABTestMetricsResult::ListABTestMetricsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListABTestMetricsResult::~ListABTestMetricsResult() +{} + +void ListABTestMetricsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresultNode = value["result"]["resultItem"]; + for (auto valueresultresultItem : allresultNode) + { + ResultItem resultObject; + if(!valueresultresultItem["experimentName"].isNull()) + resultObject.experimentName = valueresultresultItem["experimentName"].asString(); + if(!valueresultresultItem["date"].isNull()) + resultObject.date = valueresultresultItem["date"].asString(); + if(!valueresultresultItem["pv"].isNull()) + resultObject.pv = std::stoi(valueresultresultItem["pv"].asString()); + if(!valueresultresultItem["ipv"].isNull()) + resultObject.ipv = std::stoi(valueresultresultItem["ipv"].asString()); + if(!valueresultresultItem["uv"].isNull()) + resultObject.uv = std::stoi(valueresultresultItem["uv"].asString()); + if(!valueresultresultItem["ipvUv"].isNull()) + resultObject.ipvUv = std::stoi(valueresultresultItem["ipvUv"].asString()); + if(!valueresultresultItem["ctr"].isNull()) + resultObject.ctr = std::stof(valueresultresultItem["ctr"].asString()); + if(!valueresultresultItem["zeroHitRate"].isNull()) + resultObject.zeroHitRate = std::stof(valueresultresultItem["zeroHitRate"].asString()); + result_.push_back(resultObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::vector ListABTestMetricsResult::getresult()const +{ + return result_; +} + +std::string ListABTestMetricsResult::getRequestId()const +{ + return requestId_; +} + diff --git a/opensearch/src/model/ListABTestScenesRequest.cc b/opensearch/src/model/ListABTestScenesRequest.cc new file mode 100644 index 000000000..d8eea9b9f --- /dev/null +++ b/opensearch/src/model/ListABTestScenesRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ListABTestScenesRequest; + +ListABTestScenesRequest::ListABTestScenesRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/scenes"); + setMethod(HttpRequest::Method::Get); +} + +ListABTestScenesRequest::~ListABTestScenesRequest() +{} + +std::string ListABTestScenesRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void ListABTestScenesRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/ListABTestScenesResult.cc b/opensearch/src/model/ListABTestScenesResult.cc new file mode 100644 index 000000000..2f443199e --- /dev/null +++ b/opensearch/src/model/ListABTestScenesResult.cc @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +ListABTestScenesResult::ListABTestScenesResult() : + ServiceResult() +{} + +ListABTestScenesResult::ListABTestScenesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListABTestScenesResult::~ListABTestScenesResult() +{} + +void ListABTestScenesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresultNode = value["result"]["resultItem"]; + for (auto valueresultresultItem : allresultNode) + { + ResultItem resultObject; + if(!valueresultresultItem["id"].isNull()) + resultObject.id = valueresultresultItem["id"].asString(); + if(!valueresultresultItem["name"].isNull()) + resultObject.name = valueresultresultItem["name"].asString(); + if(!valueresultresultItem["status"].isNull()) + resultObject.status = std::stoi(valueresultresultItem["status"].asString()); + if(!valueresultresultItem["created"].isNull()) + resultObject.created = std::stoi(valueresultresultItem["created"].asString()); + if(!valueresultresultItem["updated"].isNull()) + resultObject.updated = std::stoi(valueresultresultItem["updated"].asString()); + auto allValues = value["values"]["values"]; + for (auto value : allValues) + resultObject.values.push_back(value.asString()); + result_.push_back(resultObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::vector ListABTestScenesResult::getresult()const +{ + return result_; +} + +std::string ListABTestScenesResult::getRequestId()const +{ + return requestId_; +} + diff --git a/opensearch/src/model/ListAppGroupErrorsRequest.cc b/opensearch/src/model/ListAppGroupErrorsRequest.cc new file mode 100644 index 000000000..f3f43c8d7 --- /dev/null +++ b/opensearch/src/model/ListAppGroupErrorsRequest.cc @@ -0,0 +1,96 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ListAppGroupErrorsRequest; + +ListAppGroupErrorsRequest::ListAppGroupErrorsRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/errors"); + setMethod(HttpRequest::Method::Get); +} + +ListAppGroupErrorsRequest::~ListAppGroupErrorsRequest() +{} + +std::string ListAppGroupErrorsRequest::getAppId()const +{ + return appId_; +} + +void ListAppGroupErrorsRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setParameter("AppId", appId); +} + +int ListAppGroupErrorsRequest::getPageSize()const +{ + return pageSize_; +} + +void ListAppGroupErrorsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +int ListAppGroupErrorsRequest::getStartTime()const +{ + return startTime_; +} + +void ListAppGroupErrorsRequest::setStartTime(int startTime) +{ + startTime_ = startTime; + setParameter("StartTime", std::to_string(startTime)); +} + +int ListAppGroupErrorsRequest::getStopTime()const +{ + return stopTime_; +} + +void ListAppGroupErrorsRequest::setStopTime(int stopTime) +{ + stopTime_ = stopTime; + setParameter("StopTime", std::to_string(stopTime)); +} + +std::string ListAppGroupErrorsRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void ListAppGroupErrorsRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + +int ListAppGroupErrorsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListAppGroupErrorsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/opensearch/src/model/ListAppGroupErrorsResult.cc b/opensearch/src/model/ListAppGroupErrorsResult.cc new file mode 100644 index 000000000..03a137265 --- /dev/null +++ b/opensearch/src/model/ListAppGroupErrorsResult.cc @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +ListAppGroupErrorsResult::ListAppGroupErrorsResult() : + ServiceResult() +{} + +ListAppGroupErrorsResult::ListAppGroupErrorsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAppGroupErrorsResult::~ListAppGroupErrorsResult() +{} + +void ListAppGroupErrorsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresult = value["result"]["result"]; + for (const auto &item : allresult) + result_.push_back(item.asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["totalCount"].isNull()) + totalCount_ = std::stol(value["totalCount"].asString()); + +} + +long ListAppGroupErrorsResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListAppGroupErrorsResult::getRequestId()const +{ + return requestId_; +} + +std::vector ListAppGroupErrorsResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/ListAppGroupMetricsRequest.cc b/opensearch/src/model/ListAppGroupMetricsRequest.cc new file mode 100644 index 000000000..3779e28cb --- /dev/null +++ b/opensearch/src/model/ListAppGroupMetricsRequest.cc @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ListAppGroupMetricsRequest; + +ListAppGroupMetricsRequest::ListAppGroupMetricsRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/metrics"); + setMethod(HttpRequest::Method::Get); +} + +ListAppGroupMetricsRequest::~ListAppGroupMetricsRequest() +{} + +std::string ListAppGroupMetricsRequest::getMetricType()const +{ + return metricType_; +} + +void ListAppGroupMetricsRequest::setMetricType(const std::string& metricType) +{ + metricType_ = metricType; + setParameter("MetricType", metricType); +} + +std::string ListAppGroupMetricsRequest::getIndexes()const +{ + return indexes_; +} + +void ListAppGroupMetricsRequest::setIndexes(const std::string& indexes) +{ + indexes_ = indexes; + setParameter("Indexes", indexes); +} + +int ListAppGroupMetricsRequest::getEndTime()const +{ + return endTime_; +} + +void ListAppGroupMetricsRequest::setEndTime(int endTime) +{ + endTime_ = endTime; + setParameter("EndTime", std::to_string(endTime)); +} + +int ListAppGroupMetricsRequest::getStartTime()const +{ + return startTime_; +} + +void ListAppGroupMetricsRequest::setStartTime(int startTime) +{ + startTime_ = startTime; + setParameter("StartTime", std::to_string(startTime)); +} + +std::string ListAppGroupMetricsRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void ListAppGroupMetricsRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/ListAppGroupMetricsResult.cc b/opensearch/src/model/ListAppGroupMetricsResult.cc new file mode 100644 index 000000000..3de9256eb --- /dev/null +++ b/opensearch/src/model/ListAppGroupMetricsResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +ListAppGroupMetricsResult::ListAppGroupMetricsResult() : + ServiceResult() +{} + +ListAppGroupMetricsResult::ListAppGroupMetricsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAppGroupMetricsResult::~ListAppGroupMetricsResult() +{} + +void ListAppGroupMetricsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresult = value["result"]["result"]; + for (const auto &item : allresult) + result_.push_back(item.asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string ListAppGroupMetricsResult::getRequestId()const +{ + return requestId_; +} + +std::vector ListAppGroupMetricsResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/ListAppGroupsRequest.cc b/opensearch/src/model/ListAppGroupsRequest.cc new file mode 100644 index 000000000..2d43490c0 --- /dev/null +++ b/opensearch/src/model/ListAppGroupsRequest.cc @@ -0,0 +1,107 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ListAppGroupsRequest; + +ListAppGroupsRequest::ListAppGroupsRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups"); + setMethod(HttpRequest::Method::Get); +} + +ListAppGroupsRequest::~ListAppGroupsRequest() +{} + +std::string ListAppGroupsRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void ListAppGroupsRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +std::string ListAppGroupsRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListAppGroupsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +int ListAppGroupsRequest::getPageSize()const +{ + return pageSize_; +} + +void ListAppGroupsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string ListAppGroupsRequest::getName()const +{ + return name_; +} + +void ListAppGroupsRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +int ListAppGroupsRequest::getSortBy()const +{ + return sortBy_; +} + +void ListAppGroupsRequest::setSortBy(int sortBy) +{ + sortBy_ = sortBy; + setParameter("SortBy", std::to_string(sortBy)); +} + +std::string ListAppGroupsRequest::getType()const +{ + return type_; +} + +void ListAppGroupsRequest::setType(const std::string& type) +{ + type_ = type; + setParameter("Type", type); +} + +int ListAppGroupsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListAppGroupsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/opensearch/src/model/ListAppGroupsResult.cc b/opensearch/src/model/ListAppGroupsResult.cc new file mode 100644 index 000000000..29ded8b29 --- /dev/null +++ b/opensearch/src/model/ListAppGroupsResult.cc @@ -0,0 +1,122 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +ListAppGroupsResult::ListAppGroupsResult() : + ServiceResult() +{} + +ListAppGroupsResult::ListAppGroupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAppGroupsResult::~ListAppGroupsResult() +{} + +void ListAppGroupsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresultNode = value["result"]["resultItem"]; + for (auto valueresultresultItem : allresultNode) + { + ResultItem resultObject; + if(!valueresultresultItem["id"].isNull()) + resultObject.id = valueresultresultItem["id"].asString(); + if(!valueresultresultItem["name"].isNull()) + resultObject.name = valueresultresultItem["name"].asString(); + if(!valueresultresultItem["currentVersion"].isNull()) + resultObject.currentVersion = valueresultresultItem["currentVersion"].asString(); + if(!valueresultresultItem["switchedTime"].isNull()) + resultObject.switchedTime = std::stoi(valueresultresultItem["switchedTime"].asString()); + if(!valueresultresultItem["chargingWay"].isNull()) + resultObject.chargingWay = std::stoi(valueresultresultItem["chargingWay"].asString()); + if(!valueresultresultItem["type"].isNull()) + resultObject.type = valueresultresultItem["type"].asString(); + if(!valueresultresultItem["projectId"].isNull()) + resultObject.projectId = valueresultresultItem["projectId"].asString(); + if(!valueresultresultItem["chargeType"].isNull()) + resultObject.chargeType = valueresultresultItem["chargeType"].asString(); + if(!valueresultresultItem["expireOn"].isNull()) + resultObject.expireOn = valueresultresultItem["expireOn"].asString(); + if(!valueresultresultItem["instanceId"].isNull()) + resultObject.instanceId = valueresultresultItem["instanceId"].asString(); + if(!valueresultresultItem["commodityCode"].isNull()) + resultObject.commodityCode = valueresultresultItem["commodityCode"].asString(); + if(!valueresultresultItem["processingOrderId"].isNull()) + resultObject.processingOrderId = valueresultresultItem["processingOrderId"].asString(); + if(!valueresultresultItem["firstRankAlgoDeploymentId"].isNull()) + resultObject.firstRankAlgoDeploymentId = std::stoi(valueresultresultItem["firstRankAlgoDeploymentId"].asString()); + if(!valueresultresultItem["secondRankAlgoDeploymentId"].isNull()) + resultObject.secondRankAlgoDeploymentId = std::stoi(valueresultresultItem["secondRankAlgoDeploymentId"].asString()); + if(!valueresultresultItem["pendingSecondRankAlgoDeploymentId"].isNull()) + resultObject.pendingSecondRankAlgoDeploymentId = std::stoi(valueresultresultItem["pendingSecondRankAlgoDeploymentId"].asString()); + if(!valueresultresultItem["description"].isNull()) + resultObject.description = valueresultresultItem["description"].asString(); + if(!valueresultresultItem["produced"].isNull()) + resultObject.produced = std::stoi(valueresultresultItem["produced"].asString()); + if(!valueresultresultItem["lockedByExpiration"].isNull()) + resultObject.lockedByExpiration = std::stoi(valueresultresultItem["lockedByExpiration"].asString()); + if(!valueresultresultItem["hasPendingQuotaReviewTask"].isNull()) + resultObject.hasPendingQuotaReviewTask = std::stoi(valueresultresultItem["hasPendingQuotaReviewTask"].asString()); + if(!valueresultresultItem["created"].isNull()) + resultObject.created = std::stoi(valueresultresultItem["created"].asString()); + if(!valueresultresultItem["updated"].isNull()) + resultObject.updated = std::stoi(valueresultresultItem["updated"].asString()); + if(!valueresultresultItem["status"].isNull()) + resultObject.status = valueresultresultItem["status"].asString(); + if(!valueresultresultItem["lockMode"].isNull()) + resultObject.lockMode = valueresultresultItem["lockMode"].asString(); + auto quotaNode = value["quota"]; + if(!quotaNode["docSize"].isNull()) + resultObject.quota.docSize = std::stoi(quotaNode["docSize"].asString()); + if(!quotaNode["computeResource"].isNull()) + resultObject.quota.computeResource = std::stoi(quotaNode["computeResource"].asString()); + if(!quotaNode["spec"].isNull()) + resultObject.quota.spec = quotaNode["spec"].asString(); + result_.push_back(resultObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["totalCount"].isNull()) + totalCount_ = std::stoi(value["totalCount"].asString()); + +} + +std::vector ListAppGroupsResult::getresult()const +{ + return result_; +} + +int ListAppGroupsResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListAppGroupsResult::getRequestId()const +{ + return requestId_; +} + diff --git a/opensearch/src/model/ListAppsRequest.cc b/opensearch/src/model/ListAppsRequest.cc new file mode 100644 index 000000000..477ee9e8c --- /dev/null +++ b/opensearch/src/model/ListAppsRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ListAppsRequest; + +ListAppsRequest::ListAppsRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/apps"); + setMethod(HttpRequest::Method::Get); +} + +ListAppsRequest::~ListAppsRequest() +{} + +int ListAppsRequest::getSize()const +{ + return size_; +} + +void ListAppsRequest::setSize(int size) +{ + size_ = size; + setParameter("Size", std::to_string(size)); +} + +int ListAppsRequest::getPage()const +{ + return page_; +} + +void ListAppsRequest::setPage(int page) +{ + page_ = page; + setParameter("Page", std::to_string(page)); +} + +bool ListAppsRequest::getGroup()const +{ + return group_; +} + +void ListAppsRequest::setGroup(bool group) +{ + group_ = group; + setParameter("Group", group ? "true" : "false"); +} + diff --git a/opensearch/src/model/ListAppsResult.cc b/opensearch/src/model/ListAppsResult.cc new file mode 100644 index 000000000..fa822ae44 --- /dev/null +++ b/opensearch/src/model/ListAppsResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +ListAppsResult::ListAppsResult() : + ServiceResult() +{} + +ListAppsResult::ListAppsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAppsResult::~ListAppsResult() +{} + +void ListAppsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/opensearch/src/model/ListDataCollectionsRequest.cc b/opensearch/src/model/ListDataCollectionsRequest.cc new file mode 100644 index 000000000..b35d47b79 --- /dev/null +++ b/opensearch/src/model/ListDataCollectionsRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ListDataCollectionsRequest; + +ListDataCollectionsRequest::ListDataCollectionsRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/data-collections"); + setMethod(HttpRequest::Method::Get); +} + +ListDataCollectionsRequest::~ListDataCollectionsRequest() +{} + +int ListDataCollectionsRequest::getPageSize()const +{ + return pageSize_; +} + +void ListDataCollectionsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string ListDataCollectionsRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void ListDataCollectionsRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + +int ListDataCollectionsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListDataCollectionsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/opensearch/src/model/ListDataCollectionsResult.cc b/opensearch/src/model/ListDataCollectionsResult.cc new file mode 100644 index 000000000..c4b37e9b7 --- /dev/null +++ b/opensearch/src/model/ListDataCollectionsResult.cc @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +ListDataCollectionsResult::ListDataCollectionsResult() : + ServiceResult() +{} + +ListDataCollectionsResult::ListDataCollectionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListDataCollectionsResult::~ListDataCollectionsResult() +{} + +void ListDataCollectionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresultNode = value["result"]["resultItem"]; + for (auto valueresultresultItem : allresultNode) + { + ResultItem resultObject; + if(!valueresultresultItem["id"].isNull()) + resultObject.id = valueresultresultItem["id"].asString(); + if(!valueresultresultItem["name"].isNull()) + resultObject.name = valueresultresultItem["name"].asString(); + if(!valueresultresultItem["type"].isNull()) + resultObject.type = valueresultresultItem["type"].asString(); + if(!valueresultresultItem["status"].isNull()) + resultObject.status = std::stoi(valueresultresultItem["status"].asString()); + if(!valueresultresultItem["dataCollectionType"].isNull()) + resultObject.dataCollectionType = valueresultresultItem["dataCollectionType"].asString(); + if(!valueresultresultItem["industryName"].isNull()) + resultObject.industryName = valueresultresultItem["industryName"].asString(); + if(!valueresultresultItem["created"].isNull()) + resultObject.created = std::stoi(valueresultresultItem["created"].asString()); + if(!valueresultresultItem["updated"].isNull()) + resultObject.updated = std::stoi(valueresultresultItem["updated"].asString()); + if(!valueresultresultItem["sundialId"].isNull()) + resultObject.sundialId = valueresultresultItem["sundialId"].asString(); + result_.push_back(resultObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["totalCount"].isNull()) + totalCount_ = std::stoi(value["totalCount"].asString()); + +} + +std::vector ListDataCollectionsResult::getresult()const +{ + return result_; +} + +int ListDataCollectionsResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListDataCollectionsResult::getRequestId()const +{ + return requestId_; +} + diff --git a/opensearch/src/model/ListDeployedAlgorithmModelsRequest.cc b/opensearch/src/model/ListDeployedAlgorithmModelsRequest.cc new file mode 100644 index 000000000..61ef8c3d1 --- /dev/null +++ b/opensearch/src/model/ListDeployedAlgorithmModelsRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ListDeployedAlgorithmModelsRequest; + +ListDeployedAlgorithmModelsRequest::ListDeployedAlgorithmModelsRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/deployed-algorithm-models"); + setMethod(HttpRequest::Method::Get); +} + +ListDeployedAlgorithmModelsRequest::~ListDeployedAlgorithmModelsRequest() +{} + +std::string ListDeployedAlgorithmModelsRequest::getAlgorithmType()const +{ + return algorithmType_; +} + +void ListDeployedAlgorithmModelsRequest::setAlgorithmType(const std::string& algorithmType) +{ + algorithmType_ = algorithmType; + setParameter("AlgorithmType", algorithmType); +} + +bool ListDeployedAlgorithmModelsRequest::getInServiceOnly()const +{ + return inServiceOnly_; +} + +void ListDeployedAlgorithmModelsRequest::setInServiceOnly(bool inServiceOnly) +{ + inServiceOnly_ = inServiceOnly; + setParameter("InServiceOnly", inServiceOnly ? "true" : "false"); +} + +std::string ListDeployedAlgorithmModelsRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void ListDeployedAlgorithmModelsRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/ListDeployedAlgorithmModelsResult.cc b/opensearch/src/model/ListDeployedAlgorithmModelsResult.cc new file mode 100644 index 000000000..6c21422b6 --- /dev/null +++ b/opensearch/src/model/ListDeployedAlgorithmModelsResult.cc @@ -0,0 +1,97 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +ListDeployedAlgorithmModelsResult::ListDeployedAlgorithmModelsResult() : + ServiceResult() +{} + +ListDeployedAlgorithmModelsResult::ListDeployedAlgorithmModelsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListDeployedAlgorithmModelsResult::~ListDeployedAlgorithmModelsResult() +{} + +void ListDeployedAlgorithmModelsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresultNode = value["result"]["resultItem"]; + for (auto valueresultresultItem : allresultNode) + { + ResultItem resultObject; + if(!valueresultresultItem["id"].isNull()) + resultObject.id = valueresultresultItem["id"].asString(); + if(!valueresultresultItem["appGroupName"].isNull()) + resultObject.appGroupName = valueresultresultItem["appGroupName"].asString(); + if(!valueresultresultItem["scene"].isNull()) + resultObject.scene = valueresultresultItem["scene"].asString(); + if(!valueresultresultItem["desc"].isNull()) + resultObject.desc = valueresultresultItem["desc"].asString(); + if(!valueresultresultItem["gmtCreate"].isNull()) + resultObject.gmtCreate = valueresultresultItem["gmtCreate"].asString(); + if(!valueresultresultItem["gmtModified"].isNull()) + resultObject.gmtModified = valueresultresultItem["gmtModified"].asString(); + if(!valueresultresultItem["status"].isNull()) + resultObject.status = valueresultresultItem["status"].asString(); + auto allmodelsNode = valueresultresultItem["models"]["modelsItem"]; + for (auto valueresultresultItemmodelsmodelsItem : allmodelsNode) + { + ResultItem::ModelsItem modelsObject; + if(!valueresultresultItemmodelsmodelsItem["modelName"].isNull()) + modelsObject.modelName = valueresultresultItemmodelsmodelsItem["modelName"].asString(); + if(!valueresultresultItemmodelsmodelsItem["modelId"].isNull()) + modelsObject.modelId = std::stoi(valueresultresultItemmodelsmodelsItem["modelId"].asString()); + if(!valueresultresultItemmodelsmodelsItem["progress"].isNull()) + modelsObject.progress = std::stoi(valueresultresultItemmodelsmodelsItem["progress"].asString()); + if(!valueresultresultItemmodelsmodelsItem["status"].isNull()) + modelsObject.status = valueresultresultItemmodelsmodelsItem["status"].asString(); + if(!valueresultresultItemmodelsmodelsItem["projectId"].isNull()) + modelsObject.projectId = std::stoi(valueresultresultItemmodelsmodelsItem["projectId"].asString()); + if(!valueresultresultItemmodelsmodelsItem["algorithmType"].isNull()) + modelsObject.algorithmType = valueresultresultItemmodelsmodelsItem["algorithmType"].asString(); + resultObject.models.push_back(modelsObject); + } + auto allApps = value["apps"]["apps"]; + for (auto value : allApps) + resultObject.apps.push_back(value.asString()); + result_.push_back(resultObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::vector ListDeployedAlgorithmModelsResult::getresult()const +{ + return result_; +} + +std::string ListDeployedAlgorithmModelsResult::getRequestId()const +{ + return requestId_; +} + diff --git a/opensearch/src/model/ListFirstRanksRequest.cc b/opensearch/src/model/ListFirstRanksRequest.cc new file mode 100644 index 000000000..392512c2e --- /dev/null +++ b/opensearch/src/model/ListFirstRanksRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ListFirstRanksRequest; + +ListFirstRanksRequest::ListFirstRanksRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appId]/first-ranks"); + setMethod(HttpRequest::Method::Get); +} + +ListFirstRanksRequest::~ListFirstRanksRequest() +{} + +int ListFirstRanksRequest::getAppId()const +{ + return appId_; +} + +void ListFirstRanksRequest::setAppId(int appId) +{ + appId_ = appId; + setParameter("AppId", std::to_string(appId)); +} + +std::string ListFirstRanksRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void ListFirstRanksRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/ListFirstRanksResult.cc b/opensearch/src/model/ListFirstRanksResult.cc new file mode 100644 index 000000000..8bbcaad69 --- /dev/null +++ b/opensearch/src/model/ListFirstRanksResult.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +ListFirstRanksResult::ListFirstRanksResult() : + ServiceResult() +{} + +ListFirstRanksResult::ListFirstRanksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListFirstRanksResult::~ListFirstRanksResult() +{} + +void ListFirstRanksResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresultNode = value["result"]["firstRankItem"]; + for (auto valueresultfirstRankItem : allresultNode) + { + FirstRankItem resultObject; + if(!valueresultfirstRankItem["name"].isNull()) + resultObject.name = valueresultfirstRankItem["name"].asString(); + if(!valueresultfirstRankItem["description"].isNull()) + resultObject.description = valueresultfirstRankItem["description"].asString(); + if(!valueresultfirstRankItem["active"].isNull()) + resultObject.active = valueresultfirstRankItem["active"].asString() == "true"; + if(!valueresultfirstRankItem["created"].isNull()) + resultObject.created = std::stoi(valueresultfirstRankItem["created"].asString()); + if(!valueresultfirstRankItem["updated"].isNull()) + resultObject.updated = std::stoi(valueresultfirstRankItem["updated"].asString()); + auto allmetaNode = valueresultfirstRankItem["meta"]["metaItem"]; + for (auto valueresultfirstRankItemmetametaItem : allmetaNode) + { + FirstRankItem::MetaItem metaObject; + if(!valueresultfirstRankItemmetametaItem["attribute"].isNull()) + metaObject.attribute = valueresultfirstRankItemmetametaItem["attribute"].asString(); + if(!valueresultfirstRankItemmetametaItem["arg"].isNull()) + metaObject.arg = valueresultfirstRankItemmetametaItem["arg"].asString(); + if(!valueresultfirstRankItemmetametaItem["weight"].isNull()) + metaObject.weight = std::stoi(valueresultfirstRankItemmetametaItem["weight"].asString()); + resultObject.meta.push_back(metaObject); + } + result_.push_back(resultObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::vector ListFirstRanksResult::getresult()const +{ + return result_; +} + +std::string ListFirstRanksResult::getRequestId()const +{ + return requestId_; +} + diff --git a/opensearch/src/model/ListInterventionDictionariesRequest.cc b/opensearch/src/model/ListInterventionDictionariesRequest.cc new file mode 100644 index 000000000..994f5104b --- /dev/null +++ b/opensearch/src/model/ListInterventionDictionariesRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ListInterventionDictionariesRequest; + +ListInterventionDictionariesRequest::ListInterventionDictionariesRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/intervention-dictionaries"); + setMethod(HttpRequest::Method::Get); +} + +ListInterventionDictionariesRequest::~ListInterventionDictionariesRequest() +{} + +std::string ListInterventionDictionariesRequest::getTypes()const +{ + return types_; +} + +void ListInterventionDictionariesRequest::setTypes(const std::string& types) +{ + types_ = types; + setParameter("Types", types); +} + +int ListInterventionDictionariesRequest::getPageSize()const +{ + return pageSize_; +} + +void ListInterventionDictionariesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +int ListInterventionDictionariesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListInterventionDictionariesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/opensearch/src/model/ListInterventionDictionariesResult.cc b/opensearch/src/model/ListInterventionDictionariesResult.cc new file mode 100644 index 000000000..7c1a82991 --- /dev/null +++ b/opensearch/src/model/ListInterventionDictionariesResult.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +ListInterventionDictionariesResult::ListInterventionDictionariesResult() : + ServiceResult() +{} + +ListInterventionDictionariesResult::ListInterventionDictionariesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListInterventionDictionariesResult::~ListInterventionDictionariesResult() +{} + +void ListInterventionDictionariesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresultNode = value["result"]["resultItem"]; + for (auto valueresultresultItem : allresultNode) + { + ResultItem resultObject; + if(!valueresultresultItem["id"].isNull()) + resultObject.id = std::stoi(valueresultresultItem["id"].asString()); + if(!valueresultresultItem["name"].isNull()) + resultObject.name = valueresultresultItem["name"].asString(); + if(!valueresultresultItem["type"].isNull()) + resultObject.type = valueresultresultItem["type"].asString(); + if(!valueresultresultItem["analyzer"].isNull()) + resultObject.analyzer = valueresultresultItem["analyzer"].asString(); + if(!valueresultresultItem["created"].isNull()) + resultObject.created = std::stoi(valueresultresultItem["created"].asString()); + if(!valueresultresultItem["updated"].isNull()) + resultObject.updated = std::stoi(valueresultresultItem["updated"].asString()); + result_.push_back(resultObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["totalCount"].isNull()) + totalCount_ = std::stoi(value["totalCount"].asString()); + +} + +std::vector ListInterventionDictionariesResult::getresult()const +{ + return result_; +} + +int ListInterventionDictionariesResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListInterventionDictionariesResult::getRequestId()const +{ + return requestId_; +} + diff --git a/opensearch/src/model/ListInterventionDictionaryEntriesRequest.cc b/opensearch/src/model/ListInterventionDictionaryEntriesRequest.cc new file mode 100644 index 000000000..c8a3dabfb --- /dev/null +++ b/opensearch/src/model/ListInterventionDictionaryEntriesRequest.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ListInterventionDictionaryEntriesRequest; + +ListInterventionDictionaryEntriesRequest::ListInterventionDictionaryEntriesRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/intervention-dictionaries/[name]/entries"); + setMethod(HttpRequest::Method::Get); +} + +ListInterventionDictionaryEntriesRequest::~ListInterventionDictionaryEntriesRequest() +{} + +std::string ListInterventionDictionaryEntriesRequest::getName()const +{ + return name_; +} + +void ListInterventionDictionaryEntriesRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +int ListInterventionDictionaryEntriesRequest::getPageSize()const +{ + return pageSize_; +} + +void ListInterventionDictionaryEntriesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string ListInterventionDictionaryEntriesRequest::getWord()const +{ + return word_; +} + +void ListInterventionDictionaryEntriesRequest::setWord(const std::string& word) +{ + word_ = word; + setParameter("Word", word); +} + +int ListInterventionDictionaryEntriesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListInterventionDictionaryEntriesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/opensearch/src/model/ListInterventionDictionaryEntriesResult.cc b/opensearch/src/model/ListInterventionDictionaryEntriesResult.cc new file mode 100644 index 000000000..7e0f8287d --- /dev/null +++ b/opensearch/src/model/ListInterventionDictionaryEntriesResult.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +ListInterventionDictionaryEntriesResult::ListInterventionDictionaryEntriesResult() : + ServiceResult() +{} + +ListInterventionDictionaryEntriesResult::ListInterventionDictionaryEntriesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListInterventionDictionaryEntriesResult::~ListInterventionDictionaryEntriesResult() +{} + +void ListInterventionDictionaryEntriesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresultNode = value["result"]["wordItem"]; + for (auto valueresultwordItem : allresultNode) + { + WordItem resultObject; + if(!valueresultwordItem["cmd"].isNull()) + resultObject.cmd = valueresultwordItem["cmd"].asString(); + if(!valueresultwordItem["word"].isNull()) + resultObject.word = valueresultwordItem["word"].asString(); + if(!valueresultwordItem["created"].isNull()) + resultObject.created = std::stol(valueresultwordItem["created"].asString()); + if(!valueresultwordItem["updated"].isNull()) + resultObject.updated = std::stol(valueresultwordItem["updated"].asString()); + if(!valueresultwordItem["status"].isNull()) + resultObject.status = valueresultwordItem["status"].asString(); + if(!valueresultwordItem["relevance"].isNull()) + resultObject.relevance = valueresultwordItem["relevance"].asString(); + auto alltokensNode = valueresultwordItem["tokens"]["token"]; + for (auto valueresultwordItemtokenstoken : alltokensNode) + { + WordItem::Token tokensObject; + if(!valueresultwordItemtokenstoken["tag"].isNull()) + tokensObject.tag = valueresultwordItemtokenstoken["tag"].asString(); + if(!valueresultwordItemtokenstoken["token"].isNull()) + tokensObject.token = valueresultwordItemtokenstoken["token"].asString(); + if(!valueresultwordItemtokenstoken["order"].isNull()) + tokensObject.order = std::stoi(valueresultwordItemtokenstoken["order"].asString()); + if(!valueresultwordItemtokenstoken["tagLabel"].isNull()) + tokensObject.tagLabel = valueresultwordItemtokenstoken["tagLabel"].asString(); + resultObject.tokens.push_back(tokensObject); + } + result_.push_back(resultObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["totalCount"].isNull()) + totalCount_ = std::stoi(value["totalCount"].asString()); + +} + +std::vector ListInterventionDictionaryEntriesResult::getresult()const +{ + return result_; +} + +int ListInterventionDictionaryEntriesResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListInterventionDictionaryEntriesResult::getRequestId()const +{ + return requestId_; +} + diff --git a/opensearch/src/model/ListInterventionDictionaryNerResultsRequest.cc b/opensearch/src/model/ListInterventionDictionaryNerResultsRequest.cc new file mode 100644 index 000000000..18ab5a687 --- /dev/null +++ b/opensearch/src/model/ListInterventionDictionaryNerResultsRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ListInterventionDictionaryNerResultsRequest; + +ListInterventionDictionaryNerResultsRequest::ListInterventionDictionaryNerResultsRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/intervention-dictionaries/[name]/ner-results"); + setMethod(HttpRequest::Method::Get); +} + +ListInterventionDictionaryNerResultsRequest::~ListInterventionDictionaryNerResultsRequest() +{} + +std::string ListInterventionDictionaryNerResultsRequest::getQuery()const +{ + return query_; +} + +void ListInterventionDictionaryNerResultsRequest::setQuery(const std::string& query) +{ + query_ = query; + setParameter("Query", query); +} + +std::string ListInterventionDictionaryNerResultsRequest::getName()const +{ + return name_; +} + +void ListInterventionDictionaryNerResultsRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + diff --git a/opensearch/src/model/ListInterventionDictionaryNerResultsResult.cc b/opensearch/src/model/ListInterventionDictionaryNerResultsResult.cc new file mode 100644 index 000000000..cbe197645 --- /dev/null +++ b/opensearch/src/model/ListInterventionDictionaryNerResultsResult.cc @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +ListInterventionDictionaryNerResultsResult::ListInterventionDictionaryNerResultsResult() : + ServiceResult() +{} + +ListInterventionDictionaryNerResultsResult::ListInterventionDictionaryNerResultsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListInterventionDictionaryNerResultsResult::~ListInterventionDictionaryNerResultsResult() +{} + +void ListInterventionDictionaryNerResultsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresultNode = value["result"]["nerItem"]; + for (auto valueresultnerItem : allresultNode) + { + NerItem resultObject; + if(!valueresultnerItem["tag"].isNull()) + resultObject.tag = valueresultnerItem["tag"].asString(); + if(!valueresultnerItem["tagLabel"].isNull()) + resultObject.tagLabel = valueresultnerItem["tagLabel"].asString(); + if(!valueresultnerItem["token"].isNull()) + resultObject.token = valueresultnerItem["token"].asString(); + if(!valueresultnerItem["order"].isNull()) + resultObject.order = std::stoi(valueresultnerItem["order"].asString()); + result_.push_back(resultObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::vector ListInterventionDictionaryNerResultsResult::getresult()const +{ + return result_; +} + +std::string ListInterventionDictionaryNerResultsResult::getRequestId()const +{ + return requestId_; +} + diff --git a/opensearch/src/model/ListInterventionDictionaryRelatedEntitiesRequest.cc b/opensearch/src/model/ListInterventionDictionaryRelatedEntitiesRequest.cc new file mode 100644 index 000000000..b8b902866 --- /dev/null +++ b/opensearch/src/model/ListInterventionDictionaryRelatedEntitiesRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ListInterventionDictionaryRelatedEntitiesRequest; + +ListInterventionDictionaryRelatedEntitiesRequest::ListInterventionDictionaryRelatedEntitiesRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/intervention-dictionaries/[name]/related"); + setMethod(HttpRequest::Method::Get); +} + +ListInterventionDictionaryRelatedEntitiesRequest::~ListInterventionDictionaryRelatedEntitiesRequest() +{} + +std::string ListInterventionDictionaryRelatedEntitiesRequest::getName()const +{ + return name_; +} + +void ListInterventionDictionaryRelatedEntitiesRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + diff --git a/opensearch/src/model/ListInterventionDictionaryRelatedEntitiesResult.cc b/opensearch/src/model/ListInterventionDictionaryRelatedEntitiesResult.cc new file mode 100644 index 000000000..53d87d45c --- /dev/null +++ b/opensearch/src/model/ListInterventionDictionaryRelatedEntitiesResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +ListInterventionDictionaryRelatedEntitiesResult::ListInterventionDictionaryRelatedEntitiesResult() : + ServiceResult() +{} + +ListInterventionDictionaryRelatedEntitiesResult::ListInterventionDictionaryRelatedEntitiesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListInterventionDictionaryRelatedEntitiesResult::~ListInterventionDictionaryRelatedEntitiesResult() +{} + +void ListInterventionDictionaryRelatedEntitiesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresult = value["result"]["relatedItem"]; + for (const auto &item : allresult) + result_.push_back(item.asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string ListInterventionDictionaryRelatedEntitiesResult::getRequestId()const +{ + return requestId_; +} + +std::vector ListInterventionDictionaryRelatedEntitiesResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/ListModelsRequest.cc b/opensearch/src/model/ListModelsRequest.cc new file mode 100644 index 000000000..8a8b3163f --- /dev/null +++ b/opensearch/src/model/ListModelsRequest.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ListModelsRequest; + +ListModelsRequest::ListModelsRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/algorithm/models"); + setMethod(HttpRequest::Method::Get); +} + +ListModelsRequest::~ListModelsRequest() +{} + +int ListModelsRequest::getPageSize()const +{ + return pageSize_; +} + +void ListModelsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string ListModelsRequest::getType()const +{ + return type_; +} + +void ListModelsRequest::setType(const std::string& type) +{ + type_ = type; + setParameter("Type", type); +} + +std::string ListModelsRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void ListModelsRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + +int ListModelsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListModelsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/opensearch/src/model/ListModelsResult.cc b/opensearch/src/model/ListModelsResult.cc new file mode 100644 index 000000000..5abfdd32e --- /dev/null +++ b/opensearch/src/model/ListModelsResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +ListModelsResult::ListModelsResult() : + ServiceResult() +{} + +ListModelsResult::ListModelsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListModelsResult::~ListModelsResult() +{} + +void ListModelsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresult = value["result"]["result"]; + for (const auto &item : allresult) + result_.push_back(item.asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string ListModelsResult::getRequestId()const +{ + return requestId_; +} + +std::vector ListModelsResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/ListQueryProcessorNersRequest.cc b/opensearch/src/model/ListQueryProcessorNersRequest.cc new file mode 100644 index 000000000..78bce80ad --- /dev/null +++ b/opensearch/src/model/ListQueryProcessorNersRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ListQueryProcessorNersRequest; + +ListQueryProcessorNersRequest::ListQueryProcessorNersRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/query-processor/ner/default-priorities"); + setMethod(HttpRequest::Method::Get); +} + +ListQueryProcessorNersRequest::~ListQueryProcessorNersRequest() +{} + +std::string ListQueryProcessorNersRequest::getDomain()const +{ + return domain_; +} + +void ListQueryProcessorNersRequest::setDomain(const std::string& domain) +{ + domain_ = domain; + setParameter("Domain", domain); +} + diff --git a/opensearch/src/model/ListQueryProcessorNersResult.cc b/opensearch/src/model/ListQueryProcessorNersResult.cc new file mode 100644 index 000000000..95049a90e --- /dev/null +++ b/opensearch/src/model/ListQueryProcessorNersResult.cc @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +ListQueryProcessorNersResult::ListQueryProcessorNersResult() : + ServiceResult() +{} + +ListQueryProcessorNersResult::ListQueryProcessorNersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListQueryProcessorNersResult::~ListQueryProcessorNersResult() +{} + +void ListQueryProcessorNersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresultNode = value["result"]["resultItem"]; + for (auto valueresultresultItem : allresultNode) + { + ResultItem resultObject; + if(!valueresultresultItem["tag"].isNull()) + resultObject.tag = valueresultresultItem["tag"].asString(); + if(!valueresultresultItem["priority"].isNull()) + resultObject.priority = valueresultresultItem["priority"].asString(); + if(!valueresultresultItem["order"].isNull()) + resultObject.order = std::stoi(valueresultresultItem["order"].asString()); + if(!valueresultresultItem["label"].isNull()) + resultObject.label = valueresultresultItem["label"].asString(); + result_.push_back(resultObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::vector ListQueryProcessorNersResult::getresult()const +{ + return result_; +} + +std::string ListQueryProcessorNersResult::getRequestId()const +{ + return requestId_; +} + diff --git a/opensearch/src/model/ListQueryProcessorsRequest.cc b/opensearch/src/model/ListQueryProcessorsRequest.cc new file mode 100644 index 000000000..1e5386922 --- /dev/null +++ b/opensearch/src/model/ListQueryProcessorsRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ListQueryProcessorsRequest; + +ListQueryProcessorsRequest::ListQueryProcessorsRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appId]/query-processors"); + setMethod(HttpRequest::Method::Get); +} + +ListQueryProcessorsRequest::~ListQueryProcessorsRequest() +{} + +int ListQueryProcessorsRequest::getAppId()const +{ + return appId_; +} + +void ListQueryProcessorsRequest::setAppId(int appId) +{ + appId_ = appId; + setParameter("AppId", std::to_string(appId)); +} + +int ListQueryProcessorsRequest::getIsActive()const +{ + return isActive_; +} + +void ListQueryProcessorsRequest::setIsActive(int isActive) +{ + isActive_ = isActive; + setParameter("IsActive", std::to_string(isActive)); +} + +std::string ListQueryProcessorsRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void ListQueryProcessorsRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/ListQueryProcessorsResult.cc b/opensearch/src/model/ListQueryProcessorsResult.cc new file mode 100644 index 000000000..550e2c47e --- /dev/null +++ b/opensearch/src/model/ListQueryProcessorsResult.cc @@ -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 +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +ListQueryProcessorsResult::ListQueryProcessorsResult() : + ServiceResult() +{} + +ListQueryProcessorsResult::ListQueryProcessorsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListQueryProcessorsResult::~ListQueryProcessorsResult() +{} + +void ListQueryProcessorsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresultNode = value["result"]["resultItem"]; + for (auto valueresultresultItem : allresultNode) + { + ResultItem resultObject; + if(!valueresultresultItem["name"].isNull()) + resultObject.name = valueresultresultItem["name"].asString(); + if(!valueresultresultItem["active"].isNull()) + resultObject.active = valueresultresultItem["active"].asString() == "true"; + if(!valueresultresultItem["domain"].isNull()) + resultObject.domain = valueresultresultItem["domain"].asString(); + if(!valueresultresultItem["created"].isNull()) + resultObject.created = std::stoi(valueresultresultItem["created"].asString()); + if(!valueresultresultItem["updated"].isNull()) + resultObject.updated = std::stoi(valueresultresultItem["updated"].asString()); + auto allIndexes = value["indexes"]["indexes"]; + for (auto value : allIndexes) + resultObject.indexes.push_back(value.asString()); + auto allProcessors = value["processors"]["processors"]; + for (auto value : allProcessors) + resultObject.processors.push_back(value.asString()); + result_.push_back(resultObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::vector ListQueryProcessorsResult::getresult()const +{ + return result_; +} + +std::string ListQueryProcessorsResult::getRequestId()const +{ + return requestId_; +} + diff --git a/opensearch/src/model/ListScheduledTasksRequest.cc b/opensearch/src/model/ListScheduledTasksRequest.cc new file mode 100644 index 000000000..371bd9f5b --- /dev/null +++ b/opensearch/src/model/ListScheduledTasksRequest.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ListScheduledTasksRequest; + +ListScheduledTasksRequest::ListScheduledTasksRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/scheduled-tasks"); + setMethod(HttpRequest::Method::Get); +} + +ListScheduledTasksRequest::~ListScheduledTasksRequest() +{} + +int ListScheduledTasksRequest::getPageSize()const +{ + return pageSize_; +} + +void ListScheduledTasksRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string ListScheduledTasksRequest::getType()const +{ + return type_; +} + +void ListScheduledTasksRequest::setType(const std::string& type) +{ + type_ = type; + setParameter("Type", type); +} + +std::string ListScheduledTasksRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void ListScheduledTasksRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + +int ListScheduledTasksRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListScheduledTasksRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/opensearch/src/model/ListScheduledTasksResult.cc b/opensearch/src/model/ListScheduledTasksResult.cc new file mode 100644 index 000000000..3bf62b163 --- /dev/null +++ b/opensearch/src/model/ListScheduledTasksResult.cc @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +ListScheduledTasksResult::ListScheduledTasksResult() : + ServiceResult() +{} + +ListScheduledTasksResult::ListScheduledTasksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListScheduledTasksResult::~ListScheduledTasksResult() +{} + +void ListScheduledTasksResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresult = value["result"]["result"]; + for (const auto &item : allresult) + result_.push_back(item.asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["totalCount"].isNull()) + totalCount_ = std::stol(value["totalCount"].asString()); + +} + +long ListScheduledTasksResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListScheduledTasksResult::getRequestId()const +{ + return requestId_; +} + +std::vector ListScheduledTasksResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/ListSecondRanksRequest.cc b/opensearch/src/model/ListSecondRanksRequest.cc new file mode 100644 index 000000000..cfef6c124 --- /dev/null +++ b/opensearch/src/model/ListSecondRanksRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ListSecondRanksRequest; + +ListSecondRanksRequest::ListSecondRanksRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appId]/second-ranks"); + setMethod(HttpRequest::Method::Get); +} + +ListSecondRanksRequest::~ListSecondRanksRequest() +{} + +int ListSecondRanksRequest::getAppId()const +{ + return appId_; +} + +void ListSecondRanksRequest::setAppId(int appId) +{ + appId_ = appId; + setParameter("AppId", std::to_string(appId)); +} + +std::string ListSecondRanksRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void ListSecondRanksRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/ListSecondRanksResult.cc b/opensearch/src/model/ListSecondRanksResult.cc new file mode 100644 index 000000000..6ccb0f0c8 --- /dev/null +++ b/opensearch/src/model/ListSecondRanksResult.cc @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +ListSecondRanksResult::ListSecondRanksResult() : + ServiceResult() +{} + +ListSecondRanksResult::ListSecondRanksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSecondRanksResult::~ListSecondRanksResult() +{} + +void ListSecondRanksResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresultNode = value["result"]["resultItem"]; + for (auto valueresultresultItem : allresultNode) + { + ResultItem resultObject; + if(!valueresultresultItem["id"].isNull()) + resultObject.id = valueresultresultItem["id"].asString(); + if(!valueresultresultItem["name"].isNull()) + resultObject.name = valueresultresultItem["name"].asString(); + if(!valueresultresultItem["meta"].isNull()) + resultObject.meta = valueresultresultItem["meta"].asString(); + if(!valueresultresultItem["active"].isNull()) + resultObject.active = valueresultresultItem["active"].asString() == "true"; + if(!valueresultresultItem["description"].isNull()) + resultObject.description = valueresultresultItem["description"].asString(); + if(!valueresultresultItem["created"].isNull()) + resultObject.created = std::stoi(valueresultresultItem["created"].asString()); + if(!valueresultresultItem["updated"].isNull()) + resultObject.updated = std::stoi(valueresultresultItem["updated"].asString()); + if(!valueresultresultItem["isDefault"].isNull()) + resultObject.isDefault = valueresultresultItem["isDefault"].asString(); + if(!valueresultresultItem["isSys"].isNull()) + resultObject.isSys = valueresultresultItem["isSys"].asString(); + result_.push_back(resultObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["totalCount"].isNull()) + totalCount_ = std::stoi(value["totalCount"].asString()); + +} + +std::vector ListSecondRanksResult::getresult()const +{ + return result_; +} + +int ListSecondRanksResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListSecondRanksResult::getRequestId()const +{ + return requestId_; +} + diff --git a/opensearch/src/model/ListSlowQueryCategoriesRequest.cc b/opensearch/src/model/ListSlowQueryCategoriesRequest.cc new file mode 100644 index 000000000..8cf5a0216 --- /dev/null +++ b/opensearch/src/model/ListSlowQueryCategoriesRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ListSlowQueryCategoriesRequest; + +ListSlowQueryCategoriesRequest::ListSlowQueryCategoriesRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/optimizers/slow-query/categories"); + setMethod(HttpRequest::Method::Get); +} + +ListSlowQueryCategoriesRequest::~ListSlowQueryCategoriesRequest() +{} + +std::string ListSlowQueryCategoriesRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void ListSlowQueryCategoriesRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/ListSlowQueryCategoriesResult.cc b/opensearch/src/model/ListSlowQueryCategoriesResult.cc new file mode 100644 index 000000000..c67ae7264 --- /dev/null +++ b/opensearch/src/model/ListSlowQueryCategoriesResult.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +ListSlowQueryCategoriesResult::ListSlowQueryCategoriesResult() : + ServiceResult() +{} + +ListSlowQueryCategoriesResult::ListSlowQueryCategoriesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSlowQueryCategoriesResult::~ListSlowQueryCategoriesResult() +{} + +void ListSlowQueryCategoriesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["analyzeStatus"].isNull()) + result_.analyzeStatus = resultNode["analyzeStatus"].asString(); + if(!resultNode["start"].isNull()) + result_.start = std::stoi(resultNode["start"].asString()); + if(!resultNode["end"].isNull()) + result_.end = std::stoi(resultNode["end"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string ListSlowQueryCategoriesResult::getRequestId()const +{ + return requestId_; +} + +ListSlowQueryCategoriesResult::Result ListSlowQueryCategoriesResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/ListSlowQueryQueriesRequest.cc b/opensearch/src/model/ListSlowQueryQueriesRequest.cc new file mode 100644 index 000000000..c127a4019 --- /dev/null +++ b/opensearch/src/model/ListSlowQueryQueriesRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ListSlowQueryQueriesRequest; + +ListSlowQueryQueriesRequest::ListSlowQueryQueriesRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/optimizers/slow-query/categories/[categoryIndex]/queries"); + setMethod(HttpRequest::Method::Get); +} + +ListSlowQueryQueriesRequest::~ListSlowQueryQueriesRequest() +{} + +std::string ListSlowQueryQueriesRequest::getCategoryIndex()const +{ + return categoryIndex_; +} + +void ListSlowQueryQueriesRequest::setCategoryIndex(const std::string& categoryIndex) +{ + categoryIndex_ = categoryIndex; + setParameter("CategoryIndex", categoryIndex); +} + +std::string ListSlowQueryQueriesRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void ListSlowQueryQueriesRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/ListSlowQueryQueriesResult.cc b/opensearch/src/model/ListSlowQueryQueriesResult.cc new file mode 100644 index 000000000..ebda16d3f --- /dev/null +++ b/opensearch/src/model/ListSlowQueryQueriesResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +ListSlowQueryQueriesResult::ListSlowQueryQueriesResult() : + ServiceResult() +{} + +ListSlowQueryQueriesResult::ListSlowQueryQueriesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSlowQueryQueriesResult::~ListSlowQueryQueriesResult() +{} + +void ListSlowQueryQueriesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["start"].isNull()) + result_.start = std::stoi(resultNode["start"].asString()); + if(!resultNode["end"].isNull()) + result_.end = std::stoi(resultNode["end"].asString()); + if(!resultNode["index"].isNull()) + result_.index = std::stoi(resultNode["index"].asString()); + if(!resultNode["appQuery"].isNull()) + result_.appQuery = resultNode["appQuery"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string ListSlowQueryQueriesResult::getRequestId()const +{ + return requestId_; +} + +ListSlowQueryQueriesResult::Result ListSlowQueryQueriesResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/ListSortExpressionsRequest.cc b/opensearch/src/model/ListSortExpressionsRequest.cc new file mode 100644 index 000000000..9b1f5f2ba --- /dev/null +++ b/opensearch/src/model/ListSortExpressionsRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ListSortExpressionsRequest; + +ListSortExpressionsRequest::ListSortExpressionsRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appId]/sort-expressions"); + setMethod(HttpRequest::Method::Get); +} + +ListSortExpressionsRequest::~ListSortExpressionsRequest() +{} + +int ListSortExpressionsRequest::getAppId()const +{ + return appId_; +} + +void ListSortExpressionsRequest::setAppId(int appId) +{ + appId_ = appId; + setParameter("AppId", std::to_string(appId)); +} + +std::string ListSortExpressionsRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void ListSortExpressionsRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/ListSortExpressionsResult.cc b/opensearch/src/model/ListSortExpressionsResult.cc new file mode 100644 index 000000000..41d4912ab --- /dev/null +++ b/opensearch/src/model/ListSortExpressionsResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +ListSortExpressionsResult::ListSortExpressionsResult() : + ServiceResult() +{} + +ListSortExpressionsResult::ListSortExpressionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSortExpressionsResult::~ListSortExpressionsResult() +{} + +void ListSortExpressionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresultNode = value["result"]["firstRankItem"]; + for (auto valueresultfirstRankItem : allresultNode) + { + FirstRankItem resultObject; + if(!valueresultfirstRankItem["name"].isNull()) + resultObject.name = valueresultfirstRankItem["name"].asString(); + if(!valueresultfirstRankItem["description"].isNull()) + resultObject.description = valueresultfirstRankItem["description"].asString(); + if(!valueresultfirstRankItem["active"].isNull()) + resultObject.active = valueresultfirstRankItem["active"].asString() == "true"; + if(!valueresultfirstRankItem["created"].isNull()) + resultObject.created = std::stoi(valueresultfirstRankItem["created"].asString()); + if(!valueresultfirstRankItem["updated"].isNull()) + resultObject.updated = std::stoi(valueresultfirstRankItem["updated"].asString()); + result_.push_back(resultObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::vector ListSortExpressionsResult::getresult()const +{ + return result_; +} + +std::string ListSortExpressionsResult::getRequestId()const +{ + return requestId_; +} + diff --git a/opensearch/src/model/ListSortScriptsRequest.cc b/opensearch/src/model/ListSortScriptsRequest.cc new file mode 100644 index 000000000..e73e2386a --- /dev/null +++ b/opensearch/src/model/ListSortScriptsRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ListSortScriptsRequest; + +ListSortScriptsRequest::ListSortScriptsRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appVersionId]/sort-scripts"); + setMethod(HttpRequest::Method::Get); +} + +ListSortScriptsRequest::~ListSortScriptsRequest() +{} + +std::string ListSortScriptsRequest::getAppVersionId()const +{ + return appVersionId_; +} + +void ListSortScriptsRequest::setAppVersionId(const std::string& appVersionId) +{ + appVersionId_ = appVersionId; + setParameter("AppVersionId", appVersionId); +} + +std::string ListSortScriptsRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void ListSortScriptsRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/ListSortScriptsResult.cc b/opensearch/src/model/ListSortScriptsResult.cc new file mode 100644 index 000000000..96088cc74 --- /dev/null +++ b/opensearch/src/model/ListSortScriptsResult.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +ListSortScriptsResult::ListSortScriptsResult() : + ServiceResult() +{} + +ListSortScriptsResult::ListSortScriptsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSortScriptsResult::~ListSortScriptsResult() +{} + +void ListSortScriptsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresultNode = value["result"]["scriptInfo"]; + for (auto valueresultscriptInfo : allresultNode) + { + ScriptInfo resultObject; + if(!valueresultscriptInfo["scriptName"].isNull()) + resultObject.scriptName = valueresultscriptInfo["scriptName"].asString(); + if(!valueresultscriptInfo["type"].isNull()) + resultObject.type = valueresultscriptInfo["type"].asString(); + if(!valueresultscriptInfo["scope"].isNull()) + resultObject.scope = valueresultscriptInfo["scope"].asString(); + if(!valueresultscriptInfo["status"].isNull()) + resultObject.status = valueresultscriptInfo["status"].asString(); + if(!valueresultscriptInfo["createTime"].isNull()) + resultObject.createTime = valueresultscriptInfo["createTime"].asString(); + if(!valueresultscriptInfo["modifyTime"].isNull()) + resultObject.modifyTime = valueresultscriptInfo["modifyTime"].asString(); + result_.push_back(resultObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::vector ListSortScriptsResult::getresult()const +{ + return result_; +} + +std::string ListSortScriptsResult::getRequestId()const +{ + return requestId_; +} + diff --git a/opensearch/src/model/ListStatisticLogsRequest.cc b/opensearch/src/model/ListStatisticLogsRequest.cc new file mode 100644 index 000000000..6418e38cd --- /dev/null +++ b/opensearch/src/model/ListStatisticLogsRequest.cc @@ -0,0 +1,140 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ListStatisticLogsRequest; + +ListStatisticLogsRequest::ListStatisticLogsRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/statistic-logs/[moduleName]"); + setMethod(HttpRequest::Method::Get); +} + +ListStatisticLogsRequest::~ListStatisticLogsRequest() +{} + +std::string ListStatisticLogsRequest::getColumns()const +{ + return columns_; +} + +void ListStatisticLogsRequest::setColumns(const std::string& columns) +{ + columns_ = columns; + setParameter("Columns", columns); +} + +std::string ListStatisticLogsRequest::getQuery()const +{ + return query_; +} + +void ListStatisticLogsRequest::setQuery(const std::string& query) +{ + query_ = query; + setParameter("Query", query); +} + +int ListStatisticLogsRequest::getPageSize()const +{ + return pageSize_; +} + +void ListStatisticLogsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string ListStatisticLogsRequest::getModuleName()const +{ + return moduleName_; +} + +void ListStatisticLogsRequest::setModuleName(const std::string& moduleName) +{ + moduleName_ = moduleName; + setParameter("ModuleName", moduleName); +} + +bool ListStatisticLogsRequest::getDistinct()const +{ + return distinct_; +} + +void ListStatisticLogsRequest::setDistinct(bool distinct) +{ + distinct_ = distinct; + setParameter("Distinct", distinct ? "true" : "false"); +} + +std::string ListStatisticLogsRequest::getSortBy()const +{ + return sortBy_; +} + +void ListStatisticLogsRequest::setSortBy(const std::string& sortBy) +{ + sortBy_ = sortBy; + setParameter("SortBy", sortBy); +} + +int ListStatisticLogsRequest::getStartTime()const +{ + return startTime_; +} + +void ListStatisticLogsRequest::setStartTime(int startTime) +{ + startTime_ = startTime; + setParameter("StartTime", std::to_string(startTime)); +} + +int ListStatisticLogsRequest::getStopTime()const +{ + return stopTime_; +} + +void ListStatisticLogsRequest::setStopTime(int stopTime) +{ + stopTime_ = stopTime; + setParameter("StopTime", std::to_string(stopTime)); +} + +std::string ListStatisticLogsRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void ListStatisticLogsRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + +int ListStatisticLogsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListStatisticLogsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/opensearch/src/model/ListStatisticLogsResult.cc b/opensearch/src/model/ListStatisticLogsResult.cc new file mode 100644 index 000000000..088785e70 --- /dev/null +++ b/opensearch/src/model/ListStatisticLogsResult.cc @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +ListStatisticLogsResult::ListStatisticLogsResult() : + ServiceResult() +{} + +ListStatisticLogsResult::ListStatisticLogsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListStatisticLogsResult::~ListStatisticLogsResult() +{} + +void ListStatisticLogsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresult = value["result"]["result"]; + for (const auto &item : allresult) + result_.push_back(item.asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["totalCount"].isNull()) + totalCount_ = std::stol(value["totalCount"].asString()); + +} + +long ListStatisticLogsResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListStatisticLogsResult::getRequestId()const +{ + return requestId_; +} + +std::vector ListStatisticLogsResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/ListStatisticReportRequest.cc b/opensearch/src/model/ListStatisticReportRequest.cc new file mode 100644 index 000000000..7cc400e53 --- /dev/null +++ b/opensearch/src/model/ListStatisticReportRequest.cc @@ -0,0 +1,118 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ListStatisticReportRequest; + +ListStatisticReportRequest::ListStatisticReportRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/statistic-report/[moduleName]"); + setMethod(HttpRequest::Method::Get); +} + +ListStatisticReportRequest::~ListStatisticReportRequest() +{} + +std::string ListStatisticReportRequest::getColumns()const +{ + return columns_; +} + +void ListStatisticReportRequest::setColumns(const std::string& columns) +{ + columns_ = columns; + setParameter("Columns", columns); +} + +std::string ListStatisticReportRequest::getQuery()const +{ + return query_; +} + +void ListStatisticReportRequest::setQuery(const std::string& query) +{ + query_ = query; + setParameter("Query", query); +} + +int ListStatisticReportRequest::getPageSize()const +{ + return pageSize_; +} + +void ListStatisticReportRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string ListStatisticReportRequest::getModuleName()const +{ + return moduleName_; +} + +void ListStatisticReportRequest::setModuleName(const std::string& moduleName) +{ + moduleName_ = moduleName; + setParameter("ModuleName", moduleName); +} + +int ListStatisticReportRequest::getEndTime()const +{ + return endTime_; +} + +void ListStatisticReportRequest::setEndTime(int endTime) +{ + endTime_ = endTime; + setParameter("EndTime", std::to_string(endTime)); +} + +int ListStatisticReportRequest::getStartTime()const +{ + return startTime_; +} + +void ListStatisticReportRequest::setStartTime(int startTime) +{ + startTime_ = startTime; + setParameter("StartTime", std::to_string(startTime)); +} + +std::string ListStatisticReportRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void ListStatisticReportRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + +int ListStatisticReportRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListStatisticReportRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/opensearch/src/model/ListStatisticReportResult.cc b/opensearch/src/model/ListStatisticReportResult.cc new file mode 100644 index 000000000..3bfc064a1 --- /dev/null +++ b/opensearch/src/model/ListStatisticReportResult.cc @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +ListStatisticReportResult::ListStatisticReportResult() : + ServiceResult() +{} + +ListStatisticReportResult::ListStatisticReportResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListStatisticReportResult::~ListStatisticReportResult() +{} + +void ListStatisticReportResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresult = value["result"]["result"]; + for (const auto &item : allresult) + result_.push_back(item.asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["totalCount"].isNull()) + totalCount_ = std::stol(value["totalCount"].asString()); + +} + +long ListStatisticReportResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListStatisticReportResult::getRequestId()const +{ + return requestId_; +} + +std::vector ListStatisticReportResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/ListUserAnalyzerEntriesRequest.cc b/opensearch/src/model/ListUserAnalyzerEntriesRequest.cc new file mode 100644 index 000000000..eb58e7ce0 --- /dev/null +++ b/opensearch/src/model/ListUserAnalyzerEntriesRequest.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ListUserAnalyzerEntriesRequest; + +ListUserAnalyzerEntriesRequest::ListUserAnalyzerEntriesRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/user-analyzers/[name]/entries"); + setMethod(HttpRequest::Method::Get); +} + +ListUserAnalyzerEntriesRequest::~ListUserAnalyzerEntriesRequest() +{} + +std::string ListUserAnalyzerEntriesRequest::getName()const +{ + return name_; +} + +void ListUserAnalyzerEntriesRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +int ListUserAnalyzerEntriesRequest::getPageSize()const +{ + return pageSize_; +} + +void ListUserAnalyzerEntriesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string ListUserAnalyzerEntriesRequest::getWord()const +{ + return word_; +} + +void ListUserAnalyzerEntriesRequest::setWord(const std::string& word) +{ + word_ = word; + setParameter("Word", word); +} + +int ListUserAnalyzerEntriesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListUserAnalyzerEntriesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/opensearch/src/model/ListUserAnalyzerEntriesResult.cc b/opensearch/src/model/ListUserAnalyzerEntriesResult.cc new file mode 100644 index 000000000..3ca8c4f32 --- /dev/null +++ b/opensearch/src/model/ListUserAnalyzerEntriesResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +ListUserAnalyzerEntriesResult::ListUserAnalyzerEntriesResult() : + ServiceResult() +{} + +ListUserAnalyzerEntriesResult::ListUserAnalyzerEntriesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListUserAnalyzerEntriesResult::~ListUserAnalyzerEntriesResult() +{} + +void ListUserAnalyzerEntriesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["result"].isNull()) + result_ = value["result"].asString(); + +} + +std::string ListUserAnalyzerEntriesResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/ListUserAnalyzersRequest.cc b/opensearch/src/model/ListUserAnalyzersRequest.cc new file mode 100644 index 000000000..a3d03ea4a --- /dev/null +++ b/opensearch/src/model/ListUserAnalyzersRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ListUserAnalyzersRequest; + +ListUserAnalyzersRequest::ListUserAnalyzersRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/user-analyzers"); + setMethod(HttpRequest::Method::Get); +} + +ListUserAnalyzersRequest::~ListUserAnalyzersRequest() +{} + +int ListUserAnalyzersRequest::getPageSize()const +{ + return pageSize_; +} + +void ListUserAnalyzersRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +int ListUserAnalyzersRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListUserAnalyzersRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/opensearch/src/model/ListUserAnalyzersResult.cc b/opensearch/src/model/ListUserAnalyzersResult.cc new file mode 100644 index 000000000..7a738122f --- /dev/null +++ b/opensearch/src/model/ListUserAnalyzersResult.cc @@ -0,0 +1,101 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +ListUserAnalyzersResult::ListUserAnalyzersResult() : + ServiceResult() +{} + +ListUserAnalyzersResult::ListUserAnalyzersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListUserAnalyzersResult::~ListUserAnalyzersResult() +{} + +void ListUserAnalyzersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresultNode = value["result"]["resultItem"]; + for (auto valueresultresultItem : allresultNode) + { + ResultItem resultObject; + if(!valueresultresultItem["id"].isNull()) + resultObject.id = valueresultresultItem["id"].asString(); + if(!valueresultresultItem["name"].isNull()) + resultObject.name = valueresultresultItem["name"].asString(); + if(!valueresultresultItem["business"].isNull()) + resultObject.business = valueresultresultItem["business"].asString(); + if(!valueresultresultItem["available"].isNull()) + resultObject.available = valueresultresultItem["available"].asString() == "true"; + if(!valueresultresultItem["created"].isNull()) + resultObject.created = std::stoi(valueresultresultItem["created"].asString()); + if(!valueresultresultItem["updated"].isNull()) + resultObject.updated = std::stoi(valueresultresultItem["updated"].asString()); + auto alldictsNode = valueresultresultItem["dicts"]["dictsItem"]; + for (auto valueresultresultItemdictsdictsItem : alldictsNode) + { + ResultItem::DictsItem dictsObject; + if(!valueresultresultItemdictsdictsItem["id"].isNull()) + dictsObject.id = valueresultresultItemdictsdictsItem["id"].asString(); + if(!valueresultresultItemdictsdictsItem["type"].isNull()) + dictsObject.type = valueresultresultItemdictsdictsItem["type"].asString(); + if(!valueresultresultItemdictsdictsItem["entriesLimit"].isNull()) + dictsObject.entriesLimit = std::stoi(valueresultresultItemdictsdictsItem["entriesLimit"].asString()); + if(!valueresultresultItemdictsdictsItem["entriesCount"].isNull()) + dictsObject.entriesCount = std::stoi(valueresultresultItemdictsdictsItem["entriesCount"].asString()); + if(!valueresultresultItemdictsdictsItem["available"].isNull()) + dictsObject.available = valueresultresultItemdictsdictsItem["available"].asString() == "true"; + if(!valueresultresultItemdictsdictsItem["created"].isNull()) + dictsObject.created = std::stoi(valueresultresultItemdictsdictsItem["created"].asString()); + if(!valueresultresultItemdictsdictsItem["updated"].isNull()) + dictsObject.updated = std::stoi(valueresultresultItemdictsdictsItem["updated"].asString()); + resultObject.dicts.push_back(dictsObject); + } + result_.push_back(resultObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["totalCount"].isNull()) + totalCount_ = std::stoi(value["totalCount"].asString()); + +} + +std::vector ListUserAnalyzersResult::getresult()const +{ + return result_; +} + +int ListUserAnalyzersResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListUserAnalyzersResult::getRequestId()const +{ + return requestId_; +} + diff --git a/opensearch/src/model/ModifyAppGroupQuotaRequest.cc b/opensearch/src/model/ModifyAppGroupQuotaRequest.cc new file mode 100644 index 000000000..1dedfe538 --- /dev/null +++ b/opensearch/src/model/ModifyAppGroupQuotaRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ModifyAppGroupQuotaRequest; + +ModifyAppGroupQuotaRequest::ModifyAppGroupQuotaRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/quota"); + setMethod(HttpRequest::Method::Put); +} + +ModifyAppGroupQuotaRequest::~ModifyAppGroupQuotaRequest() +{} + +std::string ModifyAppGroupQuotaRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void ModifyAppGroupQuotaRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/ModifyAppGroupQuotaResult.cc b/opensearch/src/model/ModifyAppGroupQuotaResult.cc new file mode 100644 index 000000000..a4b4c6656 --- /dev/null +++ b/opensearch/src/model/ModifyAppGroupQuotaResult.cc @@ -0,0 +1,110 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +ModifyAppGroupQuotaResult::ModifyAppGroupQuotaResult() : + ServiceResult() +{} + +ModifyAppGroupQuotaResult::ModifyAppGroupQuotaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyAppGroupQuotaResult::~ModifyAppGroupQuotaResult() +{} + +void ModifyAppGroupQuotaResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["id"].isNull()) + result_.id = resultNode["id"].asString(); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["currentVersion"].isNull()) + result_.currentVersion = resultNode["currentVersion"].asString(); + if(!resultNode["switchedTime"].isNull()) + result_.switchedTime = std::stoi(resultNode["switchedTime"].asString()); + if(!resultNode["chargingWay"].isNull()) + result_.chargingWay = std::stoi(resultNode["chargingWay"].asString()); + if(!resultNode["type"].isNull()) + result_.type = resultNode["type"].asString(); + if(!resultNode["projectId"].isNull()) + result_.projectId = resultNode["projectId"].asString(); + if(!resultNode["chargeType"].isNull()) + result_.chargeType = resultNode["chargeType"].asString(); + if(!resultNode["expireOn"].isNull()) + result_.expireOn = resultNode["expireOn"].asString(); + if(!resultNode["instanceId"].isNull()) + result_.instanceId = resultNode["instanceId"].asString(); + if(!resultNode["commodityCode"].isNull()) + result_.commodityCode = resultNode["commodityCode"].asString(); + if(!resultNode["processingOrderId"].isNull()) + result_.processingOrderId = resultNode["processingOrderId"].asString(); + if(!resultNode["firstRankAlgoDeploymentId"].isNull()) + result_.firstRankAlgoDeploymentId = std::stoi(resultNode["firstRankAlgoDeploymentId"].asString()); + if(!resultNode["secondRankAlgoDeploymentId"].isNull()) + result_.secondRankAlgoDeploymentId = std::stoi(resultNode["secondRankAlgoDeploymentId"].asString()); + if(!resultNode["pendingSecondRankAlgoDeploymentId"].isNull()) + result_.pendingSecondRankAlgoDeploymentId = std::stoi(resultNode["pendingSecondRankAlgoDeploymentId"].asString()); + if(!resultNode["description"].isNull()) + result_.description = resultNode["description"].asString(); + if(!resultNode["produced"].isNull()) + result_.produced = std::stoi(resultNode["produced"].asString()); + if(!resultNode["lockedByExpiration"].isNull()) + result_.lockedByExpiration = std::stoi(resultNode["lockedByExpiration"].asString()); + if(!resultNode["hasPendingQuotaReviewTask"].isNull()) + result_.hasPendingQuotaReviewTask = std::stoi(resultNode["hasPendingQuotaReviewTask"].asString()); + if(!resultNode["created"].isNull()) + result_.created = std::stoi(resultNode["created"].asString()); + if(!resultNode["updated"].isNull()) + result_.updated = std::stoi(resultNode["updated"].asString()); + if(!resultNode["status"].isNull()) + result_.status = resultNode["status"].asString(); + if(!resultNode["lockMode"].isNull()) + result_.lockMode = resultNode["lockMode"].asString(); + auto quotaNode = resultNode["quota"]; + if(!quotaNode["docSize"].isNull()) + result_.quota.docSize = std::stoi(quotaNode["docSize"].asString()); + if(!quotaNode["computeResource"].isNull()) + result_.quota.computeResource = std::stoi(quotaNode["computeResource"].asString()); + if(!quotaNode["spec"].isNull()) + result_.quota.spec = quotaNode["spec"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string ModifyAppGroupQuotaResult::getRequestId()const +{ + return requestId_; +} + +ModifyAppGroupQuotaResult::Result ModifyAppGroupQuotaResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/ModifyAppGroupRequest.cc b/opensearch/src/model/ModifyAppGroupRequest.cc new file mode 100644 index 000000000..cff5bb8ae --- /dev/null +++ b/opensearch/src/model/ModifyAppGroupRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ModifyAppGroupRequest; + +ModifyAppGroupRequest::ModifyAppGroupRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]"); + setMethod(HttpRequest::Method::Put); +} + +ModifyAppGroupRequest::~ModifyAppGroupRequest() +{} + +std::string ModifyAppGroupRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void ModifyAppGroupRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/ModifyAppGroupResult.cc b/opensearch/src/model/ModifyAppGroupResult.cc new file mode 100644 index 000000000..52948a9f9 --- /dev/null +++ b/opensearch/src/model/ModifyAppGroupResult.cc @@ -0,0 +1,110 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +ModifyAppGroupResult::ModifyAppGroupResult() : + ServiceResult() +{} + +ModifyAppGroupResult::ModifyAppGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyAppGroupResult::~ModifyAppGroupResult() +{} + +void ModifyAppGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["id"].isNull()) + result_.id = resultNode["id"].asString(); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["currentVersion"].isNull()) + result_.currentVersion = resultNode["currentVersion"].asString(); + if(!resultNode["switchedTime"].isNull()) + result_.switchedTime = std::stoi(resultNode["switchedTime"].asString()); + if(!resultNode["chargingWay"].isNull()) + result_.chargingWay = std::stoi(resultNode["chargingWay"].asString()); + if(!resultNode["type"].isNull()) + result_.type = resultNode["type"].asString(); + if(!resultNode["projectId"].isNull()) + result_.projectId = resultNode["projectId"].asString(); + if(!resultNode["chargeType"].isNull()) + result_.chargeType = resultNode["chargeType"].asString(); + if(!resultNode["expireOn"].isNull()) + result_.expireOn = resultNode["expireOn"].asString(); + if(!resultNode["instanceId"].isNull()) + result_.instanceId = resultNode["instanceId"].asString(); + if(!resultNode["commodityCode"].isNull()) + result_.commodityCode = resultNode["commodityCode"].asString(); + if(!resultNode["processingOrderId"].isNull()) + result_.processingOrderId = resultNode["processingOrderId"].asString(); + if(!resultNode["firstRankAlgoDeploymentId"].isNull()) + result_.firstRankAlgoDeploymentId = std::stoi(resultNode["firstRankAlgoDeploymentId"].asString()); + if(!resultNode["secondRankAlgoDeploymentId"].isNull()) + result_.secondRankAlgoDeploymentId = std::stoi(resultNode["secondRankAlgoDeploymentId"].asString()); + if(!resultNode["pendingSecondRankAlgoDeploymentId"].isNull()) + result_.pendingSecondRankAlgoDeploymentId = std::stoi(resultNode["pendingSecondRankAlgoDeploymentId"].asString()); + if(!resultNode["description"].isNull()) + result_.description = resultNode["description"].asString(); + if(!resultNode["produced"].isNull()) + result_.produced = std::stoi(resultNode["produced"].asString()); + if(!resultNode["lockedByExpiration"].isNull()) + result_.lockedByExpiration = std::stoi(resultNode["lockedByExpiration"].asString()); + if(!resultNode["hasPendingQuotaReviewTask"].isNull()) + result_.hasPendingQuotaReviewTask = std::stoi(resultNode["hasPendingQuotaReviewTask"].asString()); + if(!resultNode["created"].isNull()) + result_.created = std::stoi(resultNode["created"].asString()); + if(!resultNode["updated"].isNull()) + result_.updated = std::stoi(resultNode["updated"].asString()); + if(!resultNode["status"].isNull()) + result_.status = resultNode["status"].asString(); + if(!resultNode["lockMode"].isNull()) + result_.lockMode = resultNode["lockMode"].asString(); + auto quotaNode = resultNode["quota"]; + if(!quotaNode["docSize"].isNull()) + result_.quota.docSize = std::stoi(quotaNode["docSize"].asString()); + if(!quotaNode["computeResource"].isNull()) + result_.quota.computeResource = std::stoi(quotaNode["computeResource"].asString()); + if(!quotaNode["spec"].isNull()) + result_.quota.spec = quotaNode["spec"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string ModifyAppGroupResult::getRequestId()const +{ + return requestId_; +} + +ModifyAppGroupResult::Result ModifyAppGroupResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/ModifyFirstRankRequest.cc b/opensearch/src/model/ModifyFirstRankRequest.cc new file mode 100644 index 000000000..5bfa8b94c --- /dev/null +++ b/opensearch/src/model/ModifyFirstRankRequest.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ModifyFirstRankRequest; + +ModifyFirstRankRequest::ModifyFirstRankRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appId]/first-ranks/[name]"); + setMethod(HttpRequest::Method::Put); +} + +ModifyFirstRankRequest::~ModifyFirstRankRequest() +{} + +bool ModifyFirstRankRequest::getDryRun()const +{ + return dryRun_; +} + +void ModifyFirstRankRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + +int ModifyFirstRankRequest::getAppId()const +{ + return appId_; +} + +void ModifyFirstRankRequest::setAppId(int appId) +{ + appId_ = appId; + setParameter("AppId", std::to_string(appId)); +} + +std::string ModifyFirstRankRequest::getName()const +{ + return name_; +} + +void ModifyFirstRankRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string ModifyFirstRankRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void ModifyFirstRankRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/ModifyFirstRankResult.cc b/opensearch/src/model/ModifyFirstRankResult.cc new file mode 100644 index 000000000..6f82d2136 --- /dev/null +++ b/opensearch/src/model/ModifyFirstRankResult.cc @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +ModifyFirstRankResult::ModifyFirstRankResult() : + ServiceResult() +{} + +ModifyFirstRankResult::ModifyFirstRankResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyFirstRankResult::~ModifyFirstRankResult() +{} + +void ModifyFirstRankResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["description"].isNull()) + result_.description = resultNode["description"].asString(); + if(!resultNode["active"].isNull()) + result_.active = resultNode["active"].asString() == "true"; + auto allmetaNode = resultNode["meta"]["metaItem"]; + for (auto resultNodemetametaItem : allmetaNode) + { + Result::MetaItem metaItemObject; + if(!resultNodemetametaItem["attribute"].isNull()) + metaItemObject.attribute = resultNodemetametaItem["attribute"].asString(); + if(!resultNodemetametaItem["arg"].isNull()) + metaItemObject.arg = resultNodemetametaItem["arg"].asString(); + if(!resultNodemetametaItem["weight"].isNull()) + metaItemObject.weight = std::stof(resultNodemetametaItem["weight"].asString()); + result_.meta.push_back(metaItemObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string ModifyFirstRankResult::getRequestId()const +{ + return requestId_; +} + +ModifyFirstRankResult::Result ModifyFirstRankResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/ModifyModelRequest.cc b/opensearch/src/model/ModifyModelRequest.cc new file mode 100644 index 000000000..e271530a8 --- /dev/null +++ b/opensearch/src/model/ModifyModelRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ModifyModelRequest; + +ModifyModelRequest::ModifyModelRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/algorithm/models/[modelName]"); + setMethod(HttpRequest::Method::Put); +} + +ModifyModelRequest::~ModifyModelRequest() +{} + +std::string ModifyModelRequest::getModelName()const +{ + return modelName_; +} + +void ModifyModelRequest::setModelName(const std::string& modelName) +{ + modelName_ = modelName; + setParameter("ModelName", modelName); +} + +std::string ModifyModelRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void ModifyModelRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/ModifyModelResult.cc b/opensearch/src/model/ModifyModelResult.cc new file mode 100644 index 000000000..99876011d --- /dev/null +++ b/opensearch/src/model/ModifyModelResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +ModifyModelResult::ModifyModelResult() : + ServiceResult() +{} + +ModifyModelResult::ModifyModelResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyModelResult::~ModifyModelResult() +{} + +void ModifyModelResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["result"].isNull()) + result_ = value["result"].asString(); + +} + +std::string ModifyModelResult::getRequestId()const +{ + return requestId_; +} + +std::string ModifyModelResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/ModifyQueryProcessorRequest.cc b/opensearch/src/model/ModifyQueryProcessorRequest.cc new file mode 100644 index 000000000..296b729bc --- /dev/null +++ b/opensearch/src/model/ModifyQueryProcessorRequest.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ModifyQueryProcessorRequest; + +ModifyQueryProcessorRequest::ModifyQueryProcessorRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appId]/query-processors/[name]"); + setMethod(HttpRequest::Method::Put); +} + +ModifyQueryProcessorRequest::~ModifyQueryProcessorRequest() +{} + +bool ModifyQueryProcessorRequest::getDryRun()const +{ + return dryRun_; +} + +void ModifyQueryProcessorRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + +int ModifyQueryProcessorRequest::getAppId()const +{ + return appId_; +} + +void ModifyQueryProcessorRequest::setAppId(int appId) +{ + appId_ = appId; + setParameter("AppId", std::to_string(appId)); +} + +std::string ModifyQueryProcessorRequest::getName()const +{ + return name_; +} + +void ModifyQueryProcessorRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string ModifyQueryProcessorRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void ModifyQueryProcessorRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/ModifyQueryProcessorResult.cc b/opensearch/src/model/ModifyQueryProcessorResult.cc new file mode 100644 index 000000000..cf58ca020 --- /dev/null +++ b/opensearch/src/model/ModifyQueryProcessorResult.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +ModifyQueryProcessorResult::ModifyQueryProcessorResult() : + ServiceResult() +{} + +ModifyQueryProcessorResult::ModifyQueryProcessorResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyQueryProcessorResult::~ModifyQueryProcessorResult() +{} + +void ModifyQueryProcessorResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["active"].isNull()) + result_.active = resultNode["active"].asString() == "true"; + if(!resultNode["domain"].isNull()) + result_.domain = resultNode["domain"].asString(); + if(!resultNode["created"].isNull()) + result_.created = std::stoi(resultNode["created"].asString()); + if(!resultNode["updated"].isNull()) + result_.updated = std::stoi(resultNode["updated"].asString()); + auto allIndexes = resultNode["indexes"]["indexes"]; + for (auto value : allIndexes) + result_.indexes.push_back(value.asString()); + auto allProcessors = resultNode["processors"]["processors"]; + for (auto value : allProcessors) + result_.processors.push_back(value.asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string ModifyQueryProcessorResult::getRequestId()const +{ + return requestId_; +} + +ModifyQueryProcessorResult::Result ModifyQueryProcessorResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/ModifyScheduledTaskRequest.cc b/opensearch/src/model/ModifyScheduledTaskRequest.cc new file mode 100644 index 000000000..dde9f323d --- /dev/null +++ b/opensearch/src/model/ModifyScheduledTaskRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ModifyScheduledTaskRequest; + +ModifyScheduledTaskRequest::ModifyScheduledTaskRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/scheduled-tasks/[taskId]"); + setMethod(HttpRequest::Method::Put); +} + +ModifyScheduledTaskRequest::~ModifyScheduledTaskRequest() +{} + +std::string ModifyScheduledTaskRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void ModifyScheduledTaskRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + +std::string ModifyScheduledTaskRequest::getTaskId()const +{ + return taskId_; +} + +void ModifyScheduledTaskRequest::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; + setParameter("TaskId", taskId); +} + diff --git a/opensearch/src/model/ModifyScheduledTaskResult.cc b/opensearch/src/model/ModifyScheduledTaskResult.cc new file mode 100644 index 000000000..e48e1c9b1 --- /dev/null +++ b/opensearch/src/model/ModifyScheduledTaskResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +ModifyScheduledTaskResult::ModifyScheduledTaskResult() : + ServiceResult() +{} + +ModifyScheduledTaskResult::ModifyScheduledTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyScheduledTaskResult::~ModifyScheduledTaskResult() +{} + +void ModifyScheduledTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["result"].isNull()) + result_ = value["result"].asString(); + +} + +std::string ModifyScheduledTaskResult::getRequestId()const +{ + return requestId_; +} + +std::string ModifyScheduledTaskResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/ModifySecondRankRequest.cc b/opensearch/src/model/ModifySecondRankRequest.cc new file mode 100644 index 000000000..8173a95f7 --- /dev/null +++ b/opensearch/src/model/ModifySecondRankRequest.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ModifySecondRankRequest; + +ModifySecondRankRequest::ModifySecondRankRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appId]/second-ranks/[name]"); + setMethod(HttpRequest::Method::Put); +} + +ModifySecondRankRequest::~ModifySecondRankRequest() +{} + +bool ModifySecondRankRequest::getDryRun()const +{ + return dryRun_; +} + +void ModifySecondRankRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + +int ModifySecondRankRequest::getAppId()const +{ + return appId_; +} + +void ModifySecondRankRequest::setAppId(int appId) +{ + appId_ = appId; + setParameter("AppId", std::to_string(appId)); +} + +std::string ModifySecondRankRequest::getName()const +{ + return name_; +} + +void ModifySecondRankRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string ModifySecondRankRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void ModifySecondRankRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/ModifySecondRankResult.cc b/opensearch/src/model/ModifySecondRankResult.cc new file mode 100644 index 000000000..b5193a96c --- /dev/null +++ b/opensearch/src/model/ModifySecondRankResult.cc @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +ModifySecondRankResult::ModifySecondRankResult() : + ServiceResult() +{} + +ModifySecondRankResult::ModifySecondRankResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifySecondRankResult::~ModifySecondRankResult() +{} + +void ModifySecondRankResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["id"].isNull()) + result_.id = resultNode["id"].asString(); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["meta"].isNull()) + result_.meta = resultNode["meta"].asString(); + if(!resultNode["active"].isNull()) + result_.active = resultNode["active"].asString() == "true"; + if(!resultNode["description"].isNull()) + result_.description = resultNode["description"].asString(); + if(!resultNode["created"].isNull()) + result_.created = std::stoi(resultNode["created"].asString()); + if(!resultNode["updated"].isNull()) + result_.updated = std::stoi(resultNode["updated"].asString()); + if(!resultNode["isDefault"].isNull()) + result_.isDefault = resultNode["isDefault"].asString(); + if(!resultNode["isSys"].isNull()) + result_.isSys = resultNode["isSys"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string ModifySecondRankResult::getRequestId()const +{ + return requestId_; +} + +ModifySecondRankResult::Result ModifySecondRankResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/PreviewModelRequest.cc b/opensearch/src/model/PreviewModelRequest.cc new file mode 100644 index 000000000..0d67de85b --- /dev/null +++ b/opensearch/src/model/PreviewModelRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::PreviewModelRequest; + +PreviewModelRequest::PreviewModelRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/algorithm/models/[modelName]/actions/preview"); + setMethod(HttpRequest::Method::Get); +} + +PreviewModelRequest::~PreviewModelRequest() +{} + +std::string PreviewModelRequest::getModelName()const +{ + return modelName_; +} + +void PreviewModelRequest::setModelName(const std::string& modelName) +{ + modelName_ = modelName; + setParameter("ModelName", modelName); +} + +std::string PreviewModelRequest::getQuery()const +{ + return query_; +} + +void PreviewModelRequest::setQuery(const std::string& query) +{ + query_ = query; + setParameter("Query", query); +} + +std::string PreviewModelRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void PreviewModelRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/PreviewModelResult.cc b/opensearch/src/model/PreviewModelResult.cc new file mode 100644 index 000000000..c50edc9f6 --- /dev/null +++ b/opensearch/src/model/PreviewModelResult.cc @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +PreviewModelResult::PreviewModelResult() : + ServiceResult() +{} + +PreviewModelResult::PreviewModelResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PreviewModelResult::~PreviewModelResult() +{} + +void PreviewModelResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresult = value["result"]["result"]; + for (const auto &item : allresult) + result_.push_back(item.asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["totalCount"].isNull()) + totalCount_ = std::stol(value["totalCount"].asString()); + +} + +long PreviewModelResult::getTotalCount()const +{ + return totalCount_; +} + +std::string PreviewModelResult::getRequestId()const +{ + return requestId_; +} + +std::vector PreviewModelResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/PushInterventionDictionaryEntriesRequest.cc b/opensearch/src/model/PushInterventionDictionaryEntriesRequest.cc new file mode 100644 index 000000000..e96bf6bce --- /dev/null +++ b/opensearch/src/model/PushInterventionDictionaryEntriesRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::PushInterventionDictionaryEntriesRequest; + +PushInterventionDictionaryEntriesRequest::PushInterventionDictionaryEntriesRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/intervention-dictionaries/[name]/entries/actions/bulk"); + setMethod(HttpRequest::Method::Post); +} + +PushInterventionDictionaryEntriesRequest::~PushInterventionDictionaryEntriesRequest() +{} + +std::string PushInterventionDictionaryEntriesRequest::getName()const +{ + return name_; +} + +void PushInterventionDictionaryEntriesRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + diff --git a/opensearch/src/model/PushInterventionDictionaryEntriesResult.cc b/opensearch/src/model/PushInterventionDictionaryEntriesResult.cc new file mode 100644 index 000000000..a85aabc92 --- /dev/null +++ b/opensearch/src/model/PushInterventionDictionaryEntriesResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +PushInterventionDictionaryEntriesResult::PushInterventionDictionaryEntriesResult() : + ServiceResult() +{} + +PushInterventionDictionaryEntriesResult::PushInterventionDictionaryEntriesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PushInterventionDictionaryEntriesResult::~PushInterventionDictionaryEntriesResult() +{} + +void PushInterventionDictionaryEntriesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresult = value["result"]["wordItem"]; + for (const auto &item : allresult) + result_.push_back(item.asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string PushInterventionDictionaryEntriesResult::getRequestId()const +{ + return requestId_; +} + +std::vector PushInterventionDictionaryEntriesResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/PushUserAnalyzerEntriesRequest.cc b/opensearch/src/model/PushUserAnalyzerEntriesRequest.cc new file mode 100644 index 000000000..44c1a151a --- /dev/null +++ b/opensearch/src/model/PushUserAnalyzerEntriesRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::PushUserAnalyzerEntriesRequest; + +PushUserAnalyzerEntriesRequest::PushUserAnalyzerEntriesRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/user-analyzers/[name]/entries/actions/bulk"); + setMethod(HttpRequest::Method::Post); +} + +PushUserAnalyzerEntriesRequest::~PushUserAnalyzerEntriesRequest() +{} + +std::string PushUserAnalyzerEntriesRequest::getName()const +{ + return name_; +} + +void PushUserAnalyzerEntriesRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + diff --git a/opensearch/src/model/PushUserAnalyzerEntriesResult.cc b/opensearch/src/model/PushUserAnalyzerEntriesResult.cc new file mode 100644 index 000000000..be6fcf2c8 --- /dev/null +++ b/opensearch/src/model/PushUserAnalyzerEntriesResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +PushUserAnalyzerEntriesResult::PushUserAnalyzerEntriesResult() : + ServiceResult() +{} + +PushUserAnalyzerEntriesResult::PushUserAnalyzerEntriesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PushUserAnalyzerEntriesResult::~PushUserAnalyzerEntriesResult() +{} + +void PushUserAnalyzerEntriesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["result"].isNull()) + result_ = value["result"].asString(); + +} + +std::string PushUserAnalyzerEntriesResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/RankPreviewQueryRequest.cc b/opensearch/src/model/RankPreviewQueryRequest.cc new file mode 100644 index 000000000..390316a43 --- /dev/null +++ b/opensearch/src/model/RankPreviewQueryRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::RankPreviewQueryRequest; + +RankPreviewQueryRequest::RankPreviewQueryRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/algorithm/models/[modelName]/actions/query-rank"); + setMethod(HttpRequest::Method::Post); +} + +RankPreviewQueryRequest::~RankPreviewQueryRequest() +{} + +std::string RankPreviewQueryRequest::getModelName()const +{ + return modelName_; +} + +void RankPreviewQueryRequest::setModelName(const std::string& modelName) +{ + modelName_ = modelName; + setParameter("ModelName", modelName); +} + +std::string RankPreviewQueryRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void RankPreviewQueryRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/RankPreviewQueryResult.cc b/opensearch/src/model/RankPreviewQueryResult.cc new file mode 100644 index 000000000..6b978a622 --- /dev/null +++ b/opensearch/src/model/RankPreviewQueryResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +RankPreviewQueryResult::RankPreviewQueryResult() : + ServiceResult() +{} + +RankPreviewQueryResult::RankPreviewQueryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RankPreviewQueryResult::~RankPreviewQueryResult() +{} + +void RankPreviewQueryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string RankPreviewQueryResult::getRequestId()const +{ + return requestId_; +} + diff --git a/opensearch/src/model/ReleaseSortScriptRequest.cc b/opensearch/src/model/ReleaseSortScriptRequest.cc new file mode 100644 index 000000000..18116af04 --- /dev/null +++ b/opensearch/src/model/ReleaseSortScriptRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ReleaseSortScriptRequest; + +ReleaseSortScriptRequest::ReleaseSortScriptRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appVersionId]/sort-scripts/[scriptName]/actions/release"); + setMethod(HttpRequest::Method::Post); +} + +ReleaseSortScriptRequest::~ReleaseSortScriptRequest() +{} + +std::string ReleaseSortScriptRequest::getAppVersionId()const +{ + return appVersionId_; +} + +void ReleaseSortScriptRequest::setAppVersionId(const std::string& appVersionId) +{ + appVersionId_ = appVersionId; + setParameter("AppVersionId", appVersionId); +} + +std::string ReleaseSortScriptRequest::getScriptName()const +{ + return scriptName_; +} + +void ReleaseSortScriptRequest::setScriptName(const std::string& scriptName) +{ + scriptName_ = scriptName; + setParameter("ScriptName", scriptName); +} + +std::string ReleaseSortScriptRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void ReleaseSortScriptRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/ReleaseSortScriptResult.cc b/opensearch/src/model/ReleaseSortScriptResult.cc new file mode 100644 index 000000000..633676e79 --- /dev/null +++ b/opensearch/src/model/ReleaseSortScriptResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +ReleaseSortScriptResult::ReleaseSortScriptResult() : + ServiceResult() +{} + +ReleaseSortScriptResult::ReleaseSortScriptResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReleaseSortScriptResult::~ReleaseSortScriptResult() +{} + +void ReleaseSortScriptResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string ReleaseSortScriptResult::getRequestId()const +{ + return requestId_; +} + diff --git a/opensearch/src/model/RemoveAppGroupRequest.cc b/opensearch/src/model/RemoveAppGroupRequest.cc new file mode 100644 index 000000000..09e23829b --- /dev/null +++ b/opensearch/src/model/RemoveAppGroupRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::RemoveAppGroupRequest; + +RemoveAppGroupRequest::RemoveAppGroupRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]"); + setMethod(HttpRequest::Method::Delete); +} + +RemoveAppGroupRequest::~RemoveAppGroupRequest() +{} + +std::string RemoveAppGroupRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void RemoveAppGroupRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/RemoveAppGroupResult.cc b/opensearch/src/model/RemoveAppGroupResult.cc new file mode 100644 index 000000000..78e6fcf21 --- /dev/null +++ b/opensearch/src/model/RemoveAppGroupResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +RemoveAppGroupResult::RemoveAppGroupResult() : + ServiceResult() +{} + +RemoveAppGroupResult::RemoveAppGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveAppGroupResult::~RemoveAppGroupResult() +{} + +void RemoveAppGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresult = value["result"]["result"]; + for (const auto &item : allresult) + result_.push_back(item.asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string RemoveAppGroupResult::getRequestId()const +{ + return requestId_; +} + +std::vector RemoveAppGroupResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/RemoveAppRequest.cc b/opensearch/src/model/RemoveAppRequest.cc new file mode 100644 index 000000000..7940ad537 --- /dev/null +++ b/opensearch/src/model/RemoveAppRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::RemoveAppRequest; + +RemoveAppRequest::RemoveAppRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appId]"); + setMethod(HttpRequest::Method::Delete); +} + +RemoveAppRequest::~RemoveAppRequest() +{} + +int RemoveAppRequest::getAppId()const +{ + return appId_; +} + +void RemoveAppRequest::setAppId(int appId) +{ + appId_ = appId; + setParameter("AppId", std::to_string(appId)); +} + +std::string RemoveAppRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void RemoveAppRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/RemoveAppResult.cc b/opensearch/src/model/RemoveAppResult.cc new file mode 100644 index 000000000..e0e4b5a25 --- /dev/null +++ b/opensearch/src/model/RemoveAppResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +RemoveAppResult::RemoveAppResult() : + ServiceResult() +{} + +RemoveAppResult::RemoveAppResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveAppResult::~RemoveAppResult() +{} + +void RemoveAppResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresult = value["result"]["result"]; + for (const auto &item : allresult) + result_.push_back(item.asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string RemoveAppResult::getRequestId()const +{ + return requestId_; +} + +std::vector RemoveAppResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/RemoveDataCollectionRequest.cc b/opensearch/src/model/RemoveDataCollectionRequest.cc new file mode 100644 index 000000000..970919a1a --- /dev/null +++ b/opensearch/src/model/RemoveDataCollectionRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::RemoveDataCollectionRequest; + +RemoveDataCollectionRequest::RemoveDataCollectionRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/data-collections/[dataCollectionIdentity]"); + setMethod(HttpRequest::Method::Delete); +} + +RemoveDataCollectionRequest::~RemoveDataCollectionRequest() +{} + +std::string RemoveDataCollectionRequest::getDataCollectionIdentity()const +{ + return dataCollectionIdentity_; +} + +void RemoveDataCollectionRequest::setDataCollectionIdentity(const std::string& dataCollectionIdentity) +{ + dataCollectionIdentity_ = dataCollectionIdentity; + setParameter("DataCollectionIdentity", dataCollectionIdentity); +} + +std::string RemoveDataCollectionRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void RemoveDataCollectionRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/RemoveDataCollectionResult.cc b/opensearch/src/model/RemoveDataCollectionResult.cc new file mode 100644 index 000000000..9b166334c --- /dev/null +++ b/opensearch/src/model/RemoveDataCollectionResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +RemoveDataCollectionResult::RemoveDataCollectionResult() : + ServiceResult() +{} + +RemoveDataCollectionResult::RemoveDataCollectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveDataCollectionResult::~RemoveDataCollectionResult() +{} + +void RemoveDataCollectionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["result"].isNull()) + result_ = value["result"].asString(); + +} + +std::string RemoveDataCollectionResult::getRequestId()const +{ + return requestId_; +} + +std::string RemoveDataCollectionResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/RemoveFirstRankRequest.cc b/opensearch/src/model/RemoveFirstRankRequest.cc new file mode 100644 index 000000000..bfa6e3c05 --- /dev/null +++ b/opensearch/src/model/RemoveFirstRankRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::RemoveFirstRankRequest; + +RemoveFirstRankRequest::RemoveFirstRankRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appId]/first-ranks/[name]"); + setMethod(HttpRequest::Method::Delete); +} + +RemoveFirstRankRequest::~RemoveFirstRankRequest() +{} + +int RemoveFirstRankRequest::getAppId()const +{ + return appId_; +} + +void RemoveFirstRankRequest::setAppId(int appId) +{ + appId_ = appId; + setParameter("AppId", std::to_string(appId)); +} + +std::string RemoveFirstRankRequest::getName()const +{ + return name_; +} + +void RemoveFirstRankRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string RemoveFirstRankRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void RemoveFirstRankRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/RemoveFirstRankResult.cc b/opensearch/src/model/RemoveFirstRankResult.cc new file mode 100644 index 000000000..b26522f1a --- /dev/null +++ b/opensearch/src/model/RemoveFirstRankResult.cc @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +RemoveFirstRankResult::RemoveFirstRankResult() : + ServiceResult() +{} + +RemoveFirstRankResult::RemoveFirstRankResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveFirstRankResult::~RemoveFirstRankResult() +{} + +void RemoveFirstRankResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["description"].isNull()) + result_.description = resultNode["description"].asString(); + if(!resultNode["active"].isNull()) + result_.active = resultNode["active"].asString() == "true"; + auto allmetaNode = resultNode["meta"]["metaItem"]; + for (auto resultNodemetametaItem : allmetaNode) + { + Result::MetaItem metaItemObject; + if(!resultNodemetametaItem["attribute"].isNull()) + metaItemObject.attribute = resultNodemetametaItem["attribute"].asString(); + if(!resultNodemetametaItem["arg"].isNull()) + metaItemObject.arg = resultNodemetametaItem["arg"].asString(); + if(!resultNodemetametaItem["weight"].isNull()) + metaItemObject.weight = std::stof(resultNodemetametaItem["weight"].asString()); + result_.meta.push_back(metaItemObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string RemoveFirstRankResult::getRequestId()const +{ + return requestId_; +} + +RemoveFirstRankResult::Result RemoveFirstRankResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/RemoveInterventionDictionaryRequest.cc b/opensearch/src/model/RemoveInterventionDictionaryRequest.cc new file mode 100644 index 000000000..fac162209 --- /dev/null +++ b/opensearch/src/model/RemoveInterventionDictionaryRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::RemoveInterventionDictionaryRequest; + +RemoveInterventionDictionaryRequest::RemoveInterventionDictionaryRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/intervention-dictionaries/[name]"); + setMethod(HttpRequest::Method::Delete); +} + +RemoveInterventionDictionaryRequest::~RemoveInterventionDictionaryRequest() +{} + +std::string RemoveInterventionDictionaryRequest::getName()const +{ + return name_; +} + +void RemoveInterventionDictionaryRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + diff --git a/opensearch/src/model/RemoveInterventionDictionaryResult.cc b/opensearch/src/model/RemoveInterventionDictionaryResult.cc new file mode 100644 index 000000000..b21a94135 --- /dev/null +++ b/opensearch/src/model/RemoveInterventionDictionaryResult.cc @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +RemoveInterventionDictionaryResult::RemoveInterventionDictionaryResult() : + ServiceResult() +{} + +RemoveInterventionDictionaryResult::RemoveInterventionDictionaryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveInterventionDictionaryResult::~RemoveInterventionDictionaryResult() +{} + +void RemoveInterventionDictionaryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["type"].isNull()) + result_.type = resultNode["type"].asString(); + if(!resultNode["analyzer"].isNull()) + result_.analyzer = resultNode["analyzer"].asString(); + if(!resultNode["created"].isNull()) + result_.created = resultNode["created"].asString(); + if(!resultNode["updated"].isNull()) + result_.updated = resultNode["updated"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string RemoveInterventionDictionaryResult::getRequestId()const +{ + return requestId_; +} + +RemoveInterventionDictionaryResult::Result RemoveInterventionDictionaryResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/RemoveQueryProcessorRequest.cc b/opensearch/src/model/RemoveQueryProcessorRequest.cc new file mode 100644 index 000000000..35146034c --- /dev/null +++ b/opensearch/src/model/RemoveQueryProcessorRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::RemoveQueryProcessorRequest; + +RemoveQueryProcessorRequest::RemoveQueryProcessorRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appId]/query-processors/[name]"); + setMethod(HttpRequest::Method::Delete); +} + +RemoveQueryProcessorRequest::~RemoveQueryProcessorRequest() +{} + +int RemoveQueryProcessorRequest::getAppId()const +{ + return appId_; +} + +void RemoveQueryProcessorRequest::setAppId(int appId) +{ + appId_ = appId; + setParameter("AppId", std::to_string(appId)); +} + +std::string RemoveQueryProcessorRequest::getName()const +{ + return name_; +} + +void RemoveQueryProcessorRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string RemoveQueryProcessorRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void RemoveQueryProcessorRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/RemoveQueryProcessorResult.cc b/opensearch/src/model/RemoveQueryProcessorResult.cc new file mode 100644 index 000000000..33e1c4a46 --- /dev/null +++ b/opensearch/src/model/RemoveQueryProcessorResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +RemoveQueryProcessorResult::RemoveQueryProcessorResult() : + ServiceResult() +{} + +RemoveQueryProcessorResult::RemoveQueryProcessorResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveQueryProcessorResult::~RemoveQueryProcessorResult() +{} + +void RemoveQueryProcessorResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["result"].isNull()) + result_ = value["result"].asString(); + +} + +std::string RemoveQueryProcessorResult::getRequestId()const +{ + return requestId_; +} + +std::string RemoveQueryProcessorResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/RemoveScheduledTaskRequest.cc b/opensearch/src/model/RemoveScheduledTaskRequest.cc new file mode 100644 index 000000000..d8cab4dbf --- /dev/null +++ b/opensearch/src/model/RemoveScheduledTaskRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::RemoveScheduledTaskRequest; + +RemoveScheduledTaskRequest::RemoveScheduledTaskRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/scheduled-tasks/[taskId]"); + setMethod(HttpRequest::Method::Delete); +} + +RemoveScheduledTaskRequest::~RemoveScheduledTaskRequest() +{} + +std::string RemoveScheduledTaskRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void RemoveScheduledTaskRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + +std::string RemoveScheduledTaskRequest::getTaskId()const +{ + return taskId_; +} + +void RemoveScheduledTaskRequest::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; + setParameter("TaskId", taskId); +} + diff --git a/opensearch/src/model/RemoveScheduledTaskResult.cc b/opensearch/src/model/RemoveScheduledTaskResult.cc new file mode 100644 index 000000000..3f8a963a3 --- /dev/null +++ b/opensearch/src/model/RemoveScheduledTaskResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +RemoveScheduledTaskResult::RemoveScheduledTaskResult() : + ServiceResult() +{} + +RemoveScheduledTaskResult::RemoveScheduledTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveScheduledTaskResult::~RemoveScheduledTaskResult() +{} + +void RemoveScheduledTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresult = value["result"]["result"]; + for (const auto &item : allresult) + result_.push_back(item.asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string RemoveScheduledTaskResult::getRequestId()const +{ + return requestId_; +} + +std::vector RemoveScheduledTaskResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/RemoveSecondRankRequest.cc b/opensearch/src/model/RemoveSecondRankRequest.cc new file mode 100644 index 000000000..f55024a26 --- /dev/null +++ b/opensearch/src/model/RemoveSecondRankRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::RemoveSecondRankRequest; + +RemoveSecondRankRequest::RemoveSecondRankRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appId]/second-ranks/[name]"); + setMethod(HttpRequest::Method::Delete); +} + +RemoveSecondRankRequest::~RemoveSecondRankRequest() +{} + +int RemoveSecondRankRequest::getAppId()const +{ + return appId_; +} + +void RemoveSecondRankRequest::setAppId(int appId) +{ + appId_ = appId; + setParameter("AppId", std::to_string(appId)); +} + +std::string RemoveSecondRankRequest::getName()const +{ + return name_; +} + +void RemoveSecondRankRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string RemoveSecondRankRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void RemoveSecondRankRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/RemoveSecondRankResult.cc b/opensearch/src/model/RemoveSecondRankResult.cc new file mode 100644 index 000000000..0c3fd9b34 --- /dev/null +++ b/opensearch/src/model/RemoveSecondRankResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +RemoveSecondRankResult::RemoveSecondRankResult() : + ServiceResult() +{} + +RemoveSecondRankResult::RemoveSecondRankResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveSecondRankResult::~RemoveSecondRankResult() +{} + +void RemoveSecondRankResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["result"].isNull()) + result_ = value["result"].asString(); + +} + +std::string RemoveSecondRankResult::getRequestId()const +{ + return requestId_; +} + +std::string RemoveSecondRankResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/RemoveUserAnalyzerRequest.cc b/opensearch/src/model/RemoveUserAnalyzerRequest.cc new file mode 100644 index 000000000..6b5e25ae6 --- /dev/null +++ b/opensearch/src/model/RemoveUserAnalyzerRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::RemoveUserAnalyzerRequest; + +RemoveUserAnalyzerRequest::RemoveUserAnalyzerRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/user-analyzers/[name]"); + setMethod(HttpRequest::Method::Delete); +} + +RemoveUserAnalyzerRequest::~RemoveUserAnalyzerRequest() +{} + +std::string RemoveUserAnalyzerRequest::getName()const +{ + return name_; +} + +void RemoveUserAnalyzerRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + diff --git a/opensearch/src/model/RemoveUserAnalyzerResult.cc b/opensearch/src/model/RemoveUserAnalyzerResult.cc new file mode 100644 index 000000000..af97ccdbb --- /dev/null +++ b/opensearch/src/model/RemoveUserAnalyzerResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +RemoveUserAnalyzerResult::RemoveUserAnalyzerResult() : + ServiceResult() +{} + +RemoveUserAnalyzerResult::RemoveUserAnalyzerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveUserAnalyzerResult::~RemoveUserAnalyzerResult() +{} + +void RemoveUserAnalyzerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["result"].isNull()) + result_ = value["result"].asString(); + +} + +std::string RemoveUserAnalyzerResult::getRequestId()const +{ + return requestId_; +} + +std::string RemoveUserAnalyzerResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/RenewAppGroupRequest.cc b/opensearch/src/model/RenewAppGroupRequest.cc new file mode 100644 index 000000000..69513a0f7 --- /dev/null +++ b/opensearch/src/model/RenewAppGroupRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::RenewAppGroupRequest; + +RenewAppGroupRequest::RenewAppGroupRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/actions/renew"); + setMethod(HttpRequest::Method::Post); +} + +RenewAppGroupRequest::~RenewAppGroupRequest() +{} + +std::string RenewAppGroupRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void RenewAppGroupRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/RenewAppGroupResult.cc b/opensearch/src/model/RenewAppGroupResult.cc new file mode 100644 index 000000000..cfbda1422 --- /dev/null +++ b/opensearch/src/model/RenewAppGroupResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +RenewAppGroupResult::RenewAppGroupResult() : + ServiceResult() +{} + +RenewAppGroupResult::RenewAppGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RenewAppGroupResult::~RenewAppGroupResult() +{} + +void RenewAppGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string RenewAppGroupResult::getRequestId()const +{ + return requestId_; +} + diff --git a/opensearch/src/model/ReplaceAppGroupCommodityCodeRequest.cc b/opensearch/src/model/ReplaceAppGroupCommodityCodeRequest.cc new file mode 100644 index 000000000..acc5c3d12 --- /dev/null +++ b/opensearch/src/model/ReplaceAppGroupCommodityCodeRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ReplaceAppGroupCommodityCodeRequest; + +ReplaceAppGroupCommodityCodeRequest::ReplaceAppGroupCommodityCodeRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/actions/to-instance-typed"); + setMethod(HttpRequest::Method::Post); +} + +ReplaceAppGroupCommodityCodeRequest::~ReplaceAppGroupCommodityCodeRequest() +{} + +std::string ReplaceAppGroupCommodityCodeRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void ReplaceAppGroupCommodityCodeRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/ReplaceAppGroupCommodityCodeResult.cc b/opensearch/src/model/ReplaceAppGroupCommodityCodeResult.cc new file mode 100644 index 000000000..5b52ef186 --- /dev/null +++ b/opensearch/src/model/ReplaceAppGroupCommodityCodeResult.cc @@ -0,0 +1,113 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +ReplaceAppGroupCommodityCodeResult::ReplaceAppGroupCommodityCodeResult() : + ServiceResult() +{} + +ReplaceAppGroupCommodityCodeResult::ReplaceAppGroupCommodityCodeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReplaceAppGroupCommodityCodeResult::~ReplaceAppGroupCommodityCodeResult() +{} + +void ReplaceAppGroupCommodityCodeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["id"].isNull()) + result_.id = resultNode["id"].asString(); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["currentVersion"].isNull()) + result_.currentVersion = resultNode["currentVersion"].asString(); + if(!resultNode["switchedTime"].isNull()) + result_.switchedTime = std::stoi(resultNode["switchedTime"].asString()); + if(!resultNode["chargingWay"].isNull()) + result_.chargingWay = std::stoi(resultNode["chargingWay"].asString()); + if(!resultNode["type"].isNull()) + result_.type = resultNode["type"].asString(); + if(!resultNode["projectId"].isNull()) + result_.projectId = resultNode["projectId"].asString(); + if(!resultNode["chargeType"].isNull()) + result_.chargeType = resultNode["chargeType"].asString(); + if(!resultNode["expireOn"].isNull()) + result_.expireOn = resultNode["expireOn"].asString(); + if(!resultNode["instanceId"].isNull()) + result_.instanceId = resultNode["instanceId"].asString(); + if(!resultNode["commodityCode"].isNull()) + result_.commodityCode = resultNode["commodityCode"].asString(); + if(!resultNode["processingOrderId"].isNull()) + result_.processingOrderId = resultNode["processingOrderId"].asString(); + if(!resultNode["firstRankAlgoDeploymentId"].isNull()) + result_.firstRankAlgoDeploymentId = std::stoi(resultNode["firstRankAlgoDeploymentId"].asString()); + if(!resultNode["secondRankAlgoDeploymentId"].isNull()) + result_.secondRankAlgoDeploymentId = std::stoi(resultNode["secondRankAlgoDeploymentId"].asString()); + if(!resultNode["pendingSecondRankAlgoDeploymentId"].isNull()) + result_.pendingSecondRankAlgoDeploymentId = std::stoi(resultNode["pendingSecondRankAlgoDeploymentId"].asString()); + if(!resultNode["description"].isNull()) + result_.description = resultNode["description"].asString(); + if(!resultNode["produced"].isNull()) + result_.produced = std::stoi(resultNode["produced"].asString()); + if(!resultNode["lockedByExpiration"].isNull()) + result_.lockedByExpiration = std::stoi(resultNode["lockedByExpiration"].asString()); + if(!resultNode["hasPendingQuotaReviewTask"].isNull()) + result_.hasPendingQuotaReviewTask = std::stoi(resultNode["hasPendingQuotaReviewTask"].asString()); + if(!resultNode["created"].isNull()) + result_.created = std::stoi(resultNode["created"].asString()); + if(!resultNode["updated"].isNull()) + result_.updated = std::stoi(resultNode["updated"].asString()); + if(!resultNode["status"].isNull()) + result_.status = resultNode["status"].asString(); + if(!resultNode["lockMode"].isNull()) + result_.lockMode = resultNode["lockMode"].asString(); + auto quotaNode = resultNode["quota"]; + if(!quotaNode["docSize"].isNull()) + result_.quota.docSize = std::stoi(quotaNode["docSize"].asString()); + if(!quotaNode["computeResource"].isNull()) + result_.quota.computeResource = std::stoi(quotaNode["computeResource"].asString()); + if(!quotaNode["spec"].isNull()) + result_.quota.spec = quotaNode["spec"].asString(); + auto allVersions = resultNode["versions"]["versions"]; + for (auto value : allVersions) + result_.versions.push_back(value.asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string ReplaceAppGroupCommodityCodeResult::getRequestId()const +{ + return requestId_; +} + +ReplaceAppGroupCommodityCodeResult::Result ReplaceAppGroupCommodityCodeResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/SaveSortScriptFileRequest.cc b/opensearch/src/model/SaveSortScriptFileRequest.cc new file mode 100644 index 000000000..3d4afcdaf --- /dev/null +++ b/opensearch/src/model/SaveSortScriptFileRequest.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::SaveSortScriptFileRequest; + +SaveSortScriptFileRequest::SaveSortScriptFileRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appVersionId]/sort-scripts/[scriptName]/files/src/[fileName]"); + setMethod(HttpRequest::Method::Put); +} + +SaveSortScriptFileRequest::~SaveSortScriptFileRequest() +{} + +std::string SaveSortScriptFileRequest::getAppVersionId()const +{ + return appVersionId_; +} + +void SaveSortScriptFileRequest::setAppVersionId(const std::string& appVersionId) +{ + appVersionId_ = appVersionId; + setParameter("AppVersionId", appVersionId); +} + +std::string SaveSortScriptFileRequest::getFileName()const +{ + return fileName_; +} + +void SaveSortScriptFileRequest::setFileName(const std::string& fileName) +{ + fileName_ = fileName; + setParameter("FileName", fileName); +} + +std::string SaveSortScriptFileRequest::getScriptName()const +{ + return scriptName_; +} + +void SaveSortScriptFileRequest::setScriptName(const std::string& scriptName) +{ + scriptName_ = scriptName; + setParameter("ScriptName", scriptName); +} + +std::string SaveSortScriptFileRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void SaveSortScriptFileRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/SaveSortScriptFileResult.cc b/opensearch/src/model/SaveSortScriptFileResult.cc new file mode 100644 index 000000000..4a140f5e9 --- /dev/null +++ b/opensearch/src/model/SaveSortScriptFileResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +SaveSortScriptFileResult::SaveSortScriptFileResult() : + ServiceResult() +{} + +SaveSortScriptFileResult::SaveSortScriptFileResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SaveSortScriptFileResult::~SaveSortScriptFileResult() +{} + +void SaveSortScriptFileResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string SaveSortScriptFileResult::getRequestId()const +{ + return requestId_; +} + diff --git a/opensearch/src/model/StartSlowQueryAnalyzerRequest.cc b/opensearch/src/model/StartSlowQueryAnalyzerRequest.cc new file mode 100644 index 000000000..079a523b0 --- /dev/null +++ b/opensearch/src/model/StartSlowQueryAnalyzerRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::StartSlowQueryAnalyzerRequest; + +StartSlowQueryAnalyzerRequest::StartSlowQueryAnalyzerRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/optimizers/slow-query/actions/run"); + setMethod(HttpRequest::Method::Post); +} + +StartSlowQueryAnalyzerRequest::~StartSlowQueryAnalyzerRequest() +{} + +std::string StartSlowQueryAnalyzerRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void StartSlowQueryAnalyzerRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/StartSlowQueryAnalyzerResult.cc b/opensearch/src/model/StartSlowQueryAnalyzerResult.cc new file mode 100644 index 000000000..4ff9e4718 --- /dev/null +++ b/opensearch/src/model/StartSlowQueryAnalyzerResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +StartSlowQueryAnalyzerResult::StartSlowQueryAnalyzerResult() : + ServiceResult() +{} + +StartSlowQueryAnalyzerResult::StartSlowQueryAnalyzerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartSlowQueryAnalyzerResult::~StartSlowQueryAnalyzerResult() +{} + +void StartSlowQueryAnalyzerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["result"].isNull()) + result_ = value["result"].asString(); + +} + +std::string StartSlowQueryAnalyzerResult::getRequestId()const +{ + return requestId_; +} + +std::string StartSlowQueryAnalyzerResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/TrainModelRequest.cc b/opensearch/src/model/TrainModelRequest.cc new file mode 100644 index 000000000..ca8f30298 --- /dev/null +++ b/opensearch/src/model/TrainModelRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::TrainModelRequest; + +TrainModelRequest::TrainModelRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/algorithm/models/[modelName]/actions/train"); + setMethod(HttpRequest::Method::Post); +} + +TrainModelRequest::~TrainModelRequest() +{} + +std::string TrainModelRequest::getModelName()const +{ + return modelName_; +} + +void TrainModelRequest::setModelName(const std::string& modelName) +{ + modelName_ = modelName; + setParameter("ModelName", modelName); +} + +std::string TrainModelRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void TrainModelRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/TrainModelResult.cc b/opensearch/src/model/TrainModelResult.cc new file mode 100644 index 000000000..67944b574 --- /dev/null +++ b/opensearch/src/model/TrainModelResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +TrainModelResult::TrainModelResult() : + ServiceResult() +{} + +TrainModelResult::TrainModelResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TrainModelResult::~TrainModelResult() +{} + +void TrainModelResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["result"].isNull()) + result_ = value["result"].asString(); + +} + +std::string TrainModelResult::getRequestId()const +{ + return requestId_; +} + +std::string TrainModelResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/UpdateABTestExperimentRequest.cc b/opensearch/src/model/UpdateABTestExperimentRequest.cc new file mode 100644 index 000000000..25ee93892 --- /dev/null +++ b/opensearch/src/model/UpdateABTestExperimentRequest.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::UpdateABTestExperimentRequest; + +UpdateABTestExperimentRequest::UpdateABTestExperimentRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/scenes/[sceneId]/groups/[groupId]/experiments/[experimentId]"); + setMethod(HttpRequest::Method::Put); +} + +UpdateABTestExperimentRequest::~UpdateABTestExperimentRequest() +{} + +int UpdateABTestExperimentRequest::getGroupId()const +{ + return groupId_; +} + +void UpdateABTestExperimentRequest::setGroupId(int groupId) +{ + groupId_ = groupId; + setParameter("GroupId", std::to_string(groupId)); +} + +int UpdateABTestExperimentRequest::getSceneId()const +{ + return sceneId_; +} + +void UpdateABTestExperimentRequest::setSceneId(int sceneId) +{ + sceneId_ = sceneId; + setParameter("SceneId", std::to_string(sceneId)); +} + +int UpdateABTestExperimentRequest::getExperimentId()const +{ + return experimentId_; +} + +void UpdateABTestExperimentRequest::setExperimentId(int experimentId) +{ + experimentId_ = experimentId; + setParameter("ExperimentId", std::to_string(experimentId)); +} + +std::string UpdateABTestExperimentRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void UpdateABTestExperimentRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/UpdateABTestExperimentResult.cc b/opensearch/src/model/UpdateABTestExperimentResult.cc new file mode 100644 index 000000000..85b04564c --- /dev/null +++ b/opensearch/src/model/UpdateABTestExperimentResult.cc @@ -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 +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +UpdateABTestExperimentResult::UpdateABTestExperimentResult() : + ServiceResult() +{} + +UpdateABTestExperimentResult::UpdateABTestExperimentResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateABTestExperimentResult::~UpdateABTestExperimentResult() +{} + +void UpdateABTestExperimentResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["id"].isNull()) + result_.id = resultNode["id"].asString(); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["params"].isNull()) + result_.params = resultNode["params"].asString(); + if(!resultNode["created"].isNull()) + result_.created = std::stoi(resultNode["created"].asString()); + if(!resultNode["updated"].isNull()) + result_.updated = std::stoi(resultNode["updated"].asString()); + if(!resultNode["online"].isNull()) + result_.online = resultNode["online"].asString() == "true"; + if(!resultNode["traffic"].isNull()) + result_.traffic = std::stoi(resultNode["traffic"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string UpdateABTestExperimentResult::getRequestId()const +{ + return requestId_; +} + +UpdateABTestExperimentResult::Result UpdateABTestExperimentResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/UpdateABTestFixedFlowDividersRequest.cc b/opensearch/src/model/UpdateABTestFixedFlowDividersRequest.cc new file mode 100644 index 000000000..6e3193b29 --- /dev/null +++ b/opensearch/src/model/UpdateABTestFixedFlowDividersRequest.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::UpdateABTestFixedFlowDividersRequest; + +UpdateABTestFixedFlowDividersRequest::UpdateABTestFixedFlowDividersRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/scenes/[sceneId]/groups/[groupId]/experiments/[experimentId]/fixed-flow-dividers"); + setMethod(HttpRequest::Method::Put); +} + +UpdateABTestFixedFlowDividersRequest::~UpdateABTestFixedFlowDividersRequest() +{} + +int UpdateABTestFixedFlowDividersRequest::getGroupId()const +{ + return groupId_; +} + +void UpdateABTestFixedFlowDividersRequest::setGroupId(int groupId) +{ + groupId_ = groupId; + setParameter("GroupId", std::to_string(groupId)); +} + +int UpdateABTestFixedFlowDividersRequest::getSceneId()const +{ + return sceneId_; +} + +void UpdateABTestFixedFlowDividersRequest::setSceneId(int sceneId) +{ + sceneId_ = sceneId; + setParameter("SceneId", std::to_string(sceneId)); +} + +int UpdateABTestFixedFlowDividersRequest::getExperimentId()const +{ + return experimentId_; +} + +void UpdateABTestFixedFlowDividersRequest::setExperimentId(int experimentId) +{ + experimentId_ = experimentId; + setParameter("ExperimentId", std::to_string(experimentId)); +} + +std::string UpdateABTestFixedFlowDividersRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void UpdateABTestFixedFlowDividersRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/UpdateABTestFixedFlowDividersResult.cc b/opensearch/src/model/UpdateABTestFixedFlowDividersResult.cc new file mode 100644 index 000000000..f00540094 --- /dev/null +++ b/opensearch/src/model/UpdateABTestFixedFlowDividersResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +UpdateABTestFixedFlowDividersResult::UpdateABTestFixedFlowDividersResult() : + ServiceResult() +{} + +UpdateABTestFixedFlowDividersResult::UpdateABTestFixedFlowDividersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateABTestFixedFlowDividersResult::~UpdateABTestFixedFlowDividersResult() +{} + +void UpdateABTestFixedFlowDividersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresult = value["result"]["flowDivider"]; + for (const auto &item : allresult) + result_.push_back(item.asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string UpdateABTestFixedFlowDividersResult::getRequestId()const +{ + return requestId_; +} + +std::vector UpdateABTestFixedFlowDividersResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/UpdateABTestGroupRequest.cc b/opensearch/src/model/UpdateABTestGroupRequest.cc new file mode 100644 index 000000000..f22675267 --- /dev/null +++ b/opensearch/src/model/UpdateABTestGroupRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::UpdateABTestGroupRequest; + +UpdateABTestGroupRequest::UpdateABTestGroupRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/scenes/[sceneId]/groups/[groupId]"); + setMethod(HttpRequest::Method::Put); +} + +UpdateABTestGroupRequest::~UpdateABTestGroupRequest() +{} + +int UpdateABTestGroupRequest::getGroupId()const +{ + return groupId_; +} + +void UpdateABTestGroupRequest::setGroupId(int groupId) +{ + groupId_ = groupId; + setParameter("GroupId", std::to_string(groupId)); +} + +int UpdateABTestGroupRequest::getSceneId()const +{ + return sceneId_; +} + +void UpdateABTestGroupRequest::setSceneId(int sceneId) +{ + sceneId_ = sceneId; + setParameter("SceneId", std::to_string(sceneId)); +} + +std::string UpdateABTestGroupRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void UpdateABTestGroupRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/UpdateABTestGroupResult.cc b/opensearch/src/model/UpdateABTestGroupResult.cc new file mode 100644 index 000000000..41d2b3645 --- /dev/null +++ b/opensearch/src/model/UpdateABTestGroupResult.cc @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +UpdateABTestGroupResult::UpdateABTestGroupResult() : + ServiceResult() +{} + +UpdateABTestGroupResult::UpdateABTestGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateABTestGroupResult::~UpdateABTestGroupResult() +{} + +void UpdateABTestGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["id"].isNull()) + result_.id = resultNode["id"].asString(); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["status"].isNull()) + result_.status = std::stoi(resultNode["status"].asString()); + if(!resultNode["created"].isNull()) + result_.created = std::stoi(resultNode["created"].asString()); + if(!resultNode["updated"].isNull()) + result_.updated = std::stoi(resultNode["updated"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string UpdateABTestGroupResult::getRequestId()const +{ + return requestId_; +} + +UpdateABTestGroupResult::Result UpdateABTestGroupResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/UpdateABTestSceneRequest.cc b/opensearch/src/model/UpdateABTestSceneRequest.cc new file mode 100644 index 000000000..0146ff467 --- /dev/null +++ b/opensearch/src/model/UpdateABTestSceneRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::UpdateABTestSceneRequest; + +UpdateABTestSceneRequest::UpdateABTestSceneRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/scenes/[sceneId]"); + setMethod(HttpRequest::Method::Put); +} + +UpdateABTestSceneRequest::~UpdateABTestSceneRequest() +{} + +int UpdateABTestSceneRequest::getSceneId()const +{ + return sceneId_; +} + +void UpdateABTestSceneRequest::setSceneId(int sceneId) +{ + sceneId_ = sceneId; + setParameter("SceneId", std::to_string(sceneId)); +} + +std::string UpdateABTestSceneRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void UpdateABTestSceneRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/UpdateABTestSceneResult.cc b/opensearch/src/model/UpdateABTestSceneResult.cc new file mode 100644 index 000000000..9f2b7c5be --- /dev/null +++ b/opensearch/src/model/UpdateABTestSceneResult.cc @@ -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 +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +UpdateABTestSceneResult::UpdateABTestSceneResult() : + ServiceResult() +{} + +UpdateABTestSceneResult::UpdateABTestSceneResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateABTestSceneResult::~UpdateABTestSceneResult() +{} + +void UpdateABTestSceneResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["id"].isNull()) + result_.id = resultNode["id"].asString(); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["params"].isNull()) + result_.params = resultNode["params"].asString(); + if(!resultNode["created"].isNull()) + result_.created = std::stoi(resultNode["created"].asString()); + if(!resultNode["updated"].isNull()) + result_.updated = std::stoi(resultNode["updated"].asString()); + if(!resultNode["online"].isNull()) + result_.online = resultNode["online"].asString() == "true"; + if(!resultNode["traffic"].isNull()) + result_.traffic = std::stoi(resultNode["traffic"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string UpdateABTestSceneResult::getRequestId()const +{ + return requestId_; +} + +UpdateABTestSceneResult::Result UpdateABTestSceneResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/UpdateFetchFieldsRequest.cc b/opensearch/src/model/UpdateFetchFieldsRequest.cc new file mode 100644 index 000000000..5783213a1 --- /dev/null +++ b/opensearch/src/model/UpdateFetchFieldsRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::UpdateFetchFieldsRequest; + +UpdateFetchFieldsRequest::UpdateFetchFieldsRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appId]/fetch-fields"); + setMethod(HttpRequest::Method::Put); +} + +UpdateFetchFieldsRequest::~UpdateFetchFieldsRequest() +{} + +bool UpdateFetchFieldsRequest::getDryRun()const +{ + return dryRun_; +} + +void UpdateFetchFieldsRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + +int UpdateFetchFieldsRequest::getAppId()const +{ + return appId_; +} + +void UpdateFetchFieldsRequest::setAppId(int appId) +{ + appId_ = appId; + setParameter("AppId", std::to_string(appId)); +} + +std::string UpdateFetchFieldsRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void UpdateFetchFieldsRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/UpdateFetchFieldsResult.cc b/opensearch/src/model/UpdateFetchFieldsResult.cc new file mode 100644 index 000000000..8373029a1 --- /dev/null +++ b/opensearch/src/model/UpdateFetchFieldsResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +UpdateFetchFieldsResult::UpdateFetchFieldsResult() : + ServiceResult() +{} + +UpdateFetchFieldsResult::UpdateFetchFieldsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateFetchFieldsResult::~UpdateFetchFieldsResult() +{} + +void UpdateFetchFieldsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["result"].isNull()) + result_ = value["result"].asString() == "true"; + +} + +std::string UpdateFetchFieldsResult::getRequestId()const +{ + return requestId_; +} + +bool UpdateFetchFieldsResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/UpdateSummariesRequest.cc b/opensearch/src/model/UpdateSummariesRequest.cc new file mode 100644 index 000000000..5f2ce0b12 --- /dev/null +++ b/opensearch/src/model/UpdateSummariesRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::UpdateSummariesRequest; + +UpdateSummariesRequest::UpdateSummariesRequest() : + RoaServiceRequest("opensearch", "2017-12-25") +{ + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appId]/summaries"); + setMethod(HttpRequest::Method::Put); +} + +UpdateSummariesRequest::~UpdateSummariesRequest() +{} + +bool UpdateSummariesRequest::getDryRun()const +{ + return dryRun_; +} + +void UpdateSummariesRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + +int UpdateSummariesRequest::getAppId()const +{ + return appId_; +} + +void UpdateSummariesRequest::setAppId(int appId) +{ + appId_ = appId; + setParameter("AppId", std::to_string(appId)); +} + +std::string UpdateSummariesRequest::getAppGroupIdentity()const +{ + return appGroupIdentity_; +} + +void UpdateSummariesRequest::setAppGroupIdentity(const std::string& appGroupIdentity) +{ + appGroupIdentity_ = appGroupIdentity; + setParameter("AppGroupIdentity", appGroupIdentity); +} + diff --git a/opensearch/src/model/UpdateSummariesResult.cc b/opensearch/src/model/UpdateSummariesResult.cc new file mode 100644 index 000000000..ca437559e --- /dev/null +++ b/opensearch/src/model/UpdateSummariesResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::OpenSearch; +using namespace AlibabaCloud::OpenSearch::Model; + +UpdateSummariesResult::UpdateSummariesResult() : + ServiceResult() +{} + +UpdateSummariesResult::UpdateSummariesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateSummariesResult::~UpdateSummariesResult() +{} + +void UpdateSummariesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["result"].isNull()) + result_ = value["result"].asString() == "true"; + +} + +std::string UpdateSummariesResult::getRequestId()const +{ + return requestId_; +} + +bool UpdateSummariesResult::getResult()const +{ + return result_; +} +