From 595c19258428e9e868ab5a9b58dfdfcb136816df Mon Sep 17 00:00:00 2001 From: sdk-team Date: Thu, 1 Dec 2022 02:49:39 +0000 Subject: [PATCH] Fixed bugs for GetScriptFileNames result.pathName --- VERSION | 2 +- opensearch/CMakeLists.txt | 120 +- .../opensearch/OpenSearchClient.h | 232 ++++ .../model/BindESUserAnalyzerRequest.h | 45 + .../model/BindESUserAnalyzerResult.h | 53 + .../opensearch/model/BindEsInstanceRequest.h | 42 + .../opensearch/model/BindEsInstanceResult.h | 53 + .../model/CompileSortScriptRequest.h | 80 +- .../model/CreateABTestExperimentRequest.h | 80 +- .../model/CreateABTestExperimentResult.h | 2 +- .../model/CreateABTestGroupRequest.h | 74 +- .../model/CreateABTestGroupResult.h | 2 +- .../model/CreateABTestSceneRequest.h | 68 +- .../model/CreateABTestSceneResult.h | 2 +- .../opensearch/model/CreateAppGroupRequest.h | 62 +- .../opensearch/model/CreateAppGroupResult.h | 4 +- .../opensearch/model/CreateAppRequest.h | 74 +- .../model/CreateDataCollectionRequest.h | 68 +- .../model/CreateDataCollectionResult.h | 2 +- .../opensearch/model/CreateFirstRankRequest.h | 80 +- .../model/CreateFunctionInstanceRequest.h | 45 + .../model/CreateFunctionInstanceResult.h | 59 + .../model/CreateFunctionTaskRequest.h | 48 + .../model/CreateFunctionTaskResult.h | 59 + .../CreateInterventionDictionaryRequest.h | 62 +- .../CreateInterventionDictionaryResult.h | 2 +- .../opensearch/model/CreateModelRequest.h | 68 +- .../model/CreateQueryProcessorRequest.h | 80 +- .../model/CreateQueryProcessorResult.h | 2 +- .../model/CreateScheduledTaskRequest.h | 68 +- .../model/CreateSearchStrategyRequest.h | 45 + .../model/CreateSearchStrategyResult.h | 51 + .../model/CreateSecondRankRequest.h | 80 +- .../model/CreateSortScriptRequest.h | 74 +- .../model/CreateUserAnalyzerRequest.h | 62 +- .../model/DeleteABTestExperimentRequest.h | 86 +- .../model/DeleteABTestGroupRequest.h | 80 +- .../model/DeleteABTestSceneRequest.h | 74 +- .../model/DeleteFunctionInstanceRequest.h | 48 + .../model/DeleteFunctionInstanceResult.h | 59 + .../model/DeleteFunctionTaskRequest.h | 51 + .../model/DeleteFunctionTaskResult.h | 59 + .../opensearch/model/DeleteModelRequest.h | 74 +- .../model/DeleteSortScriptFileRequest.h | 86 +- .../model/DeleteSortScriptRequest.h | 80 +- .../model/DescribeABTestExperimentRequest.h | 86 +- .../model/DescribeABTestExperimentResult.h | 2 +- .../model/DescribeABTestGroupRequest.h | 80 +- .../model/DescribeABTestGroupResult.h | 2 +- .../model/DescribeABTestSceneRequest.h | 74 +- .../model/DescribeABTestSceneResult.h | 2 +- .../model/DescribeAppGroupDataReportRequest.h | 80 +- .../model/DescribeAppGroupDataReportResult.h | 2 +- .../model/DescribeAppGroupRequest.h | 68 +- .../opensearch/model/DescribeAppGroupResult.h | 10 +- .../model/DescribeAppGroupStatisticsRequest.h | 42 + .../model/DescribeAppGroupStatisticsResult.h | 53 + .../opensearch/model/DescribeAppRequest.h | 74 +- .../opensearch/model/DescribeAppResult.h | 4 +- .../model/DescribeAppStatisticsRequest.h | 74 +- .../opensearch/model/DescribeAppsRequest.h | 68 +- .../model/DescribeDataCollctionRequest.h | 74 +- .../model/DescribeDataCollctionResult.h | 2 +- .../model/DescribeFirstRankRequest.h | 80 +- .../DescribeInterventionDictionaryRequest.h | 68 +- .../DescribeInterventionDictionaryResult.h | 2 +- .../opensearch/model/DescribeModelRequest.h | 74 +- .../model/DescribeQueryProcessorRequest.h | 80 +- .../model/DescribeQueryProcessorResult.h | 2 +- .../opensearch/model/DescribeRegionRequest.h | 62 +- .../opensearch/model/DescribeRegionsRequest.h | 62 +- .../model/DescribeScheduledTaskRequest.h | 74 +- .../model/DescribeSecondRankRequest.h | 80 +- .../model/DescribeSecondRankResult.h | 2 +- .../model/DescribeSlowQueryStatusRequest.h | 68 +- .../model/DescribeUserAnalyzerRequest.h | 74 +- .../model/DisableSlowQueryRequest.h | 68 +- .../opensearch/model/EnableSlowQueryRequest.h | 68 +- .../model/GenerateMergedTableRequest.h | 68 +- .../model/GenerateMergedTableResult.h | 2 +- .../opensearch/model/GetDomainRequest.h | 74 +- .../model/GetFunctionCurrentVersionRequest.h | 54 + .../model/GetFunctionCurrentVersionResult.h | 92 ++ .../model/GetFunctionDefaultInstanceRequest.h | 45 + .../model/GetFunctionDefaultInstanceResult.h | 69 ++ .../model/GetFunctionInstanceRequest.h | 51 + .../model/GetFunctionInstanceResult.h | 100 ++ .../opensearch/model/GetFunctionTaskRequest.h | 51 + .../opensearch/model/GetFunctionTaskResult.h | 72 ++ .../model/GetFunctionVersionRequest.h | 45 + .../model/GetFunctionVersionResult.h | 92 ++ .../model/GetModelProgressRequest.h | 74 +- .../opensearch/model/GetModelReportRequest.h | 74 +- .../model/GetScriptFileNamesRequest.h | 80 +- .../model/GetScriptFileNamesResult.h | 3 +- .../model/GetSearchStrategyRequest.h | 48 + .../model/GetSearchStrategyResult.h | 51 + .../model/GetSortScriptFileRequest.h | 86 +- .../opensearch/model/GetSortScriptRequest.h | 80 +- .../model/GetValidationErrorRequest.h | 74 +- .../model/GetValidationReportRequest.h | 74 +- .../model/ListABTestExperimentsRequest.h | 80 +- .../model/ListABTestExperimentsResult.h | 2 +- .../ListABTestFixedFlowDividersRequest.h | 86 +- .../model/ListABTestGroupsRequest.h | 74 +- .../opensearch/model/ListABTestGroupsResult.h | 2 +- .../model/ListABTestMetricsRequest.h | 80 +- .../model/ListABTestScenesRequest.h | 68 +- .../opensearch/model/ListABTestScenesResult.h | 2 +- .../model/ListAppGroupErrorsRequest.h | 98 +- .../model/ListAppGroupMetricsRequest.h | 92 +- .../opensearch/model/ListAppGroupsRequest.h | 104 +- .../opensearch/model/ListAppGroupsResult.h | 10 +- .../opensearch/model/ListAppsRequest.h | 80 +- .../model/ListDataCollectionsRequest.h | 80 +- .../model/ListDataCollectionsResult.h | 2 +- .../model/ListDataSourceTableFieldsRequest.h | 74 +- .../model/ListDataSourceTablesRequest.h | 74 +- .../ListDeployedAlgorithmModelsRequest.h | 80 +- .../opensearch/model/ListFirstRanksRequest.h | 74 +- .../opensearch/model/ListFirstRanksResult.h | 2 +- .../model/ListFunctionInstancesRequest.h | 63 + .../model/ListFunctionInstancesResult.h | 96 ++ .../model/ListFunctionTasksRequest.h | 63 + .../model/ListFunctionTasksResult.h | 74 ++ .../ListInterventionDictionariesRequest.h | 80 +- .../ListInterventionDictionariesResult.h | 2 +- ...ListInterventionDictionaryEntriesRequest.h | 86 +- .../ListInterventionDictionaryEntriesResult.h | 2 +- ...tInterventionDictionaryNerResultsRequest.h | 74 +- ...rventionDictionaryRelatedEntitiesRequest.h | 68 +- .../opensearch/model/ListModelsRequest.h | 86 +- .../opensearch/model/ListProceedingsRequest.h | 45 + .../opensearch/model/ListProceedingsResult.h | 51 + ...ListQueryProcessorAnalyzerResultsRequest.h | 51 + .../ListQueryProcessorAnalyzerResultsResult.h | 51 + .../model/ListQueryProcessorNersRequest.h | 68 +- .../model/ListQueryProcessorsRequest.h | 80 +- .../model/ListQueryProcessorsResult.h | 2 +- .../model/ListQuotaReviewTasksRequest.h | 80 +- .../model/ListQuotaReviewTasksResult.h | 4 +- .../opensearch/model/ListRamRolesRequest.h | 62 +- .../model/ListScheduledTasksRequest.h | 86 +- .../model/ListSearchStrategiesRequest.h | 45 + .../model/ListSearchStrategiesResult.h | 51 + .../opensearch/model/ListSecondRanksRequest.h | 74 +- .../opensearch/model/ListSecondRanksResult.h | 2 +- .../model/ListSlowQueryCategoriesRequest.h | 68 +- .../model/ListSlowQueryQueriesRequest.h | 74 +- .../model/ListSlowQueryQueriesResult.h | 2 +- .../model/ListSortExpressionsRequest.h | 74 +- .../model/ListSortExpressionsResult.h | 2 +- .../opensearch/model/ListSortScriptsRequest.h | 74 +- .../opensearch/model/ListSortScriptsResult.h | 2 +- .../model/ListStatisticLogsRequest.h | 122 +- .../model/ListStatisticReportRequest.h | 110 +- .../model/ListTagResourcesRequest.h | 45 + .../opensearch/model/ListTagResourcesResult.h | 62 + .../model/ListUserAnalyzerEntriesRequest.h | 86 +- .../model/ListUserAnalyzersRequest.h | 74 +- .../model/ListUserAnalyzersResult.h | 2 +- .../model/ModifyAppGroupQuotaRequest.h | 68 +- .../model/ModifyAppGroupQuotaResult.h | 12 +- .../opensearch/model/ModifyAppGroupRequest.h | 68 +- .../opensearch/model/ModifyAppGroupResult.h | 4 +- .../opensearch/model/ModifyFirstRankRequest.h | 86 +- .../opensearch/model/ModifyModelRequest.h | 74 +- .../model/ModifyQueryProcessorRequest.h | 86 +- .../model/ModifyQueryProcessorResult.h | 2 +- .../model/ModifyScheduledTaskRequest.h | 74 +- .../model/ModifySecondRankRequest.h | 86 +- .../opensearch/model/ModifySecondRankResult.h | 2 +- .../opensearch/model/PreviewModelRequest.h | 80 +- ...PushInterventionDictionaryEntriesRequest.h | 68 +- .../model/PushUserAnalyzerEntriesRequest.h | 68 +- .../model/RankPreviewQueryRequest.h | 74 +- .../model/ReleaseSortScriptRequest.h | 80 +- .../opensearch/model/RemoveAppGroupRequest.h | 68 +- .../opensearch/model/RemoveAppRequest.h | 74 +- .../model/RemoveDataCollectionRequest.h | 74 +- .../opensearch/model/RemoveFirstRankRequest.h | 80 +- .../RemoveInterventionDictionaryRequest.h | 68 +- .../RemoveInterventionDictionaryResult.h | 2 +- .../model/RemoveQueryProcessorRequest.h | 80 +- .../model/RemoveScheduledTaskRequest.h | 74 +- .../model/RemoveSearchStrategyRequest.h | 48 + .../model/RemoveSearchStrategyResult.h | 51 + .../model/RemoveSecondRankRequest.h | 80 +- .../model/RemoveUserAnalyzerRequest.h | 68 +- .../opensearch/model/RenewAppGroupRequest.h | 71 +- .../opensearch/model/RenewAppGroupResult.h | 2 + .../ReplaceAppGroupCommodityCodeRequest.h | 68 +- .../ReplaceAppGroupCommodityCodeResult.h | 4 +- .../model/SaveSortScriptFileRequest.h | 86 +- .../model/StartSlowQueryAnalyzerRequest.h | 68 +- .../opensearch/model/TagResourcesRequest.h | 42 + .../opensearch/model/TagResourcesResult.h | 51 + .../opensearch/model/TrainModelRequest.h | 74 +- .../model/UnbindESUserAnalyzerRequest.h | 45 + .../model/UnbindESUserAnalyzerResult.h | 53 + .../model/UnbindEsInstanceRequest.h | 42 + .../opensearch/model/UnbindEsInstanceResult.h | 53 + .../opensearch/model/UntagResourcesRequest.h | 45 + .../opensearch/model/UntagResourcesResult.h | 51 + .../model/UpdateABTestExperimentRequest.h | 86 +- .../model/UpdateABTestExperimentResult.h | 2 +- .../UpdateABTestFixedFlowDividersRequest.h | 86 +- .../model/UpdateABTestGroupRequest.h | 80 +- .../model/UpdateABTestGroupResult.h | 2 +- .../model/UpdateABTestSceneRequest.h | 74 +- .../model/UpdateABTestSceneResult.h | 2 +- .../model/UpdateFetchFieldsRequest.h | 80 +- .../UpdateFunctionDefaultInstanceRequest.h | 45 + .../UpdateFunctionDefaultInstanceResult.h | 59 + .../model/UpdateFunctionInstanceRequest.h | 48 + .../model/UpdateFunctionInstanceResult.h | 59 + .../model/UpdateSearchStrategyRequest.h | 48 + .../model/UpdateSearchStrategyResult.h | 51 + .../model/UpdateSortScriptRequest.h | 80 +- .../opensearch/model/UpdateSummariesRequest.h | 80 +- .../model/ValidateDataSourcesRequest.h | 39 + .../model/ValidateDataSourcesResult.h | 65 + opensearch/src/OpenSearchClient.cc | 1050 ++++++++++++++++- .../src/model/BindESUserAnalyzerRequest.cc | 46 + .../src/model/BindESUserAnalyzerResult.cc | 58 + opensearch/src/model/BindEsInstanceRequest.cc | 37 + opensearch/src/model/BindEsInstanceResult.cc | 58 + .../src/model/CompileSortScriptRequest.cc | 72 +- .../model/CreateABTestExperimentRequest.cc | 72 +- .../src/model/CreateABTestExperimentResult.cc | 20 +- .../src/model/CreateABTestGroupRequest.cc | 60 +- .../src/model/CreateABTestGroupResult.cc | 12 +- .../src/model/CreateABTestSceneRequest.cc | 48 +- .../src/model/CreateABTestSceneResult.cc | 12 +- opensearch/src/model/CreateAppGroupRequest.cc | 36 +- opensearch/src/model/CreateAppGroupResult.cc | 68 +- opensearch/src/model/CreateAppRequest.cc | 60 +- opensearch/src/model/CreateAppResult.cc | 4 +- .../src/model/CreateDataCollectionRequest.cc | 48 +- .../src/model/CreateDataCollectionResult.cc | 24 +- .../src/model/CreateFirstRankRequest.cc | 72 +- opensearch/src/model/CreateFirstRankResult.cc | 8 +- .../model/CreateFunctionInstanceRequest.cc | 46 + .../src/model/CreateFunctionInstanceResult.cc | 79 ++ .../src/model/CreateFunctionTaskRequest.cc | 55 + .../src/model/CreateFunctionTaskResult.cc | 79 ++ .../CreateInterventionDictionaryRequest.cc | 36 +- .../CreateInterventionDictionaryResult.cc | 12 +- opensearch/src/model/CreateModelRequest.cc | 48 +- opensearch/src/model/CreateModelResult.cc | 4 +- .../src/model/CreateQueryProcessorRequest.cc | 72 +- .../src/model/CreateQueryProcessorResult.cc | 12 +- .../src/model/CreateScheduledTaskRequest.cc | 48 +- .../src/model/CreateScheduledTaskResult.cc | 4 +- .../src/model/CreateSearchStrategyRequest.cc | 46 + .../src/model/CreateSearchStrategyResult.cc | 51 + .../src/model/CreateSecondRankRequest.cc | 72 +- .../src/model/CreateSortScriptRequest.cc | 60 +- .../src/model/CreateUserAnalyzerRequest.cc | 36 +- .../model/DeleteABTestExperimentRequest.cc | 84 +- .../src/model/DeleteABTestExperimentResult.cc | 4 +- .../src/model/DeleteABTestGroupRequest.cc | 72 +- .../src/model/DeleteABTestGroupResult.cc | 4 +- .../src/model/DeleteABTestSceneRequest.cc | 60 +- .../src/model/DeleteABTestSceneResult.cc | 4 +- .../model/DeleteFunctionInstanceRequest.cc | 55 + .../src/model/DeleteFunctionInstanceResult.cc | 79 ++ .../src/model/DeleteFunctionTaskRequest.cc | 64 + .../src/model/DeleteFunctionTaskResult.cc | 79 ++ opensearch/src/model/DeleteModelRequest.cc | 60 +- opensearch/src/model/DeleteModelResult.cc | 4 +- .../src/model/DeleteSortScriptFileRequest.cc | 84 +- .../src/model/DeleteSortScriptRequest.cc | 72 +- .../model/DescribeABTestExperimentRequest.cc | 84 +- .../model/DescribeABTestExperimentResult.cc | 16 +- .../src/model/DescribeABTestGroupRequest.cc | 72 +- .../src/model/DescribeABTestGroupResult.cc | 12 +- .../src/model/DescribeABTestSceneRequest.cc | 60 +- .../src/model/DescribeABTestSceneResult.cc | 12 +- .../DescribeAppGroupDataReportRequest.cc | 72 +- .../model/DescribeAppGroupDataReportResult.cc | 28 +- .../src/model/DescribeAppGroupRequest.cc | 48 +- .../src/model/DescribeAppGroupResult.cc | 78 +- .../DescribeAppGroupStatisticsRequest.cc | 37 + .../model/DescribeAppGroupStatisticsResult.cc | 58 + opensearch/src/model/DescribeAppRequest.cc | 60 +- opensearch/src/model/DescribeAppResult.cc | 46 +- .../src/model/DescribeAppStatisticsRequest.cc | 60 +- .../src/model/DescribeAppStatisticsResult.cc | 4 +- opensearch/src/model/DescribeAppsRequest.cc | 48 +- .../src/model/DescribeDataCollctionRequest.cc | 60 +- .../src/model/DescribeDataCollctionResult.cc | 24 +- .../src/model/DescribeFirstRankRequest.cc | 72 +- .../src/model/DescribeFirstRankResult.cc | 8 +- .../DescribeInterventionDictionaryRequest.cc | 48 +- .../DescribeInterventionDictionaryResult.cc | 12 +- opensearch/src/model/DescribeModelRequest.cc | 60 +- opensearch/src/model/DescribeModelResult.cc | 4 +- .../model/DescribeQueryProcessorRequest.cc | 72 +- .../src/model/DescribeQueryProcessorResult.cc | 12 +- opensearch/src/model/DescribeRegionRequest.cc | 36 +- .../src/model/DescribeRegionsRequest.cc | 36 +- opensearch/src/model/DescribeRegionsResult.cc | 4 +- .../src/model/DescribeScheduledTaskRequest.cc | 60 +- .../src/model/DescribeScheduledTaskResult.cc | 4 +- .../src/model/DescribeSecondRankRequest.cc | 72 +- .../src/model/DescribeSecondRankResult.cc | 24 +- .../model/DescribeSlowQueryStatusRequest.cc | 48 +- .../model/DescribeSlowQueryStatusResult.cc | 4 +- .../src/model/DescribeUserAnalyzerRequest.cc | 60 +- .../src/model/DescribeUserAnalyzerResult.cc | 4 +- .../src/model/DisableSlowQueryRequest.cc | 48 +- .../src/model/DisableSlowQueryResult.cc | 4 +- .../src/model/EnableSlowQueryRequest.cc | 48 +- opensearch/src/model/EnableSlowQueryResult.cc | 4 +- .../src/model/GenerateMergedTableRequest.cc | 48 +- .../src/model/GenerateMergedTableResult.cc | 4 +- opensearch/src/model/GetDomainRequest.cc | 60 +- opensearch/src/model/GetDomainResult.cc | 4 +- .../model/GetFunctionCurrentVersionRequest.cc | 73 ++ .../model/GetFunctionCurrentVersionResult.cc | 128 ++ .../GetFunctionDefaultInstanceRequest.cc | 46 + .../model/GetFunctionDefaultInstanceResult.cc | 101 ++ .../src/model/GetFunctionInstanceRequest.cc | 64 + .../src/model/GetFunctionInstanceResult.cc | 139 +++ .../src/model/GetFunctionTaskRequest.cc | 64 + opensearch/src/model/GetFunctionTaskResult.cc | 101 ++ .../src/model/GetFunctionVersionRequest.cc | 46 + .../src/model/GetFunctionVersionResult.cc | 128 ++ .../src/model/GetModelProgressRequest.cc | 60 +- opensearch/src/model/GetModelReportRequest.cc | 60 +- opensearch/src/model/GetModelReportResult.cc | 4 +- .../src/model/GetScriptFileNamesRequest.cc | 72 +- .../src/model/GetScriptFileNamesResult.cc | 6 +- .../src/model/GetSearchStrategyRequest.cc | 55 + .../src/model/GetSearchStrategyResult.cc | 51 + .../src/model/GetSortScriptFileRequest.cc | 84 +- .../src/model/GetSortScriptFileResult.cc | 4 +- opensearch/src/model/GetSortScriptRequest.cc | 72 +- opensearch/src/model/GetSortScriptResult.cc | 8 +- .../src/model/GetValidationErrorRequest.cc | 60 +- .../src/model/GetValidationReportRequest.cc | 60 +- .../src/model/ListABTestExperimentsRequest.cc | 72 +- .../src/model/ListABTestExperimentsResult.cc | 20 +- .../ListABTestFixedFlowDividersRequest.cc | 84 +- .../src/model/ListABTestGroupsRequest.cc | 60 +- .../src/model/ListABTestGroupsResult.cc | 12 +- .../src/model/ListABTestMetricsRequest.cc | 72 +- .../src/model/ListABTestMetricsResult.cc | 16 +- .../src/model/ListABTestScenesRequest.cc | 48 +- .../src/model/ListABTestScenesResult.cc | 12 +- .../src/model/ListAppGroupErrorsRequest.cc | 108 +- .../src/model/ListAppGroupErrorsResult.cc | 4 +- .../src/model/ListAppGroupMetricsRequest.cc | 96 +- opensearch/src/model/ListAppGroupsRequest.cc | 120 +- opensearch/src/model/ListAppGroupsResult.cc | 82 +- opensearch/src/model/ListAppsRequest.cc | 72 +- .../src/model/ListDataCollectionsRequest.cc | 72 +- .../src/model/ListDataCollectionsResult.cc | 28 +- .../model/ListDataSourceTableFieldsRequest.cc | 60 +- .../model/ListDataSourceTableFieldsResult.cc | 4 +- .../src/model/ListDataSourceTablesRequest.cc | 60 +- .../ListDeployedAlgorithmModelsRequest.cc | 72 +- .../ListDeployedAlgorithmModelsResult.cc | 28 +- opensearch/src/model/ListFirstRanksRequest.cc | 60 +- opensearch/src/model/ListFirstRanksResult.cc | 16 +- .../src/model/ListFunctionInstancesRequest.cc | 100 ++ .../src/model/ListFunctionInstancesResult.cc | 146 +++ .../src/model/ListFunctionTasksRequest.cc | 100 ++ .../src/model/ListFunctionTasksResult.cc | 113 ++ .../ListInterventionDictionariesRequest.cc | 72 +- .../ListInterventionDictionariesResult.cc | 16 +- ...istInterventionDictionaryEntriesRequest.cc | 84 +- ...ListInterventionDictionaryEntriesResult.cc | 16 +- ...InterventionDictionaryNerResultsRequest.cc | 60 +- ...tInterventionDictionaryNerResultsResult.cc | 4 +- ...ventionDictionaryRelatedEntitiesRequest.cc | 48 +- opensearch/src/model/ListModelsRequest.cc | 84 +- .../src/model/ListProceedingsRequest.cc | 46 + opensearch/src/model/ListProceedingsResult.cc | 51 + ...istQueryProcessorAnalyzerResultsRequest.cc | 64 + ...ListQueryProcessorAnalyzerResultsResult.cc | 51 + .../model/ListQueryProcessorNersRequest.cc | 48 +- .../src/model/ListQueryProcessorNersResult.cc | 4 +- .../src/model/ListQueryProcessorsRequest.cc | 72 +- .../src/model/ListQueryProcessorsResult.cc | 12 +- .../src/model/ListQuotaReviewTasksRequest.cc | 72 +- .../src/model/ListQuotaReviewTasksResult.cc | 48 +- opensearch/src/model/ListRamRolesRequest.cc | 36 +- opensearch/src/model/ListRamRolesResult.cc | 8 +- .../src/model/ListScheduledTasksRequest.cc | 84 +- .../src/model/ListScheduledTasksResult.cc | 4 +- .../src/model/ListSearchStrategiesRequest.cc | 46 + .../src/model/ListSearchStrategiesResult.cc | 51 + .../src/model/ListSecondRanksRequest.cc | 60 +- opensearch/src/model/ListSecondRanksResult.cc | 28 +- .../model/ListSlowQueryCategoriesRequest.cc | 48 +- .../model/ListSlowQueryCategoriesResult.cc | 4 +- .../src/model/ListSlowQueryQueriesRequest.cc | 60 +- .../src/model/ListSlowQueryQueriesResult.cc | 8 +- .../src/model/ListSortExpressionsRequest.cc | 60 +- .../src/model/ListSortExpressionsResult.cc | 12 +- .../src/model/ListSortScriptsRequest.cc | 60 +- opensearch/src/model/ListSortScriptsResult.cc | 8 +- .../src/model/ListStatisticLogsRequest.cc | 156 ++- .../src/model/ListStatisticLogsResult.cc | 4 +- .../src/model/ListStatisticReportRequest.cc | 132 +-- .../src/model/ListStatisticReportResult.cc | 4 +- .../src/model/ListTagResourcesRequest.cc | 46 + .../src/model/ListTagResourcesResult.cc | 77 ++ .../model/ListUserAnalyzerEntriesRequest.cc | 84 +- .../src/model/ListUserAnalyzersRequest.cc | 60 +- .../src/model/ListUserAnalyzersResult.cc | 32 +- .../src/model/ModifyAppGroupQuotaRequest.cc | 48 +- .../src/model/ModifyAppGroupQuotaResult.cc | 88 +- opensearch/src/model/ModifyAppGroupRequest.cc | 48 +- opensearch/src/model/ModifyAppGroupResult.cc | 68 +- .../src/model/ModifyFirstRankRequest.cc | 84 +- opensearch/src/model/ModifyFirstRankResult.cc | 8 +- opensearch/src/model/ModifyModelRequest.cc | 60 +- opensearch/src/model/ModifyModelResult.cc | 4 +- .../src/model/ModifyQueryProcessorRequest.cc | 84 +- .../src/model/ModifyQueryProcessorResult.cc | 12 +- .../src/model/ModifyScheduledTaskRequest.cc | 60 +- .../src/model/ModifyScheduledTaskResult.cc | 4 +- .../src/model/ModifySecondRankRequest.cc | 84 +- .../src/model/ModifySecondRankResult.cc | 24 +- opensearch/src/model/PreviewModelRequest.cc | 72 +- opensearch/src/model/PreviewModelResult.cc | 4 +- ...ushInterventionDictionaryEntriesRequest.cc | 48 +- .../model/PushUserAnalyzerEntriesRequest.cc | 48 +- .../src/model/RankPreviewQueryRequest.cc | 60 +- .../src/model/ReleaseSortScriptRequest.cc | 72 +- opensearch/src/model/RemoveAppGroupRequest.cc | 48 +- opensearch/src/model/RemoveAppRequest.cc | 60 +- .../src/model/RemoveDataCollectionRequest.cc | 60 +- .../src/model/RemoveDataCollectionResult.cc | 4 +- .../src/model/RemoveFirstRankRequest.cc | 72 +- opensearch/src/model/RemoveFirstRankResult.cc | 8 +- .../RemoveInterventionDictionaryRequest.cc | 48 +- .../RemoveInterventionDictionaryResult.cc | 12 +- .../src/model/RemoveQueryProcessorRequest.cc | 72 +- .../src/model/RemoveQueryProcessorResult.cc | 4 +- .../src/model/RemoveScheduledTaskRequest.cc | 60 +- .../src/model/RemoveSearchStrategyRequest.cc | 55 + .../src/model/RemoveSearchStrategyResult.cc | 51 + .../src/model/RemoveSecondRankRequest.cc | 72 +- .../src/model/RemoveSecondRankResult.cc | 4 +- .../src/model/RemoveUserAnalyzerRequest.cc | 48 +- .../src/model/RemoveUserAnalyzerResult.cc | 4 +- opensearch/src/model/RenewAppGroupRequest.cc | 57 +- opensearch/src/model/RenewAppGroupResult.cc | 7 + .../ReplaceAppGroupCommodityCodeRequest.cc | 48 +- .../ReplaceAppGroupCommodityCodeResult.cc | 88 +- .../src/model/SaveSortScriptFileRequest.cc | 84 +- .../model/StartSlowQueryAnalyzerRequest.cc | 48 +- .../src/model/StartSlowQueryAnalyzerResult.cc | 4 +- opensearch/src/model/TagResourcesRequest.cc | 37 + opensearch/src/model/TagResourcesResult.cc | 51 + opensearch/src/model/TrainModelRequest.cc | 60 +- opensearch/src/model/TrainModelResult.cc | 4 +- .../src/model/UnbindESUserAnalyzerRequest.cc | 46 + .../src/model/UnbindESUserAnalyzerResult.cc | 58 + .../src/model/UnbindEsInstanceRequest.cc | 37 + .../src/model/UnbindEsInstanceResult.cc | 58 + opensearch/src/model/UntagResourcesRequest.cc | 46 + opensearch/src/model/UntagResourcesResult.cc | 51 + .../model/UpdateABTestExperimentRequest.cc | 84 +- .../src/model/UpdateABTestExperimentResult.cc | 20 +- .../UpdateABTestFixedFlowDividersRequest.cc | 84 +- .../src/model/UpdateABTestGroupRequest.cc | 72 +- .../src/model/UpdateABTestGroupResult.cc | 12 +- .../src/model/UpdateABTestSceneRequest.cc | 60 +- .../src/model/UpdateABTestSceneResult.cc | 20 +- .../src/model/UpdateFetchFieldsRequest.cc | 72 +- .../src/model/UpdateFetchFieldsResult.cc | 4 +- .../UpdateFunctionDefaultInstanceRequest.cc | 46 + .../UpdateFunctionDefaultInstanceResult.cc | 79 ++ .../model/UpdateFunctionInstanceRequest.cc | 55 + .../src/model/UpdateFunctionInstanceResult.cc | 79 ++ .../src/model/UpdateSearchStrategyRequest.cc | 55 + .../src/model/UpdateSearchStrategyResult.cc | 51 + .../src/model/UpdateSortScriptRequest.cc | 72 +- .../src/model/UpdateSummariesRequest.cc | 72 +- opensearch/src/model/UpdateSummariesResult.cc | 4 +- .../src/model/ValidateDataSourcesRequest.cc | 28 + .../src/model/ValidateDataSourcesResult.cc | 73 ++ 487 files changed, 16663 insertions(+), 9775 deletions(-) create mode 100644 opensearch/include/alibabacloud/opensearch/model/BindESUserAnalyzerRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/BindESUserAnalyzerResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/BindEsInstanceRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/BindEsInstanceResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/CreateFunctionInstanceRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/CreateFunctionInstanceResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/CreateFunctionTaskRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/CreateFunctionTaskResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/CreateSearchStrategyRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/CreateSearchStrategyResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DeleteFunctionInstanceRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DeleteFunctionInstanceResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DeleteFunctionTaskRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DeleteFunctionTaskResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DescribeAppGroupStatisticsRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/DescribeAppGroupStatisticsResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/GetFunctionCurrentVersionRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/GetFunctionCurrentVersionResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/GetFunctionDefaultInstanceRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/GetFunctionDefaultInstanceResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/GetFunctionInstanceRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/GetFunctionInstanceResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/GetFunctionTaskRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/GetFunctionTaskResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/GetFunctionVersionRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/GetFunctionVersionResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/GetSearchStrategyRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/GetSearchStrategyResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListFunctionInstancesRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListFunctionInstancesResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListFunctionTasksRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListFunctionTasksResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListProceedingsRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListProceedingsResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListQueryProcessorAnalyzerResultsRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListQueryProcessorAnalyzerResultsResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListSearchStrategiesRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListSearchStrategiesResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListTagResourcesRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ListTagResourcesResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/RemoveSearchStrategyRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/RemoveSearchStrategyResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/TagResourcesRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/TagResourcesResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/UnbindESUserAnalyzerRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/UnbindESUserAnalyzerResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/UnbindEsInstanceRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/UnbindEsInstanceResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/UntagResourcesRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/UntagResourcesResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/UpdateFunctionDefaultInstanceRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/UpdateFunctionDefaultInstanceResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/UpdateFunctionInstanceRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/UpdateFunctionInstanceResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/UpdateSearchStrategyRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/UpdateSearchStrategyResult.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ValidateDataSourcesRequest.h create mode 100644 opensearch/include/alibabacloud/opensearch/model/ValidateDataSourcesResult.h create mode 100644 opensearch/src/model/BindESUserAnalyzerRequest.cc create mode 100644 opensearch/src/model/BindESUserAnalyzerResult.cc create mode 100644 opensearch/src/model/BindEsInstanceRequest.cc create mode 100644 opensearch/src/model/BindEsInstanceResult.cc create mode 100644 opensearch/src/model/CreateFunctionInstanceRequest.cc create mode 100644 opensearch/src/model/CreateFunctionInstanceResult.cc create mode 100644 opensearch/src/model/CreateFunctionTaskRequest.cc create mode 100644 opensearch/src/model/CreateFunctionTaskResult.cc create mode 100644 opensearch/src/model/CreateSearchStrategyRequest.cc create mode 100644 opensearch/src/model/CreateSearchStrategyResult.cc create mode 100644 opensearch/src/model/DeleteFunctionInstanceRequest.cc create mode 100644 opensearch/src/model/DeleteFunctionInstanceResult.cc create mode 100644 opensearch/src/model/DeleteFunctionTaskRequest.cc create mode 100644 opensearch/src/model/DeleteFunctionTaskResult.cc create mode 100644 opensearch/src/model/DescribeAppGroupStatisticsRequest.cc create mode 100644 opensearch/src/model/DescribeAppGroupStatisticsResult.cc create mode 100644 opensearch/src/model/GetFunctionCurrentVersionRequest.cc create mode 100644 opensearch/src/model/GetFunctionCurrentVersionResult.cc create mode 100644 opensearch/src/model/GetFunctionDefaultInstanceRequest.cc create mode 100644 opensearch/src/model/GetFunctionDefaultInstanceResult.cc create mode 100644 opensearch/src/model/GetFunctionInstanceRequest.cc create mode 100644 opensearch/src/model/GetFunctionInstanceResult.cc create mode 100644 opensearch/src/model/GetFunctionTaskRequest.cc create mode 100644 opensearch/src/model/GetFunctionTaskResult.cc create mode 100644 opensearch/src/model/GetFunctionVersionRequest.cc create mode 100644 opensearch/src/model/GetFunctionVersionResult.cc create mode 100644 opensearch/src/model/GetSearchStrategyRequest.cc create mode 100644 opensearch/src/model/GetSearchStrategyResult.cc create mode 100644 opensearch/src/model/ListFunctionInstancesRequest.cc create mode 100644 opensearch/src/model/ListFunctionInstancesResult.cc create mode 100644 opensearch/src/model/ListFunctionTasksRequest.cc create mode 100644 opensearch/src/model/ListFunctionTasksResult.cc create mode 100644 opensearch/src/model/ListProceedingsRequest.cc create mode 100644 opensearch/src/model/ListProceedingsResult.cc create mode 100644 opensearch/src/model/ListQueryProcessorAnalyzerResultsRequest.cc create mode 100644 opensearch/src/model/ListQueryProcessorAnalyzerResultsResult.cc create mode 100644 opensearch/src/model/ListSearchStrategiesRequest.cc create mode 100644 opensearch/src/model/ListSearchStrategiesResult.cc create mode 100644 opensearch/src/model/ListTagResourcesRequest.cc create mode 100644 opensearch/src/model/ListTagResourcesResult.cc create mode 100644 opensearch/src/model/RemoveSearchStrategyRequest.cc create mode 100644 opensearch/src/model/RemoveSearchStrategyResult.cc create mode 100644 opensearch/src/model/TagResourcesRequest.cc create mode 100644 opensearch/src/model/TagResourcesResult.cc create mode 100644 opensearch/src/model/UnbindESUserAnalyzerRequest.cc create mode 100644 opensearch/src/model/UnbindESUserAnalyzerResult.cc create mode 100644 opensearch/src/model/UnbindEsInstanceRequest.cc create mode 100644 opensearch/src/model/UnbindEsInstanceResult.cc create mode 100644 opensearch/src/model/UntagResourcesRequest.cc create mode 100644 opensearch/src/model/UntagResourcesResult.cc create mode 100644 opensearch/src/model/UpdateFunctionDefaultInstanceRequest.cc create mode 100644 opensearch/src/model/UpdateFunctionDefaultInstanceResult.cc create mode 100644 opensearch/src/model/UpdateFunctionInstanceRequest.cc create mode 100644 opensearch/src/model/UpdateFunctionInstanceResult.cc create mode 100644 opensearch/src/model/UpdateSearchStrategyRequest.cc create mode 100644 opensearch/src/model/UpdateSearchStrategyResult.cc create mode 100644 opensearch/src/model/ValidateDataSourcesRequest.cc create mode 100644 opensearch/src/model/ValidateDataSourcesResult.cc diff --git a/VERSION b/VERSION index cb085d65e..a836986b7 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1356 \ No newline at end of file +1.36.1357 \ No newline at end of file diff --git a/opensearch/CMakeLists.txt b/opensearch/CMakeLists.txt index db835fda9..f809b720e 100644 --- a/opensearch/CMakeLists.txt +++ b/opensearch/CMakeLists.txt @@ -21,6 +21,10 @@ set(opensearch_public_header include/alibabacloud/opensearch/OpenSearchExport.h ) set(opensearch_public_header_model + include/alibabacloud/opensearch/model/BindESUserAnalyzerRequest.h + include/alibabacloud/opensearch/model/BindESUserAnalyzerResult.h + include/alibabacloud/opensearch/model/BindEsInstanceRequest.h + include/alibabacloud/opensearch/model/BindEsInstanceResult.h include/alibabacloud/opensearch/model/CompileSortScriptRequest.h include/alibabacloud/opensearch/model/CompileSortScriptResult.h include/alibabacloud/opensearch/model/CreateABTestExperimentRequest.h @@ -37,6 +41,10 @@ set(opensearch_public_header_model include/alibabacloud/opensearch/model/CreateDataCollectionResult.h include/alibabacloud/opensearch/model/CreateFirstRankRequest.h include/alibabacloud/opensearch/model/CreateFirstRankResult.h + include/alibabacloud/opensearch/model/CreateFunctionInstanceRequest.h + include/alibabacloud/opensearch/model/CreateFunctionInstanceResult.h + include/alibabacloud/opensearch/model/CreateFunctionTaskRequest.h + include/alibabacloud/opensearch/model/CreateFunctionTaskResult.h include/alibabacloud/opensearch/model/CreateInterventionDictionaryRequest.h include/alibabacloud/opensearch/model/CreateInterventionDictionaryResult.h include/alibabacloud/opensearch/model/CreateModelRequest.h @@ -45,6 +53,8 @@ set(opensearch_public_header_model include/alibabacloud/opensearch/model/CreateQueryProcessorResult.h include/alibabacloud/opensearch/model/CreateScheduledTaskRequest.h include/alibabacloud/opensearch/model/CreateScheduledTaskResult.h + include/alibabacloud/opensearch/model/CreateSearchStrategyRequest.h + include/alibabacloud/opensearch/model/CreateSearchStrategyResult.h include/alibabacloud/opensearch/model/CreateSecondRankRequest.h include/alibabacloud/opensearch/model/CreateSecondRankResult.h include/alibabacloud/opensearch/model/CreateSortScriptRequest.h @@ -57,6 +67,10 @@ set(opensearch_public_header_model include/alibabacloud/opensearch/model/DeleteABTestGroupResult.h include/alibabacloud/opensearch/model/DeleteABTestSceneRequest.h include/alibabacloud/opensearch/model/DeleteABTestSceneResult.h + include/alibabacloud/opensearch/model/DeleteFunctionInstanceRequest.h + include/alibabacloud/opensearch/model/DeleteFunctionInstanceResult.h + include/alibabacloud/opensearch/model/DeleteFunctionTaskRequest.h + include/alibabacloud/opensearch/model/DeleteFunctionTaskResult.h include/alibabacloud/opensearch/model/DeleteModelRequest.h include/alibabacloud/opensearch/model/DeleteModelResult.h include/alibabacloud/opensearch/model/DeleteSortScriptRequest.h @@ -75,6 +89,8 @@ set(opensearch_public_header_model include/alibabacloud/opensearch/model/DescribeAppGroupResult.h include/alibabacloud/opensearch/model/DescribeAppGroupDataReportRequest.h include/alibabacloud/opensearch/model/DescribeAppGroupDataReportResult.h + include/alibabacloud/opensearch/model/DescribeAppGroupStatisticsRequest.h + include/alibabacloud/opensearch/model/DescribeAppGroupStatisticsResult.h include/alibabacloud/opensearch/model/DescribeAppStatisticsRequest.h include/alibabacloud/opensearch/model/DescribeAppStatisticsResult.h include/alibabacloud/opensearch/model/DescribeAppsRequest.h @@ -109,12 +125,24 @@ set(opensearch_public_header_model include/alibabacloud/opensearch/model/GenerateMergedTableResult.h include/alibabacloud/opensearch/model/GetDomainRequest.h include/alibabacloud/opensearch/model/GetDomainResult.h + include/alibabacloud/opensearch/model/GetFunctionCurrentVersionRequest.h + include/alibabacloud/opensearch/model/GetFunctionCurrentVersionResult.h + include/alibabacloud/opensearch/model/GetFunctionDefaultInstanceRequest.h + include/alibabacloud/opensearch/model/GetFunctionDefaultInstanceResult.h + include/alibabacloud/opensearch/model/GetFunctionInstanceRequest.h + include/alibabacloud/opensearch/model/GetFunctionInstanceResult.h + include/alibabacloud/opensearch/model/GetFunctionTaskRequest.h + include/alibabacloud/opensearch/model/GetFunctionTaskResult.h + include/alibabacloud/opensearch/model/GetFunctionVersionRequest.h + include/alibabacloud/opensearch/model/GetFunctionVersionResult.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/GetSearchStrategyRequest.h + include/alibabacloud/opensearch/model/GetSearchStrategyResult.h include/alibabacloud/opensearch/model/GetSortScriptRequest.h include/alibabacloud/opensearch/model/GetSortScriptResult.h include/alibabacloud/opensearch/model/GetSortScriptFileRequest.h @@ -151,6 +179,10 @@ set(opensearch_public_header_model include/alibabacloud/opensearch/model/ListDeployedAlgorithmModelsResult.h include/alibabacloud/opensearch/model/ListFirstRanksRequest.h include/alibabacloud/opensearch/model/ListFirstRanksResult.h + include/alibabacloud/opensearch/model/ListFunctionInstancesRequest.h + include/alibabacloud/opensearch/model/ListFunctionInstancesResult.h + include/alibabacloud/opensearch/model/ListFunctionTasksRequest.h + include/alibabacloud/opensearch/model/ListFunctionTasksResult.h include/alibabacloud/opensearch/model/ListInterventionDictionariesRequest.h include/alibabacloud/opensearch/model/ListInterventionDictionariesResult.h include/alibabacloud/opensearch/model/ListInterventionDictionaryEntriesRequest.h @@ -161,6 +193,10 @@ set(opensearch_public_header_model include/alibabacloud/opensearch/model/ListInterventionDictionaryRelatedEntitiesResult.h include/alibabacloud/opensearch/model/ListModelsRequest.h include/alibabacloud/opensearch/model/ListModelsResult.h + include/alibabacloud/opensearch/model/ListProceedingsRequest.h + include/alibabacloud/opensearch/model/ListProceedingsResult.h + include/alibabacloud/opensearch/model/ListQueryProcessorAnalyzerResultsRequest.h + include/alibabacloud/opensearch/model/ListQueryProcessorAnalyzerResultsResult.h include/alibabacloud/opensearch/model/ListQueryProcessorNersRequest.h include/alibabacloud/opensearch/model/ListQueryProcessorNersResult.h include/alibabacloud/opensearch/model/ListQueryProcessorsRequest.h @@ -171,6 +207,8 @@ set(opensearch_public_header_model include/alibabacloud/opensearch/model/ListRamRolesResult.h include/alibabacloud/opensearch/model/ListScheduledTasksRequest.h include/alibabacloud/opensearch/model/ListScheduledTasksResult.h + include/alibabacloud/opensearch/model/ListSearchStrategiesRequest.h + include/alibabacloud/opensearch/model/ListSearchStrategiesResult.h include/alibabacloud/opensearch/model/ListSecondRanksRequest.h include/alibabacloud/opensearch/model/ListSecondRanksResult.h include/alibabacloud/opensearch/model/ListSlowQueryCategoriesRequest.h @@ -185,6 +223,8 @@ set(opensearch_public_header_model include/alibabacloud/opensearch/model/ListStatisticLogsResult.h include/alibabacloud/opensearch/model/ListStatisticReportRequest.h include/alibabacloud/opensearch/model/ListStatisticReportResult.h + include/alibabacloud/opensearch/model/ListTagResourcesRequest.h + include/alibabacloud/opensearch/model/ListTagResourcesResult.h include/alibabacloud/opensearch/model/ListUserAnalyzerEntriesRequest.h include/alibabacloud/opensearch/model/ListUserAnalyzerEntriesResult.h include/alibabacloud/opensearch/model/ListUserAnalyzersRequest.h @@ -227,6 +267,8 @@ set(opensearch_public_header_model include/alibabacloud/opensearch/model/RemoveQueryProcessorResult.h include/alibabacloud/opensearch/model/RemoveScheduledTaskRequest.h include/alibabacloud/opensearch/model/RemoveScheduledTaskResult.h + include/alibabacloud/opensearch/model/RemoveSearchStrategyRequest.h + include/alibabacloud/opensearch/model/RemoveSearchStrategyResult.h include/alibabacloud/opensearch/model/RemoveSecondRankRequest.h include/alibabacloud/opensearch/model/RemoveSecondRankResult.h include/alibabacloud/opensearch/model/RemoveUserAnalyzerRequest.h @@ -239,8 +281,16 @@ set(opensearch_public_header_model include/alibabacloud/opensearch/model/SaveSortScriptFileResult.h include/alibabacloud/opensearch/model/StartSlowQueryAnalyzerRequest.h include/alibabacloud/opensearch/model/StartSlowQueryAnalyzerResult.h + include/alibabacloud/opensearch/model/TagResourcesRequest.h + include/alibabacloud/opensearch/model/TagResourcesResult.h include/alibabacloud/opensearch/model/TrainModelRequest.h include/alibabacloud/opensearch/model/TrainModelResult.h + include/alibabacloud/opensearch/model/UnbindESUserAnalyzerRequest.h + include/alibabacloud/opensearch/model/UnbindESUserAnalyzerResult.h + include/alibabacloud/opensearch/model/UnbindEsInstanceRequest.h + include/alibabacloud/opensearch/model/UnbindEsInstanceResult.h + include/alibabacloud/opensearch/model/UntagResourcesRequest.h + include/alibabacloud/opensearch/model/UntagResourcesResult.h include/alibabacloud/opensearch/model/UpdateABTestExperimentRequest.h include/alibabacloud/opensearch/model/UpdateABTestExperimentResult.h include/alibabacloud/opensearch/model/UpdateABTestFixedFlowDividersRequest.h @@ -251,13 +301,25 @@ set(opensearch_public_header_model include/alibabacloud/opensearch/model/UpdateABTestSceneResult.h include/alibabacloud/opensearch/model/UpdateFetchFieldsRequest.h include/alibabacloud/opensearch/model/UpdateFetchFieldsResult.h + include/alibabacloud/opensearch/model/UpdateFunctionDefaultInstanceRequest.h + include/alibabacloud/opensearch/model/UpdateFunctionDefaultInstanceResult.h + include/alibabacloud/opensearch/model/UpdateFunctionInstanceRequest.h + include/alibabacloud/opensearch/model/UpdateFunctionInstanceResult.h + include/alibabacloud/opensearch/model/UpdateSearchStrategyRequest.h + include/alibabacloud/opensearch/model/UpdateSearchStrategyResult.h include/alibabacloud/opensearch/model/UpdateSortScriptRequest.h include/alibabacloud/opensearch/model/UpdateSortScriptResult.h include/alibabacloud/opensearch/model/UpdateSummariesRequest.h - include/alibabacloud/opensearch/model/UpdateSummariesResult.h ) + include/alibabacloud/opensearch/model/UpdateSummariesResult.h + include/alibabacloud/opensearch/model/ValidateDataSourcesRequest.h + include/alibabacloud/opensearch/model/ValidateDataSourcesResult.h ) set(opensearch_src src/OpenSearchClient.cc + src/model/BindESUserAnalyzerRequest.cc + src/model/BindESUserAnalyzerResult.cc + src/model/BindEsInstanceRequest.cc + src/model/BindEsInstanceResult.cc src/model/CompileSortScriptRequest.cc src/model/CompileSortScriptResult.cc src/model/CreateABTestExperimentRequest.cc @@ -274,6 +336,10 @@ set(opensearch_src src/model/CreateDataCollectionResult.cc src/model/CreateFirstRankRequest.cc src/model/CreateFirstRankResult.cc + src/model/CreateFunctionInstanceRequest.cc + src/model/CreateFunctionInstanceResult.cc + src/model/CreateFunctionTaskRequest.cc + src/model/CreateFunctionTaskResult.cc src/model/CreateInterventionDictionaryRequest.cc src/model/CreateInterventionDictionaryResult.cc src/model/CreateModelRequest.cc @@ -282,6 +348,8 @@ set(opensearch_src src/model/CreateQueryProcessorResult.cc src/model/CreateScheduledTaskRequest.cc src/model/CreateScheduledTaskResult.cc + src/model/CreateSearchStrategyRequest.cc + src/model/CreateSearchStrategyResult.cc src/model/CreateSecondRankRequest.cc src/model/CreateSecondRankResult.cc src/model/CreateSortScriptRequest.cc @@ -294,6 +362,10 @@ set(opensearch_src src/model/DeleteABTestGroupResult.cc src/model/DeleteABTestSceneRequest.cc src/model/DeleteABTestSceneResult.cc + src/model/DeleteFunctionInstanceRequest.cc + src/model/DeleteFunctionInstanceResult.cc + src/model/DeleteFunctionTaskRequest.cc + src/model/DeleteFunctionTaskResult.cc src/model/DeleteModelRequest.cc src/model/DeleteModelResult.cc src/model/DeleteSortScriptRequest.cc @@ -312,6 +384,8 @@ set(opensearch_src src/model/DescribeAppGroupResult.cc src/model/DescribeAppGroupDataReportRequest.cc src/model/DescribeAppGroupDataReportResult.cc + src/model/DescribeAppGroupStatisticsRequest.cc + src/model/DescribeAppGroupStatisticsResult.cc src/model/DescribeAppStatisticsRequest.cc src/model/DescribeAppStatisticsResult.cc src/model/DescribeAppsRequest.cc @@ -346,12 +420,24 @@ set(opensearch_src src/model/GenerateMergedTableResult.cc src/model/GetDomainRequest.cc src/model/GetDomainResult.cc + src/model/GetFunctionCurrentVersionRequest.cc + src/model/GetFunctionCurrentVersionResult.cc + src/model/GetFunctionDefaultInstanceRequest.cc + src/model/GetFunctionDefaultInstanceResult.cc + src/model/GetFunctionInstanceRequest.cc + src/model/GetFunctionInstanceResult.cc + src/model/GetFunctionTaskRequest.cc + src/model/GetFunctionTaskResult.cc + src/model/GetFunctionVersionRequest.cc + src/model/GetFunctionVersionResult.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/GetSearchStrategyRequest.cc + src/model/GetSearchStrategyResult.cc src/model/GetSortScriptRequest.cc src/model/GetSortScriptResult.cc src/model/GetSortScriptFileRequest.cc @@ -388,6 +474,10 @@ set(opensearch_src src/model/ListDeployedAlgorithmModelsResult.cc src/model/ListFirstRanksRequest.cc src/model/ListFirstRanksResult.cc + src/model/ListFunctionInstancesRequest.cc + src/model/ListFunctionInstancesResult.cc + src/model/ListFunctionTasksRequest.cc + src/model/ListFunctionTasksResult.cc src/model/ListInterventionDictionariesRequest.cc src/model/ListInterventionDictionariesResult.cc src/model/ListInterventionDictionaryEntriesRequest.cc @@ -398,6 +488,10 @@ set(opensearch_src src/model/ListInterventionDictionaryRelatedEntitiesResult.cc src/model/ListModelsRequest.cc src/model/ListModelsResult.cc + src/model/ListProceedingsRequest.cc + src/model/ListProceedingsResult.cc + src/model/ListQueryProcessorAnalyzerResultsRequest.cc + src/model/ListQueryProcessorAnalyzerResultsResult.cc src/model/ListQueryProcessorNersRequest.cc src/model/ListQueryProcessorNersResult.cc src/model/ListQueryProcessorsRequest.cc @@ -408,6 +502,8 @@ set(opensearch_src src/model/ListRamRolesResult.cc src/model/ListScheduledTasksRequest.cc src/model/ListScheduledTasksResult.cc + src/model/ListSearchStrategiesRequest.cc + src/model/ListSearchStrategiesResult.cc src/model/ListSecondRanksRequest.cc src/model/ListSecondRanksResult.cc src/model/ListSlowQueryCategoriesRequest.cc @@ -422,6 +518,8 @@ set(opensearch_src src/model/ListStatisticLogsResult.cc src/model/ListStatisticReportRequest.cc src/model/ListStatisticReportResult.cc + src/model/ListTagResourcesRequest.cc + src/model/ListTagResourcesResult.cc src/model/ListUserAnalyzerEntriesRequest.cc src/model/ListUserAnalyzerEntriesResult.cc src/model/ListUserAnalyzersRequest.cc @@ -464,6 +562,8 @@ set(opensearch_src src/model/RemoveQueryProcessorResult.cc src/model/RemoveScheduledTaskRequest.cc src/model/RemoveScheduledTaskResult.cc + src/model/RemoveSearchStrategyRequest.cc + src/model/RemoveSearchStrategyResult.cc src/model/RemoveSecondRankRequest.cc src/model/RemoveSecondRankResult.cc src/model/RemoveUserAnalyzerRequest.cc @@ -476,8 +576,16 @@ set(opensearch_src src/model/SaveSortScriptFileResult.cc src/model/StartSlowQueryAnalyzerRequest.cc src/model/StartSlowQueryAnalyzerResult.cc + src/model/TagResourcesRequest.cc + src/model/TagResourcesResult.cc src/model/TrainModelRequest.cc src/model/TrainModelResult.cc + src/model/UnbindESUserAnalyzerRequest.cc + src/model/UnbindESUserAnalyzerResult.cc + src/model/UnbindEsInstanceRequest.cc + src/model/UnbindEsInstanceResult.cc + src/model/UntagResourcesRequest.cc + src/model/UntagResourcesResult.cc src/model/UpdateABTestExperimentRequest.cc src/model/UpdateABTestExperimentResult.cc src/model/UpdateABTestFixedFlowDividersRequest.cc @@ -488,10 +596,18 @@ set(opensearch_src src/model/UpdateABTestSceneResult.cc src/model/UpdateFetchFieldsRequest.cc src/model/UpdateFetchFieldsResult.cc + src/model/UpdateFunctionDefaultInstanceRequest.cc + src/model/UpdateFunctionDefaultInstanceResult.cc + src/model/UpdateFunctionInstanceRequest.cc + src/model/UpdateFunctionInstanceResult.cc + src/model/UpdateSearchStrategyRequest.cc + src/model/UpdateSearchStrategyResult.cc src/model/UpdateSortScriptRequest.cc src/model/UpdateSortScriptResult.cc src/model/UpdateSummariesRequest.cc - src/model/UpdateSummariesResult.cc ) + src/model/UpdateSummariesResult.cc + src/model/ValidateDataSourcesRequest.cc + src/model/ValidateDataSourcesResult.cc ) add_library(opensearch ${LIB_TYPE} ${opensearch_public_header} diff --git a/opensearch/include/alibabacloud/opensearch/OpenSearchClient.h b/opensearch/include/alibabacloud/opensearch/OpenSearchClient.h index b1cf0c55c..eac290619 100644 --- a/opensearch/include/alibabacloud/opensearch/OpenSearchClient.h +++ b/opensearch/include/alibabacloud/opensearch/OpenSearchClient.h @@ -22,6 +22,10 @@ #include #include #include "OpenSearchExport.h" +#include "model/BindESUserAnalyzerRequest.h" +#include "model/BindESUserAnalyzerResult.h" +#include "model/BindEsInstanceRequest.h" +#include "model/BindEsInstanceResult.h" #include "model/CompileSortScriptRequest.h" #include "model/CompileSortScriptResult.h" #include "model/CreateABTestExperimentRequest.h" @@ -38,6 +42,10 @@ #include "model/CreateDataCollectionResult.h" #include "model/CreateFirstRankRequest.h" #include "model/CreateFirstRankResult.h" +#include "model/CreateFunctionInstanceRequest.h" +#include "model/CreateFunctionInstanceResult.h" +#include "model/CreateFunctionTaskRequest.h" +#include "model/CreateFunctionTaskResult.h" #include "model/CreateInterventionDictionaryRequest.h" #include "model/CreateInterventionDictionaryResult.h" #include "model/CreateModelRequest.h" @@ -46,6 +54,8 @@ #include "model/CreateQueryProcessorResult.h" #include "model/CreateScheduledTaskRequest.h" #include "model/CreateScheduledTaskResult.h" +#include "model/CreateSearchStrategyRequest.h" +#include "model/CreateSearchStrategyResult.h" #include "model/CreateSecondRankRequest.h" #include "model/CreateSecondRankResult.h" #include "model/CreateSortScriptRequest.h" @@ -58,6 +68,10 @@ #include "model/DeleteABTestGroupResult.h" #include "model/DeleteABTestSceneRequest.h" #include "model/DeleteABTestSceneResult.h" +#include "model/DeleteFunctionInstanceRequest.h" +#include "model/DeleteFunctionInstanceResult.h" +#include "model/DeleteFunctionTaskRequest.h" +#include "model/DeleteFunctionTaskResult.h" #include "model/DeleteModelRequest.h" #include "model/DeleteModelResult.h" #include "model/DeleteSortScriptRequest.h" @@ -76,6 +90,8 @@ #include "model/DescribeAppGroupResult.h" #include "model/DescribeAppGroupDataReportRequest.h" #include "model/DescribeAppGroupDataReportResult.h" +#include "model/DescribeAppGroupStatisticsRequest.h" +#include "model/DescribeAppGroupStatisticsResult.h" #include "model/DescribeAppStatisticsRequest.h" #include "model/DescribeAppStatisticsResult.h" #include "model/DescribeAppsRequest.h" @@ -110,12 +126,24 @@ #include "model/GenerateMergedTableResult.h" #include "model/GetDomainRequest.h" #include "model/GetDomainResult.h" +#include "model/GetFunctionCurrentVersionRequest.h" +#include "model/GetFunctionCurrentVersionResult.h" +#include "model/GetFunctionDefaultInstanceRequest.h" +#include "model/GetFunctionDefaultInstanceResult.h" +#include "model/GetFunctionInstanceRequest.h" +#include "model/GetFunctionInstanceResult.h" +#include "model/GetFunctionTaskRequest.h" +#include "model/GetFunctionTaskResult.h" +#include "model/GetFunctionVersionRequest.h" +#include "model/GetFunctionVersionResult.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/GetSearchStrategyRequest.h" +#include "model/GetSearchStrategyResult.h" #include "model/GetSortScriptRequest.h" #include "model/GetSortScriptResult.h" #include "model/GetSortScriptFileRequest.h" @@ -152,6 +180,10 @@ #include "model/ListDeployedAlgorithmModelsResult.h" #include "model/ListFirstRanksRequest.h" #include "model/ListFirstRanksResult.h" +#include "model/ListFunctionInstancesRequest.h" +#include "model/ListFunctionInstancesResult.h" +#include "model/ListFunctionTasksRequest.h" +#include "model/ListFunctionTasksResult.h" #include "model/ListInterventionDictionariesRequest.h" #include "model/ListInterventionDictionariesResult.h" #include "model/ListInterventionDictionaryEntriesRequest.h" @@ -162,6 +194,10 @@ #include "model/ListInterventionDictionaryRelatedEntitiesResult.h" #include "model/ListModelsRequest.h" #include "model/ListModelsResult.h" +#include "model/ListProceedingsRequest.h" +#include "model/ListProceedingsResult.h" +#include "model/ListQueryProcessorAnalyzerResultsRequest.h" +#include "model/ListQueryProcessorAnalyzerResultsResult.h" #include "model/ListQueryProcessorNersRequest.h" #include "model/ListQueryProcessorNersResult.h" #include "model/ListQueryProcessorsRequest.h" @@ -172,6 +208,8 @@ #include "model/ListRamRolesResult.h" #include "model/ListScheduledTasksRequest.h" #include "model/ListScheduledTasksResult.h" +#include "model/ListSearchStrategiesRequest.h" +#include "model/ListSearchStrategiesResult.h" #include "model/ListSecondRanksRequest.h" #include "model/ListSecondRanksResult.h" #include "model/ListSlowQueryCategoriesRequest.h" @@ -186,6 +224,8 @@ #include "model/ListStatisticLogsResult.h" #include "model/ListStatisticReportRequest.h" #include "model/ListStatisticReportResult.h" +#include "model/ListTagResourcesRequest.h" +#include "model/ListTagResourcesResult.h" #include "model/ListUserAnalyzerEntriesRequest.h" #include "model/ListUserAnalyzerEntriesResult.h" #include "model/ListUserAnalyzersRequest.h" @@ -228,6 +268,8 @@ #include "model/RemoveQueryProcessorResult.h" #include "model/RemoveScheduledTaskRequest.h" #include "model/RemoveScheduledTaskResult.h" +#include "model/RemoveSearchStrategyRequest.h" +#include "model/RemoveSearchStrategyResult.h" #include "model/RemoveSecondRankRequest.h" #include "model/RemoveSecondRankResult.h" #include "model/RemoveUserAnalyzerRequest.h" @@ -240,8 +282,16 @@ #include "model/SaveSortScriptFileResult.h" #include "model/StartSlowQueryAnalyzerRequest.h" #include "model/StartSlowQueryAnalyzerResult.h" +#include "model/TagResourcesRequest.h" +#include "model/TagResourcesResult.h" #include "model/TrainModelRequest.h" #include "model/TrainModelResult.h" +#include "model/UnbindESUserAnalyzerRequest.h" +#include "model/UnbindESUserAnalyzerResult.h" +#include "model/UnbindEsInstanceRequest.h" +#include "model/UnbindEsInstanceResult.h" +#include "model/UntagResourcesRequest.h" +#include "model/UntagResourcesResult.h" #include "model/UpdateABTestExperimentRequest.h" #include "model/UpdateABTestExperimentResult.h" #include "model/UpdateABTestFixedFlowDividersRequest.h" @@ -252,10 +302,18 @@ #include "model/UpdateABTestSceneResult.h" #include "model/UpdateFetchFieldsRequest.h" #include "model/UpdateFetchFieldsResult.h" +#include "model/UpdateFunctionDefaultInstanceRequest.h" +#include "model/UpdateFunctionDefaultInstanceResult.h" +#include "model/UpdateFunctionInstanceRequest.h" +#include "model/UpdateFunctionInstanceResult.h" +#include "model/UpdateSearchStrategyRequest.h" +#include "model/UpdateSearchStrategyResult.h" #include "model/UpdateSortScriptRequest.h" #include "model/UpdateSortScriptResult.h" #include "model/UpdateSummariesRequest.h" #include "model/UpdateSummariesResult.h" +#include "model/ValidateDataSourcesRequest.h" +#include "model/ValidateDataSourcesResult.h" namespace AlibabaCloud @@ -265,6 +323,12 @@ namespace AlibabaCloud class ALIBABACLOUD_OPENSEARCH_EXPORT OpenSearchClient : public RoaServiceClient { public: + typedef Outcome BindESUserAnalyzerOutcome; + typedef std::future BindESUserAnalyzerOutcomeCallable; + typedef std::function&)> BindESUserAnalyzerAsyncHandler; + typedef Outcome BindEsInstanceOutcome; + typedef std::future BindEsInstanceOutcomeCallable; + typedef std::function&)> BindEsInstanceAsyncHandler; typedef Outcome CompileSortScriptOutcome; typedef std::future CompileSortScriptOutcomeCallable; typedef std::function&)> CompileSortScriptAsyncHandler; @@ -289,6 +353,12 @@ namespace AlibabaCloud typedef Outcome CreateFirstRankOutcome; typedef std::future CreateFirstRankOutcomeCallable; typedef std::function&)> CreateFirstRankAsyncHandler; + typedef Outcome CreateFunctionInstanceOutcome; + typedef std::future CreateFunctionInstanceOutcomeCallable; + typedef std::function&)> CreateFunctionInstanceAsyncHandler; + typedef Outcome CreateFunctionTaskOutcome; + typedef std::future CreateFunctionTaskOutcomeCallable; + typedef std::function&)> CreateFunctionTaskAsyncHandler; typedef Outcome CreateInterventionDictionaryOutcome; typedef std::future CreateInterventionDictionaryOutcomeCallable; typedef std::function&)> CreateInterventionDictionaryAsyncHandler; @@ -301,6 +371,9 @@ namespace AlibabaCloud typedef Outcome CreateScheduledTaskOutcome; typedef std::future CreateScheduledTaskOutcomeCallable; typedef std::function&)> CreateScheduledTaskAsyncHandler; + typedef Outcome CreateSearchStrategyOutcome; + typedef std::future CreateSearchStrategyOutcomeCallable; + typedef std::function&)> CreateSearchStrategyAsyncHandler; typedef Outcome CreateSecondRankOutcome; typedef std::future CreateSecondRankOutcomeCallable; typedef std::function&)> CreateSecondRankAsyncHandler; @@ -319,6 +392,12 @@ namespace AlibabaCloud typedef Outcome DeleteABTestSceneOutcome; typedef std::future DeleteABTestSceneOutcomeCallable; typedef std::function&)> DeleteABTestSceneAsyncHandler; + typedef Outcome DeleteFunctionInstanceOutcome; + typedef std::future DeleteFunctionInstanceOutcomeCallable; + typedef std::function&)> DeleteFunctionInstanceAsyncHandler; + typedef Outcome DeleteFunctionTaskOutcome; + typedef std::future DeleteFunctionTaskOutcomeCallable; + typedef std::function&)> DeleteFunctionTaskAsyncHandler; typedef Outcome DeleteModelOutcome; typedef std::future DeleteModelOutcomeCallable; typedef std::function&)> DeleteModelAsyncHandler; @@ -346,6 +425,9 @@ namespace AlibabaCloud typedef Outcome DescribeAppGroupDataReportOutcome; typedef std::future DescribeAppGroupDataReportOutcomeCallable; typedef std::function&)> DescribeAppGroupDataReportAsyncHandler; + typedef Outcome DescribeAppGroupStatisticsOutcome; + typedef std::future DescribeAppGroupStatisticsOutcomeCallable; + typedef std::function&)> DescribeAppGroupStatisticsAsyncHandler; typedef Outcome DescribeAppStatisticsOutcome; typedef std::future DescribeAppStatisticsOutcomeCallable; typedef std::function&)> DescribeAppStatisticsAsyncHandler; @@ -397,6 +479,21 @@ namespace AlibabaCloud typedef Outcome GetDomainOutcome; typedef std::future GetDomainOutcomeCallable; typedef std::function&)> GetDomainAsyncHandler; + typedef Outcome GetFunctionCurrentVersionOutcome; + typedef std::future GetFunctionCurrentVersionOutcomeCallable; + typedef std::function&)> GetFunctionCurrentVersionAsyncHandler; + typedef Outcome GetFunctionDefaultInstanceOutcome; + typedef std::future GetFunctionDefaultInstanceOutcomeCallable; + typedef std::function&)> GetFunctionDefaultInstanceAsyncHandler; + typedef Outcome GetFunctionInstanceOutcome; + typedef std::future GetFunctionInstanceOutcomeCallable; + typedef std::function&)> GetFunctionInstanceAsyncHandler; + typedef Outcome GetFunctionTaskOutcome; + typedef std::future GetFunctionTaskOutcomeCallable; + typedef std::function&)> GetFunctionTaskAsyncHandler; + typedef Outcome GetFunctionVersionOutcome; + typedef std::future GetFunctionVersionOutcomeCallable; + typedef std::function&)> GetFunctionVersionAsyncHandler; typedef Outcome GetModelProgressOutcome; typedef std::future GetModelProgressOutcomeCallable; typedef std::function&)> GetModelProgressAsyncHandler; @@ -406,6 +503,9 @@ namespace AlibabaCloud typedef Outcome GetScriptFileNamesOutcome; typedef std::future GetScriptFileNamesOutcomeCallable; typedef std::function&)> GetScriptFileNamesAsyncHandler; + typedef Outcome GetSearchStrategyOutcome; + typedef std::future GetSearchStrategyOutcomeCallable; + typedef std::function&)> GetSearchStrategyAsyncHandler; typedef Outcome GetSortScriptOutcome; typedef std::future GetSortScriptOutcomeCallable; typedef std::function&)> GetSortScriptAsyncHandler; @@ -460,6 +560,12 @@ namespace AlibabaCloud typedef Outcome ListFirstRanksOutcome; typedef std::future ListFirstRanksOutcomeCallable; typedef std::function&)> ListFirstRanksAsyncHandler; + typedef Outcome ListFunctionInstancesOutcome; + typedef std::future ListFunctionInstancesOutcomeCallable; + typedef std::function&)> ListFunctionInstancesAsyncHandler; + typedef Outcome ListFunctionTasksOutcome; + typedef std::future ListFunctionTasksOutcomeCallable; + typedef std::function&)> ListFunctionTasksAsyncHandler; typedef Outcome ListInterventionDictionariesOutcome; typedef std::future ListInterventionDictionariesOutcomeCallable; typedef std::function&)> ListInterventionDictionariesAsyncHandler; @@ -475,6 +581,12 @@ namespace AlibabaCloud typedef Outcome ListModelsOutcome; typedef std::future ListModelsOutcomeCallable; typedef std::function&)> ListModelsAsyncHandler; + typedef Outcome ListProceedingsOutcome; + typedef std::future ListProceedingsOutcomeCallable; + typedef std::function&)> ListProceedingsAsyncHandler; + typedef Outcome ListQueryProcessorAnalyzerResultsOutcome; + typedef std::future ListQueryProcessorAnalyzerResultsOutcomeCallable; + typedef std::function&)> ListQueryProcessorAnalyzerResultsAsyncHandler; typedef Outcome ListQueryProcessorNersOutcome; typedef std::future ListQueryProcessorNersOutcomeCallable; typedef std::function&)> ListQueryProcessorNersAsyncHandler; @@ -490,6 +602,9 @@ namespace AlibabaCloud typedef Outcome ListScheduledTasksOutcome; typedef std::future ListScheduledTasksOutcomeCallable; typedef std::function&)> ListScheduledTasksAsyncHandler; + typedef Outcome ListSearchStrategiesOutcome; + typedef std::future ListSearchStrategiesOutcomeCallable; + typedef std::function&)> ListSearchStrategiesAsyncHandler; typedef Outcome ListSecondRanksOutcome; typedef std::future ListSecondRanksOutcomeCallable; typedef std::function&)> ListSecondRanksAsyncHandler; @@ -511,6 +626,9 @@ namespace AlibabaCloud typedef Outcome ListStatisticReportOutcome; typedef std::future ListStatisticReportOutcomeCallable; typedef std::function&)> ListStatisticReportAsyncHandler; + typedef Outcome ListTagResourcesOutcome; + typedef std::future ListTagResourcesOutcomeCallable; + typedef std::function&)> ListTagResourcesAsyncHandler; typedef Outcome ListUserAnalyzerEntriesOutcome; typedef std::future ListUserAnalyzerEntriesOutcomeCallable; typedef std::function&)> ListUserAnalyzerEntriesAsyncHandler; @@ -574,6 +692,9 @@ namespace AlibabaCloud typedef Outcome RemoveScheduledTaskOutcome; typedef std::future RemoveScheduledTaskOutcomeCallable; typedef std::function&)> RemoveScheduledTaskAsyncHandler; + typedef Outcome RemoveSearchStrategyOutcome; + typedef std::future RemoveSearchStrategyOutcomeCallable; + typedef std::function&)> RemoveSearchStrategyAsyncHandler; typedef Outcome RemoveSecondRankOutcome; typedef std::future RemoveSecondRankOutcomeCallable; typedef std::function&)> RemoveSecondRankAsyncHandler; @@ -592,9 +713,21 @@ namespace AlibabaCloud typedef Outcome StartSlowQueryAnalyzerOutcome; typedef std::future StartSlowQueryAnalyzerOutcomeCallable; typedef std::function&)> StartSlowQueryAnalyzerAsyncHandler; + typedef Outcome TagResourcesOutcome; + typedef std::future TagResourcesOutcomeCallable; + typedef std::function&)> TagResourcesAsyncHandler; typedef Outcome TrainModelOutcome; typedef std::future TrainModelOutcomeCallable; typedef std::function&)> TrainModelAsyncHandler; + typedef Outcome UnbindESUserAnalyzerOutcome; + typedef std::future UnbindESUserAnalyzerOutcomeCallable; + typedef std::function&)> UnbindESUserAnalyzerAsyncHandler; + typedef Outcome UnbindEsInstanceOutcome; + typedef std::future UnbindEsInstanceOutcomeCallable; + typedef std::function&)> UnbindEsInstanceAsyncHandler; + typedef Outcome UntagResourcesOutcome; + typedef std::future UntagResourcesOutcomeCallable; + typedef std::function&)> UntagResourcesAsyncHandler; typedef Outcome UpdateABTestExperimentOutcome; typedef std::future UpdateABTestExperimentOutcomeCallable; typedef std::function&)> UpdateABTestExperimentAsyncHandler; @@ -610,17 +743,35 @@ namespace AlibabaCloud typedef Outcome UpdateFetchFieldsOutcome; typedef std::future UpdateFetchFieldsOutcomeCallable; typedef std::function&)> UpdateFetchFieldsAsyncHandler; + typedef Outcome UpdateFunctionDefaultInstanceOutcome; + typedef std::future UpdateFunctionDefaultInstanceOutcomeCallable; + typedef std::function&)> UpdateFunctionDefaultInstanceAsyncHandler; + typedef Outcome UpdateFunctionInstanceOutcome; + typedef std::future UpdateFunctionInstanceOutcomeCallable; + typedef std::function&)> UpdateFunctionInstanceAsyncHandler; + typedef Outcome UpdateSearchStrategyOutcome; + typedef std::future UpdateSearchStrategyOutcomeCallable; + typedef std::function&)> UpdateSearchStrategyAsyncHandler; typedef Outcome UpdateSortScriptOutcome; typedef std::future UpdateSortScriptOutcomeCallable; typedef std::function&)> UpdateSortScriptAsyncHandler; typedef Outcome UpdateSummariesOutcome; typedef std::future UpdateSummariesOutcomeCallable; typedef std::function&)> UpdateSummariesAsyncHandler; + typedef Outcome ValidateDataSourcesOutcome; + typedef std::future ValidateDataSourcesOutcomeCallable; + typedef std::function&)> ValidateDataSourcesAsyncHandler; 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(); + BindESUserAnalyzerOutcome bindESUserAnalyzer(const Model::BindESUserAnalyzerRequest &request)const; + void bindESUserAnalyzerAsync(const Model::BindESUserAnalyzerRequest& request, const BindESUserAnalyzerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BindESUserAnalyzerOutcomeCallable bindESUserAnalyzerCallable(const Model::BindESUserAnalyzerRequest& request) const; + BindEsInstanceOutcome bindEsInstance(const Model::BindEsInstanceRequest &request)const; + void bindEsInstanceAsync(const Model::BindEsInstanceRequest& request, const BindEsInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BindEsInstanceOutcomeCallable bindEsInstanceCallable(const Model::BindEsInstanceRequest& request) const; 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; @@ -645,6 +796,12 @@ namespace AlibabaCloud 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; + CreateFunctionInstanceOutcome createFunctionInstance(const Model::CreateFunctionInstanceRequest &request)const; + void createFunctionInstanceAsync(const Model::CreateFunctionInstanceRequest& request, const CreateFunctionInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateFunctionInstanceOutcomeCallable createFunctionInstanceCallable(const Model::CreateFunctionInstanceRequest& request) const; + CreateFunctionTaskOutcome createFunctionTask(const Model::CreateFunctionTaskRequest &request)const; + void createFunctionTaskAsync(const Model::CreateFunctionTaskRequest& request, const CreateFunctionTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateFunctionTaskOutcomeCallable createFunctionTaskCallable(const Model::CreateFunctionTaskRequest& 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; @@ -657,6 +814,9 @@ namespace AlibabaCloud 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; + CreateSearchStrategyOutcome createSearchStrategy(const Model::CreateSearchStrategyRequest &request)const; + void createSearchStrategyAsync(const Model::CreateSearchStrategyRequest& request, const CreateSearchStrategyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateSearchStrategyOutcomeCallable createSearchStrategyCallable(const Model::CreateSearchStrategyRequest& 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; @@ -675,6 +835,12 @@ namespace AlibabaCloud 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; + DeleteFunctionInstanceOutcome deleteFunctionInstance(const Model::DeleteFunctionInstanceRequest &request)const; + void deleteFunctionInstanceAsync(const Model::DeleteFunctionInstanceRequest& request, const DeleteFunctionInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteFunctionInstanceOutcomeCallable deleteFunctionInstanceCallable(const Model::DeleteFunctionInstanceRequest& request) const; + DeleteFunctionTaskOutcome deleteFunctionTask(const Model::DeleteFunctionTaskRequest &request)const; + void deleteFunctionTaskAsync(const Model::DeleteFunctionTaskRequest& request, const DeleteFunctionTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteFunctionTaskOutcomeCallable deleteFunctionTaskCallable(const Model::DeleteFunctionTaskRequest& 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; @@ -702,6 +868,9 @@ namespace AlibabaCloud 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; + DescribeAppGroupStatisticsOutcome describeAppGroupStatistics(const Model::DescribeAppGroupStatisticsRequest &request)const; + void describeAppGroupStatisticsAsync(const Model::DescribeAppGroupStatisticsRequest& request, const DescribeAppGroupStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAppGroupStatisticsOutcomeCallable describeAppGroupStatisticsCallable(const Model::DescribeAppGroupStatisticsRequest& 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; @@ -753,6 +922,21 @@ namespace AlibabaCloud GetDomainOutcome getDomain(const Model::GetDomainRequest &request)const; void getDomainAsync(const Model::GetDomainRequest& request, const GetDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetDomainOutcomeCallable getDomainCallable(const Model::GetDomainRequest& request) const; + GetFunctionCurrentVersionOutcome getFunctionCurrentVersion(const Model::GetFunctionCurrentVersionRequest &request)const; + void getFunctionCurrentVersionAsync(const Model::GetFunctionCurrentVersionRequest& request, const GetFunctionCurrentVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetFunctionCurrentVersionOutcomeCallable getFunctionCurrentVersionCallable(const Model::GetFunctionCurrentVersionRequest& request) const; + GetFunctionDefaultInstanceOutcome getFunctionDefaultInstance(const Model::GetFunctionDefaultInstanceRequest &request)const; + void getFunctionDefaultInstanceAsync(const Model::GetFunctionDefaultInstanceRequest& request, const GetFunctionDefaultInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetFunctionDefaultInstanceOutcomeCallable getFunctionDefaultInstanceCallable(const Model::GetFunctionDefaultInstanceRequest& request) const; + GetFunctionInstanceOutcome getFunctionInstance(const Model::GetFunctionInstanceRequest &request)const; + void getFunctionInstanceAsync(const Model::GetFunctionInstanceRequest& request, const GetFunctionInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetFunctionInstanceOutcomeCallable getFunctionInstanceCallable(const Model::GetFunctionInstanceRequest& request) const; + GetFunctionTaskOutcome getFunctionTask(const Model::GetFunctionTaskRequest &request)const; + void getFunctionTaskAsync(const Model::GetFunctionTaskRequest& request, const GetFunctionTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetFunctionTaskOutcomeCallable getFunctionTaskCallable(const Model::GetFunctionTaskRequest& request) const; + GetFunctionVersionOutcome getFunctionVersion(const Model::GetFunctionVersionRequest &request)const; + void getFunctionVersionAsync(const Model::GetFunctionVersionRequest& request, const GetFunctionVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetFunctionVersionOutcomeCallable getFunctionVersionCallable(const Model::GetFunctionVersionRequest& 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; @@ -762,6 +946,9 @@ namespace AlibabaCloud 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; + GetSearchStrategyOutcome getSearchStrategy(const Model::GetSearchStrategyRequest &request)const; + void getSearchStrategyAsync(const Model::GetSearchStrategyRequest& request, const GetSearchStrategyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSearchStrategyOutcomeCallable getSearchStrategyCallable(const Model::GetSearchStrategyRequest& 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; @@ -816,6 +1003,12 @@ namespace AlibabaCloud 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; + ListFunctionInstancesOutcome listFunctionInstances(const Model::ListFunctionInstancesRequest &request)const; + void listFunctionInstancesAsync(const Model::ListFunctionInstancesRequest& request, const ListFunctionInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListFunctionInstancesOutcomeCallable listFunctionInstancesCallable(const Model::ListFunctionInstancesRequest& request) const; + ListFunctionTasksOutcome listFunctionTasks(const Model::ListFunctionTasksRequest &request)const; + void listFunctionTasksAsync(const Model::ListFunctionTasksRequest& request, const ListFunctionTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListFunctionTasksOutcomeCallable listFunctionTasksCallable(const Model::ListFunctionTasksRequest& 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; @@ -831,6 +1024,12 @@ namespace AlibabaCloud 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; + ListProceedingsOutcome listProceedings(const Model::ListProceedingsRequest &request)const; + void listProceedingsAsync(const Model::ListProceedingsRequest& request, const ListProceedingsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListProceedingsOutcomeCallable listProceedingsCallable(const Model::ListProceedingsRequest& request) const; + ListQueryProcessorAnalyzerResultsOutcome listQueryProcessorAnalyzerResults(const Model::ListQueryProcessorAnalyzerResultsRequest &request)const; + void listQueryProcessorAnalyzerResultsAsync(const Model::ListQueryProcessorAnalyzerResultsRequest& request, const ListQueryProcessorAnalyzerResultsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListQueryProcessorAnalyzerResultsOutcomeCallable listQueryProcessorAnalyzerResultsCallable(const Model::ListQueryProcessorAnalyzerResultsRequest& 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; @@ -846,6 +1045,9 @@ namespace AlibabaCloud 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; + ListSearchStrategiesOutcome listSearchStrategies(const Model::ListSearchStrategiesRequest &request)const; + void listSearchStrategiesAsync(const Model::ListSearchStrategiesRequest& request, const ListSearchStrategiesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSearchStrategiesOutcomeCallable listSearchStrategiesCallable(const Model::ListSearchStrategiesRequest& 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; @@ -867,6 +1069,9 @@ namespace AlibabaCloud 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; + ListTagResourcesOutcome listTagResources(const Model::ListTagResourcesRequest &request)const; + void listTagResourcesAsync(const Model::ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTagResourcesOutcomeCallable listTagResourcesCallable(const Model::ListTagResourcesRequest& 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; @@ -930,6 +1135,9 @@ namespace AlibabaCloud 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; + RemoveSearchStrategyOutcome removeSearchStrategy(const Model::RemoveSearchStrategyRequest &request)const; + void removeSearchStrategyAsync(const Model::RemoveSearchStrategyRequest& request, const RemoveSearchStrategyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveSearchStrategyOutcomeCallable removeSearchStrategyCallable(const Model::RemoveSearchStrategyRequest& 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; @@ -948,9 +1156,21 @@ namespace AlibabaCloud 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; + TagResourcesOutcome tagResources(const Model::TagResourcesRequest &request)const; + void tagResourcesAsync(const Model::TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TagResourcesOutcomeCallable tagResourcesCallable(const Model::TagResourcesRequest& 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; + UnbindESUserAnalyzerOutcome unbindESUserAnalyzer(const Model::UnbindESUserAnalyzerRequest &request)const; + void unbindESUserAnalyzerAsync(const Model::UnbindESUserAnalyzerRequest& request, const UnbindESUserAnalyzerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnbindESUserAnalyzerOutcomeCallable unbindESUserAnalyzerCallable(const Model::UnbindESUserAnalyzerRequest& request) const; + UnbindEsInstanceOutcome unbindEsInstance(const Model::UnbindEsInstanceRequest &request)const; + void unbindEsInstanceAsync(const Model::UnbindEsInstanceRequest& request, const UnbindEsInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnbindEsInstanceOutcomeCallable unbindEsInstanceCallable(const Model::UnbindEsInstanceRequest& request) const; + UntagResourcesOutcome untagResources(const Model::UntagResourcesRequest &request)const; + void untagResourcesAsync(const Model::UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UntagResourcesOutcomeCallable untagResourcesCallable(const Model::UntagResourcesRequest& 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; @@ -966,12 +1186,24 @@ namespace AlibabaCloud 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; + UpdateFunctionDefaultInstanceOutcome updateFunctionDefaultInstance(const Model::UpdateFunctionDefaultInstanceRequest &request)const; + void updateFunctionDefaultInstanceAsync(const Model::UpdateFunctionDefaultInstanceRequest& request, const UpdateFunctionDefaultInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateFunctionDefaultInstanceOutcomeCallable updateFunctionDefaultInstanceCallable(const Model::UpdateFunctionDefaultInstanceRequest& request) const; + UpdateFunctionInstanceOutcome updateFunctionInstance(const Model::UpdateFunctionInstanceRequest &request)const; + void updateFunctionInstanceAsync(const Model::UpdateFunctionInstanceRequest& request, const UpdateFunctionInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateFunctionInstanceOutcomeCallable updateFunctionInstanceCallable(const Model::UpdateFunctionInstanceRequest& request) const; + UpdateSearchStrategyOutcome updateSearchStrategy(const Model::UpdateSearchStrategyRequest &request)const; + void updateSearchStrategyAsync(const Model::UpdateSearchStrategyRequest& request, const UpdateSearchStrategyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateSearchStrategyOutcomeCallable updateSearchStrategyCallable(const Model::UpdateSearchStrategyRequest& request) const; UpdateSortScriptOutcome updateSortScript(const Model::UpdateSortScriptRequest &request)const; void updateSortScriptAsync(const Model::UpdateSortScriptRequest& request, const UpdateSortScriptAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateSortScriptOutcomeCallable updateSortScriptCallable(const Model::UpdateSortScriptRequest& 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; + ValidateDataSourcesOutcome validateDataSources(const Model::ValidateDataSourcesRequest &request)const; + void validateDataSourcesAsync(const Model::ValidateDataSourcesRequest& request, const ValidateDataSourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ValidateDataSourcesOutcomeCallable validateDataSourcesCallable(const Model::ValidateDataSourcesRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/opensearch/include/alibabacloud/opensearch/model/BindESUserAnalyzerRequest.h b/opensearch/include/alibabacloud/opensearch/model/BindESUserAnalyzerRequest.h new file mode 100644 index 000000000..5319c091c --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/BindESUserAnalyzerRequest.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_BINDESUSERANALYZERREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_BINDESUSERANALYZERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OpenSearch { +namespace Model { +class ALIBABACLOUD_OPENSEARCH_EXPORT BindESUserAnalyzerRequest : public RoaServiceRequest { +public: + BindESUserAnalyzerRequest(); + ~BindESUserAnalyzerRequest(); + std::string getEsInstanceId() const; + void setEsInstanceId(const std::string &esInstanceId); + std::string getAppGroupIdentity() const; + void setAppGroupIdentity(const std::string &appGroupIdentity); + +private: + std::string esInstanceId_; + std::string appGroupIdentity_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_BINDESUSERANALYZERREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/BindESUserAnalyzerResult.h b/opensearch/include/alibabacloud/opensearch/model/BindESUserAnalyzerResult.h new file mode 100644 index 000000000..124d095aa --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/BindESUserAnalyzerResult.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_BINDESUSERANALYZERRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_BINDESUSERANALYZERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT BindESUserAnalyzerResult : public ServiceResult + { + public: + + + BindESUserAnalyzerResult(); + explicit BindESUserAnalyzerResult(const std::string &payload); + ~BindESUserAnalyzerResult(); + 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_BINDESUSERANALYZERRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/BindEsInstanceRequest.h b/opensearch/include/alibabacloud/opensearch/model/BindEsInstanceRequest.h new file mode 100644 index 000000000..7e7d2d34c --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/BindEsInstanceRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR 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_BINDESINSTANCEREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_BINDESINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OpenSearch { +namespace Model { +class ALIBABACLOUD_OPENSEARCH_EXPORT BindEsInstanceRequest : public RoaServiceRequest { +public: + BindEsInstanceRequest(); + ~BindEsInstanceRequest(); + std::string getAppGroupIdentity() const; + void setAppGroupIdentity(const std::string &appGroupIdentity); + +private: + std::string appGroupIdentity_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_BINDESINSTANCEREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/BindEsInstanceResult.h b/opensearch/include/alibabacloud/opensearch/model/BindEsInstanceResult.h new file mode 100644 index 000000000..44f61e821 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/BindEsInstanceResult.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_BINDESINSTANCERESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_BINDESINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT BindEsInstanceResult : public ServiceResult + { + public: + + + BindEsInstanceResult(); + explicit BindEsInstanceResult(const std::string &payload); + ~BindEsInstanceResult(); + 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_BINDESINSTANCERESULT_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 index 1d48acfd8..fedeaf242 100644 --- a/opensearch/include/alibabacloud/opensearch/model/CompileSortScriptRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/CompileSortScriptRequest.h @@ -1,54 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_COMPILESORTSCRIPTREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_COMPILESORTSCRIPTREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_COMPILESORTSCRIPTREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/CreateABTestExperimentRequest.h b/opensearch/include/alibabacloud/opensearch/model/CreateABTestExperimentRequest.h index 18bce3a6a..a0efe891d 100644 --- a/opensearch/include/alibabacloud/opensearch/model/CreateABTestExperimentRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/CreateABTestExperimentRequest.h @@ -1,54 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_CREATEABTESTEXPERIMENTREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_CREATEABTESTEXPERIMENTREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_CREATEABTESTEXPERIMENTREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/CreateABTestExperimentResult.h b/opensearch/include/alibabacloud/opensearch/model/CreateABTestExperimentResult.h index 1dbfd96e0..14775fe49 100644 --- a/opensearch/include/alibabacloud/opensearch/model/CreateABTestExperimentResult.h +++ b/opensearch/include/alibabacloud/opensearch/model/CreateABTestExperimentResult.h @@ -39,8 +39,8 @@ namespace AlibabaCloud std::string params; std::string id; bool online; - std::string name; int created; + std::string name; }; diff --git a/opensearch/include/alibabacloud/opensearch/model/CreateABTestGroupRequest.h b/opensearch/include/alibabacloud/opensearch/model/CreateABTestGroupRequest.h index e333e7ad2..d89105fa5 100644 --- a/opensearch/include/alibabacloud/opensearch/model/CreateABTestGroupRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/CreateABTestGroupRequest.h @@ -1,51 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_CREATEABTESTGROUPREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_CREATEABTESTGROUPREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_CREATEABTESTGROUPREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/CreateABTestGroupResult.h b/opensearch/include/alibabacloud/opensearch/model/CreateABTestGroupResult.h index 3bf401218..097d5b81e 100644 --- a/opensearch/include/alibabacloud/opensearch/model/CreateABTestGroupResult.h +++ b/opensearch/include/alibabacloud/opensearch/model/CreateABTestGroupResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud int status; int updated; std::string id; - std::string name; int created; + std::string name; }; diff --git a/opensearch/include/alibabacloud/opensearch/model/CreateABTestSceneRequest.h b/opensearch/include/alibabacloud/opensearch/model/CreateABTestSceneRequest.h index 4e8e10cfd..4432b83a2 100644 --- a/opensearch/include/alibabacloud/opensearch/model/CreateABTestSceneRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/CreateABTestSceneRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_CREATEABTESTSCENEREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_CREATEABTESTSCENEREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_CREATEABTESTSCENEREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/CreateABTestSceneResult.h b/opensearch/include/alibabacloud/opensearch/model/CreateABTestSceneResult.h index e3f65ed7c..2c201befb 100644 --- a/opensearch/include/alibabacloud/opensearch/model/CreateABTestSceneResult.h +++ b/opensearch/include/alibabacloud/opensearch/model/CreateABTestSceneResult.h @@ -38,8 +38,8 @@ namespace AlibabaCloud int updated; std::vector values; std::string id; - std::string name; int created; + std::string name; }; diff --git a/opensearch/include/alibabacloud/opensearch/model/CreateAppGroupRequest.h b/opensearch/include/alibabacloud/opensearch/model/CreateAppGroupRequest.h index c5ec7a3d9..8246f3886 100644 --- a/opensearch/include/alibabacloud/opensearch/model/CreateAppGroupRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/CreateAppGroupRequest.h @@ -1,45 +1,39 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_CREATEAPPGROUPREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_CREATEAPPGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OpenSearch { +namespace Model { +class ALIBABACLOUD_OPENSEARCH_EXPORT CreateAppGroupRequest : public RoaServiceRequest { +public: + CreateAppGroupRequest(); + ~CreateAppGroupRequest(); + +private: +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_CREATEAPPGROUPREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/CreateAppGroupResult.h b/opensearch/include/alibabacloud/opensearch/model/CreateAppGroupResult.h index dd66c9c89..2abbe300b 100644 --- a/opensearch/include/alibabacloud/opensearch/model/CreateAppGroupResult.h +++ b/opensearch/include/alibabacloud/opensearch/model/CreateAppGroupResult.h @@ -47,10 +47,10 @@ namespace AlibabaCloud std::string expireOn; std::string currentVersion; int switchedTime; - std::string name; int created; - std::string commodityCode; + std::string name; int hasPendingQuotaReviewTask; + std::string commodityCode; std::string status; int produced; int updated; diff --git a/opensearch/include/alibabacloud/opensearch/model/CreateAppRequest.h b/opensearch/include/alibabacloud/opensearch/model/CreateAppRequest.h index 5352142ed..f9688e868 100644 --- a/opensearch/include/alibabacloud/opensearch/model/CreateAppRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/CreateAppRequest.h @@ -1,51 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_CREATEAPPREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_CREATEAPPREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_CREATEAPPREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/CreateDataCollectionRequest.h b/opensearch/include/alibabacloud/opensearch/model/CreateDataCollectionRequest.h index 4b5d11c56..0ef42e0e1 100644 --- a/opensearch/include/alibabacloud/opensearch/model/CreateDataCollectionRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/CreateDataCollectionRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_CREATEDATACOLLECTIONREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_CREATEDATACOLLECTIONREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_CREATEDATACOLLECTIONREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/CreateDataCollectionResult.h b/opensearch/include/alibabacloud/opensearch/model/CreateDataCollectionResult.h index b1e8915d5..fda0aa8a2 100644 --- a/opensearch/include/alibabacloud/opensearch/model/CreateDataCollectionResult.h +++ b/opensearch/include/alibabacloud/opensearch/model/CreateDataCollectionResult.h @@ -41,8 +41,8 @@ namespace AlibabaCloud std::string dataCollectionType; std::string id; std::string industryName; - std::string name; int created; + std::string name; }; diff --git a/opensearch/include/alibabacloud/opensearch/model/CreateFirstRankRequest.h b/opensearch/include/alibabacloud/opensearch/model/CreateFirstRankRequest.h index 3122329d4..e657665d9 100644 --- a/opensearch/include/alibabacloud/opensearch/model/CreateFirstRankRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/CreateFirstRankRequest.h @@ -1,54 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_CREATEFIRSTRANKREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_CREATEFIRSTRANKREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_CREATEFIRSTRANKREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/CreateFunctionInstanceRequest.h b/opensearch/include/alibabacloud/opensearch/model/CreateFunctionInstanceRequest.h new file mode 100644 index 000000000..315e811eb --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/CreateFunctionInstanceRequest.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_CREATEFUNCTIONINSTANCEREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_CREATEFUNCTIONINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OpenSearch { +namespace Model { +class ALIBABACLOUD_OPENSEARCH_EXPORT CreateFunctionInstanceRequest : public RoaServiceRequest { +public: + CreateFunctionInstanceRequest(); + ~CreateFunctionInstanceRequest(); + std::string getFunctionName() const; + void setFunctionName(const std::string &functionName); + std::string getAppGroupIdentity() const; + void setAppGroupIdentity(const std::string &appGroupIdentity); + +private: + std::string functionName_; + std::string appGroupIdentity_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_CREATEFUNCTIONINSTANCEREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/CreateFunctionInstanceResult.h b/opensearch/include/alibabacloud/opensearch/model/CreateFunctionInstanceResult.h new file mode 100644 index 000000000..60bf3a233 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/CreateFunctionInstanceResult.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_CREATEFUNCTIONINSTANCERESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_CREATEFUNCTIONINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT CreateFunctionInstanceResult : public ServiceResult + { + public: + + + CreateFunctionInstanceResult(); + explicit CreateFunctionInstanceResult(const std::string &payload); + ~CreateFunctionInstanceResult(); + std::string getStatus()const; + long getHttpCode()const; + std::string getMessage()const; + std::string getCode()const; + long getLatency()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + long httpCode_; + std::string message_; + std::string code_; + long latency_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_CREATEFUNCTIONINSTANCERESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/CreateFunctionTaskRequest.h b/opensearch/include/alibabacloud/opensearch/model/CreateFunctionTaskRequest.h new file mode 100644 index 000000000..93e4d38ba --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/CreateFunctionTaskRequest.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_CREATEFUNCTIONTASKREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_CREATEFUNCTIONTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OpenSearch { +namespace Model { +class ALIBABACLOUD_OPENSEARCH_EXPORT CreateFunctionTaskRequest : public RoaServiceRequest { +public: + CreateFunctionTaskRequest(); + ~CreateFunctionTaskRequest(); + std::string getInstanceName() const; + void setInstanceName(const std::string &instanceName); + std::string getFunctionName() const; + void setFunctionName(const std::string &functionName); + std::string getAppGroupIdentity() const; + void setAppGroupIdentity(const std::string &appGroupIdentity); + +private: + std::string instanceName_; + std::string functionName_; + std::string appGroupIdentity_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_CREATEFUNCTIONTASKREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/CreateFunctionTaskResult.h b/opensearch/include/alibabacloud/opensearch/model/CreateFunctionTaskResult.h new file mode 100644 index 000000000..130d024f7 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/CreateFunctionTaskResult.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_CREATEFUNCTIONTASKRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_CREATEFUNCTIONTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT CreateFunctionTaskResult : public ServiceResult + { + public: + + + CreateFunctionTaskResult(); + explicit CreateFunctionTaskResult(const std::string &payload); + ~CreateFunctionTaskResult(); + std::string getStatus()const; + long getHttpCode()const; + std::string getMessage()const; + std::string getCode()const; + long getLatency()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + long httpCode_; + std::string message_; + std::string code_; + long latency_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_CREATEFUNCTIONTASKRESULT_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 index ca47e07f7..9df030e7c 100644 --- a/opensearch/include/alibabacloud/opensearch/model/CreateInterventionDictionaryRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/CreateInterventionDictionaryRequest.h @@ -1,45 +1,39 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_CREATEINTERVENTIONDICTIONARYREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_CREATEINTERVENTIONDICTIONARYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OpenSearch { +namespace Model { +class ALIBABACLOUD_OPENSEARCH_EXPORT CreateInterventionDictionaryRequest : public RoaServiceRequest { +public: + CreateInterventionDictionaryRequest(); + ~CreateInterventionDictionaryRequest(); + +private: +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_CREATEINTERVENTIONDICTIONARYREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/CreateInterventionDictionaryResult.h b/opensearch/include/alibabacloud/opensearch/model/CreateInterventionDictionaryResult.h index 346a4d0d6..55c172123 100644 --- a/opensearch/include/alibabacloud/opensearch/model/CreateInterventionDictionaryResult.h +++ b/opensearch/include/alibabacloud/opensearch/model/CreateInterventionDictionaryResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud std::string type; std::string updated; std::string analyzer; - std::string name; std::string created; + std::string name; }; diff --git a/opensearch/include/alibabacloud/opensearch/model/CreateModelRequest.h b/opensearch/include/alibabacloud/opensearch/model/CreateModelRequest.h index fa69ae893..bd6d53f30 100644 --- a/opensearch/include/alibabacloud/opensearch/model/CreateModelRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/CreateModelRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_CREATEMODELREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_CREATEMODELREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_CREATEMODELREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/CreateQueryProcessorRequest.h b/opensearch/include/alibabacloud/opensearch/model/CreateQueryProcessorRequest.h index 7a93f6d10..76550fcfc 100644 --- a/opensearch/include/alibabacloud/opensearch/model/CreateQueryProcessorRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/CreateQueryProcessorRequest.h @@ -1,54 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_CREATEQUERYPROCESSORREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_CREATEQUERYPROCESSORREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_CREATEQUERYPROCESSORREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/CreateQueryProcessorResult.h b/opensearch/include/alibabacloud/opensearch/model/CreateQueryProcessorResult.h index 20fbd09da..fa800877c 100644 --- a/opensearch/include/alibabacloud/opensearch/model/CreateQueryProcessorResult.h +++ b/opensearch/include/alibabacloud/opensearch/model/CreateQueryProcessorResult.h @@ -39,8 +39,8 @@ namespace AlibabaCloud std::string domain; std::vector indexes; std::vector processors; - std::string name; int created; + std::string name; }; diff --git a/opensearch/include/alibabacloud/opensearch/model/CreateScheduledTaskRequest.h b/opensearch/include/alibabacloud/opensearch/model/CreateScheduledTaskRequest.h index 8c7e1a6b7..d728f10ac 100644 --- a/opensearch/include/alibabacloud/opensearch/model/CreateScheduledTaskRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/CreateScheduledTaskRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_CREATESCHEDULEDTASKREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_CREATESCHEDULEDTASKREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_CREATESCHEDULEDTASKREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/CreateSearchStrategyRequest.h b/opensearch/include/alibabacloud/opensearch/model/CreateSearchStrategyRequest.h new file mode 100644 index 000000000..32efb709b --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/CreateSearchStrategyRequest.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_CREATESEARCHSTRATEGYREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_CREATESEARCHSTRATEGYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OpenSearch { +namespace Model { +class ALIBABACLOUD_OPENSEARCH_EXPORT CreateSearchStrategyRequest : public RoaServiceRequest { +public: + CreateSearchStrategyRequest(); + ~CreateSearchStrategyRequest(); + 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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_CREATESEARCHSTRATEGYREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/CreateSearchStrategyResult.h b/opensearch/include/alibabacloud/opensearch/model/CreateSearchStrategyResult.h new file mode 100644 index 000000000..332b5697f --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/CreateSearchStrategyResult.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_CREATESEARCHSTRATEGYRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_CREATESEARCHSTRATEGYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT CreateSearchStrategyResult : public ServiceResult + { + public: + + + CreateSearchStrategyResult(); + explicit CreateSearchStrategyResult(const std::string &payload); + ~CreateSearchStrategyResult(); + std::string getRequestId()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_CREATESEARCHSTRATEGYRESULT_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 index 56f1859ca..ff22bedb6 100644 --- a/opensearch/include/alibabacloud/opensearch/model/CreateSecondRankRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/CreateSecondRankRequest.h @@ -1,54 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_CREATESECONDRANKREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_CREATESECONDRANKREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_CREATESECONDRANKREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/CreateSortScriptRequest.h b/opensearch/include/alibabacloud/opensearch/model/CreateSortScriptRequest.h index e98e8fbd5..f0221eb04 100644 --- a/opensearch/include/alibabacloud/opensearch/model/CreateSortScriptRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/CreateSortScriptRequest.h @@ -1,51 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_CREATESORTSCRIPTREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_CREATESORTSCRIPTREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_CREATESORTSCRIPTREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/CreateUserAnalyzerRequest.h b/opensearch/include/alibabacloud/opensearch/model/CreateUserAnalyzerRequest.h index 7c52dfcdb..15e230749 100644 --- a/opensearch/include/alibabacloud/opensearch/model/CreateUserAnalyzerRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/CreateUserAnalyzerRequest.h @@ -1,45 +1,39 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_CREATEUSERANALYZERREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_CREATEUSERANALYZERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OpenSearch { +namespace Model { +class ALIBABACLOUD_OPENSEARCH_EXPORT CreateUserAnalyzerRequest : public RoaServiceRequest { +public: + CreateUserAnalyzerRequest(); + ~CreateUserAnalyzerRequest(); + +private: +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_CREATEUSERANALYZERREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/DeleteABTestExperimentRequest.h b/opensearch/include/alibabacloud/opensearch/model/DeleteABTestExperimentRequest.h index 3a5711a8c..40c9c28c5 100644 --- a/opensearch/include/alibabacloud/opensearch/model/DeleteABTestExperimentRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/DeleteABTestExperimentRequest.h @@ -1,57 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_DELETEABTESTEXPERIMENTREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DELETEABTESTEXPERIMENTREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DELETEABTESTEXPERIMENTREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/DeleteABTestGroupRequest.h b/opensearch/include/alibabacloud/opensearch/model/DeleteABTestGroupRequest.h index dfb16fcf4..c13919bc9 100644 --- a/opensearch/include/alibabacloud/opensearch/model/DeleteABTestGroupRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/DeleteABTestGroupRequest.h @@ -1,54 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_DELETEABTESTGROUPREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DELETEABTESTGROUPREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DELETEABTESTGROUPREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/DeleteABTestSceneRequest.h b/opensearch/include/alibabacloud/opensearch/model/DeleteABTestSceneRequest.h index 6579466c2..abfcac8d4 100644 --- a/opensearch/include/alibabacloud/opensearch/model/DeleteABTestSceneRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/DeleteABTestSceneRequest.h @@ -1,51 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_DELETEABTESTSCENEREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DELETEABTESTSCENEREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DELETEABTESTSCENEREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/DeleteFunctionInstanceRequest.h b/opensearch/include/alibabacloud/opensearch/model/DeleteFunctionInstanceRequest.h new file mode 100644 index 000000000..0927c74fe --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DeleteFunctionInstanceRequest.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_DELETEFUNCTIONINSTANCEREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DELETEFUNCTIONINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OpenSearch { +namespace Model { +class ALIBABACLOUD_OPENSEARCH_EXPORT DeleteFunctionInstanceRequest : public RoaServiceRequest { +public: + DeleteFunctionInstanceRequest(); + ~DeleteFunctionInstanceRequest(); + std::string getInstanceName() const; + void setInstanceName(const std::string &instanceName); + std::string getFunctionName() const; + void setFunctionName(const std::string &functionName); + std::string getAppGroupIdentity() const; + void setAppGroupIdentity(const std::string &appGroupIdentity); + +private: + std::string instanceName_; + std::string functionName_; + std::string appGroupIdentity_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DELETEFUNCTIONINSTANCEREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/DeleteFunctionInstanceResult.h b/opensearch/include/alibabacloud/opensearch/model/DeleteFunctionInstanceResult.h new file mode 100644 index 000000000..50a401a0c --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DeleteFunctionInstanceResult.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_DELETEFUNCTIONINSTANCERESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DELETEFUNCTIONINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DeleteFunctionInstanceResult : public ServiceResult + { + public: + + + DeleteFunctionInstanceResult(); + explicit DeleteFunctionInstanceResult(const std::string &payload); + ~DeleteFunctionInstanceResult(); + std::string getStatus()const; + long getHttpCode()const; + std::string getMessage()const; + std::string getCode()const; + long getLatency()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + long httpCode_; + std::string message_; + std::string code_; + long latency_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DELETEFUNCTIONINSTANCERESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/DeleteFunctionTaskRequest.h b/opensearch/include/alibabacloud/opensearch/model/DeleteFunctionTaskRequest.h new file mode 100644 index 000000000..7b166f88f --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DeleteFunctionTaskRequest.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_DELETEFUNCTIONTASKREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DELETEFUNCTIONTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OpenSearch { +namespace Model { +class ALIBABACLOUD_OPENSEARCH_EXPORT DeleteFunctionTaskRequest : public RoaServiceRequest { +public: + DeleteFunctionTaskRequest(); + ~DeleteFunctionTaskRequest(); + std::string getGeneration() const; + void setGeneration(const std::string &generation); + std::string getInstanceName() const; + void setInstanceName(const std::string &instanceName); + std::string getFunctionName() const; + void setFunctionName(const std::string &functionName); + std::string getAppGroupIdentity() const; + void setAppGroupIdentity(const std::string &appGroupIdentity); + +private: + std::string generation_; + std::string instanceName_; + std::string functionName_; + std::string appGroupIdentity_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DELETEFUNCTIONTASKREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/DeleteFunctionTaskResult.h b/opensearch/include/alibabacloud/opensearch/model/DeleteFunctionTaskResult.h new file mode 100644 index 000000000..ef1d8e4ea --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DeleteFunctionTaskResult.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_DELETEFUNCTIONTASKRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DELETEFUNCTIONTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DeleteFunctionTaskResult : public ServiceResult + { + public: + + + DeleteFunctionTaskResult(); + explicit DeleteFunctionTaskResult(const std::string &payload); + ~DeleteFunctionTaskResult(); + std::string getStatus()const; + long getHttpCode()const; + std::string getMessage()const; + std::string getCode()const; + long getLatency()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + long httpCode_; + std::string message_; + std::string code_; + long latency_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DELETEFUNCTIONTASKRESULT_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 index cadf79357..d8c519b5c 100644 --- a/opensearch/include/alibabacloud/opensearch/model/DeleteModelRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/DeleteModelRequest.h @@ -1,51 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_DELETEMODELREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DELETEMODELREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DELETEMODELREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/DeleteSortScriptFileRequest.h b/opensearch/include/alibabacloud/opensearch/model/DeleteSortScriptFileRequest.h index ce810e1b4..b015efb81 100644 --- a/opensearch/include/alibabacloud/opensearch/model/DeleteSortScriptFileRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/DeleteSortScriptFileRequest.h @@ -1,57 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_DELETESORTSCRIPTFILEREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DELETESORTSCRIPTFILEREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DELETESORTSCRIPTFILEREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/DeleteSortScriptRequest.h b/opensearch/include/alibabacloud/opensearch/model/DeleteSortScriptRequest.h index 39e25c678..7cc1b66c7 100644 --- a/opensearch/include/alibabacloud/opensearch/model/DeleteSortScriptRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/DeleteSortScriptRequest.h @@ -1,54 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_DELETESORTSCRIPTREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DELETESORTSCRIPTREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DELETESORTSCRIPTREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeABTestExperimentRequest.h b/opensearch/include/alibabacloud/opensearch/model/DescribeABTestExperimentRequest.h index d4d6d3c04..ad9ec4a5c 100644 --- a/opensearch/include/alibabacloud/opensearch/model/DescribeABTestExperimentRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeABTestExperimentRequest.h @@ -1,57 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEABTESTEXPERIMENTREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEABTESTEXPERIMENTREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEABTESTEXPERIMENTREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeABTestExperimentResult.h b/opensearch/include/alibabacloud/opensearch/model/DescribeABTestExperimentResult.h index 8648c9a9d..b1687a9fe 100644 --- a/opensearch/include/alibabacloud/opensearch/model/DescribeABTestExperimentResult.h +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeABTestExperimentResult.h @@ -43,8 +43,8 @@ namespace AlibabaCloud Params params; std::string id; bool online; - std::string name; int created; + std::string name; }; diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeABTestGroupRequest.h b/opensearch/include/alibabacloud/opensearch/model/DescribeABTestGroupRequest.h index ba496c3d7..321d82991 100644 --- a/opensearch/include/alibabacloud/opensearch/model/DescribeABTestGroupRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeABTestGroupRequest.h @@ -1,54 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEABTESTGROUPREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEABTESTGROUPREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEABTESTGROUPREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeABTestGroupResult.h b/opensearch/include/alibabacloud/opensearch/model/DescribeABTestGroupResult.h index 1fbbc3231..d3f9fe51c 100644 --- a/opensearch/include/alibabacloud/opensearch/model/DescribeABTestGroupResult.h +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeABTestGroupResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud int status; int updated; std::string id; - std::string name; int created; + std::string name; }; diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeABTestSceneRequest.h b/opensearch/include/alibabacloud/opensearch/model/DescribeABTestSceneRequest.h index 81906b593..39680bbca 100644 --- a/opensearch/include/alibabacloud/opensearch/model/DescribeABTestSceneRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeABTestSceneRequest.h @@ -1,51 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEABTESTSCENEREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEABTESTSCENEREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEABTESTSCENEREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeABTestSceneResult.h b/opensearch/include/alibabacloud/opensearch/model/DescribeABTestSceneResult.h index e46c58407..59850bbc5 100644 --- a/opensearch/include/alibabacloud/opensearch/model/DescribeABTestSceneResult.h +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeABTestSceneResult.h @@ -38,8 +38,8 @@ namespace AlibabaCloud int updated; std::vector values; std::string id; - std::string name; int created; + std::string name; }; diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeAppGroupDataReportRequest.h b/opensearch/include/alibabacloud/opensearch/model/DescribeAppGroupDataReportRequest.h index 38bcb8947..178cb36f4 100644 --- a/opensearch/include/alibabacloud/opensearch/model/DescribeAppGroupDataReportRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeAppGroupDataReportRequest.h @@ -1,54 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEAPPGROUPDATAREPORTREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEAPPGROUPDATAREPORTREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEAPPGROUPDATAREPORTREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeAppGroupDataReportResult.h b/opensearch/include/alibabacloud/opensearch/model/DescribeAppGroupDataReportResult.h index 163b36c75..667482718 100644 --- a/opensearch/include/alibabacloud/opensearch/model/DescribeAppGroupDataReportResult.h +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeAppGroupDataReportResult.h @@ -46,8 +46,8 @@ namespace AlibabaCloud std::string sdkVersion; int eventId; std::string page; - std::string clientIp; std::string sessionId; + std::string clientIp; }; Message message; long receivedTimeMs; diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeAppGroupRequest.h b/opensearch/include/alibabacloud/opensearch/model/DescribeAppGroupRequest.h index 94ea45de3..744fe238e 100644 --- a/opensearch/include/alibabacloud/opensearch/model/DescribeAppGroupRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeAppGroupRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEAPPGROUPREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEAPPGROUPREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEAPPGROUPREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeAppGroupResult.h b/opensearch/include/alibabacloud/opensearch/model/DescribeAppGroupResult.h index 6c848fbda..805e3e6a7 100644 --- a/opensearch/include/alibabacloud/opensearch/model/DescribeAppGroupResult.h +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeAppGroupResult.h @@ -40,6 +40,11 @@ namespace AlibabaCloud int computeResource; std::string spec; }; + struct TagsItem + { + std::string value; + std::string key; + }; int secondRankAlgoDeploymentId; int firstRankAlgoDeploymentId; std::string description; @@ -47,16 +52,17 @@ namespace AlibabaCloud std::string expireOn; std::string currentVersion; int switchedTime; - std::string name; int created; - std::string commodityCode; + std::string name; int hasPendingQuotaReviewTask; + std::string commodityCode; std::string status; int produced; int updated; std::string instanceId; std::string projectId; std::string lockMode; + std::vector tags; int chargingWay; std::string type; Quota quota; diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeAppGroupStatisticsRequest.h b/opensearch/include/alibabacloud/opensearch/model/DescribeAppGroupStatisticsRequest.h new file mode 100644 index 000000000..4daa4043d --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeAppGroupStatisticsRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR 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_DESCRIBEAPPGROUPSTATISTICSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEAPPGROUPSTATISTICSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OpenSearch { +namespace Model { +class ALIBABACLOUD_OPENSEARCH_EXPORT DescribeAppGroupStatisticsRequest : public RoaServiceRequest { +public: + DescribeAppGroupStatisticsRequest(); + ~DescribeAppGroupStatisticsRequest(); + std::string getAppGroupIdentity() const; + void setAppGroupIdentity(const std::string &appGroupIdentity); + +private: + std::string appGroupIdentity_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEAPPGROUPSTATISTICSREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeAppGroupStatisticsResult.h b/opensearch/include/alibabacloud/opensearch/model/DescribeAppGroupStatisticsResult.h new file mode 100644 index 000000000..232adcd28 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeAppGroupStatisticsResult.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_DESCRIBEAPPGROUPSTATISTICSRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEAPPGROUPSTATISTICSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT DescribeAppGroupStatisticsResult : public ServiceResult + { + public: + + + DescribeAppGroupStatisticsResult(); + explicit DescribeAppGroupStatisticsResult(const std::string &payload); + ~DescribeAppGroupStatisticsResult(); + 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_DESCRIBEAPPGROUPSTATISTICSRESULT_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 index 8545942b8..78185ea06 100644 --- a/opensearch/include/alibabacloud/opensearch/model/DescribeAppRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeAppRequest.h @@ -1,51 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEAPPREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEAPPREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEAPPREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeAppResult.h b/opensearch/include/alibabacloud/opensearch/model/DescribeAppResult.h index a3b8d51fb..7bf9067c1 100644 --- a/opensearch/include/alibabacloud/opensearch/model/DescribeAppResult.h +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeAppResult.h @@ -36,8 +36,8 @@ namespace AlibabaCloud { struct Quota { - int docSize; int qps; + int docSize; int computeResource; std::string spec; }; @@ -63,8 +63,8 @@ namespace AlibabaCloud Quota quota; std::vector fetchFields; std::string clusterName; - std::string id; int algoDeploymentId; + std::string id; Domain domain; }; diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeAppStatisticsRequest.h b/opensearch/include/alibabacloud/opensearch/model/DescribeAppStatisticsRequest.h index db1113dfa..403736218 100644 --- a/opensearch/include/alibabacloud/opensearch/model/DescribeAppStatisticsRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeAppStatisticsRequest.h @@ -1,51 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEAPPSTATISTICSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEAPPSTATISTICSREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEAPPSTATISTICSREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeAppsRequest.h b/opensearch/include/alibabacloud/opensearch/model/DescribeAppsRequest.h index 823ae5c18..1ca9d0e55 100644 --- a/opensearch/include/alibabacloud/opensearch/model/DescribeAppsRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeAppsRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEAPPSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEAPPSREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEAPPSREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeDataCollctionRequest.h b/opensearch/include/alibabacloud/opensearch/model/DescribeDataCollctionRequest.h index f151eafea..5cd4edc31 100644 --- a/opensearch/include/alibabacloud/opensearch/model/DescribeDataCollctionRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeDataCollctionRequest.h @@ -1,51 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEDATACOLLCTIONREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEDATACOLLCTIONREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEDATACOLLCTIONREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeDataCollctionResult.h b/opensearch/include/alibabacloud/opensearch/model/DescribeDataCollctionResult.h index 6a340745e..0421a667e 100644 --- a/opensearch/include/alibabacloud/opensearch/model/DescribeDataCollctionResult.h +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeDataCollctionResult.h @@ -41,8 +41,8 @@ namespace AlibabaCloud std::string dataCollectionType; std::string id; std::string industryName; - std::string name; int created; + std::string name; }; diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeFirstRankRequest.h b/opensearch/include/alibabacloud/opensearch/model/DescribeFirstRankRequest.h index f8aed2c25..5c02a9a97 100644 --- a/opensearch/include/alibabacloud/opensearch/model/DescribeFirstRankRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeFirstRankRequest.h @@ -1,54 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEFIRSTRANKREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEFIRSTRANKREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEFIRSTRANKREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeInterventionDictionaryRequest.h b/opensearch/include/alibabacloud/opensearch/model/DescribeInterventionDictionaryRequest.h index 25605be0e..123bb6d04 100644 --- a/opensearch/include/alibabacloud/opensearch/model/DescribeInterventionDictionaryRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeInterventionDictionaryRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEINTERVENTIONDICTIONARYREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEINTERVENTIONDICTIONARYREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEINTERVENTIONDICTIONARYREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeInterventionDictionaryResult.h b/opensearch/include/alibabacloud/opensearch/model/DescribeInterventionDictionaryResult.h index 1fe17a475..1d44eab27 100644 --- a/opensearch/include/alibabacloud/opensearch/model/DescribeInterventionDictionaryResult.h +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeInterventionDictionaryResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud std::string type; std::string updated; std::string analyzer; - std::string name; std::string created; + std::string name; }; diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeModelRequest.h b/opensearch/include/alibabacloud/opensearch/model/DescribeModelRequest.h index 88f4a390f..236423651 100644 --- a/opensearch/include/alibabacloud/opensearch/model/DescribeModelRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeModelRequest.h @@ -1,51 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEMODELREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEMODELREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEMODELREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeQueryProcessorRequest.h b/opensearch/include/alibabacloud/opensearch/model/DescribeQueryProcessorRequest.h index 34f848c47..d6f103fcb 100644 --- a/opensearch/include/alibabacloud/opensearch/model/DescribeQueryProcessorRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeQueryProcessorRequest.h @@ -1,54 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEQUERYPROCESSORREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEQUERYPROCESSORREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEQUERYPROCESSORREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeQueryProcessorResult.h b/opensearch/include/alibabacloud/opensearch/model/DescribeQueryProcessorResult.h index 6e77918a6..e08f3a4ec 100644 --- a/opensearch/include/alibabacloud/opensearch/model/DescribeQueryProcessorResult.h +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeQueryProcessorResult.h @@ -39,8 +39,8 @@ namespace AlibabaCloud std::string domain; std::vector indexes; std::vector processors; - std::string name; int created; + std::string name; }; diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeRegionRequest.h b/opensearch/include/alibabacloud/opensearch/model/DescribeRegionRequest.h index 8d2b6b6e3..ae157a50b 100644 --- a/opensearch/include/alibabacloud/opensearch/model/DescribeRegionRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeRegionRequest.h @@ -1,45 +1,39 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEREGIONREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEREGIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OpenSearch { +namespace Model { +class ALIBABACLOUD_OPENSEARCH_EXPORT DescribeRegionRequest : public RoaServiceRequest { +public: + DescribeRegionRequest(); + ~DescribeRegionRequest(); + +private: +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEREGIONREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeRegionsRequest.h b/opensearch/include/alibabacloud/opensearch/model/DescribeRegionsRequest.h index dd49553ad..cbe7b7266 100644 --- a/opensearch/include/alibabacloud/opensearch/model/DescribeRegionsRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeRegionsRequest.h @@ -1,45 +1,39 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEREGIONSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEREGIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OpenSearch { +namespace Model { +class ALIBABACLOUD_OPENSEARCH_EXPORT DescribeRegionsRequest : public RoaServiceRequest { +public: + DescribeRegionsRequest(); + ~DescribeRegionsRequest(); + +private: +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEREGIONSREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeScheduledTaskRequest.h b/opensearch/include/alibabacloud/opensearch/model/DescribeScheduledTaskRequest.h index e97dfd562..dab1b8c78 100644 --- a/opensearch/include/alibabacloud/opensearch/model/DescribeScheduledTaskRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeScheduledTaskRequest.h @@ -1,51 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBESCHEDULEDTASKREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBESCHEDULEDTASKREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBESCHEDULEDTASKREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeSecondRankRequest.h b/opensearch/include/alibabacloud/opensearch/model/DescribeSecondRankRequest.h index f38070cf0..1c99c9c23 100644 --- a/opensearch/include/alibabacloud/opensearch/model/DescribeSecondRankRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeSecondRankRequest.h @@ -1,54 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBESECONDRANKREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBESECONDRANKREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBESECONDRANKREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeSecondRankResult.h b/opensearch/include/alibabacloud/opensearch/model/DescribeSecondRankResult.h index d1990f61b..f69da5309 100644 --- a/opensearch/include/alibabacloud/opensearch/model/DescribeSecondRankResult.h +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeSecondRankResult.h @@ -41,8 +41,8 @@ namespace AlibabaCloud int updated; std::string isSys; std::string id; - std::string name; int created; + std::string name; }; diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeSlowQueryStatusRequest.h b/opensearch/include/alibabacloud/opensearch/model/DescribeSlowQueryStatusRequest.h index aae6742c9..3c24cd640 100644 --- a/opensearch/include/alibabacloud/opensearch/model/DescribeSlowQueryStatusRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeSlowQueryStatusRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBESLOWQUERYSTATUSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBESLOWQUERYSTATUSREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBESLOWQUERYSTATUSREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/DescribeUserAnalyzerRequest.h b/opensearch/include/alibabacloud/opensearch/model/DescribeUserAnalyzerRequest.h index 6d04b96a7..ade0fa4f3 100644 --- a/opensearch/include/alibabacloud/opensearch/model/DescribeUserAnalyzerRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/DescribeUserAnalyzerRequest.h @@ -1,51 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEUSERANALYZERREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEUSERANALYZERREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DESCRIBEUSERANALYZERREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/DisableSlowQueryRequest.h b/opensearch/include/alibabacloud/opensearch/model/DisableSlowQueryRequest.h index c7673c997..e44130f10 100644 --- a/opensearch/include/alibabacloud/opensearch/model/DisableSlowQueryRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/DisableSlowQueryRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_DISABLESLOWQUERYREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_DISABLESLOWQUERYREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_DISABLESLOWQUERYREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/EnableSlowQueryRequest.h b/opensearch/include/alibabacloud/opensearch/model/EnableSlowQueryRequest.h index da5e5d2f9..96494f593 100644 --- a/opensearch/include/alibabacloud/opensearch/model/EnableSlowQueryRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/EnableSlowQueryRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_ENABLESLOWQUERYREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_ENABLESLOWQUERYREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_ENABLESLOWQUERYREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/GenerateMergedTableRequest.h b/opensearch/include/alibabacloud/opensearch/model/GenerateMergedTableRequest.h index 4a2822a79..97755b469 100644 --- a/opensearch/include/alibabacloud/opensearch/model/GenerateMergedTableRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/GenerateMergedTableRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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_GENERATEMERGEDTABLEREQUEST_H_ -#define ALIBABACLOUD_OPENSEARCH_MODEL_GENERATEMERGEDTABLEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OpenSearch - { - namespace Model - { - class ALIBABACLOUD_OPENSEARCH_EXPORT GenerateMergedTableRequest : public RoaServiceRequest - { - - public: - GenerateMergedTableRequest(); - ~GenerateMergedTableRequest(); - - std::string getSpec()const; - void setSpec(const std::string& spec); - - private: - std::string spec_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_GENERATEMERGEDTABLEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_GENERATEMERGEDTABLEREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_GENERATEMERGEDTABLEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OpenSearch { +namespace Model { +class ALIBABACLOUD_OPENSEARCH_EXPORT GenerateMergedTableRequest : public RoaServiceRequest { +public: + GenerateMergedTableRequest(); + ~GenerateMergedTableRequest(); + std::string getSpec() const; + void setSpec(const std::string &spec); + +private: + std::string spec_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_GENERATEMERGEDTABLEREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/GenerateMergedTableResult.h b/opensearch/include/alibabacloud/opensearch/model/GenerateMergedTableResult.h index 5eee63529..fadc96ad3 100644 --- a/opensearch/include/alibabacloud/opensearch/model/GenerateMergedTableResult.h +++ b/opensearch/include/alibabacloud/opensearch/model/GenerateMergedTableResult.h @@ -35,8 +35,8 @@ namespace AlibabaCloud struct Result { std::string mergeTable; - std::string fromTable; std::string primaryKey; + std::string fromTable; }; diff --git a/opensearch/include/alibabacloud/opensearch/model/GetDomainRequest.h b/opensearch/include/alibabacloud/opensearch/model/GetDomainRequest.h index d87a2e352..15e978590 100644 --- a/opensearch/include/alibabacloud/opensearch/model/GetDomainRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/GetDomainRequest.h @@ -1,51 +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_GETDOMAINREQUEST_H_ -#define ALIBABACLOUD_OPENSEARCH_MODEL_GETDOMAINREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OpenSearch - { - namespace Model - { - class ALIBABACLOUD_OPENSEARCH_EXPORT GetDomainRequest : public RoaServiceRequest - { - - public: - GetDomainRequest(); - ~GetDomainRequest(); - - std::string getDomainName()const; - void setDomainName(const std::string& domainName); - std::string getAppGroupIdentity()const; - void setAppGroupIdentity(const std::string& appGroupIdentity); - - private: - std::string domainName_; - std::string appGroupIdentity_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_GETDOMAINREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_GETDOMAINREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_GETDOMAINREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OpenSearch { +namespace Model { +class ALIBABACLOUD_OPENSEARCH_EXPORT GetDomainRequest : public RoaServiceRequest { +public: + GetDomainRequest(); + ~GetDomainRequest(); + std::string getDomainName() const; + void setDomainName(const std::string &domainName); + std::string getAppGroupIdentity() const; + void setAppGroupIdentity(const std::string &appGroupIdentity); + +private: + std::string domainName_; + std::string appGroupIdentity_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_GETDOMAINREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/GetFunctionCurrentVersionRequest.h b/opensearch/include/alibabacloud/opensearch/model/GetFunctionCurrentVersionRequest.h new file mode 100644 index 000000000..77f0dbec9 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/GetFunctionCurrentVersionRequest.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_GETFUNCTIONCURRENTVERSIONREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_GETFUNCTIONCURRENTVERSIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OpenSearch { +namespace Model { +class ALIBABACLOUD_OPENSEARCH_EXPORT GetFunctionCurrentVersionRequest : public RoaServiceRequest { +public: + GetFunctionCurrentVersionRequest(); + ~GetFunctionCurrentVersionRequest(); + std::string getModelType() const; + void setModelType(const std::string &modelType); + std::string getFunctionName() const; + void setFunctionName(const std::string &functionName); + std::string getDomain() const; + void setDomain(const std::string &domain); + std::string getFunctionType() const; + void setFunctionType(const std::string &functionType); + std::string getCategory() const; + void setCategory(const std::string &category); + +private: + std::string modelType_; + std::string functionName_; + std::string domain_; + std::string functionType_; + std::string category_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_GETFUNCTIONCURRENTVERSIONREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/GetFunctionCurrentVersionResult.h b/opensearch/include/alibabacloud/opensearch/model/GetFunctionCurrentVersionResult.h new file mode 100644 index 000000000..cb7e96112 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/GetFunctionCurrentVersionResult.h @@ -0,0 +1,92 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR 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_GETFUNCTIONCURRENTVERSIONRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_GETFUNCTIONCURRENTVERSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT GetFunctionCurrentVersionResult : public ServiceResult + { + public: + struct Result + { + struct VersionConfig + { + struct CreateParametersItem + { + std::string required; + std::string name; + }; + struct DependsItem + { + std::string condition; + std::string description; + std::string dependency; + }; + struct UsageParametersItem + { + std::string required; + std::string name; + }; + std::vector usageParameters; + std::vector depends; + std::vector createParameters; + }; + long versionId; + std::string functionName; + std::string functionType; + std::string modelType; + std::string versionName; + VersionConfig versionConfig; + }; + + + GetFunctionCurrentVersionResult(); + explicit GetFunctionCurrentVersionResult(const std::string &payload); + ~GetFunctionCurrentVersionResult(); + std::string getStatus()const; + long getHttpCode()const; + std::string getMessage()const; + std::string getCode()const; + Result getResult()const; + long getLatency()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + long httpCode_; + std::string message_; + std::string code_; + Result result_; + long latency_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_GETFUNCTIONCURRENTVERSIONRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/GetFunctionDefaultInstanceRequest.h b/opensearch/include/alibabacloud/opensearch/model/GetFunctionDefaultInstanceRequest.h new file mode 100644 index 000000000..4f4acad6d --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/GetFunctionDefaultInstanceRequest.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_GETFUNCTIONDEFAULTINSTANCEREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_GETFUNCTIONDEFAULTINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OpenSearch { +namespace Model { +class ALIBABACLOUD_OPENSEARCH_EXPORT GetFunctionDefaultInstanceRequest : public RoaServiceRequest { +public: + GetFunctionDefaultInstanceRequest(); + ~GetFunctionDefaultInstanceRequest(); + std::string getFunctionName() const; + void setFunctionName(const std::string &functionName); + std::string getAppGroupIdentity() const; + void setAppGroupIdentity(const std::string &appGroupIdentity); + +private: + std::string functionName_; + std::string appGroupIdentity_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_GETFUNCTIONDEFAULTINSTANCEREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/GetFunctionDefaultInstanceResult.h b/opensearch/include/alibabacloud/opensearch/model/GetFunctionDefaultInstanceResult.h new file mode 100644 index 000000000..075b23d50 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/GetFunctionDefaultInstanceResult.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_GETFUNCTIONDEFAULTINSTANCERESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_GETFUNCTIONDEFAULTINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT GetFunctionDefaultInstanceResult : public ServiceResult + { + public: + struct Result + { + std::string instanceName; + }; + + + GetFunctionDefaultInstanceResult(); + explicit GetFunctionDefaultInstanceResult(const std::string &payload); + ~GetFunctionDefaultInstanceResult(); + std::string getStatus()const; + std::string getInstanceName()const; + long getHttpCode()const; + std::string getFunctionName()const; + std::string getMessage()const; + std::string getCode()const; + Result getResult()const; + long getLatency()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string instanceName_; + long httpCode_; + std::string functionName_; + std::string message_; + std::string code_; + Result result_; + long latency_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_GETFUNCTIONDEFAULTINSTANCERESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/GetFunctionInstanceRequest.h b/opensearch/include/alibabacloud/opensearch/model/GetFunctionInstanceRequest.h new file mode 100644 index 000000000..6a9aa9649 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/GetFunctionInstanceRequest.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_GETFUNCTIONINSTANCEREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_GETFUNCTIONINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OpenSearch { +namespace Model { +class ALIBABACLOUD_OPENSEARCH_EXPORT GetFunctionInstanceRequest : public RoaServiceRequest { +public: + GetFunctionInstanceRequest(); + ~GetFunctionInstanceRequest(); + std::string getOutput() const; + void setOutput(const std::string &output); + std::string getInstanceName() const; + void setInstanceName(const std::string &instanceName); + std::string getFunctionName() const; + void setFunctionName(const std::string &functionName); + std::string getAppGroupIdentity() const; + void setAppGroupIdentity(const std::string &appGroupIdentity); + +private: + std::string output_; + std::string instanceName_; + std::string functionName_; + std::string appGroupIdentity_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_GETFUNCTIONINSTANCEREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/GetFunctionInstanceResult.h b/opensearch/include/alibabacloud/opensearch/model/GetFunctionInstanceResult.h new file mode 100644 index 000000000..5c31ae2c7 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/GetFunctionInstanceResult.h @@ -0,0 +1,100 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR 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_GETFUNCTIONINSTANCERESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_GETFUNCTIONINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT GetFunctionInstanceResult : public ServiceResult + { + public: + struct Result + { + struct Belongs + { + std::string category; + std::string language; + std::string domain; + }; + struct Task + { + std::string dagStatus; + long lastRunTime; + }; + struct CreateParametersItem + { + std::string value; + std::string name; + }; + struct UsageParametersItem + { + std::string value; + std::string name; + }; + std::string status; + long versionId; + Task task; + std::string description; + long createTime; + std::string functionType; + std::vector createParameters; + Belongs belongs; + std::string cron; + std::string source; + std::string instanceName; + std::string functionName; + std::vector usageParameters; + std::string modelType; + std::string extendInfo; + }; + + + GetFunctionInstanceResult(); + explicit GetFunctionInstanceResult(const std::string &payload); + ~GetFunctionInstanceResult(); + std::string getStatus()const; + long getHttpCode()const; + std::string getMessage()const; + std::string getCode()const; + Result getResult()const; + long getLatency()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + long httpCode_; + std::string message_; + std::string code_; + Result result_; + long latency_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_GETFUNCTIONINSTANCERESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/GetFunctionTaskRequest.h b/opensearch/include/alibabacloud/opensearch/model/GetFunctionTaskRequest.h new file mode 100644 index 000000000..0d442b248 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/GetFunctionTaskRequest.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_GETFUNCTIONTASKREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_GETFUNCTIONTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OpenSearch { +namespace Model { +class ALIBABACLOUD_OPENSEARCH_EXPORT GetFunctionTaskRequest : public RoaServiceRequest { +public: + GetFunctionTaskRequest(); + ~GetFunctionTaskRequest(); + std::string getGeneration() const; + void setGeneration(const std::string &generation); + std::string getInstanceName() const; + void setInstanceName(const std::string &instanceName); + std::string getFunctionName() const; + void setFunctionName(const std::string &functionName); + std::string getAppGroupIdentity() const; + void setAppGroupIdentity(const std::string &appGroupIdentity); + +private: + std::string generation_; + std::string instanceName_; + std::string functionName_; + std::string appGroupIdentity_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_GETFUNCTIONTASKREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/GetFunctionTaskResult.h b/opensearch/include/alibabacloud/opensearch/model/GetFunctionTaskResult.h new file mode 100644 index 000000000..cb9f0c15d --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/GetFunctionTaskResult.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_GETFUNCTIONTASKRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_GETFUNCTIONTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT GetFunctionTaskResult : public ServiceResult + { + public: + struct Result + { + std::string status; + std::string functionName; + std::string generation; + long progress; + long endTime; + long startTime; + std::string runId; + std::string extendInfo; + }; + + + GetFunctionTaskResult(); + explicit GetFunctionTaskResult(const std::string &payload); + ~GetFunctionTaskResult(); + std::string getStatus()const; + long getHttpCode()const; + std::string getMessage()const; + std::string getCode()const; + Result getResult()const; + long getLatency()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + long httpCode_; + std::string message_; + std::string code_; + Result result_; + long latency_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_GETFUNCTIONTASKRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/GetFunctionVersionRequest.h b/opensearch/include/alibabacloud/opensearch/model/GetFunctionVersionRequest.h new file mode 100644 index 000000000..cdffca0cf --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/GetFunctionVersionRequest.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_GETFUNCTIONVERSIONREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_GETFUNCTIONVERSIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OpenSearch { +namespace Model { +class ALIBABACLOUD_OPENSEARCH_EXPORT GetFunctionVersionRequest : public RoaServiceRequest { +public: + GetFunctionVersionRequest(); + ~GetFunctionVersionRequest(); + int getVersionId() const; + void setVersionId(int versionId); + std::string getFunctionName() const; + void setFunctionName(const std::string &functionName); + +private: + int versionId_; + std::string functionName_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_GETFUNCTIONVERSIONREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/GetFunctionVersionResult.h b/opensearch/include/alibabacloud/opensearch/model/GetFunctionVersionResult.h new file mode 100644 index 000000000..7d28951d4 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/GetFunctionVersionResult.h @@ -0,0 +1,92 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR 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_GETFUNCTIONVERSIONRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_GETFUNCTIONVERSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT GetFunctionVersionResult : public ServiceResult + { + public: + struct Result + { + struct VersionConfig + { + struct CreateParametersItem + { + std::string required; + std::string name; + }; + struct DependsItem + { + std::string condition; + std::string description; + std::string dependency; + }; + struct UsageParametersItem + { + std::string required; + std::string name; + }; + std::vector usageParameters; + std::vector depends; + std::vector createParameters; + }; + long versionId; + std::string functionName; + std::string functionType; + std::string modelType; + std::string versionName; + VersionConfig versionConfig; + }; + + + GetFunctionVersionResult(); + explicit GetFunctionVersionResult(const std::string &payload); + ~GetFunctionVersionResult(); + std::string getStatus()const; + long getHttpCode()const; + std::string getMessage()const; + std::string getCode()const; + Result getResult()const; + long getLatency()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + long httpCode_; + std::string message_; + std::string code_; + Result result_; + long latency_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_GETFUNCTIONVERSIONRESULT_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 index 42348df6a..6cc310a75 100644 --- a/opensearch/include/alibabacloud/opensearch/model/GetModelProgressRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/GetModelProgressRequest.h @@ -1,51 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_GETMODELPROGRESSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_GETMODELPROGRESSREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_GETMODELPROGRESSREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/GetModelReportRequest.h b/opensearch/include/alibabacloud/opensearch/model/GetModelReportRequest.h index 82a0f3b85..cf368d686 100644 --- a/opensearch/include/alibabacloud/opensearch/model/GetModelReportRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/GetModelReportRequest.h @@ -1,51 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_GETMODELREPORTREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_GETMODELREPORTREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_GETMODELREPORTREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/GetScriptFileNamesRequest.h b/opensearch/include/alibabacloud/opensearch/model/GetScriptFileNamesRequest.h index 1192e201e..74c3916b6 100644 --- a/opensearch/include/alibabacloud/opensearch/model/GetScriptFileNamesRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/GetScriptFileNamesRequest.h @@ -1,54 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_GETSCRIPTFILENAMESREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_GETSCRIPTFILENAMESREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_GETSCRIPTFILENAMESREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/GetScriptFileNamesResult.h b/opensearch/include/alibabacloud/opensearch/model/GetScriptFileNamesResult.h index 29c0974bd..632fadef3 100644 --- a/opensearch/include/alibabacloud/opensearch/model/GetScriptFileNamesResult.h +++ b/opensearch/include/alibabacloud/opensearch/model/GetScriptFileNamesResult.h @@ -35,8 +35,9 @@ namespace AlibabaCloud struct FileInfos { std::string modifyTime; - std::string fileName; std::string createTime; + std::string fileName; + std::string pathName; }; diff --git a/opensearch/include/alibabacloud/opensearch/model/GetSearchStrategyRequest.h b/opensearch/include/alibabacloud/opensearch/model/GetSearchStrategyRequest.h new file mode 100644 index 000000000..3c381b92c --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/GetSearchStrategyRequest.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_GETSEARCHSTRATEGYREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_GETSEARCHSTRATEGYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OpenSearch { +namespace Model { +class ALIBABACLOUD_OPENSEARCH_EXPORT GetSearchStrategyRequest : public RoaServiceRequest { +public: + GetSearchStrategyRequest(); + ~GetSearchStrategyRequest(); + std::string getStrategyName() const; + void setStrategyName(const std::string &strategyName); + std::string getAppId() const; + void setAppId(const std::string &appId); + std::string getAppGroupIdentity() const; + void setAppGroupIdentity(const std::string &appGroupIdentity); + +private: + std::string strategyName_; + std::string appId_; + std::string appGroupIdentity_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_GETSEARCHSTRATEGYREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/GetSearchStrategyResult.h b/opensearch/include/alibabacloud/opensearch/model/GetSearchStrategyResult.h new file mode 100644 index 000000000..63ca688b5 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/GetSearchStrategyResult.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_GETSEARCHSTRATEGYRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_GETSEARCHSTRATEGYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT GetSearchStrategyResult : public ServiceResult + { + public: + + + GetSearchStrategyResult(); + explicit GetSearchStrategyResult(const std::string &payload); + ~GetSearchStrategyResult(); + std::string getRequestId()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_GETSEARCHSTRATEGYRESULT_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 index 69e3cb5ad..743be8da0 100644 --- a/opensearch/include/alibabacloud/opensearch/model/GetSortScriptFileRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/GetSortScriptFileRequest.h @@ -1,57 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_GETSORTSCRIPTFILEREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_GETSORTSCRIPTFILEREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_GETSORTSCRIPTFILEREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/GetSortScriptRequest.h b/opensearch/include/alibabacloud/opensearch/model/GetSortScriptRequest.h index e03711e19..65ff20229 100644 --- a/opensearch/include/alibabacloud/opensearch/model/GetSortScriptRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/GetSortScriptRequest.h @@ -1,54 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_GETSORTSCRIPTREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_GETSORTSCRIPTREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_GETSORTSCRIPTREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/GetValidationErrorRequest.h b/opensearch/include/alibabacloud/opensearch/model/GetValidationErrorRequest.h index 79ed43c79..485999545 100644 --- a/opensearch/include/alibabacloud/opensearch/model/GetValidationErrorRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/GetValidationErrorRequest.h @@ -1,51 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_GETVALIDATIONERRORREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_GETVALIDATIONERRORREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_GETVALIDATIONERRORREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/GetValidationReportRequest.h b/opensearch/include/alibabacloud/opensearch/model/GetValidationReportRequest.h index 721397afa..d8dc1c453 100644 --- a/opensearch/include/alibabacloud/opensearch/model/GetValidationReportRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/GetValidationReportRequest.h @@ -1,51 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_GETVALIDATIONREPORTREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_GETVALIDATIONREPORTREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_GETVALIDATIONREPORTREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/ListABTestExperimentsRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListABTestExperimentsRequest.h index dca9ab694..f45791d89 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ListABTestExperimentsRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/ListABTestExperimentsRequest.h @@ -1,54 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTABTESTEXPERIMENTSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTABTESTEXPERIMENTSREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTABTESTEXPERIMENTSREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/ListABTestExperimentsResult.h b/opensearch/include/alibabacloud/opensearch/model/ListABTestExperimentsResult.h index 3fc5e82f4..83ff7a4cb 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ListABTestExperimentsResult.h +++ b/opensearch/include/alibabacloud/opensearch/model/ListABTestExperimentsResult.h @@ -39,8 +39,8 @@ namespace AlibabaCloud std::string params; std::string id; bool online; - std::string name; int created; + std::string name; }; diff --git a/opensearch/include/alibabacloud/opensearch/model/ListABTestFixedFlowDividersRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListABTestFixedFlowDividersRequest.h index 4633b08f4..84ceac3e9 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ListABTestFixedFlowDividersRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/ListABTestFixedFlowDividersRequest.h @@ -1,57 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTABTESTFIXEDFLOWDIVIDERSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTABTESTFIXEDFLOWDIVIDERSREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTABTESTFIXEDFLOWDIVIDERSREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/ListABTestGroupsRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListABTestGroupsRequest.h index f8ab71c54..28e5699f4 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ListABTestGroupsRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/ListABTestGroupsRequest.h @@ -1,51 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTABTESTGROUPSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTABTESTGROUPSREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTABTESTGROUPSREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/ListABTestGroupsResult.h b/opensearch/include/alibabacloud/opensearch/model/ListABTestGroupsResult.h index f45893cb1..fe3c10d63 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ListABTestGroupsResult.h +++ b/opensearch/include/alibabacloud/opensearch/model/ListABTestGroupsResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud int status; int updated; std::string id; - std::string name; int created; + std::string name; }; diff --git a/opensearch/include/alibabacloud/opensearch/model/ListABTestMetricsRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListABTestMetricsRequest.h index 2bb2cbeb6..7356aab7b 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ListABTestMetricsRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/ListABTestMetricsRequest.h @@ -1,54 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTABTESTMETRICSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTABTESTMETRICSREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTABTESTMETRICSREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/ListABTestScenesRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListABTestScenesRequest.h index 7d9f18f77..28f247fd7 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ListABTestScenesRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/ListABTestScenesRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTABTESTSCENESREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTABTESTSCENESREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTABTESTSCENESREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/ListABTestScenesResult.h b/opensearch/include/alibabacloud/opensearch/model/ListABTestScenesResult.h index f76b03a7f..4366babf2 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ListABTestScenesResult.h +++ b/opensearch/include/alibabacloud/opensearch/model/ListABTestScenesResult.h @@ -38,8 +38,8 @@ namespace AlibabaCloud int updated; std::vector values; std::string id; - std::string name; int created; + std::string name; }; diff --git a/opensearch/include/alibabacloud/opensearch/model/ListAppGroupErrorsRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListAppGroupErrorsRequest.h index eae570732..6d4e77b1d 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ListAppGroupErrorsRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/ListAppGroupErrorsRequest.h @@ -1,63 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTAPPGROUPERRORSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTAPPGROUPERRORSREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTAPPGROUPERRORSREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/ListAppGroupMetricsRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListAppGroupMetricsRequest.h index 98d4e5307..c3360fd67 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ListAppGroupMetricsRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/ListAppGroupMetricsRequest.h @@ -1,60 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTAPPGROUPMETRICSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTAPPGROUPMETRICSREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTAPPGROUPMETRICSREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/ListAppGroupsRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListAppGroupsRequest.h index e106fc89b..fabb2587b 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ListAppGroupsRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/ListAppGroupsRequest.h @@ -1,66 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTAPPGROUPSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTAPPGROUPSREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTAPPGROUPSREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/ListAppGroupsResult.h b/opensearch/include/alibabacloud/opensearch/model/ListAppGroupsResult.h index a79ae6a76..f7b870688 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ListAppGroupsResult.h +++ b/opensearch/include/alibabacloud/opensearch/model/ListAppGroupsResult.h @@ -40,6 +40,11 @@ namespace AlibabaCloud int computeResource; std::string spec; }; + struct TagsItem + { + std::string value; + std::string key; + }; int secondRankAlgoDeploymentId; int firstRankAlgoDeploymentId; std::string description; @@ -47,16 +52,17 @@ namespace AlibabaCloud std::string expireOn; std::string currentVersion; int switchedTime; - std::string name; int created; - std::string commodityCode; + std::string name; int hasPendingQuotaReviewTask; + std::string commodityCode; std::string status; int produced; int updated; std::string instanceId; std::string projectId; std::string lockMode; + std::vector tags; int chargingWay; std::string type; Quota quota; diff --git a/opensearch/include/alibabacloud/opensearch/model/ListAppsRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListAppsRequest.h index 67f0106da..58030ad93 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ListAppsRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/ListAppsRequest.h @@ -1,54 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTAPPSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTAPPSREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTAPPSREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/ListDataCollectionsRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListDataCollectionsRequest.h index 51c4b054c..b2c8820d3 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ListDataCollectionsRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/ListDataCollectionsRequest.h @@ -1,54 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTDATACOLLECTIONSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTDATACOLLECTIONSREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTDATACOLLECTIONSREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/ListDataCollectionsResult.h b/opensearch/include/alibabacloud/opensearch/model/ListDataCollectionsResult.h index 3ee0dc57a..d3b1d0fdd 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ListDataCollectionsResult.h +++ b/opensearch/include/alibabacloud/opensearch/model/ListDataCollectionsResult.h @@ -41,8 +41,8 @@ namespace AlibabaCloud std::string dataCollectionType; std::string id; std::string industryName; - std::string name; int created; + std::string name; }; diff --git a/opensearch/include/alibabacloud/opensearch/model/ListDataSourceTableFieldsRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListDataSourceTableFieldsRequest.h index 25546a887..1a3f235e3 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ListDataSourceTableFieldsRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/ListDataSourceTableFieldsRequest.h @@ -1,51 +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_LISTDATASOURCETABLEFIELDSREQUEST_H_ -#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTDATASOURCETABLEFIELDSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OpenSearch - { - namespace Model - { - class ALIBABACLOUD_OPENSEARCH_EXPORT ListDataSourceTableFieldsRequest : public RoaServiceRequest - { - - public: - ListDataSourceTableFieldsRequest(); - ~ListDataSourceTableFieldsRequest(); - - std::string getDataSourceType()const; - void setDataSourceType(const std::string& dataSourceType); - std::string getParams()const; - void setParams(const std::string& params); - - private: - std::string dataSourceType_; - std::string params_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTDATASOURCETABLEFIELDSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTDATASOURCETABLEFIELDSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTDATASOURCETABLEFIELDSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OpenSearch { +namespace Model { +class ALIBABACLOUD_OPENSEARCH_EXPORT ListDataSourceTableFieldsRequest : public RoaServiceRequest { +public: + ListDataSourceTableFieldsRequest(); + ~ListDataSourceTableFieldsRequest(); + std::string getDataSourceType() const; + void setDataSourceType(const std::string &dataSourceType); + std::string getParams() const; + void setParams(const std::string ¶ms); + +private: + std::string dataSourceType_; + std::string params_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTDATASOURCETABLEFIELDSREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/ListDataSourceTablesRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListDataSourceTablesRequest.h index 62c634c67..c13a4f032 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ListDataSourceTablesRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/ListDataSourceTablesRequest.h @@ -1,51 +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_LISTDATASOURCETABLESREQUEST_H_ -#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTDATASOURCETABLESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OpenSearch - { - namespace Model - { - class ALIBABACLOUD_OPENSEARCH_EXPORT ListDataSourceTablesRequest : public RoaServiceRequest - { - - public: - ListDataSourceTablesRequest(); - ~ListDataSourceTablesRequest(); - - std::string getDataSourceType()const; - void setDataSourceType(const std::string& dataSourceType); - std::string getParams()const; - void setParams(const std::string& params); - - private: - std::string dataSourceType_; - std::string params_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTDATASOURCETABLESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTDATASOURCETABLESREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTDATASOURCETABLESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OpenSearch { +namespace Model { +class ALIBABACLOUD_OPENSEARCH_EXPORT ListDataSourceTablesRequest : public RoaServiceRequest { +public: + ListDataSourceTablesRequest(); + ~ListDataSourceTablesRequest(); + std::string getDataSourceType() const; + void setDataSourceType(const std::string &dataSourceType); + std::string getParams() const; + void setParams(const std::string ¶ms); + +private: + std::string dataSourceType_; + std::string params_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTDATASOURCETABLESREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/ListDeployedAlgorithmModelsRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListDeployedAlgorithmModelsRequest.h index 0fc0e4477..9b5aaebdb 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ListDeployedAlgorithmModelsRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/ListDeployedAlgorithmModelsRequest.h @@ -1,54 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTDEPLOYEDALGORITHMMODELSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTDEPLOYEDALGORITHMMODELSREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTDEPLOYEDALGORITHMMODELSREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/ListFirstRanksRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListFirstRanksRequest.h index d0a55c056..3bf889bed 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ListFirstRanksRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/ListFirstRanksRequest.h @@ -1,51 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTFIRSTRANKSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTFIRSTRANKSREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTFIRSTRANKSREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/ListFirstRanksResult.h b/opensearch/include/alibabacloud/opensearch/model/ListFirstRanksResult.h index 8840d8af8..b898fb119 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ListFirstRanksResult.h +++ b/opensearch/include/alibabacloud/opensearch/model/ListFirstRanksResult.h @@ -44,8 +44,8 @@ namespace AlibabaCloud std::string description; int updated; std::vector meta; - std::string name; int created; + std::string name; }; diff --git a/opensearch/include/alibabacloud/opensearch/model/ListFunctionInstancesRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListFunctionInstancesRequest.h new file mode 100644 index 000000000..d3c681ed4 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListFunctionInstancesRequest.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_LISTFUNCTIONINSTANCESREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTFUNCTIONINSTANCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OpenSearch { +namespace Model { +class ALIBABACLOUD_OPENSEARCH_EXPORT ListFunctionInstancesRequest : public RoaServiceRequest { +public: + ListFunctionInstancesRequest(); + ~ListFunctionInstancesRequest(); + std::string getOutput() const; + void setOutput(const std::string &output); + std::string getModelType() const; + void setModelType(const std::string &modelType); + std::string getFunctionName() const; + void setFunctionName(const std::string &functionName); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getFunctionType() const; + void setFunctionType(const std::string &functionType); + std::string getSource() const; + void setSource(const std::string &source); + std::string getAppGroupIdentity() const; + void setAppGroupIdentity(const std::string &appGroupIdentity); + int getPageNumber() const; + void setPageNumber(int pageNumber); + +private: + std::string output_; + std::string modelType_; + std::string functionName_; + int pageSize_; + std::string functionType_; + std::string source_; + std::string appGroupIdentity_; + int pageNumber_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTFUNCTIONINSTANCESREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/ListFunctionInstancesResult.h b/opensearch/include/alibabacloud/opensearch/model/ListFunctionInstancesResult.h new file mode 100644 index 000000000..500942b22 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListFunctionInstancesResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTFUNCTIONINSTANCESRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTFUNCTIONINSTANCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListFunctionInstancesResult : public ServiceResult + { + public: + struct ResultItem + { + struct Belongs + { + std::string category; + std::string language; + std::string domain; + }; + struct CreateParametersItem + { + std::string value; + std::string name; + }; + struct UsageParametersItem + { + std::string value; + std::string name; + }; + std::string status; + long versionId; + std::string description; + long createTime; + std::string functionType; + std::vector createParameters; + Belongs belongs; + std::string cron; + std::string source; + std::string instanceName; + std::string functionName; + std::vector usageParameters; + std::string modelType; + std::string extendInfo; + }; + + + ListFunctionInstancesResult(); + explicit ListFunctionInstancesResult(const std::string &payload); + ~ListFunctionInstancesResult(); + std::string getStatus()const; + long getHttpCode()const; + long getTotalCount()const; + std::string getMessage()const; + std::string getCode()const; + std::vector getResult()const; + long getLatency()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + long httpCode_; + long totalCount_; + std::string message_; + std::string code_; + std::vector result_; + long latency_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTFUNCTIONINSTANCESRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListFunctionTasksRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListFunctionTasksRequest.h new file mode 100644 index 000000000..cc7eada03 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListFunctionTasksRequest.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_LISTFUNCTIONTASKSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTFUNCTIONTASKSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OpenSearch { +namespace Model { +class ALIBABACLOUD_OPENSEARCH_EXPORT ListFunctionTasksRequest : public RoaServiceRequest { +public: + ListFunctionTasksRequest(); + ~ListFunctionTasksRequest(); + std::string getInstanceName() const; + void setInstanceName(const std::string &instanceName); + std::string getFunctionName() const; + void setFunctionName(const std::string &functionName); + int getPageSize() const; + void setPageSize(int pageSize); + long getEndTime() const; + void setEndTime(long endTime); + long getStartTime() const; + void setStartTime(long startTime); + std::string getAppGroupIdentity() const; + void setAppGroupIdentity(const std::string &appGroupIdentity); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + std::string instanceName_; + std::string functionName_; + int pageSize_; + long endTime_; + long startTime_; + std::string appGroupIdentity_; + int pageNumber_; + std::string status_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTFUNCTIONTASKSREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/ListFunctionTasksResult.h b/opensearch/include/alibabacloud/opensearch/model/ListFunctionTasksResult.h new file mode 100644 index 000000000..64a46f65b --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListFunctionTasksResult.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_LISTFUNCTIONTASKSRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTFUNCTIONTASKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListFunctionTasksResult : public ServiceResult + { + public: + struct ResultItem + { + std::string status; + std::string functionName; + long progress; + std::string generation; + long endTime; + long startTime; + std::string runId; + std::string extendInfo; + }; + + + ListFunctionTasksResult(); + explicit ListFunctionTasksResult(const std::string &payload); + ~ListFunctionTasksResult(); + std::string getStatus()const; + long getHttpCode()const; + long getTotalCount()const; + std::string getMessage()const; + std::string getCode()const; + std::vector getResult()const; + long getLatency()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + long httpCode_; + long totalCount_; + std::string message_; + std::string code_; + std::vector result_; + long latency_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTFUNCTIONTASKSRESULT_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 index 032f5d814..ae807a94c 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionariesRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionariesRequest.h @@ -1,54 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTINTERVENTIONDICTIONARIESREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTINTERVENTIONDICTIONARIESREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTINTERVENTIONDICTIONARIESREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionariesResult.h b/opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionariesResult.h index cfb32342a..37e4cddbd 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionariesResult.h +++ b/opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionariesResult.h @@ -38,8 +38,8 @@ namespace AlibabaCloud int updated; int id; std::string analyzer; - std::string name; int created; + std::string name; }; diff --git a/opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionaryEntriesRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionaryEntriesRequest.h index 5f582a11a..fc8da6317 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionaryEntriesRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionaryEntriesRequest.h @@ -1,57 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTINTERVENTIONDICTIONARYENTRIESREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTINTERVENTIONDICTIONARYENTRIESREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTINTERVENTIONDICTIONARYENTRIESREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionaryEntriesResult.h b/opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionaryEntriesResult.h index f0778d01e..86c27b83c 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionaryEntriesResult.h +++ b/opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionaryEntriesResult.h @@ -41,8 +41,8 @@ namespace AlibabaCloud std::string token; std::string tag; }; - std::string status; std::string relevance; + std::string status; std::string word; long updated; std::vector tokens; diff --git a/opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionaryNerResultsRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionaryNerResultsRequest.h index c3e3518e9..f433b88ca 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionaryNerResultsRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionaryNerResultsRequest.h @@ -1,51 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTINTERVENTIONDICTIONARYNERRESULTSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTINTERVENTIONDICTIONARYNERRESULTSREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTINTERVENTIONDICTIONARYNERRESULTSREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionaryRelatedEntitiesRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionaryRelatedEntitiesRequest.h index 85ca4b700..610a42719 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionaryRelatedEntitiesRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/ListInterventionDictionaryRelatedEntitiesRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTINTERVENTIONDICTIONARYRELATEDENTITIESREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTINTERVENTIONDICTIONARYRELATEDENTITIESREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTINTERVENTIONDICTIONARYRELATEDENTITIESREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/ListModelsRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListModelsRequest.h index f01f4a081..def67661d 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ListModelsRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/ListModelsRequest.h @@ -1,57 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTMODELSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTMODELSREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTMODELSREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/ListProceedingsRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListProceedingsRequest.h new file mode 100644 index 000000000..167027d74 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListProceedingsRequest.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_LISTPROCEEDINGSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTPROCEEDINGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OpenSearch { +namespace Model { +class ALIBABACLOUD_OPENSEARCH_EXPORT ListProceedingsRequest : public RoaServiceRequest { +public: + ListProceedingsRequest(); + ~ListProceedingsRequest(); + bool getFilterFinished() const; + void setFilterFinished(bool filterFinished); + std::string getAppGroupIdentity() const; + void setAppGroupIdentity(const std::string &appGroupIdentity); + +private: + bool filterFinished_; + std::string appGroupIdentity_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTPROCEEDINGSREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/ListProceedingsResult.h b/opensearch/include/alibabacloud/opensearch/model/ListProceedingsResult.h new file mode 100644 index 000000000..fc8fdeb87 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListProceedingsResult.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_LISTPROCEEDINGSRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTPROCEEDINGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListProceedingsResult : public ServiceResult + { + public: + + + ListProceedingsResult(); + explicit ListProceedingsResult(const std::string &payload); + ~ListProceedingsResult(); + std::string getRequestId()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTPROCEEDINGSRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/ListQueryProcessorAnalyzerResultsRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListQueryProcessorAnalyzerResultsRequest.h new file mode 100644 index 000000000..3a49bed8c --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListQueryProcessorAnalyzerResultsRequest.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_LISTQUERYPROCESSORANALYZERRESULTSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTQUERYPROCESSORANALYZERRESULTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OpenSearch { +namespace Model { +class ALIBABACLOUD_OPENSEARCH_EXPORT ListQueryProcessorAnalyzerResultsRequest : public RoaServiceRequest { +public: + ListQueryProcessorAnalyzerResultsRequest(); + ~ListQueryProcessorAnalyzerResultsRequest(); + std::string getAppId() const; + void setAppId(const std::string &appId); + std::string getName() const; + void setName(const std::string &name); + std::string getText() const; + void setText(const std::string &text); + std::string getAppGroupIdentity() const; + void setAppGroupIdentity(const std::string &appGroupIdentity); + +private: + std::string appId_; + std::string name_; + std::string text_; + std::string appGroupIdentity_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTQUERYPROCESSORANALYZERRESULTSREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/ListQueryProcessorAnalyzerResultsResult.h b/opensearch/include/alibabacloud/opensearch/model/ListQueryProcessorAnalyzerResultsResult.h new file mode 100644 index 000000000..9572bc5de --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListQueryProcessorAnalyzerResultsResult.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_LISTQUERYPROCESSORANALYZERRESULTSRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTQUERYPROCESSORANALYZERRESULTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListQueryProcessorAnalyzerResultsResult : public ServiceResult + { + public: + + + ListQueryProcessorAnalyzerResultsResult(); + explicit ListQueryProcessorAnalyzerResultsResult(const std::string &payload); + ~ListQueryProcessorAnalyzerResultsResult(); + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTQUERYPROCESSORANALYZERRESULTSRESULT_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 index 437c75b98..a307f2543 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ListQueryProcessorNersRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/ListQueryProcessorNersRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTQUERYPROCESSORNERSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTQUERYPROCESSORNERSREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTQUERYPROCESSORNERSREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/ListQueryProcessorsRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListQueryProcessorsRequest.h index f5548aa0b..a37edfc7a 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ListQueryProcessorsRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/ListQueryProcessorsRequest.h @@ -1,54 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTQUERYPROCESSORSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTQUERYPROCESSORSREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTQUERYPROCESSORSREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/ListQueryProcessorsResult.h b/opensearch/include/alibabacloud/opensearch/model/ListQueryProcessorsResult.h index 8479e52bd..133d44299 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ListQueryProcessorsResult.h +++ b/opensearch/include/alibabacloud/opensearch/model/ListQueryProcessorsResult.h @@ -39,8 +39,8 @@ namespace AlibabaCloud std::string domain; std::vector indexes; std::vector processors; - std::string name; int created; + std::string name; }; diff --git a/opensearch/include/alibabacloud/opensearch/model/ListQuotaReviewTasksRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListQuotaReviewTasksRequest.h index c7192a7d5..92c3b795d 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ListQuotaReviewTasksRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/ListQuotaReviewTasksRequest.h @@ -1,54 +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_LISTQUOTAREVIEWTASKSREQUEST_H_ -#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTQUOTAREVIEWTASKSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OpenSearch - { - namespace Model - { - class ALIBABACLOUD_OPENSEARCH_EXPORT ListQuotaReviewTasksRequest : public RoaServiceRequest - { - - public: - ListQuotaReviewTasksRequest(); - ~ListQuotaReviewTasksRequest(); - - 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_LISTQUOTAREVIEWTASKSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTQUOTAREVIEWTASKSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTQUOTAREVIEWTASKSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OpenSearch { +namespace Model { +class ALIBABACLOUD_OPENSEARCH_EXPORT ListQuotaReviewTasksRequest : public RoaServiceRequest { +public: + ListQuotaReviewTasksRequest(); + ~ListQuotaReviewTasksRequest(); + 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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTQUOTAREVIEWTASKSREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/ListQuotaReviewTasksResult.h b/opensearch/include/alibabacloud/opensearch/model/ListQuotaReviewTasksResult.h index a27d03ebe..24ad9fb5a 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ListQuotaReviewTasksResult.h +++ b/opensearch/include/alibabacloud/opensearch/model/ListQuotaReviewTasksResult.h @@ -36,9 +36,9 @@ namespace AlibabaCloud { std::string appGroupType; std::string oldSpec; - std::string newSpec; bool approved; std::string gmtModified; + std::string newSpec; int oldComputeResource; std::string gmtCreate; int newComputeResource; @@ -48,8 +48,8 @@ namespace AlibabaCloud int id; std::string appGroupName; int newSocSize; - std::string memo; bool pending; + std::string memo; }; diff --git a/opensearch/include/alibabacloud/opensearch/model/ListRamRolesRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListRamRolesRequest.h index 043370a46..6b7feed01 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ListRamRolesRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/ListRamRolesRequest.h @@ -1,45 +1,39 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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_LISTRAMROLESREQUEST_H_ -#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTRAMROLESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OpenSearch - { - namespace Model - { - class ALIBABACLOUD_OPENSEARCH_EXPORT ListRamRolesRequest : public RoaServiceRequest - { - - public: - ListRamRolesRequest(); - ~ListRamRolesRequest(); - - - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTRAMROLESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTRAMROLESREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTRAMROLESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OpenSearch { +namespace Model { +class ALIBABACLOUD_OPENSEARCH_EXPORT ListRamRolesRequest : public RoaServiceRequest { +public: + ListRamRolesRequest(); + ~ListRamRolesRequest(); + +private: +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTRAMROLESREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/ListScheduledTasksRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListScheduledTasksRequest.h index 772282070..e5bdef5c4 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ListScheduledTasksRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/ListScheduledTasksRequest.h @@ -1,57 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTSCHEDULEDTASKSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTSCHEDULEDTASKSREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTSCHEDULEDTASKSREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/ListSearchStrategiesRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListSearchStrategiesRequest.h new file mode 100644 index 000000000..6d97bd71f --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListSearchStrategiesRequest.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_LISTSEARCHSTRATEGIESREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTSEARCHSTRATEGIESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OpenSearch { +namespace Model { +class ALIBABACLOUD_OPENSEARCH_EXPORT ListSearchStrategiesRequest : public RoaServiceRequest { +public: + ListSearchStrategiesRequest(); + ~ListSearchStrategiesRequest(); + 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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTSEARCHSTRATEGIESREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/ListSearchStrategiesResult.h b/opensearch/include/alibabacloud/opensearch/model/ListSearchStrategiesResult.h new file mode 100644 index 000000000..833a90754 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListSearchStrategiesResult.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_LISTSEARCHSTRATEGIESRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTSEARCHSTRATEGIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListSearchStrategiesResult : public ServiceResult + { + public: + + + ListSearchStrategiesResult(); + explicit ListSearchStrategiesResult(const std::string &payload); + ~ListSearchStrategiesResult(); + std::string getRequestId()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTSEARCHSTRATEGIESRESULT_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 index 3c01a8d7f..b728a6ed7 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ListSecondRanksRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/ListSecondRanksRequest.h @@ -1,51 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTSECONDRANKSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTSECONDRANKSREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTSECONDRANKSREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/ListSecondRanksResult.h b/opensearch/include/alibabacloud/opensearch/model/ListSecondRanksResult.h index d189e5728..cc1d8ef61 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ListSecondRanksResult.h +++ b/opensearch/include/alibabacloud/opensearch/model/ListSecondRanksResult.h @@ -41,8 +41,8 @@ namespace AlibabaCloud int updated; std::string isSys; std::string id; - std::string name; int created; + std::string name; }; diff --git a/opensearch/include/alibabacloud/opensearch/model/ListSlowQueryCategoriesRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListSlowQueryCategoriesRequest.h index 41cc9cca1..5c8311fd6 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ListSlowQueryCategoriesRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/ListSlowQueryCategoriesRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTSLOWQUERYCATEGORIESREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTSLOWQUERYCATEGORIESREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTSLOWQUERYCATEGORIESREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/ListSlowQueryQueriesRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListSlowQueryQueriesRequest.h index 8dfbce504..e8bd006b0 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ListSlowQueryQueriesRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/ListSlowQueryQueriesRequest.h @@ -1,51 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTSLOWQUERYQUERIESREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTSLOWQUERYQUERIESREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTSLOWQUERYQUERIESREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/ListSlowQueryQueriesResult.h b/opensearch/include/alibabacloud/opensearch/model/ListSlowQueryQueriesResult.h index b921598d8..95ba80166 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ListSlowQueryQueriesResult.h +++ b/opensearch/include/alibabacloud/opensearch/model/ListSlowQueryQueriesResult.h @@ -36,8 +36,8 @@ namespace AlibabaCloud { int start; std::string appQuery; - int end; int index; + int end; }; diff --git a/opensearch/include/alibabacloud/opensearch/model/ListSortExpressionsRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListSortExpressionsRequest.h index 4bff2b0ff..61f2ba43a 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ListSortExpressionsRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/ListSortExpressionsRequest.h @@ -1,51 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTSORTEXPRESSIONSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTSORTEXPRESSIONSREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTSORTEXPRESSIONSREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/ListSortExpressionsResult.h b/opensearch/include/alibabacloud/opensearch/model/ListSortExpressionsResult.h index 679f09416..4c2fbb634 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ListSortExpressionsResult.h +++ b/opensearch/include/alibabacloud/opensearch/model/ListSortExpressionsResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud bool active; std::string description; int updated; - std::string name; int created; + std::string name; }; diff --git a/opensearch/include/alibabacloud/opensearch/model/ListSortScriptsRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListSortScriptsRequest.h index ecc39abfe..90adfeec1 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ListSortScriptsRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/ListSortScriptsRequest.h @@ -1,51 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTSORTSCRIPTSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTSORTSCRIPTSREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTSORTSCRIPTSREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/ListSortScriptsResult.h b/opensearch/include/alibabacloud/opensearch/model/ListSortScriptsResult.h index 9ba55f163..621990973 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ListSortScriptsResult.h +++ b/opensearch/include/alibabacloud/opensearch/model/ListSortScriptsResult.h @@ -38,8 +38,8 @@ namespace AlibabaCloud std::string modifyTime; std::string type; std::string scope; - std::string scriptName; std::string createTime; + std::string scriptName; }; diff --git a/opensearch/include/alibabacloud/opensearch/model/ListStatisticLogsRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListStatisticLogsRequest.h index 927f076c6..f30ab991e 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ListStatisticLogsRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/ListStatisticLogsRequest.h @@ -1,75 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTSTATISTICLOGSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTSTATISTICLOGSREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTSTATISTICLOGSREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/ListStatisticReportRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListStatisticReportRequest.h index 7dfcdfac1..9c4a980d0 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ListStatisticReportRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/ListStatisticReportRequest.h @@ -1,69 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTSTATISTICREPORTREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTSTATISTICREPORTREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTSTATISTICREPORTREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/ListTagResourcesRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListTagResourcesRequest.h new file mode 100644 index 000000000..b2f84aed6 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListTagResourcesRequest.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_LISTTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OpenSearch { +namespace Model { +class ALIBABACLOUD_OPENSEARCH_EXPORT ListTagResourcesRequest : public RoaServiceRequest { +public: + ListTagResourcesRequest(); + ~ListTagResourcesRequest(); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + +private: + std::string nextToken_; + std::string resourceType_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTTAGRESOURCESREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/ListTagResourcesResult.h b/opensearch/include/alibabacloud/opensearch/model/ListTagResourcesResult.h new file mode 100644 index 000000000..c9b54b48a --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ListTagResourcesResult.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_LISTTAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTTAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ListTagResourcesResult : public ServiceResult + { + public: + struct TagResource + { + std::string resourceId; + std::string tagKey; + std::string resourceType; + std::string tagValue; + }; + + + ListTagResourcesResult(); + explicit ListTagResourcesResult(const std::string &payload); + ~ListTagResourcesResult(); + std::vector getresult()const; + std::string getRequestId()const; + std::string getNextToken()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + std::string requestId_; + std::string nextToken_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTTAGRESOURCESRESULT_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 index 29352b919..2e0915265 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ListUserAnalyzerEntriesRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/ListUserAnalyzerEntriesRequest.h @@ -1,57 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTUSERANALYZERENTRIESREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTUSERANALYZERENTRIESREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTUSERANALYZERENTRIESREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/ListUserAnalyzersRequest.h b/opensearch/include/alibabacloud/opensearch/model/ListUserAnalyzersRequest.h index ddf54db38..dcde948cd 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ListUserAnalyzersRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/ListUserAnalyzersRequest.h @@ -1,51 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTUSERANALYZERSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTUSERANALYZERSREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTUSERANALYZERSREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/ListUserAnalyzersResult.h b/opensearch/include/alibabacloud/opensearch/model/ListUserAnalyzersResult.h index 44b2c78e9..b0c4b5e2e 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ListUserAnalyzersResult.h +++ b/opensearch/include/alibabacloud/opensearch/model/ListUserAnalyzersResult.h @@ -48,9 +48,9 @@ namespace AlibabaCloud bool available; std::string id; std::vector dicts; + int created; std::string name; std::string business; - int created; }; diff --git a/opensearch/include/alibabacloud/opensearch/model/ModifyAppGroupQuotaRequest.h b/opensearch/include/alibabacloud/opensearch/model/ModifyAppGroupQuotaRequest.h index c24eadaaa..ad736efc4 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ModifyAppGroupQuotaRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/ModifyAppGroupQuotaRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_MODIFYAPPGROUPQUOTAREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_MODIFYAPPGROUPQUOTAREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_MODIFYAPPGROUPQUOTAREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/ModifyAppGroupQuotaResult.h b/opensearch/include/alibabacloud/opensearch/model/ModifyAppGroupQuotaResult.h index d26d30d4c..bb7bbf73d 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ModifyAppGroupQuotaResult.h +++ b/opensearch/include/alibabacloud/opensearch/model/ModifyAppGroupQuotaResult.h @@ -40,27 +40,27 @@ namespace AlibabaCloud int computeResource; std::string spec; }; - int secondRankAlgoDeploymentId; std::string status; + int secondRankAlgoDeploymentId; int firstRankAlgoDeploymentId; int produced; std::string description; int updated; - std::string instanceId; std::string processingOrderId; + std::string instanceId; std::string expireOn; std::string currentVersion; - int switchedTime; std::string projectId; + int switchedTime; std::string lockMode; - std::string name; - int chargingWay; int created; + int chargingWay; + std::string name; std::string type; Quota quota; std::string chargeType; - std::string commodityCode; int hasPendingQuotaReviewTask; + std::string commodityCode; std::string id; int pendingSecondRankAlgoDeploymentId; int lockedByExpiration; diff --git a/opensearch/include/alibabacloud/opensearch/model/ModifyAppGroupRequest.h b/opensearch/include/alibabacloud/opensearch/model/ModifyAppGroupRequest.h index 995833550..b30b9bd7b 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ModifyAppGroupRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/ModifyAppGroupRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_MODIFYAPPGROUPREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_MODIFYAPPGROUPREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_MODIFYAPPGROUPREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/ModifyAppGroupResult.h b/opensearch/include/alibabacloud/opensearch/model/ModifyAppGroupResult.h index 3ff16a123..e0d6c3079 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ModifyAppGroupResult.h +++ b/opensearch/include/alibabacloud/opensearch/model/ModifyAppGroupResult.h @@ -47,10 +47,10 @@ namespace AlibabaCloud std::string expireOn; std::string currentVersion; int switchedTime; - std::string name; int created; - std::string commodityCode; + std::string name; int hasPendingQuotaReviewTask; + std::string commodityCode; std::string status; int produced; int updated; diff --git a/opensearch/include/alibabacloud/opensearch/model/ModifyFirstRankRequest.h b/opensearch/include/alibabacloud/opensearch/model/ModifyFirstRankRequest.h index 340f3d818..d620abea1 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ModifyFirstRankRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/ModifyFirstRankRequest.h @@ -1,57 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_MODIFYFIRSTRANKREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_MODIFYFIRSTRANKREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_MODIFYFIRSTRANKREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/ModifyModelRequest.h b/opensearch/include/alibabacloud/opensearch/model/ModifyModelRequest.h index ef72b078e..72519d31a 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ModifyModelRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/ModifyModelRequest.h @@ -1,51 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_MODIFYMODELREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_MODIFYMODELREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_MODIFYMODELREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/ModifyQueryProcessorRequest.h b/opensearch/include/alibabacloud/opensearch/model/ModifyQueryProcessorRequest.h index 7c4a2983f..0d43bd0ad 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ModifyQueryProcessorRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/ModifyQueryProcessorRequest.h @@ -1,57 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_MODIFYQUERYPROCESSORREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_MODIFYQUERYPROCESSORREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_MODIFYQUERYPROCESSORREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/ModifyQueryProcessorResult.h b/opensearch/include/alibabacloud/opensearch/model/ModifyQueryProcessorResult.h index 5eb4c1d92..ffbc6612c 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ModifyQueryProcessorResult.h +++ b/opensearch/include/alibabacloud/opensearch/model/ModifyQueryProcessorResult.h @@ -39,8 +39,8 @@ namespace AlibabaCloud std::string domain; std::vector indexes; std::vector processors; - std::string name; int created; + std::string name; }; diff --git a/opensearch/include/alibabacloud/opensearch/model/ModifyScheduledTaskRequest.h b/opensearch/include/alibabacloud/opensearch/model/ModifyScheduledTaskRequest.h index d3951647f..469b0cbed 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ModifyScheduledTaskRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/ModifyScheduledTaskRequest.h @@ -1,51 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_MODIFYSCHEDULEDTASKREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_MODIFYSCHEDULEDTASKREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_MODIFYSCHEDULEDTASKREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/ModifySecondRankRequest.h b/opensearch/include/alibabacloud/opensearch/model/ModifySecondRankRequest.h index b401c84f0..7ffc5dfaf 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ModifySecondRankRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/ModifySecondRankRequest.h @@ -1,57 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_MODIFYSECONDRANKREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_MODIFYSECONDRANKREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_MODIFYSECONDRANKREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/ModifySecondRankResult.h b/opensearch/include/alibabacloud/opensearch/model/ModifySecondRankResult.h index d0d889403..7179274d3 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ModifySecondRankResult.h +++ b/opensearch/include/alibabacloud/opensearch/model/ModifySecondRankResult.h @@ -41,8 +41,8 @@ namespace AlibabaCloud int updated; std::string isSys; std::string id; - std::string name; int created; + std::string name; }; diff --git a/opensearch/include/alibabacloud/opensearch/model/PreviewModelRequest.h b/opensearch/include/alibabacloud/opensearch/model/PreviewModelRequest.h index f5d29892c..21d137c06 100644 --- a/opensearch/include/alibabacloud/opensearch/model/PreviewModelRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/PreviewModelRequest.h @@ -1,54 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_PREVIEWMODELREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_PREVIEWMODELREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_PREVIEWMODELREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/PushInterventionDictionaryEntriesRequest.h b/opensearch/include/alibabacloud/opensearch/model/PushInterventionDictionaryEntriesRequest.h index 076ac34d0..676a857d8 100644 --- a/opensearch/include/alibabacloud/opensearch/model/PushInterventionDictionaryEntriesRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/PushInterventionDictionaryEntriesRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_PUSHINTERVENTIONDICTIONARYENTRIESREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_PUSHINTERVENTIONDICTIONARYENTRIESREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_PUSHINTERVENTIONDICTIONARYENTRIESREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/PushUserAnalyzerEntriesRequest.h b/opensearch/include/alibabacloud/opensearch/model/PushUserAnalyzerEntriesRequest.h index 915193ee6..bf11706ef 100644 --- a/opensearch/include/alibabacloud/opensearch/model/PushUserAnalyzerEntriesRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/PushUserAnalyzerEntriesRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_PUSHUSERANALYZERENTRIESREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_PUSHUSERANALYZERENTRIESREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_PUSHUSERANALYZERENTRIESREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/RankPreviewQueryRequest.h b/opensearch/include/alibabacloud/opensearch/model/RankPreviewQueryRequest.h index 305df64e0..9aa227403 100644 --- a/opensearch/include/alibabacloud/opensearch/model/RankPreviewQueryRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/RankPreviewQueryRequest.h @@ -1,51 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_RANKPREVIEWQUERYREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_RANKPREVIEWQUERYREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_RANKPREVIEWQUERYREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/ReleaseSortScriptRequest.h b/opensearch/include/alibabacloud/opensearch/model/ReleaseSortScriptRequest.h index 7755ea264..c8d340e46 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ReleaseSortScriptRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/ReleaseSortScriptRequest.h @@ -1,54 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_RELEASESORTSCRIPTREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_RELEASESORTSCRIPTREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_RELEASESORTSCRIPTREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/RemoveAppGroupRequest.h b/opensearch/include/alibabacloud/opensearch/model/RemoveAppGroupRequest.h index 0f11e964c..77c5d917b 100644 --- a/opensearch/include/alibabacloud/opensearch/model/RemoveAppGroupRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/RemoveAppGroupRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_REMOVEAPPGROUPREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_REMOVEAPPGROUPREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_REMOVEAPPGROUPREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/RemoveAppRequest.h b/opensearch/include/alibabacloud/opensearch/model/RemoveAppRequest.h index 8dbd72d3f..1c9e3bf0c 100644 --- a/opensearch/include/alibabacloud/opensearch/model/RemoveAppRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/RemoveAppRequest.h @@ -1,51 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_REMOVEAPPREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_REMOVEAPPREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_REMOVEAPPREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/RemoveDataCollectionRequest.h b/opensearch/include/alibabacloud/opensearch/model/RemoveDataCollectionRequest.h index 9ac2c8d01..7cc0781ff 100644 --- a/opensearch/include/alibabacloud/opensearch/model/RemoveDataCollectionRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/RemoveDataCollectionRequest.h @@ -1,51 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_REMOVEDATACOLLECTIONREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_REMOVEDATACOLLECTIONREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_REMOVEDATACOLLECTIONREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/RemoveFirstRankRequest.h b/opensearch/include/alibabacloud/opensearch/model/RemoveFirstRankRequest.h index 187ab9672..2a31eb4e7 100644 --- a/opensearch/include/alibabacloud/opensearch/model/RemoveFirstRankRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/RemoveFirstRankRequest.h @@ -1,54 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_REMOVEFIRSTRANKREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_REMOVEFIRSTRANKREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_REMOVEFIRSTRANKREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/RemoveInterventionDictionaryRequest.h b/opensearch/include/alibabacloud/opensearch/model/RemoveInterventionDictionaryRequest.h index c73ac4186..f19d361be 100644 --- a/opensearch/include/alibabacloud/opensearch/model/RemoveInterventionDictionaryRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/RemoveInterventionDictionaryRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_REMOVEINTERVENTIONDICTIONARYREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_REMOVEINTERVENTIONDICTIONARYREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_REMOVEINTERVENTIONDICTIONARYREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/RemoveInterventionDictionaryResult.h b/opensearch/include/alibabacloud/opensearch/model/RemoveInterventionDictionaryResult.h index b4c8206e5..3755a8bca 100644 --- a/opensearch/include/alibabacloud/opensearch/model/RemoveInterventionDictionaryResult.h +++ b/opensearch/include/alibabacloud/opensearch/model/RemoveInterventionDictionaryResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud std::string type; std::string updated; std::string analyzer; - std::string name; std::string created; + std::string name; }; diff --git a/opensearch/include/alibabacloud/opensearch/model/RemoveQueryProcessorRequest.h b/opensearch/include/alibabacloud/opensearch/model/RemoveQueryProcessorRequest.h index cc456821e..d030eef49 100644 --- a/opensearch/include/alibabacloud/opensearch/model/RemoveQueryProcessorRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/RemoveQueryProcessorRequest.h @@ -1,54 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_REMOVEQUERYPROCESSORREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_REMOVEQUERYPROCESSORREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_REMOVEQUERYPROCESSORREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/RemoveScheduledTaskRequest.h b/opensearch/include/alibabacloud/opensearch/model/RemoveScheduledTaskRequest.h index c3a4c9e99..b136c1245 100644 --- a/opensearch/include/alibabacloud/opensearch/model/RemoveScheduledTaskRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/RemoveScheduledTaskRequest.h @@ -1,51 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_REMOVESCHEDULEDTASKREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_REMOVESCHEDULEDTASKREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_REMOVESCHEDULEDTASKREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/RemoveSearchStrategyRequest.h b/opensearch/include/alibabacloud/opensearch/model/RemoveSearchStrategyRequest.h new file mode 100644 index 000000000..a2deb9123 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/RemoveSearchStrategyRequest.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_REMOVESEARCHSTRATEGYREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_REMOVESEARCHSTRATEGYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OpenSearch { +namespace Model { +class ALIBABACLOUD_OPENSEARCH_EXPORT RemoveSearchStrategyRequest : public RoaServiceRequest { +public: + RemoveSearchStrategyRequest(); + ~RemoveSearchStrategyRequest(); + std::string getStrategyName() const; + void setStrategyName(const std::string &strategyName); + std::string getAppId() const; + void setAppId(const std::string &appId); + std::string getAppGroupIdentity() const; + void setAppGroupIdentity(const std::string &appGroupIdentity); + +private: + std::string strategyName_; + std::string appId_; + std::string appGroupIdentity_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_REMOVESEARCHSTRATEGYREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/RemoveSearchStrategyResult.h b/opensearch/include/alibabacloud/opensearch/model/RemoveSearchStrategyResult.h new file mode 100644 index 000000000..ead906553 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/RemoveSearchStrategyResult.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_REMOVESEARCHSTRATEGYRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_REMOVESEARCHSTRATEGYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT RemoveSearchStrategyResult : public ServiceResult + { + public: + + + RemoveSearchStrategyResult(); + explicit RemoveSearchStrategyResult(const std::string &payload); + ~RemoveSearchStrategyResult(); + std::string getRequestId()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_REMOVESEARCHSTRATEGYRESULT_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 index c8026b666..a2e799fc3 100644 --- a/opensearch/include/alibabacloud/opensearch/model/RemoveSecondRankRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/RemoveSecondRankRequest.h @@ -1,54 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_REMOVESECONDRANKREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_REMOVESECONDRANKREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_REMOVESECONDRANKREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/RemoveUserAnalyzerRequest.h b/opensearch/include/alibabacloud/opensearch/model/RemoveUserAnalyzerRequest.h index 613d2dcf8..0b9a97e92 100644 --- a/opensearch/include/alibabacloud/opensearch/model/RemoveUserAnalyzerRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/RemoveUserAnalyzerRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_REMOVEUSERANALYZERREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_REMOVEUSERANALYZERREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_REMOVEUSERANALYZERREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/RenewAppGroupRequest.h b/opensearch/include/alibabacloud/opensearch/model/RenewAppGroupRequest.h index 091ce7417..a56a2423b 100644 --- a/opensearch/include/alibabacloud/opensearch/model/RenewAppGroupRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/RenewAppGroupRequest.h @@ -1,48 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_RENEWAPPGROUPREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_RENEWAPPGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OpenSearch { +namespace Model { +class ALIBABACLOUD_OPENSEARCH_EXPORT RenewAppGroupRequest : public RoaServiceRequest { +public: + RenewAppGroupRequest(); + ~RenewAppGroupRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getAppGroupIdentity() const; + void setAppGroupIdentity(const std::string &appGroupIdentity); + +private: + std::string clientToken_; + std::string appGroupIdentity_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_RENEWAPPGROUPREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/RenewAppGroupResult.h b/opensearch/include/alibabacloud/opensearch/model/RenewAppGroupResult.h index 753272f6f..b7e8d50d5 100644 --- a/opensearch/include/alibabacloud/opensearch/model/RenewAppGroupResult.h +++ b/opensearch/include/alibabacloud/opensearch/model/RenewAppGroupResult.h @@ -38,11 +38,13 @@ namespace AlibabaCloud explicit RenewAppGroupResult(const std::string &payload); ~RenewAppGroupResult(); std::string getRequestId()const; + bool getResult()const; protected: void parse(const std::string &payload); private: std::string requestId_; + bool result_; }; } diff --git a/opensearch/include/alibabacloud/opensearch/model/ReplaceAppGroupCommodityCodeRequest.h b/opensearch/include/alibabacloud/opensearch/model/ReplaceAppGroupCommodityCodeRequest.h index 011a9e853..1309d6183 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ReplaceAppGroupCommodityCodeRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/ReplaceAppGroupCommodityCodeRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_REPLACEAPPGROUPCOMMODITYCODEREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_REPLACEAPPGROUPCOMMODITYCODEREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_REPLACEAPPGROUPCOMMODITYCODEREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/ReplaceAppGroupCommodityCodeResult.h b/opensearch/include/alibabacloud/opensearch/model/ReplaceAppGroupCommodityCodeResult.h index 541eaa0e5..2821f450e 100644 --- a/opensearch/include/alibabacloud/opensearch/model/ReplaceAppGroupCommodityCodeResult.h +++ b/opensearch/include/alibabacloud/opensearch/model/ReplaceAppGroupCommodityCodeResult.h @@ -47,10 +47,10 @@ namespace AlibabaCloud std::string expireOn; std::string currentVersion; int switchedTime; - std::string name; int created; - std::string commodityCode; + std::string name; int hasPendingQuotaReviewTask; + std::string commodityCode; std::string status; int produced; int updated; diff --git a/opensearch/include/alibabacloud/opensearch/model/SaveSortScriptFileRequest.h b/opensearch/include/alibabacloud/opensearch/model/SaveSortScriptFileRequest.h index e3b172011..37fbe176d 100644 --- a/opensearch/include/alibabacloud/opensearch/model/SaveSortScriptFileRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/SaveSortScriptFileRequest.h @@ -1,57 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_SAVESORTSCRIPTFILEREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_SAVESORTSCRIPTFILEREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_SAVESORTSCRIPTFILEREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/StartSlowQueryAnalyzerRequest.h b/opensearch/include/alibabacloud/opensearch/model/StartSlowQueryAnalyzerRequest.h index ce1da9197..ae2ff60bd 100644 --- a/opensearch/include/alibabacloud/opensearch/model/StartSlowQueryAnalyzerRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/StartSlowQueryAnalyzerRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_STARTSLOWQUERYANALYZERREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_STARTSLOWQUERYANALYZERREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_STARTSLOWQUERYANALYZERREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/TagResourcesRequest.h b/opensearch/include/alibabacloud/opensearch/model/TagResourcesRequest.h new file mode 100644 index 000000000..517b1934b --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/TagResourcesRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR 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_TAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_TAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OpenSearch { +namespace Model { +class ALIBABACLOUD_OPENSEARCH_EXPORT TagResourcesRequest : public RoaServiceRequest { +public: + TagResourcesRequest(); + ~TagResourcesRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_TAGRESOURCESREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/TagResourcesResult.h b/opensearch/include/alibabacloud/opensearch/model/TagResourcesResult.h new file mode 100644 index 000000000..6fea96d33 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/TagResourcesResult.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_TAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_TAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT TagResourcesResult : public ServiceResult + { + public: + + + TagResourcesResult(); + explicit TagResourcesResult(const std::string &payload); + ~TagResourcesResult(); + std::string getRequestId()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_TAGRESOURCESRESULT_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 index 41721dc3f..45c271c9b 100644 --- a/opensearch/include/alibabacloud/opensearch/model/TrainModelRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/TrainModelRequest.h @@ -1,51 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_TRAINMODELREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_TRAINMODELREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_TRAINMODELREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/UnbindESUserAnalyzerRequest.h b/opensearch/include/alibabacloud/opensearch/model/UnbindESUserAnalyzerRequest.h new file mode 100644 index 000000000..b8c281270 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/UnbindESUserAnalyzerRequest.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_UNBINDESUSERANALYZERREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_UNBINDESUSERANALYZERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OpenSearch { +namespace Model { +class ALIBABACLOUD_OPENSEARCH_EXPORT UnbindESUserAnalyzerRequest : public RoaServiceRequest { +public: + UnbindESUserAnalyzerRequest(); + ~UnbindESUserAnalyzerRequest(); + std::string getEsInstanceId() const; + void setEsInstanceId(const std::string &esInstanceId); + std::string getAppGroupIdentity() const; + void setAppGroupIdentity(const std::string &appGroupIdentity); + +private: + std::string esInstanceId_; + std::string appGroupIdentity_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_UNBINDESUSERANALYZERREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/UnbindESUserAnalyzerResult.h b/opensearch/include/alibabacloud/opensearch/model/UnbindESUserAnalyzerResult.h new file mode 100644 index 000000000..a21565abf --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/UnbindESUserAnalyzerResult.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_UNBINDESUSERANALYZERRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_UNBINDESUSERANALYZERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT UnbindESUserAnalyzerResult : public ServiceResult + { + public: + + + UnbindESUserAnalyzerResult(); + explicit UnbindESUserAnalyzerResult(const std::string &payload); + ~UnbindESUserAnalyzerResult(); + 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_UNBINDESUSERANALYZERRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/UnbindEsInstanceRequest.h b/opensearch/include/alibabacloud/opensearch/model/UnbindEsInstanceRequest.h new file mode 100644 index 000000000..44deeb182 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/UnbindEsInstanceRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR 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_UNBINDESINSTANCEREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_UNBINDESINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OpenSearch { +namespace Model { +class ALIBABACLOUD_OPENSEARCH_EXPORT UnbindEsInstanceRequest : public RoaServiceRequest { +public: + UnbindEsInstanceRequest(); + ~UnbindEsInstanceRequest(); + std::string getAppGroupIdentity() const; + void setAppGroupIdentity(const std::string &appGroupIdentity); + +private: + std::string appGroupIdentity_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_UNBINDESINSTANCEREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/UnbindEsInstanceResult.h b/opensearch/include/alibabacloud/opensearch/model/UnbindEsInstanceResult.h new file mode 100644 index 000000000..51644e98e --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/UnbindEsInstanceResult.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_UNBINDESINSTANCERESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_UNBINDESINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT UnbindEsInstanceResult : public ServiceResult + { + public: + + + UnbindEsInstanceResult(); + explicit UnbindEsInstanceResult(const std::string &payload); + ~UnbindEsInstanceResult(); + 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_UNBINDESINSTANCERESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/UntagResourcesRequest.h b/opensearch/include/alibabacloud/opensearch/model/UntagResourcesRequest.h new file mode 100644 index 000000000..c7cb771e4 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/UntagResourcesRequest.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_UNTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_UNTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OpenSearch { +namespace Model { +class ALIBABACLOUD_OPENSEARCH_EXPORT UntagResourcesRequest : public RoaServiceRequest { +public: + UntagResourcesRequest(); + ~UntagResourcesRequest(); + bool getAll() const; + void setAll(bool all); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + +private: + bool all_; + std::string resourceType_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_UNTAGRESOURCESREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/UntagResourcesResult.h b/opensearch/include/alibabacloud/opensearch/model/UntagResourcesResult.h new file mode 100644 index 000000000..fc947189a --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/UntagResourcesResult.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_UNTAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_UNTAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT UntagResourcesResult : public ServiceResult + { + public: + + + UntagResourcesResult(); + explicit UntagResourcesResult(const std::string &payload); + ~UntagResourcesResult(); + std::string getTequestId()const; + + protected: + void parse(const std::string &payload); + private: + std::string tequestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_UNTAGRESOURCESRESULT_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 index d7ccfa15e..4fab21210 100644 --- a/opensearch/include/alibabacloud/opensearch/model/UpdateABTestExperimentRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/UpdateABTestExperimentRequest.h @@ -1,57 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_UPDATEABTESTEXPERIMENTREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_UPDATEABTESTEXPERIMENTREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_UPDATEABTESTEXPERIMENTREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/UpdateABTestExperimentResult.h b/opensearch/include/alibabacloud/opensearch/model/UpdateABTestExperimentResult.h index ffe3f0f9a..3abdf7633 100644 --- a/opensearch/include/alibabacloud/opensearch/model/UpdateABTestExperimentResult.h +++ b/opensearch/include/alibabacloud/opensearch/model/UpdateABTestExperimentResult.h @@ -39,8 +39,8 @@ namespace AlibabaCloud std::string params; std::string id; bool online; - std::string name; int created; + std::string name; }; diff --git a/opensearch/include/alibabacloud/opensearch/model/UpdateABTestFixedFlowDividersRequest.h b/opensearch/include/alibabacloud/opensearch/model/UpdateABTestFixedFlowDividersRequest.h index 5165cb2d2..34ea2bda0 100644 --- a/opensearch/include/alibabacloud/opensearch/model/UpdateABTestFixedFlowDividersRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/UpdateABTestFixedFlowDividersRequest.h @@ -1,57 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_UPDATEABTESTFIXEDFLOWDIVIDERSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_UPDATEABTESTFIXEDFLOWDIVIDERSREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_UPDATEABTESTFIXEDFLOWDIVIDERSREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/UpdateABTestGroupRequest.h b/opensearch/include/alibabacloud/opensearch/model/UpdateABTestGroupRequest.h index c72382f5f..dc47567b2 100644 --- a/opensearch/include/alibabacloud/opensearch/model/UpdateABTestGroupRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/UpdateABTestGroupRequest.h @@ -1,54 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_UPDATEABTESTGROUPREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_UPDATEABTESTGROUPREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_UPDATEABTESTGROUPREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/UpdateABTestGroupResult.h b/opensearch/include/alibabacloud/opensearch/model/UpdateABTestGroupResult.h index 463943a40..dc59c948c 100644 --- a/opensearch/include/alibabacloud/opensearch/model/UpdateABTestGroupResult.h +++ b/opensearch/include/alibabacloud/opensearch/model/UpdateABTestGroupResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud int status; int updated; std::string id; - std::string name; int created; + std::string name; }; diff --git a/opensearch/include/alibabacloud/opensearch/model/UpdateABTestSceneRequest.h b/opensearch/include/alibabacloud/opensearch/model/UpdateABTestSceneRequest.h index 5f5ab4211..8788a7ddc 100644 --- a/opensearch/include/alibabacloud/opensearch/model/UpdateABTestSceneRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/UpdateABTestSceneRequest.h @@ -1,51 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_UPDATEABTESTSCENEREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_UPDATEABTESTSCENEREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_UPDATEABTESTSCENEREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/UpdateABTestSceneResult.h b/opensearch/include/alibabacloud/opensearch/model/UpdateABTestSceneResult.h index 34c079982..baa109198 100644 --- a/opensearch/include/alibabacloud/opensearch/model/UpdateABTestSceneResult.h +++ b/opensearch/include/alibabacloud/opensearch/model/UpdateABTestSceneResult.h @@ -39,8 +39,8 @@ namespace AlibabaCloud std::string params; std::string id; bool online; - std::string name; int created; + std::string name; }; diff --git a/opensearch/include/alibabacloud/opensearch/model/UpdateFetchFieldsRequest.h b/opensearch/include/alibabacloud/opensearch/model/UpdateFetchFieldsRequest.h index a25aada56..568b71c56 100644 --- a/opensearch/include/alibabacloud/opensearch/model/UpdateFetchFieldsRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/UpdateFetchFieldsRequest.h @@ -1,54 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_UPDATEFETCHFIELDSREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_UPDATEFETCHFIELDSREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_UPDATEFETCHFIELDSREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/UpdateFunctionDefaultInstanceRequest.h b/opensearch/include/alibabacloud/opensearch/model/UpdateFunctionDefaultInstanceRequest.h new file mode 100644 index 000000000..02848ac49 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/UpdateFunctionDefaultInstanceRequest.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_UPDATEFUNCTIONDEFAULTINSTANCEREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_UPDATEFUNCTIONDEFAULTINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OpenSearch { +namespace Model { +class ALIBABACLOUD_OPENSEARCH_EXPORT UpdateFunctionDefaultInstanceRequest : public RoaServiceRequest { +public: + UpdateFunctionDefaultInstanceRequest(); + ~UpdateFunctionDefaultInstanceRequest(); + std::string getFunctionName() const; + void setFunctionName(const std::string &functionName); + std::string getAppGroupIdentity() const; + void setAppGroupIdentity(const std::string &appGroupIdentity); + +private: + std::string functionName_; + std::string appGroupIdentity_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_UPDATEFUNCTIONDEFAULTINSTANCEREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/UpdateFunctionDefaultInstanceResult.h b/opensearch/include/alibabacloud/opensearch/model/UpdateFunctionDefaultInstanceResult.h new file mode 100644 index 000000000..5b86d562f --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/UpdateFunctionDefaultInstanceResult.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_UPDATEFUNCTIONDEFAULTINSTANCERESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_UPDATEFUNCTIONDEFAULTINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT UpdateFunctionDefaultInstanceResult : public ServiceResult + { + public: + + + UpdateFunctionDefaultInstanceResult(); + explicit UpdateFunctionDefaultInstanceResult(const std::string &payload); + ~UpdateFunctionDefaultInstanceResult(); + std::string getStatus()const; + long getHttpCode()const; + std::string getMessage()const; + std::string getCode()const; + long getLatency()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + long httpCode_; + std::string message_; + std::string code_; + long latency_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_UPDATEFUNCTIONDEFAULTINSTANCERESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/UpdateFunctionInstanceRequest.h b/opensearch/include/alibabacloud/opensearch/model/UpdateFunctionInstanceRequest.h new file mode 100644 index 000000000..cba786a9f --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/UpdateFunctionInstanceRequest.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_UPDATEFUNCTIONINSTANCEREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_UPDATEFUNCTIONINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OpenSearch { +namespace Model { +class ALIBABACLOUD_OPENSEARCH_EXPORT UpdateFunctionInstanceRequest : public RoaServiceRequest { +public: + UpdateFunctionInstanceRequest(); + ~UpdateFunctionInstanceRequest(); + std::string getInstanceName() const; + void setInstanceName(const std::string &instanceName); + std::string getFunctionName() const; + void setFunctionName(const std::string &functionName); + std::string getAppGroupIdentity() const; + void setAppGroupIdentity(const std::string &appGroupIdentity); + +private: + std::string instanceName_; + std::string functionName_; + std::string appGroupIdentity_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_UPDATEFUNCTIONINSTANCEREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/UpdateFunctionInstanceResult.h b/opensearch/include/alibabacloud/opensearch/model/UpdateFunctionInstanceResult.h new file mode 100644 index 000000000..245439351 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/UpdateFunctionInstanceResult.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_UPDATEFUNCTIONINSTANCERESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_UPDATEFUNCTIONINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT UpdateFunctionInstanceResult : public ServiceResult + { + public: + + + UpdateFunctionInstanceResult(); + explicit UpdateFunctionInstanceResult(const std::string &payload); + ~UpdateFunctionInstanceResult(); + std::string getStatus()const; + long getHttpCode()const; + std::string getMessage()const; + std::string getCode()const; + long getLatency()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + long httpCode_; + std::string message_; + std::string code_; + long latency_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_UPDATEFUNCTIONINSTANCERESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/UpdateSearchStrategyRequest.h b/opensearch/include/alibabacloud/opensearch/model/UpdateSearchStrategyRequest.h new file mode 100644 index 000000000..0b3f05234 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/UpdateSearchStrategyRequest.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_UPDATESEARCHSTRATEGYREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_UPDATESEARCHSTRATEGYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OpenSearch { +namespace Model { +class ALIBABACLOUD_OPENSEARCH_EXPORT UpdateSearchStrategyRequest : public RoaServiceRequest { +public: + UpdateSearchStrategyRequest(); + ~UpdateSearchStrategyRequest(); + std::string getStrategyName() const; + void setStrategyName(const std::string &strategyName); + std::string getAppId() const; + void setAppId(const std::string &appId); + std::string getAppGroupIdentity() const; + void setAppGroupIdentity(const std::string &appGroupIdentity); + +private: + std::string strategyName_; + std::string appId_; + std::string appGroupIdentity_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_UPDATESEARCHSTRATEGYREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/UpdateSearchStrategyResult.h b/opensearch/include/alibabacloud/opensearch/model/UpdateSearchStrategyResult.h new file mode 100644 index 000000000..296c17aa4 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/UpdateSearchStrategyResult.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_UPDATESEARCHSTRATEGYRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_UPDATESEARCHSTRATEGYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT UpdateSearchStrategyResult : public ServiceResult + { + public: + + + UpdateSearchStrategyResult(); + explicit UpdateSearchStrategyResult(const std::string &payload); + ~UpdateSearchStrategyResult(); + std::string getRequestId()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_UPDATESEARCHSTRATEGYRESULT_H_ \ No newline at end of file diff --git a/opensearch/include/alibabacloud/opensearch/model/UpdateSortScriptRequest.h b/opensearch/include/alibabacloud/opensearch/model/UpdateSortScriptRequest.h index 9178c9c28..ade8f2e98 100644 --- a/opensearch/include/alibabacloud/opensearch/model/UpdateSortScriptRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/UpdateSortScriptRequest.h @@ -1,54 +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_UPDATESORTSCRIPTREQUEST_H_ -#define ALIBABACLOUD_OPENSEARCH_MODEL_UPDATESORTSCRIPTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OpenSearch - { - namespace Model - { - class ALIBABACLOUD_OPENSEARCH_EXPORT UpdateSortScriptRequest : public RoaServiceRequest - { - - public: - UpdateSortScriptRequest(); - ~UpdateSortScriptRequest(); - - 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_UPDATESORTSCRIPTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_UPDATESORTSCRIPTREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_UPDATESORTSCRIPTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OpenSearch { +namespace Model { +class ALIBABACLOUD_OPENSEARCH_EXPORT UpdateSortScriptRequest : public RoaServiceRequest { +public: + UpdateSortScriptRequest(); + ~UpdateSortScriptRequest(); + 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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_UPDATESORTSCRIPTREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/UpdateSummariesRequest.h b/opensearch/include/alibabacloud/opensearch/model/UpdateSummariesRequest.h index f464ca99d..ad100db87 100644 --- a/opensearch/include/alibabacloud/opensearch/model/UpdateSummariesRequest.h +++ b/opensearch/include/alibabacloud/opensearch/model/UpdateSummariesRequest.h @@ -1,54 +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_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 + */ + +#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_UPDATESUMMARIESREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_UPDATESUMMARIESREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_UPDATESUMMARIESREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/ValidateDataSourcesRequest.h b/opensearch/include/alibabacloud/opensearch/model/ValidateDataSourcesRequest.h new file mode 100644 index 000000000..9021979c7 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ValidateDataSourcesRequest.h @@ -0,0 +1,39 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR 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_VALIDATEDATASOURCESREQUEST_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_VALIDATEDATASOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OpenSearch { +namespace Model { +class ALIBABACLOUD_OPENSEARCH_EXPORT ValidateDataSourcesRequest : public RoaServiceRequest { +public: + ValidateDataSourcesRequest(); + ~ValidateDataSourcesRequest(); + +private: +}; +} // namespace Model +} // namespace OpenSearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_VALIDATEDATASOURCESREQUEST_H_ diff --git a/opensearch/include/alibabacloud/opensearch/model/ValidateDataSourcesResult.h b/opensearch/include/alibabacloud/opensearch/model/ValidateDataSourcesResult.h new file mode 100644 index 000000000..919a9b5e6 --- /dev/null +++ b/opensearch/include/alibabacloud/opensearch/model/ValidateDataSourcesResult.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_VALIDATEDATASOURCESRESULT_H_ +#define ALIBABACLOUD_OPENSEARCH_MODEL_VALIDATEDATASOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OpenSearch + { + namespace Model + { + class ALIBABACLOUD_OPENSEARCH_EXPORT ValidateDataSourcesResult : public ServiceResult + { + public: + struct ResultItem + { + struct DataSource + { + std::string tableName; + std::string type; + std::string parameters; + }; + std::string message; + std::string code; + DataSource dataSource; + }; + + + ValidateDataSourcesResult(); + explicit ValidateDataSourcesResult(const std::string &payload); + ~ValidateDataSourcesResult(); + 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_VALIDATEDATASOURCESRESULT_H_ \ No newline at end of file diff --git a/opensearch/src/OpenSearchClient.cc b/opensearch/src/OpenSearchClient.cc index afbf2ebb6..19d3d5a86 100644 --- a/opensearch/src/OpenSearchClient.cc +++ b/opensearch/src/OpenSearchClient.cc @@ -31,26 +31,98 @@ OpenSearchClient::OpenSearchClient(const Credentials &credentials, const ClientC 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"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); } 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"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); } 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"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); } OpenSearchClient::~OpenSearchClient() {} +OpenSearchClient::BindESUserAnalyzerOutcome OpenSearchClient::bindESUserAnalyzer(const BindESUserAnalyzerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BindESUserAnalyzerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BindESUserAnalyzerOutcome(BindESUserAnalyzerResult(outcome.result())); + else + return BindESUserAnalyzerOutcome(outcome.error()); +} + +void OpenSearchClient::bindESUserAnalyzerAsync(const BindESUserAnalyzerRequest& request, const BindESUserAnalyzerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, bindESUserAnalyzer(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::BindESUserAnalyzerOutcomeCallable OpenSearchClient::bindESUserAnalyzerCallable(const BindESUserAnalyzerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->bindESUserAnalyzer(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::BindEsInstanceOutcome OpenSearchClient::bindEsInstance(const BindEsInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BindEsInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BindEsInstanceOutcome(BindEsInstanceResult(outcome.result())); + else + return BindEsInstanceOutcome(outcome.error()); +} + +void OpenSearchClient::bindEsInstanceAsync(const BindEsInstanceRequest& request, const BindEsInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, bindEsInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::BindEsInstanceOutcomeCallable OpenSearchClient::bindEsInstanceCallable(const BindEsInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->bindEsInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OpenSearchClient::CompileSortScriptOutcome OpenSearchClient::compileSortScript(const CompileSortScriptRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -339,6 +411,78 @@ OpenSearchClient::CreateFirstRankOutcomeCallable OpenSearchClient::createFirstRa return task->get_future(); } +OpenSearchClient::CreateFunctionInstanceOutcome OpenSearchClient::createFunctionInstance(const CreateFunctionInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateFunctionInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateFunctionInstanceOutcome(CreateFunctionInstanceResult(outcome.result())); + else + return CreateFunctionInstanceOutcome(outcome.error()); +} + +void OpenSearchClient::createFunctionInstanceAsync(const CreateFunctionInstanceRequest& request, const CreateFunctionInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createFunctionInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::CreateFunctionInstanceOutcomeCallable OpenSearchClient::createFunctionInstanceCallable(const CreateFunctionInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createFunctionInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::CreateFunctionTaskOutcome OpenSearchClient::createFunctionTask(const CreateFunctionTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateFunctionTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateFunctionTaskOutcome(CreateFunctionTaskResult(outcome.result())); + else + return CreateFunctionTaskOutcome(outcome.error()); +} + +void OpenSearchClient::createFunctionTaskAsync(const CreateFunctionTaskRequest& request, const CreateFunctionTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createFunctionTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::CreateFunctionTaskOutcomeCallable OpenSearchClient::createFunctionTaskCallable(const CreateFunctionTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createFunctionTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OpenSearchClient::CreateInterventionDictionaryOutcome OpenSearchClient::createInterventionDictionary(const CreateInterventionDictionaryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -483,6 +627,42 @@ OpenSearchClient::CreateScheduledTaskOutcomeCallable OpenSearchClient::createSch return task->get_future(); } +OpenSearchClient::CreateSearchStrategyOutcome OpenSearchClient::createSearchStrategy(const CreateSearchStrategyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateSearchStrategyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateSearchStrategyOutcome(CreateSearchStrategyResult(outcome.result())); + else + return CreateSearchStrategyOutcome(outcome.error()); +} + +void OpenSearchClient::createSearchStrategyAsync(const CreateSearchStrategyRequest& request, const CreateSearchStrategyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createSearchStrategy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::CreateSearchStrategyOutcomeCallable OpenSearchClient::createSearchStrategyCallable(const CreateSearchStrategyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createSearchStrategy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OpenSearchClient::CreateSecondRankOutcome OpenSearchClient::createSecondRank(const CreateSecondRankRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -699,6 +879,78 @@ OpenSearchClient::DeleteABTestSceneOutcomeCallable OpenSearchClient::deleteABTes return task->get_future(); } +OpenSearchClient::DeleteFunctionInstanceOutcome OpenSearchClient::deleteFunctionInstance(const DeleteFunctionInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteFunctionInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteFunctionInstanceOutcome(DeleteFunctionInstanceResult(outcome.result())); + else + return DeleteFunctionInstanceOutcome(outcome.error()); +} + +void OpenSearchClient::deleteFunctionInstanceAsync(const DeleteFunctionInstanceRequest& request, const DeleteFunctionInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteFunctionInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::DeleteFunctionInstanceOutcomeCallable OpenSearchClient::deleteFunctionInstanceCallable(const DeleteFunctionInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteFunctionInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::DeleteFunctionTaskOutcome OpenSearchClient::deleteFunctionTask(const DeleteFunctionTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteFunctionTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteFunctionTaskOutcome(DeleteFunctionTaskResult(outcome.result())); + else + return DeleteFunctionTaskOutcome(outcome.error()); +} + +void OpenSearchClient::deleteFunctionTaskAsync(const DeleteFunctionTaskRequest& request, const DeleteFunctionTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteFunctionTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::DeleteFunctionTaskOutcomeCallable OpenSearchClient::deleteFunctionTaskCallable(const DeleteFunctionTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteFunctionTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OpenSearchClient::DeleteModelOutcome OpenSearchClient::deleteModel(const DeleteModelRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1023,6 +1275,42 @@ OpenSearchClient::DescribeAppGroupDataReportOutcomeCallable OpenSearchClient::de return task->get_future(); } +OpenSearchClient::DescribeAppGroupStatisticsOutcome OpenSearchClient::describeAppGroupStatistics(const DescribeAppGroupStatisticsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAppGroupStatisticsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAppGroupStatisticsOutcome(DescribeAppGroupStatisticsResult(outcome.result())); + else + return DescribeAppGroupStatisticsOutcome(outcome.error()); +} + +void OpenSearchClient::describeAppGroupStatisticsAsync(const DescribeAppGroupStatisticsRequest& request, const DescribeAppGroupStatisticsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAppGroupStatistics(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::DescribeAppGroupStatisticsOutcomeCallable OpenSearchClient::describeAppGroupStatisticsCallable(const DescribeAppGroupStatisticsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAppGroupStatistics(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OpenSearchClient::DescribeAppStatisticsOutcome OpenSearchClient::describeAppStatistics(const DescribeAppStatisticsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1635,6 +1923,186 @@ OpenSearchClient::GetDomainOutcomeCallable OpenSearchClient::getDomainCallable(c return task->get_future(); } +OpenSearchClient::GetFunctionCurrentVersionOutcome OpenSearchClient::getFunctionCurrentVersion(const GetFunctionCurrentVersionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetFunctionCurrentVersionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetFunctionCurrentVersionOutcome(GetFunctionCurrentVersionResult(outcome.result())); + else + return GetFunctionCurrentVersionOutcome(outcome.error()); +} + +void OpenSearchClient::getFunctionCurrentVersionAsync(const GetFunctionCurrentVersionRequest& request, const GetFunctionCurrentVersionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getFunctionCurrentVersion(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::GetFunctionCurrentVersionOutcomeCallable OpenSearchClient::getFunctionCurrentVersionCallable(const GetFunctionCurrentVersionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getFunctionCurrentVersion(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::GetFunctionDefaultInstanceOutcome OpenSearchClient::getFunctionDefaultInstance(const GetFunctionDefaultInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetFunctionDefaultInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetFunctionDefaultInstanceOutcome(GetFunctionDefaultInstanceResult(outcome.result())); + else + return GetFunctionDefaultInstanceOutcome(outcome.error()); +} + +void OpenSearchClient::getFunctionDefaultInstanceAsync(const GetFunctionDefaultInstanceRequest& request, const GetFunctionDefaultInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getFunctionDefaultInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::GetFunctionDefaultInstanceOutcomeCallable OpenSearchClient::getFunctionDefaultInstanceCallable(const GetFunctionDefaultInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getFunctionDefaultInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::GetFunctionInstanceOutcome OpenSearchClient::getFunctionInstance(const GetFunctionInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetFunctionInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetFunctionInstanceOutcome(GetFunctionInstanceResult(outcome.result())); + else + return GetFunctionInstanceOutcome(outcome.error()); +} + +void OpenSearchClient::getFunctionInstanceAsync(const GetFunctionInstanceRequest& request, const GetFunctionInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getFunctionInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::GetFunctionInstanceOutcomeCallable OpenSearchClient::getFunctionInstanceCallable(const GetFunctionInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getFunctionInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::GetFunctionTaskOutcome OpenSearchClient::getFunctionTask(const GetFunctionTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetFunctionTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetFunctionTaskOutcome(GetFunctionTaskResult(outcome.result())); + else + return GetFunctionTaskOutcome(outcome.error()); +} + +void OpenSearchClient::getFunctionTaskAsync(const GetFunctionTaskRequest& request, const GetFunctionTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getFunctionTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::GetFunctionTaskOutcomeCallable OpenSearchClient::getFunctionTaskCallable(const GetFunctionTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getFunctionTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::GetFunctionVersionOutcome OpenSearchClient::getFunctionVersion(const GetFunctionVersionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetFunctionVersionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetFunctionVersionOutcome(GetFunctionVersionResult(outcome.result())); + else + return GetFunctionVersionOutcome(outcome.error()); +} + +void OpenSearchClient::getFunctionVersionAsync(const GetFunctionVersionRequest& request, const GetFunctionVersionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getFunctionVersion(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::GetFunctionVersionOutcomeCallable OpenSearchClient::getFunctionVersionCallable(const GetFunctionVersionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getFunctionVersion(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OpenSearchClient::GetModelProgressOutcome OpenSearchClient::getModelProgress(const GetModelProgressRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1743,6 +2211,42 @@ OpenSearchClient::GetScriptFileNamesOutcomeCallable OpenSearchClient::getScriptF return task->get_future(); } +OpenSearchClient::GetSearchStrategyOutcome OpenSearchClient::getSearchStrategy(const GetSearchStrategyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSearchStrategyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSearchStrategyOutcome(GetSearchStrategyResult(outcome.result())); + else + return GetSearchStrategyOutcome(outcome.error()); +} + +void OpenSearchClient::getSearchStrategyAsync(const GetSearchStrategyRequest& request, const GetSearchStrategyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSearchStrategy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::GetSearchStrategyOutcomeCallable OpenSearchClient::getSearchStrategyCallable(const GetSearchStrategyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSearchStrategy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OpenSearchClient::GetSortScriptOutcome OpenSearchClient::getSortScript(const GetSortScriptRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2391,6 +2895,78 @@ OpenSearchClient::ListFirstRanksOutcomeCallable OpenSearchClient::listFirstRanks return task->get_future(); } +OpenSearchClient::ListFunctionInstancesOutcome OpenSearchClient::listFunctionInstances(const ListFunctionInstancesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListFunctionInstancesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListFunctionInstancesOutcome(ListFunctionInstancesResult(outcome.result())); + else + return ListFunctionInstancesOutcome(outcome.error()); +} + +void OpenSearchClient::listFunctionInstancesAsync(const ListFunctionInstancesRequest& request, const ListFunctionInstancesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listFunctionInstances(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::ListFunctionInstancesOutcomeCallable OpenSearchClient::listFunctionInstancesCallable(const ListFunctionInstancesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listFunctionInstances(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::ListFunctionTasksOutcome OpenSearchClient::listFunctionTasks(const ListFunctionTasksRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListFunctionTasksOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListFunctionTasksOutcome(ListFunctionTasksResult(outcome.result())); + else + return ListFunctionTasksOutcome(outcome.error()); +} + +void OpenSearchClient::listFunctionTasksAsync(const ListFunctionTasksRequest& request, const ListFunctionTasksAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listFunctionTasks(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::ListFunctionTasksOutcomeCallable OpenSearchClient::listFunctionTasksCallable(const ListFunctionTasksRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listFunctionTasks(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OpenSearchClient::ListInterventionDictionariesOutcome OpenSearchClient::listInterventionDictionaries(const ListInterventionDictionariesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2571,6 +3147,78 @@ OpenSearchClient::ListModelsOutcomeCallable OpenSearchClient::listModelsCallable return task->get_future(); } +OpenSearchClient::ListProceedingsOutcome OpenSearchClient::listProceedings(const ListProceedingsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListProceedingsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListProceedingsOutcome(ListProceedingsResult(outcome.result())); + else + return ListProceedingsOutcome(outcome.error()); +} + +void OpenSearchClient::listProceedingsAsync(const ListProceedingsRequest& request, const ListProceedingsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listProceedings(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::ListProceedingsOutcomeCallable OpenSearchClient::listProceedingsCallable(const ListProceedingsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listProceedings(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::ListQueryProcessorAnalyzerResultsOutcome OpenSearchClient::listQueryProcessorAnalyzerResults(const ListQueryProcessorAnalyzerResultsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListQueryProcessorAnalyzerResultsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListQueryProcessorAnalyzerResultsOutcome(ListQueryProcessorAnalyzerResultsResult(outcome.result())); + else + return ListQueryProcessorAnalyzerResultsOutcome(outcome.error()); +} + +void OpenSearchClient::listQueryProcessorAnalyzerResultsAsync(const ListQueryProcessorAnalyzerResultsRequest& request, const ListQueryProcessorAnalyzerResultsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listQueryProcessorAnalyzerResults(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::ListQueryProcessorAnalyzerResultsOutcomeCallable OpenSearchClient::listQueryProcessorAnalyzerResultsCallable(const ListQueryProcessorAnalyzerResultsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listQueryProcessorAnalyzerResults(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OpenSearchClient::ListQueryProcessorNersOutcome OpenSearchClient::listQueryProcessorNers(const ListQueryProcessorNersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2751,6 +3399,42 @@ OpenSearchClient::ListScheduledTasksOutcomeCallable OpenSearchClient::listSchedu return task->get_future(); } +OpenSearchClient::ListSearchStrategiesOutcome OpenSearchClient::listSearchStrategies(const ListSearchStrategiesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSearchStrategiesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSearchStrategiesOutcome(ListSearchStrategiesResult(outcome.result())); + else + return ListSearchStrategiesOutcome(outcome.error()); +} + +void OpenSearchClient::listSearchStrategiesAsync(const ListSearchStrategiesRequest& request, const ListSearchStrategiesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSearchStrategies(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::ListSearchStrategiesOutcomeCallable OpenSearchClient::listSearchStrategiesCallable(const ListSearchStrategiesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSearchStrategies(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OpenSearchClient::ListSecondRanksOutcome OpenSearchClient::listSecondRanks(const ListSecondRanksRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3003,6 +3687,42 @@ OpenSearchClient::ListStatisticReportOutcomeCallable OpenSearchClient::listStati return task->get_future(); } +OpenSearchClient::ListTagResourcesOutcome OpenSearchClient::listTagResources(const ListTagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListTagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListTagResourcesOutcome(ListTagResourcesResult(outcome.result())); + else + return ListTagResourcesOutcome(outcome.error()); +} + +void OpenSearchClient::listTagResourcesAsync(const ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::ListTagResourcesOutcomeCallable OpenSearchClient::listTagResourcesCallable(const ListTagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OpenSearchClient::ListUserAnalyzerEntriesOutcome OpenSearchClient::listUserAnalyzerEntries(const ListUserAnalyzerEntriesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3759,6 +4479,42 @@ OpenSearchClient::RemoveScheduledTaskOutcomeCallable OpenSearchClient::removeSch return task->get_future(); } +OpenSearchClient::RemoveSearchStrategyOutcome OpenSearchClient::removeSearchStrategy(const RemoveSearchStrategyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveSearchStrategyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveSearchStrategyOutcome(RemoveSearchStrategyResult(outcome.result())); + else + return RemoveSearchStrategyOutcome(outcome.error()); +} + +void OpenSearchClient::removeSearchStrategyAsync(const RemoveSearchStrategyRequest& request, const RemoveSearchStrategyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeSearchStrategy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::RemoveSearchStrategyOutcomeCallable OpenSearchClient::removeSearchStrategyCallable(const RemoveSearchStrategyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeSearchStrategy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OpenSearchClient::RemoveSecondRankOutcome OpenSearchClient::removeSecondRank(const RemoveSecondRankRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3975,6 +4731,42 @@ OpenSearchClient::StartSlowQueryAnalyzerOutcomeCallable OpenSearchClient::startS return task->get_future(); } +OpenSearchClient::TagResourcesOutcome OpenSearchClient::tagResources(const TagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return TagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TagResourcesOutcome(TagResourcesResult(outcome.result())); + else + return TagResourcesOutcome(outcome.error()); +} + +void OpenSearchClient::tagResourcesAsync(const TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, tagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::TagResourcesOutcomeCallable OpenSearchClient::tagResourcesCallable(const TagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->tagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OpenSearchClient::TrainModelOutcome OpenSearchClient::trainModel(const TrainModelRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4011,6 +4803,114 @@ OpenSearchClient::TrainModelOutcomeCallable OpenSearchClient::trainModelCallable return task->get_future(); } +OpenSearchClient::UnbindESUserAnalyzerOutcome OpenSearchClient::unbindESUserAnalyzer(const UnbindESUserAnalyzerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UnbindESUserAnalyzerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnbindESUserAnalyzerOutcome(UnbindESUserAnalyzerResult(outcome.result())); + else + return UnbindESUserAnalyzerOutcome(outcome.error()); +} + +void OpenSearchClient::unbindESUserAnalyzerAsync(const UnbindESUserAnalyzerRequest& request, const UnbindESUserAnalyzerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unbindESUserAnalyzer(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::UnbindESUserAnalyzerOutcomeCallable OpenSearchClient::unbindESUserAnalyzerCallable(const UnbindESUserAnalyzerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unbindESUserAnalyzer(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::UnbindEsInstanceOutcome OpenSearchClient::unbindEsInstance(const UnbindEsInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UnbindEsInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnbindEsInstanceOutcome(UnbindEsInstanceResult(outcome.result())); + else + return UnbindEsInstanceOutcome(outcome.error()); +} + +void OpenSearchClient::unbindEsInstanceAsync(const UnbindEsInstanceRequest& request, const UnbindEsInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unbindEsInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::UnbindEsInstanceOutcomeCallable OpenSearchClient::unbindEsInstanceCallable(const UnbindEsInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unbindEsInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::UntagResourcesOutcome OpenSearchClient::untagResources(const UntagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UntagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UntagResourcesOutcome(UntagResourcesResult(outcome.result())); + else + return UntagResourcesOutcome(outcome.error()); +} + +void OpenSearchClient::untagResourcesAsync(const UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, untagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::UntagResourcesOutcomeCallable OpenSearchClient::untagResourcesCallable(const UntagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->untagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OpenSearchClient::UpdateABTestExperimentOutcome OpenSearchClient::updateABTestExperiment(const UpdateABTestExperimentRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4191,6 +5091,114 @@ OpenSearchClient::UpdateFetchFieldsOutcomeCallable OpenSearchClient::updateFetch return task->get_future(); } +OpenSearchClient::UpdateFunctionDefaultInstanceOutcome OpenSearchClient::updateFunctionDefaultInstance(const UpdateFunctionDefaultInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateFunctionDefaultInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateFunctionDefaultInstanceOutcome(UpdateFunctionDefaultInstanceResult(outcome.result())); + else + return UpdateFunctionDefaultInstanceOutcome(outcome.error()); +} + +void OpenSearchClient::updateFunctionDefaultInstanceAsync(const UpdateFunctionDefaultInstanceRequest& request, const UpdateFunctionDefaultInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateFunctionDefaultInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::UpdateFunctionDefaultInstanceOutcomeCallable OpenSearchClient::updateFunctionDefaultInstanceCallable(const UpdateFunctionDefaultInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateFunctionDefaultInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::UpdateFunctionInstanceOutcome OpenSearchClient::updateFunctionInstance(const UpdateFunctionInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateFunctionInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateFunctionInstanceOutcome(UpdateFunctionInstanceResult(outcome.result())); + else + return UpdateFunctionInstanceOutcome(outcome.error()); +} + +void OpenSearchClient::updateFunctionInstanceAsync(const UpdateFunctionInstanceRequest& request, const UpdateFunctionInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateFunctionInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::UpdateFunctionInstanceOutcomeCallable OpenSearchClient::updateFunctionInstanceCallable(const UpdateFunctionInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateFunctionInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenSearchClient::UpdateSearchStrategyOutcome OpenSearchClient::updateSearchStrategy(const UpdateSearchStrategyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateSearchStrategyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateSearchStrategyOutcome(UpdateSearchStrategyResult(outcome.result())); + else + return UpdateSearchStrategyOutcome(outcome.error()); +} + +void OpenSearchClient::updateSearchStrategyAsync(const UpdateSearchStrategyRequest& request, const UpdateSearchStrategyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateSearchStrategy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::UpdateSearchStrategyOutcomeCallable OpenSearchClient::updateSearchStrategyCallable(const UpdateSearchStrategyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateSearchStrategy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OpenSearchClient::UpdateSortScriptOutcome OpenSearchClient::updateSortScript(const UpdateSortScriptRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4263,3 +5271,39 @@ OpenSearchClient::UpdateSummariesOutcomeCallable OpenSearchClient::updateSummari return task->get_future(); } +OpenSearchClient::ValidateDataSourcesOutcome OpenSearchClient::validateDataSources(const ValidateDataSourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ValidateDataSourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ValidateDataSourcesOutcome(ValidateDataSourcesResult(outcome.result())); + else + return ValidateDataSourcesOutcome(outcome.error()); +} + +void OpenSearchClient::validateDataSourcesAsync(const ValidateDataSourcesRequest& request, const ValidateDataSourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, validateDataSources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenSearchClient::ValidateDataSourcesOutcomeCallable OpenSearchClient::validateDataSourcesCallable(const ValidateDataSourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->validateDataSources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/opensearch/src/model/BindESUserAnalyzerRequest.cc b/opensearch/src/model/BindESUserAnalyzerRequest.cc new file mode 100644 index 000000000..7a1d62112 --- /dev/null +++ b/opensearch/src/model/BindESUserAnalyzerRequest.cc @@ -0,0 +1,46 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BindESUserAnalyzerRequest; + +BindESUserAnalyzerRequest::BindESUserAnalyzerRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/es/[esInstanceId]/actions/bind-analyzer"}; + setMethod(HttpRequest::Method::Post); +} + +BindESUserAnalyzerRequest::~BindESUserAnalyzerRequest() {} + +std::string BindESUserAnalyzerRequest::getEsInstanceId() const { + return esInstanceId_; +} + +void BindESUserAnalyzerRequest::setEsInstanceId(const std::string &esInstanceId) { + esInstanceId_ = esInstanceId; + setParameter(std::string("esInstanceId"), esInstanceId); +} + +std::string BindESUserAnalyzerRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void BindESUserAnalyzerRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); +} + diff --git a/opensearch/src/model/BindESUserAnalyzerResult.cc b/opensearch/src/model/BindESUserAnalyzerResult.cc new file mode 100644 index 000000000..8baf77a3e --- /dev/null +++ b/opensearch/src/model/BindESUserAnalyzerResult.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; + +BindESUserAnalyzerResult::BindESUserAnalyzerResult() : + ServiceResult() +{} + +BindESUserAnalyzerResult::BindESUserAnalyzerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +BindESUserAnalyzerResult::~BindESUserAnalyzerResult() +{} + +void BindESUserAnalyzerResult::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(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string BindESUserAnalyzerResult::getRequestId()const +{ + return requestId_; +} + +std::string BindESUserAnalyzerResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/BindEsInstanceRequest.cc b/opensearch/src/model/BindEsInstanceRequest.cc new file mode 100644 index 000000000..a22c1dcef --- /dev/null +++ b/opensearch/src/model/BindEsInstanceRequest.cc @@ -0,0 +1,37 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BindEsInstanceRequest; + +BindEsInstanceRequest::BindEsInstanceRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/actions/bind-es-instance"}; + setMethod(HttpRequest::Method::Post); +} + +BindEsInstanceRequest::~BindEsInstanceRequest() {} + +std::string BindEsInstanceRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void BindEsInstanceRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); +} + diff --git a/opensearch/src/model/BindEsInstanceResult.cc b/opensearch/src/model/BindEsInstanceResult.cc new file mode 100644 index 000000000..ba53da1bd --- /dev/null +++ b/opensearch/src/model/BindEsInstanceResult.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; + +BindEsInstanceResult::BindEsInstanceResult() : + ServiceResult() +{} + +BindEsInstanceResult::BindEsInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +BindEsInstanceResult::~BindEsInstanceResult() +{} + +void BindEsInstanceResult::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(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string BindEsInstanceResult::getRequestId()const +{ + return requestId_; +} + +std::string BindEsInstanceResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/CompileSortScriptRequest.cc b/opensearch/src/model/CompileSortScriptRequest.cc index 57d98aea3..d1678ab4d 100644 --- a/opensearch/src/model/CompileSortScriptRequest.cc +++ b/opensearch/src/model/CompileSortScriptRequest.cc @@ -1,63 +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. - */ - -#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_; + */ + +#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); } -void CompileSortScriptRequest::setAppVersionId(const std::string& appVersionId) -{ - appVersionId_ = appVersionId; - setParameter("AppVersionId", appVersionId); +CompileSortScriptRequest::~CompileSortScriptRequest() {} + +std::string CompileSortScriptRequest::getAppVersionId() const { + return appVersionId_; } -std::string CompileSortScriptRequest::getScriptName()const -{ - return scriptName_; +void CompileSortScriptRequest::setAppVersionId(const std::string &appVersionId) { + appVersionId_ = appVersionId; + setParameter(std::string("appVersionId"), appVersionId); } -void CompileSortScriptRequest::setScriptName(const std::string& scriptName) -{ - scriptName_ = scriptName; - setParameter("ScriptName", scriptName); +std::string CompileSortScriptRequest::getScriptName() const { + return scriptName_; } -std::string CompileSortScriptRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void CompileSortScriptRequest::setScriptName(const std::string &scriptName) { + scriptName_ = scriptName; + setParameter(std::string("scriptName"), scriptName); } -void CompileSortScriptRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string CompileSortScriptRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void CompileSortScriptRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/CreateABTestExperimentRequest.cc b/opensearch/src/model/CreateABTestExperimentRequest.cc index dc4f7a638..4dd7308fa 100644 --- a/opensearch/src/model/CreateABTestExperimentRequest.cc +++ b/opensearch/src/model/CreateABTestExperimentRequest.cc @@ -1,63 +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. - */ - -#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_; + */ + +#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); } -void CreateABTestExperimentRequest::setGroupId(int groupId) -{ - groupId_ = groupId; - setParameter("GroupId", std::to_string(groupId)); +CreateABTestExperimentRequest::~CreateABTestExperimentRequest() {} + +int CreateABTestExperimentRequest::getGroupId() const { + return groupId_; } -int CreateABTestExperimentRequest::getSceneId()const -{ - return sceneId_; +void CreateABTestExperimentRequest::setGroupId(int groupId) { + groupId_ = groupId; + setParameter(std::string("groupId"), std::to_string(groupId)); } -void CreateABTestExperimentRequest::setSceneId(int sceneId) -{ - sceneId_ = sceneId; - setParameter("SceneId", std::to_string(sceneId)); +int CreateABTestExperimentRequest::getSceneId() const { + return sceneId_; } -std::string CreateABTestExperimentRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void CreateABTestExperimentRequest::setSceneId(int sceneId) { + sceneId_ = sceneId; + setParameter(std::string("sceneId"), std::to_string(sceneId)); } -void CreateABTestExperimentRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string CreateABTestExperimentRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void CreateABTestExperimentRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/CreateABTestExperimentResult.cc b/opensearch/src/model/CreateABTestExperimentResult.cc index 3dc36a6af..204bc786d 100644 --- a/opensearch/src/model/CreateABTestExperimentResult.cc +++ b/opensearch/src/model/CreateABTestExperimentResult.cc @@ -40,20 +40,20 @@ void CreateABTestExperimentResult::parse(const std::string &payload) 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["params"].isNull()) + result_.params = resultNode["params"].asString(); if(!resultNode["traffic"].isNull()) result_.traffic = std::stoi(resultNode["traffic"].asString()); + if(!resultNode["online"].isNull()) + result_.online = resultNode["online"].asString() == "true"; + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["updated"].isNull()) + result_.updated = std::stoi(resultNode["updated"].asString()); + if(!resultNode["id"].isNull()) + result_.id = resultNode["id"].asString(); if(!value["requestId"].isNull()) requestId_ = value["requestId"].asString(); diff --git a/opensearch/src/model/CreateABTestGroupRequest.cc b/opensearch/src/model/CreateABTestGroupRequest.cc index 2d4ceed2b..b20be6499 100644 --- a/opensearch/src/model/CreateABTestGroupRequest.cc +++ b/opensearch/src/model/CreateABTestGroupRequest.cc @@ -1,52 +1,46 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#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); } -void CreateABTestGroupRequest::setSceneId(int sceneId) -{ - sceneId_ = sceneId; - setParameter("SceneId", std::to_string(sceneId)); +CreateABTestGroupRequest::~CreateABTestGroupRequest() {} + +int CreateABTestGroupRequest::getSceneId() const { + return sceneId_; } -std::string CreateABTestGroupRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void CreateABTestGroupRequest::setSceneId(int sceneId) { + sceneId_ = sceneId; + setParameter(std::string("sceneId"), std::to_string(sceneId)); } -void CreateABTestGroupRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string CreateABTestGroupRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void CreateABTestGroupRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/CreateABTestGroupResult.cc b/opensearch/src/model/CreateABTestGroupResult.cc index 8ca7b9a76..c8f80bed6 100644 --- a/opensearch/src/model/CreateABTestGroupResult.cc +++ b/opensearch/src/model/CreateABTestGroupResult.cc @@ -40,16 +40,16 @@ void CreateABTestGroupResult::parse(const std::string &payload) 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["status"].isNull()) + result_.status = std::stoi(resultNode["status"].asString()); if(!resultNode["updated"].isNull()) result_.updated = std::stoi(resultNode["updated"].asString()); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["id"].isNull()) + result_.id = resultNode["id"].asString(); if(!value["requestId"].isNull()) requestId_ = value["requestId"].asString(); diff --git a/opensearch/src/model/CreateABTestSceneRequest.cc b/opensearch/src/model/CreateABTestSceneRequest.cc index e21766dce..434e95b57 100644 --- a/opensearch/src/model/CreateABTestSceneRequest.cc +++ b/opensearch/src/model/CreateABTestSceneRequest.cc @@ -1,41 +1,37 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#include + +using AlibabaCloud::OpenSearch::Model::CreateABTestSceneRequest; + +CreateABTestSceneRequest::CreateABTestSceneRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/scenes"}; + setMethod(HttpRequest::Method::Post); } -void CreateABTestSceneRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +CreateABTestSceneRequest::~CreateABTestSceneRequest() {} + +std::string CreateABTestSceneRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void CreateABTestSceneRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/CreateABTestSceneResult.cc b/opensearch/src/model/CreateABTestSceneResult.cc index 39fd2ea1a..b843aba4a 100644 --- a/opensearch/src/model/CreateABTestSceneResult.cc +++ b/opensearch/src/model/CreateABTestSceneResult.cc @@ -40,16 +40,16 @@ void CreateABTestSceneResult::parse(const std::string &payload) 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["status"].isNull()) + result_.status = std::stoi(resultNode["status"].asString()); if(!resultNode["updated"].isNull()) result_.updated = std::stoi(resultNode["updated"].asString()); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["id"].isNull()) + result_.id = resultNode["id"].asString(); auto allValues = resultNode["values"]["values"]; for (auto value : allValues) result_.values.push_back(value.asString()); diff --git a/opensearch/src/model/CreateAppGroupRequest.cc b/opensearch/src/model/CreateAppGroupRequest.cc index d6edb1881..1f0da0ae8 100644 --- a/opensearch/src/model/CreateAppGroupRequest.cc +++ b/opensearch/src/model/CreateAppGroupRequest.cc @@ -1,30 +1,28 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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() -{} - + */ + +#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 index 2cf88ffe1..2b5580bda 100644 --- a/opensearch/src/model/CreateAppGroupResult.cc +++ b/opensearch/src/model/CreateAppGroupResult.cc @@ -40,61 +40,61 @@ void CreateAppGroupResult::parse(const std::string &payload) 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["currentVersion"].isNull()) result_.currentVersion = resultNode["currentVersion"].asString(); - if(!resultNode["switchedTime"].isNull()) - result_.switchedTime = std::stoi(resultNode["switchedTime"].asString()); + if(!resultNode["pendingSecondRankAlgoDeploymentId"].isNull()) + result_.pendingSecondRankAlgoDeploymentId = std::stoi(resultNode["pendingSecondRankAlgoDeploymentId"].asString()); + if(!resultNode["lockMode"].isNull()) + result_.lockMode = resultNode["lockMode"].asString(); + if(!resultNode["updated"].isNull()) + result_.updated = std::stoi(resultNode["updated"].asString()); + if(!resultNode["id"].isNull()) + result_.id = resultNode["id"].asString(); + if(!resultNode["chargeType"].isNull()) + result_.chargeType = resultNode["chargeType"].asString(); + if(!resultNode["hasPendingQuotaReviewTask"].isNull()) + result_.hasPendingQuotaReviewTask = std::stoi(resultNode["hasPendingQuotaReviewTask"].asString()); + if(!resultNode["secondRankAlgoDeploymentId"].isNull()) + result_.secondRankAlgoDeploymentId = std::stoi(resultNode["secondRankAlgoDeploymentId"].asString()); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["instanceId"].isNull()) + result_.instanceId = resultNode["instanceId"].asString(); + if(!resultNode["processingOrderId"].isNull()) + result_.processingOrderId = resultNode["processingOrderId"].asString(); if(!resultNode["chargingWay"].isNull()) result_.chargingWay = std::stoi(resultNode["chargingWay"].asString()); if(!resultNode["type"].isNull()) result_.type = resultNode["type"].asString(); + if(!resultNode["status"].isNull()) + result_.status = resultNode["status"].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["switchedTime"].isNull()) + result_.switchedTime = std::stoi(resultNode["switchedTime"].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["expireOn"].isNull()) + result_.expireOn = resultNode["expireOn"].asString(); + if(!resultNode["domain"].isNull()) + result_.domain = resultNode["domain"].asString(); if(!resultNode["description"].isNull()) result_.description = resultNode["description"].asString(); + if(!resultNode["firstRankAlgoDeploymentId"].isNull()) + result_.firstRankAlgoDeploymentId = std::stoi(resultNode["firstRankAlgoDeploymentId"].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(); - if(!resultNode["domain"].isNull()) - result_.domain = resultNode["domain"].asString(); auto quotaNode = resultNode["quota"]; + if(!quotaNode["spec"].isNull()) + result_.quota.spec = quotaNode["spec"].asString(); 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(); diff --git a/opensearch/src/model/CreateAppRequest.cc b/opensearch/src/model/CreateAppRequest.cc index 4e66235b9..4e30a90ba 100644 --- a/opensearch/src/model/CreateAppRequest.cc +++ b/opensearch/src/model/CreateAppRequest.cc @@ -1,52 +1,46 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#include + +using AlibabaCloud::OpenSearch::Model::CreateAppRequest; + +CreateAppRequest::CreateAppRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps"}; + setMethod(HttpRequest::Method::Post); } -void CreateAppRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +CreateAppRequest::~CreateAppRequest() {} + +bool CreateAppRequest::getDryRun() const { + return dryRun_; } -std::string CreateAppRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void CreateAppRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("dryRun"), dryRun ? "true" : "false"); } -void CreateAppRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string CreateAppRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void CreateAppRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/CreateAppResult.cc b/opensearch/src/model/CreateAppResult.cc index e024fe1f4..c02c72e51 100644 --- a/opensearch/src/model/CreateAppResult.cc +++ b/opensearch/src/model/CreateAppResult.cc @@ -39,10 +39,10 @@ void CreateAppResult::parse(const std::string &payload) 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(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); } diff --git a/opensearch/src/model/CreateDataCollectionRequest.cc b/opensearch/src/model/CreateDataCollectionRequest.cc index 738907c5b..cfa4e1889 100644 --- a/opensearch/src/model/CreateDataCollectionRequest.cc +++ b/opensearch/src/model/CreateDataCollectionRequest.cc @@ -1,41 +1,37 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#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); } -void CreateDataCollectionRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +CreateDataCollectionRequest::~CreateDataCollectionRequest() {} + +std::string CreateDataCollectionRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void CreateDataCollectionRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/CreateDataCollectionResult.cc b/opensearch/src/model/CreateDataCollectionResult.cc index 7c9ebb6bb..77a0b04c3 100644 --- a/opensearch/src/model/CreateDataCollectionResult.cc +++ b/opensearch/src/model/CreateDataCollectionResult.cc @@ -40,24 +40,24 @@ void CreateDataCollectionResult::parse(const std::string &payload) 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["dataCollectionType"].isNull()) + result_.dataCollectionType = resultNode["dataCollectionType"].asString(); + if(!resultNode["type"].isNull()) + result_.type = resultNode["type"].asString(); + if(!resultNode["industryName"].isNull()) + result_.industryName = resultNode["industryName"].asString(); + if(!resultNode["status"].isNull()) + result_.status = std::stoi(resultNode["status"].asString()); if(!resultNode["updated"].isNull()) result_.updated = std::stoi(resultNode["updated"].asString()); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); if(!resultNode["sundialId"].isNull()) result_.sundialId = resultNode["sundialId"].asString(); + if(!resultNode["id"].isNull()) + result_.id = resultNode["id"].asString(); if(!value["requestId"].isNull()) requestId_ = value["requestId"].asString(); diff --git a/opensearch/src/model/CreateFirstRankRequest.cc b/opensearch/src/model/CreateFirstRankRequest.cc index a3bef9240..b9b456a11 100644 --- a/opensearch/src/model/CreateFirstRankRequest.cc +++ b/opensearch/src/model/CreateFirstRankRequest.cc @@ -1,63 +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. - */ - -#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_; + */ + +#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); } -void CreateFirstRankRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +CreateFirstRankRequest::~CreateFirstRankRequest() {} + +bool CreateFirstRankRequest::getDryRun() const { + return dryRun_; } -int CreateFirstRankRequest::getAppId()const -{ - return appId_; +void CreateFirstRankRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("dryRun"), dryRun ? "true" : "false"); } -void CreateFirstRankRequest::setAppId(int appId) -{ - appId_ = appId; - setParameter("AppId", std::to_string(appId)); +int CreateFirstRankRequest::getAppId() const { + return appId_; } -std::string CreateFirstRankRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void CreateFirstRankRequest::setAppId(int appId) { + appId_ = appId; + setParameter(std::string("appId"), std::to_string(appId)); } -void CreateFirstRankRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string CreateFirstRankRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void CreateFirstRankRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/CreateFirstRankResult.cc b/opensearch/src/model/CreateFirstRankResult.cc index d6bacfbb3..1754161ca 100644 --- a/opensearch/src/model/CreateFirstRankResult.cc +++ b/opensearch/src/model/CreateFirstRankResult.cc @@ -40,18 +40,18 @@ void CreateFirstRankResult::parse(const std::string &payload) 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["name"].isNull()) + result_.name = resultNode["name"].asString(); 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["attribute"].isNull()) + metaItemObject.attribute = resultNodemetametaItem["attribute"].asString(); if(!resultNodemetametaItem["weight"].isNull()) metaItemObject.weight = std::stof(resultNodemetametaItem["weight"].asString()); result_.meta.push_back(metaItemObject); diff --git a/opensearch/src/model/CreateFunctionInstanceRequest.cc b/opensearch/src/model/CreateFunctionInstanceRequest.cc new file mode 100644 index 000000000..e6c241d0e --- /dev/null +++ b/opensearch/src/model/CreateFunctionInstanceRequest.cc @@ -0,0 +1,46 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CreateFunctionInstanceRequest; + +CreateFunctionInstanceRequest::CreateFunctionInstanceRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/functions/[functionName]/instances"}; + setMethod(HttpRequest::Method::Post); +} + +CreateFunctionInstanceRequest::~CreateFunctionInstanceRequest() {} + +std::string CreateFunctionInstanceRequest::getFunctionName() const { + return functionName_; +} + +void CreateFunctionInstanceRequest::setFunctionName(const std::string &functionName) { + functionName_ = functionName; + setParameter(std::string("functionName"), functionName); +} + +std::string CreateFunctionInstanceRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void CreateFunctionInstanceRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); +} + diff --git a/opensearch/src/model/CreateFunctionInstanceResult.cc b/opensearch/src/model/CreateFunctionInstanceResult.cc new file mode 100644 index 000000000..4e3866c2a --- /dev/null +++ b/opensearch/src/model/CreateFunctionInstanceResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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; + +CreateFunctionInstanceResult::CreateFunctionInstanceResult() : + ServiceResult() +{} + +CreateFunctionInstanceResult::CreateFunctionInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateFunctionInstanceResult::~CreateFunctionInstanceResult() +{} + +void CreateFunctionInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["HttpCode"].isNull()) + httpCode_ = std::stol(value["HttpCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Latency"].isNull()) + latency_ = std::stol(value["Latency"].asString()); + +} + +std::string CreateFunctionInstanceResult::getStatus()const +{ + return status_; +} + +long CreateFunctionInstanceResult::getHttpCode()const +{ + return httpCode_; +} + +std::string CreateFunctionInstanceResult::getMessage()const +{ + return message_; +} + +std::string CreateFunctionInstanceResult::getCode()const +{ + return code_; +} + +long CreateFunctionInstanceResult::getLatency()const +{ + return latency_; +} + diff --git a/opensearch/src/model/CreateFunctionTaskRequest.cc b/opensearch/src/model/CreateFunctionTaskRequest.cc new file mode 100644 index 000000000..dd9af1680 --- /dev/null +++ b/opensearch/src/model/CreateFunctionTaskRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::CreateFunctionTaskRequest; + +CreateFunctionTaskRequest::CreateFunctionTaskRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/functions/[functionName]/instances/[instanceName]/tasks"}; + setMethod(HttpRequest::Method::Post); +} + +CreateFunctionTaskRequest::~CreateFunctionTaskRequest() {} + +std::string CreateFunctionTaskRequest::getInstanceName() const { + return instanceName_; +} + +void CreateFunctionTaskRequest::setInstanceName(const std::string &instanceName) { + instanceName_ = instanceName; + setParameter(std::string("instanceName"), instanceName); +} + +std::string CreateFunctionTaskRequest::getFunctionName() const { + return functionName_; +} + +void CreateFunctionTaskRequest::setFunctionName(const std::string &functionName) { + functionName_ = functionName; + setParameter(std::string("functionName"), functionName); +} + +std::string CreateFunctionTaskRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void CreateFunctionTaskRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); +} + diff --git a/opensearch/src/model/CreateFunctionTaskResult.cc b/opensearch/src/model/CreateFunctionTaskResult.cc new file mode 100644 index 000000000..24cb615fe --- /dev/null +++ b/opensearch/src/model/CreateFunctionTaskResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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; + +CreateFunctionTaskResult::CreateFunctionTaskResult() : + ServiceResult() +{} + +CreateFunctionTaskResult::CreateFunctionTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateFunctionTaskResult::~CreateFunctionTaskResult() +{} + +void CreateFunctionTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["HttpCode"].isNull()) + httpCode_ = std::stol(value["HttpCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Latency"].isNull()) + latency_ = std::stol(value["Latency"].asString()); + +} + +std::string CreateFunctionTaskResult::getStatus()const +{ + return status_; +} + +long CreateFunctionTaskResult::getHttpCode()const +{ + return httpCode_; +} + +std::string CreateFunctionTaskResult::getMessage()const +{ + return message_; +} + +std::string CreateFunctionTaskResult::getCode()const +{ + return code_; +} + +long CreateFunctionTaskResult::getLatency()const +{ + return latency_; +} + diff --git a/opensearch/src/model/CreateInterventionDictionaryRequest.cc b/opensearch/src/model/CreateInterventionDictionaryRequest.cc index 97f9b80e2..bc81b218d 100644 --- a/opensearch/src/model/CreateInterventionDictionaryRequest.cc +++ b/opensearch/src/model/CreateInterventionDictionaryRequest.cc @@ -1,30 +1,28 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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() -{} - + */ + +#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 index 3cae3a3f4..8c4b05e3b 100644 --- a/opensearch/src/model/CreateInterventionDictionaryResult.cc +++ b/opensearch/src/model/CreateInterventionDictionaryResult.cc @@ -40,16 +40,16 @@ void CreateInterventionDictionaryResult::parse(const std::string &payload) 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["analyzer"].isNull()) + result_.analyzer = resultNode["analyzer"].asString(); if(!resultNode["updated"].isNull()) result_.updated = resultNode["updated"].asString(); + if(!resultNode["type"].isNull()) + result_.type = resultNode["type"].asString(); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); if(!value["requestId"].isNull()) requestId_ = value["requestId"].asString(); diff --git a/opensearch/src/model/CreateModelRequest.cc b/opensearch/src/model/CreateModelRequest.cc index 7d0d678d0..3270dee2a 100644 --- a/opensearch/src/model/CreateModelRequest.cc +++ b/opensearch/src/model/CreateModelRequest.cc @@ -1,41 +1,37 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#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); } -void CreateModelRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +CreateModelRequest::~CreateModelRequest() {} + +std::string CreateModelRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void CreateModelRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/CreateModelResult.cc b/opensearch/src/model/CreateModelResult.cc index 8423f56ff..1550f3d09 100644 --- a/opensearch/src/model/CreateModelResult.cc +++ b/opensearch/src/model/CreateModelResult.cc @@ -39,10 +39,10 @@ void CreateModelResult::parse(const std::string &payload) 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(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); } diff --git a/opensearch/src/model/CreateQueryProcessorRequest.cc b/opensearch/src/model/CreateQueryProcessorRequest.cc index 2c3baa464..a29460b74 100644 --- a/opensearch/src/model/CreateQueryProcessorRequest.cc +++ b/opensearch/src/model/CreateQueryProcessorRequest.cc @@ -1,63 +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. - */ - -#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_; + */ + +#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); } -void CreateQueryProcessorRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +CreateQueryProcessorRequest::~CreateQueryProcessorRequest() {} + +bool CreateQueryProcessorRequest::getDryRun() const { + return dryRun_; } -int CreateQueryProcessorRequest::getAppId()const -{ - return appId_; +void CreateQueryProcessorRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("dryRun"), dryRun ? "true" : "false"); } -void CreateQueryProcessorRequest::setAppId(int appId) -{ - appId_ = appId; - setParameter("AppId", std::to_string(appId)); +int CreateQueryProcessorRequest::getAppId() const { + return appId_; } -std::string CreateQueryProcessorRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void CreateQueryProcessorRequest::setAppId(int appId) { + appId_ = appId; + setParameter(std::string("appId"), std::to_string(appId)); } -void CreateQueryProcessorRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string CreateQueryProcessorRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void CreateQueryProcessorRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/CreateQueryProcessorResult.cc b/opensearch/src/model/CreateQueryProcessorResult.cc index 2375ccb06..d17651276 100644 --- a/opensearch/src/model/CreateQueryProcessorResult.cc +++ b/opensearch/src/model/CreateQueryProcessorResult.cc @@ -40,16 +40,16 @@ void CreateQueryProcessorResult::parse(const std::string &payload) 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["active"].isNull()) + result_.active = resultNode["active"].asString() == "true"; if(!resultNode["updated"].isNull()) result_.updated = std::stoi(resultNode["updated"].asString()); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["domain"].isNull()) + result_.domain = resultNode["domain"].asString(); auto allIndexes = resultNode["indexes"]["indexes"]; for (auto value : allIndexes) result_.indexes.push_back(value.asString()); diff --git a/opensearch/src/model/CreateScheduledTaskRequest.cc b/opensearch/src/model/CreateScheduledTaskRequest.cc index cbda13d5a..3d0799e7a 100644 --- a/opensearch/src/model/CreateScheduledTaskRequest.cc +++ b/opensearch/src/model/CreateScheduledTaskRequest.cc @@ -1,41 +1,37 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#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); } -void CreateScheduledTaskRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +CreateScheduledTaskRequest::~CreateScheduledTaskRequest() {} + +std::string CreateScheduledTaskRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void CreateScheduledTaskRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/CreateScheduledTaskResult.cc b/opensearch/src/model/CreateScheduledTaskResult.cc index adbf2108c..5cfd4325a 100644 --- a/opensearch/src/model/CreateScheduledTaskResult.cc +++ b/opensearch/src/model/CreateScheduledTaskResult.cc @@ -39,10 +39,10 @@ void CreateScheduledTaskResult::parse(const std::string &payload) 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(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); } diff --git a/opensearch/src/model/CreateSearchStrategyRequest.cc b/opensearch/src/model/CreateSearchStrategyRequest.cc new file mode 100644 index 000000000..fe006cc54 --- /dev/null +++ b/opensearch/src/model/CreateSearchStrategyRequest.cc @@ -0,0 +1,46 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CreateSearchStrategyRequest; + +CreateSearchStrategyRequest::CreateSearchStrategyRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appId]/search-strategies"}; + setMethod(HttpRequest::Method::Post); +} + +CreateSearchStrategyRequest::~CreateSearchStrategyRequest() {} + +std::string CreateSearchStrategyRequest::getAppId() const { + return appId_; +} + +void CreateSearchStrategyRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("appId"), appId); +} + +std::string CreateSearchStrategyRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void CreateSearchStrategyRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); +} + diff --git a/opensearch/src/model/CreateSearchStrategyResult.cc b/opensearch/src/model/CreateSearchStrategyResult.cc new file mode 100644 index 000000000..f22c5b71b --- /dev/null +++ b/opensearch/src/model/CreateSearchStrategyResult.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; + +CreateSearchStrategyResult::CreateSearchStrategyResult() : + ServiceResult() +{} + +CreateSearchStrategyResult::CreateSearchStrategyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateSearchStrategyResult::~CreateSearchStrategyResult() +{} + +void CreateSearchStrategyResult::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 CreateSearchStrategyResult::getRequestId()const +{ + return requestId_; +} + diff --git a/opensearch/src/model/CreateSecondRankRequest.cc b/opensearch/src/model/CreateSecondRankRequest.cc index 0c30f2e49..080430dcc 100644 --- a/opensearch/src/model/CreateSecondRankRequest.cc +++ b/opensearch/src/model/CreateSecondRankRequest.cc @@ -1,63 +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. - */ - -#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_; + */ + +#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); } -void CreateSecondRankRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +CreateSecondRankRequest::~CreateSecondRankRequest() {} + +bool CreateSecondRankRequest::getDryRun() const { + return dryRun_; } -int CreateSecondRankRequest::getAppId()const -{ - return appId_; +void CreateSecondRankRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("dryRun"), dryRun ? "true" : "false"); } -void CreateSecondRankRequest::setAppId(int appId) -{ - appId_ = appId; - setParameter("AppId", std::to_string(appId)); +int CreateSecondRankRequest::getAppId() const { + return appId_; } -std::string CreateSecondRankRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void CreateSecondRankRequest::setAppId(int appId) { + appId_ = appId; + setParameter(std::string("appId"), std::to_string(appId)); } -void CreateSecondRankRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string CreateSecondRankRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void CreateSecondRankRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/CreateSortScriptRequest.cc b/opensearch/src/model/CreateSortScriptRequest.cc index fe96f45d5..f37e86cb2 100644 --- a/opensearch/src/model/CreateSortScriptRequest.cc +++ b/opensearch/src/model/CreateSortScriptRequest.cc @@ -1,52 +1,46 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#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); } -void CreateSortScriptRequest::setAppVersionId(const std::string& appVersionId) -{ - appVersionId_ = appVersionId; - setParameter("AppVersionId", appVersionId); +CreateSortScriptRequest::~CreateSortScriptRequest() {} + +std::string CreateSortScriptRequest::getAppVersionId() const { + return appVersionId_; } -std::string CreateSortScriptRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void CreateSortScriptRequest::setAppVersionId(const std::string &appVersionId) { + appVersionId_ = appVersionId; + setParameter(std::string("appVersionId"), appVersionId); } -void CreateSortScriptRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string CreateSortScriptRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void CreateSortScriptRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/CreateUserAnalyzerRequest.cc b/opensearch/src/model/CreateUserAnalyzerRequest.cc index 5bc536c74..d49c31729 100644 --- a/opensearch/src/model/CreateUserAnalyzerRequest.cc +++ b/opensearch/src/model/CreateUserAnalyzerRequest.cc @@ -1,30 +1,28 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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() -{} - + */ + +#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/DeleteABTestExperimentRequest.cc b/opensearch/src/model/DeleteABTestExperimentRequest.cc index 3e02eeccf..d25ba43ad 100644 --- a/opensearch/src/model/DeleteABTestExperimentRequest.cc +++ b/opensearch/src/model/DeleteABTestExperimentRequest.cc @@ -1,74 +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. - */ - -#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_; + */ + +#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); } -void DeleteABTestExperimentRequest::setGroupId(int groupId) -{ - groupId_ = groupId; - setParameter("GroupId", std::to_string(groupId)); +DeleteABTestExperimentRequest::~DeleteABTestExperimentRequest() {} + +int DeleteABTestExperimentRequest::getGroupId() const { + return groupId_; } -int DeleteABTestExperimentRequest::getSceneId()const -{ - return sceneId_; +void DeleteABTestExperimentRequest::setGroupId(int groupId) { + groupId_ = groupId; + setParameter(std::string("groupId"), std::to_string(groupId)); } -void DeleteABTestExperimentRequest::setSceneId(int sceneId) -{ - sceneId_ = sceneId; - setParameter("SceneId", std::to_string(sceneId)); +int DeleteABTestExperimentRequest::getSceneId() const { + return sceneId_; } -int DeleteABTestExperimentRequest::getExperimentId()const -{ - return experimentId_; +void DeleteABTestExperimentRequest::setSceneId(int sceneId) { + sceneId_ = sceneId; + setParameter(std::string("sceneId"), std::to_string(sceneId)); } -void DeleteABTestExperimentRequest::setExperimentId(int experimentId) -{ - experimentId_ = experimentId; - setParameter("ExperimentId", std::to_string(experimentId)); +int DeleteABTestExperimentRequest::getExperimentId() const { + return experimentId_; } -std::string DeleteABTestExperimentRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void DeleteABTestExperimentRequest::setExperimentId(int experimentId) { + experimentId_ = experimentId; + setParameter(std::string("experimentId"), std::to_string(experimentId)); } -void DeleteABTestExperimentRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string DeleteABTestExperimentRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void DeleteABTestExperimentRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/DeleteABTestExperimentResult.cc b/opensearch/src/model/DeleteABTestExperimentResult.cc index 9cb6f2800..118473127 100644 --- a/opensearch/src/model/DeleteABTestExperimentResult.cc +++ b/opensearch/src/model/DeleteABTestExperimentResult.cc @@ -39,10 +39,10 @@ void DeleteABTestExperimentResult::parse(const std::string &payload) 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(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); } diff --git a/opensearch/src/model/DeleteABTestGroupRequest.cc b/opensearch/src/model/DeleteABTestGroupRequest.cc index 3030b0e19..afa7f2457 100644 --- a/opensearch/src/model/DeleteABTestGroupRequest.cc +++ b/opensearch/src/model/DeleteABTestGroupRequest.cc @@ -1,63 +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. - */ - -#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_; + */ + +#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); } -void DeleteABTestGroupRequest::setGroupId(int groupId) -{ - groupId_ = groupId; - setParameter("GroupId", std::to_string(groupId)); +DeleteABTestGroupRequest::~DeleteABTestGroupRequest() {} + +int DeleteABTestGroupRequest::getGroupId() const { + return groupId_; } -int DeleteABTestGroupRequest::getSceneId()const -{ - return sceneId_; +void DeleteABTestGroupRequest::setGroupId(int groupId) { + groupId_ = groupId; + setParameter(std::string("groupId"), std::to_string(groupId)); } -void DeleteABTestGroupRequest::setSceneId(int sceneId) -{ - sceneId_ = sceneId; - setParameter("SceneId", std::to_string(sceneId)); +int DeleteABTestGroupRequest::getSceneId() const { + return sceneId_; } -std::string DeleteABTestGroupRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void DeleteABTestGroupRequest::setSceneId(int sceneId) { + sceneId_ = sceneId; + setParameter(std::string("sceneId"), std::to_string(sceneId)); } -void DeleteABTestGroupRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string DeleteABTestGroupRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void DeleteABTestGroupRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/DeleteABTestGroupResult.cc b/opensearch/src/model/DeleteABTestGroupResult.cc index 7850b62a0..7c31ab617 100644 --- a/opensearch/src/model/DeleteABTestGroupResult.cc +++ b/opensearch/src/model/DeleteABTestGroupResult.cc @@ -39,10 +39,10 @@ void DeleteABTestGroupResult::parse(const std::string &payload) 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(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); } diff --git a/opensearch/src/model/DeleteABTestSceneRequest.cc b/opensearch/src/model/DeleteABTestSceneRequest.cc index ed38d47b2..9b386748e 100644 --- a/opensearch/src/model/DeleteABTestSceneRequest.cc +++ b/opensearch/src/model/DeleteABTestSceneRequest.cc @@ -1,52 +1,46 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#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); } -void DeleteABTestSceneRequest::setSceneId(int sceneId) -{ - sceneId_ = sceneId; - setParameter("SceneId", std::to_string(sceneId)); +DeleteABTestSceneRequest::~DeleteABTestSceneRequest() {} + +int DeleteABTestSceneRequest::getSceneId() const { + return sceneId_; } -std::string DeleteABTestSceneRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void DeleteABTestSceneRequest::setSceneId(int sceneId) { + sceneId_ = sceneId; + setParameter(std::string("sceneId"), std::to_string(sceneId)); } -void DeleteABTestSceneRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string DeleteABTestSceneRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void DeleteABTestSceneRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/DeleteABTestSceneResult.cc b/opensearch/src/model/DeleteABTestSceneResult.cc index 51624c4e9..fbaae50eb 100644 --- a/opensearch/src/model/DeleteABTestSceneResult.cc +++ b/opensearch/src/model/DeleteABTestSceneResult.cc @@ -39,10 +39,10 @@ void DeleteABTestSceneResult::parse(const std::string &payload) 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(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); } diff --git a/opensearch/src/model/DeleteFunctionInstanceRequest.cc b/opensearch/src/model/DeleteFunctionInstanceRequest.cc new file mode 100644 index 000000000..01bfa0841 --- /dev/null +++ b/opensearch/src/model/DeleteFunctionInstanceRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::DeleteFunctionInstanceRequest; + +DeleteFunctionInstanceRequest::DeleteFunctionInstanceRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/functions/[functionName]/instances/[instanceName]"}; + setMethod(HttpRequest::Method::Delete); +} + +DeleteFunctionInstanceRequest::~DeleteFunctionInstanceRequest() {} + +std::string DeleteFunctionInstanceRequest::getInstanceName() const { + return instanceName_; +} + +void DeleteFunctionInstanceRequest::setInstanceName(const std::string &instanceName) { + instanceName_ = instanceName; + setParameter(std::string("instanceName"), instanceName); +} + +std::string DeleteFunctionInstanceRequest::getFunctionName() const { + return functionName_; +} + +void DeleteFunctionInstanceRequest::setFunctionName(const std::string &functionName) { + functionName_ = functionName; + setParameter(std::string("functionName"), functionName); +} + +std::string DeleteFunctionInstanceRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void DeleteFunctionInstanceRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); +} + diff --git a/opensearch/src/model/DeleteFunctionInstanceResult.cc b/opensearch/src/model/DeleteFunctionInstanceResult.cc new file mode 100644 index 000000000..7c5ba34bf --- /dev/null +++ b/opensearch/src/model/DeleteFunctionInstanceResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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; + +DeleteFunctionInstanceResult::DeleteFunctionInstanceResult() : + ServiceResult() +{} + +DeleteFunctionInstanceResult::DeleteFunctionInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteFunctionInstanceResult::~DeleteFunctionInstanceResult() +{} + +void DeleteFunctionInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["HttpCode"].isNull()) + httpCode_ = std::stol(value["HttpCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Latency"].isNull()) + latency_ = std::stol(value["Latency"].asString()); + +} + +std::string DeleteFunctionInstanceResult::getStatus()const +{ + return status_; +} + +long DeleteFunctionInstanceResult::getHttpCode()const +{ + return httpCode_; +} + +std::string DeleteFunctionInstanceResult::getMessage()const +{ + return message_; +} + +std::string DeleteFunctionInstanceResult::getCode()const +{ + return code_; +} + +long DeleteFunctionInstanceResult::getLatency()const +{ + return latency_; +} + diff --git a/opensearch/src/model/DeleteFunctionTaskRequest.cc b/opensearch/src/model/DeleteFunctionTaskRequest.cc new file mode 100644 index 000000000..c30ccbec9 --- /dev/null +++ b/opensearch/src/model/DeleteFunctionTaskRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::DeleteFunctionTaskRequest; + +DeleteFunctionTaskRequest::DeleteFunctionTaskRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/functions/[functionName]/instances/[instanceName]/tasks/[generation]"}; + setMethod(HttpRequest::Method::Delete); +} + +DeleteFunctionTaskRequest::~DeleteFunctionTaskRequest() {} + +std::string DeleteFunctionTaskRequest::getGeneration() const { + return generation_; +} + +void DeleteFunctionTaskRequest::setGeneration(const std::string &generation) { + generation_ = generation; + setParameter(std::string("generation"), generation); +} + +std::string DeleteFunctionTaskRequest::getInstanceName() const { + return instanceName_; +} + +void DeleteFunctionTaskRequest::setInstanceName(const std::string &instanceName) { + instanceName_ = instanceName; + setParameter(std::string("instanceName"), instanceName); +} + +std::string DeleteFunctionTaskRequest::getFunctionName() const { + return functionName_; +} + +void DeleteFunctionTaskRequest::setFunctionName(const std::string &functionName) { + functionName_ = functionName; + setParameter(std::string("functionName"), functionName); +} + +std::string DeleteFunctionTaskRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void DeleteFunctionTaskRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); +} + diff --git a/opensearch/src/model/DeleteFunctionTaskResult.cc b/opensearch/src/model/DeleteFunctionTaskResult.cc new file mode 100644 index 000000000..e14ae8372 --- /dev/null +++ b/opensearch/src/model/DeleteFunctionTaskResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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; + +DeleteFunctionTaskResult::DeleteFunctionTaskResult() : + ServiceResult() +{} + +DeleteFunctionTaskResult::DeleteFunctionTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteFunctionTaskResult::~DeleteFunctionTaskResult() +{} + +void DeleteFunctionTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["HttpCode"].isNull()) + httpCode_ = std::stol(value["HttpCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Latency"].isNull()) + latency_ = std::stol(value["Latency"].asString()); + +} + +std::string DeleteFunctionTaskResult::getStatus()const +{ + return status_; +} + +long DeleteFunctionTaskResult::getHttpCode()const +{ + return httpCode_; +} + +std::string DeleteFunctionTaskResult::getMessage()const +{ + return message_; +} + +std::string DeleteFunctionTaskResult::getCode()const +{ + return code_; +} + +long DeleteFunctionTaskResult::getLatency()const +{ + return latency_; +} + diff --git a/opensearch/src/model/DeleteModelRequest.cc b/opensearch/src/model/DeleteModelRequest.cc index b5e7310fe..ed8be7808 100644 --- a/opensearch/src/model/DeleteModelRequest.cc +++ b/opensearch/src/model/DeleteModelRequest.cc @@ -1,52 +1,46 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#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); } -void DeleteModelRequest::setModelName(const std::string& modelName) -{ - modelName_ = modelName; - setParameter("ModelName", modelName); +DeleteModelRequest::~DeleteModelRequest() {} + +std::string DeleteModelRequest::getModelName() const { + return modelName_; } -std::string DeleteModelRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void DeleteModelRequest::setModelName(const std::string &modelName) { + modelName_ = modelName; + setParameter(std::string("modelName"), modelName); } -void DeleteModelRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string DeleteModelRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void DeleteModelRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/DeleteModelResult.cc b/opensearch/src/model/DeleteModelResult.cc index bcfba517d..06740d96a 100644 --- a/opensearch/src/model/DeleteModelResult.cc +++ b/opensearch/src/model/DeleteModelResult.cc @@ -39,10 +39,10 @@ void DeleteModelResult::parse(const std::string &payload) 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(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); } diff --git a/opensearch/src/model/DeleteSortScriptFileRequest.cc b/opensearch/src/model/DeleteSortScriptFileRequest.cc index fcf86a2e5..efaaf2b2d 100644 --- a/opensearch/src/model/DeleteSortScriptFileRequest.cc +++ b/opensearch/src/model/DeleteSortScriptFileRequest.cc @@ -1,74 +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. - */ - -#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_; + */ + +#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); } -void DeleteSortScriptFileRequest::setAppVersionId(const std::string& appVersionId) -{ - appVersionId_ = appVersionId; - setParameter("AppVersionId", appVersionId); +DeleteSortScriptFileRequest::~DeleteSortScriptFileRequest() {} + +std::string DeleteSortScriptFileRequest::getAppVersionId() const { + return appVersionId_; } -std::string DeleteSortScriptFileRequest::getFileName()const -{ - return fileName_; +void DeleteSortScriptFileRequest::setAppVersionId(const std::string &appVersionId) { + appVersionId_ = appVersionId; + setParameter(std::string("appVersionId"), appVersionId); } -void DeleteSortScriptFileRequest::setFileName(const std::string& fileName) -{ - fileName_ = fileName; - setParameter("FileName", fileName); +std::string DeleteSortScriptFileRequest::getFileName() const { + return fileName_; } -std::string DeleteSortScriptFileRequest::getScriptName()const -{ - return scriptName_; +void DeleteSortScriptFileRequest::setFileName(const std::string &fileName) { + fileName_ = fileName; + setParameter(std::string("fileName"), fileName); } -void DeleteSortScriptFileRequest::setScriptName(const std::string& scriptName) -{ - scriptName_ = scriptName; - setParameter("ScriptName", scriptName); +std::string DeleteSortScriptFileRequest::getScriptName() const { + return scriptName_; } -std::string DeleteSortScriptFileRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void DeleteSortScriptFileRequest::setScriptName(const std::string &scriptName) { + scriptName_ = scriptName; + setParameter(std::string("scriptName"), scriptName); } -void DeleteSortScriptFileRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string DeleteSortScriptFileRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void DeleteSortScriptFileRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/DeleteSortScriptRequest.cc b/opensearch/src/model/DeleteSortScriptRequest.cc index b42b2c930..0c1c8d8b0 100644 --- a/opensearch/src/model/DeleteSortScriptRequest.cc +++ b/opensearch/src/model/DeleteSortScriptRequest.cc @@ -1,63 +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. - */ - -#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_; + */ + +#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); } -void DeleteSortScriptRequest::setAppVersionId(const std::string& appVersionId) -{ - appVersionId_ = appVersionId; - setParameter("AppVersionId", appVersionId); +DeleteSortScriptRequest::~DeleteSortScriptRequest() {} + +std::string DeleteSortScriptRequest::getAppVersionId() const { + return appVersionId_; } -std::string DeleteSortScriptRequest::getScriptName()const -{ - return scriptName_; +void DeleteSortScriptRequest::setAppVersionId(const std::string &appVersionId) { + appVersionId_ = appVersionId; + setParameter(std::string("appVersionId"), appVersionId); } -void DeleteSortScriptRequest::setScriptName(const std::string& scriptName) -{ - scriptName_ = scriptName; - setParameter("ScriptName", scriptName); +std::string DeleteSortScriptRequest::getScriptName() const { + return scriptName_; } -std::string DeleteSortScriptRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void DeleteSortScriptRequest::setScriptName(const std::string &scriptName) { + scriptName_ = scriptName; + setParameter(std::string("scriptName"), scriptName); } -void DeleteSortScriptRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string DeleteSortScriptRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void DeleteSortScriptRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/DescribeABTestExperimentRequest.cc b/opensearch/src/model/DescribeABTestExperimentRequest.cc index 0c10c76e8..96fcca06d 100644 --- a/opensearch/src/model/DescribeABTestExperimentRequest.cc +++ b/opensearch/src/model/DescribeABTestExperimentRequest.cc @@ -1,74 +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. - */ - -#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_; + */ + +#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); } -void DescribeABTestExperimentRequest::setGroupId(int groupId) -{ - groupId_ = groupId; - setParameter("GroupId", std::to_string(groupId)); +DescribeABTestExperimentRequest::~DescribeABTestExperimentRequest() {} + +int DescribeABTestExperimentRequest::getGroupId() const { + return groupId_; } -int DescribeABTestExperimentRequest::getSceneId()const -{ - return sceneId_; +void DescribeABTestExperimentRequest::setGroupId(int groupId) { + groupId_ = groupId; + setParameter(std::string("groupId"), std::to_string(groupId)); } -void DescribeABTestExperimentRequest::setSceneId(int sceneId) -{ - sceneId_ = sceneId; - setParameter("SceneId", std::to_string(sceneId)); +int DescribeABTestExperimentRequest::getSceneId() const { + return sceneId_; } -int DescribeABTestExperimentRequest::getExperimentId()const -{ - return experimentId_; +void DescribeABTestExperimentRequest::setSceneId(int sceneId) { + sceneId_ = sceneId; + setParameter(std::string("sceneId"), std::to_string(sceneId)); } -void DescribeABTestExperimentRequest::setExperimentId(int experimentId) -{ - experimentId_ = experimentId; - setParameter("ExperimentId", std::to_string(experimentId)); +int DescribeABTestExperimentRequest::getExperimentId() const { + return experimentId_; } -std::string DescribeABTestExperimentRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void DescribeABTestExperimentRequest::setExperimentId(int experimentId) { + experimentId_ = experimentId; + setParameter(std::string("experimentId"), std::to_string(experimentId)); } -void DescribeABTestExperimentRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string DescribeABTestExperimentRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void DescribeABTestExperimentRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/DescribeABTestExperimentResult.cc b/opensearch/src/model/DescribeABTestExperimentResult.cc index 6ee89d1be..65669fe74 100644 --- a/opensearch/src/model/DescribeABTestExperimentResult.cc +++ b/opensearch/src/model/DescribeABTestExperimentResult.cc @@ -40,18 +40,18 @@ void DescribeABTestExperimentResult::parse(const std::string &payload) 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()); + if(!resultNode["online"].isNull()) + result_.online = resultNode["online"].asString() == "true"; + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["updated"].isNull()) + result_.updated = std::stoi(resultNode["updated"].asString()); + if(!resultNode["id"].isNull()) + result_.id = resultNode["id"].asString(); auto paramsNode = resultNode["params"]; if(!paramsNode["first_formula_name"].isNull()) result_.params.first_formula_name = paramsNode["first_formula_name"].asString(); diff --git a/opensearch/src/model/DescribeABTestGroupRequest.cc b/opensearch/src/model/DescribeABTestGroupRequest.cc index 980ccded6..84d66b784 100644 --- a/opensearch/src/model/DescribeABTestGroupRequest.cc +++ b/opensearch/src/model/DescribeABTestGroupRequest.cc @@ -1,63 +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. - */ - -#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_; + */ + +#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); } -void DescribeABTestGroupRequest::setGroupId(int groupId) -{ - groupId_ = groupId; - setParameter("GroupId", std::to_string(groupId)); +DescribeABTestGroupRequest::~DescribeABTestGroupRequest() {} + +int DescribeABTestGroupRequest::getGroupId() const { + return groupId_; } -int DescribeABTestGroupRequest::getSceneId()const -{ - return sceneId_; +void DescribeABTestGroupRequest::setGroupId(int groupId) { + groupId_ = groupId; + setParameter(std::string("groupId"), std::to_string(groupId)); } -void DescribeABTestGroupRequest::setSceneId(int sceneId) -{ - sceneId_ = sceneId; - setParameter("SceneId", std::to_string(sceneId)); +int DescribeABTestGroupRequest::getSceneId() const { + return sceneId_; } -std::string DescribeABTestGroupRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void DescribeABTestGroupRequest::setSceneId(int sceneId) { + sceneId_ = sceneId; + setParameter(std::string("sceneId"), std::to_string(sceneId)); } -void DescribeABTestGroupRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string DescribeABTestGroupRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void DescribeABTestGroupRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/DescribeABTestGroupResult.cc b/opensearch/src/model/DescribeABTestGroupResult.cc index 62505a704..3870f5f5b 100644 --- a/opensearch/src/model/DescribeABTestGroupResult.cc +++ b/opensearch/src/model/DescribeABTestGroupResult.cc @@ -40,16 +40,16 @@ void DescribeABTestGroupResult::parse(const std::string &payload) 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["status"].isNull()) + result_.status = std::stoi(resultNode["status"].asString()); if(!resultNode["updated"].isNull()) result_.updated = std::stoi(resultNode["updated"].asString()); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["id"].isNull()) + result_.id = resultNode["id"].asString(); if(!value["requestId"].isNull()) requestId_ = value["requestId"].asString(); diff --git a/opensearch/src/model/DescribeABTestSceneRequest.cc b/opensearch/src/model/DescribeABTestSceneRequest.cc index e343aee6f..d9b02728a 100644 --- a/opensearch/src/model/DescribeABTestSceneRequest.cc +++ b/opensearch/src/model/DescribeABTestSceneRequest.cc @@ -1,52 +1,46 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#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); } -void DescribeABTestSceneRequest::setSceneId(int sceneId) -{ - sceneId_ = sceneId; - setParameter("SceneId", std::to_string(sceneId)); +DescribeABTestSceneRequest::~DescribeABTestSceneRequest() {} + +int DescribeABTestSceneRequest::getSceneId() const { + return sceneId_; } -std::string DescribeABTestSceneRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void DescribeABTestSceneRequest::setSceneId(int sceneId) { + sceneId_ = sceneId; + setParameter(std::string("sceneId"), std::to_string(sceneId)); } -void DescribeABTestSceneRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string DescribeABTestSceneRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void DescribeABTestSceneRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/DescribeABTestSceneResult.cc b/opensearch/src/model/DescribeABTestSceneResult.cc index 4d7f84389..649016543 100644 --- a/opensearch/src/model/DescribeABTestSceneResult.cc +++ b/opensearch/src/model/DescribeABTestSceneResult.cc @@ -40,16 +40,16 @@ void DescribeABTestSceneResult::parse(const std::string &payload) 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["status"].isNull()) + result_.status = std::stoi(resultNode["status"].asString()); if(!resultNode["updated"].isNull()) result_.updated = std::stoi(resultNode["updated"].asString()); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["id"].isNull()) + result_.id = resultNode["id"].asString(); auto allValues = resultNode["values"]["values"]; for (auto value : allValues) result_.values.push_back(value.asString()); diff --git a/opensearch/src/model/DescribeAppGroupDataReportRequest.cc b/opensearch/src/model/DescribeAppGroupDataReportRequest.cc index 4b8d56408..5dd22e830 100644 --- a/opensearch/src/model/DescribeAppGroupDataReportRequest.cc +++ b/opensearch/src/model/DescribeAppGroupDataReportRequest.cc @@ -1,63 +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. - */ - -#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_; + */ + +#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); } -void DescribeAppGroupDataReportRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); +DescribeAppGroupDataReportRequest::~DescribeAppGroupDataReportRequest() {} + +std::string DescribeAppGroupDataReportRequest::getEndTime() const { + return endTime_; } -std::string DescribeAppGroupDataReportRequest::getStartTime()const -{ - return startTime_; +void DescribeAppGroupDataReportRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("endTime"), endTime); } -void DescribeAppGroupDataReportRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); +std::string DescribeAppGroupDataReportRequest::getStartTime() const { + return startTime_; } -std::string DescribeAppGroupDataReportRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void DescribeAppGroupDataReportRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("startTime"), startTime); } -void DescribeAppGroupDataReportRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string DescribeAppGroupDataReportRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void DescribeAppGroupDataReportRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/DescribeAppGroupDataReportResult.cc b/opensearch/src/model/DescribeAppGroupDataReportResult.cc index fe85ee870..5edd6822e 100644 --- a/opensearch/src/model/DescribeAppGroupDataReportResult.cc +++ b/opensearch/src/model/DescribeAppGroupDataReportResult.cc @@ -49,26 +49,26 @@ void DescribeAppGroupDataReportResult::parse(const std::string &payload) 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["arg3"].isNull()) + receivedSampleItemObject.message.arg3 = messageNode["arg3"].asString(); + if(!messageNode["arg1"].isNull()) + receivedSampleItemObject.message.arg1 = messageNode["arg1"].asString(); if(!messageNode["sdkVersion"].isNull()) receivedSampleItemObject.message.sdkVersion = messageNode["sdkVersion"].asString(); + if(!messageNode["userId"].isNull()) + receivedSampleItemObject.message.userId = messageNode["userId"].asString(); if(!messageNode["page"].isNull()) receivedSampleItemObject.message.page = messageNode["page"].asString(); + if(!messageNode["args"].isNull()) + receivedSampleItemObject.message.args = messageNode["args"].asString(); + if(!messageNode["sessionId"].isNull()) + receivedSampleItemObject.message.sessionId = messageNode["sessionId"].asString(); + if(!messageNode["sdkType"].isNull()) + receivedSampleItemObject.message.sdkType = messageNode["sdkType"].asString(); + if(!messageNode["clientIp"].isNull()) + receivedSampleItemObject.message.clientIp = messageNode["clientIp"].asString(); result_.receivedSample.push_back(receivedSampleItemObject); } if(!value["requestId"].isNull()) diff --git a/opensearch/src/model/DescribeAppGroupRequest.cc b/opensearch/src/model/DescribeAppGroupRequest.cc index aa0d725be..cda72467a 100644 --- a/opensearch/src/model/DescribeAppGroupRequest.cc +++ b/opensearch/src/model/DescribeAppGroupRequest.cc @@ -1,41 +1,37 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#include + +using AlibabaCloud::OpenSearch::Model::DescribeAppGroupRequest; + +DescribeAppGroupRequest::DescribeAppGroupRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]"}; + setMethod(HttpRequest::Method::Get); } -void DescribeAppGroupRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +DescribeAppGroupRequest::~DescribeAppGroupRequest() {} + +std::string DescribeAppGroupRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void DescribeAppGroupRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/DescribeAppGroupResult.cc b/opensearch/src/model/DescribeAppGroupResult.cc index c9079a2de..da75ca096 100644 --- a/opensearch/src/model/DescribeAppGroupResult.cc +++ b/opensearch/src/model/DescribeAppGroupResult.cc @@ -40,61 +40,71 @@ void DescribeAppGroupResult::parse(const std::string &payload) 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["currentVersion"].isNull()) result_.currentVersion = resultNode["currentVersion"].asString(); - if(!resultNode["switchedTime"].isNull()) - result_.switchedTime = std::stoi(resultNode["switchedTime"].asString()); + if(!resultNode["pendingSecondRankAlgoDeploymentId"].isNull()) + result_.pendingSecondRankAlgoDeploymentId = std::stoi(resultNode["pendingSecondRankAlgoDeploymentId"].asString()); + if(!resultNode["lockMode"].isNull()) + result_.lockMode = resultNode["lockMode"].asString(); + if(!resultNode["updated"].isNull()) + result_.updated = std::stoi(resultNode["updated"].asString()); + if(!resultNode["id"].isNull()) + result_.id = resultNode["id"].asString(); + if(!resultNode["chargeType"].isNull()) + result_.chargeType = resultNode["chargeType"].asString(); + if(!resultNode["hasPendingQuotaReviewTask"].isNull()) + result_.hasPendingQuotaReviewTask = std::stoi(resultNode["hasPendingQuotaReviewTask"].asString()); + if(!resultNode["secondRankAlgoDeploymentId"].isNull()) + result_.secondRankAlgoDeploymentId = std::stoi(resultNode["secondRankAlgoDeploymentId"].asString()); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["instanceId"].isNull()) + result_.instanceId = resultNode["instanceId"].asString(); + if(!resultNode["processingOrderId"].isNull()) + result_.processingOrderId = resultNode["processingOrderId"].asString(); if(!resultNode["chargingWay"].isNull()) result_.chargingWay = std::stoi(resultNode["chargingWay"].asString()); if(!resultNode["type"].isNull()) result_.type = resultNode["type"].asString(); + if(!resultNode["status"].isNull()) + result_.status = resultNode["status"].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["switchedTime"].isNull()) + result_.switchedTime = std::stoi(resultNode["switchedTime"].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["expireOn"].isNull()) + result_.expireOn = resultNode["expireOn"].asString(); + if(!resultNode["domain"].isNull()) + result_.domain = resultNode["domain"].asString(); if(!resultNode["description"].isNull()) result_.description = resultNode["description"].asString(); + if(!resultNode["firstRankAlgoDeploymentId"].isNull()) + result_.firstRankAlgoDeploymentId = std::stoi(resultNode["firstRankAlgoDeploymentId"].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(); - if(!resultNode["domain"].isNull()) - result_.domain = resultNode["domain"].asString(); + auto alltagsNode = resultNode["tags"]["tagsItem"]; + for (auto resultNodetagstagsItem : alltagsNode) + { + Result::TagsItem tagsItemObject; + if(!resultNodetagstagsItem["key"].isNull()) + tagsItemObject.key = resultNodetagstagsItem["key"].asString(); + if(!resultNodetagstagsItem["value"].isNull()) + tagsItemObject.value = resultNodetagstagsItem["value"].asString(); + result_.tags.push_back(tagsItemObject); + } auto quotaNode = resultNode["quota"]; + if(!quotaNode["spec"].isNull()) + result_.quota.spec = quotaNode["spec"].asString(); 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(); diff --git a/opensearch/src/model/DescribeAppGroupStatisticsRequest.cc b/opensearch/src/model/DescribeAppGroupStatisticsRequest.cc new file mode 100644 index 000000000..1a6d8a369 --- /dev/null +++ b/opensearch/src/model/DescribeAppGroupStatisticsRequest.cc @@ -0,0 +1,37 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::DescribeAppGroupStatisticsRequest; + +DescribeAppGroupStatisticsRequest::DescribeAppGroupStatisticsRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/statistics"}; + setMethod(HttpRequest::Method::Get); +} + +DescribeAppGroupStatisticsRequest::~DescribeAppGroupStatisticsRequest() {} + +std::string DescribeAppGroupStatisticsRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void DescribeAppGroupStatisticsRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); +} + diff --git a/opensearch/src/model/DescribeAppGroupStatisticsResult.cc b/opensearch/src/model/DescribeAppGroupStatisticsResult.cc new file mode 100644 index 000000000..576749a32 --- /dev/null +++ b/opensearch/src/model/DescribeAppGroupStatisticsResult.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; + +DescribeAppGroupStatisticsResult::DescribeAppGroupStatisticsResult() : + ServiceResult() +{} + +DescribeAppGroupStatisticsResult::DescribeAppGroupStatisticsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAppGroupStatisticsResult::~DescribeAppGroupStatisticsResult() +{} + +void DescribeAppGroupStatisticsResult::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(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string DescribeAppGroupStatisticsResult::getRequestId()const +{ + return requestId_; +} + +std::string DescribeAppGroupStatisticsResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/DescribeAppRequest.cc b/opensearch/src/model/DescribeAppRequest.cc index 9a30f3054..a28f2f080 100644 --- a/opensearch/src/model/DescribeAppRequest.cc +++ b/opensearch/src/model/DescribeAppRequest.cc @@ -1,52 +1,46 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#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); } -void DescribeAppRequest::setAppId(int appId) -{ - appId_ = appId; - setParameter("AppId", std::to_string(appId)); +DescribeAppRequest::~DescribeAppRequest() {} + +int DescribeAppRequest::getAppId() const { + return appId_; } -std::string DescribeAppRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void DescribeAppRequest::setAppId(int appId) { + appId_ = appId; + setParameter(std::string("appId"), std::to_string(appId)); } -void DescribeAppRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string DescribeAppRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void DescribeAppRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/DescribeAppResult.cc b/opensearch/src/model/DescribeAppResult.cc index e3ffb8dea..ad21ac433 100644 --- a/opensearch/src/model/DescribeAppResult.cc +++ b/opensearch/src/model/DescribeAppResult.cc @@ -40,50 +40,50 @@ void DescribeAppResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto resultNode = value["result"]; - if(!resultNode["id"].isNull()) - result_.id = resultNode["id"].asString(); + if(!resultNode["created"].isNull()) + result_.created = std::stoi(resultNode["created"].asString()); + if(!resultNode["clusterName"].isNull()) + result_.clusterName = resultNode["clusterName"].asString(); + if(!resultNode["autoSwitch"].isNull()) + result_.autoSwitch = resultNode["autoSwitch"].asString() == "true"; + if(!resultNode["algoDeploymentId"].isNull()) + result_.algoDeploymentId = std::stoi(resultNode["algoDeploymentId"].asString()); + if(!resultNode["type"].isNull()) + result_.type = resultNode["type"].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(); + if(!resultNode["progressPercent"].isNull()) + result_.progressPercent = std::stoi(resultNode["progressPercent"].asString()); + if(!resultNode["id"].isNull()) + result_.id = resultNode["id"].asString(); auto quotaNode = resultNode["quota"]; + if(!quotaNode["spec"].isNull()) + result_.quota.spec = quotaNode["spec"].asString(); + if(!quotaNode["qps"].isNull()) + result_.quota.qps = std::stoi(quotaNode["qps"].asString()); 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 domainNode = resultNode["domain"]; - if(!domainNode["name"].isNull()) - result_.domain.name = domainNode["name"].asString(); if(!domainNode["category"].isNull()) result_.domain.category = domainNode["category"].asString(); + if(!domainNode["name"].isNull()) + result_.domain.name = domainNode["name"].asString(); auto functionsNode = domainNode["functions"]; + auto allService = functionsNode["service"]["service"]; + for (auto value : allService) + result_.domain.functions.service.push_back(value.asString()); auto allQp = functionsNode["qp"]["qp"]; for (auto value : allQp) result_.domain.functions.qp.push_back(value.asString()); auto allAlgo = functionsNode["algo"]["algo"]; for (auto value : allAlgo) result_.domain.functions.algo.push_back(value.asString()); - auto allService = functionsNode["service"]["service"]; - for (auto value : allService) - result_.domain.functions.service.push_back(value.asString()); auto allFetchFields = resultNode["fetchFields"]["fetchFields"]; for (auto value : allFetchFields) result_.fetchFields.push_back(value.asString()); diff --git a/opensearch/src/model/DescribeAppStatisticsRequest.cc b/opensearch/src/model/DescribeAppStatisticsRequest.cc index 153494538..e2d2e367c 100644 --- a/opensearch/src/model/DescribeAppStatisticsRequest.cc +++ b/opensearch/src/model/DescribeAppStatisticsRequest.cc @@ -1,52 +1,46 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#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); } -void DescribeAppStatisticsRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); +DescribeAppStatisticsRequest::~DescribeAppStatisticsRequest() {} + +std::string DescribeAppStatisticsRequest::getAppId() const { + return appId_; } -std::string DescribeAppStatisticsRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void DescribeAppStatisticsRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("appId"), appId); } -void DescribeAppStatisticsRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string DescribeAppStatisticsRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void DescribeAppStatisticsRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/DescribeAppStatisticsResult.cc b/opensearch/src/model/DescribeAppStatisticsResult.cc index be1e72fb9..5268ece0a 100644 --- a/opensearch/src/model/DescribeAppStatisticsResult.cc +++ b/opensearch/src/model/DescribeAppStatisticsResult.cc @@ -39,10 +39,10 @@ void DescribeAppStatisticsResult::parse(const std::string &payload) 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(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); } diff --git a/opensearch/src/model/DescribeAppsRequest.cc b/opensearch/src/model/DescribeAppsRequest.cc index 1355a6eca..b02230382 100644 --- a/opensearch/src/model/DescribeAppsRequest.cc +++ b/opensearch/src/model/DescribeAppsRequest.cc @@ -1,41 +1,37 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#include + +using AlibabaCloud::OpenSearch::Model::DescribeAppsRequest; + +DescribeAppsRequest::DescribeAppsRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps"}; + setMethod(HttpRequest::Method::Get); } -void DescribeAppsRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +DescribeAppsRequest::~DescribeAppsRequest() {} + +std::string DescribeAppsRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void DescribeAppsRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/DescribeDataCollctionRequest.cc b/opensearch/src/model/DescribeDataCollctionRequest.cc index c94d5f29b..368beb0e0 100644 --- a/opensearch/src/model/DescribeDataCollctionRequest.cc +++ b/opensearch/src/model/DescribeDataCollctionRequest.cc @@ -1,52 +1,46 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#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); } -void DescribeDataCollctionRequest::setDataCollectionIdentity(const std::string& dataCollectionIdentity) -{ - dataCollectionIdentity_ = dataCollectionIdentity; - setParameter("DataCollectionIdentity", dataCollectionIdentity); +DescribeDataCollctionRequest::~DescribeDataCollctionRequest() {} + +std::string DescribeDataCollctionRequest::getDataCollectionIdentity() const { + return dataCollectionIdentity_; } -std::string DescribeDataCollctionRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void DescribeDataCollctionRequest::setDataCollectionIdentity(const std::string &dataCollectionIdentity) { + dataCollectionIdentity_ = dataCollectionIdentity; + setParameter(std::string("dataCollectionIdentity"), dataCollectionIdentity); } -void DescribeDataCollctionRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string DescribeDataCollctionRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void DescribeDataCollctionRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/DescribeDataCollctionResult.cc b/opensearch/src/model/DescribeDataCollctionResult.cc index 7224bf3e2..bb2f2da3e 100644 --- a/opensearch/src/model/DescribeDataCollctionResult.cc +++ b/opensearch/src/model/DescribeDataCollctionResult.cc @@ -40,24 +40,24 @@ void DescribeDataCollctionResult::parse(const std::string &payload) 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["dataCollectionType"].isNull()) + result_.dataCollectionType = resultNode["dataCollectionType"].asString(); + if(!resultNode["type"].isNull()) + result_.type = resultNode["type"].asString(); + if(!resultNode["industryName"].isNull()) + result_.industryName = resultNode["industryName"].asString(); + if(!resultNode["status"].isNull()) + result_.status = std::stoi(resultNode["status"].asString()); if(!resultNode["updated"].isNull()) result_.updated = std::stoi(resultNode["updated"].asString()); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); if(!resultNode["sundialId"].isNull()) result_.sundialId = resultNode["sundialId"].asString(); + if(!resultNode["id"].isNull()) + result_.id = resultNode["id"].asString(); if(!value["requestId"].isNull()) requestId_ = value["requestId"].asString(); diff --git a/opensearch/src/model/DescribeFirstRankRequest.cc b/opensearch/src/model/DescribeFirstRankRequest.cc index 5e5b9d6e5..6e7ad1219 100644 --- a/opensearch/src/model/DescribeFirstRankRequest.cc +++ b/opensearch/src/model/DescribeFirstRankRequest.cc @@ -1,63 +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. - */ - -#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_; + */ + +#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); } -void DescribeFirstRankRequest::setAppId(int appId) -{ - appId_ = appId; - setParameter("AppId", std::to_string(appId)); +DescribeFirstRankRequest::~DescribeFirstRankRequest() {} + +int DescribeFirstRankRequest::getAppId() const { + return appId_; } -std::string DescribeFirstRankRequest::getName()const -{ - return name_; +void DescribeFirstRankRequest::setAppId(int appId) { + appId_ = appId; + setParameter(std::string("appId"), std::to_string(appId)); } -void DescribeFirstRankRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string DescribeFirstRankRequest::getName() const { + return name_; } -std::string DescribeFirstRankRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void DescribeFirstRankRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("name"), name); } -void DescribeFirstRankRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string DescribeFirstRankRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void DescribeFirstRankRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/DescribeFirstRankResult.cc b/opensearch/src/model/DescribeFirstRankResult.cc index 276000edf..54bf417f5 100644 --- a/opensearch/src/model/DescribeFirstRankResult.cc +++ b/opensearch/src/model/DescribeFirstRankResult.cc @@ -40,20 +40,20 @@ void DescribeFirstRankResult::parse(const std::string &payload) 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"; + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); 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["attribute"].isNull()) + metaItemObject.attribute = resultNodemetametaItem["attribute"].asString(); if(!resultNodemetametaItem["weight"].isNull()) metaItemObject.weight = std::stof(resultNodemetametaItem["weight"].asString()); result_.meta.push_back(metaItemObject); diff --git a/opensearch/src/model/DescribeInterventionDictionaryRequest.cc b/opensearch/src/model/DescribeInterventionDictionaryRequest.cc index 7dacbc868..3ff8ada72 100644 --- a/opensearch/src/model/DescribeInterventionDictionaryRequest.cc +++ b/opensearch/src/model/DescribeInterventionDictionaryRequest.cc @@ -1,41 +1,37 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#include + +using AlibabaCloud::OpenSearch::Model::DescribeInterventionDictionaryRequest; + +DescribeInterventionDictionaryRequest::DescribeInterventionDictionaryRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/intervention-dictionaries/[name]"}; + setMethod(HttpRequest::Method::Get); } -void DescribeInterventionDictionaryRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +DescribeInterventionDictionaryRequest::~DescribeInterventionDictionaryRequest() {} + +std::string DescribeInterventionDictionaryRequest::getName() const { + return name_; +} + +void DescribeInterventionDictionaryRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("name"), name); } diff --git a/opensearch/src/model/DescribeInterventionDictionaryResult.cc b/opensearch/src/model/DescribeInterventionDictionaryResult.cc index cd462d01e..31a189698 100644 --- a/opensearch/src/model/DescribeInterventionDictionaryResult.cc +++ b/opensearch/src/model/DescribeInterventionDictionaryResult.cc @@ -40,16 +40,16 @@ void DescribeInterventionDictionaryResult::parse(const std::string &payload) 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["analyzer"].isNull()) + result_.analyzer = resultNode["analyzer"].asString(); if(!resultNode["updated"].isNull()) result_.updated = resultNode["updated"].asString(); + if(!resultNode["type"].isNull()) + result_.type = resultNode["type"].asString(); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); if(!value["requestId"].isNull()) requestId_ = value["requestId"].asString(); diff --git a/opensearch/src/model/DescribeModelRequest.cc b/opensearch/src/model/DescribeModelRequest.cc index 076c55aa7..9c6585ff3 100644 --- a/opensearch/src/model/DescribeModelRequest.cc +++ b/opensearch/src/model/DescribeModelRequest.cc @@ -1,52 +1,46 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#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); } -void DescribeModelRequest::setModelName(const std::string& modelName) -{ - modelName_ = modelName; - setParameter("ModelName", modelName); +DescribeModelRequest::~DescribeModelRequest() {} + +std::string DescribeModelRequest::getModelName() const { + return modelName_; } -std::string DescribeModelRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void DescribeModelRequest::setModelName(const std::string &modelName) { + modelName_ = modelName; + setParameter(std::string("modelName"), modelName); } -void DescribeModelRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string DescribeModelRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void DescribeModelRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/DescribeModelResult.cc b/opensearch/src/model/DescribeModelResult.cc index ad7843651..03ea33691 100644 --- a/opensearch/src/model/DescribeModelResult.cc +++ b/opensearch/src/model/DescribeModelResult.cc @@ -39,10 +39,10 @@ void DescribeModelResult::parse(const std::string &payload) 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(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); } diff --git a/opensearch/src/model/DescribeQueryProcessorRequest.cc b/opensearch/src/model/DescribeQueryProcessorRequest.cc index f86c7419e..d47415bee 100644 --- a/opensearch/src/model/DescribeQueryProcessorRequest.cc +++ b/opensearch/src/model/DescribeQueryProcessorRequest.cc @@ -1,63 +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. - */ - -#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_; + */ + +#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); } -void DescribeQueryProcessorRequest::setAppId(int appId) -{ - appId_ = appId; - setParameter("AppId", std::to_string(appId)); +DescribeQueryProcessorRequest::~DescribeQueryProcessorRequest() {} + +int DescribeQueryProcessorRequest::getAppId() const { + return appId_; } -std::string DescribeQueryProcessorRequest::getName()const -{ - return name_; +void DescribeQueryProcessorRequest::setAppId(int appId) { + appId_ = appId; + setParameter(std::string("appId"), std::to_string(appId)); } -void DescribeQueryProcessorRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string DescribeQueryProcessorRequest::getName() const { + return name_; } -std::string DescribeQueryProcessorRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void DescribeQueryProcessorRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("name"), name); } -void DescribeQueryProcessorRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string DescribeQueryProcessorRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void DescribeQueryProcessorRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/DescribeQueryProcessorResult.cc b/opensearch/src/model/DescribeQueryProcessorResult.cc index 644b2f121..ea9133de8 100644 --- a/opensearch/src/model/DescribeQueryProcessorResult.cc +++ b/opensearch/src/model/DescribeQueryProcessorResult.cc @@ -40,16 +40,16 @@ void DescribeQueryProcessorResult::parse(const std::string &payload) 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["active"].isNull()) + result_.active = resultNode["active"].asString() == "true"; if(!resultNode["updated"].isNull()) result_.updated = std::stoi(resultNode["updated"].asString()); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["domain"].isNull()) + result_.domain = resultNode["domain"].asString(); auto allIndexes = resultNode["indexes"]["indexes"]; for (auto value : allIndexes) result_.indexes.push_back(value.asString()); diff --git a/opensearch/src/model/DescribeRegionRequest.cc b/opensearch/src/model/DescribeRegionRequest.cc index 61b073db8..dcd3e4e6d 100644 --- a/opensearch/src/model/DescribeRegionRequest.cc +++ b/opensearch/src/model/DescribeRegionRequest.cc @@ -1,30 +1,28 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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() -{} - + */ + +#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/DescribeRegionsRequest.cc b/opensearch/src/model/DescribeRegionsRequest.cc index 768f772a6..b502992d6 100644 --- a/opensearch/src/model/DescribeRegionsRequest.cc +++ b/opensearch/src/model/DescribeRegionsRequest.cc @@ -1,30 +1,28 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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() -{} - + */ + +#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 index 4c751ef63..eb017d051 100644 --- a/opensearch/src/model/DescribeRegionsResult.cc +++ b/opensearch/src/model/DescribeRegionsResult.cc @@ -43,12 +43,12 @@ void DescribeRegionsResult::parse(const std::string &payload) for (auto valueresultresultItem : allresultNode) { ResultItem resultObject; + if(!valueresultresultItem["endpoint"].isNull()) + resultObject.endpoint = valueresultresultItem["endpoint"].asString(); 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); diff --git a/opensearch/src/model/DescribeScheduledTaskRequest.cc b/opensearch/src/model/DescribeScheduledTaskRequest.cc index a7b66a1b6..1bcd9f447 100644 --- a/opensearch/src/model/DescribeScheduledTaskRequest.cc +++ b/opensearch/src/model/DescribeScheduledTaskRequest.cc @@ -1,52 +1,46 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#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); } -void DescribeScheduledTaskRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +DescribeScheduledTaskRequest::~DescribeScheduledTaskRequest() {} + +std::string DescribeScheduledTaskRequest::getAppGroupIdentity() const { + return appGroupIdentity_; } -std::string DescribeScheduledTaskRequest::getTaskId()const -{ - return taskId_; +void DescribeScheduledTaskRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } -void DescribeScheduledTaskRequest::setTaskId(const std::string& taskId) -{ - taskId_ = taskId; - setParameter("TaskId", taskId); +std::string DescribeScheduledTaskRequest::getTaskId() const { + return taskId_; +} + +void DescribeScheduledTaskRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("taskId"), taskId); } diff --git a/opensearch/src/model/DescribeScheduledTaskResult.cc b/opensearch/src/model/DescribeScheduledTaskResult.cc index 10fec8f2e..a2e42a9a8 100644 --- a/opensearch/src/model/DescribeScheduledTaskResult.cc +++ b/opensearch/src/model/DescribeScheduledTaskResult.cc @@ -39,10 +39,10 @@ void DescribeScheduledTaskResult::parse(const std::string &payload) 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(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); } diff --git a/opensearch/src/model/DescribeSecondRankRequest.cc b/opensearch/src/model/DescribeSecondRankRequest.cc index 2a4d93248..82d390bf8 100644 --- a/opensearch/src/model/DescribeSecondRankRequest.cc +++ b/opensearch/src/model/DescribeSecondRankRequest.cc @@ -1,63 +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. - */ - -#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_; + */ + +#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); } -void DescribeSecondRankRequest::setAppId(int appId) -{ - appId_ = appId; - setParameter("AppId", std::to_string(appId)); +DescribeSecondRankRequest::~DescribeSecondRankRequest() {} + +int DescribeSecondRankRequest::getAppId() const { + return appId_; } -std::string DescribeSecondRankRequest::getName()const -{ - return name_; +void DescribeSecondRankRequest::setAppId(int appId) { + appId_ = appId; + setParameter(std::string("appId"), std::to_string(appId)); } -void DescribeSecondRankRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string DescribeSecondRankRequest::getName() const { + return name_; } -std::string DescribeSecondRankRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void DescribeSecondRankRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("name"), name); } -void DescribeSecondRankRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string DescribeSecondRankRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void DescribeSecondRankRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/DescribeSecondRankResult.cc b/opensearch/src/model/DescribeSecondRankResult.cc index 568d1c605..50d11b7d1 100644 --- a/opensearch/src/model/DescribeSecondRankResult.cc +++ b/opensearch/src/model/DescribeSecondRankResult.cc @@ -40,24 +40,24 @@ void DescribeSecondRankResult::parse(const std::string &payload) 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["active"].isNull()) + result_.active = resultNode["active"].asString() == "true"; if(!resultNode["isDefault"].isNull()) result_.isDefault = resultNode["isDefault"].asString(); if(!resultNode["isSys"].isNull()) result_.isSys = resultNode["isSys"].asString(); + if(!resultNode["description"].isNull()) + result_.description = resultNode["description"].asString(); + if(!resultNode["updated"].isNull()) + result_.updated = std::stoi(resultNode["updated"].asString()); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["meta"].isNull()) + result_.meta = resultNode["meta"].asString(); + if(!resultNode["id"].isNull()) + result_.id = resultNode["id"].asString(); if(!value["requestId"].isNull()) requestId_ = value["requestId"].asString(); diff --git a/opensearch/src/model/DescribeSlowQueryStatusRequest.cc b/opensearch/src/model/DescribeSlowQueryStatusRequest.cc index 81edd4b9e..f525eb8f8 100644 --- a/opensearch/src/model/DescribeSlowQueryStatusRequest.cc +++ b/opensearch/src/model/DescribeSlowQueryStatusRequest.cc @@ -1,41 +1,37 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#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); } -void DescribeSlowQueryStatusRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +DescribeSlowQueryStatusRequest::~DescribeSlowQueryStatusRequest() {} + +std::string DescribeSlowQueryStatusRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void DescribeSlowQueryStatusRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/DescribeSlowQueryStatusResult.cc b/opensearch/src/model/DescribeSlowQueryStatusResult.cc index c222c4b33..3289c7bdf 100644 --- a/opensearch/src/model/DescribeSlowQueryStatusResult.cc +++ b/opensearch/src/model/DescribeSlowQueryStatusResult.cc @@ -42,10 +42,10 @@ void DescribeSlowQueryStatusResult::parse(const std::string &payload) 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(!resultNode["appGroupId"].isNull()) + result_.appGroupId = resultNode["appGroupId"].asString(); if(!value["requestId"].isNull()) requestId_ = value["requestId"].asString(); diff --git a/opensearch/src/model/DescribeUserAnalyzerRequest.cc b/opensearch/src/model/DescribeUserAnalyzerRequest.cc index b3e08956b..88ec9dfb5 100644 --- a/opensearch/src/model/DescribeUserAnalyzerRequest.cc +++ b/opensearch/src/model/DescribeUserAnalyzerRequest.cc @@ -1,52 +1,46 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#include + +using AlibabaCloud::OpenSearch::Model::DescribeUserAnalyzerRequest; + +DescribeUserAnalyzerRequest::DescribeUserAnalyzerRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/user-analyzers/[name]"}; + setMethod(HttpRequest::Method::Get); } -void DescribeUserAnalyzerRequest::setWith(const std::string& with) -{ - with_ = with; - setParameter("With", with); +DescribeUserAnalyzerRequest::~DescribeUserAnalyzerRequest() {} + +std::string DescribeUserAnalyzerRequest::getWith() const { + return with_; } -std::string DescribeUserAnalyzerRequest::getName()const -{ - return name_; +void DescribeUserAnalyzerRequest::setWith(const std::string &with) { + with_ = with; + setParameter(std::string("with"), with); } -void DescribeUserAnalyzerRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string DescribeUserAnalyzerRequest::getName() const { + return name_; +} + +void DescribeUserAnalyzerRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("name"), name); } diff --git a/opensearch/src/model/DescribeUserAnalyzerResult.cc b/opensearch/src/model/DescribeUserAnalyzerResult.cc index 42df4f474..9940d5347 100644 --- a/opensearch/src/model/DescribeUserAnalyzerResult.cc +++ b/opensearch/src/model/DescribeUserAnalyzerResult.cc @@ -39,10 +39,10 @@ void DescribeUserAnalyzerResult::parse(const std::string &payload) 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(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); } diff --git a/opensearch/src/model/DisableSlowQueryRequest.cc b/opensearch/src/model/DisableSlowQueryRequest.cc index 3fccd485e..c5b612762 100644 --- a/opensearch/src/model/DisableSlowQueryRequest.cc +++ b/opensearch/src/model/DisableSlowQueryRequest.cc @@ -1,41 +1,37 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#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); } -void DisableSlowQueryRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +DisableSlowQueryRequest::~DisableSlowQueryRequest() {} + +std::string DisableSlowQueryRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void DisableSlowQueryRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/DisableSlowQueryResult.cc b/opensearch/src/model/DisableSlowQueryResult.cc index d1c5bf031..e8355541a 100644 --- a/opensearch/src/model/DisableSlowQueryResult.cc +++ b/opensearch/src/model/DisableSlowQueryResult.cc @@ -39,10 +39,10 @@ void DisableSlowQueryResult::parse(const std::string &payload) 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(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); } diff --git a/opensearch/src/model/EnableSlowQueryRequest.cc b/opensearch/src/model/EnableSlowQueryRequest.cc index f94b24524..80c3fe0f6 100644 --- a/opensearch/src/model/EnableSlowQueryRequest.cc +++ b/opensearch/src/model/EnableSlowQueryRequest.cc @@ -1,41 +1,37 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#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); } -void EnableSlowQueryRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +EnableSlowQueryRequest::~EnableSlowQueryRequest() {} + +std::string EnableSlowQueryRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void EnableSlowQueryRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/EnableSlowQueryResult.cc b/opensearch/src/model/EnableSlowQueryResult.cc index ff421ff27..52b88da1a 100644 --- a/opensearch/src/model/EnableSlowQueryResult.cc +++ b/opensearch/src/model/EnableSlowQueryResult.cc @@ -39,10 +39,10 @@ void EnableSlowQueryResult::parse(const std::string &payload) 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(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); } diff --git a/opensearch/src/model/GenerateMergedTableRequest.cc b/opensearch/src/model/GenerateMergedTableRequest.cc index 4ba1fa173..689d28b4e 100644 --- a/opensearch/src/model/GenerateMergedTableRequest.cc +++ b/opensearch/src/model/GenerateMergedTableRequest.cc @@ -1,41 +1,37 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::GenerateMergedTableRequest; - -GenerateMergedTableRequest::GenerateMergedTableRequest() : - RoaServiceRequest("opensearch", "2017-12-25") -{ - setResourcePath("/v4/openapi/assist/schema/actions/merge"); - setMethod(HttpRequest::Method::Post); -} - -GenerateMergedTableRequest::~GenerateMergedTableRequest() -{} - -std::string GenerateMergedTableRequest::getSpec()const -{ - return spec_; + */ + +#include + +using AlibabaCloud::OpenSearch::Model::GenerateMergedTableRequest; + +GenerateMergedTableRequest::GenerateMergedTableRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/assist/schema/actions/merge"}; + setMethod(HttpRequest::Method::Post); } -void GenerateMergedTableRequest::setSpec(const std::string& spec) -{ - spec_ = spec; - setParameter("Spec", spec); +GenerateMergedTableRequest::~GenerateMergedTableRequest() {} + +std::string GenerateMergedTableRequest::getSpec() const { + return spec_; +} + +void GenerateMergedTableRequest::setSpec(const std::string &spec) { + spec_ = spec; + setParameter(std::string("spec"), spec); } diff --git a/opensearch/src/model/GenerateMergedTableResult.cc b/opensearch/src/model/GenerateMergedTableResult.cc index 8d6ee5f0f..d4abf4983 100644 --- a/opensearch/src/model/GenerateMergedTableResult.cc +++ b/opensearch/src/model/GenerateMergedTableResult.cc @@ -40,12 +40,12 @@ void GenerateMergedTableResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto resultNode = value["result"]; + if(!resultNode["primaryKey"].isNull()) + result_.primaryKey = resultNode["primaryKey"].asString(); if(!resultNode["mergeTable"].isNull()) result_.mergeTable = resultNode["mergeTable"].asString(); if(!resultNode["fromTable"].isNull()) result_.fromTable = resultNode["fromTable"].asString(); - if(!resultNode["primaryKey"].isNull()) - result_.primaryKey = resultNode["primaryKey"].asString(); if(!value["requestId"].isNull()) requestId_ = value["requestId"].asString(); diff --git a/opensearch/src/model/GetDomainRequest.cc b/opensearch/src/model/GetDomainRequest.cc index 0653c0c78..be98ab003 100644 --- a/opensearch/src/model/GetDomainRequest.cc +++ b/opensearch/src/model/GetDomainRequest.cc @@ -1,52 +1,46 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::GetDomainRequest; - -GetDomainRequest::GetDomainRequest() : - RoaServiceRequest("opensearch", "2017-12-25") -{ - setResourcePath("/v4/openapi/domains/[domainName]"); - setMethod(HttpRequest::Method::Get); -} - -GetDomainRequest::~GetDomainRequest() -{} - -std::string GetDomainRequest::getDomainName()const -{ - return domainName_; + */ + +#include + +using AlibabaCloud::OpenSearch::Model::GetDomainRequest; + +GetDomainRequest::GetDomainRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/domains/[domainName]"}; + setMethod(HttpRequest::Method::Get); } -void GetDomainRequest::setDomainName(const std::string& domainName) -{ - domainName_ = domainName; - setParameter("DomainName", domainName); +GetDomainRequest::~GetDomainRequest() {} + +std::string GetDomainRequest::getDomainName() const { + return domainName_; } -std::string GetDomainRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void GetDomainRequest::setDomainName(const std::string &domainName) { + domainName_ = domainName; + setParameter(std::string("domainName"), domainName); } -void GetDomainRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string GetDomainRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void GetDomainRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/GetDomainResult.cc b/opensearch/src/model/GetDomainResult.cc index 4f9f715bd..ec95dc397 100644 --- a/opensearch/src/model/GetDomainResult.cc +++ b/opensearch/src/model/GetDomainResult.cc @@ -39,10 +39,10 @@ void GetDomainResult::parse(const std::string &payload) 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(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); } diff --git a/opensearch/src/model/GetFunctionCurrentVersionRequest.cc b/opensearch/src/model/GetFunctionCurrentVersionRequest.cc new file mode 100644 index 000000000..86fa072c2 --- /dev/null +++ b/opensearch/src/model/GetFunctionCurrentVersionRequest.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 + +using AlibabaCloud::OpenSearch::Model::GetFunctionCurrentVersionRequest; + +GetFunctionCurrentVersionRequest::GetFunctionCurrentVersionRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/functions/[functionName]/current-version"}; + setMethod(HttpRequest::Method::Get); +} + +GetFunctionCurrentVersionRequest::~GetFunctionCurrentVersionRequest() {} + +std::string GetFunctionCurrentVersionRequest::getModelType() const { + return modelType_; +} + +void GetFunctionCurrentVersionRequest::setModelType(const std::string &modelType) { + modelType_ = modelType; + setParameter(std::string("modelType"), modelType); +} + +std::string GetFunctionCurrentVersionRequest::getFunctionName() const { + return functionName_; +} + +void GetFunctionCurrentVersionRequest::setFunctionName(const std::string &functionName) { + functionName_ = functionName; + setParameter(std::string("functionName"), functionName); +} + +std::string GetFunctionCurrentVersionRequest::getDomain() const { + return domain_; +} + +void GetFunctionCurrentVersionRequest::setDomain(const std::string &domain) { + domain_ = domain; + setParameter(std::string("domain"), domain); +} + +std::string GetFunctionCurrentVersionRequest::getFunctionType() const { + return functionType_; +} + +void GetFunctionCurrentVersionRequest::setFunctionType(const std::string &functionType) { + functionType_ = functionType; + setParameter(std::string("functionType"), functionType); +} + +std::string GetFunctionCurrentVersionRequest::getCategory() const { + return category_; +} + +void GetFunctionCurrentVersionRequest::setCategory(const std::string &category) { + category_ = category; + setParameter(std::string("category"), category); +} + diff --git a/opensearch/src/model/GetFunctionCurrentVersionResult.cc b/opensearch/src/model/GetFunctionCurrentVersionResult.cc new file mode 100644 index 000000000..f19bcb89d --- /dev/null +++ b/opensearch/src/model/GetFunctionCurrentVersionResult.cc @@ -0,0 +1,128 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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; + +GetFunctionCurrentVersionResult::GetFunctionCurrentVersionResult() : + ServiceResult() +{} + +GetFunctionCurrentVersionResult::GetFunctionCurrentVersionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetFunctionCurrentVersionResult::~GetFunctionCurrentVersionResult() +{} + +void GetFunctionCurrentVersionResult::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["FunctionName"].isNull()) + result_.functionName = resultNode["FunctionName"].asString(); + if(!resultNode["FunctionType"].isNull()) + result_.functionType = resultNode["FunctionType"].asString(); + if(!resultNode["ModelType"].isNull()) + result_.modelType = resultNode["ModelType"].asString(); + if(!resultNode["VersionId"].isNull()) + result_.versionId = std::stol(resultNode["VersionId"].asString()); + if(!resultNode["VersionName"].isNull()) + result_.versionName = resultNode["VersionName"].asString(); + auto versionConfigNode = resultNode["VersionConfig"]; + auto allCreateParametersNode = versionConfigNode["CreateParameters"]["CreateParametersItem"]; + for (auto versionConfigNodeCreateParametersCreateParametersItem : allCreateParametersNode) + { + Result::VersionConfig::CreateParametersItem createParametersItemObject; + if(!versionConfigNodeCreateParametersCreateParametersItem["Name"].isNull()) + createParametersItemObject.name = versionConfigNodeCreateParametersCreateParametersItem["Name"].asString(); + if(!versionConfigNodeCreateParametersCreateParametersItem["Required"].isNull()) + createParametersItemObject.required = versionConfigNodeCreateParametersCreateParametersItem["Required"].asString(); + result_.versionConfig.createParameters.push_back(createParametersItemObject); + } + auto allDependsNode = versionConfigNode["Depends"]["DependsItem"]; + for (auto versionConfigNodeDependsDependsItem : allDependsNode) + { + Result::VersionConfig::DependsItem dependsItemObject; + if(!versionConfigNodeDependsDependsItem["Condition"].isNull()) + dependsItemObject.condition = versionConfigNodeDependsDependsItem["Condition"].asString(); + if(!versionConfigNodeDependsDependsItem["Dependency"].isNull()) + dependsItemObject.dependency = versionConfigNodeDependsDependsItem["Dependency"].asString(); + if(!versionConfigNodeDependsDependsItem["Description"].isNull()) + dependsItemObject.description = versionConfigNodeDependsDependsItem["Description"].asString(); + result_.versionConfig.depends.push_back(dependsItemObject); + } + auto allUsageParametersNode = versionConfigNode["UsageParameters"]["UsageParametersItem"]; + for (auto versionConfigNodeUsageParametersUsageParametersItem : allUsageParametersNode) + { + Result::VersionConfig::UsageParametersItem usageParametersItemObject; + if(!versionConfigNodeUsageParametersUsageParametersItem["Name"].isNull()) + usageParametersItemObject.name = versionConfigNodeUsageParametersUsageParametersItem["Name"].asString(); + if(!versionConfigNodeUsageParametersUsageParametersItem["Required"].isNull()) + usageParametersItemObject.required = versionConfigNodeUsageParametersUsageParametersItem["Required"].asString(); + result_.versionConfig.usageParameters.push_back(usageParametersItemObject); + } + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["HttpCode"].isNull()) + httpCode_ = std::stol(value["HttpCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Latency"].isNull()) + latency_ = std::stol(value["Latency"].asString()); + +} + +std::string GetFunctionCurrentVersionResult::getStatus()const +{ + return status_; +} + +long GetFunctionCurrentVersionResult::getHttpCode()const +{ + return httpCode_; +} + +std::string GetFunctionCurrentVersionResult::getMessage()const +{ + return message_; +} + +std::string GetFunctionCurrentVersionResult::getCode()const +{ + return code_; +} + +GetFunctionCurrentVersionResult::Result GetFunctionCurrentVersionResult::getResult()const +{ + return result_; +} + +long GetFunctionCurrentVersionResult::getLatency()const +{ + return latency_; +} + diff --git a/opensearch/src/model/GetFunctionDefaultInstanceRequest.cc b/opensearch/src/model/GetFunctionDefaultInstanceRequest.cc new file mode 100644 index 000000000..70b6f0d6e --- /dev/null +++ b/opensearch/src/model/GetFunctionDefaultInstanceRequest.cc @@ -0,0 +1,46 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::GetFunctionDefaultInstanceRequest; + +GetFunctionDefaultInstanceRequest::GetFunctionDefaultInstanceRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/functions/[functionName]/default-instance"}; + setMethod(HttpRequest::Method::Get); +} + +GetFunctionDefaultInstanceRequest::~GetFunctionDefaultInstanceRequest() {} + +std::string GetFunctionDefaultInstanceRequest::getFunctionName() const { + return functionName_; +} + +void GetFunctionDefaultInstanceRequest::setFunctionName(const std::string &functionName) { + functionName_ = functionName; + setParameter(std::string("functionName"), functionName); +} + +std::string GetFunctionDefaultInstanceRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void GetFunctionDefaultInstanceRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); +} + diff --git a/opensearch/src/model/GetFunctionDefaultInstanceResult.cc b/opensearch/src/model/GetFunctionDefaultInstanceResult.cc new file mode 100644 index 000000000..6d2518d06 --- /dev/null +++ b/opensearch/src/model/GetFunctionDefaultInstanceResult.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; + +GetFunctionDefaultInstanceResult::GetFunctionDefaultInstanceResult() : + ServiceResult() +{} + +GetFunctionDefaultInstanceResult::GetFunctionDefaultInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetFunctionDefaultInstanceResult::~GetFunctionDefaultInstanceResult() +{} + +void GetFunctionDefaultInstanceResult::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["InstanceName"].isNull()) + result_.instanceName = resultNode["InstanceName"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["HttpCode"].isNull()) + httpCode_ = std::stol(value["HttpCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Latency"].isNull()) + latency_ = std::stol(value["Latency"].asString()); + if(!value["InstanceName"].isNull()) + instanceName_ = value["InstanceName"].asString(); + if(!value["FunctionName"].isNull()) + functionName_ = value["FunctionName"].asString(); + +} + +std::string GetFunctionDefaultInstanceResult::getStatus()const +{ + return status_; +} + +std::string GetFunctionDefaultInstanceResult::getInstanceName()const +{ + return instanceName_; +} + +long GetFunctionDefaultInstanceResult::getHttpCode()const +{ + return httpCode_; +} + +std::string GetFunctionDefaultInstanceResult::getFunctionName()const +{ + return functionName_; +} + +std::string GetFunctionDefaultInstanceResult::getMessage()const +{ + return message_; +} + +std::string GetFunctionDefaultInstanceResult::getCode()const +{ + return code_; +} + +GetFunctionDefaultInstanceResult::Result GetFunctionDefaultInstanceResult::getResult()const +{ + return result_; +} + +long GetFunctionDefaultInstanceResult::getLatency()const +{ + return latency_; +} + diff --git a/opensearch/src/model/GetFunctionInstanceRequest.cc b/opensearch/src/model/GetFunctionInstanceRequest.cc new file mode 100644 index 000000000..315e95208 --- /dev/null +++ b/opensearch/src/model/GetFunctionInstanceRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::GetFunctionInstanceRequest; + +GetFunctionInstanceRequest::GetFunctionInstanceRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/functions/[functionName]/instances/[instanceName]"}; + setMethod(HttpRequest::Method::Get); +} + +GetFunctionInstanceRequest::~GetFunctionInstanceRequest() {} + +std::string GetFunctionInstanceRequest::getOutput() const { + return output_; +} + +void GetFunctionInstanceRequest::setOutput(const std::string &output) { + output_ = output; + setParameter(std::string("output"), output); +} + +std::string GetFunctionInstanceRequest::getInstanceName() const { + return instanceName_; +} + +void GetFunctionInstanceRequest::setInstanceName(const std::string &instanceName) { + instanceName_ = instanceName; + setParameter(std::string("instanceName"), instanceName); +} + +std::string GetFunctionInstanceRequest::getFunctionName() const { + return functionName_; +} + +void GetFunctionInstanceRequest::setFunctionName(const std::string &functionName) { + functionName_ = functionName; + setParameter(std::string("functionName"), functionName); +} + +std::string GetFunctionInstanceRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void GetFunctionInstanceRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); +} + diff --git a/opensearch/src/model/GetFunctionInstanceResult.cc b/opensearch/src/model/GetFunctionInstanceResult.cc new file mode 100644 index 000000000..0f3f435d5 --- /dev/null +++ b/opensearch/src/model/GetFunctionInstanceResult.cc @@ -0,0 +1,139 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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; + +GetFunctionInstanceResult::GetFunctionInstanceResult() : + ServiceResult() +{} + +GetFunctionInstanceResult::GetFunctionInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetFunctionInstanceResult::~GetFunctionInstanceResult() +{} + +void GetFunctionInstanceResult::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["CreateTime"].isNull()) + result_.createTime = std::stol(resultNode["CreateTime"].asString()); + if(!resultNode["Cron"].isNull()) + result_.cron = resultNode["Cron"].asString(); + if(!resultNode["Description"].isNull()) + result_.description = resultNode["Description"].asString(); + if(!resultNode["ExtendInfo"].isNull()) + result_.extendInfo = resultNode["ExtendInfo"].asString(); + if(!resultNode["FunctionName"].isNull()) + result_.functionName = resultNode["FunctionName"].asString(); + if(!resultNode["FunctionType"].isNull()) + result_.functionType = resultNode["FunctionType"].asString(); + if(!resultNode["InstanceName"].isNull()) + result_.instanceName = resultNode["InstanceName"].asString(); + if(!resultNode["ModelType"].isNull()) + result_.modelType = resultNode["ModelType"].asString(); + if(!resultNode["Source"].isNull()) + result_.source = resultNode["Source"].asString(); + if(!resultNode["Status"].isNull()) + result_.status = resultNode["Status"].asString(); + if(!resultNode["VersionId"].isNull()) + result_.versionId = std::stol(resultNode["VersionId"].asString()); + auto allCreateParametersNode = resultNode["CreateParameters"]["CreateParametersItem"]; + for (auto resultNodeCreateParametersCreateParametersItem : allCreateParametersNode) + { + Result::CreateParametersItem createParametersItemObject; + if(!resultNodeCreateParametersCreateParametersItem["Name"].isNull()) + createParametersItemObject.name = resultNodeCreateParametersCreateParametersItem["Name"].asString(); + if(!resultNodeCreateParametersCreateParametersItem["Value"].isNull()) + createParametersItemObject.value = resultNodeCreateParametersCreateParametersItem["Value"].asString(); + result_.createParameters.push_back(createParametersItemObject); + } + auto allUsageParametersNode = resultNode["UsageParameters"]["UsageParametersItem"]; + for (auto resultNodeUsageParametersUsageParametersItem : allUsageParametersNode) + { + Result::UsageParametersItem usageParametersItemObject; + if(!resultNodeUsageParametersUsageParametersItem["Name"].isNull()) + usageParametersItemObject.name = resultNodeUsageParametersUsageParametersItem["Name"].asString(); + if(!resultNodeUsageParametersUsageParametersItem["Value"].isNull()) + usageParametersItemObject.value = resultNodeUsageParametersUsageParametersItem["Value"].asString(); + result_.usageParameters.push_back(usageParametersItemObject); + } + auto belongsNode = resultNode["Belongs"]; + if(!belongsNode["Category"].isNull()) + result_.belongs.category = belongsNode["Category"].asString(); + if(!belongsNode["Domain"].isNull()) + result_.belongs.domain = belongsNode["Domain"].asString(); + if(!belongsNode["Language"].isNull()) + result_.belongs.language = belongsNode["Language"].asString(); + auto taskNode = resultNode["Task"]; + if(!taskNode["DagStatus"].isNull()) + result_.task.dagStatus = taskNode["DagStatus"].asString(); + if(!taskNode["LastRunTime"].isNull()) + result_.task.lastRunTime = std::stol(taskNode["LastRunTime"].asString()); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["HttpCode"].isNull()) + httpCode_ = std::stol(value["HttpCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Latency"].isNull()) + latency_ = std::stol(value["Latency"].asString()); + +} + +std::string GetFunctionInstanceResult::getStatus()const +{ + return status_; +} + +long GetFunctionInstanceResult::getHttpCode()const +{ + return httpCode_; +} + +std::string GetFunctionInstanceResult::getMessage()const +{ + return message_; +} + +std::string GetFunctionInstanceResult::getCode()const +{ + return code_; +} + +GetFunctionInstanceResult::Result GetFunctionInstanceResult::getResult()const +{ + return result_; +} + +long GetFunctionInstanceResult::getLatency()const +{ + return latency_; +} + diff --git a/opensearch/src/model/GetFunctionTaskRequest.cc b/opensearch/src/model/GetFunctionTaskRequest.cc new file mode 100644 index 000000000..3d0b64eb4 --- /dev/null +++ b/opensearch/src/model/GetFunctionTaskRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::GetFunctionTaskRequest; + +GetFunctionTaskRequest::GetFunctionTaskRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/functions/[functionName]/instances/[instanceName]/tasks/[generation]"}; + setMethod(HttpRequest::Method::Get); +} + +GetFunctionTaskRequest::~GetFunctionTaskRequest() {} + +std::string GetFunctionTaskRequest::getGeneration() const { + return generation_; +} + +void GetFunctionTaskRequest::setGeneration(const std::string &generation) { + generation_ = generation; + setParameter(std::string("generation"), generation); +} + +std::string GetFunctionTaskRequest::getInstanceName() const { + return instanceName_; +} + +void GetFunctionTaskRequest::setInstanceName(const std::string &instanceName) { + instanceName_ = instanceName; + setParameter(std::string("instanceName"), instanceName); +} + +std::string GetFunctionTaskRequest::getFunctionName() const { + return functionName_; +} + +void GetFunctionTaskRequest::setFunctionName(const std::string &functionName) { + functionName_ = functionName; + setParameter(std::string("functionName"), functionName); +} + +std::string GetFunctionTaskRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void GetFunctionTaskRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); +} + diff --git a/opensearch/src/model/GetFunctionTaskResult.cc b/opensearch/src/model/GetFunctionTaskResult.cc new file mode 100644 index 000000000..0a417670e --- /dev/null +++ b/opensearch/src/model/GetFunctionTaskResult.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; + +GetFunctionTaskResult::GetFunctionTaskResult() : + ServiceResult() +{} + +GetFunctionTaskResult::GetFunctionTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetFunctionTaskResult::~GetFunctionTaskResult() +{} + +void GetFunctionTaskResult::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["EndTime"].isNull()) + result_.endTime = std::stol(resultNode["EndTime"].asString()); + if(!resultNode["ExtendInfo"].isNull()) + result_.extendInfo = resultNode["ExtendInfo"].asString(); + if(!resultNode["FunctionName"].isNull()) + result_.functionName = resultNode["FunctionName"].asString(); + if(!resultNode["Generation"].isNull()) + result_.generation = resultNode["Generation"].asString(); + if(!resultNode["Progress"].isNull()) + result_.progress = std::stol(resultNode["Progress"].asString()); + if(!resultNode["RunId"].isNull()) + result_.runId = resultNode["RunId"].asString(); + if(!resultNode["StartTime"].isNull()) + result_.startTime = std::stol(resultNode["StartTime"].asString()); + if(!resultNode["Status"].isNull()) + result_.status = resultNode["Status"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["HttpCode"].isNull()) + httpCode_ = std::stol(value["HttpCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Latency"].isNull()) + latency_ = std::stol(value["Latency"].asString()); + +} + +std::string GetFunctionTaskResult::getStatus()const +{ + return status_; +} + +long GetFunctionTaskResult::getHttpCode()const +{ + return httpCode_; +} + +std::string GetFunctionTaskResult::getMessage()const +{ + return message_; +} + +std::string GetFunctionTaskResult::getCode()const +{ + return code_; +} + +GetFunctionTaskResult::Result GetFunctionTaskResult::getResult()const +{ + return result_; +} + +long GetFunctionTaskResult::getLatency()const +{ + return latency_; +} + diff --git a/opensearch/src/model/GetFunctionVersionRequest.cc b/opensearch/src/model/GetFunctionVersionRequest.cc new file mode 100644 index 000000000..e21c10ef1 --- /dev/null +++ b/opensearch/src/model/GetFunctionVersionRequest.cc @@ -0,0 +1,46 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::GetFunctionVersionRequest; + +GetFunctionVersionRequest::GetFunctionVersionRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/functions/[functionName]/versions/[versionId]"}; + setMethod(HttpRequest::Method::Get); +} + +GetFunctionVersionRequest::~GetFunctionVersionRequest() {} + +int GetFunctionVersionRequest::getVersionId() const { + return versionId_; +} + +void GetFunctionVersionRequest::setVersionId(int versionId) { + versionId_ = versionId; + setParameter(std::string("versionId"), std::to_string(versionId)); +} + +std::string GetFunctionVersionRequest::getFunctionName() const { + return functionName_; +} + +void GetFunctionVersionRequest::setFunctionName(const std::string &functionName) { + functionName_ = functionName; + setParameter(std::string("functionName"), functionName); +} + diff --git a/opensearch/src/model/GetFunctionVersionResult.cc b/opensearch/src/model/GetFunctionVersionResult.cc new file mode 100644 index 000000000..b6b7901a1 --- /dev/null +++ b/opensearch/src/model/GetFunctionVersionResult.cc @@ -0,0 +1,128 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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; + +GetFunctionVersionResult::GetFunctionVersionResult() : + ServiceResult() +{} + +GetFunctionVersionResult::GetFunctionVersionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetFunctionVersionResult::~GetFunctionVersionResult() +{} + +void GetFunctionVersionResult::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["FunctionName"].isNull()) + result_.functionName = resultNode["FunctionName"].asString(); + if(!resultNode["FunctionType"].isNull()) + result_.functionType = resultNode["FunctionType"].asString(); + if(!resultNode["ModelType"].isNull()) + result_.modelType = resultNode["ModelType"].asString(); + if(!resultNode["VersionId"].isNull()) + result_.versionId = std::stol(resultNode["VersionId"].asString()); + if(!resultNode["VersionName"].isNull()) + result_.versionName = resultNode["VersionName"].asString(); + auto versionConfigNode = resultNode["VersionConfig"]; + auto allCreateParametersNode = versionConfigNode["CreateParameters"]["CreateParametersItem"]; + for (auto versionConfigNodeCreateParametersCreateParametersItem : allCreateParametersNode) + { + Result::VersionConfig::CreateParametersItem createParametersItemObject; + if(!versionConfigNodeCreateParametersCreateParametersItem["Name"].isNull()) + createParametersItemObject.name = versionConfigNodeCreateParametersCreateParametersItem["Name"].asString(); + if(!versionConfigNodeCreateParametersCreateParametersItem["Required"].isNull()) + createParametersItemObject.required = versionConfigNodeCreateParametersCreateParametersItem["Required"].asString(); + result_.versionConfig.createParameters.push_back(createParametersItemObject); + } + auto allDependsNode = versionConfigNode["Depends"]["DependsItem"]; + for (auto versionConfigNodeDependsDependsItem : allDependsNode) + { + Result::VersionConfig::DependsItem dependsItemObject; + if(!versionConfigNodeDependsDependsItem["Condition"].isNull()) + dependsItemObject.condition = versionConfigNodeDependsDependsItem["Condition"].asString(); + if(!versionConfigNodeDependsDependsItem["Dependency"].isNull()) + dependsItemObject.dependency = versionConfigNodeDependsDependsItem["Dependency"].asString(); + if(!versionConfigNodeDependsDependsItem["Description"].isNull()) + dependsItemObject.description = versionConfigNodeDependsDependsItem["Description"].asString(); + result_.versionConfig.depends.push_back(dependsItemObject); + } + auto allUsageParametersNode = versionConfigNode["UsageParameters"]["UsageParametersItem"]; + for (auto versionConfigNodeUsageParametersUsageParametersItem : allUsageParametersNode) + { + Result::VersionConfig::UsageParametersItem usageParametersItemObject; + if(!versionConfigNodeUsageParametersUsageParametersItem["Name"].isNull()) + usageParametersItemObject.name = versionConfigNodeUsageParametersUsageParametersItem["Name"].asString(); + if(!versionConfigNodeUsageParametersUsageParametersItem["Required"].isNull()) + usageParametersItemObject.required = versionConfigNodeUsageParametersUsageParametersItem["Required"].asString(); + result_.versionConfig.usageParameters.push_back(usageParametersItemObject); + } + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["HttpCode"].isNull()) + httpCode_ = std::stol(value["HttpCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Latency"].isNull()) + latency_ = std::stol(value["Latency"].asString()); + +} + +std::string GetFunctionVersionResult::getStatus()const +{ + return status_; +} + +long GetFunctionVersionResult::getHttpCode()const +{ + return httpCode_; +} + +std::string GetFunctionVersionResult::getMessage()const +{ + return message_; +} + +std::string GetFunctionVersionResult::getCode()const +{ + return code_; +} + +GetFunctionVersionResult::Result GetFunctionVersionResult::getResult()const +{ + return result_; +} + +long GetFunctionVersionResult::getLatency()const +{ + return latency_; +} + diff --git a/opensearch/src/model/GetModelProgressRequest.cc b/opensearch/src/model/GetModelProgressRequest.cc index 4c64c028b..3207db5d7 100644 --- a/opensearch/src/model/GetModelProgressRequest.cc +++ b/opensearch/src/model/GetModelProgressRequest.cc @@ -1,52 +1,46 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#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); } -void GetModelProgressRequest::setModelName(const std::string& modelName) -{ - modelName_ = modelName; - setParameter("ModelName", modelName); +GetModelProgressRequest::~GetModelProgressRequest() {} + +std::string GetModelProgressRequest::getModelName() const { + return modelName_; } -std::string GetModelProgressRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void GetModelProgressRequest::setModelName(const std::string &modelName) { + modelName_ = modelName; + setParameter(std::string("modelName"), modelName); } -void GetModelProgressRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string GetModelProgressRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void GetModelProgressRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/GetModelReportRequest.cc b/opensearch/src/model/GetModelReportRequest.cc index 480660827..a3ad75d42 100644 --- a/opensearch/src/model/GetModelReportRequest.cc +++ b/opensearch/src/model/GetModelReportRequest.cc @@ -1,52 +1,46 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#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); } -void GetModelReportRequest::setModelName(const std::string& modelName) -{ - modelName_ = modelName; - setParameter("ModelName", modelName); +GetModelReportRequest::~GetModelReportRequest() {} + +std::string GetModelReportRequest::getModelName() const { + return modelName_; } -std::string GetModelReportRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void GetModelReportRequest::setModelName(const std::string &modelName) { + modelName_ = modelName; + setParameter(std::string("modelName"), modelName); } -void GetModelReportRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string GetModelReportRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void GetModelReportRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/GetModelReportResult.cc b/opensearch/src/model/GetModelReportResult.cc index ce056169f..53d8fff21 100644 --- a/opensearch/src/model/GetModelReportResult.cc +++ b/opensearch/src/model/GetModelReportResult.cc @@ -39,10 +39,10 @@ void GetModelReportResult::parse(const std::string &payload) 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(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); } diff --git a/opensearch/src/model/GetScriptFileNamesRequest.cc b/opensearch/src/model/GetScriptFileNamesRequest.cc index 852a6cfe6..e16189981 100644 --- a/opensearch/src/model/GetScriptFileNamesRequest.cc +++ b/opensearch/src/model/GetScriptFileNamesRequest.cc @@ -1,63 +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. - */ - -#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_; + */ + +#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); } -void GetScriptFileNamesRequest::setAppVersionId(const std::string& appVersionId) -{ - appVersionId_ = appVersionId; - setParameter("AppVersionId", appVersionId); +GetScriptFileNamesRequest::~GetScriptFileNamesRequest() {} + +std::string GetScriptFileNamesRequest::getAppVersionId() const { + return appVersionId_; } -std::string GetScriptFileNamesRequest::getScriptName()const -{ - return scriptName_; +void GetScriptFileNamesRequest::setAppVersionId(const std::string &appVersionId) { + appVersionId_ = appVersionId; + setParameter(std::string("appVersionId"), appVersionId); } -void GetScriptFileNamesRequest::setScriptName(const std::string& scriptName) -{ - scriptName_ = scriptName; - setParameter("ScriptName", scriptName); +std::string GetScriptFileNamesRequest::getScriptName() const { + return scriptName_; } -std::string GetScriptFileNamesRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void GetScriptFileNamesRequest::setScriptName(const std::string &scriptName) { + scriptName_ = scriptName; + setParameter(std::string("scriptName"), scriptName); } -void GetScriptFileNamesRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string GetScriptFileNamesRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void GetScriptFileNamesRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/GetScriptFileNamesResult.cc b/opensearch/src/model/GetScriptFileNamesResult.cc index 606fd054e..3eddf34d9 100644 --- a/opensearch/src/model/GetScriptFileNamesResult.cc +++ b/opensearch/src/model/GetScriptFileNamesResult.cc @@ -43,12 +43,14 @@ void GetScriptFileNamesResult::parse(const std::string &payload) 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["fileName"].isNull()) + resultObject.fileName = valueresultfileInfos["fileName"].asString(); if(!valueresultfileInfos["modifyTime"].isNull()) resultObject.modifyTime = valueresultfileInfos["modifyTime"].asString(); + if(!valueresultfileInfos["pathName"].isNull()) + resultObject.pathName = valueresultfileInfos["pathName"].asString(); result_.push_back(resultObject); } if(!value["requestId"].isNull()) diff --git a/opensearch/src/model/GetSearchStrategyRequest.cc b/opensearch/src/model/GetSearchStrategyRequest.cc new file mode 100644 index 000000000..0cb10f1e3 --- /dev/null +++ b/opensearch/src/model/GetSearchStrategyRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::GetSearchStrategyRequest; + +GetSearchStrategyRequest::GetSearchStrategyRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appId]/search-strategies/[strategyName]"}; + setMethod(HttpRequest::Method::Get); +} + +GetSearchStrategyRequest::~GetSearchStrategyRequest() {} + +std::string GetSearchStrategyRequest::getStrategyName() const { + return strategyName_; +} + +void GetSearchStrategyRequest::setStrategyName(const std::string &strategyName) { + strategyName_ = strategyName; + setParameter(std::string("strategyName"), strategyName); +} + +std::string GetSearchStrategyRequest::getAppId() const { + return appId_; +} + +void GetSearchStrategyRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("appId"), appId); +} + +std::string GetSearchStrategyRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void GetSearchStrategyRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); +} + diff --git a/opensearch/src/model/GetSearchStrategyResult.cc b/opensearch/src/model/GetSearchStrategyResult.cc new file mode 100644 index 000000000..3adc82bae --- /dev/null +++ b/opensearch/src/model/GetSearchStrategyResult.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; + +GetSearchStrategyResult::GetSearchStrategyResult() : + ServiceResult() +{} + +GetSearchStrategyResult::GetSearchStrategyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetSearchStrategyResult::~GetSearchStrategyResult() +{} + +void GetSearchStrategyResult::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 GetSearchStrategyResult::getRequestId()const +{ + return requestId_; +} + diff --git a/opensearch/src/model/GetSortScriptFileRequest.cc b/opensearch/src/model/GetSortScriptFileRequest.cc index 3ae670b67..9d9693517 100644 --- a/opensearch/src/model/GetSortScriptFileRequest.cc +++ b/opensearch/src/model/GetSortScriptFileRequest.cc @@ -1,74 +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. - */ - -#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_; + */ + +#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); } -void GetSortScriptFileRequest::setAppVersionId(const std::string& appVersionId) -{ - appVersionId_ = appVersionId; - setParameter("AppVersionId", appVersionId); +GetSortScriptFileRequest::~GetSortScriptFileRequest() {} + +std::string GetSortScriptFileRequest::getAppVersionId() const { + return appVersionId_; } -std::string GetSortScriptFileRequest::getFileName()const -{ - return fileName_; +void GetSortScriptFileRequest::setAppVersionId(const std::string &appVersionId) { + appVersionId_ = appVersionId; + setParameter(std::string("appVersionId"), appVersionId); } -void GetSortScriptFileRequest::setFileName(const std::string& fileName) -{ - fileName_ = fileName; - setParameter("FileName", fileName); +std::string GetSortScriptFileRequest::getFileName() const { + return fileName_; } -std::string GetSortScriptFileRequest::getScriptName()const -{ - return scriptName_; +void GetSortScriptFileRequest::setFileName(const std::string &fileName) { + fileName_ = fileName; + setParameter(std::string("fileName"), fileName); } -void GetSortScriptFileRequest::setScriptName(const std::string& scriptName) -{ - scriptName_ = scriptName; - setParameter("ScriptName", scriptName); +std::string GetSortScriptFileRequest::getScriptName() const { + return scriptName_; } -std::string GetSortScriptFileRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void GetSortScriptFileRequest::setScriptName(const std::string &scriptName) { + scriptName_ = scriptName; + setParameter(std::string("scriptName"), scriptName); } -void GetSortScriptFileRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string GetSortScriptFileRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void GetSortScriptFileRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/GetSortScriptFileResult.cc b/opensearch/src/model/GetSortScriptFileResult.cc index 177bc2970..8d47dccda 100644 --- a/opensearch/src/model/GetSortScriptFileResult.cc +++ b/opensearch/src/model/GetSortScriptFileResult.cc @@ -42,12 +42,12 @@ void GetSortScriptFileResult::parse(const std::string &payload) 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(!resultNode["version"].isNull()) + result_.version = std::stol(resultNode["version"].asString()); if(!value["requestId"].isNull()) requestId_ = value["requestId"].asString(); diff --git a/opensearch/src/model/GetSortScriptRequest.cc b/opensearch/src/model/GetSortScriptRequest.cc index ddc2060fe..e70530c46 100644 --- a/opensearch/src/model/GetSortScriptRequest.cc +++ b/opensearch/src/model/GetSortScriptRequest.cc @@ -1,63 +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. - */ - -#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_; + */ + +#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); } -void GetSortScriptRequest::setAppVersionId(const std::string& appVersionId) -{ - appVersionId_ = appVersionId; - setParameter("AppVersionId", appVersionId); +GetSortScriptRequest::~GetSortScriptRequest() {} + +std::string GetSortScriptRequest::getAppVersionId() const { + return appVersionId_; } -std::string GetSortScriptRequest::getScriptName()const -{ - return scriptName_; +void GetSortScriptRequest::setAppVersionId(const std::string &appVersionId) { + appVersionId_ = appVersionId; + setParameter(std::string("appVersionId"), appVersionId); } -void GetSortScriptRequest::setScriptName(const std::string& scriptName) -{ - scriptName_ = scriptName; - setParameter("ScriptName", scriptName); +std::string GetSortScriptRequest::getScriptName() const { + return scriptName_; } -std::string GetSortScriptRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void GetSortScriptRequest::setScriptName(const std::string &scriptName) { + scriptName_ = scriptName; + setParameter(std::string("scriptName"), scriptName); } -void GetSortScriptRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string GetSortScriptRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void GetSortScriptRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/GetSortScriptResult.cc b/opensearch/src/model/GetSortScriptResult.cc index af45e45a3..9d61fe485 100644 --- a/opensearch/src/model/GetSortScriptResult.cc +++ b/opensearch/src/model/GetSortScriptResult.cc @@ -40,16 +40,16 @@ void GetSortScriptResult::parse(const std::string &payload) 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["status"].isNull()) + result_.status = resultNode["status"].asString(); if(!resultNode["modifyTime"].isNull()) result_.modifyTime = resultNode["modifyTime"].asString(); + if(!resultNode["type"].isNull()) + result_.type = resultNode["type"].asString(); if(!value["requestId"].isNull()) requestId_ = value["requestId"].asString(); diff --git a/opensearch/src/model/GetValidationErrorRequest.cc b/opensearch/src/model/GetValidationErrorRequest.cc index 82eb123cf..347443aba 100644 --- a/opensearch/src/model/GetValidationErrorRequest.cc +++ b/opensearch/src/model/GetValidationErrorRequest.cc @@ -1,52 +1,46 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#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); } -void GetValidationErrorRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +GetValidationErrorRequest::~GetValidationErrorRequest() {} + +std::string GetValidationErrorRequest::getAppGroupIdentity() const { + return appGroupIdentity_; } -std::string GetValidationErrorRequest::getErrorCode()const -{ - return errorCode_; +void GetValidationErrorRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } -void GetValidationErrorRequest::setErrorCode(const std::string& errorCode) -{ - errorCode_ = errorCode; - setParameter("ErrorCode", errorCode); +std::string GetValidationErrorRequest::getErrorCode() const { + return errorCode_; +} + +void GetValidationErrorRequest::setErrorCode(const std::string &errorCode) { + errorCode_ = errorCode; + setParameter(std::string("errorCode"), errorCode); } diff --git a/opensearch/src/model/GetValidationReportRequest.cc b/opensearch/src/model/GetValidationReportRequest.cc index 6ee363d51..c746c7fcc 100644 --- a/opensearch/src/model/GetValidationReportRequest.cc +++ b/opensearch/src/model/GetValidationReportRequest.cc @@ -1,52 +1,46 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#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); } -void GetValidationReportRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); +GetValidationReportRequest::~GetValidationReportRequest() {} + +std::string GetValidationReportRequest::getType() const { + return type_; } -std::string GetValidationReportRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void GetValidationReportRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("type"), type); } -void GetValidationReportRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string GetValidationReportRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void GetValidationReportRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/ListABTestExperimentsRequest.cc b/opensearch/src/model/ListABTestExperimentsRequest.cc index 778274dbc..0dbbfed98 100644 --- a/opensearch/src/model/ListABTestExperimentsRequest.cc +++ b/opensearch/src/model/ListABTestExperimentsRequest.cc @@ -1,63 +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. - */ - -#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_; + */ + +#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); } -void ListABTestExperimentsRequest::setGroupId(int groupId) -{ - groupId_ = groupId; - setParameter("GroupId", std::to_string(groupId)); +ListABTestExperimentsRequest::~ListABTestExperimentsRequest() {} + +int ListABTestExperimentsRequest::getGroupId() const { + return groupId_; } -int ListABTestExperimentsRequest::getSceneId()const -{ - return sceneId_; +void ListABTestExperimentsRequest::setGroupId(int groupId) { + groupId_ = groupId; + setParameter(std::string("groupId"), std::to_string(groupId)); } -void ListABTestExperimentsRequest::setSceneId(int sceneId) -{ - sceneId_ = sceneId; - setParameter("SceneId", std::to_string(sceneId)); +int ListABTestExperimentsRequest::getSceneId() const { + return sceneId_; } -std::string ListABTestExperimentsRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void ListABTestExperimentsRequest::setSceneId(int sceneId) { + sceneId_ = sceneId; + setParameter(std::string("sceneId"), std::to_string(sceneId)); } -void ListABTestExperimentsRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string ListABTestExperimentsRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void ListABTestExperimentsRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/ListABTestExperimentsResult.cc b/opensearch/src/model/ListABTestExperimentsResult.cc index 8315957cd..07554aca8 100644 --- a/opensearch/src/model/ListABTestExperimentsResult.cc +++ b/opensearch/src/model/ListABTestExperimentsResult.cc @@ -43,20 +43,20 @@ void ListABTestExperimentsResult::parse(const std::string &payload) 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["params"].isNull()) + resultObject.params = valueresultresultItem["params"].asString(); if(!valueresultresultItem["traffic"].isNull()) resultObject.traffic = std::stoi(valueresultresultItem["traffic"].asString()); + if(!valueresultresultItem["online"].isNull()) + resultObject.online = valueresultresultItem["online"].asString() == "true"; + if(!valueresultresultItem["name"].isNull()) + resultObject.name = valueresultresultItem["name"].asString(); + if(!valueresultresultItem["updated"].isNull()) + resultObject.updated = std::stoi(valueresultresultItem["updated"].asString()); + if(!valueresultresultItem["id"].isNull()) + resultObject.id = valueresultresultItem["id"].asString(); result_.push_back(resultObject); } if(!value["requestId"].isNull()) diff --git a/opensearch/src/model/ListABTestFixedFlowDividersRequest.cc b/opensearch/src/model/ListABTestFixedFlowDividersRequest.cc index cfa1f611f..9de6690ae 100644 --- a/opensearch/src/model/ListABTestFixedFlowDividersRequest.cc +++ b/opensearch/src/model/ListABTestFixedFlowDividersRequest.cc @@ -1,74 +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. - */ - -#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_; + */ + +#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); } -void ListABTestFixedFlowDividersRequest::setGroupId(int groupId) -{ - groupId_ = groupId; - setParameter("GroupId", std::to_string(groupId)); +ListABTestFixedFlowDividersRequest::~ListABTestFixedFlowDividersRequest() {} + +int ListABTestFixedFlowDividersRequest::getGroupId() const { + return groupId_; } -int ListABTestFixedFlowDividersRequest::getSceneId()const -{ - return sceneId_; +void ListABTestFixedFlowDividersRequest::setGroupId(int groupId) { + groupId_ = groupId; + setParameter(std::string("groupId"), std::to_string(groupId)); } -void ListABTestFixedFlowDividersRequest::setSceneId(int sceneId) -{ - sceneId_ = sceneId; - setParameter("SceneId", std::to_string(sceneId)); +int ListABTestFixedFlowDividersRequest::getSceneId() const { + return sceneId_; } -int ListABTestFixedFlowDividersRequest::getExperimentId()const -{ - return experimentId_; +void ListABTestFixedFlowDividersRequest::setSceneId(int sceneId) { + sceneId_ = sceneId; + setParameter(std::string("sceneId"), std::to_string(sceneId)); } -void ListABTestFixedFlowDividersRequest::setExperimentId(int experimentId) -{ - experimentId_ = experimentId; - setParameter("ExperimentId", std::to_string(experimentId)); +int ListABTestFixedFlowDividersRequest::getExperimentId() const { + return experimentId_; } -std::string ListABTestFixedFlowDividersRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void ListABTestFixedFlowDividersRequest::setExperimentId(int experimentId) { + experimentId_ = experimentId; + setParameter(std::string("experimentId"), std::to_string(experimentId)); } -void ListABTestFixedFlowDividersRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string ListABTestFixedFlowDividersRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void ListABTestFixedFlowDividersRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/ListABTestGroupsRequest.cc b/opensearch/src/model/ListABTestGroupsRequest.cc index b4f9440b2..dfcf0e7fb 100644 --- a/opensearch/src/model/ListABTestGroupsRequest.cc +++ b/opensearch/src/model/ListABTestGroupsRequest.cc @@ -1,52 +1,46 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#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); } -void ListABTestGroupsRequest::setSceneId(int sceneId) -{ - sceneId_ = sceneId; - setParameter("SceneId", std::to_string(sceneId)); +ListABTestGroupsRequest::~ListABTestGroupsRequest() {} + +int ListABTestGroupsRequest::getSceneId() const { + return sceneId_; } -std::string ListABTestGroupsRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void ListABTestGroupsRequest::setSceneId(int sceneId) { + sceneId_ = sceneId; + setParameter(std::string("sceneId"), std::to_string(sceneId)); } -void ListABTestGroupsRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string ListABTestGroupsRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void ListABTestGroupsRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/ListABTestGroupsResult.cc b/opensearch/src/model/ListABTestGroupsResult.cc index 3b379c8b2..8ee20186b 100644 --- a/opensearch/src/model/ListABTestGroupsResult.cc +++ b/opensearch/src/model/ListABTestGroupsResult.cc @@ -43,16 +43,16 @@ void ListABTestGroupsResult::parse(const std::string &payload) 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["status"].isNull()) + resultObject.status = std::stoi(valueresultresultItem["status"].asString()); if(!valueresultresultItem["updated"].isNull()) resultObject.updated = std::stoi(valueresultresultItem["updated"].asString()); + if(!valueresultresultItem["name"].isNull()) + resultObject.name = valueresultresultItem["name"].asString(); + if(!valueresultresultItem["id"].isNull()) + resultObject.id = valueresultresultItem["id"].asString(); result_.push_back(resultObject); } if(!value["requestId"].isNull()) diff --git a/opensearch/src/model/ListABTestMetricsRequest.cc b/opensearch/src/model/ListABTestMetricsRequest.cc index aad940dd4..a0bafc439 100644 --- a/opensearch/src/model/ListABTestMetricsRequest.cc +++ b/opensearch/src/model/ListABTestMetricsRequest.cc @@ -1,63 +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. - */ - -#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_; + */ + +#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); } -void ListABTestMetricsRequest::setGroupId(int groupId) -{ - groupId_ = groupId; - setParameter("GroupId", std::to_string(groupId)); +ListABTestMetricsRequest::~ListABTestMetricsRequest() {} + +int ListABTestMetricsRequest::getGroupId() const { + return groupId_; } -int ListABTestMetricsRequest::getSceneId()const -{ - return sceneId_; +void ListABTestMetricsRequest::setGroupId(int groupId) { + groupId_ = groupId; + setParameter(std::string("groupId"), std::to_string(groupId)); } -void ListABTestMetricsRequest::setSceneId(int sceneId) -{ - sceneId_ = sceneId; - setParameter("SceneId", std::to_string(sceneId)); +int ListABTestMetricsRequest::getSceneId() const { + return sceneId_; } -std::string ListABTestMetricsRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void ListABTestMetricsRequest::setSceneId(int sceneId) { + sceneId_ = sceneId; + setParameter(std::string("sceneId"), std::to_string(sceneId)); } -void ListABTestMetricsRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string ListABTestMetricsRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void ListABTestMetricsRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/ListABTestMetricsResult.cc b/opensearch/src/model/ListABTestMetricsResult.cc index db10aa0c7..07c514a7d 100644 --- a/opensearch/src/model/ListABTestMetricsResult.cc +++ b/opensearch/src/model/ListABTestMetricsResult.cc @@ -43,22 +43,22 @@ void ListABTestMetricsResult::parse(const std::string &payload) for (auto valueresultresultItem : allresultNode) { ResultItem resultObject; + if(!valueresultresultItem["zeroHitRate"].isNull()) + resultObject.zeroHitRate = std::stof(valueresultresultItem["zeroHitRate"].asString()); + if(!valueresultresultItem["ctr"].isNull()) + resultObject.ctr = std::stof(valueresultresultItem["ctr"].asString()); 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["ipvUv"].isNull()) + resultObject.ipvUv = std::stoi(valueresultresultItem["ipvUv"].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()); + if(!valueresultresultItem["pv"].isNull()) + resultObject.pv = std::stoi(valueresultresultItem["pv"].asString()); result_.push_back(resultObject); } if(!value["requestId"].isNull()) diff --git a/opensearch/src/model/ListABTestScenesRequest.cc b/opensearch/src/model/ListABTestScenesRequest.cc index d8eea9b9f..cb0e1eb18 100644 --- a/opensearch/src/model/ListABTestScenesRequest.cc +++ b/opensearch/src/model/ListABTestScenesRequest.cc @@ -1,41 +1,37 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ListABTestScenesRequest; + +ListABTestScenesRequest::ListABTestScenesRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/scenes"}; + setMethod(HttpRequest::Method::Get); } -void ListABTestScenesRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +ListABTestScenesRequest::~ListABTestScenesRequest() {} + +std::string ListABTestScenesRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void ListABTestScenesRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/ListABTestScenesResult.cc b/opensearch/src/model/ListABTestScenesResult.cc index 2f443199e..46a38a131 100644 --- a/opensearch/src/model/ListABTestScenesResult.cc +++ b/opensearch/src/model/ListABTestScenesResult.cc @@ -43,16 +43,16 @@ void ListABTestScenesResult::parse(const std::string &payload) 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["status"].isNull()) + resultObject.status = std::stoi(valueresultresultItem["status"].asString()); if(!valueresultresultItem["updated"].isNull()) resultObject.updated = std::stoi(valueresultresultItem["updated"].asString()); + if(!valueresultresultItem["name"].isNull()) + resultObject.name = valueresultresultItem["name"].asString(); + if(!valueresultresultItem["id"].isNull()) + resultObject.id = valueresultresultItem["id"].asString(); auto allValues = value["values"]["values"]; for (auto value : allValues) resultObject.values.push_back(value.asString()); diff --git a/opensearch/src/model/ListAppGroupErrorsRequest.cc b/opensearch/src/model/ListAppGroupErrorsRequest.cc index f3f43c8d7..970ab7b98 100644 --- a/opensearch/src/model/ListAppGroupErrorsRequest.cc +++ b/opensearch/src/model/ListAppGroupErrorsRequest.cc @@ -1,96 +1,82 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -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_; + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ListAppGroupErrorsRequest; + +ListAppGroupErrorsRequest::ListAppGroupErrorsRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/errors"}; + setMethod(HttpRequest::Method::Get); } -void ListAppGroupErrorsRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); +ListAppGroupErrorsRequest::~ListAppGroupErrorsRequest() {} + +std::string ListAppGroupErrorsRequest::getAppId() const { + return appId_; } -int ListAppGroupErrorsRequest::getPageSize()const -{ - return pageSize_; +void ListAppGroupErrorsRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("appId"), appId); } -void ListAppGroupErrorsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int ListAppGroupErrorsRequest::getPageSize() const { + return pageSize_; } -int ListAppGroupErrorsRequest::getStartTime()const -{ - return startTime_; +void ListAppGroupErrorsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("pageSize"), std::to_string(pageSize)); } -void ListAppGroupErrorsRequest::setStartTime(int startTime) -{ - startTime_ = startTime; - setParameter("StartTime", std::to_string(startTime)); +int ListAppGroupErrorsRequest::getStartTime() const { + return startTime_; } -int ListAppGroupErrorsRequest::getStopTime()const -{ - return stopTime_; +void ListAppGroupErrorsRequest::setStartTime(int startTime) { + startTime_ = startTime; + setParameter(std::string("startTime"), std::to_string(startTime)); } -void ListAppGroupErrorsRequest::setStopTime(int stopTime) -{ - stopTime_ = stopTime; - setParameter("StopTime", std::to_string(stopTime)); +int ListAppGroupErrorsRequest::getStopTime() const { + return stopTime_; } -std::string ListAppGroupErrorsRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void ListAppGroupErrorsRequest::setStopTime(int stopTime) { + stopTime_ = stopTime; + setParameter(std::string("stopTime"), std::to_string(stopTime)); } -void ListAppGroupErrorsRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string ListAppGroupErrorsRequest::getAppGroupIdentity() const { + return appGroupIdentity_; } -int ListAppGroupErrorsRequest::getPageNumber()const -{ - return pageNumber_; +void ListAppGroupErrorsRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } -void ListAppGroupErrorsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int ListAppGroupErrorsRequest::getPageNumber() const { + return pageNumber_; +} + +void ListAppGroupErrorsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("pageNumber"), std::to_string(pageNumber)); } diff --git a/opensearch/src/model/ListAppGroupErrorsResult.cc b/opensearch/src/model/ListAppGroupErrorsResult.cc index 03a137265..ff2ed44ae 100644 --- a/opensearch/src/model/ListAppGroupErrorsResult.cc +++ b/opensearch/src/model/ListAppGroupErrorsResult.cc @@ -42,10 +42,10 @@ void ListAppGroupErrorsResult::parse(const std::string &payload) 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()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); } diff --git a/opensearch/src/model/ListAppGroupMetricsRequest.cc b/opensearch/src/model/ListAppGroupMetricsRequest.cc index 3779e28cb..aa01583fe 100644 --- a/opensearch/src/model/ListAppGroupMetricsRequest.cc +++ b/opensearch/src/model/ListAppGroupMetricsRequest.cc @@ -1,85 +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 - -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_; + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ListAppGroupMetricsRequest; + +ListAppGroupMetricsRequest::ListAppGroupMetricsRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/metrics"}; + setMethod(HttpRequest::Method::Get); } -void ListAppGroupMetricsRequest::setMetricType(const std::string& metricType) -{ - metricType_ = metricType; - setParameter("MetricType", metricType); +ListAppGroupMetricsRequest::~ListAppGroupMetricsRequest() {} + +std::string ListAppGroupMetricsRequest::getMetricType() const { + return metricType_; } -std::string ListAppGroupMetricsRequest::getIndexes()const -{ - return indexes_; +void ListAppGroupMetricsRequest::setMetricType(const std::string &metricType) { + metricType_ = metricType; + setParameter(std::string("metricType"), metricType); } -void ListAppGroupMetricsRequest::setIndexes(const std::string& indexes) -{ - indexes_ = indexes; - setParameter("Indexes", indexes); +std::string ListAppGroupMetricsRequest::getIndexes() const { + return indexes_; } -int ListAppGroupMetricsRequest::getEndTime()const -{ - return endTime_; +void ListAppGroupMetricsRequest::setIndexes(const std::string &indexes) { + indexes_ = indexes; + setParameter(std::string("indexes"), indexes); } -void ListAppGroupMetricsRequest::setEndTime(int endTime) -{ - endTime_ = endTime; - setParameter("EndTime", std::to_string(endTime)); +int ListAppGroupMetricsRequest::getEndTime() const { + return endTime_; } -int ListAppGroupMetricsRequest::getStartTime()const -{ - return startTime_; +void ListAppGroupMetricsRequest::setEndTime(int endTime) { + endTime_ = endTime; + setParameter(std::string("endTime"), std::to_string(endTime)); } -void ListAppGroupMetricsRequest::setStartTime(int startTime) -{ - startTime_ = startTime; - setParameter("StartTime", std::to_string(startTime)); +int ListAppGroupMetricsRequest::getStartTime() const { + return startTime_; } -std::string ListAppGroupMetricsRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void ListAppGroupMetricsRequest::setStartTime(int startTime) { + startTime_ = startTime; + setParameter(std::string("startTime"), std::to_string(startTime)); } -void ListAppGroupMetricsRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string ListAppGroupMetricsRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void ListAppGroupMetricsRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/ListAppGroupsRequest.cc b/opensearch/src/model/ListAppGroupsRequest.cc index 2d43490c0..c9fc331c5 100644 --- a/opensearch/src/model/ListAppGroupsRequest.cc +++ b/opensearch/src/model/ListAppGroupsRequest.cc @@ -1,107 +1,91 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -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_; + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ListAppGroupsRequest; + +ListAppGroupsRequest::ListAppGroupsRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/app-groups"}; + setMethod(HttpRequest::Method::Get); } -void ListAppGroupsRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +ListAppGroupsRequest::~ListAppGroupsRequest() {} + +std::string ListAppGroupsRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string ListAppGroupsRequest::getInstanceId()const -{ - return instanceId_; +void ListAppGroupsRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("resourceGroupId"), resourceGroupId); } -void ListAppGroupsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ListAppGroupsRequest::getInstanceId() const { + return instanceId_; } -int ListAppGroupsRequest::getPageSize()const -{ - return pageSize_; +void ListAppGroupsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("instanceId"), instanceId); } -void ListAppGroupsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int ListAppGroupsRequest::getPageSize() const { + return pageSize_; } -std::string ListAppGroupsRequest::getName()const -{ - return name_; +void ListAppGroupsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("pageSize"), std::to_string(pageSize)); } -void ListAppGroupsRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string ListAppGroupsRequest::getName() const { + return name_; } -int ListAppGroupsRequest::getSortBy()const -{ - return sortBy_; +void ListAppGroupsRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("name"), name); } -void ListAppGroupsRequest::setSortBy(int sortBy) -{ - sortBy_ = sortBy; - setParameter("SortBy", std::to_string(sortBy)); +int ListAppGroupsRequest::getSortBy() const { + return sortBy_; } -std::string ListAppGroupsRequest::getType()const -{ - return type_; +void ListAppGroupsRequest::setSortBy(int sortBy) { + sortBy_ = sortBy; + setParameter(std::string("sortBy"), std::to_string(sortBy)); } -void ListAppGroupsRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); +std::string ListAppGroupsRequest::getType() const { + return type_; } -int ListAppGroupsRequest::getPageNumber()const -{ - return pageNumber_; +void ListAppGroupsRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("type"), type); } -void ListAppGroupsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int ListAppGroupsRequest::getPageNumber() const { + return pageNumber_; +} + +void ListAppGroupsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("pageNumber"), std::to_string(pageNumber)); } diff --git a/opensearch/src/model/ListAppGroupsResult.cc b/opensearch/src/model/ListAppGroupsResult.cc index 9c6a93427..5c028c527 100644 --- a/opensearch/src/model/ListAppGroupsResult.cc +++ b/opensearch/src/model/ListAppGroupsResult.cc @@ -43,67 +43,77 @@ void ListAppGroupsResult::parse(const std::string &payload) 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["created"].isNull()) + resultObject.created = std::stoi(valueresultresultItem["created"].asString()); if(!valueresultresultItem["currentVersion"].isNull()) resultObject.currentVersion = valueresultresultItem["currentVersion"].asString(); - if(!valueresultresultItem["switchedTime"].isNull()) - resultObject.switchedTime = std::stoi(valueresultresultItem["switchedTime"].asString()); + if(!valueresultresultItem["pendingSecondRankAlgoDeploymentId"].isNull()) + resultObject.pendingSecondRankAlgoDeploymentId = std::stoi(valueresultresultItem["pendingSecondRankAlgoDeploymentId"].asString()); + if(!valueresultresultItem["lockMode"].isNull()) + resultObject.lockMode = valueresultresultItem["lockMode"].asString(); + if(!valueresultresultItem["updated"].isNull()) + resultObject.updated = std::stoi(valueresultresultItem["updated"].asString()); + if(!valueresultresultItem["id"].isNull()) + resultObject.id = valueresultresultItem["id"].asString(); + if(!valueresultresultItem["chargeType"].isNull()) + resultObject.chargeType = valueresultresultItem["chargeType"].asString(); + if(!valueresultresultItem["hasPendingQuotaReviewTask"].isNull()) + resultObject.hasPendingQuotaReviewTask = std::stoi(valueresultresultItem["hasPendingQuotaReviewTask"].asString()); + if(!valueresultresultItem["secondRankAlgoDeploymentId"].isNull()) + resultObject.secondRankAlgoDeploymentId = std::stoi(valueresultresultItem["secondRankAlgoDeploymentId"].asString()); + if(!valueresultresultItem["name"].isNull()) + resultObject.name = valueresultresultItem["name"].asString(); + if(!valueresultresultItem["instanceId"].isNull()) + resultObject.instanceId = valueresultresultItem["instanceId"].asString(); + if(!valueresultresultItem["processingOrderId"].isNull()) + resultObject.processingOrderId = valueresultresultItem["processingOrderId"].asString(); if(!valueresultresultItem["chargingWay"].isNull()) resultObject.chargingWay = std::stoi(valueresultresultItem["chargingWay"].asString()); if(!valueresultresultItem["type"].isNull()) resultObject.type = valueresultresultItem["type"].asString(); + if(!valueresultresultItem["status"].isNull()) + resultObject.status = valueresultresultItem["status"].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["switchedTime"].isNull()) + resultObject.switchedTime = std::stoi(valueresultresultItem["switchedTime"].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["expireOn"].isNull()) + resultObject.expireOn = valueresultresultItem["expireOn"].asString(); + if(!valueresultresultItem["domain"].isNull()) + resultObject.domain = valueresultresultItem["domain"].asString(); if(!valueresultresultItem["description"].isNull()) resultObject.description = valueresultresultItem["description"].asString(); + if(!valueresultresultItem["firstRankAlgoDeploymentId"].isNull()) + resultObject.firstRankAlgoDeploymentId = std::stoi(valueresultresultItem["firstRankAlgoDeploymentId"].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(); - if(!valueresultresultItem["domain"].isNull()) - resultObject.domain = valueresultresultItem["domain"].asString(); + auto alltagsNode = valueresultresultItem["tags"]["tagsItem"]; + for (auto valueresultresultItemtagstagsItem : alltagsNode) + { + ResultItem::TagsItem tagsObject; + if(!valueresultresultItemtagstagsItem["key"].isNull()) + tagsObject.key = valueresultresultItemtagstagsItem["key"].asString(); + if(!valueresultresultItemtagstagsItem["value"].isNull()) + tagsObject.value = valueresultresultItemtagstagsItem["value"].asString(); + resultObject.tags.push_back(tagsObject); + } auto quotaNode = value["quota"]; + if(!quotaNode["spec"].isNull()) + resultObject.quota.spec = quotaNode["spec"].asString(); 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()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); } diff --git a/opensearch/src/model/ListAppsRequest.cc b/opensearch/src/model/ListAppsRequest.cc index 477ee9e8c..d7e99113f 100644 --- a/opensearch/src/model/ListAppsRequest.cc +++ b/opensearch/src/model/ListAppsRequest.cc @@ -1,63 +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. - */ - -#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_; + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ListAppsRequest; + +ListAppsRequest::ListAppsRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/apps"}; + setMethod(HttpRequest::Method::Get); } -void ListAppsRequest::setSize(int size) -{ - size_ = size; - setParameter("Size", std::to_string(size)); +ListAppsRequest::~ListAppsRequest() {} + +int ListAppsRequest::getSize() const { + return size_; } -int ListAppsRequest::getPage()const -{ - return page_; +void ListAppsRequest::setSize(int size) { + size_ = size; + setParameter(std::string("size"), std::to_string(size)); } -void ListAppsRequest::setPage(int page) -{ - page_ = page; - setParameter("Page", std::to_string(page)); +int ListAppsRequest::getPage() const { + return page_; } -bool ListAppsRequest::getGroup()const -{ - return group_; +void ListAppsRequest::setPage(int page) { + page_ = page; + setParameter(std::string("page"), std::to_string(page)); } -void ListAppsRequest::setGroup(bool group) -{ - group_ = group; - setParameter("Group", group ? "true" : "false"); +bool ListAppsRequest::getGroup() const { + return group_; +} + +void ListAppsRequest::setGroup(bool group) { + group_ = group; + setParameter(std::string("group"), group ? "true" : "false"); } diff --git a/opensearch/src/model/ListDataCollectionsRequest.cc b/opensearch/src/model/ListDataCollectionsRequest.cc index b35d47b79..a90ebd39a 100644 --- a/opensearch/src/model/ListDataCollectionsRequest.cc +++ b/opensearch/src/model/ListDataCollectionsRequest.cc @@ -1,63 +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. - */ - -#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_; + */ + +#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); } -void ListDataCollectionsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +ListDataCollectionsRequest::~ListDataCollectionsRequest() {} + +int ListDataCollectionsRequest::getPageSize() const { + return pageSize_; } -std::string ListDataCollectionsRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void ListDataCollectionsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("pageSize"), std::to_string(pageSize)); } -void ListDataCollectionsRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string ListDataCollectionsRequest::getAppGroupIdentity() const { + return appGroupIdentity_; } -int ListDataCollectionsRequest::getPageNumber()const -{ - return pageNumber_; +void ListDataCollectionsRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } -void ListDataCollectionsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int ListDataCollectionsRequest::getPageNumber() const { + return pageNumber_; +} + +void ListDataCollectionsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("pageNumber"), std::to_string(pageNumber)); } diff --git a/opensearch/src/model/ListDataCollectionsResult.cc b/opensearch/src/model/ListDataCollectionsResult.cc index c4b37e9b7..3433f4a44 100644 --- a/opensearch/src/model/ListDataCollectionsResult.cc +++ b/opensearch/src/model/ListDataCollectionsResult.cc @@ -43,30 +43,30 @@ void ListDataCollectionsResult::parse(const std::string &payload) 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["dataCollectionType"].isNull()) + resultObject.dataCollectionType = valueresultresultItem["dataCollectionType"].asString(); + if(!valueresultresultItem["type"].isNull()) + resultObject.type = valueresultresultItem["type"].asString(); + if(!valueresultresultItem["industryName"].isNull()) + resultObject.industryName = valueresultresultItem["industryName"].asString(); + if(!valueresultresultItem["status"].isNull()) + resultObject.status = std::stoi(valueresultresultItem["status"].asString()); if(!valueresultresultItem["updated"].isNull()) resultObject.updated = std::stoi(valueresultresultItem["updated"].asString()); + if(!valueresultresultItem["name"].isNull()) + resultObject.name = valueresultresultItem["name"].asString(); if(!valueresultresultItem["sundialId"].isNull()) resultObject.sundialId = valueresultresultItem["sundialId"].asString(); + if(!valueresultresultItem["id"].isNull()) + resultObject.id = valueresultresultItem["id"].asString(); result_.push_back(resultObject); } - if(!value["requestId"].isNull()) - requestId_ = value["requestId"].asString(); if(!value["totalCount"].isNull()) totalCount_ = std::stoi(value["totalCount"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); } diff --git a/opensearch/src/model/ListDataSourceTableFieldsRequest.cc b/opensearch/src/model/ListDataSourceTableFieldsRequest.cc index c3558bcbb..46a36ef35 100644 --- a/opensearch/src/model/ListDataSourceTableFieldsRequest.cc +++ b/opensearch/src/model/ListDataSourceTableFieldsRequest.cc @@ -1,52 +1,46 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::ListDataSourceTableFieldsRequest; - -ListDataSourceTableFieldsRequest::ListDataSourceTableFieldsRequest() : - RoaServiceRequest("opensearch", "2017-12-25") -{ - setResourcePath("/v4/openapi/assist/data-sources/[dataSourceType]/fields"); - setMethod(HttpRequest::Method::Get); -} - -ListDataSourceTableFieldsRequest::~ListDataSourceTableFieldsRequest() -{} - -std::string ListDataSourceTableFieldsRequest::getDataSourceType()const -{ - return dataSourceType_; + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ListDataSourceTableFieldsRequest; + +ListDataSourceTableFieldsRequest::ListDataSourceTableFieldsRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/assist/data-sources/[dataSourceType]/fields"}; + setMethod(HttpRequest::Method::Get); } -void ListDataSourceTableFieldsRequest::setDataSourceType(const std::string& dataSourceType) -{ - dataSourceType_ = dataSourceType; - setParameter("DataSourceType", dataSourceType); +ListDataSourceTableFieldsRequest::~ListDataSourceTableFieldsRequest() {} + +std::string ListDataSourceTableFieldsRequest::getDataSourceType() const { + return dataSourceType_; } -std::string ListDataSourceTableFieldsRequest::getParams()const -{ - return params_; +void ListDataSourceTableFieldsRequest::setDataSourceType(const std::string &dataSourceType) { + dataSourceType_ = dataSourceType; + setParameter(std::string("dataSourceType"), dataSourceType); } -void ListDataSourceTableFieldsRequest::setParams(const std::string& params) -{ - params_ = params; - setParameter("Params", params); +std::string ListDataSourceTableFieldsRequest::getParams() const { + return params_; +} + +void ListDataSourceTableFieldsRequest::setParams(const std::string ¶ms) { + params_ = params; + setParameter(std::string("params"), params); } diff --git a/opensearch/src/model/ListDataSourceTableFieldsResult.cc b/opensearch/src/model/ListDataSourceTableFieldsResult.cc index bfd609518..4a98d2e3a 100644 --- a/opensearch/src/model/ListDataSourceTableFieldsResult.cc +++ b/opensearch/src/model/ListDataSourceTableFieldsResult.cc @@ -39,10 +39,10 @@ void ListDataSourceTableFieldsResult::parse(const std::string &payload) 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(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); } diff --git a/opensearch/src/model/ListDataSourceTablesRequest.cc b/opensearch/src/model/ListDataSourceTablesRequest.cc index e327a846e..871aa2c60 100644 --- a/opensearch/src/model/ListDataSourceTablesRequest.cc +++ b/opensearch/src/model/ListDataSourceTablesRequest.cc @@ -1,52 +1,46 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::ListDataSourceTablesRequest; - -ListDataSourceTablesRequest::ListDataSourceTablesRequest() : - RoaServiceRequest("opensearch", "2017-12-25") -{ - setResourcePath("/v4/openapi/assist/data-sources/[dataSourceType]/tables"); - setMethod(HttpRequest::Method::Get); -} - -ListDataSourceTablesRequest::~ListDataSourceTablesRequest() -{} - -std::string ListDataSourceTablesRequest::getDataSourceType()const -{ - return dataSourceType_; + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ListDataSourceTablesRequest; + +ListDataSourceTablesRequest::ListDataSourceTablesRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/assist/data-sources/[dataSourceType]/tables"}; + setMethod(HttpRequest::Method::Get); } -void ListDataSourceTablesRequest::setDataSourceType(const std::string& dataSourceType) -{ - dataSourceType_ = dataSourceType; - setParameter("DataSourceType", dataSourceType); +ListDataSourceTablesRequest::~ListDataSourceTablesRequest() {} + +std::string ListDataSourceTablesRequest::getDataSourceType() const { + return dataSourceType_; } -std::string ListDataSourceTablesRequest::getParams()const -{ - return params_; +void ListDataSourceTablesRequest::setDataSourceType(const std::string &dataSourceType) { + dataSourceType_ = dataSourceType; + setParameter(std::string("dataSourceType"), dataSourceType); } -void ListDataSourceTablesRequest::setParams(const std::string& params) -{ - params_ = params; - setParameter("Params", params); +std::string ListDataSourceTablesRequest::getParams() const { + return params_; +} + +void ListDataSourceTablesRequest::setParams(const std::string ¶ms) { + params_ = params; + setParameter(std::string("params"), params); } diff --git a/opensearch/src/model/ListDeployedAlgorithmModelsRequest.cc b/opensearch/src/model/ListDeployedAlgorithmModelsRequest.cc index 61ef8c3d1..5316c66ec 100644 --- a/opensearch/src/model/ListDeployedAlgorithmModelsRequest.cc +++ b/opensearch/src/model/ListDeployedAlgorithmModelsRequest.cc @@ -1,63 +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. - */ - -#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_; + */ + +#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); } -void ListDeployedAlgorithmModelsRequest::setAlgorithmType(const std::string& algorithmType) -{ - algorithmType_ = algorithmType; - setParameter("AlgorithmType", algorithmType); +ListDeployedAlgorithmModelsRequest::~ListDeployedAlgorithmModelsRequest() {} + +std::string ListDeployedAlgorithmModelsRequest::getAlgorithmType() const { + return algorithmType_; } -bool ListDeployedAlgorithmModelsRequest::getInServiceOnly()const -{ - return inServiceOnly_; +void ListDeployedAlgorithmModelsRequest::setAlgorithmType(const std::string &algorithmType) { + algorithmType_ = algorithmType; + setParameter(std::string("algorithmType"), algorithmType); } -void ListDeployedAlgorithmModelsRequest::setInServiceOnly(bool inServiceOnly) -{ - inServiceOnly_ = inServiceOnly; - setParameter("InServiceOnly", inServiceOnly ? "true" : "false"); +bool ListDeployedAlgorithmModelsRequest::getInServiceOnly() const { + return inServiceOnly_; } -std::string ListDeployedAlgorithmModelsRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void ListDeployedAlgorithmModelsRequest::setInServiceOnly(bool inServiceOnly) { + inServiceOnly_ = inServiceOnly; + setParameter(std::string("inServiceOnly"), inServiceOnly ? "true" : "false"); } -void ListDeployedAlgorithmModelsRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string ListDeployedAlgorithmModelsRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void ListDeployedAlgorithmModelsRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/ListDeployedAlgorithmModelsResult.cc b/opensearch/src/model/ListDeployedAlgorithmModelsResult.cc index 6c21422b6..51cdd54b0 100644 --- a/opensearch/src/model/ListDeployedAlgorithmModelsResult.cc +++ b/opensearch/src/model/ListDeployedAlgorithmModelsResult.cc @@ -43,36 +43,36 @@ void ListDeployedAlgorithmModelsResult::parse(const std::string &payload) 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(); + if(!valueresultresultItem["scene"].isNull()) + resultObject.scene = valueresultresultItem["scene"].asString(); + if(!valueresultresultItem["gmtCreate"].isNull()) + resultObject.gmtCreate = valueresultresultItem["gmtCreate"].asString(); + if(!valueresultresultItem["id"].isNull()) + resultObject.id = valueresultresultItem["id"].asString(); + if(!valueresultresultItem["desc"].isNull()) + resultObject.desc = valueresultresultItem["desc"].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["modelId"].isNull()) + modelsObject.modelId = std::stoi(valueresultresultItemmodelsmodelsItem["modelId"].asString()); if(!valueresultresultItemmodelsmodelsItem["algorithmType"].isNull()) modelsObject.algorithmType = valueresultresultItemmodelsmodelsItem["algorithmType"].asString(); + if(!valueresultresultItemmodelsmodelsItem["status"].isNull()) + modelsObject.status = valueresultresultItemmodelsmodelsItem["status"].asString(); + if(!valueresultresultItemmodelsmodelsItem["progress"].isNull()) + modelsObject.progress = std::stoi(valueresultresultItemmodelsmodelsItem["progress"].asString()); resultObject.models.push_back(modelsObject); } auto allApps = value["apps"]["apps"]; diff --git a/opensearch/src/model/ListFirstRanksRequest.cc b/opensearch/src/model/ListFirstRanksRequest.cc index 392512c2e..261140d8e 100644 --- a/opensearch/src/model/ListFirstRanksRequest.cc +++ b/opensearch/src/model/ListFirstRanksRequest.cc @@ -1,52 +1,46 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#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); } -void ListFirstRanksRequest::setAppId(int appId) -{ - appId_ = appId; - setParameter("AppId", std::to_string(appId)); +ListFirstRanksRequest::~ListFirstRanksRequest() {} + +int ListFirstRanksRequest::getAppId() const { + return appId_; } -std::string ListFirstRanksRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void ListFirstRanksRequest::setAppId(int appId) { + appId_ = appId; + setParameter(std::string("appId"), std::to_string(appId)); } -void ListFirstRanksRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string ListFirstRanksRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void ListFirstRanksRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/ListFirstRanksResult.cc b/opensearch/src/model/ListFirstRanksResult.cc index 8bbcaad69..d9e004bb7 100644 --- a/opensearch/src/model/ListFirstRanksResult.cc +++ b/opensearch/src/model/ListFirstRanksResult.cc @@ -43,24 +43,24 @@ void ListFirstRanksResult::parse(const std::string &payload) 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["active"].isNull()) + resultObject.active = valueresultfirstRankItem["active"].asString() == "true"; + if(!valueresultfirstRankItem["description"].isNull()) + resultObject.description = valueresultfirstRankItem["description"].asString(); if(!valueresultfirstRankItem["updated"].isNull()) resultObject.updated = std::stoi(valueresultfirstRankItem["updated"].asString()); + if(!valueresultfirstRankItem["name"].isNull()) + resultObject.name = valueresultfirstRankItem["name"].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["attribute"].isNull()) + metaObject.attribute = valueresultfirstRankItemmetametaItem["attribute"].asString(); if(!valueresultfirstRankItemmetametaItem["weight"].isNull()) metaObject.weight = std::stoi(valueresultfirstRankItemmetametaItem["weight"].asString()); resultObject.meta.push_back(metaObject); diff --git a/opensearch/src/model/ListFunctionInstancesRequest.cc b/opensearch/src/model/ListFunctionInstancesRequest.cc new file mode 100644 index 000000000..9041582b0 --- /dev/null +++ b/opensearch/src/model/ListFunctionInstancesRequest.cc @@ -0,0 +1,100 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::ListFunctionInstancesRequest; + +ListFunctionInstancesRequest::ListFunctionInstancesRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/functions/[functionName]/instances"}; + setMethod(HttpRequest::Method::Get); +} + +ListFunctionInstancesRequest::~ListFunctionInstancesRequest() {} + +std::string ListFunctionInstancesRequest::getOutput() const { + return output_; +} + +void ListFunctionInstancesRequest::setOutput(const std::string &output) { + output_ = output; + setParameter(std::string("output"), output); +} + +std::string ListFunctionInstancesRequest::getModelType() const { + return modelType_; +} + +void ListFunctionInstancesRequest::setModelType(const std::string &modelType) { + modelType_ = modelType; + setParameter(std::string("modelType"), modelType); +} + +std::string ListFunctionInstancesRequest::getFunctionName() const { + return functionName_; +} + +void ListFunctionInstancesRequest::setFunctionName(const std::string &functionName) { + functionName_ = functionName; + setParameter(std::string("functionName"), functionName); +} + +int ListFunctionInstancesRequest::getPageSize() const { + return pageSize_; +} + +void ListFunctionInstancesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("pageSize"), std::to_string(pageSize)); +} + +std::string ListFunctionInstancesRequest::getFunctionType() const { + return functionType_; +} + +void ListFunctionInstancesRequest::setFunctionType(const std::string &functionType) { + functionType_ = functionType; + setParameter(std::string("functionType"), functionType); +} + +std::string ListFunctionInstancesRequest::getSource() const { + return source_; +} + +void ListFunctionInstancesRequest::setSource(const std::string &source) { + source_ = source; + setParameter(std::string("source"), source); +} + +std::string ListFunctionInstancesRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void ListFunctionInstancesRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); +} + +int ListFunctionInstancesRequest::getPageNumber() const { + return pageNumber_; +} + +void ListFunctionInstancesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("pageNumber"), std::to_string(pageNumber)); +} + diff --git a/opensearch/src/model/ListFunctionInstancesResult.cc b/opensearch/src/model/ListFunctionInstancesResult.cc new file mode 100644 index 000000000..4b9db8343 --- /dev/null +++ b/opensearch/src/model/ListFunctionInstancesResult.cc @@ -0,0 +1,146 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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; + +ListFunctionInstancesResult::ListFunctionInstancesResult() : + ServiceResult() +{} + +ListFunctionInstancesResult::ListFunctionInstancesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListFunctionInstancesResult::~ListFunctionInstancesResult() +{} + +void ListFunctionInstancesResult::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["CreateTime"].isNull()) + resultObject.createTime = std::stol(valueResultResultItem["CreateTime"].asString()); + if(!valueResultResultItem["Cron"].isNull()) + resultObject.cron = valueResultResultItem["Cron"].asString(); + if(!valueResultResultItem["Description"].isNull()) + resultObject.description = valueResultResultItem["Description"].asString(); + if(!valueResultResultItem["ExtendInfo"].isNull()) + resultObject.extendInfo = valueResultResultItem["ExtendInfo"].asString(); + if(!valueResultResultItem["FunctionName"].isNull()) + resultObject.functionName = valueResultResultItem["FunctionName"].asString(); + if(!valueResultResultItem["FunctionType"].isNull()) + resultObject.functionType = valueResultResultItem["FunctionType"].asString(); + if(!valueResultResultItem["InstanceName"].isNull()) + resultObject.instanceName = valueResultResultItem["InstanceName"].asString(); + if(!valueResultResultItem["ModelType"].isNull()) + resultObject.modelType = valueResultResultItem["ModelType"].asString(); + if(!valueResultResultItem["Source"].isNull()) + resultObject.source = valueResultResultItem["Source"].asString(); + if(!valueResultResultItem["Status"].isNull()) + resultObject.status = valueResultResultItem["Status"].asString(); + if(!valueResultResultItem["VersionId"].isNull()) + resultObject.versionId = std::stol(valueResultResultItem["VersionId"].asString()); + auto allCreateParametersNode = valueResultResultItem["CreateParameters"]["CreateParametersItem"]; + for (auto valueResultResultItemCreateParametersCreateParametersItem : allCreateParametersNode) + { + ResultItem::CreateParametersItem createParametersObject; + if(!valueResultResultItemCreateParametersCreateParametersItem["Name"].isNull()) + createParametersObject.name = valueResultResultItemCreateParametersCreateParametersItem["Name"].asString(); + if(!valueResultResultItemCreateParametersCreateParametersItem["Value"].isNull()) + createParametersObject.value = valueResultResultItemCreateParametersCreateParametersItem["Value"].asString(); + resultObject.createParameters.push_back(createParametersObject); + } + auto allUsageParametersNode = valueResultResultItem["UsageParameters"]["UsageParametersItem"]; + for (auto valueResultResultItemUsageParametersUsageParametersItem : allUsageParametersNode) + { + ResultItem::UsageParametersItem usageParametersObject; + if(!valueResultResultItemUsageParametersUsageParametersItem["Name"].isNull()) + usageParametersObject.name = valueResultResultItemUsageParametersUsageParametersItem["Name"].asString(); + if(!valueResultResultItemUsageParametersUsageParametersItem["Value"].isNull()) + usageParametersObject.value = valueResultResultItemUsageParametersUsageParametersItem["Value"].asString(); + resultObject.usageParameters.push_back(usageParametersObject); + } + auto belongsNode = value["Belongs"]; + if(!belongsNode["Category"].isNull()) + resultObject.belongs.category = belongsNode["Category"].asString(); + if(!belongsNode["Domain"].isNull()) + resultObject.belongs.domain = belongsNode["Domain"].asString(); + if(!belongsNode["Language"].isNull()) + resultObject.belongs.language = belongsNode["Language"].asString(); + result_.push_back(resultObject); + } + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["HttpCode"].isNull()) + httpCode_ = std::stol(value["HttpCode"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Latency"].isNull()) + latency_ = std::stol(value["Latency"].asString()); + +} + +std::string ListFunctionInstancesResult::getStatus()const +{ + return status_; +} + +long ListFunctionInstancesResult::getHttpCode()const +{ + return httpCode_; +} + +long ListFunctionInstancesResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListFunctionInstancesResult::getMessage()const +{ + return message_; +} + +std::string ListFunctionInstancesResult::getCode()const +{ + return code_; +} + +std::vector ListFunctionInstancesResult::getResult()const +{ + return result_; +} + +long ListFunctionInstancesResult::getLatency()const +{ + return latency_; +} + diff --git a/opensearch/src/model/ListFunctionTasksRequest.cc b/opensearch/src/model/ListFunctionTasksRequest.cc new file mode 100644 index 000000000..c598b922b --- /dev/null +++ b/opensearch/src/model/ListFunctionTasksRequest.cc @@ -0,0 +1,100 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::ListFunctionTasksRequest; + +ListFunctionTasksRequest::ListFunctionTasksRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/functions/[functionName]/instances/[instanceName]/tasks"}; + setMethod(HttpRequest::Method::Get); +} + +ListFunctionTasksRequest::~ListFunctionTasksRequest() {} + +std::string ListFunctionTasksRequest::getInstanceName() const { + return instanceName_; +} + +void ListFunctionTasksRequest::setInstanceName(const std::string &instanceName) { + instanceName_ = instanceName; + setParameter(std::string("instanceName"), instanceName); +} + +std::string ListFunctionTasksRequest::getFunctionName() const { + return functionName_; +} + +void ListFunctionTasksRequest::setFunctionName(const std::string &functionName) { + functionName_ = functionName; + setParameter(std::string("functionName"), functionName); +} + +int ListFunctionTasksRequest::getPageSize() const { + return pageSize_; +} + +void ListFunctionTasksRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("pageSize"), std::to_string(pageSize)); +} + +long ListFunctionTasksRequest::getEndTime() const { + return endTime_; +} + +void ListFunctionTasksRequest::setEndTime(long endTime) { + endTime_ = endTime; + setParameter(std::string("endTime"), std::to_string(endTime)); +} + +long ListFunctionTasksRequest::getStartTime() const { + return startTime_; +} + +void ListFunctionTasksRequest::setStartTime(long startTime) { + startTime_ = startTime; + setParameter(std::string("startTime"), std::to_string(startTime)); +} + +std::string ListFunctionTasksRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void ListFunctionTasksRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); +} + +int ListFunctionTasksRequest::getPageNumber() const { + return pageNumber_; +} + +void ListFunctionTasksRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("pageNumber"), std::to_string(pageNumber)); +} + +std::string ListFunctionTasksRequest::getStatus() const { + return status_; +} + +void ListFunctionTasksRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("status"), status); +} + diff --git a/opensearch/src/model/ListFunctionTasksResult.cc b/opensearch/src/model/ListFunctionTasksResult.cc new file mode 100644 index 000000000..fcfad706a --- /dev/null +++ b/opensearch/src/model/ListFunctionTasksResult.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; + +ListFunctionTasksResult::ListFunctionTasksResult() : + ServiceResult() +{} + +ListFunctionTasksResult::ListFunctionTasksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListFunctionTasksResult::~ListFunctionTasksResult() +{} + +void ListFunctionTasksResult::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["EndTime"].isNull()) + resultObject.endTime = std::stol(valueResultResultItem["EndTime"].asString()); + if(!valueResultResultItem["ExtendInfo"].isNull()) + resultObject.extendInfo = valueResultResultItem["ExtendInfo"].asString(); + if(!valueResultResultItem["FunctionName"].isNull()) + resultObject.functionName = valueResultResultItem["FunctionName"].asString(); + if(!valueResultResultItem["Progress"].isNull()) + resultObject.progress = std::stol(valueResultResultItem["Progress"].asString()); + if(!valueResultResultItem["RunId"].isNull()) + resultObject.runId = valueResultResultItem["RunId"].asString(); + if(!valueResultResultItem["StartTime"].isNull()) + resultObject.startTime = std::stol(valueResultResultItem["StartTime"].asString()); + if(!valueResultResultItem["Status"].isNull()) + resultObject.status = valueResultResultItem["Status"].asString(); + if(!valueResultResultItem["Generation"].isNull()) + resultObject.generation = valueResultResultItem["Generation"].asString(); + result_.push_back(resultObject); + } + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["HttpCode"].isNull()) + httpCode_ = std::stol(value["HttpCode"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Latency"].isNull()) + latency_ = std::stol(value["Latency"].asString()); + +} + +std::string ListFunctionTasksResult::getStatus()const +{ + return status_; +} + +long ListFunctionTasksResult::getHttpCode()const +{ + return httpCode_; +} + +long ListFunctionTasksResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListFunctionTasksResult::getMessage()const +{ + return message_; +} + +std::string ListFunctionTasksResult::getCode()const +{ + return code_; +} + +std::vector ListFunctionTasksResult::getResult()const +{ + return result_; +} + +long ListFunctionTasksResult::getLatency()const +{ + return latency_; +} + diff --git a/opensearch/src/model/ListInterventionDictionariesRequest.cc b/opensearch/src/model/ListInterventionDictionariesRequest.cc index 994f5104b..3c49ce0f3 100644 --- a/opensearch/src/model/ListInterventionDictionariesRequest.cc +++ b/opensearch/src/model/ListInterventionDictionariesRequest.cc @@ -1,63 +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. - */ - -#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_; + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ListInterventionDictionariesRequest; + +ListInterventionDictionariesRequest::ListInterventionDictionariesRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/intervention-dictionaries"}; + setMethod(HttpRequest::Method::Get); } -void ListInterventionDictionariesRequest::setTypes(const std::string& types) -{ - types_ = types; - setParameter("Types", types); +ListInterventionDictionariesRequest::~ListInterventionDictionariesRequest() {} + +std::string ListInterventionDictionariesRequest::getTypes() const { + return types_; } -int ListInterventionDictionariesRequest::getPageSize()const -{ - return pageSize_; +void ListInterventionDictionariesRequest::setTypes(const std::string &types) { + types_ = types; + setParameter(std::string("types"), types); } -void ListInterventionDictionariesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int ListInterventionDictionariesRequest::getPageSize() const { + return pageSize_; } -int ListInterventionDictionariesRequest::getPageNumber()const -{ - return pageNumber_; +void ListInterventionDictionariesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("pageSize"), std::to_string(pageSize)); } -void ListInterventionDictionariesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int ListInterventionDictionariesRequest::getPageNumber() const { + return pageNumber_; +} + +void ListInterventionDictionariesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("pageNumber"), std::to_string(pageNumber)); } diff --git a/opensearch/src/model/ListInterventionDictionariesResult.cc b/opensearch/src/model/ListInterventionDictionariesResult.cc index 7c1a82991..aec837c83 100644 --- a/opensearch/src/model/ListInterventionDictionariesResult.cc +++ b/opensearch/src/model/ListInterventionDictionariesResult.cc @@ -43,24 +43,24 @@ void ListInterventionDictionariesResult::parse(const std::string &payload) 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["created"].isNull()) + resultObject.created = std::stoi(valueresultresultItem["created"].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["name"].isNull()) + resultObject.name = valueresultresultItem["name"].asString(); if(!valueresultresultItem["updated"].isNull()) resultObject.updated = std::stoi(valueresultresultItem["updated"].asString()); + if(!valueresultresultItem["id"].isNull()) + resultObject.id = std::stoi(valueresultresultItem["id"].asString()); result_.push_back(resultObject); } - if(!value["requestId"].isNull()) - requestId_ = value["requestId"].asString(); if(!value["totalCount"].isNull()) totalCount_ = std::stoi(value["totalCount"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); } diff --git a/opensearch/src/model/ListInterventionDictionaryEntriesRequest.cc b/opensearch/src/model/ListInterventionDictionaryEntriesRequest.cc index c8a3dabfb..83ecf6577 100644 --- a/opensearch/src/model/ListInterventionDictionaryEntriesRequest.cc +++ b/opensearch/src/model/ListInterventionDictionaryEntriesRequest.cc @@ -1,74 +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. - */ - -#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_; + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ListInterventionDictionaryEntriesRequest; + +ListInterventionDictionaryEntriesRequest::ListInterventionDictionaryEntriesRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/intervention-dictionaries/[name]/entries"}; + setMethod(HttpRequest::Method::Get); } -void ListInterventionDictionaryEntriesRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +ListInterventionDictionaryEntriesRequest::~ListInterventionDictionaryEntriesRequest() {} + +std::string ListInterventionDictionaryEntriesRequest::getName() const { + return name_; } -int ListInterventionDictionaryEntriesRequest::getPageSize()const -{ - return pageSize_; +void ListInterventionDictionaryEntriesRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("name"), name); } -void ListInterventionDictionaryEntriesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int ListInterventionDictionaryEntriesRequest::getPageSize() const { + return pageSize_; } -std::string ListInterventionDictionaryEntriesRequest::getWord()const -{ - return word_; +void ListInterventionDictionaryEntriesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("pageSize"), std::to_string(pageSize)); } -void ListInterventionDictionaryEntriesRequest::setWord(const std::string& word) -{ - word_ = word; - setParameter("Word", word); +std::string ListInterventionDictionaryEntriesRequest::getWord() const { + return word_; } -int ListInterventionDictionaryEntriesRequest::getPageNumber()const -{ - return pageNumber_; +void ListInterventionDictionaryEntriesRequest::setWord(const std::string &word) { + word_ = word; + setParameter(std::string("word"), word); } -void ListInterventionDictionaryEntriesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int ListInterventionDictionaryEntriesRequest::getPageNumber() const { + return pageNumber_; +} + +void ListInterventionDictionaryEntriesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("pageNumber"), std::to_string(pageNumber)); } diff --git a/opensearch/src/model/ListInterventionDictionaryEntriesResult.cc b/opensearch/src/model/ListInterventionDictionaryEntriesResult.cc index 7e0f8287d..e62e392a7 100644 --- a/opensearch/src/model/ListInterventionDictionaryEntriesResult.cc +++ b/opensearch/src/model/ListInterventionDictionaryEntriesResult.cc @@ -45,16 +45,16 @@ void ListInterventionDictionaryEntriesResult::parse(const std::string &payload) 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["word"].isNull()) + resultObject.word = valueresultwordItem["word"].asString(); if(!valueresultwordItem["relevance"].isNull()) resultObject.relevance = valueresultwordItem["relevance"].asString(); + if(!valueresultwordItem["status"].isNull()) + resultObject.status = valueresultwordItem["status"].asString(); + if(!valueresultwordItem["updated"].isNull()) + resultObject.updated = std::stol(valueresultwordItem["updated"].asString()); auto alltokensNode = valueresultwordItem["tokens"]["token"]; for (auto valueresultwordItemtokenstoken : alltokensNode) { @@ -71,10 +71,10 @@ void ListInterventionDictionaryEntriesResult::parse(const std::string &payload) } result_.push_back(resultObject); } - if(!value["requestId"].isNull()) - requestId_ = value["requestId"].asString(); if(!value["totalCount"].isNull()) totalCount_ = std::stoi(value["totalCount"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); } diff --git a/opensearch/src/model/ListInterventionDictionaryNerResultsRequest.cc b/opensearch/src/model/ListInterventionDictionaryNerResultsRequest.cc index 18ab5a687..72d376d4a 100644 --- a/opensearch/src/model/ListInterventionDictionaryNerResultsRequest.cc +++ b/opensearch/src/model/ListInterventionDictionaryNerResultsRequest.cc @@ -1,52 +1,46 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#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); } -void ListInterventionDictionaryNerResultsRequest::setQuery(const std::string& query) -{ - query_ = query; - setParameter("Query", query); +ListInterventionDictionaryNerResultsRequest::~ListInterventionDictionaryNerResultsRequest() {} + +std::string ListInterventionDictionaryNerResultsRequest::getQuery() const { + return query_; } -std::string ListInterventionDictionaryNerResultsRequest::getName()const -{ - return name_; +void ListInterventionDictionaryNerResultsRequest::setQuery(const std::string &query) { + query_ = query; + setParameter(std::string("query"), query); } -void ListInterventionDictionaryNerResultsRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string ListInterventionDictionaryNerResultsRequest::getName() const { + return name_; +} + +void ListInterventionDictionaryNerResultsRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("name"), name); } diff --git a/opensearch/src/model/ListInterventionDictionaryNerResultsResult.cc b/opensearch/src/model/ListInterventionDictionaryNerResultsResult.cc index cbe197645..ebcf70882 100644 --- a/opensearch/src/model/ListInterventionDictionaryNerResultsResult.cc +++ b/opensearch/src/model/ListInterventionDictionaryNerResultsResult.cc @@ -45,12 +45,12 @@ void ListInterventionDictionaryNerResultsResult::parse(const std::string &payloa 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()); + if(!valueresultnerItem["tagLabel"].isNull()) + resultObject.tagLabel = valueresultnerItem["tagLabel"].asString(); result_.push_back(resultObject); } if(!value["requestId"].isNull()) diff --git a/opensearch/src/model/ListInterventionDictionaryRelatedEntitiesRequest.cc b/opensearch/src/model/ListInterventionDictionaryRelatedEntitiesRequest.cc index b8b902866..88b2b9b9f 100644 --- a/opensearch/src/model/ListInterventionDictionaryRelatedEntitiesRequest.cc +++ b/opensearch/src/model/ListInterventionDictionaryRelatedEntitiesRequest.cc @@ -1,41 +1,37 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ListInterventionDictionaryRelatedEntitiesRequest; + +ListInterventionDictionaryRelatedEntitiesRequest::ListInterventionDictionaryRelatedEntitiesRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/intervention-dictionaries/[name]/related"}; + setMethod(HttpRequest::Method::Get); } -void ListInterventionDictionaryRelatedEntitiesRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +ListInterventionDictionaryRelatedEntitiesRequest::~ListInterventionDictionaryRelatedEntitiesRequest() {} + +std::string ListInterventionDictionaryRelatedEntitiesRequest::getName() const { + return name_; +} + +void ListInterventionDictionaryRelatedEntitiesRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("name"), name); } diff --git a/opensearch/src/model/ListModelsRequest.cc b/opensearch/src/model/ListModelsRequest.cc index 8a8b3163f..22c19200a 100644 --- a/opensearch/src/model/ListModelsRequest.cc +++ b/opensearch/src/model/ListModelsRequest.cc @@ -1,74 +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. - */ - -#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_; + */ + +#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); } -void ListModelsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +ListModelsRequest::~ListModelsRequest() {} + +int ListModelsRequest::getPageSize() const { + return pageSize_; } -std::string ListModelsRequest::getType()const -{ - return type_; +void ListModelsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("pageSize"), std::to_string(pageSize)); } -void ListModelsRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); +std::string ListModelsRequest::getType() const { + return type_; } -std::string ListModelsRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void ListModelsRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("type"), type); } -void ListModelsRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string ListModelsRequest::getAppGroupIdentity() const { + return appGroupIdentity_; } -int ListModelsRequest::getPageNumber()const -{ - return pageNumber_; +void ListModelsRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } -void ListModelsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int ListModelsRequest::getPageNumber() const { + return pageNumber_; +} + +void ListModelsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("pageNumber"), std::to_string(pageNumber)); } diff --git a/opensearch/src/model/ListProceedingsRequest.cc b/opensearch/src/model/ListProceedingsRequest.cc new file mode 100644 index 000000000..3968559c2 --- /dev/null +++ b/opensearch/src/model/ListProceedingsRequest.cc @@ -0,0 +1,46 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::ListProceedingsRequest; + +ListProceedingsRequest::ListProceedingsRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/proceedings"}; + setMethod(HttpRequest::Method::Get); +} + +ListProceedingsRequest::~ListProceedingsRequest() {} + +bool ListProceedingsRequest::getFilterFinished() const { + return filterFinished_; +} + +void ListProceedingsRequest::setFilterFinished(bool filterFinished) { + filterFinished_ = filterFinished; + setParameter(std::string("filterFinished"), filterFinished ? "true" : "false"); +} + +std::string ListProceedingsRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void ListProceedingsRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); +} + diff --git a/opensearch/src/model/ListProceedingsResult.cc b/opensearch/src/model/ListProceedingsResult.cc new file mode 100644 index 000000000..a52fb5eba --- /dev/null +++ b/opensearch/src/model/ListProceedingsResult.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; + +ListProceedingsResult::ListProceedingsResult() : + ServiceResult() +{} + +ListProceedingsResult::ListProceedingsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListProceedingsResult::~ListProceedingsResult() +{} + +void ListProceedingsResult::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 ListProceedingsResult::getRequestId()const +{ + return requestId_; +} + diff --git a/opensearch/src/model/ListQueryProcessorAnalyzerResultsRequest.cc b/opensearch/src/model/ListQueryProcessorAnalyzerResultsRequest.cc new file mode 100644 index 000000000..8a8bb6f4c --- /dev/null +++ b/opensearch/src/model/ListQueryProcessorAnalyzerResultsRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ListQueryProcessorAnalyzerResultsRequest; + +ListQueryProcessorAnalyzerResultsRequest::ListQueryProcessorAnalyzerResultsRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appId]/query-processors/[name]/analyze"}; + setMethod(HttpRequest::Method::Get); +} + +ListQueryProcessorAnalyzerResultsRequest::~ListQueryProcessorAnalyzerResultsRequest() {} + +std::string ListQueryProcessorAnalyzerResultsRequest::getAppId() const { + return appId_; +} + +void ListQueryProcessorAnalyzerResultsRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("appId"), appId); +} + +std::string ListQueryProcessorAnalyzerResultsRequest::getName() const { + return name_; +} + +void ListQueryProcessorAnalyzerResultsRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("name"), name); +} + +std::string ListQueryProcessorAnalyzerResultsRequest::getText() const { + return text_; +} + +void ListQueryProcessorAnalyzerResultsRequest::setText(const std::string &text) { + text_ = text; + setParameter(std::string("text"), text); +} + +std::string ListQueryProcessorAnalyzerResultsRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void ListQueryProcessorAnalyzerResultsRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); +} + diff --git a/opensearch/src/model/ListQueryProcessorAnalyzerResultsResult.cc b/opensearch/src/model/ListQueryProcessorAnalyzerResultsResult.cc new file mode 100644 index 000000000..eb9c6568e --- /dev/null +++ b/opensearch/src/model/ListQueryProcessorAnalyzerResultsResult.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; + +ListQueryProcessorAnalyzerResultsResult::ListQueryProcessorAnalyzerResultsResult() : + ServiceResult() +{} + +ListQueryProcessorAnalyzerResultsResult::ListQueryProcessorAnalyzerResultsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListQueryProcessorAnalyzerResultsResult::~ListQueryProcessorAnalyzerResultsResult() +{} + +void ListQueryProcessorAnalyzerResultsResult::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 ListQueryProcessorAnalyzerResultsResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/ListQueryProcessorNersRequest.cc b/opensearch/src/model/ListQueryProcessorNersRequest.cc index 78bce80ad..3aeb82630 100644 --- a/opensearch/src/model/ListQueryProcessorNersRequest.cc +++ b/opensearch/src/model/ListQueryProcessorNersRequest.cc @@ -1,41 +1,37 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#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); } -void ListQueryProcessorNersRequest::setDomain(const std::string& domain) -{ - domain_ = domain; - setParameter("Domain", domain); +ListQueryProcessorNersRequest::~ListQueryProcessorNersRequest() {} + +std::string ListQueryProcessorNersRequest::getDomain() const { + return domain_; +} + +void ListQueryProcessorNersRequest::setDomain(const std::string &domain) { + domain_ = domain; + setParameter(std::string("domain"), domain); } diff --git a/opensearch/src/model/ListQueryProcessorNersResult.cc b/opensearch/src/model/ListQueryProcessorNersResult.cc index 95049a90e..41d29e4f3 100644 --- a/opensearch/src/model/ListQueryProcessorNersResult.cc +++ b/opensearch/src/model/ListQueryProcessorNersResult.cc @@ -45,10 +45,10 @@ void ListQueryProcessorNersResult::parse(const std::string &payload) 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["priority"].isNull()) + resultObject.priority = valueresultresultItem["priority"].asString(); if(!valueresultresultItem["label"].isNull()) resultObject.label = valueresultresultItem["label"].asString(); result_.push_back(resultObject); diff --git a/opensearch/src/model/ListQueryProcessorsRequest.cc b/opensearch/src/model/ListQueryProcessorsRequest.cc index 1e5386922..ceafad23e 100644 --- a/opensearch/src/model/ListQueryProcessorsRequest.cc +++ b/opensearch/src/model/ListQueryProcessorsRequest.cc @@ -1,63 +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. - */ - -#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_; + */ + +#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); } -void ListQueryProcessorsRequest::setAppId(int appId) -{ - appId_ = appId; - setParameter("AppId", std::to_string(appId)); +ListQueryProcessorsRequest::~ListQueryProcessorsRequest() {} + +int ListQueryProcessorsRequest::getAppId() const { + return appId_; } -int ListQueryProcessorsRequest::getIsActive()const -{ - return isActive_; +void ListQueryProcessorsRequest::setAppId(int appId) { + appId_ = appId; + setParameter(std::string("appId"), std::to_string(appId)); } -void ListQueryProcessorsRequest::setIsActive(int isActive) -{ - isActive_ = isActive; - setParameter("IsActive", std::to_string(isActive)); +int ListQueryProcessorsRequest::getIsActive() const { + return isActive_; } -std::string ListQueryProcessorsRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void ListQueryProcessorsRequest::setIsActive(int isActive) { + isActive_ = isActive; + setParameter(std::string("isActive"), std::to_string(isActive)); } -void ListQueryProcessorsRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string ListQueryProcessorsRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void ListQueryProcessorsRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/ListQueryProcessorsResult.cc b/opensearch/src/model/ListQueryProcessorsResult.cc index 550e2c47e..b8b8eddf2 100644 --- a/opensearch/src/model/ListQueryProcessorsResult.cc +++ b/opensearch/src/model/ListQueryProcessorsResult.cc @@ -43,16 +43,16 @@ void ListQueryProcessorsResult::parse(const std::string &payload) 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["active"].isNull()) + resultObject.active = valueresultresultItem["active"].asString() == "true"; if(!valueresultresultItem["updated"].isNull()) resultObject.updated = std::stoi(valueresultresultItem["updated"].asString()); + if(!valueresultresultItem["name"].isNull()) + resultObject.name = valueresultresultItem["name"].asString(); + if(!valueresultresultItem["domain"].isNull()) + resultObject.domain = valueresultresultItem["domain"].asString(); auto allIndexes = value["indexes"]["indexes"]; for (auto value : allIndexes) resultObject.indexes.push_back(value.asString()); diff --git a/opensearch/src/model/ListQuotaReviewTasksRequest.cc b/opensearch/src/model/ListQuotaReviewTasksRequest.cc index 2b56dbf59..fa6d9e9f2 100644 --- a/opensearch/src/model/ListQuotaReviewTasksRequest.cc +++ b/opensearch/src/model/ListQuotaReviewTasksRequest.cc @@ -1,63 +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. - */ - -#include - -using AlibabaCloud::OpenSearch::Model::ListQuotaReviewTasksRequest; - -ListQuotaReviewTasksRequest::ListQuotaReviewTasksRequest() : - RoaServiceRequest("opensearch", "2017-12-25") -{ - setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/quota-review-tasks"); - setMethod(HttpRequest::Method::Get); -} - -ListQuotaReviewTasksRequest::~ListQuotaReviewTasksRequest() -{} - -int ListQuotaReviewTasksRequest::getPageSize()const -{ - return pageSize_; + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ListQuotaReviewTasksRequest; + +ListQuotaReviewTasksRequest::ListQuotaReviewTasksRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/quota-review-tasks"}; + setMethod(HttpRequest::Method::Get); } -void ListQuotaReviewTasksRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +ListQuotaReviewTasksRequest::~ListQuotaReviewTasksRequest() {} + +int ListQuotaReviewTasksRequest::getPageSize() const { + return pageSize_; } -std::string ListQuotaReviewTasksRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void ListQuotaReviewTasksRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("pageSize"), std::to_string(pageSize)); } -void ListQuotaReviewTasksRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string ListQuotaReviewTasksRequest::getAppGroupIdentity() const { + return appGroupIdentity_; } -int ListQuotaReviewTasksRequest::getPageNumber()const -{ - return pageNumber_; +void ListQuotaReviewTasksRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } -void ListQuotaReviewTasksRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int ListQuotaReviewTasksRequest::getPageNumber() const { + return pageNumber_; +} + +void ListQuotaReviewTasksRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("pageNumber"), std::to_string(pageNumber)); } diff --git a/opensearch/src/model/ListQuotaReviewTasksResult.cc b/opensearch/src/model/ListQuotaReviewTasksResult.cc index ddff83a03..2db82d6f7 100644 --- a/opensearch/src/model/ListQuotaReviewTasksResult.cc +++ b/opensearch/src/model/ListQuotaReviewTasksResult.cc @@ -43,44 +43,44 @@ void ListQuotaReviewTasksResult::parse(const std::string &payload) for (auto valueresultresultItem : allresultNode) { ResultItem resultObject; - if(!valueresultresultItem["id"].isNull()) - resultObject.id = std::stoi(valueresultresultItem["id"].asString()); - if(!valueresultresultItem["appGroupId"].isNull()) - resultObject.appGroupId = std::stoi(valueresultresultItem["appGroupId"].asString()); - if(!valueresultresultItem["appGroupName"].isNull()) - resultObject.appGroupName = valueresultresultItem["appGroupName"].asString(); - if(!valueresultresultItem["appGroupType"].isNull()) - resultObject.appGroupType = valueresultresultItem["appGroupType"].asString(); + if(!valueresultresultItem["oldDocSize"].isNull()) + resultObject.oldDocSize = std::stoi(valueresultresultItem["oldDocSize"].asString()); + if(!valueresultresultItem["pending"].isNull()) + resultObject.pending = valueresultresultItem["pending"].asString() == "true"; + if(!valueresultresultItem["memo"].isNull()) + resultObject.memo = valueresultresultItem["memo"].asString(); + if(!valueresultresultItem["approved"].isNull()) + resultObject.approved = valueresultresultItem["approved"].asString() == "true"; if(!valueresultresultItem["oldSpec"].isNull()) resultObject.oldSpec = valueresultresultItem["oldSpec"].asString(); if(!valueresultresultItem["oldComputeResource"].isNull()) resultObject.oldComputeResource = std::stoi(valueresultresultItem["oldComputeResource"].asString()); - if(!valueresultresultItem["oldDocSize"].isNull()) - resultObject.oldDocSize = std::stoi(valueresultresultItem["oldDocSize"].asString()); - if(!valueresultresultItem["newSpec"].isNull()) - resultObject.newSpec = valueresultresultItem["newSpec"].asString(); - if(!valueresultresultItem["newComputeResource"].isNull()) - resultObject.newComputeResource = std::stoi(valueresultresultItem["newComputeResource"].asString()); - if(!valueresultresultItem["newSocSize"].isNull()) - resultObject.newSocSize = std::stoi(valueresultresultItem["newSocSize"].asString()); - if(!valueresultresultItem["memo"].isNull()) - resultObject.memo = valueresultresultItem["memo"].asString(); + if(!valueresultresultItem["appGroupType"].isNull()) + resultObject.appGroupType = valueresultresultItem["appGroupType"].asString(); if(!valueresultresultItem["available"].isNull()) resultObject.available = valueresultresultItem["available"].asString() == "true"; - if(!valueresultresultItem["pending"].isNull()) - resultObject.pending = valueresultresultItem["pending"].asString() == "true"; - if(!valueresultresultItem["approved"].isNull()) - resultObject.approved = valueresultresultItem["approved"].asString() == "true"; if(!valueresultresultItem["gmtCreate"].isNull()) resultObject.gmtCreate = valueresultresultItem["gmtCreate"].asString(); + if(!valueresultresultItem["newSocSize"].isNull()) + resultObject.newSocSize = std::stoi(valueresultresultItem["newSocSize"].asString()); + if(!valueresultresultItem["id"].isNull()) + resultObject.id = std::stoi(valueresultresultItem["id"].asString()); + if(!valueresultresultItem["appGroupId"].isNull()) + resultObject.appGroupId = std::stoi(valueresultresultItem["appGroupId"].asString()); + if(!valueresultresultItem["newComputeResource"].isNull()) + resultObject.newComputeResource = std::stoi(valueresultresultItem["newComputeResource"].asString()); + if(!valueresultresultItem["appGroupName"].isNull()) + resultObject.appGroupName = valueresultresultItem["appGroupName"].asString(); if(!valueresultresultItem["gmtModified"].isNull()) resultObject.gmtModified = valueresultresultItem["gmtModified"].asString(); + if(!valueresultresultItem["newSpec"].isNull()) + resultObject.newSpec = valueresultresultItem["newSpec"].asString(); result_.push_back(resultObject); } - if(!value["requestId"].isNull()) - requestId_ = value["requestId"].asString(); if(!value["totalCount"].isNull()) totalCount_ = std::stoi(value["totalCount"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); } diff --git a/opensearch/src/model/ListRamRolesRequest.cc b/opensearch/src/model/ListRamRolesRequest.cc index 3a0c4c58f..bcf8a5259 100644 --- a/opensearch/src/model/ListRamRolesRequest.cc +++ b/opensearch/src/model/ListRamRolesRequest.cc @@ -1,30 +1,28 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::ListRamRolesRequest; - -ListRamRolesRequest::ListRamRolesRequest() : - RoaServiceRequest("opensearch", "2017-12-25") -{ - setResourcePath("/v4/openapi/assist/ram/roles"); - setMethod(HttpRequest::Method::Get); -} - -ListRamRolesRequest::~ListRamRolesRequest() -{} - + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ListRamRolesRequest; + +ListRamRolesRequest::ListRamRolesRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/assist/ram/roles"}; + setMethod(HttpRequest::Method::Get); +} + +ListRamRolesRequest::~ListRamRolesRequest() {} + diff --git a/opensearch/src/model/ListRamRolesResult.cc b/opensearch/src/model/ListRamRolesResult.cc index 1563b1a01..9f5a9802b 100644 --- a/opensearch/src/model/ListRamRolesResult.cc +++ b/opensearch/src/model/ListRamRolesResult.cc @@ -43,14 +43,14 @@ void ListRamRolesResult::parse(const std::string &payload) for (auto valueresultresultItem : allresultNode) { ResultItem resultObject; - if(!valueresultresultItem["name"].isNull()) - resultObject.name = valueresultresultItem["name"].asString(); - if(!valueresultresultItem["service"].isNull()) - resultObject.service = valueresultresultItem["service"].asString(); if(!valueresultresultItem["template_id"].isNull()) resultObject.template_id = valueresultresultItem["template_id"].asString(); + if(!valueresultresultItem["service"].isNull()) + resultObject.service = valueresultresultItem["service"].asString(); if(!valueresultresultItem["assumed"].isNull()) resultObject.assumed = valueresultresultItem["assumed"].asString() == "true"; + if(!valueresultresultItem["name"].isNull()) + resultObject.name = valueresultresultItem["name"].asString(); result_.push_back(resultObject); } if(!value["requestId"].isNull()) diff --git a/opensearch/src/model/ListScheduledTasksRequest.cc b/opensearch/src/model/ListScheduledTasksRequest.cc index 371bd9f5b..3042e1174 100644 --- a/opensearch/src/model/ListScheduledTasksRequest.cc +++ b/opensearch/src/model/ListScheduledTasksRequest.cc @@ -1,74 +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. - */ - -#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_; + */ + +#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); } -void ListScheduledTasksRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +ListScheduledTasksRequest::~ListScheduledTasksRequest() {} + +int ListScheduledTasksRequest::getPageSize() const { + return pageSize_; } -std::string ListScheduledTasksRequest::getType()const -{ - return type_; +void ListScheduledTasksRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("pageSize"), std::to_string(pageSize)); } -void ListScheduledTasksRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); +std::string ListScheduledTasksRequest::getType() const { + return type_; } -std::string ListScheduledTasksRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void ListScheduledTasksRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("type"), type); } -void ListScheduledTasksRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string ListScheduledTasksRequest::getAppGroupIdentity() const { + return appGroupIdentity_; } -int ListScheduledTasksRequest::getPageNumber()const -{ - return pageNumber_; +void ListScheduledTasksRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } -void ListScheduledTasksRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int ListScheduledTasksRequest::getPageNumber() const { + return pageNumber_; +} + +void ListScheduledTasksRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("pageNumber"), std::to_string(pageNumber)); } diff --git a/opensearch/src/model/ListScheduledTasksResult.cc b/opensearch/src/model/ListScheduledTasksResult.cc index 3bf62b163..ecadae921 100644 --- a/opensearch/src/model/ListScheduledTasksResult.cc +++ b/opensearch/src/model/ListScheduledTasksResult.cc @@ -42,10 +42,10 @@ void ListScheduledTasksResult::parse(const std::string &payload) 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()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); } diff --git a/opensearch/src/model/ListSearchStrategiesRequest.cc b/opensearch/src/model/ListSearchStrategiesRequest.cc new file mode 100644 index 000000000..f5ecdc427 --- /dev/null +++ b/opensearch/src/model/ListSearchStrategiesRequest.cc @@ -0,0 +1,46 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::ListSearchStrategiesRequest; + +ListSearchStrategiesRequest::ListSearchStrategiesRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appId]/search-strategies"}; + setMethod(HttpRequest::Method::Get); +} + +ListSearchStrategiesRequest::~ListSearchStrategiesRequest() {} + +std::string ListSearchStrategiesRequest::getAppId() const { + return appId_; +} + +void ListSearchStrategiesRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("appId"), appId); +} + +std::string ListSearchStrategiesRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void ListSearchStrategiesRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); +} + diff --git a/opensearch/src/model/ListSearchStrategiesResult.cc b/opensearch/src/model/ListSearchStrategiesResult.cc new file mode 100644 index 000000000..b2bcf5752 --- /dev/null +++ b/opensearch/src/model/ListSearchStrategiesResult.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; + +ListSearchStrategiesResult::ListSearchStrategiesResult() : + ServiceResult() +{} + +ListSearchStrategiesResult::ListSearchStrategiesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSearchStrategiesResult::~ListSearchStrategiesResult() +{} + +void ListSearchStrategiesResult::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 ListSearchStrategiesResult::getRequestId()const +{ + return requestId_; +} + diff --git a/opensearch/src/model/ListSecondRanksRequest.cc b/opensearch/src/model/ListSecondRanksRequest.cc index cfef6c124..c2fb7c6dd 100644 --- a/opensearch/src/model/ListSecondRanksRequest.cc +++ b/opensearch/src/model/ListSecondRanksRequest.cc @@ -1,52 +1,46 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#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); } -void ListSecondRanksRequest::setAppId(int appId) -{ - appId_ = appId; - setParameter("AppId", std::to_string(appId)); +ListSecondRanksRequest::~ListSecondRanksRequest() {} + +int ListSecondRanksRequest::getAppId() const { + return appId_; } -std::string ListSecondRanksRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void ListSecondRanksRequest::setAppId(int appId) { + appId_ = appId; + setParameter(std::string("appId"), std::to_string(appId)); } -void ListSecondRanksRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string ListSecondRanksRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void ListSecondRanksRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/ListSecondRanksResult.cc b/opensearch/src/model/ListSecondRanksResult.cc index 6ccb0f0c8..05d0b3df1 100644 --- a/opensearch/src/model/ListSecondRanksResult.cc +++ b/opensearch/src/model/ListSecondRanksResult.cc @@ -43,30 +43,30 @@ void ListSecondRanksResult::parse(const std::string &payload) 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["active"].isNull()) + resultObject.active = valueresultresultItem["active"].asString() == "true"; if(!valueresultresultItem["isDefault"].isNull()) resultObject.isDefault = valueresultresultItem["isDefault"].asString(); if(!valueresultresultItem["isSys"].isNull()) resultObject.isSys = valueresultresultItem["isSys"].asString(); + if(!valueresultresultItem["description"].isNull()) + resultObject.description = valueresultresultItem["description"].asString(); + if(!valueresultresultItem["updated"].isNull()) + resultObject.updated = std::stoi(valueresultresultItem["updated"].asString()); + if(!valueresultresultItem["name"].isNull()) + resultObject.name = valueresultresultItem["name"].asString(); + if(!valueresultresultItem["meta"].isNull()) + resultObject.meta = valueresultresultItem["meta"].asString(); + if(!valueresultresultItem["id"].isNull()) + resultObject.id = valueresultresultItem["id"].asString(); result_.push_back(resultObject); } - if(!value["requestId"].isNull()) - requestId_ = value["requestId"].asString(); if(!value["totalCount"].isNull()) totalCount_ = std::stoi(value["totalCount"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); } diff --git a/opensearch/src/model/ListSlowQueryCategoriesRequest.cc b/opensearch/src/model/ListSlowQueryCategoriesRequest.cc index 8cf5a0216..62918d1ff 100644 --- a/opensearch/src/model/ListSlowQueryCategoriesRequest.cc +++ b/opensearch/src/model/ListSlowQueryCategoriesRequest.cc @@ -1,41 +1,37 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#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); } -void ListSlowQueryCategoriesRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +ListSlowQueryCategoriesRequest::~ListSlowQueryCategoriesRequest() {} + +std::string ListSlowQueryCategoriesRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void ListSlowQueryCategoriesRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/ListSlowQueryCategoriesResult.cc b/opensearch/src/model/ListSlowQueryCategoriesResult.cc index c67ae7264..97bc60a63 100644 --- a/opensearch/src/model/ListSlowQueryCategoriesResult.cc +++ b/opensearch/src/model/ListSlowQueryCategoriesResult.cc @@ -40,10 +40,10 @@ void ListSlowQueryCategoriesResult::parse(const std::string &payload) 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["analyzeStatus"].isNull()) + result_.analyzeStatus = resultNode["analyzeStatus"].asString(); if(!resultNode["end"].isNull()) result_.end = std::stoi(resultNode["end"].asString()); if(!value["requestId"].isNull()) diff --git a/opensearch/src/model/ListSlowQueryQueriesRequest.cc b/opensearch/src/model/ListSlowQueryQueriesRequest.cc index c127a4019..85d349f08 100644 --- a/opensearch/src/model/ListSlowQueryQueriesRequest.cc +++ b/opensearch/src/model/ListSlowQueryQueriesRequest.cc @@ -1,52 +1,46 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#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); } -void ListSlowQueryQueriesRequest::setCategoryIndex(const std::string& categoryIndex) -{ - categoryIndex_ = categoryIndex; - setParameter("CategoryIndex", categoryIndex); +ListSlowQueryQueriesRequest::~ListSlowQueryQueriesRequest() {} + +std::string ListSlowQueryQueriesRequest::getCategoryIndex() const { + return categoryIndex_; } -std::string ListSlowQueryQueriesRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void ListSlowQueryQueriesRequest::setCategoryIndex(const std::string &categoryIndex) { + categoryIndex_ = categoryIndex; + setParameter(std::string("categoryIndex"), categoryIndex); } -void ListSlowQueryQueriesRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string ListSlowQueryQueriesRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void ListSlowQueryQueriesRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/ListSlowQueryQueriesResult.cc b/opensearch/src/model/ListSlowQueryQueriesResult.cc index ebda16d3f..cd2cedce1 100644 --- a/opensearch/src/model/ListSlowQueryQueriesResult.cc +++ b/opensearch/src/model/ListSlowQueryQueriesResult.cc @@ -40,14 +40,14 @@ void ListSlowQueryQueriesResult::parse(const std::string &payload) 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(!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(); diff --git a/opensearch/src/model/ListSortExpressionsRequest.cc b/opensearch/src/model/ListSortExpressionsRequest.cc index 9b1f5f2ba..066184d17 100644 --- a/opensearch/src/model/ListSortExpressionsRequest.cc +++ b/opensearch/src/model/ListSortExpressionsRequest.cc @@ -1,52 +1,46 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#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); } -void ListSortExpressionsRequest::setAppId(int appId) -{ - appId_ = appId; - setParameter("AppId", std::to_string(appId)); +ListSortExpressionsRequest::~ListSortExpressionsRequest() {} + +int ListSortExpressionsRequest::getAppId() const { + return appId_; } -std::string ListSortExpressionsRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void ListSortExpressionsRequest::setAppId(int appId) { + appId_ = appId; + setParameter(std::string("appId"), std::to_string(appId)); } -void ListSortExpressionsRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string ListSortExpressionsRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void ListSortExpressionsRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/ListSortExpressionsResult.cc b/opensearch/src/model/ListSortExpressionsResult.cc index 41d4912ab..80bffb418 100644 --- a/opensearch/src/model/ListSortExpressionsResult.cc +++ b/opensearch/src/model/ListSortExpressionsResult.cc @@ -43,16 +43,16 @@ void ListSortExpressionsResult::parse(const std::string &payload) 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["active"].isNull()) + resultObject.active = valueresultfirstRankItem["active"].asString() == "true"; + if(!valueresultfirstRankItem["description"].isNull()) + resultObject.description = valueresultfirstRankItem["description"].asString(); if(!valueresultfirstRankItem["updated"].isNull()) resultObject.updated = std::stoi(valueresultfirstRankItem["updated"].asString()); + if(!valueresultfirstRankItem["name"].isNull()) + resultObject.name = valueresultfirstRankItem["name"].asString(); result_.push_back(resultObject); } if(!value["requestId"].isNull()) diff --git a/opensearch/src/model/ListSortScriptsRequest.cc b/opensearch/src/model/ListSortScriptsRequest.cc index e73e2386a..7788ffbdd 100644 --- a/opensearch/src/model/ListSortScriptsRequest.cc +++ b/opensearch/src/model/ListSortScriptsRequest.cc @@ -1,52 +1,46 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#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); } -void ListSortScriptsRequest::setAppVersionId(const std::string& appVersionId) -{ - appVersionId_ = appVersionId; - setParameter("AppVersionId", appVersionId); +ListSortScriptsRequest::~ListSortScriptsRequest() {} + +std::string ListSortScriptsRequest::getAppVersionId() const { + return appVersionId_; } -std::string ListSortScriptsRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void ListSortScriptsRequest::setAppVersionId(const std::string &appVersionId) { + appVersionId_ = appVersionId; + setParameter(std::string("appVersionId"), appVersionId); } -void ListSortScriptsRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string ListSortScriptsRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void ListSortScriptsRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/ListSortScriptsResult.cc b/opensearch/src/model/ListSortScriptsResult.cc index 96088cc74..52cd151cd 100644 --- a/opensearch/src/model/ListSortScriptsResult.cc +++ b/opensearch/src/model/ListSortScriptsResult.cc @@ -43,18 +43,18 @@ void ListSortScriptsResult::parse(const std::string &payload) 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["status"].isNull()) + resultObject.status = valueresultscriptInfo["status"].asString(); if(!valueresultscriptInfo["modifyTime"].isNull()) resultObject.modifyTime = valueresultscriptInfo["modifyTime"].asString(); + if(!valueresultscriptInfo["scriptName"].isNull()) + resultObject.scriptName = valueresultscriptInfo["scriptName"].asString(); result_.push_back(resultObject); } if(!value["requestId"].isNull()) diff --git a/opensearch/src/model/ListStatisticLogsRequest.cc b/opensearch/src/model/ListStatisticLogsRequest.cc index 6418e38cd..dfd67abd3 100644 --- a/opensearch/src/model/ListStatisticLogsRequest.cc +++ b/opensearch/src/model/ListStatisticLogsRequest.cc @@ -1,140 +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::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_; + */ + +#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); } -void ListStatisticLogsRequest::setColumns(const std::string& columns) -{ - columns_ = columns; - setParameter("Columns", columns); +ListStatisticLogsRequest::~ListStatisticLogsRequest() {} + +std::string ListStatisticLogsRequest::getColumns() const { + return columns_; } -std::string ListStatisticLogsRequest::getQuery()const -{ - return query_; +void ListStatisticLogsRequest::setColumns(const std::string &columns) { + columns_ = columns; + setParameter(std::string("columns"), columns); } -void ListStatisticLogsRequest::setQuery(const std::string& query) -{ - query_ = query; - setParameter("Query", query); +std::string ListStatisticLogsRequest::getQuery() const { + return query_; } -int ListStatisticLogsRequest::getPageSize()const -{ - return pageSize_; +void ListStatisticLogsRequest::setQuery(const std::string &query) { + query_ = query; + setParameter(std::string("query"), query); } -void ListStatisticLogsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int ListStatisticLogsRequest::getPageSize() const { + return pageSize_; } -std::string ListStatisticLogsRequest::getModuleName()const -{ - return moduleName_; +void ListStatisticLogsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("pageSize"), std::to_string(pageSize)); } -void ListStatisticLogsRequest::setModuleName(const std::string& moduleName) -{ - moduleName_ = moduleName; - setParameter("ModuleName", moduleName); +std::string ListStatisticLogsRequest::getModuleName() const { + return moduleName_; } -bool ListStatisticLogsRequest::getDistinct()const -{ - return distinct_; +void ListStatisticLogsRequest::setModuleName(const std::string &moduleName) { + moduleName_ = moduleName; + setParameter(std::string("moduleName"), moduleName); } -void ListStatisticLogsRequest::setDistinct(bool distinct) -{ - distinct_ = distinct; - setParameter("Distinct", distinct ? "true" : "false"); +bool ListStatisticLogsRequest::getDistinct() const { + return distinct_; } -std::string ListStatisticLogsRequest::getSortBy()const -{ - return sortBy_; +void ListStatisticLogsRequest::setDistinct(bool distinct) { + distinct_ = distinct; + setParameter(std::string("distinct"), distinct ? "true" : "false"); } -void ListStatisticLogsRequest::setSortBy(const std::string& sortBy) -{ - sortBy_ = sortBy; - setParameter("SortBy", sortBy); +std::string ListStatisticLogsRequest::getSortBy() const { + return sortBy_; } -int ListStatisticLogsRequest::getStartTime()const -{ - return startTime_; +void ListStatisticLogsRequest::setSortBy(const std::string &sortBy) { + sortBy_ = sortBy; + setParameter(std::string("sortBy"), sortBy); } -void ListStatisticLogsRequest::setStartTime(int startTime) -{ - startTime_ = startTime; - setParameter("StartTime", std::to_string(startTime)); +int ListStatisticLogsRequest::getStartTime() const { + return startTime_; } -int ListStatisticLogsRequest::getStopTime()const -{ - return stopTime_; +void ListStatisticLogsRequest::setStartTime(int startTime) { + startTime_ = startTime; + setParameter(std::string("startTime"), std::to_string(startTime)); } -void ListStatisticLogsRequest::setStopTime(int stopTime) -{ - stopTime_ = stopTime; - setParameter("StopTime", std::to_string(stopTime)); +int ListStatisticLogsRequest::getStopTime() const { + return stopTime_; } -std::string ListStatisticLogsRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void ListStatisticLogsRequest::setStopTime(int stopTime) { + stopTime_ = stopTime; + setParameter(std::string("stopTime"), std::to_string(stopTime)); } -void ListStatisticLogsRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string ListStatisticLogsRequest::getAppGroupIdentity() const { + return appGroupIdentity_; } -int ListStatisticLogsRequest::getPageNumber()const -{ - return pageNumber_; +void ListStatisticLogsRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } -void ListStatisticLogsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int ListStatisticLogsRequest::getPageNumber() const { + return pageNumber_; +} + +void ListStatisticLogsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("pageNumber"), std::to_string(pageNumber)); } diff --git a/opensearch/src/model/ListStatisticLogsResult.cc b/opensearch/src/model/ListStatisticLogsResult.cc index 088785e70..ffee7b446 100644 --- a/opensearch/src/model/ListStatisticLogsResult.cc +++ b/opensearch/src/model/ListStatisticLogsResult.cc @@ -42,10 +42,10 @@ void ListStatisticLogsResult::parse(const std::string &payload) 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()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); } diff --git a/opensearch/src/model/ListStatisticReportRequest.cc b/opensearch/src/model/ListStatisticReportRequest.cc index 7cc400e53..cf36f19da 100644 --- a/opensearch/src/model/ListStatisticReportRequest.cc +++ b/opensearch/src/model/ListStatisticReportRequest.cc @@ -1,118 +1,100 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#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); } -void ListStatisticReportRequest::setColumns(const std::string& columns) -{ - columns_ = columns; - setParameter("Columns", columns); +ListStatisticReportRequest::~ListStatisticReportRequest() {} + +std::string ListStatisticReportRequest::getColumns() const { + return columns_; } -std::string ListStatisticReportRequest::getQuery()const -{ - return query_; +void ListStatisticReportRequest::setColumns(const std::string &columns) { + columns_ = columns; + setParameter(std::string("columns"), columns); } -void ListStatisticReportRequest::setQuery(const std::string& query) -{ - query_ = query; - setParameter("Query", query); +std::string ListStatisticReportRequest::getQuery() const { + return query_; } -int ListStatisticReportRequest::getPageSize()const -{ - return pageSize_; +void ListStatisticReportRequest::setQuery(const std::string &query) { + query_ = query; + setParameter(std::string("query"), query); } -void ListStatisticReportRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int ListStatisticReportRequest::getPageSize() const { + return pageSize_; } -std::string ListStatisticReportRequest::getModuleName()const -{ - return moduleName_; +void ListStatisticReportRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("pageSize"), std::to_string(pageSize)); } -void ListStatisticReportRequest::setModuleName(const std::string& moduleName) -{ - moduleName_ = moduleName; - setParameter("ModuleName", moduleName); +std::string ListStatisticReportRequest::getModuleName() const { + return moduleName_; } -int ListStatisticReportRequest::getEndTime()const -{ - return endTime_; +void ListStatisticReportRequest::setModuleName(const std::string &moduleName) { + moduleName_ = moduleName; + setParameter(std::string("moduleName"), moduleName); } -void ListStatisticReportRequest::setEndTime(int endTime) -{ - endTime_ = endTime; - setParameter("EndTime", std::to_string(endTime)); +int ListStatisticReportRequest::getEndTime() const { + return endTime_; } -int ListStatisticReportRequest::getStartTime()const -{ - return startTime_; +void ListStatisticReportRequest::setEndTime(int endTime) { + endTime_ = endTime; + setParameter(std::string("endTime"), std::to_string(endTime)); } -void ListStatisticReportRequest::setStartTime(int startTime) -{ - startTime_ = startTime; - setParameter("StartTime", std::to_string(startTime)); +int ListStatisticReportRequest::getStartTime() const { + return startTime_; } -std::string ListStatisticReportRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void ListStatisticReportRequest::setStartTime(int startTime) { + startTime_ = startTime; + setParameter(std::string("startTime"), std::to_string(startTime)); } -void ListStatisticReportRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string ListStatisticReportRequest::getAppGroupIdentity() const { + return appGroupIdentity_; } -int ListStatisticReportRequest::getPageNumber()const -{ - return pageNumber_; +void ListStatisticReportRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } -void ListStatisticReportRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int ListStatisticReportRequest::getPageNumber() const { + return pageNumber_; +} + +void ListStatisticReportRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("pageNumber"), std::to_string(pageNumber)); } diff --git a/opensearch/src/model/ListStatisticReportResult.cc b/opensearch/src/model/ListStatisticReportResult.cc index 3bfc064a1..04e5628f6 100644 --- a/opensearch/src/model/ListStatisticReportResult.cc +++ b/opensearch/src/model/ListStatisticReportResult.cc @@ -42,10 +42,10 @@ void ListStatisticReportResult::parse(const std::string &payload) 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()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); } diff --git a/opensearch/src/model/ListTagResourcesRequest.cc b/opensearch/src/model/ListTagResourcesRequest.cc new file mode 100644 index 000000000..02479be41 --- /dev/null +++ b/opensearch/src/model/ListTagResourcesRequest.cc @@ -0,0 +1,46 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::ListTagResourcesRequest; + +ListTagResourcesRequest::ListTagResourcesRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/resource-tags"}; + setMethod(HttpRequest::Method::Get); +} + +ListTagResourcesRequest::~ListTagResourcesRequest() {} + +std::string ListTagResourcesRequest::getNextToken() const { + return nextToken_; +} + +void ListTagResourcesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("nextToken"), nextToken); +} + +std::string ListTagResourcesRequest::getResourceType() const { + return resourceType_; +} + +void ListTagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("resourceType"), resourceType); +} + diff --git a/opensearch/src/model/ListTagResourcesResult.cc b/opensearch/src/model/ListTagResourcesResult.cc new file mode 100644 index 000000000..ce5d3e6d9 --- /dev/null +++ b/opensearch/src/model/ListTagResourcesResult.cc @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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; + +ListTagResourcesResult::ListTagResourcesResult() : + ServiceResult() +{} + +ListTagResourcesResult::ListTagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTagResourcesResult::~ListTagResourcesResult() +{} + +void ListTagResourcesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresultNode = value["result"]["TagResource"]; + for (auto valueresultTagResource : allresultNode) + { + TagResource resultObject; + if(!valueresultTagResource["tagKey"].isNull()) + resultObject.tagKey = valueresultTagResource["tagKey"].asString(); + if(!valueresultTagResource["tagValue"].isNull()) + resultObject.tagValue = valueresultTagResource["tagValue"].asString(); + if(!valueresultTagResource["resourceId"].isNull()) + resultObject.resourceId = valueresultTagResource["resourceId"].asString(); + if(!valueresultTagResource["resourceType"].isNull()) + resultObject.resourceType = valueresultTagResource["resourceType"].asString(); + result_.push_back(resultObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["nextToken"].isNull()) + nextToken_ = value["nextToken"].asString(); + +} + +std::vector ListTagResourcesResult::getresult()const +{ + return result_; +} + +std::string ListTagResourcesResult::getRequestId()const +{ + return requestId_; +} + +std::string ListTagResourcesResult::getNextToken()const +{ + return nextToken_; +} + diff --git a/opensearch/src/model/ListUserAnalyzerEntriesRequest.cc b/opensearch/src/model/ListUserAnalyzerEntriesRequest.cc index eb58e7ce0..798b89fc5 100644 --- a/opensearch/src/model/ListUserAnalyzerEntriesRequest.cc +++ b/opensearch/src/model/ListUserAnalyzerEntriesRequest.cc @@ -1,74 +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. - */ - -#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_; + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ListUserAnalyzerEntriesRequest; + +ListUserAnalyzerEntriesRequest::ListUserAnalyzerEntriesRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/user-analyzers/[name]/entries"}; + setMethod(HttpRequest::Method::Get); } -void ListUserAnalyzerEntriesRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +ListUserAnalyzerEntriesRequest::~ListUserAnalyzerEntriesRequest() {} + +std::string ListUserAnalyzerEntriesRequest::getName() const { + return name_; } -int ListUserAnalyzerEntriesRequest::getPageSize()const -{ - return pageSize_; +void ListUserAnalyzerEntriesRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("name"), name); } -void ListUserAnalyzerEntriesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int ListUserAnalyzerEntriesRequest::getPageSize() const { + return pageSize_; } -std::string ListUserAnalyzerEntriesRequest::getWord()const -{ - return word_; +void ListUserAnalyzerEntriesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("pageSize"), std::to_string(pageSize)); } -void ListUserAnalyzerEntriesRequest::setWord(const std::string& word) -{ - word_ = word; - setParameter("Word", word); +std::string ListUserAnalyzerEntriesRequest::getWord() const { + return word_; } -int ListUserAnalyzerEntriesRequest::getPageNumber()const -{ - return pageNumber_; +void ListUserAnalyzerEntriesRequest::setWord(const std::string &word) { + word_ = word; + setParameter(std::string("word"), word); } -void ListUserAnalyzerEntriesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int ListUserAnalyzerEntriesRequest::getPageNumber() const { + return pageNumber_; +} + +void ListUserAnalyzerEntriesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("pageNumber"), std::to_string(pageNumber)); } diff --git a/opensearch/src/model/ListUserAnalyzersRequest.cc b/opensearch/src/model/ListUserAnalyzersRequest.cc index a3d03ea4a..9b67dc6c1 100644 --- a/opensearch/src/model/ListUserAnalyzersRequest.cc +++ b/opensearch/src/model/ListUserAnalyzersRequest.cc @@ -1,52 +1,46 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ListUserAnalyzersRequest; + +ListUserAnalyzersRequest::ListUserAnalyzersRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/user-analyzers"}; + setMethod(HttpRequest::Method::Get); } -void ListUserAnalyzersRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +ListUserAnalyzersRequest::~ListUserAnalyzersRequest() {} + +int ListUserAnalyzersRequest::getPageSize() const { + return pageSize_; } -int ListUserAnalyzersRequest::getPageNumber()const -{ - return pageNumber_; +void ListUserAnalyzersRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("pageSize"), std::to_string(pageSize)); } -void ListUserAnalyzersRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int ListUserAnalyzersRequest::getPageNumber() const { + return pageNumber_; +} + +void ListUserAnalyzersRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("pageNumber"), std::to_string(pageNumber)); } diff --git a/opensearch/src/model/ListUserAnalyzersResult.cc b/opensearch/src/model/ListUserAnalyzersResult.cc index 7a738122f..6b53925cf 100644 --- a/opensearch/src/model/ListUserAnalyzersResult.cc +++ b/opensearch/src/model/ListUserAnalyzersResult.cc @@ -43,44 +43,44 @@ void ListUserAnalyzersResult::parse(const std::string &payload) 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["available"].isNull()) + resultObject.available = valueresultresultItem["available"].asString() == "true"; + if(!valueresultresultItem["name"].isNull()) + resultObject.name = valueresultresultItem["name"].asString(); if(!valueresultresultItem["updated"].isNull()) resultObject.updated = std::stoi(valueresultresultItem["updated"].asString()); + if(!valueresultresultItem["id"].isNull()) + resultObject.id = valueresultresultItem["id"].asString(); + if(!valueresultresultItem["business"].isNull()) + resultObject.business = valueresultresultItem["business"].asString(); auto alldictsNode = valueresultresultItem["dicts"]["dictsItem"]; for (auto valueresultresultItemdictsdictsItem : alldictsNode) { ResultItem::DictsItem dictsObject; - if(!valueresultresultItemdictsdictsItem["id"].isNull()) - dictsObject.id = valueresultresultItemdictsdictsItem["id"].asString(); + if(!valueresultresultItemdictsdictsItem["created"].isNull()) + dictsObject.created = std::stoi(valueresultresultItemdictsdictsItem["created"].asString()); + if(!valueresultresultItemdictsdictsItem["entriesCount"].isNull()) + dictsObject.entriesCount = std::stoi(valueresultresultItemdictsdictsItem["entriesCount"].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()); + if(!valueresultresultItemdictsdictsItem["id"].isNull()) + dictsObject.id = valueresultresultItemdictsdictsItem["id"].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()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); } diff --git a/opensearch/src/model/ModifyAppGroupQuotaRequest.cc b/opensearch/src/model/ModifyAppGroupQuotaRequest.cc index 1dedfe538..1811f6e26 100644 --- a/opensearch/src/model/ModifyAppGroupQuotaRequest.cc +++ b/opensearch/src/model/ModifyAppGroupQuotaRequest.cc @@ -1,41 +1,37 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ModifyAppGroupQuotaRequest; + +ModifyAppGroupQuotaRequest::ModifyAppGroupQuotaRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/quota"}; + setMethod(HttpRequest::Method::Put); } -void ModifyAppGroupQuotaRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +ModifyAppGroupQuotaRequest::~ModifyAppGroupQuotaRequest() {} + +std::string ModifyAppGroupQuotaRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void ModifyAppGroupQuotaRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/ModifyAppGroupQuotaResult.cc b/opensearch/src/model/ModifyAppGroupQuotaResult.cc index a4b4c6656..1ff51274f 100644 --- a/opensearch/src/model/ModifyAppGroupQuotaResult.cc +++ b/opensearch/src/model/ModifyAppGroupQuotaResult.cc @@ -40,59 +40,59 @@ void ModifyAppGroupQuotaResult::parse(const std::string &payload) 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["currentVersion"].isNull()) + result_.currentVersion = resultNode["currentVersion"].asString(); + if(!resultNode["pendingSecondRankAlgoDeploymentId"].isNull()) + result_.pendingSecondRankAlgoDeploymentId = std::stoi(resultNode["pendingSecondRankAlgoDeploymentId"].asString()); + if(!resultNode["type"].isNull()) + result_.type = resultNode["type"].asString(); + if(!resultNode["chargingWay"].isNull()) + result_.chargingWay = std::stoi(resultNode["chargingWay"].asString()); if(!resultNode["lockMode"].isNull()) result_.lockMode = resultNode["lockMode"].asString(); + if(!resultNode["status"].isNull()) + result_.status = resultNode["status"].asString(); + if(!resultNode["updated"].isNull()) + result_.updated = std::stoi(resultNode["updated"].asString()); + if(!resultNode["chargeType"].isNull()) + result_.chargeType = resultNode["chargeType"].asString(); + if(!resultNode["id"].isNull()) + result_.id = resultNode["id"].asString(); + if(!resultNode["hasPendingQuotaReviewTask"].isNull()) + result_.hasPendingQuotaReviewTask = std::stoi(resultNode["hasPendingQuotaReviewTask"].asString()); + if(!resultNode["projectId"].isNull()) + result_.projectId = resultNode["projectId"].asString(); + if(!resultNode["secondRankAlgoDeploymentId"].isNull()) + result_.secondRankAlgoDeploymentId = std::stoi(resultNode["secondRankAlgoDeploymentId"].asString()); + if(!resultNode["commodityCode"].isNull()) + result_.commodityCode = resultNode["commodityCode"].asString(); + if(!resultNode["switchedTime"].isNull()) + result_.switchedTime = std::stoi(resultNode["switchedTime"].asString()); + if(!resultNode["expireOn"].isNull()) + result_.expireOn = resultNode["expireOn"].asString(); + if(!resultNode["description"].isNull()) + result_.description = resultNode["description"].asString(); + if(!resultNode["firstRankAlgoDeploymentId"].isNull()) + result_.firstRankAlgoDeploymentId = std::stoi(resultNode["firstRankAlgoDeploymentId"].asString()); + if(!resultNode["lockedByExpiration"].isNull()) + result_.lockedByExpiration = std::stoi(resultNode["lockedByExpiration"].asString()); + if(!resultNode["produced"].isNull()) + result_.produced = std::stoi(resultNode["produced"].asString()); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["processingOrderId"].isNull()) + result_.processingOrderId = resultNode["processingOrderId"].asString(); + if(!resultNode["instanceId"].isNull()) + result_.instanceId = resultNode["instanceId"].asString(); auto quotaNode = resultNode["quota"]; + if(!quotaNode["spec"].isNull()) + result_.quota.spec = quotaNode["spec"].asString(); 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(); diff --git a/opensearch/src/model/ModifyAppGroupRequest.cc b/opensearch/src/model/ModifyAppGroupRequest.cc index cff5bb8ae..cc16b93e2 100644 --- a/opensearch/src/model/ModifyAppGroupRequest.cc +++ b/opensearch/src/model/ModifyAppGroupRequest.cc @@ -1,41 +1,37 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#include + +using AlibabaCloud::OpenSearch::Model::ModifyAppGroupRequest; + +ModifyAppGroupRequest::ModifyAppGroupRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]"}; + setMethod(HttpRequest::Method::Put); } -void ModifyAppGroupRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +ModifyAppGroupRequest::~ModifyAppGroupRequest() {} + +std::string ModifyAppGroupRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void ModifyAppGroupRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/ModifyAppGroupResult.cc b/opensearch/src/model/ModifyAppGroupResult.cc index a96108264..ea093aa67 100644 --- a/opensearch/src/model/ModifyAppGroupResult.cc +++ b/opensearch/src/model/ModifyAppGroupResult.cc @@ -40,61 +40,61 @@ void ModifyAppGroupResult::parse(const std::string &payload) 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["currentVersion"].isNull()) result_.currentVersion = resultNode["currentVersion"].asString(); - if(!resultNode["switchedTime"].isNull()) - result_.switchedTime = std::stoi(resultNode["switchedTime"].asString()); + if(!resultNode["pendingSecondRankAlgoDeploymentId"].isNull()) + result_.pendingSecondRankAlgoDeploymentId = std::stoi(resultNode["pendingSecondRankAlgoDeploymentId"].asString()); + if(!resultNode["lockMode"].isNull()) + result_.lockMode = resultNode["lockMode"].asString(); + if(!resultNode["updated"].isNull()) + result_.updated = std::stoi(resultNode["updated"].asString()); + if(!resultNode["id"].isNull()) + result_.id = resultNode["id"].asString(); + if(!resultNode["chargeType"].isNull()) + result_.chargeType = resultNode["chargeType"].asString(); + if(!resultNode["hasPendingQuotaReviewTask"].isNull()) + result_.hasPendingQuotaReviewTask = std::stoi(resultNode["hasPendingQuotaReviewTask"].asString()); + if(!resultNode["secondRankAlgoDeploymentId"].isNull()) + result_.secondRankAlgoDeploymentId = std::stoi(resultNode["secondRankAlgoDeploymentId"].asString()); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["instanceId"].isNull()) + result_.instanceId = resultNode["instanceId"].asString(); + if(!resultNode["processingOrderId"].isNull()) + result_.processingOrderId = resultNode["processingOrderId"].asString(); if(!resultNode["chargingWay"].isNull()) result_.chargingWay = std::stoi(resultNode["chargingWay"].asString()); if(!resultNode["type"].isNull()) result_.type = resultNode["type"].asString(); + if(!resultNode["status"].isNull()) + result_.status = resultNode["status"].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["switchedTime"].isNull()) + result_.switchedTime = std::stoi(resultNode["switchedTime"].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["expireOn"].isNull()) + result_.expireOn = resultNode["expireOn"].asString(); + if(!resultNode["domain"].isNull()) + result_.domain = resultNode["domain"].asString(); if(!resultNode["description"].isNull()) result_.description = resultNode["description"].asString(); + if(!resultNode["firstRankAlgoDeploymentId"].isNull()) + result_.firstRankAlgoDeploymentId = std::stoi(resultNode["firstRankAlgoDeploymentId"].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(); - if(!resultNode["domain"].isNull()) - result_.domain = resultNode["domain"].asString(); auto quotaNode = resultNode["quota"]; + if(!quotaNode["spec"].isNull()) + result_.quota.spec = quotaNode["spec"].asString(); 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(); diff --git a/opensearch/src/model/ModifyFirstRankRequest.cc b/opensearch/src/model/ModifyFirstRankRequest.cc index 5bfa8b94c..bff8ff7fc 100644 --- a/opensearch/src/model/ModifyFirstRankRequest.cc +++ b/opensearch/src/model/ModifyFirstRankRequest.cc @@ -1,74 +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. - */ - -#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_; + */ + +#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); } -void ModifyFirstRankRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +ModifyFirstRankRequest::~ModifyFirstRankRequest() {} + +bool ModifyFirstRankRequest::getDryRun() const { + return dryRun_; } -int ModifyFirstRankRequest::getAppId()const -{ - return appId_; +void ModifyFirstRankRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("dryRun"), dryRun ? "true" : "false"); } -void ModifyFirstRankRequest::setAppId(int appId) -{ - appId_ = appId; - setParameter("AppId", std::to_string(appId)); +int ModifyFirstRankRequest::getAppId() const { + return appId_; } -std::string ModifyFirstRankRequest::getName()const -{ - return name_; +void ModifyFirstRankRequest::setAppId(int appId) { + appId_ = appId; + setParameter(std::string("appId"), std::to_string(appId)); } -void ModifyFirstRankRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string ModifyFirstRankRequest::getName() const { + return name_; } -std::string ModifyFirstRankRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void ModifyFirstRankRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("name"), name); } -void ModifyFirstRankRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string ModifyFirstRankRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void ModifyFirstRankRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/ModifyFirstRankResult.cc b/opensearch/src/model/ModifyFirstRankResult.cc index 6f82d2136..c0dacef4f 100644 --- a/opensearch/src/model/ModifyFirstRankResult.cc +++ b/opensearch/src/model/ModifyFirstRankResult.cc @@ -40,20 +40,20 @@ void ModifyFirstRankResult::parse(const std::string &payload) 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"; + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); 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["attribute"].isNull()) + metaItemObject.attribute = resultNodemetametaItem["attribute"].asString(); if(!resultNodemetametaItem["weight"].isNull()) metaItemObject.weight = std::stof(resultNodemetametaItem["weight"].asString()); result_.meta.push_back(metaItemObject); diff --git a/opensearch/src/model/ModifyModelRequest.cc b/opensearch/src/model/ModifyModelRequest.cc index e271530a8..bda581b80 100644 --- a/opensearch/src/model/ModifyModelRequest.cc +++ b/opensearch/src/model/ModifyModelRequest.cc @@ -1,52 +1,46 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#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); } -void ModifyModelRequest::setModelName(const std::string& modelName) -{ - modelName_ = modelName; - setParameter("ModelName", modelName); +ModifyModelRequest::~ModifyModelRequest() {} + +std::string ModifyModelRequest::getModelName() const { + return modelName_; } -std::string ModifyModelRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void ModifyModelRequest::setModelName(const std::string &modelName) { + modelName_ = modelName; + setParameter(std::string("modelName"), modelName); } -void ModifyModelRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string ModifyModelRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void ModifyModelRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/ModifyModelResult.cc b/opensearch/src/model/ModifyModelResult.cc index 99876011d..9c4d05995 100644 --- a/opensearch/src/model/ModifyModelResult.cc +++ b/opensearch/src/model/ModifyModelResult.cc @@ -39,10 +39,10 @@ void ModifyModelResult::parse(const std::string &payload) 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(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); } diff --git a/opensearch/src/model/ModifyQueryProcessorRequest.cc b/opensearch/src/model/ModifyQueryProcessorRequest.cc index 296b729bc..52812d552 100644 --- a/opensearch/src/model/ModifyQueryProcessorRequest.cc +++ b/opensearch/src/model/ModifyQueryProcessorRequest.cc @@ -1,74 +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. - */ - -#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_; + */ + +#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); } -void ModifyQueryProcessorRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +ModifyQueryProcessorRequest::~ModifyQueryProcessorRequest() {} + +bool ModifyQueryProcessorRequest::getDryRun() const { + return dryRun_; } -int ModifyQueryProcessorRequest::getAppId()const -{ - return appId_; +void ModifyQueryProcessorRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("dryRun"), dryRun ? "true" : "false"); } -void ModifyQueryProcessorRequest::setAppId(int appId) -{ - appId_ = appId; - setParameter("AppId", std::to_string(appId)); +int ModifyQueryProcessorRequest::getAppId() const { + return appId_; } -std::string ModifyQueryProcessorRequest::getName()const -{ - return name_; +void ModifyQueryProcessorRequest::setAppId(int appId) { + appId_ = appId; + setParameter(std::string("appId"), std::to_string(appId)); } -void ModifyQueryProcessorRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string ModifyQueryProcessorRequest::getName() const { + return name_; } -std::string ModifyQueryProcessorRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void ModifyQueryProcessorRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("name"), name); } -void ModifyQueryProcessorRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string ModifyQueryProcessorRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void ModifyQueryProcessorRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/ModifyQueryProcessorResult.cc b/opensearch/src/model/ModifyQueryProcessorResult.cc index cf58ca020..61b6d8e34 100644 --- a/opensearch/src/model/ModifyQueryProcessorResult.cc +++ b/opensearch/src/model/ModifyQueryProcessorResult.cc @@ -40,16 +40,16 @@ void ModifyQueryProcessorResult::parse(const std::string &payload) 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["active"].isNull()) + result_.active = resultNode["active"].asString() == "true"; if(!resultNode["updated"].isNull()) result_.updated = std::stoi(resultNode["updated"].asString()); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["domain"].isNull()) + result_.domain = resultNode["domain"].asString(); auto allIndexes = resultNode["indexes"]["indexes"]; for (auto value : allIndexes) result_.indexes.push_back(value.asString()); diff --git a/opensearch/src/model/ModifyScheduledTaskRequest.cc b/opensearch/src/model/ModifyScheduledTaskRequest.cc index dde9f323d..0eb197841 100644 --- a/opensearch/src/model/ModifyScheduledTaskRequest.cc +++ b/opensearch/src/model/ModifyScheduledTaskRequest.cc @@ -1,52 +1,46 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#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); } -void ModifyScheduledTaskRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +ModifyScheduledTaskRequest::~ModifyScheduledTaskRequest() {} + +std::string ModifyScheduledTaskRequest::getAppGroupIdentity() const { + return appGroupIdentity_; } -std::string ModifyScheduledTaskRequest::getTaskId()const -{ - return taskId_; +void ModifyScheduledTaskRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } -void ModifyScheduledTaskRequest::setTaskId(const std::string& taskId) -{ - taskId_ = taskId; - setParameter("TaskId", taskId); +std::string ModifyScheduledTaskRequest::getTaskId() const { + return taskId_; +} + +void ModifyScheduledTaskRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("taskId"), taskId); } diff --git a/opensearch/src/model/ModifyScheduledTaskResult.cc b/opensearch/src/model/ModifyScheduledTaskResult.cc index e48e1c9b1..bdb1d76ed 100644 --- a/opensearch/src/model/ModifyScheduledTaskResult.cc +++ b/opensearch/src/model/ModifyScheduledTaskResult.cc @@ -39,10 +39,10 @@ void ModifyScheduledTaskResult::parse(const std::string &payload) 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(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); } diff --git a/opensearch/src/model/ModifySecondRankRequest.cc b/opensearch/src/model/ModifySecondRankRequest.cc index 8173a95f7..c5946d1e8 100644 --- a/opensearch/src/model/ModifySecondRankRequest.cc +++ b/opensearch/src/model/ModifySecondRankRequest.cc @@ -1,74 +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. - */ - -#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_; + */ + +#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); } -void ModifySecondRankRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +ModifySecondRankRequest::~ModifySecondRankRequest() {} + +bool ModifySecondRankRequest::getDryRun() const { + return dryRun_; } -int ModifySecondRankRequest::getAppId()const -{ - return appId_; +void ModifySecondRankRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("dryRun"), dryRun ? "true" : "false"); } -void ModifySecondRankRequest::setAppId(int appId) -{ - appId_ = appId; - setParameter("AppId", std::to_string(appId)); +int ModifySecondRankRequest::getAppId() const { + return appId_; } -std::string ModifySecondRankRequest::getName()const -{ - return name_; +void ModifySecondRankRequest::setAppId(int appId) { + appId_ = appId; + setParameter(std::string("appId"), std::to_string(appId)); } -void ModifySecondRankRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string ModifySecondRankRequest::getName() const { + return name_; } -std::string ModifySecondRankRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void ModifySecondRankRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("name"), name); } -void ModifySecondRankRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string ModifySecondRankRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void ModifySecondRankRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/ModifySecondRankResult.cc b/opensearch/src/model/ModifySecondRankResult.cc index b5193a96c..286fec695 100644 --- a/opensearch/src/model/ModifySecondRankResult.cc +++ b/opensearch/src/model/ModifySecondRankResult.cc @@ -40,24 +40,24 @@ void ModifySecondRankResult::parse(const std::string &payload) 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["active"].isNull()) + result_.active = resultNode["active"].asString() == "true"; if(!resultNode["isDefault"].isNull()) result_.isDefault = resultNode["isDefault"].asString(); if(!resultNode["isSys"].isNull()) result_.isSys = resultNode["isSys"].asString(); + if(!resultNode["description"].isNull()) + result_.description = resultNode["description"].asString(); + if(!resultNode["updated"].isNull()) + result_.updated = std::stoi(resultNode["updated"].asString()); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["meta"].isNull()) + result_.meta = resultNode["meta"].asString(); + if(!resultNode["id"].isNull()) + result_.id = resultNode["id"].asString(); if(!value["requestId"].isNull()) requestId_ = value["requestId"].asString(); diff --git a/opensearch/src/model/PreviewModelRequest.cc b/opensearch/src/model/PreviewModelRequest.cc index 0d67de85b..2733bd52e 100644 --- a/opensearch/src/model/PreviewModelRequest.cc +++ b/opensearch/src/model/PreviewModelRequest.cc @@ -1,63 +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. - */ - -#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_; + */ + +#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); } -void PreviewModelRequest::setModelName(const std::string& modelName) -{ - modelName_ = modelName; - setParameter("ModelName", modelName); +PreviewModelRequest::~PreviewModelRequest() {} + +std::string PreviewModelRequest::getModelName() const { + return modelName_; } -std::string PreviewModelRequest::getQuery()const -{ - return query_; +void PreviewModelRequest::setModelName(const std::string &modelName) { + modelName_ = modelName; + setParameter(std::string("modelName"), modelName); } -void PreviewModelRequest::setQuery(const std::string& query) -{ - query_ = query; - setParameter("Query", query); +std::string PreviewModelRequest::getQuery() const { + return query_; } -std::string PreviewModelRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void PreviewModelRequest::setQuery(const std::string &query) { + query_ = query; + setParameter(std::string("query"), query); } -void PreviewModelRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string PreviewModelRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void PreviewModelRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/PreviewModelResult.cc b/opensearch/src/model/PreviewModelResult.cc index c50edc9f6..24d7b05c8 100644 --- a/opensearch/src/model/PreviewModelResult.cc +++ b/opensearch/src/model/PreviewModelResult.cc @@ -42,10 +42,10 @@ void PreviewModelResult::parse(const std::string &payload) 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()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); } diff --git a/opensearch/src/model/PushInterventionDictionaryEntriesRequest.cc b/opensearch/src/model/PushInterventionDictionaryEntriesRequest.cc index e96bf6bce..15c5a5ad2 100644 --- a/opensearch/src/model/PushInterventionDictionaryEntriesRequest.cc +++ b/opensearch/src/model/PushInterventionDictionaryEntriesRequest.cc @@ -1,41 +1,37 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#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); } -void PushInterventionDictionaryEntriesRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +PushInterventionDictionaryEntriesRequest::~PushInterventionDictionaryEntriesRequest() {} + +std::string PushInterventionDictionaryEntriesRequest::getName() const { + return name_; +} + +void PushInterventionDictionaryEntriesRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("name"), name); } diff --git a/opensearch/src/model/PushUserAnalyzerEntriesRequest.cc b/opensearch/src/model/PushUserAnalyzerEntriesRequest.cc index 44c1a151a..2e6c199c8 100644 --- a/opensearch/src/model/PushUserAnalyzerEntriesRequest.cc +++ b/opensearch/src/model/PushUserAnalyzerEntriesRequest.cc @@ -1,41 +1,37 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#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); } -void PushUserAnalyzerEntriesRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +PushUserAnalyzerEntriesRequest::~PushUserAnalyzerEntriesRequest() {} + +std::string PushUserAnalyzerEntriesRequest::getName() const { + return name_; +} + +void PushUserAnalyzerEntriesRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("name"), name); } diff --git a/opensearch/src/model/RankPreviewQueryRequest.cc b/opensearch/src/model/RankPreviewQueryRequest.cc index 390316a43..d344a6efc 100644 --- a/opensearch/src/model/RankPreviewQueryRequest.cc +++ b/opensearch/src/model/RankPreviewQueryRequest.cc @@ -1,52 +1,46 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#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); } -void RankPreviewQueryRequest::setModelName(const std::string& modelName) -{ - modelName_ = modelName; - setParameter("ModelName", modelName); +RankPreviewQueryRequest::~RankPreviewQueryRequest() {} + +std::string RankPreviewQueryRequest::getModelName() const { + return modelName_; } -std::string RankPreviewQueryRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void RankPreviewQueryRequest::setModelName(const std::string &modelName) { + modelName_ = modelName; + setParameter(std::string("modelName"), modelName); } -void RankPreviewQueryRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string RankPreviewQueryRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void RankPreviewQueryRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/ReleaseSortScriptRequest.cc b/opensearch/src/model/ReleaseSortScriptRequest.cc index 18116af04..e79548528 100644 --- a/opensearch/src/model/ReleaseSortScriptRequest.cc +++ b/opensearch/src/model/ReleaseSortScriptRequest.cc @@ -1,63 +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. - */ - -#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_; + */ + +#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); } -void ReleaseSortScriptRequest::setAppVersionId(const std::string& appVersionId) -{ - appVersionId_ = appVersionId; - setParameter("AppVersionId", appVersionId); +ReleaseSortScriptRequest::~ReleaseSortScriptRequest() {} + +std::string ReleaseSortScriptRequest::getAppVersionId() const { + return appVersionId_; } -std::string ReleaseSortScriptRequest::getScriptName()const -{ - return scriptName_; +void ReleaseSortScriptRequest::setAppVersionId(const std::string &appVersionId) { + appVersionId_ = appVersionId; + setParameter(std::string("appVersionId"), appVersionId); } -void ReleaseSortScriptRequest::setScriptName(const std::string& scriptName) -{ - scriptName_ = scriptName; - setParameter("ScriptName", scriptName); +std::string ReleaseSortScriptRequest::getScriptName() const { + return scriptName_; } -std::string ReleaseSortScriptRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void ReleaseSortScriptRequest::setScriptName(const std::string &scriptName) { + scriptName_ = scriptName; + setParameter(std::string("scriptName"), scriptName); } -void ReleaseSortScriptRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string ReleaseSortScriptRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void ReleaseSortScriptRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/RemoveAppGroupRequest.cc b/opensearch/src/model/RemoveAppGroupRequest.cc index 09e23829b..8f3a84871 100644 --- a/opensearch/src/model/RemoveAppGroupRequest.cc +++ b/opensearch/src/model/RemoveAppGroupRequest.cc @@ -1,41 +1,37 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#include + +using AlibabaCloud::OpenSearch::Model::RemoveAppGroupRequest; + +RemoveAppGroupRequest::RemoveAppGroupRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]"}; + setMethod(HttpRequest::Method::Delete); } -void RemoveAppGroupRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +RemoveAppGroupRequest::~RemoveAppGroupRequest() {} + +std::string RemoveAppGroupRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void RemoveAppGroupRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/RemoveAppRequest.cc b/opensearch/src/model/RemoveAppRequest.cc index 7940ad537..34c07f975 100644 --- a/opensearch/src/model/RemoveAppRequest.cc +++ b/opensearch/src/model/RemoveAppRequest.cc @@ -1,52 +1,46 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#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); } -void RemoveAppRequest::setAppId(int appId) -{ - appId_ = appId; - setParameter("AppId", std::to_string(appId)); +RemoveAppRequest::~RemoveAppRequest() {} + +int RemoveAppRequest::getAppId() const { + return appId_; } -std::string RemoveAppRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void RemoveAppRequest::setAppId(int appId) { + appId_ = appId; + setParameter(std::string("appId"), std::to_string(appId)); } -void RemoveAppRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string RemoveAppRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void RemoveAppRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/RemoveDataCollectionRequest.cc b/opensearch/src/model/RemoveDataCollectionRequest.cc index 970919a1a..40afbf14b 100644 --- a/opensearch/src/model/RemoveDataCollectionRequest.cc +++ b/opensearch/src/model/RemoveDataCollectionRequest.cc @@ -1,52 +1,46 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#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); } -void RemoveDataCollectionRequest::setDataCollectionIdentity(const std::string& dataCollectionIdentity) -{ - dataCollectionIdentity_ = dataCollectionIdentity; - setParameter("DataCollectionIdentity", dataCollectionIdentity); +RemoveDataCollectionRequest::~RemoveDataCollectionRequest() {} + +std::string RemoveDataCollectionRequest::getDataCollectionIdentity() const { + return dataCollectionIdentity_; } -std::string RemoveDataCollectionRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void RemoveDataCollectionRequest::setDataCollectionIdentity(const std::string &dataCollectionIdentity) { + dataCollectionIdentity_ = dataCollectionIdentity; + setParameter(std::string("dataCollectionIdentity"), dataCollectionIdentity); } -void RemoveDataCollectionRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string RemoveDataCollectionRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void RemoveDataCollectionRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/RemoveDataCollectionResult.cc b/opensearch/src/model/RemoveDataCollectionResult.cc index 9b166334c..8f4b901f3 100644 --- a/opensearch/src/model/RemoveDataCollectionResult.cc +++ b/opensearch/src/model/RemoveDataCollectionResult.cc @@ -39,10 +39,10 @@ void RemoveDataCollectionResult::parse(const std::string &payload) 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(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); } diff --git a/opensearch/src/model/RemoveFirstRankRequest.cc b/opensearch/src/model/RemoveFirstRankRequest.cc index bfa6e3c05..10444e47f 100644 --- a/opensearch/src/model/RemoveFirstRankRequest.cc +++ b/opensearch/src/model/RemoveFirstRankRequest.cc @@ -1,63 +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. - */ - -#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_; + */ + +#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); } -void RemoveFirstRankRequest::setAppId(int appId) -{ - appId_ = appId; - setParameter("AppId", std::to_string(appId)); +RemoveFirstRankRequest::~RemoveFirstRankRequest() {} + +int RemoveFirstRankRequest::getAppId() const { + return appId_; } -std::string RemoveFirstRankRequest::getName()const -{ - return name_; +void RemoveFirstRankRequest::setAppId(int appId) { + appId_ = appId; + setParameter(std::string("appId"), std::to_string(appId)); } -void RemoveFirstRankRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string RemoveFirstRankRequest::getName() const { + return name_; } -std::string RemoveFirstRankRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void RemoveFirstRankRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("name"), name); } -void RemoveFirstRankRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string RemoveFirstRankRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void RemoveFirstRankRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/RemoveFirstRankResult.cc b/opensearch/src/model/RemoveFirstRankResult.cc index b26522f1a..ea6281197 100644 --- a/opensearch/src/model/RemoveFirstRankResult.cc +++ b/opensearch/src/model/RemoveFirstRankResult.cc @@ -40,20 +40,20 @@ void RemoveFirstRankResult::parse(const std::string &payload) 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"; + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); 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["attribute"].isNull()) + metaItemObject.attribute = resultNodemetametaItem["attribute"].asString(); if(!resultNodemetametaItem["weight"].isNull()) metaItemObject.weight = std::stof(resultNodemetametaItem["weight"].asString()); result_.meta.push_back(metaItemObject); diff --git a/opensearch/src/model/RemoveInterventionDictionaryRequest.cc b/opensearch/src/model/RemoveInterventionDictionaryRequest.cc index fac162209..de61f958a 100644 --- a/opensearch/src/model/RemoveInterventionDictionaryRequest.cc +++ b/opensearch/src/model/RemoveInterventionDictionaryRequest.cc @@ -1,41 +1,37 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#include + +using AlibabaCloud::OpenSearch::Model::RemoveInterventionDictionaryRequest; + +RemoveInterventionDictionaryRequest::RemoveInterventionDictionaryRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/intervention-dictionaries/[name]"}; + setMethod(HttpRequest::Method::Delete); } -void RemoveInterventionDictionaryRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +RemoveInterventionDictionaryRequest::~RemoveInterventionDictionaryRequest() {} + +std::string RemoveInterventionDictionaryRequest::getName() const { + return name_; +} + +void RemoveInterventionDictionaryRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("name"), name); } diff --git a/opensearch/src/model/RemoveInterventionDictionaryResult.cc b/opensearch/src/model/RemoveInterventionDictionaryResult.cc index b21a94135..4a12b07a3 100644 --- a/opensearch/src/model/RemoveInterventionDictionaryResult.cc +++ b/opensearch/src/model/RemoveInterventionDictionaryResult.cc @@ -40,16 +40,16 @@ void RemoveInterventionDictionaryResult::parse(const std::string &payload) 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["analyzer"].isNull()) + result_.analyzer = resultNode["analyzer"].asString(); if(!resultNode["updated"].isNull()) result_.updated = resultNode["updated"].asString(); + if(!resultNode["type"].isNull()) + result_.type = resultNode["type"].asString(); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); if(!value["requestId"].isNull()) requestId_ = value["requestId"].asString(); diff --git a/opensearch/src/model/RemoveQueryProcessorRequest.cc b/opensearch/src/model/RemoveQueryProcessorRequest.cc index 35146034c..2a967bac1 100644 --- a/opensearch/src/model/RemoveQueryProcessorRequest.cc +++ b/opensearch/src/model/RemoveQueryProcessorRequest.cc @@ -1,63 +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. - */ - -#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_; + */ + +#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); } -void RemoveQueryProcessorRequest::setAppId(int appId) -{ - appId_ = appId; - setParameter("AppId", std::to_string(appId)); +RemoveQueryProcessorRequest::~RemoveQueryProcessorRequest() {} + +int RemoveQueryProcessorRequest::getAppId() const { + return appId_; } -std::string RemoveQueryProcessorRequest::getName()const -{ - return name_; +void RemoveQueryProcessorRequest::setAppId(int appId) { + appId_ = appId; + setParameter(std::string("appId"), std::to_string(appId)); } -void RemoveQueryProcessorRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string RemoveQueryProcessorRequest::getName() const { + return name_; } -std::string RemoveQueryProcessorRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void RemoveQueryProcessorRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("name"), name); } -void RemoveQueryProcessorRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string RemoveQueryProcessorRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void RemoveQueryProcessorRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/RemoveQueryProcessorResult.cc b/opensearch/src/model/RemoveQueryProcessorResult.cc index 33e1c4a46..a8afee900 100644 --- a/opensearch/src/model/RemoveQueryProcessorResult.cc +++ b/opensearch/src/model/RemoveQueryProcessorResult.cc @@ -39,10 +39,10 @@ void RemoveQueryProcessorResult::parse(const std::string &payload) 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(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); } diff --git a/opensearch/src/model/RemoveScheduledTaskRequest.cc b/opensearch/src/model/RemoveScheduledTaskRequest.cc index d8cab4dbf..da6a016b3 100644 --- a/opensearch/src/model/RemoveScheduledTaskRequest.cc +++ b/opensearch/src/model/RemoveScheduledTaskRequest.cc @@ -1,52 +1,46 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#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); } -void RemoveScheduledTaskRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +RemoveScheduledTaskRequest::~RemoveScheduledTaskRequest() {} + +std::string RemoveScheduledTaskRequest::getAppGroupIdentity() const { + return appGroupIdentity_; } -std::string RemoveScheduledTaskRequest::getTaskId()const -{ - return taskId_; +void RemoveScheduledTaskRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } -void RemoveScheduledTaskRequest::setTaskId(const std::string& taskId) -{ - taskId_ = taskId; - setParameter("TaskId", taskId); +std::string RemoveScheduledTaskRequest::getTaskId() const { + return taskId_; +} + +void RemoveScheduledTaskRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("taskId"), taskId); } diff --git a/opensearch/src/model/RemoveSearchStrategyRequest.cc b/opensearch/src/model/RemoveSearchStrategyRequest.cc new file mode 100644 index 000000000..f7d8ac7ff --- /dev/null +++ b/opensearch/src/model/RemoveSearchStrategyRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::RemoveSearchStrategyRequest; + +RemoveSearchStrategyRequest::RemoveSearchStrategyRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appId]/search-strategies/[strategyName]"}; + setMethod(HttpRequest::Method::Delete); +} + +RemoveSearchStrategyRequest::~RemoveSearchStrategyRequest() {} + +std::string RemoveSearchStrategyRequest::getStrategyName() const { + return strategyName_; +} + +void RemoveSearchStrategyRequest::setStrategyName(const std::string &strategyName) { + strategyName_ = strategyName; + setParameter(std::string("strategyName"), strategyName); +} + +std::string RemoveSearchStrategyRequest::getAppId() const { + return appId_; +} + +void RemoveSearchStrategyRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("appId"), appId); +} + +std::string RemoveSearchStrategyRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void RemoveSearchStrategyRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); +} + diff --git a/opensearch/src/model/RemoveSearchStrategyResult.cc b/opensearch/src/model/RemoveSearchStrategyResult.cc new file mode 100644 index 000000000..a42925903 --- /dev/null +++ b/opensearch/src/model/RemoveSearchStrategyResult.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; + +RemoveSearchStrategyResult::RemoveSearchStrategyResult() : + ServiceResult() +{} + +RemoveSearchStrategyResult::RemoveSearchStrategyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveSearchStrategyResult::~RemoveSearchStrategyResult() +{} + +void RemoveSearchStrategyResult::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 RemoveSearchStrategyResult::getRequestId()const +{ + return requestId_; +} + diff --git a/opensearch/src/model/RemoveSecondRankRequest.cc b/opensearch/src/model/RemoveSecondRankRequest.cc index f55024a26..ab088be78 100644 --- a/opensearch/src/model/RemoveSecondRankRequest.cc +++ b/opensearch/src/model/RemoveSecondRankRequest.cc @@ -1,63 +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. - */ - -#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_; + */ + +#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); } -void RemoveSecondRankRequest::setAppId(int appId) -{ - appId_ = appId; - setParameter("AppId", std::to_string(appId)); +RemoveSecondRankRequest::~RemoveSecondRankRequest() {} + +int RemoveSecondRankRequest::getAppId() const { + return appId_; } -std::string RemoveSecondRankRequest::getName()const -{ - return name_; +void RemoveSecondRankRequest::setAppId(int appId) { + appId_ = appId; + setParameter(std::string("appId"), std::to_string(appId)); } -void RemoveSecondRankRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string RemoveSecondRankRequest::getName() const { + return name_; } -std::string RemoveSecondRankRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void RemoveSecondRankRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("name"), name); } -void RemoveSecondRankRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string RemoveSecondRankRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void RemoveSecondRankRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/RemoveSecondRankResult.cc b/opensearch/src/model/RemoveSecondRankResult.cc index 0c3fd9b34..94645b52d 100644 --- a/opensearch/src/model/RemoveSecondRankResult.cc +++ b/opensearch/src/model/RemoveSecondRankResult.cc @@ -39,10 +39,10 @@ void RemoveSecondRankResult::parse(const std::string &payload) 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(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); } diff --git a/opensearch/src/model/RemoveUserAnalyzerRequest.cc b/opensearch/src/model/RemoveUserAnalyzerRequest.cc index 6b5e25ae6..08dfbd8f1 100644 --- a/opensearch/src/model/RemoveUserAnalyzerRequest.cc +++ b/opensearch/src/model/RemoveUserAnalyzerRequest.cc @@ -1,41 +1,37 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#include + +using AlibabaCloud::OpenSearch::Model::RemoveUserAnalyzerRequest; + +RemoveUserAnalyzerRequest::RemoveUserAnalyzerRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/user-analyzers/[name]"}; + setMethod(HttpRequest::Method::Delete); } -void RemoveUserAnalyzerRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +RemoveUserAnalyzerRequest::~RemoveUserAnalyzerRequest() {} + +std::string RemoveUserAnalyzerRequest::getName() const { + return name_; +} + +void RemoveUserAnalyzerRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("name"), name); } diff --git a/opensearch/src/model/RemoveUserAnalyzerResult.cc b/opensearch/src/model/RemoveUserAnalyzerResult.cc index af97ccdbb..09a00932d 100644 --- a/opensearch/src/model/RemoveUserAnalyzerResult.cc +++ b/opensearch/src/model/RemoveUserAnalyzerResult.cc @@ -39,10 +39,10 @@ void RemoveUserAnalyzerResult::parse(const std::string &payload) 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(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); } diff --git a/opensearch/src/model/RenewAppGroupRequest.cc b/opensearch/src/model/RenewAppGroupRequest.cc index 69513a0f7..3a91ed24e 100644 --- a/opensearch/src/model/RenewAppGroupRequest.cc +++ b/opensearch/src/model/RenewAppGroupRequest.cc @@ -1,41 +1,46 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#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); } -void RenewAppGroupRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +RenewAppGroupRequest::~RenewAppGroupRequest() {} + +std::string RenewAppGroupRequest::getClientToken() const { + return clientToken_; +} + +void RenewAppGroupRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("clientToken"), clientToken); +} + +std::string RenewAppGroupRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void RenewAppGroupRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/RenewAppGroupResult.cc b/opensearch/src/model/RenewAppGroupResult.cc index cfbda1422..de5c3ba6f 100644 --- a/opensearch/src/model/RenewAppGroupResult.cc +++ b/opensearch/src/model/RenewAppGroupResult.cc @@ -41,6 +41,8 @@ void RenewAppGroupResult::parse(const std::string &payload) setRequestId(value["RequestId"].asString()); if(!value["requestId"].isNull()) requestId_ = value["requestId"].asString(); + if(!value["result"].isNull()) + result_ = value["result"].asString() == "true"; } @@ -49,3 +51,8 @@ std::string RenewAppGroupResult::getRequestId()const return requestId_; } +bool RenewAppGroupResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/ReplaceAppGroupCommodityCodeRequest.cc b/opensearch/src/model/ReplaceAppGroupCommodityCodeRequest.cc index acc5c3d12..77dc0d572 100644 --- a/opensearch/src/model/ReplaceAppGroupCommodityCodeRequest.cc +++ b/opensearch/src/model/ReplaceAppGroupCommodityCodeRequest.cc @@ -1,41 +1,37 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#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); } -void ReplaceAppGroupCommodityCodeRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +ReplaceAppGroupCommodityCodeRequest::~ReplaceAppGroupCommodityCodeRequest() {} + +std::string ReplaceAppGroupCommodityCodeRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void ReplaceAppGroupCommodityCodeRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/ReplaceAppGroupCommodityCodeResult.cc b/opensearch/src/model/ReplaceAppGroupCommodityCodeResult.cc index 5b52ef186..b26ceeaa4 100644 --- a/opensearch/src/model/ReplaceAppGroupCommodityCodeResult.cc +++ b/opensearch/src/model/ReplaceAppGroupCommodityCodeResult.cc @@ -40,59 +40,59 @@ void ReplaceAppGroupCommodityCodeResult::parse(const std::string &payload) 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["currentVersion"].isNull()) + result_.currentVersion = resultNode["currentVersion"].asString(); + if(!resultNode["pendingSecondRankAlgoDeploymentId"].isNull()) + result_.pendingSecondRankAlgoDeploymentId = std::stoi(resultNode["pendingSecondRankAlgoDeploymentId"].asString()); + if(!resultNode["type"].isNull()) + result_.type = resultNode["type"].asString(); + if(!resultNode["chargingWay"].isNull()) + result_.chargingWay = std::stoi(resultNode["chargingWay"].asString()); if(!resultNode["lockMode"].isNull()) result_.lockMode = resultNode["lockMode"].asString(); + if(!resultNode["status"].isNull()) + result_.status = resultNode["status"].asString(); + if(!resultNode["updated"].isNull()) + result_.updated = std::stoi(resultNode["updated"].asString()); + if(!resultNode["chargeType"].isNull()) + result_.chargeType = resultNode["chargeType"].asString(); + if(!resultNode["id"].isNull()) + result_.id = resultNode["id"].asString(); + if(!resultNode["hasPendingQuotaReviewTask"].isNull()) + result_.hasPendingQuotaReviewTask = std::stoi(resultNode["hasPendingQuotaReviewTask"].asString()); + if(!resultNode["projectId"].isNull()) + result_.projectId = resultNode["projectId"].asString(); + if(!resultNode["secondRankAlgoDeploymentId"].isNull()) + result_.secondRankAlgoDeploymentId = std::stoi(resultNode["secondRankAlgoDeploymentId"].asString()); + if(!resultNode["commodityCode"].isNull()) + result_.commodityCode = resultNode["commodityCode"].asString(); + if(!resultNode["switchedTime"].isNull()) + result_.switchedTime = std::stoi(resultNode["switchedTime"].asString()); + if(!resultNode["expireOn"].isNull()) + result_.expireOn = resultNode["expireOn"].asString(); + if(!resultNode["description"].isNull()) + result_.description = resultNode["description"].asString(); + if(!resultNode["firstRankAlgoDeploymentId"].isNull()) + result_.firstRankAlgoDeploymentId = std::stoi(resultNode["firstRankAlgoDeploymentId"].asString()); + if(!resultNode["lockedByExpiration"].isNull()) + result_.lockedByExpiration = std::stoi(resultNode["lockedByExpiration"].asString()); + if(!resultNode["produced"].isNull()) + result_.produced = std::stoi(resultNode["produced"].asString()); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["processingOrderId"].isNull()) + result_.processingOrderId = resultNode["processingOrderId"].asString(); + if(!resultNode["instanceId"].isNull()) + result_.instanceId = resultNode["instanceId"].asString(); auto quotaNode = resultNode["quota"]; + if(!quotaNode["spec"].isNull()) + result_.quota.spec = quotaNode["spec"].asString(); 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()); diff --git a/opensearch/src/model/SaveSortScriptFileRequest.cc b/opensearch/src/model/SaveSortScriptFileRequest.cc index 3d4afcdaf..c491898ef 100644 --- a/opensearch/src/model/SaveSortScriptFileRequest.cc +++ b/opensearch/src/model/SaveSortScriptFileRequest.cc @@ -1,74 +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. - */ - -#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_; + */ + +#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); } -void SaveSortScriptFileRequest::setAppVersionId(const std::string& appVersionId) -{ - appVersionId_ = appVersionId; - setParameter("AppVersionId", appVersionId); +SaveSortScriptFileRequest::~SaveSortScriptFileRequest() {} + +std::string SaveSortScriptFileRequest::getAppVersionId() const { + return appVersionId_; } -std::string SaveSortScriptFileRequest::getFileName()const -{ - return fileName_; +void SaveSortScriptFileRequest::setAppVersionId(const std::string &appVersionId) { + appVersionId_ = appVersionId; + setParameter(std::string("appVersionId"), appVersionId); } -void SaveSortScriptFileRequest::setFileName(const std::string& fileName) -{ - fileName_ = fileName; - setParameter("FileName", fileName); +std::string SaveSortScriptFileRequest::getFileName() const { + return fileName_; } -std::string SaveSortScriptFileRequest::getScriptName()const -{ - return scriptName_; +void SaveSortScriptFileRequest::setFileName(const std::string &fileName) { + fileName_ = fileName; + setParameter(std::string("fileName"), fileName); } -void SaveSortScriptFileRequest::setScriptName(const std::string& scriptName) -{ - scriptName_ = scriptName; - setParameter("ScriptName", scriptName); +std::string SaveSortScriptFileRequest::getScriptName() const { + return scriptName_; } -std::string SaveSortScriptFileRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void SaveSortScriptFileRequest::setScriptName(const std::string &scriptName) { + scriptName_ = scriptName; + setParameter(std::string("scriptName"), scriptName); } -void SaveSortScriptFileRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string SaveSortScriptFileRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void SaveSortScriptFileRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/StartSlowQueryAnalyzerRequest.cc b/opensearch/src/model/StartSlowQueryAnalyzerRequest.cc index 079a523b0..5ee3995ff 100644 --- a/opensearch/src/model/StartSlowQueryAnalyzerRequest.cc +++ b/opensearch/src/model/StartSlowQueryAnalyzerRequest.cc @@ -1,41 +1,37 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#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); } -void StartSlowQueryAnalyzerRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +StartSlowQueryAnalyzerRequest::~StartSlowQueryAnalyzerRequest() {} + +std::string StartSlowQueryAnalyzerRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void StartSlowQueryAnalyzerRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/StartSlowQueryAnalyzerResult.cc b/opensearch/src/model/StartSlowQueryAnalyzerResult.cc index 4ff9e4718..6c722e9f5 100644 --- a/opensearch/src/model/StartSlowQueryAnalyzerResult.cc +++ b/opensearch/src/model/StartSlowQueryAnalyzerResult.cc @@ -39,10 +39,10 @@ void StartSlowQueryAnalyzerResult::parse(const std::string &payload) 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(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); } diff --git a/opensearch/src/model/TagResourcesRequest.cc b/opensearch/src/model/TagResourcesRequest.cc new file mode 100644 index 000000000..bd58bfc6f --- /dev/null +++ b/opensearch/src/model/TagResourcesRequest.cc @@ -0,0 +1,37 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::TagResourcesRequest; + +TagResourcesRequest::TagResourcesRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/resource-tags"}; + setMethod(HttpRequest::Method::Post); +} + +TagResourcesRequest::~TagResourcesRequest() {} + +std::string TagResourcesRequest::getBody() const { + return body_; +} + +void TagResourcesRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/opensearch/src/model/TagResourcesResult.cc b/opensearch/src/model/TagResourcesResult.cc new file mode 100644 index 000000000..9dc0014ae --- /dev/null +++ b/opensearch/src/model/TagResourcesResult.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; + +TagResourcesResult::TagResourcesResult() : + ServiceResult() +{} + +TagResourcesResult::TagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TagResourcesResult::~TagResourcesResult() +{} + +void TagResourcesResult::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 TagResourcesResult::getRequestId()const +{ + return requestId_; +} + diff --git a/opensearch/src/model/TrainModelRequest.cc b/opensearch/src/model/TrainModelRequest.cc index ca8f30298..650a48dba 100644 --- a/opensearch/src/model/TrainModelRequest.cc +++ b/opensearch/src/model/TrainModelRequest.cc @@ -1,52 +1,46 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#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); } -void TrainModelRequest::setModelName(const std::string& modelName) -{ - modelName_ = modelName; - setParameter("ModelName", modelName); +TrainModelRequest::~TrainModelRequest() {} + +std::string TrainModelRequest::getModelName() const { + return modelName_; } -std::string TrainModelRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void TrainModelRequest::setModelName(const std::string &modelName) { + modelName_ = modelName; + setParameter(std::string("modelName"), modelName); } -void TrainModelRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string TrainModelRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void TrainModelRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/TrainModelResult.cc b/opensearch/src/model/TrainModelResult.cc index 67944b574..539740996 100644 --- a/opensearch/src/model/TrainModelResult.cc +++ b/opensearch/src/model/TrainModelResult.cc @@ -39,10 +39,10 @@ void TrainModelResult::parse(const std::string &payload) 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(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); } diff --git a/opensearch/src/model/UnbindESUserAnalyzerRequest.cc b/opensearch/src/model/UnbindESUserAnalyzerRequest.cc new file mode 100644 index 000000000..c8b80ebb1 --- /dev/null +++ b/opensearch/src/model/UnbindESUserAnalyzerRequest.cc @@ -0,0 +1,46 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::UnbindESUserAnalyzerRequest; + +UnbindESUserAnalyzerRequest::UnbindESUserAnalyzerRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/es/[esInstanceId]/actions/unbind-analyzer"}; + setMethod(HttpRequest::Method::Post); +} + +UnbindESUserAnalyzerRequest::~UnbindESUserAnalyzerRequest() {} + +std::string UnbindESUserAnalyzerRequest::getEsInstanceId() const { + return esInstanceId_; +} + +void UnbindESUserAnalyzerRequest::setEsInstanceId(const std::string &esInstanceId) { + esInstanceId_ = esInstanceId; + setParameter(std::string("esInstanceId"), esInstanceId); +} + +std::string UnbindESUserAnalyzerRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void UnbindESUserAnalyzerRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); +} + diff --git a/opensearch/src/model/UnbindESUserAnalyzerResult.cc b/opensearch/src/model/UnbindESUserAnalyzerResult.cc new file mode 100644 index 000000000..793689b7e --- /dev/null +++ b/opensearch/src/model/UnbindESUserAnalyzerResult.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; + +UnbindESUserAnalyzerResult::UnbindESUserAnalyzerResult() : + ServiceResult() +{} + +UnbindESUserAnalyzerResult::UnbindESUserAnalyzerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnbindESUserAnalyzerResult::~UnbindESUserAnalyzerResult() +{} + +void UnbindESUserAnalyzerResult::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(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string UnbindESUserAnalyzerResult::getRequestId()const +{ + return requestId_; +} + +std::string UnbindESUserAnalyzerResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/UnbindEsInstanceRequest.cc b/opensearch/src/model/UnbindEsInstanceRequest.cc new file mode 100644 index 000000000..e2a4c7fc8 --- /dev/null +++ b/opensearch/src/model/UnbindEsInstanceRequest.cc @@ -0,0 +1,37 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::UnbindEsInstanceRequest; + +UnbindEsInstanceRequest::UnbindEsInstanceRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/actions/unbind-es-instance"}; + setMethod(HttpRequest::Method::Post); +} + +UnbindEsInstanceRequest::~UnbindEsInstanceRequest() {} + +std::string UnbindEsInstanceRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void UnbindEsInstanceRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); +} + diff --git a/opensearch/src/model/UnbindEsInstanceResult.cc b/opensearch/src/model/UnbindEsInstanceResult.cc new file mode 100644 index 000000000..e4e39adf1 --- /dev/null +++ b/opensearch/src/model/UnbindEsInstanceResult.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; + +UnbindEsInstanceResult::UnbindEsInstanceResult() : + ServiceResult() +{} + +UnbindEsInstanceResult::UnbindEsInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnbindEsInstanceResult::~UnbindEsInstanceResult() +{} + +void UnbindEsInstanceResult::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(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string UnbindEsInstanceResult::getRequestId()const +{ + return requestId_; +} + +std::string UnbindEsInstanceResult::getResult()const +{ + return result_; +} + diff --git a/opensearch/src/model/UntagResourcesRequest.cc b/opensearch/src/model/UntagResourcesRequest.cc new file mode 100644 index 000000000..abfeb1719 --- /dev/null +++ b/opensearch/src/model/UntagResourcesRequest.cc @@ -0,0 +1,46 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::UntagResourcesRequest; + +UntagResourcesRequest::UntagResourcesRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/resource-tags"}; + setMethod(HttpRequest::Method::Delete); +} + +UntagResourcesRequest::~UntagResourcesRequest() {} + +bool UntagResourcesRequest::getAll() const { + return all_; +} + +void UntagResourcesRequest::setAll(bool all) { + all_ = all; + setParameter(std::string("all"), all ? "true" : "false"); +} + +std::string UntagResourcesRequest::getResourceType() const { + return resourceType_; +} + +void UntagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("resourceType"), resourceType); +} + diff --git a/opensearch/src/model/UntagResourcesResult.cc b/opensearch/src/model/UntagResourcesResult.cc new file mode 100644 index 000000000..fdc82e4db --- /dev/null +++ b/opensearch/src/model/UntagResourcesResult.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; + +UntagResourcesResult::UntagResourcesResult() : + ServiceResult() +{} + +UntagResourcesResult::UntagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UntagResourcesResult::~UntagResourcesResult() +{} + +void UntagResourcesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["tequestId"].isNull()) + tequestId_ = value["tequestId"].asString(); + +} + +std::string UntagResourcesResult::getTequestId()const +{ + return tequestId_; +} + diff --git a/opensearch/src/model/UpdateABTestExperimentRequest.cc b/opensearch/src/model/UpdateABTestExperimentRequest.cc index 25ee93892..189573083 100644 --- a/opensearch/src/model/UpdateABTestExperimentRequest.cc +++ b/opensearch/src/model/UpdateABTestExperimentRequest.cc @@ -1,74 +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. - */ - -#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_; + */ + +#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); } -void UpdateABTestExperimentRequest::setGroupId(int groupId) -{ - groupId_ = groupId; - setParameter("GroupId", std::to_string(groupId)); +UpdateABTestExperimentRequest::~UpdateABTestExperimentRequest() {} + +int UpdateABTestExperimentRequest::getGroupId() const { + return groupId_; } -int UpdateABTestExperimentRequest::getSceneId()const -{ - return sceneId_; +void UpdateABTestExperimentRequest::setGroupId(int groupId) { + groupId_ = groupId; + setParameter(std::string("groupId"), std::to_string(groupId)); } -void UpdateABTestExperimentRequest::setSceneId(int sceneId) -{ - sceneId_ = sceneId; - setParameter("SceneId", std::to_string(sceneId)); +int UpdateABTestExperimentRequest::getSceneId() const { + return sceneId_; } -int UpdateABTestExperimentRequest::getExperimentId()const -{ - return experimentId_; +void UpdateABTestExperimentRequest::setSceneId(int sceneId) { + sceneId_ = sceneId; + setParameter(std::string("sceneId"), std::to_string(sceneId)); } -void UpdateABTestExperimentRequest::setExperimentId(int experimentId) -{ - experimentId_ = experimentId; - setParameter("ExperimentId", std::to_string(experimentId)); +int UpdateABTestExperimentRequest::getExperimentId() const { + return experimentId_; } -std::string UpdateABTestExperimentRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void UpdateABTestExperimentRequest::setExperimentId(int experimentId) { + experimentId_ = experimentId; + setParameter(std::string("experimentId"), std::to_string(experimentId)); } -void UpdateABTestExperimentRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string UpdateABTestExperimentRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void UpdateABTestExperimentRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/UpdateABTestExperimentResult.cc b/opensearch/src/model/UpdateABTestExperimentResult.cc index 85b04564c..601d1e1fb 100644 --- a/opensearch/src/model/UpdateABTestExperimentResult.cc +++ b/opensearch/src/model/UpdateABTestExperimentResult.cc @@ -40,20 +40,20 @@ void UpdateABTestExperimentResult::parse(const std::string &payload) 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["params"].isNull()) + result_.params = resultNode["params"].asString(); if(!resultNode["traffic"].isNull()) result_.traffic = std::stoi(resultNode["traffic"].asString()); + if(!resultNode["online"].isNull()) + result_.online = resultNode["online"].asString() == "true"; + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["updated"].isNull()) + result_.updated = std::stoi(resultNode["updated"].asString()); + if(!resultNode["id"].isNull()) + result_.id = resultNode["id"].asString(); if(!value["requestId"].isNull()) requestId_ = value["requestId"].asString(); diff --git a/opensearch/src/model/UpdateABTestFixedFlowDividersRequest.cc b/opensearch/src/model/UpdateABTestFixedFlowDividersRequest.cc index 6e3193b29..43d02cc5f 100644 --- a/opensearch/src/model/UpdateABTestFixedFlowDividersRequest.cc +++ b/opensearch/src/model/UpdateABTestFixedFlowDividersRequest.cc @@ -1,74 +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. - */ - -#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_; + */ + +#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); } -void UpdateABTestFixedFlowDividersRequest::setGroupId(int groupId) -{ - groupId_ = groupId; - setParameter("GroupId", std::to_string(groupId)); +UpdateABTestFixedFlowDividersRequest::~UpdateABTestFixedFlowDividersRequest() {} + +int UpdateABTestFixedFlowDividersRequest::getGroupId() const { + return groupId_; } -int UpdateABTestFixedFlowDividersRequest::getSceneId()const -{ - return sceneId_; +void UpdateABTestFixedFlowDividersRequest::setGroupId(int groupId) { + groupId_ = groupId; + setParameter(std::string("groupId"), std::to_string(groupId)); } -void UpdateABTestFixedFlowDividersRequest::setSceneId(int sceneId) -{ - sceneId_ = sceneId; - setParameter("SceneId", std::to_string(sceneId)); +int UpdateABTestFixedFlowDividersRequest::getSceneId() const { + return sceneId_; } -int UpdateABTestFixedFlowDividersRequest::getExperimentId()const -{ - return experimentId_; +void UpdateABTestFixedFlowDividersRequest::setSceneId(int sceneId) { + sceneId_ = sceneId; + setParameter(std::string("sceneId"), std::to_string(sceneId)); } -void UpdateABTestFixedFlowDividersRequest::setExperimentId(int experimentId) -{ - experimentId_ = experimentId; - setParameter("ExperimentId", std::to_string(experimentId)); +int UpdateABTestFixedFlowDividersRequest::getExperimentId() const { + return experimentId_; } -std::string UpdateABTestFixedFlowDividersRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void UpdateABTestFixedFlowDividersRequest::setExperimentId(int experimentId) { + experimentId_ = experimentId; + setParameter(std::string("experimentId"), std::to_string(experimentId)); } -void UpdateABTestFixedFlowDividersRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string UpdateABTestFixedFlowDividersRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void UpdateABTestFixedFlowDividersRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/UpdateABTestGroupRequest.cc b/opensearch/src/model/UpdateABTestGroupRequest.cc index f22675267..43fa637f8 100644 --- a/opensearch/src/model/UpdateABTestGroupRequest.cc +++ b/opensearch/src/model/UpdateABTestGroupRequest.cc @@ -1,63 +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. - */ - -#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_; + */ + +#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); } -void UpdateABTestGroupRequest::setGroupId(int groupId) -{ - groupId_ = groupId; - setParameter("GroupId", std::to_string(groupId)); +UpdateABTestGroupRequest::~UpdateABTestGroupRequest() {} + +int UpdateABTestGroupRequest::getGroupId() const { + return groupId_; } -int UpdateABTestGroupRequest::getSceneId()const -{ - return sceneId_; +void UpdateABTestGroupRequest::setGroupId(int groupId) { + groupId_ = groupId; + setParameter(std::string("groupId"), std::to_string(groupId)); } -void UpdateABTestGroupRequest::setSceneId(int sceneId) -{ - sceneId_ = sceneId; - setParameter("SceneId", std::to_string(sceneId)); +int UpdateABTestGroupRequest::getSceneId() const { + return sceneId_; } -std::string UpdateABTestGroupRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void UpdateABTestGroupRequest::setSceneId(int sceneId) { + sceneId_ = sceneId; + setParameter(std::string("sceneId"), std::to_string(sceneId)); } -void UpdateABTestGroupRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string UpdateABTestGroupRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void UpdateABTestGroupRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/UpdateABTestGroupResult.cc b/opensearch/src/model/UpdateABTestGroupResult.cc index 41d2b3645..2d7065ae4 100644 --- a/opensearch/src/model/UpdateABTestGroupResult.cc +++ b/opensearch/src/model/UpdateABTestGroupResult.cc @@ -40,16 +40,16 @@ void UpdateABTestGroupResult::parse(const std::string &payload) 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["status"].isNull()) + result_.status = std::stoi(resultNode["status"].asString()); if(!resultNode["updated"].isNull()) result_.updated = std::stoi(resultNode["updated"].asString()); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["id"].isNull()) + result_.id = resultNode["id"].asString(); if(!value["requestId"].isNull()) requestId_ = value["requestId"].asString(); diff --git a/opensearch/src/model/UpdateABTestSceneRequest.cc b/opensearch/src/model/UpdateABTestSceneRequest.cc index 0146ff467..4379e1495 100644 --- a/opensearch/src/model/UpdateABTestSceneRequest.cc +++ b/opensearch/src/model/UpdateABTestSceneRequest.cc @@ -1,52 +1,46 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#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); } -void UpdateABTestSceneRequest::setSceneId(int sceneId) -{ - sceneId_ = sceneId; - setParameter("SceneId", std::to_string(sceneId)); +UpdateABTestSceneRequest::~UpdateABTestSceneRequest() {} + +int UpdateABTestSceneRequest::getSceneId() const { + return sceneId_; } -std::string UpdateABTestSceneRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void UpdateABTestSceneRequest::setSceneId(int sceneId) { + sceneId_ = sceneId; + setParameter(std::string("sceneId"), std::to_string(sceneId)); } -void UpdateABTestSceneRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string UpdateABTestSceneRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void UpdateABTestSceneRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/UpdateABTestSceneResult.cc b/opensearch/src/model/UpdateABTestSceneResult.cc index 9f2b7c5be..a48028443 100644 --- a/opensearch/src/model/UpdateABTestSceneResult.cc +++ b/opensearch/src/model/UpdateABTestSceneResult.cc @@ -40,20 +40,20 @@ void UpdateABTestSceneResult::parse(const std::string &payload) 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["params"].isNull()) + result_.params = resultNode["params"].asString(); if(!resultNode["traffic"].isNull()) result_.traffic = std::stoi(resultNode["traffic"].asString()); + if(!resultNode["online"].isNull()) + result_.online = resultNode["online"].asString() == "true"; + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["updated"].isNull()) + result_.updated = std::stoi(resultNode["updated"].asString()); + if(!resultNode["id"].isNull()) + result_.id = resultNode["id"].asString(); if(!value["requestId"].isNull()) requestId_ = value["requestId"].asString(); diff --git a/opensearch/src/model/UpdateFetchFieldsRequest.cc b/opensearch/src/model/UpdateFetchFieldsRequest.cc index 5783213a1..a3760180d 100644 --- a/opensearch/src/model/UpdateFetchFieldsRequest.cc +++ b/opensearch/src/model/UpdateFetchFieldsRequest.cc @@ -1,63 +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. - */ - -#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_; + */ + +#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); } -void UpdateFetchFieldsRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +UpdateFetchFieldsRequest::~UpdateFetchFieldsRequest() {} + +bool UpdateFetchFieldsRequest::getDryRun() const { + return dryRun_; } -int UpdateFetchFieldsRequest::getAppId()const -{ - return appId_; +void UpdateFetchFieldsRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("dryRun"), dryRun ? "true" : "false"); } -void UpdateFetchFieldsRequest::setAppId(int appId) -{ - appId_ = appId; - setParameter("AppId", std::to_string(appId)); +int UpdateFetchFieldsRequest::getAppId() const { + return appId_; } -std::string UpdateFetchFieldsRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void UpdateFetchFieldsRequest::setAppId(int appId) { + appId_ = appId; + setParameter(std::string("appId"), std::to_string(appId)); } -void UpdateFetchFieldsRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string UpdateFetchFieldsRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void UpdateFetchFieldsRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/UpdateFetchFieldsResult.cc b/opensearch/src/model/UpdateFetchFieldsResult.cc index 8373029a1..e97e9883c 100644 --- a/opensearch/src/model/UpdateFetchFieldsResult.cc +++ b/opensearch/src/model/UpdateFetchFieldsResult.cc @@ -39,10 +39,10 @@ void UpdateFetchFieldsResult::parse(const std::string &payload) 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"; + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); } diff --git a/opensearch/src/model/UpdateFunctionDefaultInstanceRequest.cc b/opensearch/src/model/UpdateFunctionDefaultInstanceRequest.cc new file mode 100644 index 000000000..cec886a0a --- /dev/null +++ b/opensearch/src/model/UpdateFunctionDefaultInstanceRequest.cc @@ -0,0 +1,46 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::UpdateFunctionDefaultInstanceRequest; + +UpdateFunctionDefaultInstanceRequest::UpdateFunctionDefaultInstanceRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/functions/[functionName]/default-instance"}; + setMethod(HttpRequest::Method::Put); +} + +UpdateFunctionDefaultInstanceRequest::~UpdateFunctionDefaultInstanceRequest() {} + +std::string UpdateFunctionDefaultInstanceRequest::getFunctionName() const { + return functionName_; +} + +void UpdateFunctionDefaultInstanceRequest::setFunctionName(const std::string &functionName) { + functionName_ = functionName; + setParameter(std::string("functionName"), functionName); +} + +std::string UpdateFunctionDefaultInstanceRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void UpdateFunctionDefaultInstanceRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); +} + diff --git a/opensearch/src/model/UpdateFunctionDefaultInstanceResult.cc b/opensearch/src/model/UpdateFunctionDefaultInstanceResult.cc new file mode 100644 index 000000000..8677a56c5 --- /dev/null +++ b/opensearch/src/model/UpdateFunctionDefaultInstanceResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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; + +UpdateFunctionDefaultInstanceResult::UpdateFunctionDefaultInstanceResult() : + ServiceResult() +{} + +UpdateFunctionDefaultInstanceResult::UpdateFunctionDefaultInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateFunctionDefaultInstanceResult::~UpdateFunctionDefaultInstanceResult() +{} + +void UpdateFunctionDefaultInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["HttpCode"].isNull()) + httpCode_ = std::stol(value["HttpCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Latency"].isNull()) + latency_ = std::stol(value["Latency"].asString()); + +} + +std::string UpdateFunctionDefaultInstanceResult::getStatus()const +{ + return status_; +} + +long UpdateFunctionDefaultInstanceResult::getHttpCode()const +{ + return httpCode_; +} + +std::string UpdateFunctionDefaultInstanceResult::getMessage()const +{ + return message_; +} + +std::string UpdateFunctionDefaultInstanceResult::getCode()const +{ + return code_; +} + +long UpdateFunctionDefaultInstanceResult::getLatency()const +{ + return latency_; +} + diff --git a/opensearch/src/model/UpdateFunctionInstanceRequest.cc b/opensearch/src/model/UpdateFunctionInstanceRequest.cc new file mode 100644 index 000000000..fd8453422 --- /dev/null +++ b/opensearch/src/model/UpdateFunctionInstanceRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::UpdateFunctionInstanceRequest; + +UpdateFunctionInstanceRequest::UpdateFunctionInstanceRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/functions/[functionName]/instances/[instanceName]"}; + setMethod(HttpRequest::Method::Put); +} + +UpdateFunctionInstanceRequest::~UpdateFunctionInstanceRequest() {} + +std::string UpdateFunctionInstanceRequest::getInstanceName() const { + return instanceName_; +} + +void UpdateFunctionInstanceRequest::setInstanceName(const std::string &instanceName) { + instanceName_ = instanceName; + setParameter(std::string("instanceName"), instanceName); +} + +std::string UpdateFunctionInstanceRequest::getFunctionName() const { + return functionName_; +} + +void UpdateFunctionInstanceRequest::setFunctionName(const std::string &functionName) { + functionName_ = functionName; + setParameter(std::string("functionName"), functionName); +} + +std::string UpdateFunctionInstanceRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void UpdateFunctionInstanceRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); +} + diff --git a/opensearch/src/model/UpdateFunctionInstanceResult.cc b/opensearch/src/model/UpdateFunctionInstanceResult.cc new file mode 100644 index 000000000..6a8292e08 --- /dev/null +++ b/opensearch/src/model/UpdateFunctionInstanceResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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; + +UpdateFunctionInstanceResult::UpdateFunctionInstanceResult() : + ServiceResult() +{} + +UpdateFunctionInstanceResult::UpdateFunctionInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateFunctionInstanceResult::~UpdateFunctionInstanceResult() +{} + +void UpdateFunctionInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["HttpCode"].isNull()) + httpCode_ = std::stol(value["HttpCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Latency"].isNull()) + latency_ = std::stol(value["Latency"].asString()); + +} + +std::string UpdateFunctionInstanceResult::getStatus()const +{ + return status_; +} + +long UpdateFunctionInstanceResult::getHttpCode()const +{ + return httpCode_; +} + +std::string UpdateFunctionInstanceResult::getMessage()const +{ + return message_; +} + +std::string UpdateFunctionInstanceResult::getCode()const +{ + return code_; +} + +long UpdateFunctionInstanceResult::getLatency()const +{ + return latency_; +} + diff --git a/opensearch/src/model/UpdateSearchStrategyRequest.cc b/opensearch/src/model/UpdateSearchStrategyRequest.cc new file mode 100644 index 000000000..a9c35ec2e --- /dev/null +++ b/opensearch/src/model/UpdateSearchStrategyRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::OpenSearch::Model::UpdateSearchStrategyRequest; + +UpdateSearchStrategyRequest::UpdateSearchStrategyRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appId]/search-strategies/[strategyName]"}; + setMethod(HttpRequest::Method::Put); +} + +UpdateSearchStrategyRequest::~UpdateSearchStrategyRequest() {} + +std::string UpdateSearchStrategyRequest::getStrategyName() const { + return strategyName_; +} + +void UpdateSearchStrategyRequest::setStrategyName(const std::string &strategyName) { + strategyName_ = strategyName; + setParameter(std::string("strategyName"), strategyName); +} + +std::string UpdateSearchStrategyRequest::getAppId() const { + return appId_; +} + +void UpdateSearchStrategyRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("appId"), appId); +} + +std::string UpdateSearchStrategyRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void UpdateSearchStrategyRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); +} + diff --git a/opensearch/src/model/UpdateSearchStrategyResult.cc b/opensearch/src/model/UpdateSearchStrategyResult.cc new file mode 100644 index 000000000..d662c5e05 --- /dev/null +++ b/opensearch/src/model/UpdateSearchStrategyResult.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; + +UpdateSearchStrategyResult::UpdateSearchStrategyResult() : + ServiceResult() +{} + +UpdateSearchStrategyResult::UpdateSearchStrategyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateSearchStrategyResult::~UpdateSearchStrategyResult() +{} + +void UpdateSearchStrategyResult::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 UpdateSearchStrategyResult::getRequestId()const +{ + return requestId_; +} + diff --git a/opensearch/src/model/UpdateSortScriptRequest.cc b/opensearch/src/model/UpdateSortScriptRequest.cc index e6678ede6..5361db385 100644 --- a/opensearch/src/model/UpdateSortScriptRequest.cc +++ b/opensearch/src/model/UpdateSortScriptRequest.cc @@ -1,63 +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. - */ - -#include - -using AlibabaCloud::OpenSearch::Model::UpdateSortScriptRequest; - -UpdateSortScriptRequest::UpdateSortScriptRequest() : - RoaServiceRequest("opensearch", "2017-12-25") -{ - setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appVersionId]/sort-scripts/[scriptName]"); - setMethod(HttpRequest::Method::Put); -} - -UpdateSortScriptRequest::~UpdateSortScriptRequest() -{} - -std::string UpdateSortScriptRequest::getAppVersionId()const -{ - return appVersionId_; + */ + +#include + +using AlibabaCloud::OpenSearch::Model::UpdateSortScriptRequest; + +UpdateSortScriptRequest::UpdateSortScriptRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appVersionId]/sort-scripts/[scriptName]"}; + setMethod(HttpRequest::Method::Put); } -void UpdateSortScriptRequest::setAppVersionId(const std::string& appVersionId) -{ - appVersionId_ = appVersionId; - setParameter("AppVersionId", appVersionId); +UpdateSortScriptRequest::~UpdateSortScriptRequest() {} + +std::string UpdateSortScriptRequest::getAppVersionId() const { + return appVersionId_; } -std::string UpdateSortScriptRequest::getScriptName()const -{ - return scriptName_; +void UpdateSortScriptRequest::setAppVersionId(const std::string &appVersionId) { + appVersionId_ = appVersionId; + setParameter(std::string("appVersionId"), appVersionId); } -void UpdateSortScriptRequest::setScriptName(const std::string& scriptName) -{ - scriptName_ = scriptName; - setParameter("ScriptName", scriptName); +std::string UpdateSortScriptRequest::getScriptName() const { + return scriptName_; } -std::string UpdateSortScriptRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void UpdateSortScriptRequest::setScriptName(const std::string &scriptName) { + scriptName_ = scriptName; + setParameter(std::string("scriptName"), scriptName); } -void UpdateSortScriptRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string UpdateSortScriptRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void UpdateSortScriptRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/UpdateSummariesRequest.cc b/opensearch/src/model/UpdateSummariesRequest.cc index 5f2ce0b12..42bf07aad 100644 --- a/opensearch/src/model/UpdateSummariesRequest.cc +++ b/opensearch/src/model/UpdateSummariesRequest.cc @@ -1,63 +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. - */ - -#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_; + */ + +#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); } -void UpdateSummariesRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +UpdateSummariesRequest::~UpdateSummariesRequest() {} + +bool UpdateSummariesRequest::getDryRun() const { + return dryRun_; } -int UpdateSummariesRequest::getAppId()const -{ - return appId_; +void UpdateSummariesRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("dryRun"), dryRun ? "true" : "false"); } -void UpdateSummariesRequest::setAppId(int appId) -{ - appId_ = appId; - setParameter("AppId", std::to_string(appId)); +int UpdateSummariesRequest::getAppId() const { + return appId_; } -std::string UpdateSummariesRequest::getAppGroupIdentity()const -{ - return appGroupIdentity_; +void UpdateSummariesRequest::setAppId(int appId) { + appId_ = appId; + setParameter(std::string("appId"), std::to_string(appId)); } -void UpdateSummariesRequest::setAppGroupIdentity(const std::string& appGroupIdentity) -{ - appGroupIdentity_ = appGroupIdentity; - setParameter("AppGroupIdentity", appGroupIdentity); +std::string UpdateSummariesRequest::getAppGroupIdentity() const { + return appGroupIdentity_; +} + +void UpdateSummariesRequest::setAppGroupIdentity(const std::string &appGroupIdentity) { + appGroupIdentity_ = appGroupIdentity; + setParameter(std::string("appGroupIdentity"), appGroupIdentity); } diff --git a/opensearch/src/model/UpdateSummariesResult.cc b/opensearch/src/model/UpdateSummariesResult.cc index ca437559e..d9b7e91c3 100644 --- a/opensearch/src/model/UpdateSummariesResult.cc +++ b/opensearch/src/model/UpdateSummariesResult.cc @@ -39,10 +39,10 @@ void UpdateSummariesResult::parse(const std::string &payload) 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"; + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); } diff --git a/opensearch/src/model/ValidateDataSourcesRequest.cc b/opensearch/src/model/ValidateDataSourcesRequest.cc new file mode 100644 index 000000000..3a01bad17 --- /dev/null +++ b/opensearch/src/model/ValidateDataSourcesRequest.cc @@ -0,0 +1,28 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::ValidateDataSourcesRequest; + +ValidateDataSourcesRequest::ValidateDataSourcesRequest() + : RoaServiceRequest("opensearch", "2017-12-25") { + setResourcePath("/v4/openapi/assist/data-sources/validations"}; + setMethod(HttpRequest::Method::Post); +} + +ValidateDataSourcesRequest::~ValidateDataSourcesRequest() {} + diff --git a/opensearch/src/model/ValidateDataSourcesResult.cc b/opensearch/src/model/ValidateDataSourcesResult.cc new file mode 100644 index 000000000..8239fcbf6 --- /dev/null +++ b/opensearch/src/model/ValidateDataSourcesResult.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; + +ValidateDataSourcesResult::ValidateDataSourcesResult() : + ServiceResult() +{} + +ValidateDataSourcesResult::ValidateDataSourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ValidateDataSourcesResult::~ValidateDataSourcesResult() +{} + +void ValidateDataSourcesResult::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["code"].isNull()) + resultObject.code = valueresultresultItem["code"].asString(); + if(!valueresultresultItem["message"].isNull()) + resultObject.message = valueresultresultItem["message"].asString(); + auto dataSourceNode = value["dataSource"]; + if(!dataSourceNode["tableName"].isNull()) + resultObject.dataSource.tableName = dataSourceNode["tableName"].asString(); + if(!dataSourceNode["type"].isNull()) + resultObject.dataSource.type = dataSourceNode["type"].asString(); + if(!dataSourceNode["parameters"].isNull()) + resultObject.dataSource.parameters = dataSourceNode["parameters"].asString(); + result_.push_back(resultObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::vector ValidateDataSourcesResult::getresult()const +{ + return result_; +} + +std::string ValidateDataSourcesResult::getRequestId()const +{ + return requestId_; +} +