From 1a401aa70a5909eaf3f034e23f293e1f9205dac6 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Fri, 3 Jul 2020 16:53:23 +0800 Subject: [PATCH] Generated 2018-10-12 for Airec. --- CHANGELOG | 3 + VERSION | 2 +- airec/CMakeLists.txt | 342 +++ .../include/alibabacloud/airec/AirecClient.h | 566 ++++ .../include/alibabacloud/airec/AirecExport.h | 32 + .../airec/model/AttachDatasetRequest.h | 51 + .../airec/model/AttachDatasetResult.h | 63 + .../airec/model/CreateDiversifyRequest.h | 48 + .../airec/model/CreateDiversifyResult.h | 67 + .../airec/model/CreateInstanceRequest.h | 45 + .../airec/model/CreateInstanceResult.h | 59 + .../airec/model/CreateMixRequest.h | 48 + .../airec/model/CreateMixResult.h | 71 + .../airec/model/CreateRuleRequest.h | 48 + .../airec/model/CreateRuleResult.h | 58 + .../airec/model/CreateSceneRequest.h | 51 + .../airec/model/CreateSceneResult.h | 58 + .../airec/model/DeleteDataSetRequest.h | 51 + .../airec/model/DeleteDataSetResult.h | 63 + .../airec/model/DeleteDiversifyRequest.h | 51 + .../airec/model/DeleteDiversifyResult.h | 67 + .../airec/model/DeleteMixRequest.h | 51 + .../airec/model/DeleteMixResult.h | 71 + .../airec/model/DeleteSceneRequest.h | 51 + .../airec/model/DeleteSceneResult.h | 55 + .../model/DescribeDataSetMessageRequest.h | 51 + .../model/DescribeDataSetMessageResult.h | 62 + .../model/DescribeDataSetReportRequest.h | 51 + .../airec/model/DescribeDataSetReportResult.h | 88 + .../airec/model/DescribeDiversifyRequest.h | 51 + .../airec/model/DescribeDiversifyResult.h | 67 + .../model/DescribeExposureSettingsRequest.h | 48 + .../model/DescribeExposureSettingsResult.h | 60 + .../airec/model/DescribeInstanceRequest.h | 48 + .../airec/model/DescribeInstanceResult.h | 72 + .../airec/model/DescribeMixRequest.h | 51 + .../airec/model/DescribeMixResult.h | 71 + .../airec/model/DescribeQuotaRequest.h | 48 + .../airec/model/DescribeQuotaResult.h | 64 + .../airec/model/DescribeRegionsRequest.h | 48 + .../airec/model/DescribeRegionsResult.h | 63 + .../airec/model/DescribeRuleRequest.h | 57 + .../airec/model/DescribeRuleResult.h | 58 + .../airec/model/DescribeSceneRequest.h | 51 + .../airec/model/DescribeSceneResult.h | 58 + .../model/DescribeSceneThroughputRequest.h | 51 + .../model/DescribeSceneThroughputResult.h | 55 + .../model/DescribeSyncReportDetailRequest.h | 60 + .../model/DescribeSyncReportDetailResult.h | 70 + .../model/DescribeSyncReportOutliersRequest.h | 63 + .../model/DescribeSyncReportOutliersResult.h | 55 + .../airec/model/DescribeUserMetricsRequest.h | 57 + .../airec/model/DescribeUserMetricsResult.h | 66 + .../airec/model/DowngradeInstanceRequest.h | 48 + .../airec/model/DowngradeInstanceResult.h | 59 + .../model/ListDashboardDetailsFlowsRequest.h | 63 + .../model/ListDashboardDetailsFlowsResult.h | 62 + .../airec/model/ListDashboardDetailsRequest.h | 63 + .../airec/model/ListDashboardDetailsResult.h | 62 + .../model/ListDashboardMetricsFlowsRequest.h | 57 + .../model/ListDashboardMetricsFlowsResult.h | 56 + .../airec/model/ListDashboardMetricsRequest.h | 57 + .../airec/model/ListDashboardMetricsResult.h | 62 + .../model/ListDashboardParametersRequest.h | 48 + .../model/ListDashboardParametersResult.h | 60 + .../airec/model/ListDashboardRequest.h | 66 + .../airec/model/ListDashboardResult.h | 75 + .../airec/model/ListDashboardUidRequest.h | 48 + .../airec/model/ListDashboardUidResult.h | 60 + .../airec/model/ListDataSetRequest.h | 48 + .../airec/model/ListDataSetResult.h | 63 + .../airec/model/ListDataSourceRequest.h | 48 + .../airec/model/ListDataSourceResult.h | 73 + .../airec/model/ListDiversifyRequest.h | 48 + .../airec/model/ListDiversifyResult.h | 67 + .../airec/model/ListInstanceRequest.h | 51 + .../airec/model/ListInstanceResult.h | 72 + .../airec/model/ListInstanceTaskRequest.h | 48 + .../airec/model/ListInstanceTaskResult.h | 69 + .../alibabacloud/airec/model/ListMixRequest.h | 48 + .../alibabacloud/airec/model/ListMixResult.h | 71 + .../airec/model/ListRuleConditionsRequest.h | 48 + .../airec/model/ListRuleConditionsResult.h | 57 + .../airec/model/ListRuleTasksRequest.h | 51 + .../airec/model/ListRuleTasksResult.h | 56 + .../airec/model/ListRulesRequest.h | 69 + .../airec/model/ListRulesResult.h | 58 + .../airec/model/ListSceneItemsRequest.h | 69 + .../airec/model/ListSceneItemsResult.h | 79 + .../airec/model/ListScenesRequest.h | 48 + .../airec/model/ListScenesResult.h | 58 + .../airec/model/ListUmengAppkeysRequest.h | 45 + .../airec/model/ListUmengAppkeysResult.h | 61 + .../airec/model/ModifyDataSourceRequest.h | 51 + .../airec/model/ModifyDataSourceResult.h | 73 + .../airec/model/ModifyDiversifyRequest.h | 51 + .../airec/model/ModifyDiversifyResult.h | 67 + .../model/ModifyExposureSettingsRequest.h | 48 + .../model/ModifyExposureSettingsResult.h | 60 + .../airec/model/ModifyInstanceRequest.h | 48 + .../airec/model/ModifyInstanceResult.h | 72 + .../airec/model/ModifyMixRequest.h | 51 + .../airec/model/ModifyMixResult.h | 71 + .../airec/model/ModifyRuleRequest.h | 51 + .../airec/model/ModifyRuleResult.h | 59 + .../airec/model/ModifySceneRequest.h | 51 + .../airec/model/ModifySceneResult.h | 58 + .../airec/model/PublishRuleRequest.h | 57 + .../airec/model/PublishRuleResult.h | 55 + .../airec/model/PushDocumentRequest.h | 51 + .../airec/model/PushDocumentResult.h | 55 + .../airec/model/PushInterventionRequest.h | 48 + .../airec/model/PushInterventionResult.h | 55 + .../airec/model/QueryDataMessageRequest.h | 78 + .../airec/model/QueryDataMessageResult.h | 55 + .../model/QueryExceptionHistoryRequest.h | 57 + .../airec/model/QueryExceptionHistoryResult.h | 55 + .../airec/model/QueryRawDataRequest.h | 63 + .../airec/model/QueryRawDataResult.h | 55 + .../QuerySingleAggregationReportRequest.h | 48 + .../QuerySingleAggregationReportResult.h | 55 + .../airec/model/QuerySingleReportRequest.h | 51 + .../airec/model/QuerySingleReportResult.h | 55 + .../model/QuerySyncReportAggregationRequest.h | 54 + .../model/QuerySyncReportAggregationResult.h | 55 + .../airec/model/RecommendRequest.h | 69 + .../airec/model/RecommendResult.h | 65 + .../airec/model/RunInstanceRequest.h | 48 + .../airec/model/RunInstanceResult.h | 55 + .../airec/model/StopDataSetRequest.h | 51 + .../airec/model/StopDataSetResult.h | 63 + .../airec/model/UpgradeInstanceRequest.h | 48 + .../airec/model/UpgradeInstanceResult.h | 59 + .../airec/model/ValidateInstanceRequest.h | 48 + .../airec/model/ValidateInstanceResult.h | 55 + airec/src/AirecClient.cc | 2393 +++++++++++++++++ airec/src/model/AttachDatasetRequest.cc | 52 + airec/src/model/AttachDatasetResult.cc | 74 + airec/src/model/CreateDiversifyRequest.cc | 41 + airec/src/model/CreateDiversifyResult.cc | 75 + airec/src/model/CreateInstanceRequest.cc | 30 + airec/src/model/CreateInstanceResult.cc | 66 + airec/src/model/CreateMixRequest.cc | 41 + airec/src/model/CreateMixResult.cc | 81 + airec/src/model/CreateRuleRequest.cc | 41 + airec/src/model/CreateRuleResult.cc | 58 + airec/src/model/CreateSceneRequest.cc | 52 + airec/src/model/CreateSceneResult.cc | 58 + airec/src/model/DeleteDataSetRequest.cc | 52 + airec/src/model/DeleteDataSetResult.cc | 74 + airec/src/model/DeleteDiversifyRequest.cc | 52 + airec/src/model/DeleteDiversifyResult.cc | 75 + airec/src/model/DeleteMixRequest.cc | 52 + airec/src/model/DeleteMixResult.cc | 81 + airec/src/model/DeleteSceneRequest.cc | 52 + airec/src/model/DeleteSceneResult.cc | 52 + .../model/DescribeDataSetMessageRequest.cc | 52 + .../src/model/DescribeDataSetMessageResult.cc | 77 + .../src/model/DescribeDataSetReportRequest.cc | 52 + .../src/model/DescribeDataSetReportResult.cc | 115 + airec/src/model/DescribeDiversifyRequest.cc | 52 + airec/src/model/DescribeDiversifyResult.cc | 75 + .../model/DescribeExposureSettingsRequest.cc | 41 + .../model/DescribeExposureSettingsResult.cc | 68 + airec/src/model/DescribeInstanceRequest.cc | 41 + airec/src/model/DescribeInstanceResult.cc | 92 + airec/src/model/DescribeMixRequest.cc | 52 + airec/src/model/DescribeMixResult.cc | 81 + airec/src/model/DescribeQuotaRequest.cc | 41 + airec/src/model/DescribeQuotaResult.cc | 76 + airec/src/model/DescribeRegionsRequest.cc | 41 + airec/src/model/DescribeRegionsResult.cc | 79 + airec/src/model/DescribeRuleRequest.cc | 74 + airec/src/model/DescribeRuleResult.cc | 58 + airec/src/model/DescribeSceneRequest.cc | 52 + airec/src/model/DescribeSceneResult.cc | 58 + .../model/DescribeSceneThroughputRequest.cc | 52 + .../model/DescribeSceneThroughputResult.cc | 52 + .../model/DescribeSyncReportDetailRequest.cc | 85 + .../model/DescribeSyncReportDetailResult.cc | 91 + .../DescribeSyncReportOutliersRequest.cc | 96 + .../model/DescribeSyncReportOutliersResult.cc | 65 + airec/src/model/DescribeUserMetricsRequest.cc | 74 + airec/src/model/DescribeUserMetricsResult.cc | 83 + airec/src/model/DowngradeInstanceRequest.cc | 41 + airec/src/model/DowngradeInstanceResult.cc | 66 + .../model/ListDashboardDetailsFlowsRequest.cc | 96 + .../model/ListDashboardDetailsFlowsResult.cc | 64 + .../src/model/ListDashboardDetailsRequest.cc | 96 + airec/src/model/ListDashboardDetailsResult.cc | 64 + .../model/ListDashboardMetricsFlowsRequest.cc | 74 + .../model/ListDashboardMetricsFlowsResult.cc | 59 + .../src/model/ListDashboardMetricsRequest.cc | 74 + airec/src/model/ListDashboardMetricsResult.cc | 69 + .../model/ListDashboardParametersRequest.cc | 41 + .../model/ListDashboardParametersResult.cc | 70 + airec/src/model/ListDashboardRequest.cc | 107 + airec/src/model/ListDashboardResult.cc | 96 + airec/src/model/ListDashboardUidRequest.cc | 41 + airec/src/model/ListDashboardUidResult.cc | 69 + airec/src/model/ListDataSetRequest.cc | 41 + airec/src/model/ListDataSetResult.cc | 79 + airec/src/model/ListDataSourceRequest.cc | 41 + airec/src/model/ListDataSourceResult.cc | 92 + airec/src/model/ListDiversifyRequest.cc | 41 + airec/src/model/ListDiversifyResult.cc | 80 + airec/src/model/ListInstanceRequest.cc | 52 + airec/src/model/ListInstanceResult.cc | 97 + airec/src/model/ListInstanceTaskRequest.cc | 41 + airec/src/model/ListInstanceTaskResult.cc | 89 + airec/src/model/ListMixRequest.cc | 41 + airec/src/model/ListMixResult.cc | 86 + airec/src/model/ListRuleConditionsRequest.cc | 41 + airec/src/model/ListRuleConditionsResult.cc | 61 + airec/src/model/ListRuleTasksRequest.cc | 52 + airec/src/model/ListRuleTasksResult.cc | 54 + airec/src/model/ListRulesRequest.cc | 118 + airec/src/model/ListRulesResult.cc | 63 + airec/src/model/ListSceneItemsRequest.cc | 118 + airec/src/model/ListSceneItemsResult.cc | 91 + airec/src/model/ListScenesRequest.cc | 41 + airec/src/model/ListScenesResult.cc | 63 + airec/src/model/ListUmengAppkeysRequest.cc | 30 + airec/src/model/ListUmengAppkeysResult.cc | 75 + airec/src/model/ModifyDataSourceRequest.cc | 52 + airec/src/model/ModifyDataSourceResult.cc | 87 + airec/src/model/ModifyDiversifyRequest.cc | 52 + airec/src/model/ModifyDiversifyResult.cc | 75 + .../model/ModifyExposureSettingsRequest.cc | 41 + .../src/model/ModifyExposureSettingsResult.cc | 68 + airec/src/model/ModifyInstanceRequest.cc | 41 + airec/src/model/ModifyInstanceResult.cc | 92 + airec/src/model/ModifyMixRequest.cc | 52 + airec/src/model/ModifyMixResult.cc | 81 + airec/src/model/ModifyRuleRequest.cc | 52 + airec/src/model/ModifyRuleResult.cc | 60 + airec/src/model/ModifySceneRequest.cc | 52 + airec/src/model/ModifySceneResult.cc | 58 + airec/src/model/PublishRuleRequest.cc | 74 + airec/src/model/PublishRuleResult.cc | 52 + airec/src/model/PushDocumentRequest.cc | 52 + airec/src/model/PushDocumentResult.cc | 65 + airec/src/model/PushInterventionRequest.cc | 41 + airec/src/model/PushInterventionResult.cc | 65 + airec/src/model/QueryDataMessageRequest.cc | 151 ++ airec/src/model/QueryDataMessageResult.cc | 65 + .../src/model/QueryExceptionHistoryRequest.cc | 74 + .../src/model/QueryExceptionHistoryResult.cc | 65 + airec/src/model/QueryRawDataRequest.cc | 96 + airec/src/model/QueryRawDataResult.cc | 65 + .../QuerySingleAggregationReportRequest.cc | 41 + .../QuerySingleAggregationReportResult.cc | 65 + airec/src/model/QuerySingleReportRequest.cc | 52 + airec/src/model/QuerySingleReportResult.cc | 65 + .../QuerySyncReportAggregationRequest.cc | 63 + .../model/QuerySyncReportAggregationResult.cc | 65 + airec/src/model/RecommendRequest.cc | 118 + airec/src/model/RecommendResult.cc | 83 + airec/src/model/RunInstanceRequest.cc | 41 + airec/src/model/RunInstanceResult.cc | 65 + airec/src/model/StopDataSetRequest.cc | 52 + airec/src/model/StopDataSetResult.cc | 74 + airec/src/model/UpgradeInstanceRequest.cc | 41 + airec/src/model/UpgradeInstanceResult.cc | 66 + airec/src/model/ValidateInstanceRequest.cc | 41 + airec/src/model/ValidateInstanceResult.cc | 65 + 266 files changed, 19306 insertions(+), 1 deletion(-) create mode 100644 airec/CMakeLists.txt create mode 100644 airec/include/alibabacloud/airec/AirecClient.h create mode 100644 airec/include/alibabacloud/airec/AirecExport.h create mode 100644 airec/include/alibabacloud/airec/model/AttachDatasetRequest.h create mode 100644 airec/include/alibabacloud/airec/model/AttachDatasetResult.h create mode 100644 airec/include/alibabacloud/airec/model/CreateDiversifyRequest.h create mode 100644 airec/include/alibabacloud/airec/model/CreateDiversifyResult.h create mode 100644 airec/include/alibabacloud/airec/model/CreateInstanceRequest.h create mode 100644 airec/include/alibabacloud/airec/model/CreateInstanceResult.h create mode 100644 airec/include/alibabacloud/airec/model/CreateMixRequest.h create mode 100644 airec/include/alibabacloud/airec/model/CreateMixResult.h create mode 100644 airec/include/alibabacloud/airec/model/CreateRuleRequest.h create mode 100644 airec/include/alibabacloud/airec/model/CreateRuleResult.h create mode 100644 airec/include/alibabacloud/airec/model/CreateSceneRequest.h create mode 100644 airec/include/alibabacloud/airec/model/CreateSceneResult.h create mode 100644 airec/include/alibabacloud/airec/model/DeleteDataSetRequest.h create mode 100644 airec/include/alibabacloud/airec/model/DeleteDataSetResult.h create mode 100644 airec/include/alibabacloud/airec/model/DeleteDiversifyRequest.h create mode 100644 airec/include/alibabacloud/airec/model/DeleteDiversifyResult.h create mode 100644 airec/include/alibabacloud/airec/model/DeleteMixRequest.h create mode 100644 airec/include/alibabacloud/airec/model/DeleteMixResult.h create mode 100644 airec/include/alibabacloud/airec/model/DeleteSceneRequest.h create mode 100644 airec/include/alibabacloud/airec/model/DeleteSceneResult.h create mode 100644 airec/include/alibabacloud/airec/model/DescribeDataSetMessageRequest.h create mode 100644 airec/include/alibabacloud/airec/model/DescribeDataSetMessageResult.h create mode 100644 airec/include/alibabacloud/airec/model/DescribeDataSetReportRequest.h create mode 100644 airec/include/alibabacloud/airec/model/DescribeDataSetReportResult.h create mode 100644 airec/include/alibabacloud/airec/model/DescribeDiversifyRequest.h create mode 100644 airec/include/alibabacloud/airec/model/DescribeDiversifyResult.h create mode 100644 airec/include/alibabacloud/airec/model/DescribeExposureSettingsRequest.h create mode 100644 airec/include/alibabacloud/airec/model/DescribeExposureSettingsResult.h create mode 100644 airec/include/alibabacloud/airec/model/DescribeInstanceRequest.h create mode 100644 airec/include/alibabacloud/airec/model/DescribeInstanceResult.h create mode 100644 airec/include/alibabacloud/airec/model/DescribeMixRequest.h create mode 100644 airec/include/alibabacloud/airec/model/DescribeMixResult.h create mode 100644 airec/include/alibabacloud/airec/model/DescribeQuotaRequest.h create mode 100644 airec/include/alibabacloud/airec/model/DescribeQuotaResult.h create mode 100644 airec/include/alibabacloud/airec/model/DescribeRegionsRequest.h create mode 100644 airec/include/alibabacloud/airec/model/DescribeRegionsResult.h create mode 100644 airec/include/alibabacloud/airec/model/DescribeRuleRequest.h create mode 100644 airec/include/alibabacloud/airec/model/DescribeRuleResult.h create mode 100644 airec/include/alibabacloud/airec/model/DescribeSceneRequest.h create mode 100644 airec/include/alibabacloud/airec/model/DescribeSceneResult.h create mode 100644 airec/include/alibabacloud/airec/model/DescribeSceneThroughputRequest.h create mode 100644 airec/include/alibabacloud/airec/model/DescribeSceneThroughputResult.h create mode 100644 airec/include/alibabacloud/airec/model/DescribeSyncReportDetailRequest.h create mode 100644 airec/include/alibabacloud/airec/model/DescribeSyncReportDetailResult.h create mode 100644 airec/include/alibabacloud/airec/model/DescribeSyncReportOutliersRequest.h create mode 100644 airec/include/alibabacloud/airec/model/DescribeSyncReportOutliersResult.h create mode 100644 airec/include/alibabacloud/airec/model/DescribeUserMetricsRequest.h create mode 100644 airec/include/alibabacloud/airec/model/DescribeUserMetricsResult.h create mode 100644 airec/include/alibabacloud/airec/model/DowngradeInstanceRequest.h create mode 100644 airec/include/alibabacloud/airec/model/DowngradeInstanceResult.h create mode 100644 airec/include/alibabacloud/airec/model/ListDashboardDetailsFlowsRequest.h create mode 100644 airec/include/alibabacloud/airec/model/ListDashboardDetailsFlowsResult.h create mode 100644 airec/include/alibabacloud/airec/model/ListDashboardDetailsRequest.h create mode 100644 airec/include/alibabacloud/airec/model/ListDashboardDetailsResult.h create mode 100644 airec/include/alibabacloud/airec/model/ListDashboardMetricsFlowsRequest.h create mode 100644 airec/include/alibabacloud/airec/model/ListDashboardMetricsFlowsResult.h create mode 100644 airec/include/alibabacloud/airec/model/ListDashboardMetricsRequest.h create mode 100644 airec/include/alibabacloud/airec/model/ListDashboardMetricsResult.h create mode 100644 airec/include/alibabacloud/airec/model/ListDashboardParametersRequest.h create mode 100644 airec/include/alibabacloud/airec/model/ListDashboardParametersResult.h create mode 100644 airec/include/alibabacloud/airec/model/ListDashboardRequest.h create mode 100644 airec/include/alibabacloud/airec/model/ListDashboardResult.h create mode 100644 airec/include/alibabacloud/airec/model/ListDashboardUidRequest.h create mode 100644 airec/include/alibabacloud/airec/model/ListDashboardUidResult.h create mode 100644 airec/include/alibabacloud/airec/model/ListDataSetRequest.h create mode 100644 airec/include/alibabacloud/airec/model/ListDataSetResult.h create mode 100644 airec/include/alibabacloud/airec/model/ListDataSourceRequest.h create mode 100644 airec/include/alibabacloud/airec/model/ListDataSourceResult.h create mode 100644 airec/include/alibabacloud/airec/model/ListDiversifyRequest.h create mode 100644 airec/include/alibabacloud/airec/model/ListDiversifyResult.h create mode 100644 airec/include/alibabacloud/airec/model/ListInstanceRequest.h create mode 100644 airec/include/alibabacloud/airec/model/ListInstanceResult.h create mode 100644 airec/include/alibabacloud/airec/model/ListInstanceTaskRequest.h create mode 100644 airec/include/alibabacloud/airec/model/ListInstanceTaskResult.h create mode 100644 airec/include/alibabacloud/airec/model/ListMixRequest.h create mode 100644 airec/include/alibabacloud/airec/model/ListMixResult.h create mode 100644 airec/include/alibabacloud/airec/model/ListRuleConditionsRequest.h create mode 100644 airec/include/alibabacloud/airec/model/ListRuleConditionsResult.h create mode 100644 airec/include/alibabacloud/airec/model/ListRuleTasksRequest.h create mode 100644 airec/include/alibabacloud/airec/model/ListRuleTasksResult.h create mode 100644 airec/include/alibabacloud/airec/model/ListRulesRequest.h create mode 100644 airec/include/alibabacloud/airec/model/ListRulesResult.h create mode 100644 airec/include/alibabacloud/airec/model/ListSceneItemsRequest.h create mode 100644 airec/include/alibabacloud/airec/model/ListSceneItemsResult.h create mode 100644 airec/include/alibabacloud/airec/model/ListScenesRequest.h create mode 100644 airec/include/alibabacloud/airec/model/ListScenesResult.h create mode 100644 airec/include/alibabacloud/airec/model/ListUmengAppkeysRequest.h create mode 100644 airec/include/alibabacloud/airec/model/ListUmengAppkeysResult.h create mode 100644 airec/include/alibabacloud/airec/model/ModifyDataSourceRequest.h create mode 100644 airec/include/alibabacloud/airec/model/ModifyDataSourceResult.h create mode 100644 airec/include/alibabacloud/airec/model/ModifyDiversifyRequest.h create mode 100644 airec/include/alibabacloud/airec/model/ModifyDiversifyResult.h create mode 100644 airec/include/alibabacloud/airec/model/ModifyExposureSettingsRequest.h create mode 100644 airec/include/alibabacloud/airec/model/ModifyExposureSettingsResult.h create mode 100644 airec/include/alibabacloud/airec/model/ModifyInstanceRequest.h create mode 100644 airec/include/alibabacloud/airec/model/ModifyInstanceResult.h create mode 100644 airec/include/alibabacloud/airec/model/ModifyMixRequest.h create mode 100644 airec/include/alibabacloud/airec/model/ModifyMixResult.h create mode 100644 airec/include/alibabacloud/airec/model/ModifyRuleRequest.h create mode 100644 airec/include/alibabacloud/airec/model/ModifyRuleResult.h create mode 100644 airec/include/alibabacloud/airec/model/ModifySceneRequest.h create mode 100644 airec/include/alibabacloud/airec/model/ModifySceneResult.h create mode 100644 airec/include/alibabacloud/airec/model/PublishRuleRequest.h create mode 100644 airec/include/alibabacloud/airec/model/PublishRuleResult.h create mode 100644 airec/include/alibabacloud/airec/model/PushDocumentRequest.h create mode 100644 airec/include/alibabacloud/airec/model/PushDocumentResult.h create mode 100644 airec/include/alibabacloud/airec/model/PushInterventionRequest.h create mode 100644 airec/include/alibabacloud/airec/model/PushInterventionResult.h create mode 100644 airec/include/alibabacloud/airec/model/QueryDataMessageRequest.h create mode 100644 airec/include/alibabacloud/airec/model/QueryDataMessageResult.h create mode 100644 airec/include/alibabacloud/airec/model/QueryExceptionHistoryRequest.h create mode 100644 airec/include/alibabacloud/airec/model/QueryExceptionHistoryResult.h create mode 100644 airec/include/alibabacloud/airec/model/QueryRawDataRequest.h create mode 100644 airec/include/alibabacloud/airec/model/QueryRawDataResult.h create mode 100644 airec/include/alibabacloud/airec/model/QuerySingleAggregationReportRequest.h create mode 100644 airec/include/alibabacloud/airec/model/QuerySingleAggregationReportResult.h create mode 100644 airec/include/alibabacloud/airec/model/QuerySingleReportRequest.h create mode 100644 airec/include/alibabacloud/airec/model/QuerySingleReportResult.h create mode 100644 airec/include/alibabacloud/airec/model/QuerySyncReportAggregationRequest.h create mode 100644 airec/include/alibabacloud/airec/model/QuerySyncReportAggregationResult.h create mode 100644 airec/include/alibabacloud/airec/model/RecommendRequest.h create mode 100644 airec/include/alibabacloud/airec/model/RecommendResult.h create mode 100644 airec/include/alibabacloud/airec/model/RunInstanceRequest.h create mode 100644 airec/include/alibabacloud/airec/model/RunInstanceResult.h create mode 100644 airec/include/alibabacloud/airec/model/StopDataSetRequest.h create mode 100644 airec/include/alibabacloud/airec/model/StopDataSetResult.h create mode 100644 airec/include/alibabacloud/airec/model/UpgradeInstanceRequest.h create mode 100644 airec/include/alibabacloud/airec/model/UpgradeInstanceResult.h create mode 100644 airec/include/alibabacloud/airec/model/ValidateInstanceRequest.h create mode 100644 airec/include/alibabacloud/airec/model/ValidateInstanceResult.h create mode 100644 airec/src/AirecClient.cc create mode 100644 airec/src/model/AttachDatasetRequest.cc create mode 100644 airec/src/model/AttachDatasetResult.cc create mode 100644 airec/src/model/CreateDiversifyRequest.cc create mode 100644 airec/src/model/CreateDiversifyResult.cc create mode 100644 airec/src/model/CreateInstanceRequest.cc create mode 100644 airec/src/model/CreateInstanceResult.cc create mode 100644 airec/src/model/CreateMixRequest.cc create mode 100644 airec/src/model/CreateMixResult.cc create mode 100644 airec/src/model/CreateRuleRequest.cc create mode 100644 airec/src/model/CreateRuleResult.cc create mode 100644 airec/src/model/CreateSceneRequest.cc create mode 100644 airec/src/model/CreateSceneResult.cc create mode 100644 airec/src/model/DeleteDataSetRequest.cc create mode 100644 airec/src/model/DeleteDataSetResult.cc create mode 100644 airec/src/model/DeleteDiversifyRequest.cc create mode 100644 airec/src/model/DeleteDiversifyResult.cc create mode 100644 airec/src/model/DeleteMixRequest.cc create mode 100644 airec/src/model/DeleteMixResult.cc create mode 100644 airec/src/model/DeleteSceneRequest.cc create mode 100644 airec/src/model/DeleteSceneResult.cc create mode 100644 airec/src/model/DescribeDataSetMessageRequest.cc create mode 100644 airec/src/model/DescribeDataSetMessageResult.cc create mode 100644 airec/src/model/DescribeDataSetReportRequest.cc create mode 100644 airec/src/model/DescribeDataSetReportResult.cc create mode 100644 airec/src/model/DescribeDiversifyRequest.cc create mode 100644 airec/src/model/DescribeDiversifyResult.cc create mode 100644 airec/src/model/DescribeExposureSettingsRequest.cc create mode 100644 airec/src/model/DescribeExposureSettingsResult.cc create mode 100644 airec/src/model/DescribeInstanceRequest.cc create mode 100644 airec/src/model/DescribeInstanceResult.cc create mode 100644 airec/src/model/DescribeMixRequest.cc create mode 100644 airec/src/model/DescribeMixResult.cc create mode 100644 airec/src/model/DescribeQuotaRequest.cc create mode 100644 airec/src/model/DescribeQuotaResult.cc create mode 100644 airec/src/model/DescribeRegionsRequest.cc create mode 100644 airec/src/model/DescribeRegionsResult.cc create mode 100644 airec/src/model/DescribeRuleRequest.cc create mode 100644 airec/src/model/DescribeRuleResult.cc create mode 100644 airec/src/model/DescribeSceneRequest.cc create mode 100644 airec/src/model/DescribeSceneResult.cc create mode 100644 airec/src/model/DescribeSceneThroughputRequest.cc create mode 100644 airec/src/model/DescribeSceneThroughputResult.cc create mode 100644 airec/src/model/DescribeSyncReportDetailRequest.cc create mode 100644 airec/src/model/DescribeSyncReportDetailResult.cc create mode 100644 airec/src/model/DescribeSyncReportOutliersRequest.cc create mode 100644 airec/src/model/DescribeSyncReportOutliersResult.cc create mode 100644 airec/src/model/DescribeUserMetricsRequest.cc create mode 100644 airec/src/model/DescribeUserMetricsResult.cc create mode 100644 airec/src/model/DowngradeInstanceRequest.cc create mode 100644 airec/src/model/DowngradeInstanceResult.cc create mode 100644 airec/src/model/ListDashboardDetailsFlowsRequest.cc create mode 100644 airec/src/model/ListDashboardDetailsFlowsResult.cc create mode 100644 airec/src/model/ListDashboardDetailsRequest.cc create mode 100644 airec/src/model/ListDashboardDetailsResult.cc create mode 100644 airec/src/model/ListDashboardMetricsFlowsRequest.cc create mode 100644 airec/src/model/ListDashboardMetricsFlowsResult.cc create mode 100644 airec/src/model/ListDashboardMetricsRequest.cc create mode 100644 airec/src/model/ListDashboardMetricsResult.cc create mode 100644 airec/src/model/ListDashboardParametersRequest.cc create mode 100644 airec/src/model/ListDashboardParametersResult.cc create mode 100644 airec/src/model/ListDashboardRequest.cc create mode 100644 airec/src/model/ListDashboardResult.cc create mode 100644 airec/src/model/ListDashboardUidRequest.cc create mode 100644 airec/src/model/ListDashboardUidResult.cc create mode 100644 airec/src/model/ListDataSetRequest.cc create mode 100644 airec/src/model/ListDataSetResult.cc create mode 100644 airec/src/model/ListDataSourceRequest.cc create mode 100644 airec/src/model/ListDataSourceResult.cc create mode 100644 airec/src/model/ListDiversifyRequest.cc create mode 100644 airec/src/model/ListDiversifyResult.cc create mode 100644 airec/src/model/ListInstanceRequest.cc create mode 100644 airec/src/model/ListInstanceResult.cc create mode 100644 airec/src/model/ListInstanceTaskRequest.cc create mode 100644 airec/src/model/ListInstanceTaskResult.cc create mode 100644 airec/src/model/ListMixRequest.cc create mode 100644 airec/src/model/ListMixResult.cc create mode 100644 airec/src/model/ListRuleConditionsRequest.cc create mode 100644 airec/src/model/ListRuleConditionsResult.cc create mode 100644 airec/src/model/ListRuleTasksRequest.cc create mode 100644 airec/src/model/ListRuleTasksResult.cc create mode 100644 airec/src/model/ListRulesRequest.cc create mode 100644 airec/src/model/ListRulesResult.cc create mode 100644 airec/src/model/ListSceneItemsRequest.cc create mode 100644 airec/src/model/ListSceneItemsResult.cc create mode 100644 airec/src/model/ListScenesRequest.cc create mode 100644 airec/src/model/ListScenesResult.cc create mode 100644 airec/src/model/ListUmengAppkeysRequest.cc create mode 100644 airec/src/model/ListUmengAppkeysResult.cc create mode 100644 airec/src/model/ModifyDataSourceRequest.cc create mode 100644 airec/src/model/ModifyDataSourceResult.cc create mode 100644 airec/src/model/ModifyDiversifyRequest.cc create mode 100644 airec/src/model/ModifyDiversifyResult.cc create mode 100644 airec/src/model/ModifyExposureSettingsRequest.cc create mode 100644 airec/src/model/ModifyExposureSettingsResult.cc create mode 100644 airec/src/model/ModifyInstanceRequest.cc create mode 100644 airec/src/model/ModifyInstanceResult.cc create mode 100644 airec/src/model/ModifyMixRequest.cc create mode 100644 airec/src/model/ModifyMixResult.cc create mode 100644 airec/src/model/ModifyRuleRequest.cc create mode 100644 airec/src/model/ModifyRuleResult.cc create mode 100644 airec/src/model/ModifySceneRequest.cc create mode 100644 airec/src/model/ModifySceneResult.cc create mode 100644 airec/src/model/PublishRuleRequest.cc create mode 100644 airec/src/model/PublishRuleResult.cc create mode 100644 airec/src/model/PushDocumentRequest.cc create mode 100644 airec/src/model/PushDocumentResult.cc create mode 100644 airec/src/model/PushInterventionRequest.cc create mode 100644 airec/src/model/PushInterventionResult.cc create mode 100644 airec/src/model/QueryDataMessageRequest.cc create mode 100644 airec/src/model/QueryDataMessageResult.cc create mode 100644 airec/src/model/QueryExceptionHistoryRequest.cc create mode 100644 airec/src/model/QueryExceptionHistoryResult.cc create mode 100644 airec/src/model/QueryRawDataRequest.cc create mode 100644 airec/src/model/QueryRawDataResult.cc create mode 100644 airec/src/model/QuerySingleAggregationReportRequest.cc create mode 100644 airec/src/model/QuerySingleAggregationReportResult.cc create mode 100644 airec/src/model/QuerySingleReportRequest.cc create mode 100644 airec/src/model/QuerySingleReportResult.cc create mode 100644 airec/src/model/QuerySyncReportAggregationRequest.cc create mode 100644 airec/src/model/QuerySyncReportAggregationResult.cc create mode 100644 airec/src/model/RecommendRequest.cc create mode 100644 airec/src/model/RecommendResult.cc create mode 100644 airec/src/model/RunInstanceRequest.cc create mode 100644 airec/src/model/RunInstanceResult.cc create mode 100644 airec/src/model/StopDataSetRequest.cc create mode 100644 airec/src/model/StopDataSetResult.cc create mode 100644 airec/src/model/UpgradeInstanceRequest.cc create mode 100644 airec/src/model/UpgradeInstanceResult.cc create mode 100644 airec/src/model/ValidateInstanceRequest.cc create mode 100644 airec/src/model/ValidateInstanceResult.cc diff --git a/CHANGELOG b/CHANGELOG index 93e1c5999..2ec8ab6dc 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2020-07-03 Version: 1.36.500 +- Generated 2018-10-12 for `Airec`. + 2020-07-03 Version: 1.36.499 - Add ListResourceExecutionStatus API. - ListExecutions API supports filtering by resource id. diff --git a/VERSION b/VERSION index 55e5656bf..a1d38902d 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.499 \ No newline at end of file +1.36.500 \ No newline at end of file diff --git a/airec/CMakeLists.txt b/airec/CMakeLists.txt new file mode 100644 index 000000000..a42eec86f --- /dev/null +++ b/airec/CMakeLists.txt @@ -0,0 +1,342 @@ +# +# Copyright 2009-2017 Alibaba Cloud All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include) + +set(airec_public_header + include/alibabacloud/airec/AirecClient.h + include/alibabacloud/airec/AirecExport.h ) + +set(airec_public_header_model + include/alibabacloud/airec/model/AttachDatasetRequest.h + include/alibabacloud/airec/model/AttachDatasetResult.h + include/alibabacloud/airec/model/CreateDiversifyRequest.h + include/alibabacloud/airec/model/CreateDiversifyResult.h + include/alibabacloud/airec/model/CreateInstanceRequest.h + include/alibabacloud/airec/model/CreateInstanceResult.h + include/alibabacloud/airec/model/CreateMixRequest.h + include/alibabacloud/airec/model/CreateMixResult.h + include/alibabacloud/airec/model/CreateRuleRequest.h + include/alibabacloud/airec/model/CreateRuleResult.h + include/alibabacloud/airec/model/CreateSceneRequest.h + include/alibabacloud/airec/model/CreateSceneResult.h + include/alibabacloud/airec/model/DeleteDataSetRequest.h + include/alibabacloud/airec/model/DeleteDataSetResult.h + include/alibabacloud/airec/model/DeleteDiversifyRequest.h + include/alibabacloud/airec/model/DeleteDiversifyResult.h + include/alibabacloud/airec/model/DeleteMixRequest.h + include/alibabacloud/airec/model/DeleteMixResult.h + include/alibabacloud/airec/model/DeleteSceneRequest.h + include/alibabacloud/airec/model/DeleteSceneResult.h + include/alibabacloud/airec/model/DescribeDataSetMessageRequest.h + include/alibabacloud/airec/model/DescribeDataSetMessageResult.h + include/alibabacloud/airec/model/DescribeDataSetReportRequest.h + include/alibabacloud/airec/model/DescribeDataSetReportResult.h + include/alibabacloud/airec/model/DescribeDiversifyRequest.h + include/alibabacloud/airec/model/DescribeDiversifyResult.h + include/alibabacloud/airec/model/DescribeExposureSettingsRequest.h + include/alibabacloud/airec/model/DescribeExposureSettingsResult.h + include/alibabacloud/airec/model/DescribeInstanceRequest.h + include/alibabacloud/airec/model/DescribeInstanceResult.h + include/alibabacloud/airec/model/DescribeMixRequest.h + include/alibabacloud/airec/model/DescribeMixResult.h + include/alibabacloud/airec/model/DescribeQuotaRequest.h + include/alibabacloud/airec/model/DescribeQuotaResult.h + include/alibabacloud/airec/model/DescribeRegionsRequest.h + include/alibabacloud/airec/model/DescribeRegionsResult.h + include/alibabacloud/airec/model/DescribeRuleRequest.h + include/alibabacloud/airec/model/DescribeRuleResult.h + include/alibabacloud/airec/model/DescribeSceneRequest.h + include/alibabacloud/airec/model/DescribeSceneResult.h + include/alibabacloud/airec/model/DescribeSceneThroughputRequest.h + include/alibabacloud/airec/model/DescribeSceneThroughputResult.h + include/alibabacloud/airec/model/DescribeSyncReportDetailRequest.h + include/alibabacloud/airec/model/DescribeSyncReportDetailResult.h + include/alibabacloud/airec/model/DescribeSyncReportOutliersRequest.h + include/alibabacloud/airec/model/DescribeSyncReportOutliersResult.h + include/alibabacloud/airec/model/DescribeUserMetricsRequest.h + include/alibabacloud/airec/model/DescribeUserMetricsResult.h + include/alibabacloud/airec/model/DowngradeInstanceRequest.h + include/alibabacloud/airec/model/DowngradeInstanceResult.h + include/alibabacloud/airec/model/ListDashboardRequest.h + include/alibabacloud/airec/model/ListDashboardResult.h + include/alibabacloud/airec/model/ListDashboardDetailsRequest.h + include/alibabacloud/airec/model/ListDashboardDetailsResult.h + include/alibabacloud/airec/model/ListDashboardDetailsFlowsRequest.h + include/alibabacloud/airec/model/ListDashboardDetailsFlowsResult.h + include/alibabacloud/airec/model/ListDashboardMetricsRequest.h + include/alibabacloud/airec/model/ListDashboardMetricsResult.h + include/alibabacloud/airec/model/ListDashboardMetricsFlowsRequest.h + include/alibabacloud/airec/model/ListDashboardMetricsFlowsResult.h + include/alibabacloud/airec/model/ListDashboardParametersRequest.h + include/alibabacloud/airec/model/ListDashboardParametersResult.h + include/alibabacloud/airec/model/ListDashboardUidRequest.h + include/alibabacloud/airec/model/ListDashboardUidResult.h + include/alibabacloud/airec/model/ListDataSetRequest.h + include/alibabacloud/airec/model/ListDataSetResult.h + include/alibabacloud/airec/model/ListDataSourceRequest.h + include/alibabacloud/airec/model/ListDataSourceResult.h + include/alibabacloud/airec/model/ListDiversifyRequest.h + include/alibabacloud/airec/model/ListDiversifyResult.h + include/alibabacloud/airec/model/ListInstanceRequest.h + include/alibabacloud/airec/model/ListInstanceResult.h + include/alibabacloud/airec/model/ListInstanceTaskRequest.h + include/alibabacloud/airec/model/ListInstanceTaskResult.h + include/alibabacloud/airec/model/ListMixRequest.h + include/alibabacloud/airec/model/ListMixResult.h + include/alibabacloud/airec/model/ListRuleConditionsRequest.h + include/alibabacloud/airec/model/ListRuleConditionsResult.h + include/alibabacloud/airec/model/ListRuleTasksRequest.h + include/alibabacloud/airec/model/ListRuleTasksResult.h + include/alibabacloud/airec/model/ListRulesRequest.h + include/alibabacloud/airec/model/ListRulesResult.h + include/alibabacloud/airec/model/ListSceneItemsRequest.h + include/alibabacloud/airec/model/ListSceneItemsResult.h + include/alibabacloud/airec/model/ListScenesRequest.h + include/alibabacloud/airec/model/ListScenesResult.h + include/alibabacloud/airec/model/ListUmengAppkeysRequest.h + include/alibabacloud/airec/model/ListUmengAppkeysResult.h + include/alibabacloud/airec/model/ModifyDataSourceRequest.h + include/alibabacloud/airec/model/ModifyDataSourceResult.h + include/alibabacloud/airec/model/ModifyDiversifyRequest.h + include/alibabacloud/airec/model/ModifyDiversifyResult.h + include/alibabacloud/airec/model/ModifyExposureSettingsRequest.h + include/alibabacloud/airec/model/ModifyExposureSettingsResult.h + include/alibabacloud/airec/model/ModifyInstanceRequest.h + include/alibabacloud/airec/model/ModifyInstanceResult.h + include/alibabacloud/airec/model/ModifyMixRequest.h + include/alibabacloud/airec/model/ModifyMixResult.h + include/alibabacloud/airec/model/ModifyRuleRequest.h + include/alibabacloud/airec/model/ModifyRuleResult.h + include/alibabacloud/airec/model/ModifySceneRequest.h + include/alibabacloud/airec/model/ModifySceneResult.h + include/alibabacloud/airec/model/PublishRuleRequest.h + include/alibabacloud/airec/model/PublishRuleResult.h + include/alibabacloud/airec/model/PushDocumentRequest.h + include/alibabacloud/airec/model/PushDocumentResult.h + include/alibabacloud/airec/model/PushInterventionRequest.h + include/alibabacloud/airec/model/PushInterventionResult.h + include/alibabacloud/airec/model/QueryDataMessageRequest.h + include/alibabacloud/airec/model/QueryDataMessageResult.h + include/alibabacloud/airec/model/QueryExceptionHistoryRequest.h + include/alibabacloud/airec/model/QueryExceptionHistoryResult.h + include/alibabacloud/airec/model/QueryRawDataRequest.h + include/alibabacloud/airec/model/QueryRawDataResult.h + include/alibabacloud/airec/model/QuerySingleAggregationReportRequest.h + include/alibabacloud/airec/model/QuerySingleAggregationReportResult.h + include/alibabacloud/airec/model/QuerySingleReportRequest.h + include/alibabacloud/airec/model/QuerySingleReportResult.h + include/alibabacloud/airec/model/QuerySyncReportAggregationRequest.h + include/alibabacloud/airec/model/QuerySyncReportAggregationResult.h + include/alibabacloud/airec/model/RecommendRequest.h + include/alibabacloud/airec/model/RecommendResult.h + include/alibabacloud/airec/model/RunInstanceRequest.h + include/alibabacloud/airec/model/RunInstanceResult.h + include/alibabacloud/airec/model/StopDataSetRequest.h + include/alibabacloud/airec/model/StopDataSetResult.h + include/alibabacloud/airec/model/UpgradeInstanceRequest.h + include/alibabacloud/airec/model/UpgradeInstanceResult.h + include/alibabacloud/airec/model/ValidateInstanceRequest.h + include/alibabacloud/airec/model/ValidateInstanceResult.h ) + +set(airec_src + src/AirecClient.cc + src/model/AttachDatasetRequest.cc + src/model/AttachDatasetResult.cc + src/model/CreateDiversifyRequest.cc + src/model/CreateDiversifyResult.cc + src/model/CreateInstanceRequest.cc + src/model/CreateInstanceResult.cc + src/model/CreateMixRequest.cc + src/model/CreateMixResult.cc + src/model/CreateRuleRequest.cc + src/model/CreateRuleResult.cc + src/model/CreateSceneRequest.cc + src/model/CreateSceneResult.cc + src/model/DeleteDataSetRequest.cc + src/model/DeleteDataSetResult.cc + src/model/DeleteDiversifyRequest.cc + src/model/DeleteDiversifyResult.cc + src/model/DeleteMixRequest.cc + src/model/DeleteMixResult.cc + src/model/DeleteSceneRequest.cc + src/model/DeleteSceneResult.cc + src/model/DescribeDataSetMessageRequest.cc + src/model/DescribeDataSetMessageResult.cc + src/model/DescribeDataSetReportRequest.cc + src/model/DescribeDataSetReportResult.cc + src/model/DescribeDiversifyRequest.cc + src/model/DescribeDiversifyResult.cc + src/model/DescribeExposureSettingsRequest.cc + src/model/DescribeExposureSettingsResult.cc + src/model/DescribeInstanceRequest.cc + src/model/DescribeInstanceResult.cc + src/model/DescribeMixRequest.cc + src/model/DescribeMixResult.cc + src/model/DescribeQuotaRequest.cc + src/model/DescribeQuotaResult.cc + src/model/DescribeRegionsRequest.cc + src/model/DescribeRegionsResult.cc + src/model/DescribeRuleRequest.cc + src/model/DescribeRuleResult.cc + src/model/DescribeSceneRequest.cc + src/model/DescribeSceneResult.cc + src/model/DescribeSceneThroughputRequest.cc + src/model/DescribeSceneThroughputResult.cc + src/model/DescribeSyncReportDetailRequest.cc + src/model/DescribeSyncReportDetailResult.cc + src/model/DescribeSyncReportOutliersRequest.cc + src/model/DescribeSyncReportOutliersResult.cc + src/model/DescribeUserMetricsRequest.cc + src/model/DescribeUserMetricsResult.cc + src/model/DowngradeInstanceRequest.cc + src/model/DowngradeInstanceResult.cc + src/model/ListDashboardRequest.cc + src/model/ListDashboardResult.cc + src/model/ListDashboardDetailsRequest.cc + src/model/ListDashboardDetailsResult.cc + src/model/ListDashboardDetailsFlowsRequest.cc + src/model/ListDashboardDetailsFlowsResult.cc + src/model/ListDashboardMetricsRequest.cc + src/model/ListDashboardMetricsResult.cc + src/model/ListDashboardMetricsFlowsRequest.cc + src/model/ListDashboardMetricsFlowsResult.cc + src/model/ListDashboardParametersRequest.cc + src/model/ListDashboardParametersResult.cc + src/model/ListDashboardUidRequest.cc + src/model/ListDashboardUidResult.cc + src/model/ListDataSetRequest.cc + src/model/ListDataSetResult.cc + src/model/ListDataSourceRequest.cc + src/model/ListDataSourceResult.cc + src/model/ListDiversifyRequest.cc + src/model/ListDiversifyResult.cc + src/model/ListInstanceRequest.cc + src/model/ListInstanceResult.cc + src/model/ListInstanceTaskRequest.cc + src/model/ListInstanceTaskResult.cc + src/model/ListMixRequest.cc + src/model/ListMixResult.cc + src/model/ListRuleConditionsRequest.cc + src/model/ListRuleConditionsResult.cc + src/model/ListRuleTasksRequest.cc + src/model/ListRuleTasksResult.cc + src/model/ListRulesRequest.cc + src/model/ListRulesResult.cc + src/model/ListSceneItemsRequest.cc + src/model/ListSceneItemsResult.cc + src/model/ListScenesRequest.cc + src/model/ListScenesResult.cc + src/model/ListUmengAppkeysRequest.cc + src/model/ListUmengAppkeysResult.cc + src/model/ModifyDataSourceRequest.cc + src/model/ModifyDataSourceResult.cc + src/model/ModifyDiversifyRequest.cc + src/model/ModifyDiversifyResult.cc + src/model/ModifyExposureSettingsRequest.cc + src/model/ModifyExposureSettingsResult.cc + src/model/ModifyInstanceRequest.cc + src/model/ModifyInstanceResult.cc + src/model/ModifyMixRequest.cc + src/model/ModifyMixResult.cc + src/model/ModifyRuleRequest.cc + src/model/ModifyRuleResult.cc + src/model/ModifySceneRequest.cc + src/model/ModifySceneResult.cc + src/model/PublishRuleRequest.cc + src/model/PublishRuleResult.cc + src/model/PushDocumentRequest.cc + src/model/PushDocumentResult.cc + src/model/PushInterventionRequest.cc + src/model/PushInterventionResult.cc + src/model/QueryDataMessageRequest.cc + src/model/QueryDataMessageResult.cc + src/model/QueryExceptionHistoryRequest.cc + src/model/QueryExceptionHistoryResult.cc + src/model/QueryRawDataRequest.cc + src/model/QueryRawDataResult.cc + src/model/QuerySingleAggregationReportRequest.cc + src/model/QuerySingleAggregationReportResult.cc + src/model/QuerySingleReportRequest.cc + src/model/QuerySingleReportResult.cc + src/model/QuerySyncReportAggregationRequest.cc + src/model/QuerySyncReportAggregationResult.cc + src/model/RecommendRequest.cc + src/model/RecommendResult.cc + src/model/RunInstanceRequest.cc + src/model/RunInstanceResult.cc + src/model/StopDataSetRequest.cc + src/model/StopDataSetResult.cc + src/model/UpgradeInstanceRequest.cc + src/model/UpgradeInstanceResult.cc + src/model/ValidateInstanceRequest.cc + src/model/ValidateInstanceResult.cc ) + +add_library(airec ${LIB_TYPE} + ${airec_public_header} + ${airec_public_header_model} + ${airec_src}) + +set_target_properties(airec + PROPERTIES + LINKER_LANGUAGE CXX + ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin + OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}airec + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(airec + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_AIREC_LIBRARY) +endif() + +target_include_directories(airec + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(airec + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(airec + jsoncpp) + target_include_directories(airec + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(airec + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(airec + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(airec + PRIVATE /usr/include/jsoncpp) + target_link_libraries(airec + jsoncpp) +endif() + +install(FILES ${airec_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/airec) +install(FILES ${airec_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/airec/model) +install(TARGETS airec + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/AirecClient.h b/airec/include/alibabacloud/airec/AirecClient.h new file mode 100644 index 000000000..cfd81446e --- /dev/null +++ b/airec/include/alibabacloud/airec/AirecClient.h @@ -0,0 +1,566 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_AIRECCLIENT_H_ +#define ALIBABACLOUD_AIREC_AIRECCLIENT_H_ + +#include +#include +#include +#include +#include "AirecExport.h" +#include "model/AttachDatasetRequest.h" +#include "model/AttachDatasetResult.h" +#include "model/CreateDiversifyRequest.h" +#include "model/CreateDiversifyResult.h" +#include "model/CreateInstanceRequest.h" +#include "model/CreateInstanceResult.h" +#include "model/CreateMixRequest.h" +#include "model/CreateMixResult.h" +#include "model/CreateRuleRequest.h" +#include "model/CreateRuleResult.h" +#include "model/CreateSceneRequest.h" +#include "model/CreateSceneResult.h" +#include "model/DeleteDataSetRequest.h" +#include "model/DeleteDataSetResult.h" +#include "model/DeleteDiversifyRequest.h" +#include "model/DeleteDiversifyResult.h" +#include "model/DeleteMixRequest.h" +#include "model/DeleteMixResult.h" +#include "model/DeleteSceneRequest.h" +#include "model/DeleteSceneResult.h" +#include "model/DescribeDataSetMessageRequest.h" +#include "model/DescribeDataSetMessageResult.h" +#include "model/DescribeDataSetReportRequest.h" +#include "model/DescribeDataSetReportResult.h" +#include "model/DescribeDiversifyRequest.h" +#include "model/DescribeDiversifyResult.h" +#include "model/DescribeExposureSettingsRequest.h" +#include "model/DescribeExposureSettingsResult.h" +#include "model/DescribeInstanceRequest.h" +#include "model/DescribeInstanceResult.h" +#include "model/DescribeMixRequest.h" +#include "model/DescribeMixResult.h" +#include "model/DescribeQuotaRequest.h" +#include "model/DescribeQuotaResult.h" +#include "model/DescribeRegionsRequest.h" +#include "model/DescribeRegionsResult.h" +#include "model/DescribeRuleRequest.h" +#include "model/DescribeRuleResult.h" +#include "model/DescribeSceneRequest.h" +#include "model/DescribeSceneResult.h" +#include "model/DescribeSceneThroughputRequest.h" +#include "model/DescribeSceneThroughputResult.h" +#include "model/DescribeSyncReportDetailRequest.h" +#include "model/DescribeSyncReportDetailResult.h" +#include "model/DescribeSyncReportOutliersRequest.h" +#include "model/DescribeSyncReportOutliersResult.h" +#include "model/DescribeUserMetricsRequest.h" +#include "model/DescribeUserMetricsResult.h" +#include "model/DowngradeInstanceRequest.h" +#include "model/DowngradeInstanceResult.h" +#include "model/ListDashboardRequest.h" +#include "model/ListDashboardResult.h" +#include "model/ListDashboardDetailsRequest.h" +#include "model/ListDashboardDetailsResult.h" +#include "model/ListDashboardDetailsFlowsRequest.h" +#include "model/ListDashboardDetailsFlowsResult.h" +#include "model/ListDashboardMetricsRequest.h" +#include "model/ListDashboardMetricsResult.h" +#include "model/ListDashboardMetricsFlowsRequest.h" +#include "model/ListDashboardMetricsFlowsResult.h" +#include "model/ListDashboardParametersRequest.h" +#include "model/ListDashboardParametersResult.h" +#include "model/ListDashboardUidRequest.h" +#include "model/ListDashboardUidResult.h" +#include "model/ListDataSetRequest.h" +#include "model/ListDataSetResult.h" +#include "model/ListDataSourceRequest.h" +#include "model/ListDataSourceResult.h" +#include "model/ListDiversifyRequest.h" +#include "model/ListDiversifyResult.h" +#include "model/ListInstanceRequest.h" +#include "model/ListInstanceResult.h" +#include "model/ListInstanceTaskRequest.h" +#include "model/ListInstanceTaskResult.h" +#include "model/ListMixRequest.h" +#include "model/ListMixResult.h" +#include "model/ListRuleConditionsRequest.h" +#include "model/ListRuleConditionsResult.h" +#include "model/ListRuleTasksRequest.h" +#include "model/ListRuleTasksResult.h" +#include "model/ListRulesRequest.h" +#include "model/ListRulesResult.h" +#include "model/ListSceneItemsRequest.h" +#include "model/ListSceneItemsResult.h" +#include "model/ListScenesRequest.h" +#include "model/ListScenesResult.h" +#include "model/ListUmengAppkeysRequest.h" +#include "model/ListUmengAppkeysResult.h" +#include "model/ModifyDataSourceRequest.h" +#include "model/ModifyDataSourceResult.h" +#include "model/ModifyDiversifyRequest.h" +#include "model/ModifyDiversifyResult.h" +#include "model/ModifyExposureSettingsRequest.h" +#include "model/ModifyExposureSettingsResult.h" +#include "model/ModifyInstanceRequest.h" +#include "model/ModifyInstanceResult.h" +#include "model/ModifyMixRequest.h" +#include "model/ModifyMixResult.h" +#include "model/ModifyRuleRequest.h" +#include "model/ModifyRuleResult.h" +#include "model/ModifySceneRequest.h" +#include "model/ModifySceneResult.h" +#include "model/PublishRuleRequest.h" +#include "model/PublishRuleResult.h" +#include "model/PushDocumentRequest.h" +#include "model/PushDocumentResult.h" +#include "model/PushInterventionRequest.h" +#include "model/PushInterventionResult.h" +#include "model/QueryDataMessageRequest.h" +#include "model/QueryDataMessageResult.h" +#include "model/QueryExceptionHistoryRequest.h" +#include "model/QueryExceptionHistoryResult.h" +#include "model/QueryRawDataRequest.h" +#include "model/QueryRawDataResult.h" +#include "model/QuerySingleAggregationReportRequest.h" +#include "model/QuerySingleAggregationReportResult.h" +#include "model/QuerySingleReportRequest.h" +#include "model/QuerySingleReportResult.h" +#include "model/QuerySyncReportAggregationRequest.h" +#include "model/QuerySyncReportAggregationResult.h" +#include "model/RecommendRequest.h" +#include "model/RecommendResult.h" +#include "model/RunInstanceRequest.h" +#include "model/RunInstanceResult.h" +#include "model/StopDataSetRequest.h" +#include "model/StopDataSetResult.h" +#include "model/UpgradeInstanceRequest.h" +#include "model/UpgradeInstanceResult.h" +#include "model/ValidateInstanceRequest.h" +#include "model/ValidateInstanceResult.h" + + +namespace AlibabaCloud +{ + namespace Airec + { + class ALIBABACLOUD_AIREC_EXPORT AirecClient : public RoaServiceClient + { + public: + typedef Outcome AttachDatasetOutcome; + typedef std::future AttachDatasetOutcomeCallable; + typedef std::function&)> AttachDatasetAsyncHandler; + typedef Outcome CreateDiversifyOutcome; + typedef std::future CreateDiversifyOutcomeCallable; + typedef std::function&)> CreateDiversifyAsyncHandler; + typedef Outcome CreateInstanceOutcome; + typedef std::future CreateInstanceOutcomeCallable; + typedef std::function&)> CreateInstanceAsyncHandler; + typedef Outcome CreateMixOutcome; + typedef std::future CreateMixOutcomeCallable; + typedef std::function&)> CreateMixAsyncHandler; + typedef Outcome CreateRuleOutcome; + typedef std::future CreateRuleOutcomeCallable; + typedef std::function&)> CreateRuleAsyncHandler; + typedef Outcome CreateSceneOutcome; + typedef std::future CreateSceneOutcomeCallable; + typedef std::function&)> CreateSceneAsyncHandler; + typedef Outcome DeleteDataSetOutcome; + typedef std::future DeleteDataSetOutcomeCallable; + typedef std::function&)> DeleteDataSetAsyncHandler; + typedef Outcome DeleteDiversifyOutcome; + typedef std::future DeleteDiversifyOutcomeCallable; + typedef std::function&)> DeleteDiversifyAsyncHandler; + typedef Outcome DeleteMixOutcome; + typedef std::future DeleteMixOutcomeCallable; + typedef std::function&)> DeleteMixAsyncHandler; + typedef Outcome DeleteSceneOutcome; + typedef std::future DeleteSceneOutcomeCallable; + typedef std::function&)> DeleteSceneAsyncHandler; + typedef Outcome DescribeDataSetMessageOutcome; + typedef std::future DescribeDataSetMessageOutcomeCallable; + typedef std::function&)> DescribeDataSetMessageAsyncHandler; + typedef Outcome DescribeDataSetReportOutcome; + typedef std::future DescribeDataSetReportOutcomeCallable; + typedef std::function&)> DescribeDataSetReportAsyncHandler; + typedef Outcome DescribeDiversifyOutcome; + typedef std::future DescribeDiversifyOutcomeCallable; + typedef std::function&)> DescribeDiversifyAsyncHandler; + typedef Outcome DescribeExposureSettingsOutcome; + typedef std::future DescribeExposureSettingsOutcomeCallable; + typedef std::function&)> DescribeExposureSettingsAsyncHandler; + typedef Outcome DescribeInstanceOutcome; + typedef std::future DescribeInstanceOutcomeCallable; + typedef std::function&)> DescribeInstanceAsyncHandler; + typedef Outcome DescribeMixOutcome; + typedef std::future DescribeMixOutcomeCallable; + typedef std::function&)> DescribeMixAsyncHandler; + typedef Outcome DescribeQuotaOutcome; + typedef std::future DescribeQuotaOutcomeCallable; + typedef std::function&)> DescribeQuotaAsyncHandler; + typedef Outcome DescribeRegionsOutcome; + typedef std::future DescribeRegionsOutcomeCallable; + typedef std::function&)> DescribeRegionsAsyncHandler; + typedef Outcome DescribeRuleOutcome; + typedef std::future DescribeRuleOutcomeCallable; + typedef std::function&)> DescribeRuleAsyncHandler; + typedef Outcome DescribeSceneOutcome; + typedef std::future DescribeSceneOutcomeCallable; + typedef std::function&)> DescribeSceneAsyncHandler; + typedef Outcome DescribeSceneThroughputOutcome; + typedef std::future DescribeSceneThroughputOutcomeCallable; + typedef std::function&)> DescribeSceneThroughputAsyncHandler; + typedef Outcome DescribeSyncReportDetailOutcome; + typedef std::future DescribeSyncReportDetailOutcomeCallable; + typedef std::function&)> DescribeSyncReportDetailAsyncHandler; + typedef Outcome DescribeSyncReportOutliersOutcome; + typedef std::future DescribeSyncReportOutliersOutcomeCallable; + typedef std::function&)> DescribeSyncReportOutliersAsyncHandler; + typedef Outcome DescribeUserMetricsOutcome; + typedef std::future DescribeUserMetricsOutcomeCallable; + typedef std::function&)> DescribeUserMetricsAsyncHandler; + typedef Outcome DowngradeInstanceOutcome; + typedef std::future DowngradeInstanceOutcomeCallable; + typedef std::function&)> DowngradeInstanceAsyncHandler; + typedef Outcome ListDashboardOutcome; + typedef std::future ListDashboardOutcomeCallable; + typedef std::function&)> ListDashboardAsyncHandler; + typedef Outcome ListDashboardDetailsOutcome; + typedef std::future ListDashboardDetailsOutcomeCallable; + typedef std::function&)> ListDashboardDetailsAsyncHandler; + typedef Outcome ListDashboardDetailsFlowsOutcome; + typedef std::future ListDashboardDetailsFlowsOutcomeCallable; + typedef std::function&)> ListDashboardDetailsFlowsAsyncHandler; + typedef Outcome ListDashboardMetricsOutcome; + typedef std::future ListDashboardMetricsOutcomeCallable; + typedef std::function&)> ListDashboardMetricsAsyncHandler; + typedef Outcome ListDashboardMetricsFlowsOutcome; + typedef std::future ListDashboardMetricsFlowsOutcomeCallable; + typedef std::function&)> ListDashboardMetricsFlowsAsyncHandler; + typedef Outcome ListDashboardParametersOutcome; + typedef std::future ListDashboardParametersOutcomeCallable; + typedef std::function&)> ListDashboardParametersAsyncHandler; + typedef Outcome ListDashboardUidOutcome; + typedef std::future ListDashboardUidOutcomeCallable; + typedef std::function&)> ListDashboardUidAsyncHandler; + typedef Outcome ListDataSetOutcome; + typedef std::future ListDataSetOutcomeCallable; + typedef std::function&)> ListDataSetAsyncHandler; + typedef Outcome ListDataSourceOutcome; + typedef std::future ListDataSourceOutcomeCallable; + typedef std::function&)> ListDataSourceAsyncHandler; + typedef Outcome ListDiversifyOutcome; + typedef std::future ListDiversifyOutcomeCallable; + typedef std::function&)> ListDiversifyAsyncHandler; + typedef Outcome ListInstanceOutcome; + typedef std::future ListInstanceOutcomeCallable; + typedef std::function&)> ListInstanceAsyncHandler; + typedef Outcome ListInstanceTaskOutcome; + typedef std::future ListInstanceTaskOutcomeCallable; + typedef std::function&)> ListInstanceTaskAsyncHandler; + typedef Outcome ListMixOutcome; + typedef std::future ListMixOutcomeCallable; + typedef std::function&)> ListMixAsyncHandler; + typedef Outcome ListRuleConditionsOutcome; + typedef std::future ListRuleConditionsOutcomeCallable; + typedef std::function&)> ListRuleConditionsAsyncHandler; + typedef Outcome ListRuleTasksOutcome; + typedef std::future ListRuleTasksOutcomeCallable; + typedef std::function&)> ListRuleTasksAsyncHandler; + typedef Outcome ListRulesOutcome; + typedef std::future ListRulesOutcomeCallable; + typedef std::function&)> ListRulesAsyncHandler; + typedef Outcome ListSceneItemsOutcome; + typedef std::future ListSceneItemsOutcomeCallable; + typedef std::function&)> ListSceneItemsAsyncHandler; + typedef Outcome ListScenesOutcome; + typedef std::future ListScenesOutcomeCallable; + typedef std::function&)> ListScenesAsyncHandler; + typedef Outcome ListUmengAppkeysOutcome; + typedef std::future ListUmengAppkeysOutcomeCallable; + typedef std::function&)> ListUmengAppkeysAsyncHandler; + typedef Outcome ModifyDataSourceOutcome; + typedef std::future ModifyDataSourceOutcomeCallable; + typedef std::function&)> ModifyDataSourceAsyncHandler; + typedef Outcome ModifyDiversifyOutcome; + typedef std::future ModifyDiversifyOutcomeCallable; + typedef std::function&)> ModifyDiversifyAsyncHandler; + typedef Outcome ModifyExposureSettingsOutcome; + typedef std::future ModifyExposureSettingsOutcomeCallable; + typedef std::function&)> ModifyExposureSettingsAsyncHandler; + typedef Outcome ModifyInstanceOutcome; + typedef std::future ModifyInstanceOutcomeCallable; + typedef std::function&)> ModifyInstanceAsyncHandler; + typedef Outcome ModifyMixOutcome; + typedef std::future ModifyMixOutcomeCallable; + typedef std::function&)> ModifyMixAsyncHandler; + typedef Outcome ModifyRuleOutcome; + typedef std::future ModifyRuleOutcomeCallable; + typedef std::function&)> ModifyRuleAsyncHandler; + typedef Outcome ModifySceneOutcome; + typedef std::future ModifySceneOutcomeCallable; + typedef std::function&)> ModifySceneAsyncHandler; + typedef Outcome PublishRuleOutcome; + typedef std::future PublishRuleOutcomeCallable; + typedef std::function&)> PublishRuleAsyncHandler; + typedef Outcome PushDocumentOutcome; + typedef std::future PushDocumentOutcomeCallable; + typedef std::function&)> PushDocumentAsyncHandler; + typedef Outcome PushInterventionOutcome; + typedef std::future PushInterventionOutcomeCallable; + typedef std::function&)> PushInterventionAsyncHandler; + typedef Outcome QueryDataMessageOutcome; + typedef std::future QueryDataMessageOutcomeCallable; + typedef std::function&)> QueryDataMessageAsyncHandler; + typedef Outcome QueryExceptionHistoryOutcome; + typedef std::future QueryExceptionHistoryOutcomeCallable; + typedef std::function&)> QueryExceptionHistoryAsyncHandler; + typedef Outcome QueryRawDataOutcome; + typedef std::future QueryRawDataOutcomeCallable; + typedef std::function&)> QueryRawDataAsyncHandler; + typedef Outcome QuerySingleAggregationReportOutcome; + typedef std::future QuerySingleAggregationReportOutcomeCallable; + typedef std::function&)> QuerySingleAggregationReportAsyncHandler; + typedef Outcome QuerySingleReportOutcome; + typedef std::future QuerySingleReportOutcomeCallable; + typedef std::function&)> QuerySingleReportAsyncHandler; + typedef Outcome QuerySyncReportAggregationOutcome; + typedef std::future QuerySyncReportAggregationOutcomeCallable; + typedef std::function&)> QuerySyncReportAggregationAsyncHandler; + typedef Outcome RecommendOutcome; + typedef std::future RecommendOutcomeCallable; + typedef std::function&)> RecommendAsyncHandler; + typedef Outcome RunInstanceOutcome; + typedef std::future RunInstanceOutcomeCallable; + typedef std::function&)> RunInstanceAsyncHandler; + typedef Outcome StopDataSetOutcome; + typedef std::future StopDataSetOutcomeCallable; + typedef std::function&)> StopDataSetAsyncHandler; + typedef Outcome UpgradeInstanceOutcome; + typedef std::future UpgradeInstanceOutcomeCallable; + typedef std::function&)> UpgradeInstanceAsyncHandler; + typedef Outcome ValidateInstanceOutcome; + typedef std::future ValidateInstanceOutcomeCallable; + typedef std::function&)> ValidateInstanceAsyncHandler; + + AirecClient(const Credentials &credentials, const ClientConfiguration &configuration); + AirecClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + AirecClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~AirecClient(); + AttachDatasetOutcome attachDataset(const Model::AttachDatasetRequest &request)const; + void attachDatasetAsync(const Model::AttachDatasetRequest& request, const AttachDatasetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AttachDatasetOutcomeCallable attachDatasetCallable(const Model::AttachDatasetRequest& request) const; + CreateDiversifyOutcome createDiversify(const Model::CreateDiversifyRequest &request)const; + void createDiversifyAsync(const Model::CreateDiversifyRequest& request, const CreateDiversifyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDiversifyOutcomeCallable createDiversifyCallable(const Model::CreateDiversifyRequest& request) const; + CreateInstanceOutcome createInstance(const Model::CreateInstanceRequest &request)const; + void createInstanceAsync(const Model::CreateInstanceRequest& request, const CreateInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateInstanceOutcomeCallable createInstanceCallable(const Model::CreateInstanceRequest& request) const; + CreateMixOutcome createMix(const Model::CreateMixRequest &request)const; + void createMixAsync(const Model::CreateMixRequest& request, const CreateMixAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateMixOutcomeCallable createMixCallable(const Model::CreateMixRequest& request) const; + CreateRuleOutcome createRule(const Model::CreateRuleRequest &request)const; + void createRuleAsync(const Model::CreateRuleRequest& request, const CreateRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateRuleOutcomeCallable createRuleCallable(const Model::CreateRuleRequest& request) const; + CreateSceneOutcome createScene(const Model::CreateSceneRequest &request)const; + void createSceneAsync(const Model::CreateSceneRequest& request, const CreateSceneAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateSceneOutcomeCallable createSceneCallable(const Model::CreateSceneRequest& request) const; + DeleteDataSetOutcome deleteDataSet(const Model::DeleteDataSetRequest &request)const; + void deleteDataSetAsync(const Model::DeleteDataSetRequest& request, const DeleteDataSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDataSetOutcomeCallable deleteDataSetCallable(const Model::DeleteDataSetRequest& request) const; + DeleteDiversifyOutcome deleteDiversify(const Model::DeleteDiversifyRequest &request)const; + void deleteDiversifyAsync(const Model::DeleteDiversifyRequest& request, const DeleteDiversifyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDiversifyOutcomeCallable deleteDiversifyCallable(const Model::DeleteDiversifyRequest& request) const; + DeleteMixOutcome deleteMix(const Model::DeleteMixRequest &request)const; + void deleteMixAsync(const Model::DeleteMixRequest& request, const DeleteMixAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteMixOutcomeCallable deleteMixCallable(const Model::DeleteMixRequest& request) const; + DeleteSceneOutcome deleteScene(const Model::DeleteSceneRequest &request)const; + void deleteSceneAsync(const Model::DeleteSceneRequest& request, const DeleteSceneAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteSceneOutcomeCallable deleteSceneCallable(const Model::DeleteSceneRequest& request) const; + DescribeDataSetMessageOutcome describeDataSetMessage(const Model::DescribeDataSetMessageRequest &request)const; + void describeDataSetMessageAsync(const Model::DescribeDataSetMessageRequest& request, const DescribeDataSetMessageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDataSetMessageOutcomeCallable describeDataSetMessageCallable(const Model::DescribeDataSetMessageRequest& request) const; + DescribeDataSetReportOutcome describeDataSetReport(const Model::DescribeDataSetReportRequest &request)const; + void describeDataSetReportAsync(const Model::DescribeDataSetReportRequest& request, const DescribeDataSetReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDataSetReportOutcomeCallable describeDataSetReportCallable(const Model::DescribeDataSetReportRequest& request) const; + DescribeDiversifyOutcome describeDiversify(const Model::DescribeDiversifyRequest &request)const; + void describeDiversifyAsync(const Model::DescribeDiversifyRequest& request, const DescribeDiversifyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDiversifyOutcomeCallable describeDiversifyCallable(const Model::DescribeDiversifyRequest& request) const; + DescribeExposureSettingsOutcome describeExposureSettings(const Model::DescribeExposureSettingsRequest &request)const; + void describeExposureSettingsAsync(const Model::DescribeExposureSettingsRequest& request, const DescribeExposureSettingsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeExposureSettingsOutcomeCallable describeExposureSettingsCallable(const Model::DescribeExposureSettingsRequest& request) const; + DescribeInstanceOutcome describeInstance(const Model::DescribeInstanceRequest &request)const; + void describeInstanceAsync(const Model::DescribeInstanceRequest& request, const DescribeInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeInstanceOutcomeCallable describeInstanceCallable(const Model::DescribeInstanceRequest& request) const; + DescribeMixOutcome describeMix(const Model::DescribeMixRequest &request)const; + void describeMixAsync(const Model::DescribeMixRequest& request, const DescribeMixAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeMixOutcomeCallable describeMixCallable(const Model::DescribeMixRequest& request) const; + DescribeQuotaOutcome describeQuota(const Model::DescribeQuotaRequest &request)const; + void describeQuotaAsync(const Model::DescribeQuotaRequest& request, const DescribeQuotaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeQuotaOutcomeCallable describeQuotaCallable(const Model::DescribeQuotaRequest& request) const; + DescribeRegionsOutcome describeRegions(const Model::DescribeRegionsRequest &request)const; + void describeRegionsAsync(const Model::DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRegionsOutcomeCallable describeRegionsCallable(const Model::DescribeRegionsRequest& request) const; + DescribeRuleOutcome describeRule(const Model::DescribeRuleRequest &request)const; + void describeRuleAsync(const Model::DescribeRuleRequest& request, const DescribeRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRuleOutcomeCallable describeRuleCallable(const Model::DescribeRuleRequest& request) const; + DescribeSceneOutcome describeScene(const Model::DescribeSceneRequest &request)const; + void describeSceneAsync(const Model::DescribeSceneRequest& request, const DescribeSceneAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSceneOutcomeCallable describeSceneCallable(const Model::DescribeSceneRequest& request) const; + DescribeSceneThroughputOutcome describeSceneThroughput(const Model::DescribeSceneThroughputRequest &request)const; + void describeSceneThroughputAsync(const Model::DescribeSceneThroughputRequest& request, const DescribeSceneThroughputAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSceneThroughputOutcomeCallable describeSceneThroughputCallable(const Model::DescribeSceneThroughputRequest& request) const; + DescribeSyncReportDetailOutcome describeSyncReportDetail(const Model::DescribeSyncReportDetailRequest &request)const; + void describeSyncReportDetailAsync(const Model::DescribeSyncReportDetailRequest& request, const DescribeSyncReportDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSyncReportDetailOutcomeCallable describeSyncReportDetailCallable(const Model::DescribeSyncReportDetailRequest& request) const; + DescribeSyncReportOutliersOutcome describeSyncReportOutliers(const Model::DescribeSyncReportOutliersRequest &request)const; + void describeSyncReportOutliersAsync(const Model::DescribeSyncReportOutliersRequest& request, const DescribeSyncReportOutliersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSyncReportOutliersOutcomeCallable describeSyncReportOutliersCallable(const Model::DescribeSyncReportOutliersRequest& request) const; + DescribeUserMetricsOutcome describeUserMetrics(const Model::DescribeUserMetricsRequest &request)const; + void describeUserMetricsAsync(const Model::DescribeUserMetricsRequest& request, const DescribeUserMetricsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeUserMetricsOutcomeCallable describeUserMetricsCallable(const Model::DescribeUserMetricsRequest& request) const; + DowngradeInstanceOutcome downgradeInstance(const Model::DowngradeInstanceRequest &request)const; + void downgradeInstanceAsync(const Model::DowngradeInstanceRequest& request, const DowngradeInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DowngradeInstanceOutcomeCallable downgradeInstanceCallable(const Model::DowngradeInstanceRequest& request) const; + ListDashboardOutcome listDashboard(const Model::ListDashboardRequest &request)const; + void listDashboardAsync(const Model::ListDashboardRequest& request, const ListDashboardAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListDashboardOutcomeCallable listDashboardCallable(const Model::ListDashboardRequest& request) const; + ListDashboardDetailsOutcome listDashboardDetails(const Model::ListDashboardDetailsRequest &request)const; + void listDashboardDetailsAsync(const Model::ListDashboardDetailsRequest& request, const ListDashboardDetailsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListDashboardDetailsOutcomeCallable listDashboardDetailsCallable(const Model::ListDashboardDetailsRequest& request) const; + ListDashboardDetailsFlowsOutcome listDashboardDetailsFlows(const Model::ListDashboardDetailsFlowsRequest &request)const; + void listDashboardDetailsFlowsAsync(const Model::ListDashboardDetailsFlowsRequest& request, const ListDashboardDetailsFlowsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListDashboardDetailsFlowsOutcomeCallable listDashboardDetailsFlowsCallable(const Model::ListDashboardDetailsFlowsRequest& request) const; + ListDashboardMetricsOutcome listDashboardMetrics(const Model::ListDashboardMetricsRequest &request)const; + void listDashboardMetricsAsync(const Model::ListDashboardMetricsRequest& request, const ListDashboardMetricsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListDashboardMetricsOutcomeCallable listDashboardMetricsCallable(const Model::ListDashboardMetricsRequest& request) const; + ListDashboardMetricsFlowsOutcome listDashboardMetricsFlows(const Model::ListDashboardMetricsFlowsRequest &request)const; + void listDashboardMetricsFlowsAsync(const Model::ListDashboardMetricsFlowsRequest& request, const ListDashboardMetricsFlowsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListDashboardMetricsFlowsOutcomeCallable listDashboardMetricsFlowsCallable(const Model::ListDashboardMetricsFlowsRequest& request) const; + ListDashboardParametersOutcome listDashboardParameters(const Model::ListDashboardParametersRequest &request)const; + void listDashboardParametersAsync(const Model::ListDashboardParametersRequest& request, const ListDashboardParametersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListDashboardParametersOutcomeCallable listDashboardParametersCallable(const Model::ListDashboardParametersRequest& request) const; + ListDashboardUidOutcome listDashboardUid(const Model::ListDashboardUidRequest &request)const; + void listDashboardUidAsync(const Model::ListDashboardUidRequest& request, const ListDashboardUidAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListDashboardUidOutcomeCallable listDashboardUidCallable(const Model::ListDashboardUidRequest& request) const; + ListDataSetOutcome listDataSet(const Model::ListDataSetRequest &request)const; + void listDataSetAsync(const Model::ListDataSetRequest& request, const ListDataSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListDataSetOutcomeCallable listDataSetCallable(const Model::ListDataSetRequest& request) const; + ListDataSourceOutcome listDataSource(const Model::ListDataSourceRequest &request)const; + void listDataSourceAsync(const Model::ListDataSourceRequest& request, const ListDataSourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListDataSourceOutcomeCallable listDataSourceCallable(const Model::ListDataSourceRequest& request) const; + ListDiversifyOutcome listDiversify(const Model::ListDiversifyRequest &request)const; + void listDiversifyAsync(const Model::ListDiversifyRequest& request, const ListDiversifyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListDiversifyOutcomeCallable listDiversifyCallable(const Model::ListDiversifyRequest& request) const; + ListInstanceOutcome listInstance(const Model::ListInstanceRequest &request)const; + void listInstanceAsync(const Model::ListInstanceRequest& request, const ListInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListInstanceOutcomeCallable listInstanceCallable(const Model::ListInstanceRequest& request) const; + ListInstanceTaskOutcome listInstanceTask(const Model::ListInstanceTaskRequest &request)const; + void listInstanceTaskAsync(const Model::ListInstanceTaskRequest& request, const ListInstanceTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListInstanceTaskOutcomeCallable listInstanceTaskCallable(const Model::ListInstanceTaskRequest& request) const; + ListMixOutcome listMix(const Model::ListMixRequest &request)const; + void listMixAsync(const Model::ListMixRequest& request, const ListMixAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListMixOutcomeCallable listMixCallable(const Model::ListMixRequest& request) const; + ListRuleConditionsOutcome listRuleConditions(const Model::ListRuleConditionsRequest &request)const; + void listRuleConditionsAsync(const Model::ListRuleConditionsRequest& request, const ListRuleConditionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListRuleConditionsOutcomeCallable listRuleConditionsCallable(const Model::ListRuleConditionsRequest& request) const; + ListRuleTasksOutcome listRuleTasks(const Model::ListRuleTasksRequest &request)const; + void listRuleTasksAsync(const Model::ListRuleTasksRequest& request, const ListRuleTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListRuleTasksOutcomeCallable listRuleTasksCallable(const Model::ListRuleTasksRequest& request) const; + ListRulesOutcome listRules(const Model::ListRulesRequest &request)const; + void listRulesAsync(const Model::ListRulesRequest& request, const ListRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListRulesOutcomeCallable listRulesCallable(const Model::ListRulesRequest& request) const; + ListSceneItemsOutcome listSceneItems(const Model::ListSceneItemsRequest &request)const; + void listSceneItemsAsync(const Model::ListSceneItemsRequest& request, const ListSceneItemsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSceneItemsOutcomeCallable listSceneItemsCallable(const Model::ListSceneItemsRequest& request) const; + ListScenesOutcome listScenes(const Model::ListScenesRequest &request)const; + void listScenesAsync(const Model::ListScenesRequest& request, const ListScenesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListScenesOutcomeCallable listScenesCallable(const Model::ListScenesRequest& request) const; + ListUmengAppkeysOutcome listUmengAppkeys(const Model::ListUmengAppkeysRequest &request)const; + void listUmengAppkeysAsync(const Model::ListUmengAppkeysRequest& request, const ListUmengAppkeysAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListUmengAppkeysOutcomeCallable listUmengAppkeysCallable(const Model::ListUmengAppkeysRequest& request) const; + ModifyDataSourceOutcome modifyDataSource(const Model::ModifyDataSourceRequest &request)const; + void modifyDataSourceAsync(const Model::ModifyDataSourceRequest& request, const ModifyDataSourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDataSourceOutcomeCallable modifyDataSourceCallable(const Model::ModifyDataSourceRequest& request) const; + ModifyDiversifyOutcome modifyDiversify(const Model::ModifyDiversifyRequest &request)const; + void modifyDiversifyAsync(const Model::ModifyDiversifyRequest& request, const ModifyDiversifyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDiversifyOutcomeCallable modifyDiversifyCallable(const Model::ModifyDiversifyRequest& request) const; + ModifyExposureSettingsOutcome modifyExposureSettings(const Model::ModifyExposureSettingsRequest &request)const; + void modifyExposureSettingsAsync(const Model::ModifyExposureSettingsRequest& request, const ModifyExposureSettingsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyExposureSettingsOutcomeCallable modifyExposureSettingsCallable(const Model::ModifyExposureSettingsRequest& request) const; + ModifyInstanceOutcome modifyInstance(const Model::ModifyInstanceRequest &request)const; + void modifyInstanceAsync(const Model::ModifyInstanceRequest& request, const ModifyInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyInstanceOutcomeCallable modifyInstanceCallable(const Model::ModifyInstanceRequest& request) const; + ModifyMixOutcome modifyMix(const Model::ModifyMixRequest &request)const; + void modifyMixAsync(const Model::ModifyMixRequest& request, const ModifyMixAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyMixOutcomeCallable modifyMixCallable(const Model::ModifyMixRequest& request) const; + ModifyRuleOutcome modifyRule(const Model::ModifyRuleRequest &request)const; + void modifyRuleAsync(const Model::ModifyRuleRequest& request, const ModifyRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyRuleOutcomeCallable modifyRuleCallable(const Model::ModifyRuleRequest& request) const; + ModifySceneOutcome modifyScene(const Model::ModifySceneRequest &request)const; + void modifySceneAsync(const Model::ModifySceneRequest& request, const ModifySceneAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifySceneOutcomeCallable modifySceneCallable(const Model::ModifySceneRequest& request) const; + PublishRuleOutcome publishRule(const Model::PublishRuleRequest &request)const; + void publishRuleAsync(const Model::PublishRuleRequest& request, const PublishRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PublishRuleOutcomeCallable publishRuleCallable(const Model::PublishRuleRequest& request) const; + PushDocumentOutcome pushDocument(const Model::PushDocumentRequest &request)const; + void pushDocumentAsync(const Model::PushDocumentRequest& request, const PushDocumentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PushDocumentOutcomeCallable pushDocumentCallable(const Model::PushDocumentRequest& request) const; + PushInterventionOutcome pushIntervention(const Model::PushInterventionRequest &request)const; + void pushInterventionAsync(const Model::PushInterventionRequest& request, const PushInterventionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PushInterventionOutcomeCallable pushInterventionCallable(const Model::PushInterventionRequest& request) const; + QueryDataMessageOutcome queryDataMessage(const Model::QueryDataMessageRequest &request)const; + void queryDataMessageAsync(const Model::QueryDataMessageRequest& request, const QueryDataMessageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryDataMessageOutcomeCallable queryDataMessageCallable(const Model::QueryDataMessageRequest& request) const; + QueryExceptionHistoryOutcome queryExceptionHistory(const Model::QueryExceptionHistoryRequest &request)const; + void queryExceptionHistoryAsync(const Model::QueryExceptionHistoryRequest& request, const QueryExceptionHistoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryExceptionHistoryOutcomeCallable queryExceptionHistoryCallable(const Model::QueryExceptionHistoryRequest& request) const; + QueryRawDataOutcome queryRawData(const Model::QueryRawDataRequest &request)const; + void queryRawDataAsync(const Model::QueryRawDataRequest& request, const QueryRawDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryRawDataOutcomeCallable queryRawDataCallable(const Model::QueryRawDataRequest& request) const; + QuerySingleAggregationReportOutcome querySingleAggregationReport(const Model::QuerySingleAggregationReportRequest &request)const; + void querySingleAggregationReportAsync(const Model::QuerySingleAggregationReportRequest& request, const QuerySingleAggregationReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QuerySingleAggregationReportOutcomeCallable querySingleAggregationReportCallable(const Model::QuerySingleAggregationReportRequest& request) const; + QuerySingleReportOutcome querySingleReport(const Model::QuerySingleReportRequest &request)const; + void querySingleReportAsync(const Model::QuerySingleReportRequest& request, const QuerySingleReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QuerySingleReportOutcomeCallable querySingleReportCallable(const Model::QuerySingleReportRequest& request) const; + QuerySyncReportAggregationOutcome querySyncReportAggregation(const Model::QuerySyncReportAggregationRequest &request)const; + void querySyncReportAggregationAsync(const Model::QuerySyncReportAggregationRequest& request, const QuerySyncReportAggregationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QuerySyncReportAggregationOutcomeCallable querySyncReportAggregationCallable(const Model::QuerySyncReportAggregationRequest& request) const; + RecommendOutcome recommend(const Model::RecommendRequest &request)const; + void recommendAsync(const Model::RecommendRequest& request, const RecommendAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RecommendOutcomeCallable recommendCallable(const Model::RecommendRequest& request) const; + RunInstanceOutcome runInstance(const Model::RunInstanceRequest &request)const; + void runInstanceAsync(const Model::RunInstanceRequest& request, const RunInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RunInstanceOutcomeCallable runInstanceCallable(const Model::RunInstanceRequest& request) const; + StopDataSetOutcome stopDataSet(const Model::StopDataSetRequest &request)const; + void stopDataSetAsync(const Model::StopDataSetRequest& request, const StopDataSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StopDataSetOutcomeCallable stopDataSetCallable(const Model::StopDataSetRequest& request) const; + UpgradeInstanceOutcome upgradeInstance(const Model::UpgradeInstanceRequest &request)const; + void upgradeInstanceAsync(const Model::UpgradeInstanceRequest& request, const UpgradeInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpgradeInstanceOutcomeCallable upgradeInstanceCallable(const Model::UpgradeInstanceRequest& request) const; + ValidateInstanceOutcome validateInstance(const Model::ValidateInstanceRequest &request)const; + void validateInstanceAsync(const Model::ValidateInstanceRequest& request, const ValidateInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ValidateInstanceOutcomeCallable validateInstanceCallable(const Model::ValidateInstanceRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_AIREC_AIRECCLIENT_H_ diff --git a/airec/include/alibabacloud/airec/AirecExport.h b/airec/include/alibabacloud/airec/AirecExport.h new file mode 100644 index 000000000..0758a5393 --- /dev/null +++ b/airec/include/alibabacloud/airec/AirecExport.h @@ -0,0 +1,32 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_AIRECEXPORT_H_ +#define ALIBABACLOUD_AIREC_AIRECEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_AIREC_LIBRARY) +# define ALIBABACLOUD_AIREC_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_AIREC_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_AIREC_EXPORT +#endif + +#endif // !ALIBABACLOUD_AIREC_AIRECEXPORT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/AttachDatasetRequest.h b/airec/include/alibabacloud/airec/model/AttachDatasetRequest.h new file mode 100644 index 000000000..9274be3c2 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/AttachDatasetRequest.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_AIREC_MODEL_ATTACHDATASETREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_ATTACHDATASETREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT AttachDatasetRequest : public RoaServiceRequest + { + + public: + AttachDatasetRequest(); + ~AttachDatasetRequest(); + + std::string getVersionId()const; + void setVersionId(const std::string& versionId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string versionId_; + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_ATTACHDATASETREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/AttachDatasetResult.h b/airec/include/alibabacloud/airec/model/AttachDatasetResult.h new file mode 100644 index 000000000..390a88e79 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/AttachDatasetResult.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_AIREC_MODEL_ATTACHDATASETRESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_ATTACHDATASETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT AttachDatasetResult : public ServiceResult + { + public: + struct Result + { + std::string versionId; + long gmtCreate; + std::string instanceId; + std::string state; + long gmtModified; + }; + + + AttachDatasetResult(); + explicit AttachDatasetResult(const std::string &payload); + ~AttachDatasetResult(); + std::string getMessage()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_ATTACHDATASETRESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/CreateDiversifyRequest.h b/airec/include/alibabacloud/airec/model/CreateDiversifyRequest.h new file mode 100644 index 000000000..5ee7d23a0 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/CreateDiversifyRequest.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_AIREC_MODEL_CREATEDIVERSIFYREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_CREATEDIVERSIFYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT CreateDiversifyRequest : public RoaServiceRequest + { + + public: + CreateDiversifyRequest(); + ~CreateDiversifyRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_CREATEDIVERSIFYREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/CreateDiversifyResult.h b/airec/include/alibabacloud/airec/model/CreateDiversifyResult.h new file mode 100644 index 000000000..7405e0b65 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/CreateDiversifyResult.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_CREATEDIVERSIFYRESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_CREATEDIVERSIFYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT CreateDiversifyResult : public ServiceResult + { + public: + struct Result + { + struct _Parameter + { + int window; + int categoryIndex; + }; + std::string gmtCreate; + std::string gmtModified; + _Parameter _parameter; + std::string name; + }; + + + CreateDiversifyResult(); + explicit CreateDiversifyResult(const std::string &payload); + ~CreateDiversifyResult(); + std::string getMessage()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_CREATEDIVERSIFYRESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/CreateInstanceRequest.h b/airec/include/alibabacloud/airec/model/CreateInstanceRequest.h new file mode 100644 index 000000000..c1790b71b --- /dev/null +++ b/airec/include/alibabacloud/airec/model/CreateInstanceRequest.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_AIREC_MODEL_CREATEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_CREATEINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT CreateInstanceRequest : public RoaServiceRequest + { + + public: + CreateInstanceRequest(); + ~CreateInstanceRequest(); + + + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_CREATEINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/CreateInstanceResult.h b/airec/include/alibabacloud/airec/model/CreateInstanceResult.h new file mode 100644 index 000000000..150642fd4 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/CreateInstanceResult.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_AIREC_MODEL_CREATEINSTANCERESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_CREATEINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT CreateInstanceResult : public ServiceResult + { + public: + struct Result + { + std::string instanceId; + }; + + + CreateInstanceResult(); + explicit CreateInstanceResult(const std::string &payload); + ~CreateInstanceResult(); + std::string getMessage()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_CREATEINSTANCERESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/CreateMixRequest.h b/airec/include/alibabacloud/airec/model/CreateMixRequest.h new file mode 100644 index 000000000..3b83f32e7 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/CreateMixRequest.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_AIREC_MODEL_CREATEMIXREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_CREATEMIXREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT CreateMixRequest : public RoaServiceRequest + { + + public: + CreateMixRequest(); + ~CreateMixRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_CREATEMIXREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/CreateMixResult.h b/airec/include/alibabacloud/airec/model/CreateMixResult.h new file mode 100644 index 000000000..4e2fa268f --- /dev/null +++ b/airec/include/alibabacloud/airec/model/CreateMixResult.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_CREATEMIXRESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_CREATEMIXRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT CreateMixResult : public ServiceResult + { + public: + struct Result + { + struct _Parameter + { + struct SettingsItem + { + int value; + std::string name; + }; + std::vector settings; + }; + std::string gmtCreate; + std::string gmtModified; + _Parameter _parameter; + std::string name; + }; + + + CreateMixResult(); + explicit CreateMixResult(const std::string &payload); + ~CreateMixResult(); + std::string getMessage()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_CREATEMIXRESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/CreateRuleRequest.h b/airec/include/alibabacloud/airec/model/CreateRuleRequest.h new file mode 100644 index 000000000..a66a9bd46 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/CreateRuleRequest.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_AIREC_MODEL_CREATERULEREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_CREATERULEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT CreateRuleRequest : public RoaServiceRequest + { + + public: + CreateRuleRequest(); + ~CreateRuleRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_CREATERULEREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/CreateRuleResult.h b/airec/include/alibabacloud/airec/model/CreateRuleResult.h new file mode 100644 index 000000000..0e805c7d7 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/CreateRuleResult.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_CREATERULERESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_CREATERULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT CreateRuleResult : public ServiceResult + { + public: + struct Result + { + std::string status; + std::string gmtCreate; + std::string ruleId; + std::string gmtModified; + }; + + + CreateRuleResult(); + explicit CreateRuleResult(const std::string &payload); + ~CreateRuleResult(); + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_CREATERULERESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/CreateSceneRequest.h b/airec/include/alibabacloud/airec/model/CreateSceneRequest.h new file mode 100644 index 000000000..a8d5f82a9 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/CreateSceneRequest.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_AIREC_MODEL_CREATESCENEREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_CREATESCENEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT CreateSceneRequest : public RoaServiceRequest + { + + public: + CreateSceneRequest(); + ~CreateSceneRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + bool getDryRun()const; + void setDryRun(bool dryRun); + + private: + std::string instanceId_; + bool dryRun_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_CREATESCENEREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/CreateSceneResult.h b/airec/include/alibabacloud/airec/model/CreateSceneResult.h new file mode 100644 index 000000000..1028ac737 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/CreateSceneResult.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_CREATESCENERESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_CREATESCENERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT CreateSceneResult : public ServiceResult + { + public: + struct Result + { + std::string sceneId; + std::string status; + std::string gmtCreate; + std::string gmtModified; + }; + + + CreateSceneResult(); + explicit CreateSceneResult(const std::string &payload); + ~CreateSceneResult(); + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_CREATESCENERESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/DeleteDataSetRequest.h b/airec/include/alibabacloud/airec/model/DeleteDataSetRequest.h new file mode 100644 index 000000000..800bdc31c --- /dev/null +++ b/airec/include/alibabacloud/airec/model/DeleteDataSetRequest.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_AIREC_MODEL_DELETEDATASETREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_DELETEDATASETREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT DeleteDataSetRequest : public RoaServiceRequest + { + + public: + DeleteDataSetRequest(); + ~DeleteDataSetRequest(); + + std::string getVersionId()const; + void setVersionId(const std::string& versionId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string versionId_; + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_DELETEDATASETREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/DeleteDataSetResult.h b/airec/include/alibabacloud/airec/model/DeleteDataSetResult.h new file mode 100644 index 000000000..28e24af7c --- /dev/null +++ b/airec/include/alibabacloud/airec/model/DeleteDataSetResult.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_AIREC_MODEL_DELETEDATASETRESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_DELETEDATASETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT DeleteDataSetResult : public ServiceResult + { + public: + struct Result + { + std::string versionId; + long gmtCreate; + std::string instanceId; + std::string state; + long gmtModified; + }; + + + DeleteDataSetResult(); + explicit DeleteDataSetResult(const std::string &payload); + ~DeleteDataSetResult(); + std::string getMessage()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_DELETEDATASETRESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/DeleteDiversifyRequest.h b/airec/include/alibabacloud/airec/model/DeleteDiversifyRequest.h new file mode 100644 index 000000000..e639d3c9b --- /dev/null +++ b/airec/include/alibabacloud/airec/model/DeleteDiversifyRequest.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_AIREC_MODEL_DELETEDIVERSIFYREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_DELETEDIVERSIFYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT DeleteDiversifyRequest : public RoaServiceRequest + { + + public: + DeleteDiversifyRequest(); + ~DeleteDiversifyRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getName()const; + void setName(const std::string& name); + + private: + std::string instanceId_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_DELETEDIVERSIFYREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/DeleteDiversifyResult.h b/airec/include/alibabacloud/airec/model/DeleteDiversifyResult.h new file mode 100644 index 000000000..a40f5e262 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/DeleteDiversifyResult.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_DELETEDIVERSIFYRESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_DELETEDIVERSIFYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT DeleteDiversifyResult : public ServiceResult + { + public: + struct Result + { + struct _Parameter + { + int window; + int categoryIndex; + }; + std::string gmtCreate; + std::string gmtModified; + _Parameter _parameter; + std::string name; + }; + + + DeleteDiversifyResult(); + explicit DeleteDiversifyResult(const std::string &payload); + ~DeleteDiversifyResult(); + std::string getMessage()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_DELETEDIVERSIFYRESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/DeleteMixRequest.h b/airec/include/alibabacloud/airec/model/DeleteMixRequest.h new file mode 100644 index 000000000..e4a16a642 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/DeleteMixRequest.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_AIREC_MODEL_DELETEMIXREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_DELETEMIXREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT DeleteMixRequest : public RoaServiceRequest + { + + public: + DeleteMixRequest(); + ~DeleteMixRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getName()const; + void setName(const std::string& name); + + private: + std::string instanceId_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_DELETEMIXREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/DeleteMixResult.h b/airec/include/alibabacloud/airec/model/DeleteMixResult.h new file mode 100644 index 000000000..86859b203 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/DeleteMixResult.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_DELETEMIXRESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_DELETEMIXRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT DeleteMixResult : public ServiceResult + { + public: + struct Result + { + struct _Parameter + { + struct SettingsItem + { + std::string value; + std::string name; + }; + std::vector settings; + }; + std::string gmtCreate; + std::string gmtModified; + _Parameter _parameter; + std::string name; + }; + + + DeleteMixResult(); + explicit DeleteMixResult(const std::string &payload); + ~DeleteMixResult(); + std::string getMessage()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_DELETEMIXRESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/DeleteSceneRequest.h b/airec/include/alibabacloud/airec/model/DeleteSceneRequest.h new file mode 100644 index 000000000..d98450980 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/DeleteSceneRequest.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_AIREC_MODEL_DELETESCENEREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_DELETESCENEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT DeleteSceneRequest : public RoaServiceRequest + { + + public: + DeleteSceneRequest(); + ~DeleteSceneRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getSceneId()const; + void setSceneId(const std::string& sceneId); + + private: + std::string instanceId_; + std::string sceneId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_DELETESCENEREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/DeleteSceneResult.h b/airec/include/alibabacloud/airec/model/DeleteSceneResult.h new file mode 100644 index 000000000..5694e8496 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/DeleteSceneResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_DELETESCENERESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_DELETESCENERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT DeleteSceneResult : public ServiceResult + { + public: + struct Result + { + std::string sceneId; + }; + + + DeleteSceneResult(); + explicit DeleteSceneResult(const std::string &payload); + ~DeleteSceneResult(); + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_DELETESCENERESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/DescribeDataSetMessageRequest.h b/airec/include/alibabacloud/airec/model/DescribeDataSetMessageRequest.h new file mode 100644 index 000000000..e77038450 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/DescribeDataSetMessageRequest.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_AIREC_MODEL_DESCRIBEDATASETMESSAGEREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_DESCRIBEDATASETMESSAGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT DescribeDataSetMessageRequest : public RoaServiceRequest + { + + public: + DescribeDataSetMessageRequest(); + ~DescribeDataSetMessageRequest(); + + std::string getVersionId()const; + void setVersionId(const std::string& versionId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string versionId_; + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_DESCRIBEDATASETMESSAGEREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/DescribeDataSetMessageResult.h b/airec/include/alibabacloud/airec/model/DescribeDataSetMessageResult.h new file mode 100644 index 000000000..a31909f21 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/DescribeDataSetMessageResult.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_AIREC_MODEL_DESCRIBEDATASETMESSAGERESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_DESCRIBEDATASETMESSAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT DescribeDataSetMessageResult : public ServiceResult + { + public: + struct ResultItem + { + std::string message; + std::string errorType; + std::string errorLevel; + std::string timestamp; + }; + + + DescribeDataSetMessageResult(); + explicit DescribeDataSetMessageResult(const std::string &payload); + ~DescribeDataSetMessageResult(); + std::string getMessage()const; + std::string getCode()const; + std::vector getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + std::vector result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_DESCRIBEDATASETMESSAGERESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/DescribeDataSetReportRequest.h b/airec/include/alibabacloud/airec/model/DescribeDataSetReportRequest.h new file mode 100644 index 000000000..abd41137e --- /dev/null +++ b/airec/include/alibabacloud/airec/model/DescribeDataSetReportRequest.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_AIREC_MODEL_DESCRIBEDATASETREPORTREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_DESCRIBEDATASETREPORTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT DescribeDataSetReportRequest : public RoaServiceRequest + { + + public: + DescribeDataSetReportRequest(); + ~DescribeDataSetReportRequest(); + + std::string getVersionId()const; + void setVersionId(const std::string& versionId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string versionId_; + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_DESCRIBEDATASETREPORTREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/DescribeDataSetReportResult.h b/airec/include/alibabacloud/airec/model/DescribeDataSetReportResult.h new file mode 100644 index 000000000..1b6e2b720 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/DescribeDataSetReportResult.h @@ -0,0 +1,88 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_DESCRIBEDATASETREPORTRESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_DESCRIBEDATASETREPORTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT DescribeDataSetReportResult : public ServiceResult + { + public: + struct Result + { + struct Overall + { + float itemCompleteRate; + float itemLoginRate; + float itemLegalRate; + int userUserCount; + float userCompleteRate; + int itemItemCount; + int bhvCount; + float userLoginRate; + float userLegalRate; + float userRepetitiveRate; + float bhvLegalRate; + float itemRepetitiveRate; + }; + struct DetailItem + { + float ctr; + long uv; + long clickUser; + float perUvBhv; + float perUvClick; + float uvCtr; + long pv; + long activeItem; + long click; + long bizDate; + }; + Overall overall; + std::vector detail; + }; + + + DescribeDataSetReportResult(); + explicit DescribeDataSetReportResult(const std::string &payload); + ~DescribeDataSetReportResult(); + std::string getMessage()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_DESCRIBEDATASETREPORTRESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/DescribeDiversifyRequest.h b/airec/include/alibabacloud/airec/model/DescribeDiversifyRequest.h new file mode 100644 index 000000000..6675ebc57 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/DescribeDiversifyRequest.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_AIREC_MODEL_DESCRIBEDIVERSIFYREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_DESCRIBEDIVERSIFYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT DescribeDiversifyRequest : public RoaServiceRequest + { + + public: + DescribeDiversifyRequest(); + ~DescribeDiversifyRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getName()const; + void setName(const std::string& name); + + private: + std::string instanceId_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_DESCRIBEDIVERSIFYREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/DescribeDiversifyResult.h b/airec/include/alibabacloud/airec/model/DescribeDiversifyResult.h new file mode 100644 index 000000000..d4135bd21 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/DescribeDiversifyResult.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_DESCRIBEDIVERSIFYRESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_DESCRIBEDIVERSIFYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT DescribeDiversifyResult : public ServiceResult + { + public: + struct Result + { + struct _Parameter + { + int window; + int categoryIndex; + }; + std::string gmtCreate; + std::string gmtModified; + _Parameter _parameter; + std::string name; + }; + + + DescribeDiversifyResult(); + explicit DescribeDiversifyResult(const std::string &payload); + ~DescribeDiversifyResult(); + std::string getMessage()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_DESCRIBEDIVERSIFYRESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/DescribeExposureSettingsRequest.h b/airec/include/alibabacloud/airec/model/DescribeExposureSettingsRequest.h new file mode 100644 index 000000000..48d0b7dff --- /dev/null +++ b/airec/include/alibabacloud/airec/model/DescribeExposureSettingsRequest.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_AIREC_MODEL_DESCRIBEEXPOSURESETTINGSREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_DESCRIBEEXPOSURESETTINGSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT DescribeExposureSettingsRequest : public RoaServiceRequest + { + + public: + DescribeExposureSettingsRequest(); + ~DescribeExposureSettingsRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_DESCRIBEEXPOSURESETTINGSREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/DescribeExposureSettingsResult.h b/airec/include/alibabacloud/airec/model/DescribeExposureSettingsResult.h new file mode 100644 index 000000000..b60549cfe --- /dev/null +++ b/airec/include/alibabacloud/airec/model/DescribeExposureSettingsResult.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_DESCRIBEEXPOSURESETTINGSRESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_DESCRIBEEXPOSURESETTINGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT DescribeExposureSettingsResult : public ServiceResult + { + public: + struct Result + { + bool scenarioBased; + int durationSeconds; + }; + + + DescribeExposureSettingsResult(); + explicit DescribeExposureSettingsResult(const std::string &payload); + ~DescribeExposureSettingsResult(); + std::string getMessage()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_DESCRIBEEXPOSURESETTINGSRESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/DescribeInstanceRequest.h b/airec/include/alibabacloud/airec/model/DescribeInstanceRequest.h new file mode 100644 index 000000000..eef0e0862 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/DescribeInstanceRequest.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_AIREC_MODEL_DESCRIBEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_DESCRIBEINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT DescribeInstanceRequest : public RoaServiceRequest + { + + public: + DescribeInstanceRequest(); + ~DescribeInstanceRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_DESCRIBEINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/DescribeInstanceResult.h b/airec/include/alibabacloud/airec/model/DescribeInstanceResult.h new file mode 100644 index 000000000..e3f4a94bf --- /dev/null +++ b/airec/include/alibabacloud/airec/model/DescribeInstanceResult.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_AIREC_MODEL_DESCRIBEINSTANCERESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_DESCRIBEINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT DescribeInstanceResult : public ServiceResult + { + public: + struct Result + { + std::string status; + std::string instanceId; + std::string gmtModified; + std::string lockMode; + std::string scene; + std::string name; + std::string industry; + std::string type; + std::string gmtCreate; + std::string chargeType; + std::string expiredTime; + std::string commodityCode; + std::string regionId; + std::string dataSetVersion; + }; + + + DescribeInstanceResult(); + explicit DescribeInstanceResult(const std::string &payload); + ~DescribeInstanceResult(); + std::string getMessage()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_DESCRIBEINSTANCERESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/DescribeMixRequest.h b/airec/include/alibabacloud/airec/model/DescribeMixRequest.h new file mode 100644 index 000000000..9c5caeda4 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/DescribeMixRequest.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_AIREC_MODEL_DESCRIBEMIXREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_DESCRIBEMIXREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT DescribeMixRequest : public RoaServiceRequest + { + + public: + DescribeMixRequest(); + ~DescribeMixRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getName()const; + void setName(const std::string& name); + + private: + std::string instanceId_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_DESCRIBEMIXREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/DescribeMixResult.h b/airec/include/alibabacloud/airec/model/DescribeMixResult.h new file mode 100644 index 000000000..12d897824 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/DescribeMixResult.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_DESCRIBEMIXRESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_DESCRIBEMIXRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT DescribeMixResult : public ServiceResult + { + public: + struct Result + { + struct _Parameter + { + struct SettingsItem + { + int value; + std::string name; + }; + std::vector settings; + }; + std::string gmtCreate; + std::string gmtModified; + _Parameter _parameter; + std::string name; + }; + + + DescribeMixResult(); + explicit DescribeMixResult(const std::string &payload); + ~DescribeMixResult(); + std::string getMessage()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_DESCRIBEMIXRESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/DescribeQuotaRequest.h b/airec/include/alibabacloud/airec/model/DescribeQuotaRequest.h new file mode 100644 index 000000000..f299e0996 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/DescribeQuotaRequest.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_AIREC_MODEL_DESCRIBEQUOTAREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_DESCRIBEQUOTAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT DescribeQuotaRequest : public RoaServiceRequest + { + + public: + DescribeQuotaRequest(); + ~DescribeQuotaRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_DESCRIBEQUOTAREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/DescribeQuotaResult.h b/airec/include/alibabacloud/airec/model/DescribeQuotaResult.h new file mode 100644 index 000000000..d32c54578 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/DescribeQuotaResult.h @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_DESCRIBEQUOTARESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_DESCRIBEQUOTARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT DescribeQuotaResult : public ServiceResult + { + public: + struct Result + { + int currentQps; + long userCountUsed; + int qps; + long userCount; + long itemCount; + long itemCountUsed; + }; + + + DescribeQuotaResult(); + explicit DescribeQuotaResult(const std::string &payload); + ~DescribeQuotaResult(); + std::string getMessage()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_DESCRIBEQUOTARESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/DescribeRegionsRequest.h b/airec/include/alibabacloud/airec/model/DescribeRegionsRequest.h new file mode 100644 index 000000000..462fc8382 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/DescribeRegionsRequest.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_AIREC_MODEL_DESCRIBEREGIONSREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_DESCRIBEREGIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT DescribeRegionsRequest : public RoaServiceRequest + { + + public: + DescribeRegionsRequest(); + ~DescribeRegionsRequest(); + + std::string getAcceptLanguage()const; + void setAcceptLanguage(const std::string& acceptLanguage); + + private: + std::string acceptLanguage_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_DESCRIBEREGIONSREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/DescribeRegionsResult.h b/airec/include/alibabacloud/airec/model/DescribeRegionsResult.h new file mode 100644 index 000000000..38deec49b --- /dev/null +++ b/airec/include/alibabacloud/airec/model/DescribeRegionsResult.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_AIREC_MODEL_DESCRIBEREGIONSRESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_DESCRIBEREGIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT DescribeRegionsResult : public ServiceResult + { + public: + struct Item + { + std::string status; + std::string endpoint; + std::string consoleUrl; + std::string regionId; + std::string localName; + }; + + + DescribeRegionsResult(); + explicit DescribeRegionsResult(const std::string &payload); + ~DescribeRegionsResult(); + std::string getMessage()const; + std::string getCode()const; + std::vector getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + std::vector result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_DESCRIBEREGIONSRESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/DescribeRuleRequest.h b/airec/include/alibabacloud/airec/model/DescribeRuleRequest.h new file mode 100644 index 000000000..7764feb7f --- /dev/null +++ b/airec/include/alibabacloud/airec/model/DescribeRuleRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_DESCRIBERULEREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_DESCRIBERULEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT DescribeRuleRequest : public RoaServiceRequest + { + + public: + DescribeRuleRequest(); + ~DescribeRuleRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getRuleType()const; + void setRuleType(const std::string& ruleType); + std::string getSceneId()const; + void setSceneId(const std::string& sceneId); + std::string getRuleId()const; + void setRuleId(const std::string& ruleId); + + private: + std::string instanceId_; + std::string ruleType_; + std::string sceneId_; + std::string ruleId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_DESCRIBERULEREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/DescribeRuleResult.h b/airec/include/alibabacloud/airec/model/DescribeRuleResult.h new file mode 100644 index 000000000..c04003f8d --- /dev/null +++ b/airec/include/alibabacloud/airec/model/DescribeRuleResult.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_DESCRIBERULERESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_DESCRIBERULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT DescribeRuleResult : public ServiceResult + { + public: + struct Result + { + std::string status; + std::string gmtCreate; + std::string ruleId; + std::string gmtModified; + }; + + + DescribeRuleResult(); + explicit DescribeRuleResult(const std::string &payload); + ~DescribeRuleResult(); + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_DESCRIBERULERESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/DescribeSceneRequest.h b/airec/include/alibabacloud/airec/model/DescribeSceneRequest.h new file mode 100644 index 000000000..0e0a56a1b --- /dev/null +++ b/airec/include/alibabacloud/airec/model/DescribeSceneRequest.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_AIREC_MODEL_DESCRIBESCENEREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_DESCRIBESCENEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT DescribeSceneRequest : public RoaServiceRequest + { + + public: + DescribeSceneRequest(); + ~DescribeSceneRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getSceneId()const; + void setSceneId(const std::string& sceneId); + + private: + std::string instanceId_; + std::string sceneId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_DESCRIBESCENEREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/DescribeSceneResult.h b/airec/include/alibabacloud/airec/model/DescribeSceneResult.h new file mode 100644 index 000000000..8b92edb99 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/DescribeSceneResult.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_DESCRIBESCENERESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_DESCRIBESCENERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT DescribeSceneResult : public ServiceResult + { + public: + struct Result + { + std::string sceneId; + std::string status; + std::string gmtCreate; + std::string gmtModified; + }; + + + DescribeSceneResult(); + explicit DescribeSceneResult(const std::string &payload); + ~DescribeSceneResult(); + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_DESCRIBESCENERESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/DescribeSceneThroughputRequest.h b/airec/include/alibabacloud/airec/model/DescribeSceneThroughputRequest.h new file mode 100644 index 000000000..b0ce75579 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/DescribeSceneThroughputRequest.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_AIREC_MODEL_DESCRIBESCENETHROUGHPUTREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_DESCRIBESCENETHROUGHPUTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT DescribeSceneThroughputRequest : public RoaServiceRequest + { + + public: + DescribeSceneThroughputRequest(); + ~DescribeSceneThroughputRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getSceneId()const; + void setSceneId(const std::string& sceneId); + + private: + std::string instanceId_; + std::string sceneId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_DESCRIBESCENETHROUGHPUTREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/DescribeSceneThroughputResult.h b/airec/include/alibabacloud/airec/model/DescribeSceneThroughputResult.h new file mode 100644 index 000000000..00323b4ec --- /dev/null +++ b/airec/include/alibabacloud/airec/model/DescribeSceneThroughputResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_DESCRIBESCENETHROUGHPUTRESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_DESCRIBESCENETHROUGHPUTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT DescribeSceneThroughputResult : public ServiceResult + { + public: + struct Result + { + long pvCount; + }; + + + DescribeSceneThroughputResult(); + explicit DescribeSceneThroughputResult(const std::string &payload); + ~DescribeSceneThroughputResult(); + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_DESCRIBESCENETHROUGHPUTRESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/DescribeSyncReportDetailRequest.h b/airec/include/alibabacloud/airec/model/DescribeSyncReportDetailRequest.h new file mode 100644 index 000000000..c081b8814 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/DescribeSyncReportDetailRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_DESCRIBESYNCREPORTDETAILREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_DESCRIBESYNCREPORTDETAILREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT DescribeSyncReportDetailRequest : public RoaServiceRequest + { + + public: + DescribeSyncReportDetailRequest(); + ~DescribeSyncReportDetailRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getLevelType()const; + void setLevelType(const std::string& levelType); + long getEndTime()const; + void setEndTime(long endTime); + long getStartTime()const; + void setStartTime(long startTime); + std::string getType()const; + void setType(const std::string& type); + + private: + std::string instanceId_; + std::string levelType_; + long endTime_; + long startTime_; + std::string type_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_DESCRIBESYNCREPORTDETAILREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/DescribeSyncReportDetailResult.h b/airec/include/alibabacloud/airec/model/DescribeSyncReportDetailResult.h new file mode 100644 index 000000000..fdb56179b --- /dev/null +++ b/airec/include/alibabacloud/airec/model/DescribeSyncReportDetailResult.h @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_DESCRIBESYNCREPORTDETAILRESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_DESCRIBESYNCREPORTDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT DescribeSyncReportDetailResult : public ServiceResult + { + public: + struct ResultItem + { + struct HistoryDataItem + { + long endTime; + long startTime; + float errorPercent; + }; + bool defaultDisplay; + std::string type; + std::vector historyData; + bool sampleDisplay; + int errorCount; + float errorPercent; + }; + + + DescribeSyncReportDetailResult(); + explicit DescribeSyncReportDetailResult(const std::string &payload); + ~DescribeSyncReportDetailResult(); + std::string getMessage()const; + std::string getCode()const; + std::vector getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + std::vector result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_DESCRIBESYNCREPORTDETAILRESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/DescribeSyncReportOutliersRequest.h b/airec/include/alibabacloud/airec/model/DescribeSyncReportOutliersRequest.h new file mode 100644 index 000000000..a963b2d37 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/DescribeSyncReportOutliersRequest.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_AIREC_MODEL_DESCRIBESYNCREPORTOUTLIERSREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_DESCRIBESYNCREPORTOUTLIERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT DescribeSyncReportOutliersRequest : public RoaServiceRequest + { + + public: + DescribeSyncReportOutliersRequest(); + ~DescribeSyncReportOutliersRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getLevelType()const; + void setLevelType(const std::string& levelType); + long getEndTime()const; + void setEndTime(long endTime); + long getStartTime()const; + void setStartTime(long startTime); + std::string getType()const; + void setType(const std::string& type); + std::string getKey()const; + void setKey(const std::string& key); + + private: + std::string instanceId_; + std::string levelType_; + long endTime_; + long startTime_; + std::string type_; + std::string key_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_DESCRIBESYNCREPORTOUTLIERSREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/DescribeSyncReportOutliersResult.h b/airec/include/alibabacloud/airec/model/DescribeSyncReportOutliersResult.h new file mode 100644 index 000000000..43f9270c1 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/DescribeSyncReportOutliersResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_DESCRIBESYNCREPORTOUTLIERSRESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_DESCRIBESYNCREPORTOUTLIERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT DescribeSyncReportOutliersResult : public ServiceResult + { + public: + + + DescribeSyncReportOutliersResult(); + explicit DescribeSyncReportOutliersResult(const std::string &payload); + ~DescribeSyncReportOutliersResult(); + std::string getMessage()const; + std::string getCode()const; + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_DESCRIBESYNCREPORTOUTLIERSRESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/DescribeUserMetricsRequest.h b/airec/include/alibabacloud/airec/model/DescribeUserMetricsRequest.h new file mode 100644 index 000000000..2308c1405 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/DescribeUserMetricsRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_DESCRIBEUSERMETRICSREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_DESCRIBEUSERMETRICSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT DescribeUserMetricsRequest : public RoaServiceRequest + { + + public: + DescribeUserMetricsRequest(); + ~DescribeUserMetricsRequest(); + + std::string getMetricType()const; + void setMetricType(const std::string& metricType); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + long getEndTime()const; + void setEndTime(long endTime); + long getStartTime()const; + void setStartTime(long startTime); + + private: + std::string metricType_; + std::string instanceId_; + long endTime_; + long startTime_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_DESCRIBEUSERMETRICSREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/DescribeUserMetricsResult.h b/airec/include/alibabacloud/airec/model/DescribeUserMetricsResult.h new file mode 100644 index 000000000..aef7b6d36 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/DescribeUserMetricsResult.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_DESCRIBEUSERMETRICSRESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_DESCRIBEUSERMETRICSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT DescribeUserMetricsResult : public ServiceResult + { + public: + struct ResultItem + { + struct DataPointsItem + { + float val; + long endTime; + long startTime; + }; + std::string sceneId; + std::vector dataPoints; + }; + + + DescribeUserMetricsResult(); + explicit DescribeUserMetricsResult(const std::string &payload); + ~DescribeUserMetricsResult(); + std::string getMessage()const; + std::string getCode()const; + std::vector getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + std::vector result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_DESCRIBEUSERMETRICSRESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/DowngradeInstanceRequest.h b/airec/include/alibabacloud/airec/model/DowngradeInstanceRequest.h new file mode 100644 index 000000000..861fb6c66 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/DowngradeInstanceRequest.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_AIREC_MODEL_DOWNGRADEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_DOWNGRADEINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT DowngradeInstanceRequest : public RoaServiceRequest + { + + public: + DowngradeInstanceRequest(); + ~DowngradeInstanceRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_DOWNGRADEINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/DowngradeInstanceResult.h b/airec/include/alibabacloud/airec/model/DowngradeInstanceResult.h new file mode 100644 index 000000000..6928f3187 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/DowngradeInstanceResult.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_AIREC_MODEL_DOWNGRADEINSTANCERESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_DOWNGRADEINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT DowngradeInstanceResult : public ServiceResult + { + public: + struct Result + { + std::string instanceId; + }; + + + DowngradeInstanceResult(); + explicit DowngradeInstanceResult(const std::string &payload); + ~DowngradeInstanceResult(); + std::string getMessage()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_DOWNGRADEINSTANCERESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ListDashboardDetailsFlowsRequest.h b/airec/include/alibabacloud/airec/model/ListDashboardDetailsFlowsRequest.h new file mode 100644 index 000000000..478046c62 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ListDashboardDetailsFlowsRequest.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_AIREC_MODEL_LISTDASHBOARDDETAILSFLOWSREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_LISTDASHBOARDDETAILSFLOWSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ListDashboardDetailsFlowsRequest : public RoaServiceRequest + { + + public: + ListDashboardDetailsFlowsRequest(); + ~ListDashboardDetailsFlowsRequest(); + + std::string getMetricType()const; + void setMetricType(const std::string& metricType); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getTraceIds()const; + void setTraceIds(const std::string& traceIds); + long getEndTime()const; + void setEndTime(long endTime); + long getStartTime()const; + void setStartTime(long startTime); + std::string getSceneIds()const; + void setSceneIds(const std::string& sceneIds); + + private: + std::string metricType_; + std::string instanceId_; + std::string traceIds_; + long endTime_; + long startTime_; + std::string sceneIds_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_LISTDASHBOARDDETAILSFLOWSREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ListDashboardDetailsFlowsResult.h b/airec/include/alibabacloud/airec/model/ListDashboardDetailsFlowsResult.h new file mode 100644 index 000000000..06689fd39 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ListDashboardDetailsFlowsResult.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_AIREC_MODEL_LISTDASHBOARDDETAILSFLOWSRESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_LISTDASHBOARDDETAILSFLOWSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ListDashboardDetailsFlowsResult : public ServiceResult + { + public: + struct Result + { + struct MetricDataItem + { + std::string sceneId; + std::string traceId; + std::string metricRes; + }; + std::string metricType; + std::vector metricData; + }; + + + ListDashboardDetailsFlowsResult(); + explicit ListDashboardDetailsFlowsResult(const std::string &payload); + ~ListDashboardDetailsFlowsResult(); + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_LISTDASHBOARDDETAILSFLOWSRESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ListDashboardDetailsRequest.h b/airec/include/alibabacloud/airec/model/ListDashboardDetailsRequest.h new file mode 100644 index 000000000..f59d17dc5 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ListDashboardDetailsRequest.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_AIREC_MODEL_LISTDASHBOARDDETAILSREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_LISTDASHBOARDDETAILSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ListDashboardDetailsRequest : public RoaServiceRequest + { + + public: + ListDashboardDetailsRequest(); + ~ListDashboardDetailsRequest(); + + std::string getMetricType()const; + void setMetricType(const std::string& metricType); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getTraceIds()const; + void setTraceIds(const std::string& traceIds); + long getEndTime()const; + void setEndTime(long endTime); + long getStartTime()const; + void setStartTime(long startTime); + std::string getSceneIds()const; + void setSceneIds(const std::string& sceneIds); + + private: + std::string metricType_; + std::string instanceId_; + std::string traceIds_; + long endTime_; + long startTime_; + std::string sceneIds_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_LISTDASHBOARDDETAILSREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ListDashboardDetailsResult.h b/airec/include/alibabacloud/airec/model/ListDashboardDetailsResult.h new file mode 100644 index 000000000..fb7eb9412 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ListDashboardDetailsResult.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_AIREC_MODEL_LISTDASHBOARDDETAILSRESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_LISTDASHBOARDDETAILSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ListDashboardDetailsResult : public ServiceResult + { + public: + struct ResultItem + { + struct MetricRes + { + std::string total; + std::string detail; + }; + std::string sceneId; + std::string traceId; + MetricRes metricRes; + }; + + + ListDashboardDetailsResult(); + explicit ListDashboardDetailsResult(const std::string &payload); + ~ListDashboardDetailsResult(); + std::vector getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_LISTDASHBOARDDETAILSRESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ListDashboardMetricsFlowsRequest.h b/airec/include/alibabacloud/airec/model/ListDashboardMetricsFlowsRequest.h new file mode 100644 index 000000000..5ba6563fa --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ListDashboardMetricsFlowsRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_LISTDASHBOARDMETRICSFLOWSREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_LISTDASHBOARDMETRICSFLOWSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ListDashboardMetricsFlowsRequest : public RoaServiceRequest + { + + public: + ListDashboardMetricsFlowsRequest(); + ~ListDashboardMetricsFlowsRequest(); + + std::string getMetricType()const; + void setMetricType(const std::string& metricType); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + long getEndTime()const; + void setEndTime(long endTime); + long getStartTime()const; + void setStartTime(long startTime); + + private: + std::string metricType_; + std::string instanceId_; + long endTime_; + long startTime_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_LISTDASHBOARDMETRICSFLOWSREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ListDashboardMetricsFlowsResult.h b/airec/include/alibabacloud/airec/model/ListDashboardMetricsFlowsResult.h new file mode 100644 index 000000000..485a88e38 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ListDashboardMetricsFlowsResult.h @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_LISTDASHBOARDMETRICSFLOWSRESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_LISTDASHBOARDMETRICSFLOWSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ListDashboardMetricsFlowsResult : public ServiceResult + { + public: + struct ResultItem + { + std::string metricType; + std::string metricData; + }; + + + ListDashboardMetricsFlowsResult(); + explicit ListDashboardMetricsFlowsResult(const std::string &payload); + ~ListDashboardMetricsFlowsResult(); + std::vector getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_LISTDASHBOARDMETRICSFLOWSRESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ListDashboardMetricsRequest.h b/airec/include/alibabacloud/airec/model/ListDashboardMetricsRequest.h new file mode 100644 index 000000000..20818b8fb --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ListDashboardMetricsRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_LISTDASHBOARDMETRICSREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_LISTDASHBOARDMETRICSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ListDashboardMetricsRequest : public RoaServiceRequest + { + + public: + ListDashboardMetricsRequest(); + ~ListDashboardMetricsRequest(); + + std::string getMetricType()const; + void setMetricType(const std::string& metricType); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + long getEndTime()const; + void setEndTime(long endTime); + long getStartTime()const; + void setStartTime(long startTime); + + private: + std::string metricType_; + std::string instanceId_; + long endTime_; + long startTime_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_LISTDASHBOARDMETRICSREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ListDashboardMetricsResult.h b/airec/include/alibabacloud/airec/model/ListDashboardMetricsResult.h new file mode 100644 index 000000000..f093ccb73 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ListDashboardMetricsResult.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_AIREC_MODEL_LISTDASHBOARDMETRICSRESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_LISTDASHBOARDMETRICSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ListDashboardMetricsResult : public ServiceResult + { + public: + struct ResultItem + { + struct DetailItem + { + std::string val; + std::string endTime; + std::string startTime; + }; + std::string total; + std::vector detail; + }; + + + ListDashboardMetricsResult(); + explicit ListDashboardMetricsResult(const std::string &payload); + ~ListDashboardMetricsResult(); + std::vector getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_LISTDASHBOARDMETRICSRESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ListDashboardParametersRequest.h b/airec/include/alibabacloud/airec/model/ListDashboardParametersRequest.h new file mode 100644 index 000000000..46eaac712 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ListDashboardParametersRequest.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_AIREC_MODEL_LISTDASHBOARDPARAMETERSREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_LISTDASHBOARDPARAMETERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ListDashboardParametersRequest : public RoaServiceRequest + { + + public: + ListDashboardParametersRequest(); + ~ListDashboardParametersRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_LISTDASHBOARDPARAMETERSREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ListDashboardParametersResult.h b/airec/include/alibabacloud/airec/model/ListDashboardParametersResult.h new file mode 100644 index 000000000..6322c09d5 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ListDashboardParametersResult.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_LISTDASHBOARDPARAMETERSRESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_LISTDASHBOARDPARAMETERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ListDashboardParametersResult : public ServiceResult + { + public: + struct Result + { + std::vector sceneId; + std::vector traceId; + }; + + + ListDashboardParametersResult(); + explicit ListDashboardParametersResult(const std::string &payload); + ~ListDashboardParametersResult(); + std::string getMessage()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_LISTDASHBOARDPARAMETERSRESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ListDashboardRequest.h b/airec/include/alibabacloud/airec/model/ListDashboardRequest.h new file mode 100644 index 000000000..589fb34e6 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ListDashboardRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_LISTDASHBOARDREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_LISTDASHBOARDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ListDashboardRequest : public RoaServiceRequest + { + + public: + ListDashboardRequest(); + ~ListDashboardRequest(); + + std::string getTraceId()const; + void setTraceId(const std::string& traceId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + long getEndDate()const; + void setEndDate(long endDate); + int getSize()const; + void setSize(int size); + std::string getSceneId()const; + void setSceneId(const std::string& sceneId); + int getPage()const; + void setPage(int page); + long getStartDate()const; + void setStartDate(long startDate); + + private: + std::string traceId_; + std::string instanceId_; + long endDate_; + int size_; + std::string sceneId_; + int page_; + long startDate_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_LISTDASHBOARDREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ListDashboardResult.h b/airec/include/alibabacloud/airec/model/ListDashboardResult.h new file mode 100644 index 000000000..480ec409a --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ListDashboardResult.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_LISTDASHBOARDRESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_LISTDASHBOARDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ListDashboardResult : public ServiceResult + { + public: + struct Result + { + struct ListItem + { + float ctr; + std::string sceneId; + long uv; + long clickUser; + float perUvBhv; + float perUvClick; + float uvCtr; + long pv; + long activeItem; + std::string traceId; + long click; + long bizDate; + }; + int num; + std::vector list; + }; + + + ListDashboardResult(); + explicit ListDashboardResult(const std::string &payload); + ~ListDashboardResult(); + std::string getMessage()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_LISTDASHBOARDRESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ListDashboardUidRequest.h b/airec/include/alibabacloud/airec/model/ListDashboardUidRequest.h new file mode 100644 index 000000000..b0908f3dd --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ListDashboardUidRequest.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_AIREC_MODEL_LISTDASHBOARDUIDREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_LISTDASHBOARDUIDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ListDashboardUidRequest : public RoaServiceRequest + { + + public: + ListDashboardUidRequest(); + ~ListDashboardUidRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_LISTDASHBOARDUIDREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ListDashboardUidResult.h b/airec/include/alibabacloud/airec/model/ListDashboardUidResult.h new file mode 100644 index 000000000..4528031b3 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ListDashboardUidResult.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_LISTDASHBOARDUIDRESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_LISTDASHBOARDUIDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ListDashboardUidResult : public ServiceResult + { + public: + struct Result + { + std::vector uid; + int num; + }; + + + ListDashboardUidResult(); + explicit ListDashboardUidResult(const std::string &payload); + ~ListDashboardUidResult(); + std::string getMessage()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_LISTDASHBOARDUIDRESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ListDataSetRequest.h b/airec/include/alibabacloud/airec/model/ListDataSetRequest.h new file mode 100644 index 000000000..7a358cb27 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ListDataSetRequest.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_AIREC_MODEL_LISTDATASETREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_LISTDATASETREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ListDataSetRequest : public RoaServiceRequest + { + + public: + ListDataSetRequest(); + ~ListDataSetRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_LISTDATASETREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ListDataSetResult.h b/airec/include/alibabacloud/airec/model/ListDataSetResult.h new file mode 100644 index 000000000..205ac8ecb --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ListDataSetResult.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_AIREC_MODEL_LISTDATASETRESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_LISTDATASETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ListDataSetResult : public ServiceResult + { + public: + struct ResultItem + { + std::string versionId; + long gmtCreate; + std::string instanceId; + std::string state; + long gmtModified; + }; + + + ListDataSetResult(); + explicit ListDataSetResult(const std::string &payload); + ~ListDataSetResult(); + std::string getMessage()const; + std::string getCode()const; + std::vector getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + std::vector result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_LISTDATASETRESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ListDataSourceRequest.h b/airec/include/alibabacloud/airec/model/ListDataSourceRequest.h new file mode 100644 index 000000000..725b19d78 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ListDataSourceRequest.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_AIREC_MODEL_LISTDATASOURCEREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_LISTDATASOURCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ListDataSourceRequest : public RoaServiceRequest + { + + public: + ListDataSourceRequest(); + ~ListDataSourceRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_LISTDATASOURCEREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ListDataSourceResult.h b/airec/include/alibabacloud/airec/model/ListDataSourceResult.h new file mode 100644 index 000000000..a56ba26a0 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ListDataSourceResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_LISTDATASOURCERESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_LISTDATASOURCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ListDataSourceResult : public ServiceResult + { + public: + struct ResultItem + { + struct Meta + { + std::string path; + std::string tableName; + std::string partition; + std::string type; + std::string bucketName; + std::string projectName; + std::string accessKeyId; + long timestamp; + }; + Meta meta; + std::string tableName; + std::string gmtCreate; + std::string gmtModified; + }; + + + ListDataSourceResult(); + explicit ListDataSourceResult(const std::string &payload); + ~ListDataSourceResult(); + std::string getMessage()const; + std::string getCode()const; + std::vector getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + std::vector result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_LISTDATASOURCERESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ListDiversifyRequest.h b/airec/include/alibabacloud/airec/model/ListDiversifyRequest.h new file mode 100644 index 000000000..4f248e7b3 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ListDiversifyRequest.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_AIREC_MODEL_LISTDIVERSIFYREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_LISTDIVERSIFYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ListDiversifyRequest : public RoaServiceRequest + { + + public: + ListDiversifyRequest(); + ~ListDiversifyRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_LISTDIVERSIFYREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ListDiversifyResult.h b/airec/include/alibabacloud/airec/model/ListDiversifyResult.h new file mode 100644 index 000000000..fb83aae25 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ListDiversifyResult.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_LISTDIVERSIFYRESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_LISTDIVERSIFYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ListDiversifyResult : public ServiceResult + { + public: + struct ResultItem + { + struct _Parameter + { + int window; + int categoryIndex; + }; + std::string gmtCreate; + std::string gmtModified; + _Parameter _parameter; + std::string name; + }; + + + ListDiversifyResult(); + explicit ListDiversifyResult(const std::string &payload); + ~ListDiversifyResult(); + std::string getMessage()const; + std::string getCode()const; + std::vector getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + std::vector result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_LISTDIVERSIFYRESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ListInstanceRequest.h b/airec/include/alibabacloud/airec/model/ListInstanceRequest.h new file mode 100644 index 000000000..0819f17cc --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ListInstanceRequest.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_AIREC_MODEL_LISTINSTANCEREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_LISTINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ListInstanceRequest : public RoaServiceRequest + { + + public: + ListInstanceRequest(); + ~ListInstanceRequest(); + + int getSize()const; + void setSize(int size); + int getPage()const; + void setPage(int page); + + private: + int size_; + int page_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_LISTINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ListInstanceResult.h b/airec/include/alibabacloud/airec/model/ListInstanceResult.h new file mode 100644 index 000000000..550458a66 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ListInstanceResult.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_AIREC_MODEL_LISTINSTANCERESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_LISTINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ListInstanceResult : public ServiceResult + { + public: + struct ResultItem + { + std::string status; + std::string instanceId; + std::string gmtModified; + std::string lockMode; + std::string scene; + std::string name; + std::string industry; + std::string type; + std::string gmtCreate; + std::string chargeType; + std::string expiredTime; + std::string commodityCode; + std::string regionId; + std::string dataSetVersion; + }; + + + ListInstanceResult(); + explicit ListInstanceResult(const std::string &payload); + ~ListInstanceResult(); + std::string getMessage()const; + std::string getCode()const; + std::vector getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + std::vector result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_LISTINSTANCERESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ListInstanceTaskRequest.h b/airec/include/alibabacloud/airec/model/ListInstanceTaskRequest.h new file mode 100644 index 000000000..a22c68621 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ListInstanceTaskRequest.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_AIREC_MODEL_LISTINSTANCETASKREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_LISTINSTANCETASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ListInstanceTaskRequest : public RoaServiceRequest + { + + public: + ListInstanceTaskRequest(); + ~ListInstanceTaskRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_LISTINSTANCETASKREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ListInstanceTaskResult.h b/airec/include/alibabacloud/airec/model/ListInstanceTaskResult.h new file mode 100644 index 000000000..74bb487aa --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ListInstanceTaskResult.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_AIREC_MODEL_LISTINSTANCETASKRESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_LISTINSTANCETASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ListInstanceTaskResult : public ServiceResult + { + public: + struct ResultItem + { + struct SubProgressInfosItem + { + std::string type; + int progress; + int totalNum; + int finishedNum; + std::string detail; + }; + int totalProgress; + std::vector subProgressInfos; + std::string name; + }; + + + ListInstanceTaskResult(); + explicit ListInstanceTaskResult(const std::string &payload); + ~ListInstanceTaskResult(); + std::string getMessage()const; + std::string getCode()const; + std::vector getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + std::vector result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_LISTINSTANCETASKRESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ListMixRequest.h b/airec/include/alibabacloud/airec/model/ListMixRequest.h new file mode 100644 index 000000000..0f71df6b0 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ListMixRequest.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_AIREC_MODEL_LISTMIXREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_LISTMIXREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ListMixRequest : public RoaServiceRequest + { + + public: + ListMixRequest(); + ~ListMixRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_LISTMIXREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ListMixResult.h b/airec/include/alibabacloud/airec/model/ListMixResult.h new file mode 100644 index 000000000..8feae8f42 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ListMixResult.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_LISTMIXRESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_LISTMIXRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ListMixResult : public ServiceResult + { + public: + struct ResultItem + { + struct _Parameter + { + struct SettingsItem + { + int value; + std::string name; + }; + std::vector settings; + }; + std::string gmtCreate; + std::string gmtModified; + _Parameter _parameter; + std::string name; + }; + + + ListMixResult(); + explicit ListMixResult(const std::string &payload); + ~ListMixResult(); + std::string getMessage()const; + std::string getCode()const; + std::vector getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + std::vector result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_LISTMIXRESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ListRuleConditionsRequest.h b/airec/include/alibabacloud/airec/model/ListRuleConditionsRequest.h new file mode 100644 index 000000000..f01c0c916 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ListRuleConditionsRequest.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_AIREC_MODEL_LISTRULECONDITIONSREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_LISTRULECONDITIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ListRuleConditionsRequest : public RoaServiceRequest + { + + public: + ListRuleConditionsRequest(); + ~ListRuleConditionsRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_LISTRULECONDITIONSREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ListRuleConditionsResult.h b/airec/include/alibabacloud/airec/model/ListRuleConditionsResult.h new file mode 100644 index 000000000..6705a1111 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ListRuleConditionsResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_LISTRULECONDITIONSRESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_LISTRULECONDITIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ListRuleConditionsResult : public ServiceResult + { + public: + struct ResultItem + { + std::string selectType; + std::string selectionOperation; + std::string selectValue; + }; + + + ListRuleConditionsResult(); + explicit ListRuleConditionsResult(const std::string &payload); + ~ListRuleConditionsResult(); + std::vector getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_LISTRULECONDITIONSRESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ListRuleTasksRequest.h b/airec/include/alibabacloud/airec/model/ListRuleTasksRequest.h new file mode 100644 index 000000000..d2f8a22da --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ListRuleTasksRequest.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_AIREC_MODEL_LISTRULETASKSREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_LISTRULETASKSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ListRuleTasksRequest : public RoaServiceRequest + { + + public: + ListRuleTasksRequest(); + ~ListRuleTasksRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getSceneId()const; + void setSceneId(const std::string& sceneId); + + private: + std::string instanceId_; + std::string sceneId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_LISTRULETASKSREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ListRuleTasksResult.h b/airec/include/alibabacloud/airec/model/ListRuleTasksResult.h new file mode 100644 index 000000000..fff526739 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ListRuleTasksResult.h @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_LISTRULETASKSRESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_LISTRULETASKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ListRuleTasksResult : public ServiceResult + { + public: + struct Result + { + int finishRate; + int finishTime; + }; + + + ListRuleTasksResult(); + explicit ListRuleTasksResult(const std::string &payload); + ~ListRuleTasksResult(); + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_LISTRULETASKSRESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ListRulesRequest.h b/airec/include/alibabacloud/airec/model/ListRulesRequest.h new file mode 100644 index 000000000..1d4adcb8e --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ListRulesRequest.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_AIREC_MODEL_LISTRULESREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_LISTRULESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ListRulesRequest : public RoaServiceRequest + { + + public: + ListRulesRequest(); + ~ListRulesRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + int getSize()const; + void setSize(int size); + std::string getRuleType()const; + void setRuleType(const std::string& ruleType); + std::string getSceneId()const; + void setSceneId(const std::string& sceneId); + long getEndTime()const; + void setEndTime(long endTime); + int getPage()const; + void setPage(int page); + long getStartTime()const; + void setStartTime(long startTime); + std::string getStatus()const; + void setStatus(const std::string& status); + + private: + std::string instanceId_; + int size_; + std::string ruleType_; + std::string sceneId_; + long endTime_; + int page_; + long startTime_; + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_LISTRULESREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ListRulesResult.h b/airec/include/alibabacloud/airec/model/ListRulesResult.h new file mode 100644 index 000000000..bcd36290e --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ListRulesResult.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_LISTRULESRESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_LISTRULESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ListRulesResult : public ServiceResult + { + public: + struct ResultItem + { + std::string status; + long gmtCreate; + std::string ruleId; + long gmtModified; + }; + + + ListRulesResult(); + explicit ListRulesResult(const std::string &payload); + ~ListRulesResult(); + std::vector getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_LISTRULESRESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ListSceneItemsRequest.h b/airec/include/alibabacloud/airec/model/ListSceneItemsRequest.h new file mode 100644 index 000000000..594c8c64f --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ListSceneItemsRequest.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_AIREC_MODEL_LISTSCENEITEMSREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_LISTSCENEITEMSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ListSceneItemsRequest : public RoaServiceRequest + { + + public: + ListSceneItemsRequest(); + ~ListSceneItemsRequest(); + + std::string getSelectionRuleId()const; + void setSelectionRuleId(const std::string& selectionRuleId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + int getSize()const; + void setSize(int size); + int getQueryCount()const; + void setQueryCount(int queryCount); + std::string getSceneId()const; + void setSceneId(const std::string& sceneId); + std::string getOperationRuleId()const; + void setOperationRuleId(const std::string& operationRuleId); + std::string getPreviewType()const; + void setPreviewType(const std::string& previewType); + int getPage()const; + void setPage(int page); + + private: + std::string selectionRuleId_; + std::string instanceId_; + int size_; + int queryCount_; + std::string sceneId_; + std::string operationRuleId_; + std::string previewType_; + int page_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_LISTSCENEITEMSREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ListSceneItemsResult.h b/airec/include/alibabacloud/airec/model/ListSceneItemsResult.h new file mode 100644 index 000000000..bf03dd249 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ListSceneItemsResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_LISTSCENEITEMSRESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_LISTSCENEITEMSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ListSceneItemsResult : public ServiceResult + { + public: + struct Result + { + struct Total + { + long instanceRecommendItem; + long totalCount; + long sceneRecommendItem; + long weightItem; + long sceneWeightItem; + }; + struct DetailItem + { + std::string status; + std::string categoryPath; + std::string itemType; + std::string channel; + std::string title; + std::string author; + std::string duration; + std::string expireTime; + std::string pubTime; + std::string brandId; + std::string itemId; + std::string shopId; + }; + Total total; + std::vector detail; + }; + + + ListSceneItemsResult(); + explicit ListSceneItemsResult(const std::string &payload); + ~ListSceneItemsResult(); + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_LISTSCENEITEMSRESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ListScenesRequest.h b/airec/include/alibabacloud/airec/model/ListScenesRequest.h new file mode 100644 index 000000000..b160cd063 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ListScenesRequest.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_AIREC_MODEL_LISTSCENESREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_LISTSCENESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ListScenesRequest : public RoaServiceRequest + { + + public: + ListScenesRequest(); + ~ListScenesRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_LISTSCENESREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ListScenesResult.h b/airec/include/alibabacloud/airec/model/ListScenesResult.h new file mode 100644 index 000000000..b9c35cfe3 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ListScenesResult.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_LISTSCENESRESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_LISTSCENESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ListScenesResult : public ServiceResult + { + public: + struct ResultItem + { + std::string sceneId; + std::string status; + std::string gmtCreate; + std::string gmtModified; + }; + + + ListScenesResult(); + explicit ListScenesResult(const std::string &payload); + ~ListScenesResult(); + std::vector getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_LISTSCENESRESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ListUmengAppkeysRequest.h b/airec/include/alibabacloud/airec/model/ListUmengAppkeysRequest.h new file mode 100644 index 000000000..e311b737f --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ListUmengAppkeysRequest.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_AIREC_MODEL_LISTUMENGAPPKEYSREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_LISTUMENGAPPKEYSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ListUmengAppkeysRequest : public RoaServiceRequest + { + + public: + ListUmengAppkeysRequest(); + ~ListUmengAppkeysRequest(); + + + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_LISTUMENGAPPKEYSREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ListUmengAppkeysResult.h b/airec/include/alibabacloud/airec/model/ListUmengAppkeysResult.h new file mode 100644 index 000000000..0d956effb --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ListUmengAppkeysResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_LISTUMENGAPPKEYSRESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_LISTUMENGAPPKEYSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ListUmengAppkeysResult : public ServiceResult + { + public: + struct ResultItem + { + std::string platform; + std::string appkey; + std::string name; + }; + + + ListUmengAppkeysResult(); + explicit ListUmengAppkeysResult(const std::string &payload); + ~ListUmengAppkeysResult(); + std::string getMessage()const; + std::string getCode()const; + std::vector getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + std::vector result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_LISTUMENGAPPKEYSRESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ModifyDataSourceRequest.h b/airec/include/alibabacloud/airec/model/ModifyDataSourceRequest.h new file mode 100644 index 000000000..2c716896e --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ModifyDataSourceRequest.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_AIREC_MODEL_MODIFYDATASOURCEREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_MODIFYDATASOURCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ModifyDataSourceRequest : public RoaServiceRequest + { + + public: + ModifyDataSourceRequest(); + ~ModifyDataSourceRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getTableName()const; + void setTableName(const std::string& tableName); + + private: + std::string instanceId_; + std::string tableName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_MODIFYDATASOURCEREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ModifyDataSourceResult.h b/airec/include/alibabacloud/airec/model/ModifyDataSourceResult.h new file mode 100644 index 000000000..9886224c5 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ModifyDataSourceResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_MODIFYDATASOURCERESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_MODIFYDATASOURCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ModifyDataSourceResult : public ServiceResult + { + public: + struct Result + { + struct Meta + { + std::string path; + std::string tableName; + std::string partition; + std::string type; + std::string bucketName; + std::string projectName; + std::string accessKeyId; + long timestamp; + }; + Meta meta; + std::string tableName; + std::string gmtCreate; + std::string gmtModified; + }; + + + ModifyDataSourceResult(); + explicit ModifyDataSourceResult(const std::string &payload); + ~ModifyDataSourceResult(); + std::string getMessage()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_MODIFYDATASOURCERESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ModifyDiversifyRequest.h b/airec/include/alibabacloud/airec/model/ModifyDiversifyRequest.h new file mode 100644 index 000000000..a25b7e97c --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ModifyDiversifyRequest.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_AIREC_MODEL_MODIFYDIVERSIFYREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_MODIFYDIVERSIFYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ModifyDiversifyRequest : public RoaServiceRequest + { + + public: + ModifyDiversifyRequest(); + ~ModifyDiversifyRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getName()const; + void setName(const std::string& name); + + private: + std::string instanceId_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_MODIFYDIVERSIFYREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ModifyDiversifyResult.h b/airec/include/alibabacloud/airec/model/ModifyDiversifyResult.h new file mode 100644 index 000000000..0406e806e --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ModifyDiversifyResult.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_MODIFYDIVERSIFYRESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_MODIFYDIVERSIFYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ModifyDiversifyResult : public ServiceResult + { + public: + struct Result + { + struct _Parameter + { + int window; + int categoryIndex; + }; + std::string gmtCreate; + std::string gmtModified; + _Parameter _parameter; + std::string name; + }; + + + ModifyDiversifyResult(); + explicit ModifyDiversifyResult(const std::string &payload); + ~ModifyDiversifyResult(); + std::string getMessage()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_MODIFYDIVERSIFYRESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ModifyExposureSettingsRequest.h b/airec/include/alibabacloud/airec/model/ModifyExposureSettingsRequest.h new file mode 100644 index 000000000..5956fea2f --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ModifyExposureSettingsRequest.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_AIREC_MODEL_MODIFYEXPOSURESETTINGSREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_MODIFYEXPOSURESETTINGSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ModifyExposureSettingsRequest : public RoaServiceRequest + { + + public: + ModifyExposureSettingsRequest(); + ~ModifyExposureSettingsRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_MODIFYEXPOSURESETTINGSREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ModifyExposureSettingsResult.h b/airec/include/alibabacloud/airec/model/ModifyExposureSettingsResult.h new file mode 100644 index 000000000..2fe63a551 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ModifyExposureSettingsResult.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_MODIFYEXPOSURESETTINGSRESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_MODIFYEXPOSURESETTINGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ModifyExposureSettingsResult : public ServiceResult + { + public: + struct Result + { + bool scenarioBased; + int durationSeconds; + }; + + + ModifyExposureSettingsResult(); + explicit ModifyExposureSettingsResult(const std::string &payload); + ~ModifyExposureSettingsResult(); + std::string getMessage()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_MODIFYEXPOSURESETTINGSRESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ModifyInstanceRequest.h b/airec/include/alibabacloud/airec/model/ModifyInstanceRequest.h new file mode 100644 index 000000000..fe5f63dbf --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ModifyInstanceRequest.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_AIREC_MODEL_MODIFYINSTANCEREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_MODIFYINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ModifyInstanceRequest : public RoaServiceRequest + { + + public: + ModifyInstanceRequest(); + ~ModifyInstanceRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_MODIFYINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ModifyInstanceResult.h b/airec/include/alibabacloud/airec/model/ModifyInstanceResult.h new file mode 100644 index 000000000..3236dc9d1 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ModifyInstanceResult.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_AIREC_MODEL_MODIFYINSTANCERESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_MODIFYINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ModifyInstanceResult : public ServiceResult + { + public: + struct Result + { + std::string status; + std::string instanceId; + std::string gmtModified; + std::string lockMode; + std::string scene; + std::string name; + std::string industry; + std::string type; + std::string gmtCreate; + std::string chargeType; + std::string expiredTime; + std::string commodityCode; + std::string regionId; + std::string dataSetVersion; + }; + + + ModifyInstanceResult(); + explicit ModifyInstanceResult(const std::string &payload); + ~ModifyInstanceResult(); + std::string getMessage()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_MODIFYINSTANCERESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ModifyMixRequest.h b/airec/include/alibabacloud/airec/model/ModifyMixRequest.h new file mode 100644 index 000000000..1430ff8ad --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ModifyMixRequest.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_AIREC_MODEL_MODIFYMIXREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_MODIFYMIXREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ModifyMixRequest : public RoaServiceRequest + { + + public: + ModifyMixRequest(); + ~ModifyMixRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getName()const; + void setName(const std::string& name); + + private: + std::string instanceId_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_MODIFYMIXREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ModifyMixResult.h b/airec/include/alibabacloud/airec/model/ModifyMixResult.h new file mode 100644 index 000000000..9c3381ec1 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ModifyMixResult.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_MODIFYMIXRESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_MODIFYMIXRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ModifyMixResult : public ServiceResult + { + public: + struct Result + { + struct _Parameter + { + struct SettingsItem + { + int value; + std::string name; + }; + std::vector settings; + }; + std::string gmtCreate; + std::string gmtModified; + _Parameter _parameter; + std::string name; + }; + + + ModifyMixResult(); + explicit ModifyMixResult(const std::string &payload); + ~ModifyMixResult(); + std::string getMessage()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_MODIFYMIXRESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ModifyRuleRequest.h b/airec/include/alibabacloud/airec/model/ModifyRuleRequest.h new file mode 100644 index 000000000..267163bcf --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ModifyRuleRequest.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_AIREC_MODEL_MODIFYRULEREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_MODIFYRULEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ModifyRuleRequest : public RoaServiceRequest + { + + public: + ModifyRuleRequest(); + ~ModifyRuleRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getRuleId()const; + void setRuleId(const std::string& ruleId); + + private: + std::string instanceId_; + std::string ruleId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_MODIFYRULEREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ModifyRuleResult.h b/airec/include/alibabacloud/airec/model/ModifyRuleResult.h new file mode 100644 index 000000000..cecaa8590 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ModifyRuleResult.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_AIREC_MODEL_MODIFYRULERESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_MODIFYRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ModifyRuleResult : public ServiceResult + { + public: + struct Result + { + std::string status; + std::string gmtCreate; + std::string ruleId; + std::string gmtModified; + std::string ruleMeta; + }; + + + ModifyRuleResult(); + explicit ModifyRuleResult(const std::string &payload); + ~ModifyRuleResult(); + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_MODIFYRULERESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ModifySceneRequest.h b/airec/include/alibabacloud/airec/model/ModifySceneRequest.h new file mode 100644 index 000000000..458f9306a --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ModifySceneRequest.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_AIREC_MODEL_MODIFYSCENEREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_MODIFYSCENEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ModifySceneRequest : public RoaServiceRequest + { + + public: + ModifySceneRequest(); + ~ModifySceneRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getSceneId()const; + void setSceneId(const std::string& sceneId); + + private: + std::string instanceId_; + std::string sceneId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_MODIFYSCENEREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ModifySceneResult.h b/airec/include/alibabacloud/airec/model/ModifySceneResult.h new file mode 100644 index 000000000..228b3223e --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ModifySceneResult.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_MODIFYSCENERESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_MODIFYSCENERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ModifySceneResult : public ServiceResult + { + public: + struct Result + { + std::string sceneId; + std::string status; + std::string gmtCreate; + std::string gmtModified; + }; + + + ModifySceneResult(); + explicit ModifySceneResult(const std::string &payload); + ~ModifySceneResult(); + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_MODIFYSCENERESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/PublishRuleRequest.h b/airec/include/alibabacloud/airec/model/PublishRuleRequest.h new file mode 100644 index 000000000..727f6542e --- /dev/null +++ b/airec/include/alibabacloud/airec/model/PublishRuleRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_PUBLISHRULEREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_PUBLISHRULEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT PublishRuleRequest : public RoaServiceRequest + { + + public: + PublishRuleRequest(); + ~PublishRuleRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getRuleType()const; + void setRuleType(const std::string& ruleType); + std::string getSceneId()const; + void setSceneId(const std::string& sceneId); + std::string getRuleId()const; + void setRuleId(const std::string& ruleId); + + private: + std::string instanceId_; + std::string ruleType_; + std::string sceneId_; + std::string ruleId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_PUBLISHRULEREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/PublishRuleResult.h b/airec/include/alibabacloud/airec/model/PublishRuleResult.h new file mode 100644 index 000000000..546a563dc --- /dev/null +++ b/airec/include/alibabacloud/airec/model/PublishRuleResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_PUBLISHRULERESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_PUBLISHRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT PublishRuleResult : public ServiceResult + { + public: + struct Result + { + std::string ruleId; + }; + + + PublishRuleResult(); + explicit PublishRuleResult(const std::string &payload); + ~PublishRuleResult(); + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_PUBLISHRULERESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/PushDocumentRequest.h b/airec/include/alibabacloud/airec/model/PushDocumentRequest.h new file mode 100644 index 000000000..96166274b --- /dev/null +++ b/airec/include/alibabacloud/airec/model/PushDocumentRequest.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_AIREC_MODEL_PUSHDOCUMENTREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_PUSHDOCUMENTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT PushDocumentRequest : public RoaServiceRequest + { + + public: + PushDocumentRequest(); + ~PushDocumentRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getTableName()const; + void setTableName(const std::string& tableName); + + private: + std::string instanceId_; + std::string tableName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_PUSHDOCUMENTREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/PushDocumentResult.h b/airec/include/alibabacloud/airec/model/PushDocumentResult.h new file mode 100644 index 000000000..19a5c3f50 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/PushDocumentResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_PUSHDOCUMENTRESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_PUSHDOCUMENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT PushDocumentResult : public ServiceResult + { + public: + + + PushDocumentResult(); + explicit PushDocumentResult(const std::string &payload); + ~PushDocumentResult(); + std::string getMessage()const; + std::string getCode()const; + bool getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_PUSHDOCUMENTRESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/PushInterventionRequest.h b/airec/include/alibabacloud/airec/model/PushInterventionRequest.h new file mode 100644 index 000000000..a99237669 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/PushInterventionRequest.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_AIREC_MODEL_PUSHINTERVENTIONREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_PUSHINTERVENTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT PushInterventionRequest : public RoaServiceRequest + { + + public: + PushInterventionRequest(); + ~PushInterventionRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_PUSHINTERVENTIONREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/PushInterventionResult.h b/airec/include/alibabacloud/airec/model/PushInterventionResult.h new file mode 100644 index 000000000..7ae5e24e7 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/PushInterventionResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_PUSHINTERVENTIONRESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_PUSHINTERVENTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT PushInterventionResult : public ServiceResult + { + public: + + + PushInterventionResult(); + explicit PushInterventionResult(const std::string &payload); + ~PushInterventionResult(); + std::string getMessage()const; + std::string getCode()const; + bool getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_PUSHINTERVENTIONRESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/QueryDataMessageRequest.h b/airec/include/alibabacloud/airec/model/QueryDataMessageRequest.h new file mode 100644 index 000000000..897dbe6e7 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/QueryDataMessageRequest.h @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_QUERYDATAMESSAGEREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_QUERYDATAMESSAGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT QueryDataMessageRequest : public RoaServiceRequest + { + + public: + QueryDataMessageRequest(); + ~QueryDataMessageRequest(); + + std::string getItemId()const; + void setItemId(const std::string& itemId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getItemType()const; + void setItemType(const std::string& itemType); + std::string getCmdType()const; + void setCmdType(const std::string& cmdType); + int getSize()const; + void setSize(int size); + long getEndTime()const; + void setEndTime(long endTime); + std::string getUserType()const; + void setUserType(const std::string& userType); + long getStartTime()const; + void setStartTime(long startTime); + int getPage()const; + void setPage(int page); + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getTable()const; + void setTable(const std::string& table); + + private: + std::string itemId_; + std::string instanceId_; + std::string itemType_; + std::string cmdType_; + int size_; + long endTime_; + std::string userType_; + long startTime_; + int page_; + std::string userId_; + std::string table_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_QUERYDATAMESSAGEREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/QueryDataMessageResult.h b/airec/include/alibabacloud/airec/model/QueryDataMessageResult.h new file mode 100644 index 000000000..4272f8138 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/QueryDataMessageResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_QUERYDATAMESSAGERESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_QUERYDATAMESSAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT QueryDataMessageResult : public ServiceResult + { + public: + + + QueryDataMessageResult(); + explicit QueryDataMessageResult(const std::string &payload); + ~QueryDataMessageResult(); + std::string getMessage()const; + std::string getCode()const; + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_QUERYDATAMESSAGERESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/QueryExceptionHistoryRequest.h b/airec/include/alibabacloud/airec/model/QueryExceptionHistoryRequest.h new file mode 100644 index 000000000..3c9d7032c --- /dev/null +++ b/airec/include/alibabacloud/airec/model/QueryExceptionHistoryRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_QUERYEXCEPTIONHISTORYREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_QUERYEXCEPTIONHISTORYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT QueryExceptionHistoryRequest : public RoaServiceRequest + { + + public: + QueryExceptionHistoryRequest(); + ~QueryExceptionHistoryRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + long getEndTime()const; + void setEndTime(long endTime); + long getStartTime()const; + void setStartTime(long startTime); + std::string getType()const; + void setType(const std::string& type); + + private: + std::string instanceId_; + long endTime_; + long startTime_; + std::string type_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_QUERYEXCEPTIONHISTORYREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/QueryExceptionHistoryResult.h b/airec/include/alibabacloud/airec/model/QueryExceptionHistoryResult.h new file mode 100644 index 000000000..b7a63defb --- /dev/null +++ b/airec/include/alibabacloud/airec/model/QueryExceptionHistoryResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_QUERYEXCEPTIONHISTORYRESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_QUERYEXCEPTIONHISTORYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT QueryExceptionHistoryResult : public ServiceResult + { + public: + + + QueryExceptionHistoryResult(); + explicit QueryExceptionHistoryResult(const std::string &payload); + ~QueryExceptionHistoryResult(); + std::string getMessage()const; + std::string getCode()const; + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_QUERYEXCEPTIONHISTORYRESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/QueryRawDataRequest.h b/airec/include/alibabacloud/airec/model/QueryRawDataRequest.h new file mode 100644 index 000000000..1cb6333fe --- /dev/null +++ b/airec/include/alibabacloud/airec/model/QueryRawDataRequest.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_AIREC_MODEL_QUERYRAWDATAREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_QUERYRAWDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT QueryRawDataRequest : public RoaServiceRequest + { + + public: + QueryRawDataRequest(); + ~QueryRawDataRequest(); + + std::string getItemId()const; + void setItemId(const std::string& itemId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getItemType()const; + void setItemType(const std::string& itemType); + std::string getUserType()const; + void setUserType(const std::string& userType); + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getTable()const; + void setTable(const std::string& table); + + private: + std::string itemId_; + std::string instanceId_; + std::string itemType_; + std::string userType_; + std::string userId_; + std::string table_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_QUERYRAWDATAREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/QueryRawDataResult.h b/airec/include/alibabacloud/airec/model/QueryRawDataResult.h new file mode 100644 index 000000000..f7e094d15 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/QueryRawDataResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_QUERYRAWDATARESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_QUERYRAWDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT QueryRawDataResult : public ServiceResult + { + public: + + + QueryRawDataResult(); + explicit QueryRawDataResult(const std::string &payload); + ~QueryRawDataResult(); + std::string getMessage()const; + std::string getCode()const; + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_QUERYRAWDATARESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/QuerySingleAggregationReportRequest.h b/airec/include/alibabacloud/airec/model/QuerySingleAggregationReportRequest.h new file mode 100644 index 000000000..6ec1f98cd --- /dev/null +++ b/airec/include/alibabacloud/airec/model/QuerySingleAggregationReportRequest.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_AIREC_MODEL_QUERYSINGLEAGGREGATIONREPORTREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_QUERYSINGLEAGGREGATIONREPORTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT QuerySingleAggregationReportRequest : public RoaServiceRequest + { + + public: + QuerySingleAggregationReportRequest(); + ~QuerySingleAggregationReportRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_QUERYSINGLEAGGREGATIONREPORTREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/QuerySingleAggregationReportResult.h b/airec/include/alibabacloud/airec/model/QuerySingleAggregationReportResult.h new file mode 100644 index 000000000..abbe6af08 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/QuerySingleAggregationReportResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_QUERYSINGLEAGGREGATIONREPORTRESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_QUERYSINGLEAGGREGATIONREPORTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT QuerySingleAggregationReportResult : public ServiceResult + { + public: + + + QuerySingleAggregationReportResult(); + explicit QuerySingleAggregationReportResult(const std::string &payload); + ~QuerySingleAggregationReportResult(); + std::string getMessage()const; + std::string getCode()const; + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_QUERYSINGLEAGGREGATIONREPORTRESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/QuerySingleReportRequest.h b/airec/include/alibabacloud/airec/model/QuerySingleReportRequest.h new file mode 100644 index 000000000..8f534647c --- /dev/null +++ b/airec/include/alibabacloud/airec/model/QuerySingleReportRequest.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_AIREC_MODEL_QUERYSINGLEREPORTREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_QUERYSINGLEREPORTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT QuerySingleReportRequest : public RoaServiceRequest + { + + public: + QuerySingleReportRequest(); + ~QuerySingleReportRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getReportType()const; + void setReportType(const std::string& reportType); + + private: + std::string instanceId_; + std::string reportType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_QUERYSINGLEREPORTREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/QuerySingleReportResult.h b/airec/include/alibabacloud/airec/model/QuerySingleReportResult.h new file mode 100644 index 000000000..96b95d7ef --- /dev/null +++ b/airec/include/alibabacloud/airec/model/QuerySingleReportResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_QUERYSINGLEREPORTRESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_QUERYSINGLEREPORTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT QuerySingleReportResult : public ServiceResult + { + public: + + + QuerySingleReportResult(); + explicit QuerySingleReportResult(const std::string &payload); + ~QuerySingleReportResult(); + std::string getMessage()const; + std::string getCode()const; + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_QUERYSINGLEREPORTRESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/QuerySyncReportAggregationRequest.h b/airec/include/alibabacloud/airec/model/QuerySyncReportAggregationRequest.h new file mode 100644 index 000000000..7ea623a02 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/QuerySyncReportAggregationRequest.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_AIREC_MODEL_QUERYSYNCREPORTAGGREGATIONREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_QUERYSYNCREPORTAGGREGATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT QuerySyncReportAggregationRequest : public RoaServiceRequest + { + + public: + QuerySyncReportAggregationRequest(); + ~QuerySyncReportAggregationRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + long getEndTime()const; + void setEndTime(long endTime); + long getStartTime()const; + void setStartTime(long startTime); + + private: + std::string instanceId_; + long endTime_; + long startTime_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_QUERYSYNCREPORTAGGREGATIONREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/QuerySyncReportAggregationResult.h b/airec/include/alibabacloud/airec/model/QuerySyncReportAggregationResult.h new file mode 100644 index 000000000..949c9a1be --- /dev/null +++ b/airec/include/alibabacloud/airec/model/QuerySyncReportAggregationResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_QUERYSYNCREPORTAGGREGATIONRESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_QUERYSYNCREPORTAGGREGATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT QuerySyncReportAggregationResult : public ServiceResult + { + public: + + + QuerySyncReportAggregationResult(); + explicit QuerySyncReportAggregationResult(const std::string &payload); + ~QuerySyncReportAggregationResult(); + std::string getMessage()const; + std::string getCode()const; + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_QUERYSYNCREPORTAGGREGATIONRESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/RecommendRequest.h b/airec/include/alibabacloud/airec/model/RecommendRequest.h new file mode 100644 index 000000000..27751dfe4 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/RecommendRequest.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_AIREC_MODEL_RECOMMENDREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_RECOMMENDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT RecommendRequest : public RoaServiceRequest + { + + public: + RecommendRequest(); + ~RecommendRequest(); + + int getReturnCount()const; + void setReturnCount(int returnCount); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getIp()const; + void setIp(const std::string& ip); + std::string getSceneId()const; + void setSceneId(const std::string& sceneId); + std::string getImei()const; + void setImei(const std::string& imei); + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getItems()const; + void setItems(const std::string& items); + + private: + int returnCount_; + std::string instanceId_; + std::string regionId_; + std::string ip_; + std::string sceneId_; + std::string imei_; + std::string userId_; + std::string items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_RECOMMENDREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/RecommendResult.h b/airec/include/alibabacloud/airec/model/RecommendResult.h new file mode 100644 index 000000000..17e193e55 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/RecommendResult.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_AIREC_MODEL_RECOMMENDRESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_RECOMMENDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT RecommendResult : public ServiceResult + { + public: + struct ResultItem + { + std::string matchInfo; + int position; + std::string itemType; + std::string traceId; + std::string traceInfo; + std::string itemId; + float weight; + }; + + + RecommendResult(); + explicit RecommendResult(const std::string &payload); + ~RecommendResult(); + std::string getMessage()const; + std::string getCode()const; + std::vector getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + std::vector result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_RECOMMENDRESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/RunInstanceRequest.h b/airec/include/alibabacloud/airec/model/RunInstanceRequest.h new file mode 100644 index 000000000..4c5839683 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/RunInstanceRequest.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_AIREC_MODEL_RUNINSTANCEREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_RUNINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT RunInstanceRequest : public RoaServiceRequest + { + + public: + RunInstanceRequest(); + ~RunInstanceRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_RUNINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/RunInstanceResult.h b/airec/include/alibabacloud/airec/model/RunInstanceResult.h new file mode 100644 index 000000000..319909b77 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/RunInstanceResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_RUNINSTANCERESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_RUNINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT RunInstanceResult : public ServiceResult + { + public: + + + RunInstanceResult(); + explicit RunInstanceResult(const std::string &payload); + ~RunInstanceResult(); + std::string getMessage()const; + std::string getCode()const; + bool getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_RUNINSTANCERESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/StopDataSetRequest.h b/airec/include/alibabacloud/airec/model/StopDataSetRequest.h new file mode 100644 index 000000000..6b7ed4684 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/StopDataSetRequest.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_AIREC_MODEL_STOPDATASETREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_STOPDATASETREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT StopDataSetRequest : public RoaServiceRequest + { + + public: + StopDataSetRequest(); + ~StopDataSetRequest(); + + std::string getVersionId()const; + void setVersionId(const std::string& versionId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string versionId_; + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_STOPDATASETREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/StopDataSetResult.h b/airec/include/alibabacloud/airec/model/StopDataSetResult.h new file mode 100644 index 000000000..968a4a786 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/StopDataSetResult.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_AIREC_MODEL_STOPDATASETRESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_STOPDATASETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT StopDataSetResult : public ServiceResult + { + public: + struct Result + { + std::string versionId; + long gmtCreate; + std::string instanceId; + std::string state; + long gmtModified; + }; + + + StopDataSetResult(); + explicit StopDataSetResult(const std::string &payload); + ~StopDataSetResult(); + std::string getMessage()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_STOPDATASETRESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/UpgradeInstanceRequest.h b/airec/include/alibabacloud/airec/model/UpgradeInstanceRequest.h new file mode 100644 index 000000000..00d2e5bfc --- /dev/null +++ b/airec/include/alibabacloud/airec/model/UpgradeInstanceRequest.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_AIREC_MODEL_UPGRADEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_UPGRADEINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT UpgradeInstanceRequest : public RoaServiceRequest + { + + public: + UpgradeInstanceRequest(); + ~UpgradeInstanceRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_UPGRADEINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/UpgradeInstanceResult.h b/airec/include/alibabacloud/airec/model/UpgradeInstanceResult.h new file mode 100644 index 000000000..c9fa722fb --- /dev/null +++ b/airec/include/alibabacloud/airec/model/UpgradeInstanceResult.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_AIREC_MODEL_UPGRADEINSTANCERESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_UPGRADEINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT UpgradeInstanceResult : public ServiceResult + { + public: + struct Result + { + std::string instanceId; + }; + + + UpgradeInstanceResult(); + explicit UpgradeInstanceResult(const std::string &payload); + ~UpgradeInstanceResult(); + std::string getMessage()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_UPGRADEINSTANCERESULT_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ValidateInstanceRequest.h b/airec/include/alibabacloud/airec/model/ValidateInstanceRequest.h new file mode 100644 index 000000000..37335bb36 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ValidateInstanceRequest.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_AIREC_MODEL_VALIDATEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_AIREC_MODEL_VALIDATEINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ValidateInstanceRequest : public RoaServiceRequest + { + + public: + ValidateInstanceRequest(); + ~ValidateInstanceRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_VALIDATEINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/airec/include/alibabacloud/airec/model/ValidateInstanceResult.h b/airec/include/alibabacloud/airec/model/ValidateInstanceResult.h new file mode 100644 index 000000000..3984f9964 --- /dev/null +++ b/airec/include/alibabacloud/airec/model/ValidateInstanceResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AIREC_MODEL_VALIDATEINSTANCERESULT_H_ +#define ALIBABACLOUD_AIREC_MODEL_VALIDATEINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Airec + { + namespace Model + { + class ALIBABACLOUD_AIREC_EXPORT ValidateInstanceResult : public ServiceResult + { + public: + + + ValidateInstanceResult(); + explicit ValidateInstanceResult(const std::string &payload); + ~ValidateInstanceResult(); + std::string getMessage()const; + std::string getCode()const; + bool getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AIREC_MODEL_VALIDATEINSTANCERESULT_H_ \ No newline at end of file diff --git a/airec/src/AirecClient.cc b/airec/src/AirecClient.cc new file mode 100644 index 000000000..594c46b71 --- /dev/null +++ b/airec/src/AirecClient.cc @@ -0,0 +1,2393 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud; +using namespace AlibabaCloud::Location; +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +namespace +{ + const std::string SERVICE_NAME = "Airec"; +} + +AirecClient::AirecClient(const Credentials &credentials, const ClientConfiguration &configuration) : + RoaServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) +{ + auto locationClient = std::make_shared(credentials, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "airec"); +} + +AirecClient::AirecClient(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, "airec"); +} + +AirecClient::AirecClient(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, "airec"); +} + +AirecClient::~AirecClient() +{} + +AirecClient::AttachDatasetOutcome AirecClient::attachDataset(const AttachDatasetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AttachDatasetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AttachDatasetOutcome(AttachDatasetResult(outcome.result())); + else + return AttachDatasetOutcome(outcome.error()); +} + +void AirecClient::attachDatasetAsync(const AttachDatasetRequest& request, const AttachDatasetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, attachDataset(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::AttachDatasetOutcomeCallable AirecClient::attachDatasetCallable(const AttachDatasetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->attachDataset(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::CreateDiversifyOutcome AirecClient::createDiversify(const CreateDiversifyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDiversifyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDiversifyOutcome(CreateDiversifyResult(outcome.result())); + else + return CreateDiversifyOutcome(outcome.error()); +} + +void AirecClient::createDiversifyAsync(const CreateDiversifyRequest& request, const CreateDiversifyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDiversify(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::CreateDiversifyOutcomeCallable AirecClient::createDiversifyCallable(const CreateDiversifyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDiversify(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::CreateInstanceOutcome AirecClient::createInstance(const CreateInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateInstanceOutcome(CreateInstanceResult(outcome.result())); + else + return CreateInstanceOutcome(outcome.error()); +} + +void AirecClient::createInstanceAsync(const CreateInstanceRequest& request, const CreateInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::CreateInstanceOutcomeCallable AirecClient::createInstanceCallable(const CreateInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::CreateMixOutcome AirecClient::createMix(const CreateMixRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateMixOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateMixOutcome(CreateMixResult(outcome.result())); + else + return CreateMixOutcome(outcome.error()); +} + +void AirecClient::createMixAsync(const CreateMixRequest& request, const CreateMixAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createMix(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::CreateMixOutcomeCallable AirecClient::createMixCallable(const CreateMixRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createMix(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::CreateRuleOutcome AirecClient::createRule(const CreateRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateRuleOutcome(CreateRuleResult(outcome.result())); + else + return CreateRuleOutcome(outcome.error()); +} + +void AirecClient::createRuleAsync(const CreateRuleRequest& request, const CreateRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::CreateRuleOutcomeCallable AirecClient::createRuleCallable(const CreateRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::CreateSceneOutcome AirecClient::createScene(const CreateSceneRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateSceneOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateSceneOutcome(CreateSceneResult(outcome.result())); + else + return CreateSceneOutcome(outcome.error()); +} + +void AirecClient::createSceneAsync(const CreateSceneRequest& request, const CreateSceneAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createScene(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::CreateSceneOutcomeCallable AirecClient::createSceneCallable(const CreateSceneRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createScene(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::DeleteDataSetOutcome AirecClient::deleteDataSet(const DeleteDataSetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDataSetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDataSetOutcome(DeleteDataSetResult(outcome.result())); + else + return DeleteDataSetOutcome(outcome.error()); +} + +void AirecClient::deleteDataSetAsync(const DeleteDataSetRequest& request, const DeleteDataSetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDataSet(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::DeleteDataSetOutcomeCallable AirecClient::deleteDataSetCallable(const DeleteDataSetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDataSet(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::DeleteDiversifyOutcome AirecClient::deleteDiversify(const DeleteDiversifyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDiversifyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDiversifyOutcome(DeleteDiversifyResult(outcome.result())); + else + return DeleteDiversifyOutcome(outcome.error()); +} + +void AirecClient::deleteDiversifyAsync(const DeleteDiversifyRequest& request, const DeleteDiversifyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDiversify(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::DeleteDiversifyOutcomeCallable AirecClient::deleteDiversifyCallable(const DeleteDiversifyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDiversify(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::DeleteMixOutcome AirecClient::deleteMix(const DeleteMixRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteMixOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteMixOutcome(DeleteMixResult(outcome.result())); + else + return DeleteMixOutcome(outcome.error()); +} + +void AirecClient::deleteMixAsync(const DeleteMixRequest& request, const DeleteMixAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteMix(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::DeleteMixOutcomeCallable AirecClient::deleteMixCallable(const DeleteMixRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteMix(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::DeleteSceneOutcome AirecClient::deleteScene(const DeleteSceneRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteSceneOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteSceneOutcome(DeleteSceneResult(outcome.result())); + else + return DeleteSceneOutcome(outcome.error()); +} + +void AirecClient::deleteSceneAsync(const DeleteSceneRequest& request, const DeleteSceneAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteScene(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::DeleteSceneOutcomeCallable AirecClient::deleteSceneCallable(const DeleteSceneRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteScene(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::DescribeDataSetMessageOutcome AirecClient::describeDataSetMessage(const DescribeDataSetMessageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDataSetMessageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDataSetMessageOutcome(DescribeDataSetMessageResult(outcome.result())); + else + return DescribeDataSetMessageOutcome(outcome.error()); +} + +void AirecClient::describeDataSetMessageAsync(const DescribeDataSetMessageRequest& request, const DescribeDataSetMessageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDataSetMessage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::DescribeDataSetMessageOutcomeCallable AirecClient::describeDataSetMessageCallable(const DescribeDataSetMessageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDataSetMessage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::DescribeDataSetReportOutcome AirecClient::describeDataSetReport(const DescribeDataSetReportRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDataSetReportOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDataSetReportOutcome(DescribeDataSetReportResult(outcome.result())); + else + return DescribeDataSetReportOutcome(outcome.error()); +} + +void AirecClient::describeDataSetReportAsync(const DescribeDataSetReportRequest& request, const DescribeDataSetReportAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDataSetReport(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::DescribeDataSetReportOutcomeCallable AirecClient::describeDataSetReportCallable(const DescribeDataSetReportRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDataSetReport(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::DescribeDiversifyOutcome AirecClient::describeDiversify(const DescribeDiversifyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDiversifyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDiversifyOutcome(DescribeDiversifyResult(outcome.result())); + else + return DescribeDiversifyOutcome(outcome.error()); +} + +void AirecClient::describeDiversifyAsync(const DescribeDiversifyRequest& request, const DescribeDiversifyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDiversify(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::DescribeDiversifyOutcomeCallable AirecClient::describeDiversifyCallable(const DescribeDiversifyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDiversify(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::DescribeExposureSettingsOutcome AirecClient::describeExposureSettings(const DescribeExposureSettingsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeExposureSettingsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeExposureSettingsOutcome(DescribeExposureSettingsResult(outcome.result())); + else + return DescribeExposureSettingsOutcome(outcome.error()); +} + +void AirecClient::describeExposureSettingsAsync(const DescribeExposureSettingsRequest& request, const DescribeExposureSettingsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeExposureSettings(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::DescribeExposureSettingsOutcomeCallable AirecClient::describeExposureSettingsCallable(const DescribeExposureSettingsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeExposureSettings(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::DescribeInstanceOutcome AirecClient::describeInstance(const DescribeInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeInstanceOutcome(DescribeInstanceResult(outcome.result())); + else + return DescribeInstanceOutcome(outcome.error()); +} + +void AirecClient::describeInstanceAsync(const DescribeInstanceRequest& request, const DescribeInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::DescribeInstanceOutcomeCallable AirecClient::describeInstanceCallable(const DescribeInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::DescribeMixOutcome AirecClient::describeMix(const DescribeMixRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeMixOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeMixOutcome(DescribeMixResult(outcome.result())); + else + return DescribeMixOutcome(outcome.error()); +} + +void AirecClient::describeMixAsync(const DescribeMixRequest& request, const DescribeMixAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeMix(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::DescribeMixOutcomeCallable AirecClient::describeMixCallable(const DescribeMixRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeMix(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::DescribeQuotaOutcome AirecClient::describeQuota(const DescribeQuotaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeQuotaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeQuotaOutcome(DescribeQuotaResult(outcome.result())); + else + return DescribeQuotaOutcome(outcome.error()); +} + +void AirecClient::describeQuotaAsync(const DescribeQuotaRequest& request, const DescribeQuotaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeQuota(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::DescribeQuotaOutcomeCallable AirecClient::describeQuotaCallable(const DescribeQuotaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeQuota(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::DescribeRegionsOutcome AirecClient::describeRegions(const DescribeRegionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRegionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRegionsOutcome(DescribeRegionsResult(outcome.result())); + else + return DescribeRegionsOutcome(outcome.error()); +} + +void AirecClient::describeRegionsAsync(const DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRegions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::DescribeRegionsOutcomeCallable AirecClient::describeRegionsCallable(const DescribeRegionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRegions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::DescribeRuleOutcome AirecClient::describeRule(const DescribeRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRuleOutcome(DescribeRuleResult(outcome.result())); + else + return DescribeRuleOutcome(outcome.error()); +} + +void AirecClient::describeRuleAsync(const DescribeRuleRequest& request, const DescribeRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::DescribeRuleOutcomeCallable AirecClient::describeRuleCallable(const DescribeRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::DescribeSceneOutcome AirecClient::describeScene(const DescribeSceneRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSceneOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSceneOutcome(DescribeSceneResult(outcome.result())); + else + return DescribeSceneOutcome(outcome.error()); +} + +void AirecClient::describeSceneAsync(const DescribeSceneRequest& request, const DescribeSceneAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeScene(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::DescribeSceneOutcomeCallable AirecClient::describeSceneCallable(const DescribeSceneRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeScene(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::DescribeSceneThroughputOutcome AirecClient::describeSceneThroughput(const DescribeSceneThroughputRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSceneThroughputOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSceneThroughputOutcome(DescribeSceneThroughputResult(outcome.result())); + else + return DescribeSceneThroughputOutcome(outcome.error()); +} + +void AirecClient::describeSceneThroughputAsync(const DescribeSceneThroughputRequest& request, const DescribeSceneThroughputAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSceneThroughput(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::DescribeSceneThroughputOutcomeCallable AirecClient::describeSceneThroughputCallable(const DescribeSceneThroughputRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSceneThroughput(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::DescribeSyncReportDetailOutcome AirecClient::describeSyncReportDetail(const DescribeSyncReportDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSyncReportDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSyncReportDetailOutcome(DescribeSyncReportDetailResult(outcome.result())); + else + return DescribeSyncReportDetailOutcome(outcome.error()); +} + +void AirecClient::describeSyncReportDetailAsync(const DescribeSyncReportDetailRequest& request, const DescribeSyncReportDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSyncReportDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::DescribeSyncReportDetailOutcomeCallable AirecClient::describeSyncReportDetailCallable(const DescribeSyncReportDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSyncReportDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::DescribeSyncReportOutliersOutcome AirecClient::describeSyncReportOutliers(const DescribeSyncReportOutliersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSyncReportOutliersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSyncReportOutliersOutcome(DescribeSyncReportOutliersResult(outcome.result())); + else + return DescribeSyncReportOutliersOutcome(outcome.error()); +} + +void AirecClient::describeSyncReportOutliersAsync(const DescribeSyncReportOutliersRequest& request, const DescribeSyncReportOutliersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSyncReportOutliers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::DescribeSyncReportOutliersOutcomeCallable AirecClient::describeSyncReportOutliersCallable(const DescribeSyncReportOutliersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSyncReportOutliers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::DescribeUserMetricsOutcome AirecClient::describeUserMetrics(const DescribeUserMetricsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeUserMetricsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeUserMetricsOutcome(DescribeUserMetricsResult(outcome.result())); + else + return DescribeUserMetricsOutcome(outcome.error()); +} + +void AirecClient::describeUserMetricsAsync(const DescribeUserMetricsRequest& request, const DescribeUserMetricsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeUserMetrics(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::DescribeUserMetricsOutcomeCallable AirecClient::describeUserMetricsCallable(const DescribeUserMetricsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeUserMetrics(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::DowngradeInstanceOutcome AirecClient::downgradeInstance(const DowngradeInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DowngradeInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DowngradeInstanceOutcome(DowngradeInstanceResult(outcome.result())); + else + return DowngradeInstanceOutcome(outcome.error()); +} + +void AirecClient::downgradeInstanceAsync(const DowngradeInstanceRequest& request, const DowngradeInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, downgradeInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::DowngradeInstanceOutcomeCallable AirecClient::downgradeInstanceCallable(const DowngradeInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->downgradeInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::ListDashboardOutcome AirecClient::listDashboard(const ListDashboardRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListDashboardOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListDashboardOutcome(ListDashboardResult(outcome.result())); + else + return ListDashboardOutcome(outcome.error()); +} + +void AirecClient::listDashboardAsync(const ListDashboardRequest& request, const ListDashboardAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listDashboard(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::ListDashboardOutcomeCallable AirecClient::listDashboardCallable(const ListDashboardRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listDashboard(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::ListDashboardDetailsOutcome AirecClient::listDashboardDetails(const ListDashboardDetailsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListDashboardDetailsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListDashboardDetailsOutcome(ListDashboardDetailsResult(outcome.result())); + else + return ListDashboardDetailsOutcome(outcome.error()); +} + +void AirecClient::listDashboardDetailsAsync(const ListDashboardDetailsRequest& request, const ListDashboardDetailsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listDashboardDetails(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::ListDashboardDetailsOutcomeCallable AirecClient::listDashboardDetailsCallable(const ListDashboardDetailsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listDashboardDetails(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::ListDashboardDetailsFlowsOutcome AirecClient::listDashboardDetailsFlows(const ListDashboardDetailsFlowsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListDashboardDetailsFlowsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListDashboardDetailsFlowsOutcome(ListDashboardDetailsFlowsResult(outcome.result())); + else + return ListDashboardDetailsFlowsOutcome(outcome.error()); +} + +void AirecClient::listDashboardDetailsFlowsAsync(const ListDashboardDetailsFlowsRequest& request, const ListDashboardDetailsFlowsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listDashboardDetailsFlows(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::ListDashboardDetailsFlowsOutcomeCallable AirecClient::listDashboardDetailsFlowsCallable(const ListDashboardDetailsFlowsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listDashboardDetailsFlows(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::ListDashboardMetricsOutcome AirecClient::listDashboardMetrics(const ListDashboardMetricsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListDashboardMetricsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListDashboardMetricsOutcome(ListDashboardMetricsResult(outcome.result())); + else + return ListDashboardMetricsOutcome(outcome.error()); +} + +void AirecClient::listDashboardMetricsAsync(const ListDashboardMetricsRequest& request, const ListDashboardMetricsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listDashboardMetrics(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::ListDashboardMetricsOutcomeCallable AirecClient::listDashboardMetricsCallable(const ListDashboardMetricsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listDashboardMetrics(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::ListDashboardMetricsFlowsOutcome AirecClient::listDashboardMetricsFlows(const ListDashboardMetricsFlowsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListDashboardMetricsFlowsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListDashboardMetricsFlowsOutcome(ListDashboardMetricsFlowsResult(outcome.result())); + else + return ListDashboardMetricsFlowsOutcome(outcome.error()); +} + +void AirecClient::listDashboardMetricsFlowsAsync(const ListDashboardMetricsFlowsRequest& request, const ListDashboardMetricsFlowsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listDashboardMetricsFlows(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::ListDashboardMetricsFlowsOutcomeCallable AirecClient::listDashboardMetricsFlowsCallable(const ListDashboardMetricsFlowsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listDashboardMetricsFlows(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::ListDashboardParametersOutcome AirecClient::listDashboardParameters(const ListDashboardParametersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListDashboardParametersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListDashboardParametersOutcome(ListDashboardParametersResult(outcome.result())); + else + return ListDashboardParametersOutcome(outcome.error()); +} + +void AirecClient::listDashboardParametersAsync(const ListDashboardParametersRequest& request, const ListDashboardParametersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listDashboardParameters(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::ListDashboardParametersOutcomeCallable AirecClient::listDashboardParametersCallable(const ListDashboardParametersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listDashboardParameters(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::ListDashboardUidOutcome AirecClient::listDashboardUid(const ListDashboardUidRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListDashboardUidOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListDashboardUidOutcome(ListDashboardUidResult(outcome.result())); + else + return ListDashboardUidOutcome(outcome.error()); +} + +void AirecClient::listDashboardUidAsync(const ListDashboardUidRequest& request, const ListDashboardUidAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listDashboardUid(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::ListDashboardUidOutcomeCallable AirecClient::listDashboardUidCallable(const ListDashboardUidRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listDashboardUid(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::ListDataSetOutcome AirecClient::listDataSet(const ListDataSetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListDataSetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListDataSetOutcome(ListDataSetResult(outcome.result())); + else + return ListDataSetOutcome(outcome.error()); +} + +void AirecClient::listDataSetAsync(const ListDataSetRequest& request, const ListDataSetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listDataSet(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::ListDataSetOutcomeCallable AirecClient::listDataSetCallable(const ListDataSetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listDataSet(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::ListDataSourceOutcome AirecClient::listDataSource(const ListDataSourceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListDataSourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListDataSourceOutcome(ListDataSourceResult(outcome.result())); + else + return ListDataSourceOutcome(outcome.error()); +} + +void AirecClient::listDataSourceAsync(const ListDataSourceRequest& request, const ListDataSourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listDataSource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::ListDataSourceOutcomeCallable AirecClient::listDataSourceCallable(const ListDataSourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listDataSource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::ListDiversifyOutcome AirecClient::listDiversify(const ListDiversifyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListDiversifyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListDiversifyOutcome(ListDiversifyResult(outcome.result())); + else + return ListDiversifyOutcome(outcome.error()); +} + +void AirecClient::listDiversifyAsync(const ListDiversifyRequest& request, const ListDiversifyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listDiversify(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::ListDiversifyOutcomeCallable AirecClient::listDiversifyCallable(const ListDiversifyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listDiversify(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::ListInstanceOutcome AirecClient::listInstance(const ListInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListInstanceOutcome(ListInstanceResult(outcome.result())); + else + return ListInstanceOutcome(outcome.error()); +} + +void AirecClient::listInstanceAsync(const ListInstanceRequest& request, const ListInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::ListInstanceOutcomeCallable AirecClient::listInstanceCallable(const ListInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::ListInstanceTaskOutcome AirecClient::listInstanceTask(const ListInstanceTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListInstanceTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListInstanceTaskOutcome(ListInstanceTaskResult(outcome.result())); + else + return ListInstanceTaskOutcome(outcome.error()); +} + +void AirecClient::listInstanceTaskAsync(const ListInstanceTaskRequest& request, const ListInstanceTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listInstanceTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::ListInstanceTaskOutcomeCallable AirecClient::listInstanceTaskCallable(const ListInstanceTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listInstanceTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::ListMixOutcome AirecClient::listMix(const ListMixRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListMixOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListMixOutcome(ListMixResult(outcome.result())); + else + return ListMixOutcome(outcome.error()); +} + +void AirecClient::listMixAsync(const ListMixRequest& request, const ListMixAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listMix(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::ListMixOutcomeCallable AirecClient::listMixCallable(const ListMixRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listMix(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::ListRuleConditionsOutcome AirecClient::listRuleConditions(const ListRuleConditionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListRuleConditionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListRuleConditionsOutcome(ListRuleConditionsResult(outcome.result())); + else + return ListRuleConditionsOutcome(outcome.error()); +} + +void AirecClient::listRuleConditionsAsync(const ListRuleConditionsRequest& request, const ListRuleConditionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listRuleConditions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::ListRuleConditionsOutcomeCallable AirecClient::listRuleConditionsCallable(const ListRuleConditionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listRuleConditions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::ListRuleTasksOutcome AirecClient::listRuleTasks(const ListRuleTasksRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListRuleTasksOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListRuleTasksOutcome(ListRuleTasksResult(outcome.result())); + else + return ListRuleTasksOutcome(outcome.error()); +} + +void AirecClient::listRuleTasksAsync(const ListRuleTasksRequest& request, const ListRuleTasksAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listRuleTasks(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::ListRuleTasksOutcomeCallable AirecClient::listRuleTasksCallable(const ListRuleTasksRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listRuleTasks(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::ListRulesOutcome AirecClient::listRules(const ListRulesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListRulesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListRulesOutcome(ListRulesResult(outcome.result())); + else + return ListRulesOutcome(outcome.error()); +} + +void AirecClient::listRulesAsync(const ListRulesRequest& request, const ListRulesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listRules(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::ListRulesOutcomeCallable AirecClient::listRulesCallable(const ListRulesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listRules(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::ListSceneItemsOutcome AirecClient::listSceneItems(const ListSceneItemsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSceneItemsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSceneItemsOutcome(ListSceneItemsResult(outcome.result())); + else + return ListSceneItemsOutcome(outcome.error()); +} + +void AirecClient::listSceneItemsAsync(const ListSceneItemsRequest& request, const ListSceneItemsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSceneItems(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::ListSceneItemsOutcomeCallable AirecClient::listSceneItemsCallable(const ListSceneItemsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSceneItems(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::ListScenesOutcome AirecClient::listScenes(const ListScenesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListScenesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListScenesOutcome(ListScenesResult(outcome.result())); + else + return ListScenesOutcome(outcome.error()); +} + +void AirecClient::listScenesAsync(const ListScenesRequest& request, const ListScenesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listScenes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::ListScenesOutcomeCallable AirecClient::listScenesCallable(const ListScenesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listScenes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::ListUmengAppkeysOutcome AirecClient::listUmengAppkeys(const ListUmengAppkeysRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListUmengAppkeysOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListUmengAppkeysOutcome(ListUmengAppkeysResult(outcome.result())); + else + return ListUmengAppkeysOutcome(outcome.error()); +} + +void AirecClient::listUmengAppkeysAsync(const ListUmengAppkeysRequest& request, const ListUmengAppkeysAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listUmengAppkeys(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::ListUmengAppkeysOutcomeCallable AirecClient::listUmengAppkeysCallable(const ListUmengAppkeysRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listUmengAppkeys(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::ModifyDataSourceOutcome AirecClient::modifyDataSource(const ModifyDataSourceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDataSourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDataSourceOutcome(ModifyDataSourceResult(outcome.result())); + else + return ModifyDataSourceOutcome(outcome.error()); +} + +void AirecClient::modifyDataSourceAsync(const ModifyDataSourceRequest& request, const ModifyDataSourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDataSource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::ModifyDataSourceOutcomeCallable AirecClient::modifyDataSourceCallable(const ModifyDataSourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDataSource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::ModifyDiversifyOutcome AirecClient::modifyDiversify(const ModifyDiversifyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDiversifyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDiversifyOutcome(ModifyDiversifyResult(outcome.result())); + else + return ModifyDiversifyOutcome(outcome.error()); +} + +void AirecClient::modifyDiversifyAsync(const ModifyDiversifyRequest& request, const ModifyDiversifyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDiversify(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::ModifyDiversifyOutcomeCallable AirecClient::modifyDiversifyCallable(const ModifyDiversifyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDiversify(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::ModifyExposureSettingsOutcome AirecClient::modifyExposureSettings(const ModifyExposureSettingsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyExposureSettingsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyExposureSettingsOutcome(ModifyExposureSettingsResult(outcome.result())); + else + return ModifyExposureSettingsOutcome(outcome.error()); +} + +void AirecClient::modifyExposureSettingsAsync(const ModifyExposureSettingsRequest& request, const ModifyExposureSettingsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyExposureSettings(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::ModifyExposureSettingsOutcomeCallable AirecClient::modifyExposureSettingsCallable(const ModifyExposureSettingsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyExposureSettings(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::ModifyInstanceOutcome AirecClient::modifyInstance(const ModifyInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyInstanceOutcome(ModifyInstanceResult(outcome.result())); + else + return ModifyInstanceOutcome(outcome.error()); +} + +void AirecClient::modifyInstanceAsync(const ModifyInstanceRequest& request, const ModifyInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::ModifyInstanceOutcomeCallable AirecClient::modifyInstanceCallable(const ModifyInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::ModifyMixOutcome AirecClient::modifyMix(const ModifyMixRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyMixOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyMixOutcome(ModifyMixResult(outcome.result())); + else + return ModifyMixOutcome(outcome.error()); +} + +void AirecClient::modifyMixAsync(const ModifyMixRequest& request, const ModifyMixAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyMix(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::ModifyMixOutcomeCallable AirecClient::modifyMixCallable(const ModifyMixRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyMix(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::ModifyRuleOutcome AirecClient::modifyRule(const ModifyRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyRuleOutcome(ModifyRuleResult(outcome.result())); + else + return ModifyRuleOutcome(outcome.error()); +} + +void AirecClient::modifyRuleAsync(const ModifyRuleRequest& request, const ModifyRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::ModifyRuleOutcomeCallable AirecClient::modifyRuleCallable(const ModifyRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::ModifySceneOutcome AirecClient::modifyScene(const ModifySceneRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifySceneOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifySceneOutcome(ModifySceneResult(outcome.result())); + else + return ModifySceneOutcome(outcome.error()); +} + +void AirecClient::modifySceneAsync(const ModifySceneRequest& request, const ModifySceneAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyScene(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::ModifySceneOutcomeCallable AirecClient::modifySceneCallable(const ModifySceneRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyScene(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::PublishRuleOutcome AirecClient::publishRule(const PublishRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PublishRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PublishRuleOutcome(PublishRuleResult(outcome.result())); + else + return PublishRuleOutcome(outcome.error()); +} + +void AirecClient::publishRuleAsync(const PublishRuleRequest& request, const PublishRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, publishRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::PublishRuleOutcomeCallable AirecClient::publishRuleCallable(const PublishRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->publishRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::PushDocumentOutcome AirecClient::pushDocument(const PushDocumentRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PushDocumentOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PushDocumentOutcome(PushDocumentResult(outcome.result())); + else + return PushDocumentOutcome(outcome.error()); +} + +void AirecClient::pushDocumentAsync(const PushDocumentRequest& request, const PushDocumentAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, pushDocument(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::PushDocumentOutcomeCallable AirecClient::pushDocumentCallable(const PushDocumentRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->pushDocument(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::PushInterventionOutcome AirecClient::pushIntervention(const PushInterventionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PushInterventionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PushInterventionOutcome(PushInterventionResult(outcome.result())); + else + return PushInterventionOutcome(outcome.error()); +} + +void AirecClient::pushInterventionAsync(const PushInterventionRequest& request, const PushInterventionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, pushIntervention(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::PushInterventionOutcomeCallable AirecClient::pushInterventionCallable(const PushInterventionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->pushIntervention(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::QueryDataMessageOutcome AirecClient::queryDataMessage(const QueryDataMessageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryDataMessageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryDataMessageOutcome(QueryDataMessageResult(outcome.result())); + else + return QueryDataMessageOutcome(outcome.error()); +} + +void AirecClient::queryDataMessageAsync(const QueryDataMessageRequest& request, const QueryDataMessageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryDataMessage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::QueryDataMessageOutcomeCallable AirecClient::queryDataMessageCallable(const QueryDataMessageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryDataMessage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::QueryExceptionHistoryOutcome AirecClient::queryExceptionHistory(const QueryExceptionHistoryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryExceptionHistoryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryExceptionHistoryOutcome(QueryExceptionHistoryResult(outcome.result())); + else + return QueryExceptionHistoryOutcome(outcome.error()); +} + +void AirecClient::queryExceptionHistoryAsync(const QueryExceptionHistoryRequest& request, const QueryExceptionHistoryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryExceptionHistory(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::QueryExceptionHistoryOutcomeCallable AirecClient::queryExceptionHistoryCallable(const QueryExceptionHistoryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryExceptionHistory(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::QueryRawDataOutcome AirecClient::queryRawData(const QueryRawDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryRawDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryRawDataOutcome(QueryRawDataResult(outcome.result())); + else + return QueryRawDataOutcome(outcome.error()); +} + +void AirecClient::queryRawDataAsync(const QueryRawDataRequest& request, const QueryRawDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryRawData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::QueryRawDataOutcomeCallable AirecClient::queryRawDataCallable(const QueryRawDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryRawData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::QuerySingleAggregationReportOutcome AirecClient::querySingleAggregationReport(const QuerySingleAggregationReportRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QuerySingleAggregationReportOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QuerySingleAggregationReportOutcome(QuerySingleAggregationReportResult(outcome.result())); + else + return QuerySingleAggregationReportOutcome(outcome.error()); +} + +void AirecClient::querySingleAggregationReportAsync(const QuerySingleAggregationReportRequest& request, const QuerySingleAggregationReportAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, querySingleAggregationReport(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::QuerySingleAggregationReportOutcomeCallable AirecClient::querySingleAggregationReportCallable(const QuerySingleAggregationReportRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->querySingleAggregationReport(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::QuerySingleReportOutcome AirecClient::querySingleReport(const QuerySingleReportRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QuerySingleReportOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QuerySingleReportOutcome(QuerySingleReportResult(outcome.result())); + else + return QuerySingleReportOutcome(outcome.error()); +} + +void AirecClient::querySingleReportAsync(const QuerySingleReportRequest& request, const QuerySingleReportAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, querySingleReport(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::QuerySingleReportOutcomeCallable AirecClient::querySingleReportCallable(const QuerySingleReportRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->querySingleReport(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::QuerySyncReportAggregationOutcome AirecClient::querySyncReportAggregation(const QuerySyncReportAggregationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QuerySyncReportAggregationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QuerySyncReportAggregationOutcome(QuerySyncReportAggregationResult(outcome.result())); + else + return QuerySyncReportAggregationOutcome(outcome.error()); +} + +void AirecClient::querySyncReportAggregationAsync(const QuerySyncReportAggregationRequest& request, const QuerySyncReportAggregationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, querySyncReportAggregation(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::QuerySyncReportAggregationOutcomeCallable AirecClient::querySyncReportAggregationCallable(const QuerySyncReportAggregationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->querySyncReportAggregation(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::RecommendOutcome AirecClient::recommend(const RecommendRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RecommendOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RecommendOutcome(RecommendResult(outcome.result())); + else + return RecommendOutcome(outcome.error()); +} + +void AirecClient::recommendAsync(const RecommendRequest& request, const RecommendAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, recommend(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::RecommendOutcomeCallable AirecClient::recommendCallable(const RecommendRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->recommend(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::RunInstanceOutcome AirecClient::runInstance(const RunInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RunInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RunInstanceOutcome(RunInstanceResult(outcome.result())); + else + return RunInstanceOutcome(outcome.error()); +} + +void AirecClient::runInstanceAsync(const RunInstanceRequest& request, const RunInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, runInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::RunInstanceOutcomeCallable AirecClient::runInstanceCallable(const RunInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->runInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::StopDataSetOutcome AirecClient::stopDataSet(const StopDataSetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StopDataSetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StopDataSetOutcome(StopDataSetResult(outcome.result())); + else + return StopDataSetOutcome(outcome.error()); +} + +void AirecClient::stopDataSetAsync(const StopDataSetRequest& request, const StopDataSetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, stopDataSet(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::StopDataSetOutcomeCallable AirecClient::stopDataSetCallable(const StopDataSetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->stopDataSet(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::UpgradeInstanceOutcome AirecClient::upgradeInstance(const UpgradeInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpgradeInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpgradeInstanceOutcome(UpgradeInstanceResult(outcome.result())); + else + return UpgradeInstanceOutcome(outcome.error()); +} + +void AirecClient::upgradeInstanceAsync(const UpgradeInstanceRequest& request, const UpgradeInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, upgradeInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::UpgradeInstanceOutcomeCallable AirecClient::upgradeInstanceCallable(const UpgradeInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->upgradeInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AirecClient::ValidateInstanceOutcome AirecClient::validateInstance(const ValidateInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ValidateInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ValidateInstanceOutcome(ValidateInstanceResult(outcome.result())); + else + return ValidateInstanceOutcome(outcome.error()); +} + +void AirecClient::validateInstanceAsync(const ValidateInstanceRequest& request, const ValidateInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, validateInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AirecClient::ValidateInstanceOutcomeCallable AirecClient::validateInstanceCallable(const ValidateInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->validateInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/airec/src/model/AttachDatasetRequest.cc b/airec/src/model/AttachDatasetRequest.cc new file mode 100644 index 000000000..b08d6d66a --- /dev/null +++ b/airec/src/model/AttachDatasetRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::AttachDatasetRequest; + +AttachDatasetRequest::AttachDatasetRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/dataSets/[VersionId]/actions/current"); + setMethod(HttpRequest::Method::Post); +} + +AttachDatasetRequest::~AttachDatasetRequest() +{} + +std::string AttachDatasetRequest::getVersionId()const +{ + return versionId_; +} + +void AttachDatasetRequest::setVersionId(const std::string& versionId) +{ + versionId_ = versionId; + setParameter("VersionId", versionId); +} + +std::string AttachDatasetRequest::getInstanceId()const +{ + return instanceId_; +} + +void AttachDatasetRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/airec/src/model/AttachDatasetResult.cc b/airec/src/model/AttachDatasetResult.cc new file mode 100644 index 000000000..6e607ebdd --- /dev/null +++ b/airec/src/model/AttachDatasetResult.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +AttachDatasetResult::AttachDatasetResult() : + ServiceResult() +{} + +AttachDatasetResult::AttachDatasetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AttachDatasetResult::~AttachDatasetResult() +{} + +void AttachDatasetResult::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["InstanceId"].isNull()) + result_.instanceId = resultNode["InstanceId"].asString(); + if(!resultNode["VersionId"].isNull()) + result_.versionId = resultNode["VersionId"].asString(); + if(!resultNode["State"].isNull()) + result_.state = resultNode["State"].asString(); + if(!resultNode["GmtCreate"].isNull()) + result_.gmtCreate = std::stol(resultNode["GmtCreate"].asString()); + if(!resultNode["GmtModified"].isNull()) + result_.gmtModified = std::stol(resultNode["GmtModified"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string AttachDatasetResult::getMessage()const +{ + return message_; +} + +std::string AttachDatasetResult::getCode()const +{ + return code_; +} + +AttachDatasetResult::Result AttachDatasetResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/CreateDiversifyRequest.cc b/airec/src/model/CreateDiversifyRequest.cc new file mode 100644 index 000000000..8ed115070 --- /dev/null +++ b/airec/src/model/CreateDiversifyRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::CreateDiversifyRequest; + +CreateDiversifyRequest::CreateDiversifyRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/diversifies"); + setMethod(HttpRequest::Method::Post); +} + +CreateDiversifyRequest::~CreateDiversifyRequest() +{} + +std::string CreateDiversifyRequest::getInstanceId()const +{ + return instanceId_; +} + +void CreateDiversifyRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/airec/src/model/CreateDiversifyResult.cc b/airec/src/model/CreateDiversifyResult.cc new file mode 100644 index 000000000..3df6a0b70 --- /dev/null +++ b/airec/src/model/CreateDiversifyResult.cc @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +CreateDiversifyResult::CreateDiversifyResult() : + ServiceResult() +{} + +CreateDiversifyResult::CreateDiversifyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDiversifyResult::~CreateDiversifyResult() +{} + +void CreateDiversifyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["Name"].isNull()) + result_.name = resultNode["Name"].asString(); + if(!resultNode["GmtCreate"].isNull()) + result_.gmtCreate = resultNode["GmtCreate"].asString(); + if(!resultNode["GmtModified"].isNull()) + result_.gmtModified = resultNode["GmtModified"].asString(); + auto _parameterNode = resultNode["Parameter"]; + if(!_parameterNode["CategoryIndex"].isNull()) + result_._parameter.categoryIndex = std::stoi(_parameterNode["CategoryIndex"].asString()); + if(!_parameterNode["Window"].isNull()) + result_._parameter.window = std::stoi(_parameterNode["Window"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CreateDiversifyResult::getMessage()const +{ + return message_; +} + +std::string CreateDiversifyResult::getCode()const +{ + return code_; +} + +CreateDiversifyResult::Result CreateDiversifyResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/CreateInstanceRequest.cc b/airec/src/model/CreateInstanceRequest.cc new file mode 100644 index 000000000..4d53f42bc --- /dev/null +++ b/airec/src/model/CreateInstanceRequest.cc @@ -0,0 +1,30 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::CreateInstanceRequest; + +CreateInstanceRequest::CreateInstanceRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances"); + setMethod(HttpRequest::Method::Post); +} + +CreateInstanceRequest::~CreateInstanceRequest() +{} + diff --git a/airec/src/model/CreateInstanceResult.cc b/airec/src/model/CreateInstanceResult.cc new file mode 100644 index 000000000..da49ff181 --- /dev/null +++ b/airec/src/model/CreateInstanceResult.cc @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +CreateInstanceResult::CreateInstanceResult() : + ServiceResult() +{} + +CreateInstanceResult::CreateInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateInstanceResult::~CreateInstanceResult() +{} + +void CreateInstanceResult::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["InstanceId"].isNull()) + result_.instanceId = resultNode["InstanceId"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CreateInstanceResult::getMessage()const +{ + return message_; +} + +std::string CreateInstanceResult::getCode()const +{ + return code_; +} + +CreateInstanceResult::Result CreateInstanceResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/CreateMixRequest.cc b/airec/src/model/CreateMixRequest.cc new file mode 100644 index 000000000..f0f91b8fc --- /dev/null +++ b/airec/src/model/CreateMixRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::CreateMixRequest; + +CreateMixRequest::CreateMixRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/mixes"); + setMethod(HttpRequest::Method::Post); +} + +CreateMixRequest::~CreateMixRequest() +{} + +std::string CreateMixRequest::getInstanceId()const +{ + return instanceId_; +} + +void CreateMixRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/airec/src/model/CreateMixResult.cc b/airec/src/model/CreateMixResult.cc new file mode 100644 index 000000000..cda6591f6 --- /dev/null +++ b/airec/src/model/CreateMixResult.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +CreateMixResult::CreateMixResult() : + ServiceResult() +{} + +CreateMixResult::CreateMixResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateMixResult::~CreateMixResult() +{} + +void CreateMixResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["Name"].isNull()) + result_.name = resultNode["Name"].asString(); + if(!resultNode["GmtCreate"].isNull()) + result_.gmtCreate = resultNode["GmtCreate"].asString(); + if(!resultNode["GmtModified"].isNull()) + result_.gmtModified = resultNode["GmtModified"].asString(); + auto _parameterNode = resultNode["Parameter"]; + auto allSettingsNode = _parameterNode["Settings"]["SettingsItem"]; + for (auto _parameterNodeSettingsSettingsItem : allSettingsNode) + { + Result::_Parameter::SettingsItem settingsItemObject; + if(!_parameterNodeSettingsSettingsItem["Name"].isNull()) + settingsItemObject.name = _parameterNodeSettingsSettingsItem["Name"].asString(); + if(!_parameterNodeSettingsSettingsItem["Value"].isNull()) + settingsItemObject.value = std::stoi(_parameterNodeSettingsSettingsItem["Value"].asString()); + result_._parameter.settings.push_back(settingsItemObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CreateMixResult::getMessage()const +{ + return message_; +} + +std::string CreateMixResult::getCode()const +{ + return code_; +} + +CreateMixResult::Result CreateMixResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/CreateRuleRequest.cc b/airec/src/model/CreateRuleRequest.cc new file mode 100644 index 000000000..7c4e76a51 --- /dev/null +++ b/airec/src/model/CreateRuleRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::CreateRuleRequest; + +CreateRuleRequest::CreateRuleRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/rules"); + setMethod(HttpRequest::Method::Post); +} + +CreateRuleRequest::~CreateRuleRequest() +{} + +std::string CreateRuleRequest::getInstanceId()const +{ + return instanceId_; +} + +void CreateRuleRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/airec/src/model/CreateRuleResult.cc b/airec/src/model/CreateRuleResult.cc new file mode 100644 index 000000000..9dfb891b6 --- /dev/null +++ b/airec/src/model/CreateRuleResult.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::Airec; +using namespace AlibabaCloud::Airec::Model; + +CreateRuleResult::CreateRuleResult() : + ServiceResult() +{} + +CreateRuleResult::CreateRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateRuleResult::~CreateRuleResult() +{} + +void CreateRuleResult::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["Status"].isNull()) + result_.status = resultNode["Status"].asString(); + if(!resultNode["GmtCreate"].isNull()) + result_.gmtCreate = resultNode["GmtCreate"].asString(); + if(!resultNode["GmtModified"].isNull()) + result_.gmtModified = resultNode["GmtModified"].asString(); + if(!resultNode["RuleId"].isNull()) + result_.ruleId = resultNode["RuleId"].asString(); + +} + +CreateRuleResult::Result CreateRuleResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/CreateSceneRequest.cc b/airec/src/model/CreateSceneRequest.cc new file mode 100644 index 000000000..bf6c7bc90 --- /dev/null +++ b/airec/src/model/CreateSceneRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::CreateSceneRequest; + +CreateSceneRequest::CreateSceneRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/scenes"); + setMethod(HttpRequest::Method::Post); +} + +CreateSceneRequest::~CreateSceneRequest() +{} + +std::string CreateSceneRequest::getInstanceId()const +{ + return instanceId_; +} + +void CreateSceneRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +bool CreateSceneRequest::getDryRun()const +{ + return dryRun_; +} + +void CreateSceneRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + diff --git a/airec/src/model/CreateSceneResult.cc b/airec/src/model/CreateSceneResult.cc new file mode 100644 index 000000000..e72a0eb4c --- /dev/null +++ b/airec/src/model/CreateSceneResult.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::Airec; +using namespace AlibabaCloud::Airec::Model; + +CreateSceneResult::CreateSceneResult() : + ServiceResult() +{} + +CreateSceneResult::CreateSceneResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateSceneResult::~CreateSceneResult() +{} + +void CreateSceneResult::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["SceneId"].isNull()) + result_.sceneId = resultNode["SceneId"].asString(); + if(!resultNode["GmtCreate"].isNull()) + result_.gmtCreate = resultNode["GmtCreate"].asString(); + if(!resultNode["GmtModified"].isNull()) + result_.gmtModified = resultNode["GmtModified"].asString(); + if(!resultNode["Status"].isNull()) + result_.status = resultNode["Status"].asString(); + +} + +CreateSceneResult::Result CreateSceneResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/DeleteDataSetRequest.cc b/airec/src/model/DeleteDataSetRequest.cc new file mode 100644 index 000000000..f5b5b8596 --- /dev/null +++ b/airec/src/model/DeleteDataSetRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::DeleteDataSetRequest; + +DeleteDataSetRequest::DeleteDataSetRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/dataSets/[VersionId]"); + setMethod(HttpRequest::Method::Delete); +} + +DeleteDataSetRequest::~DeleteDataSetRequest() +{} + +std::string DeleteDataSetRequest::getVersionId()const +{ + return versionId_; +} + +void DeleteDataSetRequest::setVersionId(const std::string& versionId) +{ + versionId_ = versionId; + setParameter("VersionId", versionId); +} + +std::string DeleteDataSetRequest::getInstanceId()const +{ + return instanceId_; +} + +void DeleteDataSetRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/airec/src/model/DeleteDataSetResult.cc b/airec/src/model/DeleteDataSetResult.cc new file mode 100644 index 000000000..090e912db --- /dev/null +++ b/airec/src/model/DeleteDataSetResult.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +DeleteDataSetResult::DeleteDataSetResult() : + ServiceResult() +{} + +DeleteDataSetResult::DeleteDataSetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteDataSetResult::~DeleteDataSetResult() +{} + +void DeleteDataSetResult::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["InstanceId"].isNull()) + result_.instanceId = resultNode["InstanceId"].asString(); + if(!resultNode["VersionId"].isNull()) + result_.versionId = resultNode["VersionId"].asString(); + if(!resultNode["State"].isNull()) + result_.state = resultNode["State"].asString(); + if(!resultNode["GmtCreate"].isNull()) + result_.gmtCreate = std::stol(resultNode["GmtCreate"].asString()); + if(!resultNode["GmtModified"].isNull()) + result_.gmtModified = std::stol(resultNode["GmtModified"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DeleteDataSetResult::getMessage()const +{ + return message_; +} + +std::string DeleteDataSetResult::getCode()const +{ + return code_; +} + +DeleteDataSetResult::Result DeleteDataSetResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/DeleteDiversifyRequest.cc b/airec/src/model/DeleteDiversifyRequest.cc new file mode 100644 index 000000000..f45c0c14d --- /dev/null +++ b/airec/src/model/DeleteDiversifyRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::DeleteDiversifyRequest; + +DeleteDiversifyRequest::DeleteDiversifyRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/diversifies/[Name]"); + setMethod(HttpRequest::Method::Delete); +} + +DeleteDiversifyRequest::~DeleteDiversifyRequest() +{} + +std::string DeleteDiversifyRequest::getInstanceId()const +{ + return instanceId_; +} + +void DeleteDiversifyRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DeleteDiversifyRequest::getName()const +{ + return name_; +} + +void DeleteDiversifyRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + diff --git a/airec/src/model/DeleteDiversifyResult.cc b/airec/src/model/DeleteDiversifyResult.cc new file mode 100644 index 000000000..6ec0255db --- /dev/null +++ b/airec/src/model/DeleteDiversifyResult.cc @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +DeleteDiversifyResult::DeleteDiversifyResult() : + ServiceResult() +{} + +DeleteDiversifyResult::DeleteDiversifyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteDiversifyResult::~DeleteDiversifyResult() +{} + +void DeleteDiversifyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["Name"].isNull()) + result_.name = resultNode["Name"].asString(); + if(!resultNode["GmtCreate"].isNull()) + result_.gmtCreate = resultNode["GmtCreate"].asString(); + if(!resultNode["GmtModified"].isNull()) + result_.gmtModified = resultNode["GmtModified"].asString(); + auto _parameterNode = resultNode["Parameter"]; + if(!_parameterNode["CategoryIndex"].isNull()) + result_._parameter.categoryIndex = std::stoi(_parameterNode["CategoryIndex"].asString()); + if(!_parameterNode["Window"].isNull()) + result_._parameter.window = std::stoi(_parameterNode["Window"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DeleteDiversifyResult::getMessage()const +{ + return message_; +} + +std::string DeleteDiversifyResult::getCode()const +{ + return code_; +} + +DeleteDiversifyResult::Result DeleteDiversifyResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/DeleteMixRequest.cc b/airec/src/model/DeleteMixRequest.cc new file mode 100644 index 000000000..7cf70dceb --- /dev/null +++ b/airec/src/model/DeleteMixRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::DeleteMixRequest; + +DeleteMixRequest::DeleteMixRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/mixes/[Name]"); + setMethod(HttpRequest::Method::Delete); +} + +DeleteMixRequest::~DeleteMixRequest() +{} + +std::string DeleteMixRequest::getInstanceId()const +{ + return instanceId_; +} + +void DeleteMixRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DeleteMixRequest::getName()const +{ + return name_; +} + +void DeleteMixRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + diff --git a/airec/src/model/DeleteMixResult.cc b/airec/src/model/DeleteMixResult.cc new file mode 100644 index 000000000..c2fca09da --- /dev/null +++ b/airec/src/model/DeleteMixResult.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +DeleteMixResult::DeleteMixResult() : + ServiceResult() +{} + +DeleteMixResult::DeleteMixResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteMixResult::~DeleteMixResult() +{} + +void DeleteMixResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["Name"].isNull()) + result_.name = resultNode["Name"].asString(); + if(!resultNode["GmtCreate"].isNull()) + result_.gmtCreate = resultNode["GmtCreate"].asString(); + if(!resultNode["GmtModified"].isNull()) + result_.gmtModified = resultNode["GmtModified"].asString(); + auto _parameterNode = resultNode["Parameter"]; + auto allSettingsNode = _parameterNode["Settings"]["SettingsItem"]; + for (auto _parameterNodeSettingsSettingsItem : allSettingsNode) + { + Result::_Parameter::SettingsItem settingsItemObject; + if(!_parameterNodeSettingsSettingsItem["Name"].isNull()) + settingsItemObject.name = _parameterNodeSettingsSettingsItem["Name"].asString(); + if(!_parameterNodeSettingsSettingsItem["Value"].isNull()) + settingsItemObject.value = _parameterNodeSettingsSettingsItem["Value"].asString(); + result_._parameter.settings.push_back(settingsItemObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DeleteMixResult::getMessage()const +{ + return message_; +} + +std::string DeleteMixResult::getCode()const +{ + return code_; +} + +DeleteMixResult::Result DeleteMixResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/DeleteSceneRequest.cc b/airec/src/model/DeleteSceneRequest.cc new file mode 100644 index 000000000..60f8b1763 --- /dev/null +++ b/airec/src/model/DeleteSceneRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::DeleteSceneRequest; + +DeleteSceneRequest::DeleteSceneRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/scenes/[SceneId]"); + setMethod(HttpRequest::Method::Delete); +} + +DeleteSceneRequest::~DeleteSceneRequest() +{} + +std::string DeleteSceneRequest::getInstanceId()const +{ + return instanceId_; +} + +void DeleteSceneRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DeleteSceneRequest::getSceneId()const +{ + return sceneId_; +} + +void DeleteSceneRequest::setSceneId(const std::string& sceneId) +{ + sceneId_ = sceneId; + setParameter("SceneId", sceneId); +} + diff --git a/airec/src/model/DeleteSceneResult.cc b/airec/src/model/DeleteSceneResult.cc new file mode 100644 index 000000000..33d34a73d --- /dev/null +++ b/airec/src/model/DeleteSceneResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +DeleteSceneResult::DeleteSceneResult() : + ServiceResult() +{} + +DeleteSceneResult::DeleteSceneResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteSceneResult::~DeleteSceneResult() +{} + +void DeleteSceneResult::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["SceneId"].isNull()) + result_.sceneId = resultNode["SceneId"].asString(); + +} + +DeleteSceneResult::Result DeleteSceneResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/DescribeDataSetMessageRequest.cc b/airec/src/model/DescribeDataSetMessageRequest.cc new file mode 100644 index 000000000..42b1ef4b0 --- /dev/null +++ b/airec/src/model/DescribeDataSetMessageRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::DescribeDataSetMessageRequest; + +DescribeDataSetMessageRequest::DescribeDataSetMessageRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/dataSets/[VersionId]/messages"); + setMethod(HttpRequest::Method::Get); +} + +DescribeDataSetMessageRequest::~DescribeDataSetMessageRequest() +{} + +std::string DescribeDataSetMessageRequest::getVersionId()const +{ + return versionId_; +} + +void DescribeDataSetMessageRequest::setVersionId(const std::string& versionId) +{ + versionId_ = versionId; + setParameter("VersionId", versionId); +} + +std::string DescribeDataSetMessageRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeDataSetMessageRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/airec/src/model/DescribeDataSetMessageResult.cc b/airec/src/model/DescribeDataSetMessageResult.cc new file mode 100644 index 000000000..30c3cc7af --- /dev/null +++ b/airec/src/model/DescribeDataSetMessageResult.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::Airec; +using namespace AlibabaCloud::Airec::Model; + +DescribeDataSetMessageResult::DescribeDataSetMessageResult() : + ServiceResult() +{} + +DescribeDataSetMessageResult::DescribeDataSetMessageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDataSetMessageResult::~DescribeDataSetMessageResult() +{} + +void DescribeDataSetMessageResult::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["Message"].isNull()) + resultObject.message = valueResultResultItem["Message"].asString(); + if(!valueResultResultItem["ErrorLevel"].isNull()) + resultObject.errorLevel = valueResultResultItem["ErrorLevel"].asString(); + if(!valueResultResultItem["ErrorType"].isNull()) + resultObject.errorType = valueResultResultItem["ErrorType"].asString(); + if(!valueResultResultItem["Timestamp"].isNull()) + resultObject.timestamp = valueResultResultItem["Timestamp"].asString(); + result_.push_back(resultObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DescribeDataSetMessageResult::getMessage()const +{ + return message_; +} + +std::string DescribeDataSetMessageResult::getCode()const +{ + return code_; +} + +std::vector DescribeDataSetMessageResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/DescribeDataSetReportRequest.cc b/airec/src/model/DescribeDataSetReportRequest.cc new file mode 100644 index 000000000..cb0161308 --- /dev/null +++ b/airec/src/model/DescribeDataSetReportRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::DescribeDataSetReportRequest; + +DescribeDataSetReportRequest::DescribeDataSetReportRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/dataSets/[VersionId]/report"); + setMethod(HttpRequest::Method::Get); +} + +DescribeDataSetReportRequest::~DescribeDataSetReportRequest() +{} + +std::string DescribeDataSetReportRequest::getVersionId()const +{ + return versionId_; +} + +void DescribeDataSetReportRequest::setVersionId(const std::string& versionId) +{ + versionId_ = versionId; + setParameter("VersionId", versionId); +} + +std::string DescribeDataSetReportRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeDataSetReportRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/airec/src/model/DescribeDataSetReportResult.cc b/airec/src/model/DescribeDataSetReportResult.cc new file mode 100644 index 000000000..b5f494af5 --- /dev/null +++ b/airec/src/model/DescribeDataSetReportResult.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Airec; +using namespace AlibabaCloud::Airec::Model; + +DescribeDataSetReportResult::DescribeDataSetReportResult() : + ServiceResult() +{} + +DescribeDataSetReportResult::DescribeDataSetReportResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDataSetReportResult::~DescribeDataSetReportResult() +{} + +void DescribeDataSetReportResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + auto allDetailNode = resultNode["Detail"]["DetailItem"]; + for (auto resultNodeDetailDetailItem : allDetailNode) + { + Result::DetailItem detailItemObject; + if(!resultNodeDetailDetailItem["BizDate"].isNull()) + detailItemObject.bizDate = std::stol(resultNodeDetailDetailItem["BizDate"].asString()); + if(!resultNodeDetailDetailItem["Pv"].isNull()) + detailItemObject.pv = std::stol(resultNodeDetailDetailItem["Pv"].asString()); + if(!resultNodeDetailDetailItem["Uv"].isNull()) + detailItemObject.uv = std::stol(resultNodeDetailDetailItem["Uv"].asString()); + if(!resultNodeDetailDetailItem["Click"].isNull()) + detailItemObject.click = std::stol(resultNodeDetailDetailItem["Click"].asString()); + if(!resultNodeDetailDetailItem["Ctr"].isNull()) + detailItemObject.ctr = std::stof(resultNodeDetailDetailItem["Ctr"].asString()); + if(!resultNodeDetailDetailItem["UvCtr"].isNull()) + detailItemObject.uvCtr = std::stof(resultNodeDetailDetailItem["UvCtr"].asString()); + if(!resultNodeDetailDetailItem["PerUvBhv"].isNull()) + detailItemObject.perUvBhv = std::stof(resultNodeDetailDetailItem["PerUvBhv"].asString()); + if(!resultNodeDetailDetailItem["PerUvClick"].isNull()) + detailItemObject.perUvClick = std::stof(resultNodeDetailDetailItem["PerUvClick"].asString()); + if(!resultNodeDetailDetailItem["ClickUser"].isNull()) + detailItemObject.clickUser = std::stol(resultNodeDetailDetailItem["ClickUser"].asString()); + if(!resultNodeDetailDetailItem["ActiveItem"].isNull()) + detailItemObject.activeItem = std::stol(resultNodeDetailDetailItem["ActiveItem"].asString()); + result_.detail.push_back(detailItemObject); + } + auto overallNode = resultNode["Overall"]; + if(!overallNode["BhvCount"].isNull()) + result_.overall.bhvCount = std::stoi(overallNode["BhvCount"].asString()); + if(!overallNode["ItemItemCount"].isNull()) + result_.overall.itemItemCount = std::stoi(overallNode["ItemItemCount"].asString()); + if(!overallNode["UserUserCount"].isNull()) + result_.overall.userUserCount = std::stoi(overallNode["UserUserCount"].asString()); + if(!overallNode["ItemRepetitiveRate"].isNull()) + result_.overall.itemRepetitiveRate = std::stof(overallNode["ItemRepetitiveRate"].asString()); + if(!overallNode["UserRepetitiveRate"].isNull()) + result_.overall.userRepetitiveRate = std::stof(overallNode["UserRepetitiveRate"].asString()); + if(!overallNode["UserLegalRate"].isNull()) + result_.overall.userLegalRate = std::stof(overallNode["UserLegalRate"].asString()); + if(!overallNode["ItemLegalRate"].isNull()) + result_.overall.itemLegalRate = std::stof(overallNode["ItemLegalRate"].asString()); + if(!overallNode["BhvLegalRate"].isNull()) + result_.overall.bhvLegalRate = std::stof(overallNode["BhvLegalRate"].asString()); + if(!overallNode["UserCompleteRate"].isNull()) + result_.overall.userCompleteRate = std::stof(overallNode["UserCompleteRate"].asString()); + if(!overallNode["ItemCompleteRate"].isNull()) + result_.overall.itemCompleteRate = std::stof(overallNode["ItemCompleteRate"].asString()); + if(!overallNode["UserLoginRate"].isNull()) + result_.overall.userLoginRate = std::stof(overallNode["UserLoginRate"].asString()); + if(!overallNode["ItemLoginRate"].isNull()) + result_.overall.itemLoginRate = std::stof(overallNode["ItemLoginRate"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DescribeDataSetReportResult::getMessage()const +{ + return message_; +} + +std::string DescribeDataSetReportResult::getCode()const +{ + return code_; +} + +DescribeDataSetReportResult::Result DescribeDataSetReportResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/DescribeDiversifyRequest.cc b/airec/src/model/DescribeDiversifyRequest.cc new file mode 100644 index 000000000..b0919c25f --- /dev/null +++ b/airec/src/model/DescribeDiversifyRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::DescribeDiversifyRequest; + +DescribeDiversifyRequest::DescribeDiversifyRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/diversifies/[Name]"); + setMethod(HttpRequest::Method::Get); +} + +DescribeDiversifyRequest::~DescribeDiversifyRequest() +{} + +std::string DescribeDiversifyRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeDiversifyRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DescribeDiversifyRequest::getName()const +{ + return name_; +} + +void DescribeDiversifyRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + diff --git a/airec/src/model/DescribeDiversifyResult.cc b/airec/src/model/DescribeDiversifyResult.cc new file mode 100644 index 000000000..a84b94eda --- /dev/null +++ b/airec/src/model/DescribeDiversifyResult.cc @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +DescribeDiversifyResult::DescribeDiversifyResult() : + ServiceResult() +{} + +DescribeDiversifyResult::DescribeDiversifyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDiversifyResult::~DescribeDiversifyResult() +{} + +void DescribeDiversifyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["Name"].isNull()) + result_.name = resultNode["Name"].asString(); + if(!resultNode["GmtCreate"].isNull()) + result_.gmtCreate = resultNode["GmtCreate"].asString(); + if(!resultNode["GmtModified"].isNull()) + result_.gmtModified = resultNode["GmtModified"].asString(); + auto _parameterNode = resultNode["Parameter"]; + if(!_parameterNode["CategoryIndex"].isNull()) + result_._parameter.categoryIndex = std::stoi(_parameterNode["CategoryIndex"].asString()); + if(!_parameterNode["Window"].isNull()) + result_._parameter.window = std::stoi(_parameterNode["Window"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DescribeDiversifyResult::getMessage()const +{ + return message_; +} + +std::string DescribeDiversifyResult::getCode()const +{ + return code_; +} + +DescribeDiversifyResult::Result DescribeDiversifyResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/DescribeExposureSettingsRequest.cc b/airec/src/model/DescribeExposureSettingsRequest.cc new file mode 100644 index 000000000..42848ddcc --- /dev/null +++ b/airec/src/model/DescribeExposureSettingsRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::DescribeExposureSettingsRequest; + +DescribeExposureSettingsRequest::DescribeExposureSettingsRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/exposure-settings"); + setMethod(HttpRequest::Method::Get); +} + +DescribeExposureSettingsRequest::~DescribeExposureSettingsRequest() +{} + +std::string DescribeExposureSettingsRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeExposureSettingsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/airec/src/model/DescribeExposureSettingsResult.cc b/airec/src/model/DescribeExposureSettingsResult.cc new file mode 100644 index 000000000..2ba0a8ba4 --- /dev/null +++ b/airec/src/model/DescribeExposureSettingsResult.cc @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +DescribeExposureSettingsResult::DescribeExposureSettingsResult() : + ServiceResult() +{} + +DescribeExposureSettingsResult::DescribeExposureSettingsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeExposureSettingsResult::~DescribeExposureSettingsResult() +{} + +void DescribeExposureSettingsResult::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["DurationSeconds"].isNull()) + result_.durationSeconds = std::stoi(resultNode["DurationSeconds"].asString()); + if(!resultNode["ScenarioBased"].isNull()) + result_.scenarioBased = resultNode["ScenarioBased"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DescribeExposureSettingsResult::getMessage()const +{ + return message_; +} + +std::string DescribeExposureSettingsResult::getCode()const +{ + return code_; +} + +DescribeExposureSettingsResult::Result DescribeExposureSettingsResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/DescribeInstanceRequest.cc b/airec/src/model/DescribeInstanceRequest.cc new file mode 100644 index 000000000..d842ca3e2 --- /dev/null +++ b/airec/src/model/DescribeInstanceRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::DescribeInstanceRequest; + +DescribeInstanceRequest::DescribeInstanceRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]"); + setMethod(HttpRequest::Method::Get); +} + +DescribeInstanceRequest::~DescribeInstanceRequest() +{} + +std::string DescribeInstanceRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeInstanceRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/airec/src/model/DescribeInstanceResult.cc b/airec/src/model/DescribeInstanceResult.cc new file mode 100644 index 000000000..568ad9cdb --- /dev/null +++ b/airec/src/model/DescribeInstanceResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +DescribeInstanceResult::DescribeInstanceResult() : + ServiceResult() +{} + +DescribeInstanceResult::DescribeInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeInstanceResult::~DescribeInstanceResult() +{} + +void DescribeInstanceResult::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["InstanceId"].isNull()) + result_.instanceId = resultNode["InstanceId"].asString(); + if(!resultNode["ChargeType"].isNull()) + result_.chargeType = resultNode["ChargeType"].asString(); + if(!resultNode["RegionId"].isNull()) + result_.regionId = resultNode["RegionId"].asString(); + if(!resultNode["Name"].isNull()) + result_.name = resultNode["Name"].asString(); + if(!resultNode["Type"].isNull()) + result_.type = resultNode["Type"].asString(); + if(!resultNode["ExpiredTime"].isNull()) + result_.expiredTime = resultNode["ExpiredTime"].asString(); + if(!resultNode["GmtCreate"].isNull()) + result_.gmtCreate = resultNode["GmtCreate"].asString(); + if(!resultNode["GmtModified"].isNull()) + result_.gmtModified = resultNode["GmtModified"].asString(); + if(!resultNode["Status"].isNull()) + result_.status = resultNode["Status"].asString(); + if(!resultNode["Industry"].isNull()) + result_.industry = resultNode["Industry"].asString(); + if(!resultNode["Scene"].isNull()) + result_.scene = resultNode["Scene"].asString(); + if(!resultNode["DataSetVersion"].isNull()) + result_.dataSetVersion = resultNode["DataSetVersion"].asString(); + if(!resultNode["CommodityCode"].isNull()) + result_.commodityCode = resultNode["CommodityCode"].asString(); + if(!resultNode["LockMode"].isNull()) + result_.lockMode = resultNode["LockMode"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DescribeInstanceResult::getMessage()const +{ + return message_; +} + +std::string DescribeInstanceResult::getCode()const +{ + return code_; +} + +DescribeInstanceResult::Result DescribeInstanceResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/DescribeMixRequest.cc b/airec/src/model/DescribeMixRequest.cc new file mode 100644 index 000000000..c2d87188b --- /dev/null +++ b/airec/src/model/DescribeMixRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::DescribeMixRequest; + +DescribeMixRequest::DescribeMixRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/mixes/[Name]"); + setMethod(HttpRequest::Method::Get); +} + +DescribeMixRequest::~DescribeMixRequest() +{} + +std::string DescribeMixRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeMixRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DescribeMixRequest::getName()const +{ + return name_; +} + +void DescribeMixRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + diff --git a/airec/src/model/DescribeMixResult.cc b/airec/src/model/DescribeMixResult.cc new file mode 100644 index 000000000..3e5244387 --- /dev/null +++ b/airec/src/model/DescribeMixResult.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +DescribeMixResult::DescribeMixResult() : + ServiceResult() +{} + +DescribeMixResult::DescribeMixResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeMixResult::~DescribeMixResult() +{} + +void DescribeMixResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["Name"].isNull()) + result_.name = resultNode["Name"].asString(); + if(!resultNode["GmtCreate"].isNull()) + result_.gmtCreate = resultNode["GmtCreate"].asString(); + if(!resultNode["GmtModified"].isNull()) + result_.gmtModified = resultNode["GmtModified"].asString(); + auto _parameterNode = resultNode["Parameter"]; + auto allSettingsNode = _parameterNode["Settings"]["SettingsItem"]; + for (auto _parameterNodeSettingsSettingsItem : allSettingsNode) + { + Result::_Parameter::SettingsItem settingsItemObject; + if(!_parameterNodeSettingsSettingsItem["Name"].isNull()) + settingsItemObject.name = _parameterNodeSettingsSettingsItem["Name"].asString(); + if(!_parameterNodeSettingsSettingsItem["Value"].isNull()) + settingsItemObject.value = std::stoi(_parameterNodeSettingsSettingsItem["Value"].asString()); + result_._parameter.settings.push_back(settingsItemObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DescribeMixResult::getMessage()const +{ + return message_; +} + +std::string DescribeMixResult::getCode()const +{ + return code_; +} + +DescribeMixResult::Result DescribeMixResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/DescribeQuotaRequest.cc b/airec/src/model/DescribeQuotaRequest.cc new file mode 100644 index 000000000..07ab54a5b --- /dev/null +++ b/airec/src/model/DescribeQuotaRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::DescribeQuotaRequest; + +DescribeQuotaRequest::DescribeQuotaRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/quota"); + setMethod(HttpRequest::Method::Get); +} + +DescribeQuotaRequest::~DescribeQuotaRequest() +{} + +std::string DescribeQuotaRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeQuotaRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/airec/src/model/DescribeQuotaResult.cc b/airec/src/model/DescribeQuotaResult.cc new file mode 100644 index 000000000..a891aa80d --- /dev/null +++ b/airec/src/model/DescribeQuotaResult.cc @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +DescribeQuotaResult::DescribeQuotaResult() : + ServiceResult() +{} + +DescribeQuotaResult::DescribeQuotaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeQuotaResult::~DescribeQuotaResult() +{} + +void DescribeQuotaResult::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["UserCount"].isNull()) + result_.userCount = std::stol(resultNode["UserCount"].asString()); + if(!resultNode["UserCountUsed"].isNull()) + result_.userCountUsed = std::stol(resultNode["UserCountUsed"].asString()); + if(!resultNode["ItemCount"].isNull()) + result_.itemCount = std::stol(resultNode["ItemCount"].asString()); + if(!resultNode["ItemCountUsed"].isNull()) + result_.itemCountUsed = std::stol(resultNode["ItemCountUsed"].asString()); + if(!resultNode["Qps"].isNull()) + result_.qps = std::stoi(resultNode["Qps"].asString()); + if(!resultNode["CurrentQps"].isNull()) + result_.currentQps = std::stoi(resultNode["CurrentQps"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DescribeQuotaResult::getMessage()const +{ + return message_; +} + +std::string DescribeQuotaResult::getCode()const +{ + return code_; +} + +DescribeQuotaResult::Result DescribeQuotaResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/DescribeRegionsRequest.cc b/airec/src/model/DescribeRegionsRequest.cc new file mode 100644 index 000000000..e764a6e7e --- /dev/null +++ b/airec/src/model/DescribeRegionsRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::DescribeRegionsRequest; + +DescribeRegionsRequest::DescribeRegionsRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/configurations/regions"); + setMethod(HttpRequest::Method::Get); +} + +DescribeRegionsRequest::~DescribeRegionsRequest() +{} + +std::string DescribeRegionsRequest::getAcceptLanguage()const +{ + return acceptLanguage_; +} + +void DescribeRegionsRequest::setAcceptLanguage(const std::string& acceptLanguage) +{ + acceptLanguage_ = acceptLanguage; + setParameter("AcceptLanguage", acceptLanguage); +} + diff --git a/airec/src/model/DescribeRegionsResult.cc b/airec/src/model/DescribeRegionsResult.cc new file mode 100644 index 000000000..74d8ef0a0 --- /dev/null +++ b/airec/src/model/DescribeRegionsResult.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::Airec; +using namespace AlibabaCloud::Airec::Model; + +DescribeRegionsResult::DescribeRegionsResult() : + ServiceResult() +{} + +DescribeRegionsResult::DescribeRegionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRegionsResult::~DescribeRegionsResult() +{} + +void DescribeRegionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allResultNode = value["Result"]["Item"]; + for (auto valueResultItem : allResultNode) + { + Item resultObject; + if(!valueResultItem["RegionId"].isNull()) + resultObject.regionId = valueResultItem["RegionId"].asString(); + if(!valueResultItem["LocalName"].isNull()) + resultObject.localName = valueResultItem["LocalName"].asString(); + if(!valueResultItem["Endpoint"].isNull()) + resultObject.endpoint = valueResultItem["Endpoint"].asString(); + if(!valueResultItem["Status"].isNull()) + resultObject.status = valueResultItem["Status"].asString(); + if(!valueResultItem["ConsoleUrl"].isNull()) + resultObject.consoleUrl = valueResultItem["ConsoleUrl"].asString(); + result_.push_back(resultObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DescribeRegionsResult::getMessage()const +{ + return message_; +} + +std::string DescribeRegionsResult::getCode()const +{ + return code_; +} + +std::vector DescribeRegionsResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/DescribeRuleRequest.cc b/airec/src/model/DescribeRuleRequest.cc new file mode 100644 index 000000000..1ea0aec54 --- /dev/null +++ b/airec/src/model/DescribeRuleRequest.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::DescribeRuleRequest; + +DescribeRuleRequest::DescribeRuleRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/rules/[RuleId]"); + setMethod(HttpRequest::Method::Get); +} + +DescribeRuleRequest::~DescribeRuleRequest() +{} + +std::string DescribeRuleRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeRuleRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DescribeRuleRequest::getRuleType()const +{ + return ruleType_; +} + +void DescribeRuleRequest::setRuleType(const std::string& ruleType) +{ + ruleType_ = ruleType; + setParameter("RuleType", ruleType); +} + +std::string DescribeRuleRequest::getSceneId()const +{ + return sceneId_; +} + +void DescribeRuleRequest::setSceneId(const std::string& sceneId) +{ + sceneId_ = sceneId; + setParameter("SceneId", sceneId); +} + +std::string DescribeRuleRequest::getRuleId()const +{ + return ruleId_; +} + +void DescribeRuleRequest::setRuleId(const std::string& ruleId) +{ + ruleId_ = ruleId; + setParameter("RuleId", ruleId); +} + diff --git a/airec/src/model/DescribeRuleResult.cc b/airec/src/model/DescribeRuleResult.cc new file mode 100644 index 000000000..4f77048c9 --- /dev/null +++ b/airec/src/model/DescribeRuleResult.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::Airec; +using namespace AlibabaCloud::Airec::Model; + +DescribeRuleResult::DescribeRuleResult() : + ServiceResult() +{} + +DescribeRuleResult::DescribeRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRuleResult::~DescribeRuleResult() +{} + +void DescribeRuleResult::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["RuleId"].isNull()) + result_.ruleId = resultNode["RuleId"].asString(); + if(!resultNode["GmtCreate"].isNull()) + result_.gmtCreate = resultNode["GmtCreate"].asString(); + if(!resultNode["GmtModified"].isNull()) + result_.gmtModified = resultNode["GmtModified"].asString(); + if(!resultNode["Status"].isNull()) + result_.status = resultNode["Status"].asString(); + +} + +DescribeRuleResult::Result DescribeRuleResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/DescribeSceneRequest.cc b/airec/src/model/DescribeSceneRequest.cc new file mode 100644 index 000000000..36c4394fc --- /dev/null +++ b/airec/src/model/DescribeSceneRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::DescribeSceneRequest; + +DescribeSceneRequest::DescribeSceneRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/scenes/[SceneId]"); + setMethod(HttpRequest::Method::Get); +} + +DescribeSceneRequest::~DescribeSceneRequest() +{} + +std::string DescribeSceneRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeSceneRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DescribeSceneRequest::getSceneId()const +{ + return sceneId_; +} + +void DescribeSceneRequest::setSceneId(const std::string& sceneId) +{ + sceneId_ = sceneId; + setParameter("SceneId", sceneId); +} + diff --git a/airec/src/model/DescribeSceneResult.cc b/airec/src/model/DescribeSceneResult.cc new file mode 100644 index 000000000..d7c289bf7 --- /dev/null +++ b/airec/src/model/DescribeSceneResult.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::Airec; +using namespace AlibabaCloud::Airec::Model; + +DescribeSceneResult::DescribeSceneResult() : + ServiceResult() +{} + +DescribeSceneResult::DescribeSceneResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSceneResult::~DescribeSceneResult() +{} + +void DescribeSceneResult::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["SceneId"].isNull()) + result_.sceneId = resultNode["SceneId"].asString(); + if(!resultNode["GmtCreate"].isNull()) + result_.gmtCreate = resultNode["GmtCreate"].asString(); + if(!resultNode["GmtModified"].isNull()) + result_.gmtModified = resultNode["GmtModified"].asString(); + if(!resultNode["Status"].isNull()) + result_.status = resultNode["Status"].asString(); + +} + +DescribeSceneResult::Result DescribeSceneResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/DescribeSceneThroughputRequest.cc b/airec/src/model/DescribeSceneThroughputRequest.cc new file mode 100644 index 000000000..227f32c34 --- /dev/null +++ b/airec/src/model/DescribeSceneThroughputRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::DescribeSceneThroughputRequest; + +DescribeSceneThroughputRequest::DescribeSceneThroughputRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/scenes/[SceneId]/throughput"); + setMethod(HttpRequest::Method::Get); +} + +DescribeSceneThroughputRequest::~DescribeSceneThroughputRequest() +{} + +std::string DescribeSceneThroughputRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeSceneThroughputRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DescribeSceneThroughputRequest::getSceneId()const +{ + return sceneId_; +} + +void DescribeSceneThroughputRequest::setSceneId(const std::string& sceneId) +{ + sceneId_ = sceneId; + setParameter("SceneId", sceneId); +} + diff --git a/airec/src/model/DescribeSceneThroughputResult.cc b/airec/src/model/DescribeSceneThroughputResult.cc new file mode 100644 index 000000000..8c201dbd8 --- /dev/null +++ b/airec/src/model/DescribeSceneThroughputResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +DescribeSceneThroughputResult::DescribeSceneThroughputResult() : + ServiceResult() +{} + +DescribeSceneThroughputResult::DescribeSceneThroughputResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSceneThroughputResult::~DescribeSceneThroughputResult() +{} + +void DescribeSceneThroughputResult::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["PvCount"].isNull()) + result_.pvCount = std::stol(resultNode["PvCount"].asString()); + +} + +DescribeSceneThroughputResult::Result DescribeSceneThroughputResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/DescribeSyncReportDetailRequest.cc b/airec/src/model/DescribeSyncReportDetailRequest.cc new file mode 100644 index 000000000..d8532a4d2 --- /dev/null +++ b/airec/src/model/DescribeSyncReportDetailRequest.cc @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::DescribeSyncReportDetailRequest; + +DescribeSyncReportDetailRequest::DescribeSyncReportDetailRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/sync-reports/detail"); + setMethod(HttpRequest::Method::Get); +} + +DescribeSyncReportDetailRequest::~DescribeSyncReportDetailRequest() +{} + +std::string DescribeSyncReportDetailRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeSyncReportDetailRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DescribeSyncReportDetailRequest::getLevelType()const +{ + return levelType_; +} + +void DescribeSyncReportDetailRequest::setLevelType(const std::string& levelType) +{ + levelType_ = levelType; + setParameter("LevelType", levelType); +} + +long DescribeSyncReportDetailRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeSyncReportDetailRequest::setEndTime(long endTime) +{ + endTime_ = endTime; + setParameter("EndTime", std::to_string(endTime)); +} + +long DescribeSyncReportDetailRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeSyncReportDetailRequest::setStartTime(long startTime) +{ + startTime_ = startTime; + setParameter("StartTime", std::to_string(startTime)); +} + +std::string DescribeSyncReportDetailRequest::getType()const +{ + return type_; +} + +void DescribeSyncReportDetailRequest::setType(const std::string& type) +{ + type_ = type; + setParameter("Type", type); +} + diff --git a/airec/src/model/DescribeSyncReportDetailResult.cc b/airec/src/model/DescribeSyncReportDetailResult.cc new file mode 100644 index 000000000..ae4f3b263 --- /dev/null +++ b/airec/src/model/DescribeSyncReportDetailResult.cc @@ -0,0 +1,91 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +DescribeSyncReportDetailResult::DescribeSyncReportDetailResult() : + ServiceResult() +{} + +DescribeSyncReportDetailResult::DescribeSyncReportDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSyncReportDetailResult::~DescribeSyncReportDetailResult() +{} + +void DescribeSyncReportDetailResult::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["Type"].isNull()) + resultObject.type = valueResultResultItem["Type"].asString(); + if(!valueResultResultItem["ErrorPercent"].isNull()) + resultObject.errorPercent = std::stof(valueResultResultItem["ErrorPercent"].asString()); + if(!valueResultResultItem["ErrorCount"].isNull()) + resultObject.errorCount = std::stoi(valueResultResultItem["ErrorCount"].asString()); + if(!valueResultResultItem["DefaultDisplay"].isNull()) + resultObject.defaultDisplay = valueResultResultItem["DefaultDisplay"].asString() == "true"; + if(!valueResultResultItem["SampleDisplay"].isNull()) + resultObject.sampleDisplay = valueResultResultItem["SampleDisplay"].asString() == "true"; + auto allHistoryDataNode = allResultNode["HistoryData"]["HistoryDataItem"]; + for (auto allResultNodeHistoryDataHistoryDataItem : allHistoryDataNode) + { + ResultItem::HistoryDataItem historyDataObject; + if(!allResultNodeHistoryDataHistoryDataItem["ErrorPercent"].isNull()) + historyDataObject.errorPercent = std::stof(allResultNodeHistoryDataHistoryDataItem["ErrorPercent"].asString()); + if(!allResultNodeHistoryDataHistoryDataItem["StartTime"].isNull()) + historyDataObject.startTime = std::stol(allResultNodeHistoryDataHistoryDataItem["StartTime"].asString()); + if(!allResultNodeHistoryDataHistoryDataItem["EndTime"].isNull()) + historyDataObject.endTime = std::stol(allResultNodeHistoryDataHistoryDataItem["EndTime"].asString()); + resultObject.historyData.push_back(historyDataObject); + } + result_.push_back(resultObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DescribeSyncReportDetailResult::getMessage()const +{ + return message_; +} + +std::string DescribeSyncReportDetailResult::getCode()const +{ + return code_; +} + +std::vector DescribeSyncReportDetailResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/DescribeSyncReportOutliersRequest.cc b/airec/src/model/DescribeSyncReportOutliersRequest.cc new file mode 100644 index 000000000..72f2eb808 --- /dev/null +++ b/airec/src/model/DescribeSyncReportOutliersRequest.cc @@ -0,0 +1,96 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::DescribeSyncReportOutliersRequest; + +DescribeSyncReportOutliersRequest::DescribeSyncReportOutliersRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/sync-reports/outliers"); + setMethod(HttpRequest::Method::Get); +} + +DescribeSyncReportOutliersRequest::~DescribeSyncReportOutliersRequest() +{} + +std::string DescribeSyncReportOutliersRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeSyncReportOutliersRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DescribeSyncReportOutliersRequest::getLevelType()const +{ + return levelType_; +} + +void DescribeSyncReportOutliersRequest::setLevelType(const std::string& levelType) +{ + levelType_ = levelType; + setParameter("LevelType", levelType); +} + +long DescribeSyncReportOutliersRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeSyncReportOutliersRequest::setEndTime(long endTime) +{ + endTime_ = endTime; + setParameter("EndTime", std::to_string(endTime)); +} + +long DescribeSyncReportOutliersRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeSyncReportOutliersRequest::setStartTime(long startTime) +{ + startTime_ = startTime; + setParameter("StartTime", std::to_string(startTime)); +} + +std::string DescribeSyncReportOutliersRequest::getType()const +{ + return type_; +} + +void DescribeSyncReportOutliersRequest::setType(const std::string& type) +{ + type_ = type; + setParameter("Type", type); +} + +std::string DescribeSyncReportOutliersRequest::getKey()const +{ + return key_; +} + +void DescribeSyncReportOutliersRequest::setKey(const std::string& key) +{ + key_ = key; + setParameter("Key", key); +} + diff --git a/airec/src/model/DescribeSyncReportOutliersResult.cc b/airec/src/model/DescribeSyncReportOutliersResult.cc new file mode 100644 index 000000000..85d7ba5b8 --- /dev/null +++ b/airec/src/model/DescribeSyncReportOutliersResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +DescribeSyncReportOutliersResult::DescribeSyncReportOutliersResult() : + ServiceResult() +{} + +DescribeSyncReportOutliersResult::DescribeSyncReportOutliersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSyncReportOutliersResult::~DescribeSyncReportOutliersResult() +{} + +void DescribeSyncReportOutliersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Result"].isNull()) + result_ = value["Result"].asString(); + +} + +std::string DescribeSyncReportOutliersResult::getMessage()const +{ + return message_; +} + +std::string DescribeSyncReportOutliersResult::getCode()const +{ + return code_; +} + +std::string DescribeSyncReportOutliersResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/DescribeUserMetricsRequest.cc b/airec/src/model/DescribeUserMetricsRequest.cc new file mode 100644 index 000000000..6dfbdf29f --- /dev/null +++ b/airec/src/model/DescribeUserMetricsRequest.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::DescribeUserMetricsRequest; + +DescribeUserMetricsRequest::DescribeUserMetricsRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/metrics"); + setMethod(HttpRequest::Method::Get); +} + +DescribeUserMetricsRequest::~DescribeUserMetricsRequest() +{} + +std::string DescribeUserMetricsRequest::getMetricType()const +{ + return metricType_; +} + +void DescribeUserMetricsRequest::setMetricType(const std::string& metricType) +{ + metricType_ = metricType; + setParameter("MetricType", metricType); +} + +std::string DescribeUserMetricsRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeUserMetricsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +long DescribeUserMetricsRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeUserMetricsRequest::setEndTime(long endTime) +{ + endTime_ = endTime; + setParameter("EndTime", std::to_string(endTime)); +} + +long DescribeUserMetricsRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeUserMetricsRequest::setStartTime(long startTime) +{ + startTime_ = startTime; + setParameter("StartTime", std::to_string(startTime)); +} + diff --git a/airec/src/model/DescribeUserMetricsResult.cc b/airec/src/model/DescribeUserMetricsResult.cc new file mode 100644 index 000000000..14785adce --- /dev/null +++ b/airec/src/model/DescribeUserMetricsResult.cc @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Airec; +using namespace AlibabaCloud::Airec::Model; + +DescribeUserMetricsResult::DescribeUserMetricsResult() : + ServiceResult() +{} + +DescribeUserMetricsResult::DescribeUserMetricsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeUserMetricsResult::~DescribeUserMetricsResult() +{} + +void DescribeUserMetricsResult::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["SceneId"].isNull()) + resultObject.sceneId = valueResultResultItem["SceneId"].asString(); + auto allDataPointsNode = allResultNode["DataPoints"]["DataPointsItem"]; + for (auto allResultNodeDataPointsDataPointsItem : allDataPointsNode) + { + ResultItem::DataPointsItem dataPointsObject; + if(!allResultNodeDataPointsDataPointsItem["Val"].isNull()) + dataPointsObject.val = std::stof(allResultNodeDataPointsDataPointsItem["Val"].asString()); + if(!allResultNodeDataPointsDataPointsItem["StartTime"].isNull()) + dataPointsObject.startTime = std::stol(allResultNodeDataPointsDataPointsItem["StartTime"].asString()); + if(!allResultNodeDataPointsDataPointsItem["EndTime"].isNull()) + dataPointsObject.endTime = std::stol(allResultNodeDataPointsDataPointsItem["EndTime"].asString()); + resultObject.dataPoints.push_back(dataPointsObject); + } + result_.push_back(resultObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DescribeUserMetricsResult::getMessage()const +{ + return message_; +} + +std::string DescribeUserMetricsResult::getCode()const +{ + return code_; +} + +std::vector DescribeUserMetricsResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/DowngradeInstanceRequest.cc b/airec/src/model/DowngradeInstanceRequest.cc new file mode 100644 index 000000000..fd68ab3a4 --- /dev/null +++ b/airec/src/model/DowngradeInstanceRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::DowngradeInstanceRequest; + +DowngradeInstanceRequest::DowngradeInstanceRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/actions/downgrade"); + setMethod(HttpRequest::Method::Post); +} + +DowngradeInstanceRequest::~DowngradeInstanceRequest() +{} + +std::string DowngradeInstanceRequest::getInstanceId()const +{ + return instanceId_; +} + +void DowngradeInstanceRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/airec/src/model/DowngradeInstanceResult.cc b/airec/src/model/DowngradeInstanceResult.cc new file mode 100644 index 000000000..2273121bc --- /dev/null +++ b/airec/src/model/DowngradeInstanceResult.cc @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +DowngradeInstanceResult::DowngradeInstanceResult() : + ServiceResult() +{} + +DowngradeInstanceResult::DowngradeInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DowngradeInstanceResult::~DowngradeInstanceResult() +{} + +void DowngradeInstanceResult::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["InstanceId"].isNull()) + result_.instanceId = resultNode["InstanceId"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DowngradeInstanceResult::getMessage()const +{ + return message_; +} + +std::string DowngradeInstanceResult::getCode()const +{ + return code_; +} + +DowngradeInstanceResult::Result DowngradeInstanceResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/ListDashboardDetailsFlowsRequest.cc b/airec/src/model/ListDashboardDetailsFlowsRequest.cc new file mode 100644 index 000000000..d7d018682 --- /dev/null +++ b/airec/src/model/ListDashboardDetailsFlowsRequest.cc @@ -0,0 +1,96 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::ListDashboardDetailsFlowsRequest; + +ListDashboardDetailsFlowsRequest::ListDashboardDetailsFlowsRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/dashboard/details/flows"); + setMethod(HttpRequest::Method::Get); +} + +ListDashboardDetailsFlowsRequest::~ListDashboardDetailsFlowsRequest() +{} + +std::string ListDashboardDetailsFlowsRequest::getMetricType()const +{ + return metricType_; +} + +void ListDashboardDetailsFlowsRequest::setMetricType(const std::string& metricType) +{ + metricType_ = metricType; + setParameter("MetricType", metricType); +} + +std::string ListDashboardDetailsFlowsRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListDashboardDetailsFlowsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ListDashboardDetailsFlowsRequest::getTraceIds()const +{ + return traceIds_; +} + +void ListDashboardDetailsFlowsRequest::setTraceIds(const std::string& traceIds) +{ + traceIds_ = traceIds; + setParameter("TraceIds", traceIds); +} + +long ListDashboardDetailsFlowsRequest::getEndTime()const +{ + return endTime_; +} + +void ListDashboardDetailsFlowsRequest::setEndTime(long endTime) +{ + endTime_ = endTime; + setParameter("EndTime", std::to_string(endTime)); +} + +long ListDashboardDetailsFlowsRequest::getStartTime()const +{ + return startTime_; +} + +void ListDashboardDetailsFlowsRequest::setStartTime(long startTime) +{ + startTime_ = startTime; + setParameter("StartTime", std::to_string(startTime)); +} + +std::string ListDashboardDetailsFlowsRequest::getSceneIds()const +{ + return sceneIds_; +} + +void ListDashboardDetailsFlowsRequest::setSceneIds(const std::string& sceneIds) +{ + sceneIds_ = sceneIds; + setParameter("SceneIds", sceneIds); +} + diff --git a/airec/src/model/ListDashboardDetailsFlowsResult.cc b/airec/src/model/ListDashboardDetailsFlowsResult.cc new file mode 100644 index 000000000..b30dd0023 --- /dev/null +++ b/airec/src/model/ListDashboardDetailsFlowsResult.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 +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +ListDashboardDetailsFlowsResult::ListDashboardDetailsFlowsResult() : + ServiceResult() +{} + +ListDashboardDetailsFlowsResult::ListDashboardDetailsFlowsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListDashboardDetailsFlowsResult::~ListDashboardDetailsFlowsResult() +{} + +void ListDashboardDetailsFlowsResult::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["MetricType"].isNull()) + result_.metricType = resultNode["MetricType"].asString(); + auto allMetricDataNode = resultNode["MetricData"]["MetricDataItem"]; + for (auto resultNodeMetricDataMetricDataItem : allMetricDataNode) + { + Result::MetricDataItem metricDataItemObject; + if(!resultNodeMetricDataMetricDataItem["TraceId"].isNull()) + metricDataItemObject.traceId = resultNodeMetricDataMetricDataItem["TraceId"].asString(); + if(!resultNodeMetricDataMetricDataItem["SceneId"].isNull()) + metricDataItemObject.sceneId = resultNodeMetricDataMetricDataItem["SceneId"].asString(); + if(!resultNodeMetricDataMetricDataItem["MetricRes"].isNull()) + metricDataItemObject.metricRes = resultNodeMetricDataMetricDataItem["MetricRes"].asString(); + result_.metricData.push_back(metricDataItemObject); + } + +} + +ListDashboardDetailsFlowsResult::Result ListDashboardDetailsFlowsResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/ListDashboardDetailsRequest.cc b/airec/src/model/ListDashboardDetailsRequest.cc new file mode 100644 index 000000000..92fd359ed --- /dev/null +++ b/airec/src/model/ListDashboardDetailsRequest.cc @@ -0,0 +1,96 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::ListDashboardDetailsRequest; + +ListDashboardDetailsRequest::ListDashboardDetailsRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/dashboard/details"); + setMethod(HttpRequest::Method::Get); +} + +ListDashboardDetailsRequest::~ListDashboardDetailsRequest() +{} + +std::string ListDashboardDetailsRequest::getMetricType()const +{ + return metricType_; +} + +void ListDashboardDetailsRequest::setMetricType(const std::string& metricType) +{ + metricType_ = metricType; + setParameter("MetricType", metricType); +} + +std::string ListDashboardDetailsRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListDashboardDetailsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ListDashboardDetailsRequest::getTraceIds()const +{ + return traceIds_; +} + +void ListDashboardDetailsRequest::setTraceIds(const std::string& traceIds) +{ + traceIds_ = traceIds; + setParameter("TraceIds", traceIds); +} + +long ListDashboardDetailsRequest::getEndTime()const +{ + return endTime_; +} + +void ListDashboardDetailsRequest::setEndTime(long endTime) +{ + endTime_ = endTime; + setParameter("EndTime", std::to_string(endTime)); +} + +long ListDashboardDetailsRequest::getStartTime()const +{ + return startTime_; +} + +void ListDashboardDetailsRequest::setStartTime(long startTime) +{ + startTime_ = startTime; + setParameter("StartTime", std::to_string(startTime)); +} + +std::string ListDashboardDetailsRequest::getSceneIds()const +{ + return sceneIds_; +} + +void ListDashboardDetailsRequest::setSceneIds(const std::string& sceneIds) +{ + sceneIds_ = sceneIds; + setParameter("SceneIds", sceneIds); +} + diff --git a/airec/src/model/ListDashboardDetailsResult.cc b/airec/src/model/ListDashboardDetailsResult.cc new file mode 100644 index 000000000..50a1d78d3 --- /dev/null +++ b/airec/src/model/ListDashboardDetailsResult.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 +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +ListDashboardDetailsResult::ListDashboardDetailsResult() : + ServiceResult() +{} + +ListDashboardDetailsResult::ListDashboardDetailsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListDashboardDetailsResult::~ListDashboardDetailsResult() +{} + +void ListDashboardDetailsResult::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["TraceId"].isNull()) + resultObject.traceId = valueResultResultItem["TraceId"].asString(); + if(!valueResultResultItem["SceneId"].isNull()) + resultObject.sceneId = valueResultResultItem["SceneId"].asString(); + auto metricResNode = value["MetricRes"]; + if(!metricResNode["Total"].isNull()) + resultObject.metricRes.total = metricResNode["Total"].asString(); + if(!metricResNode["Detail"].isNull()) + resultObject.metricRes.detail = metricResNode["Detail"].asString(); + result_.push_back(resultObject); + } + +} + +std::vector ListDashboardDetailsResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/ListDashboardMetricsFlowsRequest.cc b/airec/src/model/ListDashboardMetricsFlowsRequest.cc new file mode 100644 index 000000000..be1ac0435 --- /dev/null +++ b/airec/src/model/ListDashboardMetricsFlowsRequest.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::ListDashboardMetricsFlowsRequest; + +ListDashboardMetricsFlowsRequest::ListDashboardMetricsFlowsRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/dashboard/metrics/flows"); + setMethod(HttpRequest::Method::Get); +} + +ListDashboardMetricsFlowsRequest::~ListDashboardMetricsFlowsRequest() +{} + +std::string ListDashboardMetricsFlowsRequest::getMetricType()const +{ + return metricType_; +} + +void ListDashboardMetricsFlowsRequest::setMetricType(const std::string& metricType) +{ + metricType_ = metricType; + setParameter("MetricType", metricType); +} + +std::string ListDashboardMetricsFlowsRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListDashboardMetricsFlowsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +long ListDashboardMetricsFlowsRequest::getEndTime()const +{ + return endTime_; +} + +void ListDashboardMetricsFlowsRequest::setEndTime(long endTime) +{ + endTime_ = endTime; + setParameter("EndTime", std::to_string(endTime)); +} + +long ListDashboardMetricsFlowsRequest::getStartTime()const +{ + return startTime_; +} + +void ListDashboardMetricsFlowsRequest::setStartTime(long startTime) +{ + startTime_ = startTime; + setParameter("StartTime", std::to_string(startTime)); +} + diff --git a/airec/src/model/ListDashboardMetricsFlowsResult.cc b/airec/src/model/ListDashboardMetricsFlowsResult.cc new file mode 100644 index 000000000..dd5ebc947 --- /dev/null +++ b/airec/src/model/ListDashboardMetricsFlowsResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +ListDashboardMetricsFlowsResult::ListDashboardMetricsFlowsResult() : + ServiceResult() +{} + +ListDashboardMetricsFlowsResult::ListDashboardMetricsFlowsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListDashboardMetricsFlowsResult::~ListDashboardMetricsFlowsResult() +{} + +void ListDashboardMetricsFlowsResult::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["MetricType"].isNull()) + resultObject.metricType = valueResultResultItem["MetricType"].asString(); + if(!valueResultResultItem["MetricData"].isNull()) + resultObject.metricData = valueResultResultItem["MetricData"].asString(); + result_.push_back(resultObject); + } + +} + +std::vector ListDashboardMetricsFlowsResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/ListDashboardMetricsRequest.cc b/airec/src/model/ListDashboardMetricsRequest.cc new file mode 100644 index 000000000..d8ed5fec7 --- /dev/null +++ b/airec/src/model/ListDashboardMetricsRequest.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::ListDashboardMetricsRequest; + +ListDashboardMetricsRequest::ListDashboardMetricsRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/dashboard/metrics"); + setMethod(HttpRequest::Method::Get); +} + +ListDashboardMetricsRequest::~ListDashboardMetricsRequest() +{} + +std::string ListDashboardMetricsRequest::getMetricType()const +{ + return metricType_; +} + +void ListDashboardMetricsRequest::setMetricType(const std::string& metricType) +{ + metricType_ = metricType; + setParameter("MetricType", metricType); +} + +std::string ListDashboardMetricsRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListDashboardMetricsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +long ListDashboardMetricsRequest::getEndTime()const +{ + return endTime_; +} + +void ListDashboardMetricsRequest::setEndTime(long endTime) +{ + endTime_ = endTime; + setParameter("EndTime", std::to_string(endTime)); +} + +long ListDashboardMetricsRequest::getStartTime()const +{ + return startTime_; +} + +void ListDashboardMetricsRequest::setStartTime(long startTime) +{ + startTime_ = startTime; + setParameter("StartTime", std::to_string(startTime)); +} + diff --git a/airec/src/model/ListDashboardMetricsResult.cc b/airec/src/model/ListDashboardMetricsResult.cc new file mode 100644 index 000000000..c90f9c581 --- /dev/null +++ b/airec/src/model/ListDashboardMetricsResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +ListDashboardMetricsResult::ListDashboardMetricsResult() : + ServiceResult() +{} + +ListDashboardMetricsResult::ListDashboardMetricsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListDashboardMetricsResult::~ListDashboardMetricsResult() +{} + +void ListDashboardMetricsResult::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["Total"].isNull()) + resultObject.total = valueResultResultItem["Total"].asString(); + auto allDetailNode = allResultNode["Detail"]["DetailItem"]; + for (auto allResultNodeDetailDetailItem : allDetailNode) + { + ResultItem::DetailItem detailObject; + if(!allResultNodeDetailDetailItem["Val"].isNull()) + detailObject.val = allResultNodeDetailDetailItem["Val"].asString(); + if(!allResultNodeDetailDetailItem["StartTime"].isNull()) + detailObject.startTime = allResultNodeDetailDetailItem["StartTime"].asString(); + if(!allResultNodeDetailDetailItem["EndTime"].isNull()) + detailObject.endTime = allResultNodeDetailDetailItem["EndTime"].asString(); + resultObject.detail.push_back(detailObject); + } + result_.push_back(resultObject); + } + +} + +std::vector ListDashboardMetricsResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/ListDashboardParametersRequest.cc b/airec/src/model/ListDashboardParametersRequest.cc new file mode 100644 index 000000000..3cefbaf35 --- /dev/null +++ b/airec/src/model/ListDashboardParametersRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::ListDashboardParametersRequest; + +ListDashboardParametersRequest::ListDashboardParametersRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/dashboard/parameters"); + setMethod(HttpRequest::Method::Get); +} + +ListDashboardParametersRequest::~ListDashboardParametersRequest() +{} + +std::string ListDashboardParametersRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListDashboardParametersRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/airec/src/model/ListDashboardParametersResult.cc b/airec/src/model/ListDashboardParametersResult.cc new file mode 100644 index 000000000..39c92691f --- /dev/null +++ b/airec/src/model/ListDashboardParametersResult.cc @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +ListDashboardParametersResult::ListDashboardParametersResult() : + ServiceResult() +{} + +ListDashboardParametersResult::ListDashboardParametersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListDashboardParametersResult::~ListDashboardParametersResult() +{} + +void ListDashboardParametersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + auto allTraceId = resultNode["TraceId"]["TraceId"]; + for (auto value : allTraceId) + result_.traceId.push_back(value.asString()); + auto allSceneId = resultNode["SceneId"]["SceneId"]; + for (auto value : allSceneId) + result_.sceneId.push_back(value.asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ListDashboardParametersResult::getMessage()const +{ + return message_; +} + +std::string ListDashboardParametersResult::getCode()const +{ + return code_; +} + +ListDashboardParametersResult::Result ListDashboardParametersResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/ListDashboardRequest.cc b/airec/src/model/ListDashboardRequest.cc new file mode 100644 index 000000000..45b124cf5 --- /dev/null +++ b/airec/src/model/ListDashboardRequest.cc @@ -0,0 +1,107 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::ListDashboardRequest; + +ListDashboardRequest::ListDashboardRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/dashboard/statistics"); + setMethod(HttpRequest::Method::Get); +} + +ListDashboardRequest::~ListDashboardRequest() +{} + +std::string ListDashboardRequest::getTraceId()const +{ + return traceId_; +} + +void ListDashboardRequest::setTraceId(const std::string& traceId) +{ + traceId_ = traceId; + setParameter("TraceId", traceId); +} + +std::string ListDashboardRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListDashboardRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +long ListDashboardRequest::getEndDate()const +{ + return endDate_; +} + +void ListDashboardRequest::setEndDate(long endDate) +{ + endDate_ = endDate; + setParameter("EndDate", std::to_string(endDate)); +} + +int ListDashboardRequest::getSize()const +{ + return size_; +} + +void ListDashboardRequest::setSize(int size) +{ + size_ = size; + setParameter("Size", std::to_string(size)); +} + +std::string ListDashboardRequest::getSceneId()const +{ + return sceneId_; +} + +void ListDashboardRequest::setSceneId(const std::string& sceneId) +{ + sceneId_ = sceneId; + setParameter("SceneId", sceneId); +} + +int ListDashboardRequest::getPage()const +{ + return page_; +} + +void ListDashboardRequest::setPage(int page) +{ + page_ = page; + setParameter("Page", std::to_string(page)); +} + +long ListDashboardRequest::getStartDate()const +{ + return startDate_; +} + +void ListDashboardRequest::setStartDate(long startDate) +{ + startDate_ = startDate; + setParameter("StartDate", std::to_string(startDate)); +} + diff --git a/airec/src/model/ListDashboardResult.cc b/airec/src/model/ListDashboardResult.cc new file mode 100644 index 000000000..0af6d457d --- /dev/null +++ b/airec/src/model/ListDashboardResult.cc @@ -0,0 +1,96 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +ListDashboardResult::ListDashboardResult() : + ServiceResult() +{} + +ListDashboardResult::ListDashboardResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListDashboardResult::~ListDashboardResult() +{} + +void ListDashboardResult::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["Num"].isNull()) + result_.num = std::stoi(resultNode["Num"].asString()); + auto allListNode = resultNode["List"]["ListItem"]; + for (auto resultNodeListListItem : allListNode) + { + Result::ListItem listItemObject; + if(!resultNodeListListItem["BizDate"].isNull()) + listItemObject.bizDate = std::stol(resultNodeListListItem["BizDate"].asString()); + if(!resultNodeListListItem["Pv"].isNull()) + listItemObject.pv = std::stol(resultNodeListListItem["Pv"].asString()); + if(!resultNodeListListItem["Uv"].isNull()) + listItemObject.uv = std::stol(resultNodeListListItem["Uv"].asString()); + if(!resultNodeListListItem["Click"].isNull()) + listItemObject.click = std::stol(resultNodeListListItem["Click"].asString()); + if(!resultNodeListListItem["Ctr"].isNull()) + listItemObject.ctr = std::stof(resultNodeListListItem["Ctr"].asString()); + if(!resultNodeListListItem["UvCtr"].isNull()) + listItemObject.uvCtr = std::stof(resultNodeListListItem["UvCtr"].asString()); + if(!resultNodeListListItem["PerUvBhv"].isNull()) + listItemObject.perUvBhv = std::stof(resultNodeListListItem["PerUvBhv"].asString()); + if(!resultNodeListListItem["PerUvClick"].isNull()) + listItemObject.perUvClick = std::stof(resultNodeListListItem["PerUvClick"].asString()); + if(!resultNodeListListItem["ClickUser"].isNull()) + listItemObject.clickUser = std::stol(resultNodeListListItem["ClickUser"].asString()); + if(!resultNodeListListItem["ActiveItem"].isNull()) + listItemObject.activeItem = std::stol(resultNodeListListItem["ActiveItem"].asString()); + if(!resultNodeListListItem["TraceId"].isNull()) + listItemObject.traceId = resultNodeListListItem["TraceId"].asString(); + if(!resultNodeListListItem["SceneId"].isNull()) + listItemObject.sceneId = resultNodeListListItem["SceneId"].asString(); + result_.list.push_back(listItemObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ListDashboardResult::getMessage()const +{ + return message_; +} + +std::string ListDashboardResult::getCode()const +{ + return code_; +} + +ListDashboardResult::Result ListDashboardResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/ListDashboardUidRequest.cc b/airec/src/model/ListDashboardUidRequest.cc new file mode 100644 index 000000000..83eda8aea --- /dev/null +++ b/airec/src/model/ListDashboardUidRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::ListDashboardUidRequest; + +ListDashboardUidRequest::ListDashboardUidRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/dashboard/uid"); + setMethod(HttpRequest::Method::Get); +} + +ListDashboardUidRequest::~ListDashboardUidRequest() +{} + +std::string ListDashboardUidRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListDashboardUidRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/airec/src/model/ListDashboardUidResult.cc b/airec/src/model/ListDashboardUidResult.cc new file mode 100644 index 000000000..42ca2943d --- /dev/null +++ b/airec/src/model/ListDashboardUidResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +ListDashboardUidResult::ListDashboardUidResult() : + ServiceResult() +{} + +ListDashboardUidResult::ListDashboardUidResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListDashboardUidResult::~ListDashboardUidResult() +{} + +void ListDashboardUidResult::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["Num"].isNull()) + result_.num = std::stoi(resultNode["Num"].asString()); + auto allUid = resultNode["Uid"]["Uid"]; + for (auto value : allUid) + result_.uid.push_back(value.asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ListDashboardUidResult::getMessage()const +{ + return message_; +} + +std::string ListDashboardUidResult::getCode()const +{ + return code_; +} + +ListDashboardUidResult::Result ListDashboardUidResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/ListDataSetRequest.cc b/airec/src/model/ListDataSetRequest.cc new file mode 100644 index 000000000..6b1696257 --- /dev/null +++ b/airec/src/model/ListDataSetRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::ListDataSetRequest; + +ListDataSetRequest::ListDataSetRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/dataSets"); + setMethod(HttpRequest::Method::Get); +} + +ListDataSetRequest::~ListDataSetRequest() +{} + +std::string ListDataSetRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListDataSetRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/airec/src/model/ListDataSetResult.cc b/airec/src/model/ListDataSetResult.cc new file mode 100644 index 000000000..96dd94c5a --- /dev/null +++ b/airec/src/model/ListDataSetResult.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::Airec; +using namespace AlibabaCloud::Airec::Model; + +ListDataSetResult::ListDataSetResult() : + ServiceResult() +{} + +ListDataSetResult::ListDataSetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListDataSetResult::~ListDataSetResult() +{} + +void ListDataSetResult::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["InstanceId"].isNull()) + resultObject.instanceId = valueResultResultItem["InstanceId"].asString(); + if(!valueResultResultItem["VersionId"].isNull()) + resultObject.versionId = valueResultResultItem["VersionId"].asString(); + if(!valueResultResultItem["State"].isNull()) + resultObject.state = valueResultResultItem["State"].asString(); + if(!valueResultResultItem["GmtCreate"].isNull()) + resultObject.gmtCreate = std::stol(valueResultResultItem["GmtCreate"].asString()); + if(!valueResultResultItem["GmtModified"].isNull()) + resultObject.gmtModified = std::stol(valueResultResultItem["GmtModified"].asString()); + result_.push_back(resultObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ListDataSetResult::getMessage()const +{ + return message_; +} + +std::string ListDataSetResult::getCode()const +{ + return code_; +} + +std::vector ListDataSetResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/ListDataSourceRequest.cc b/airec/src/model/ListDataSourceRequest.cc new file mode 100644 index 000000000..d38b8408f --- /dev/null +++ b/airec/src/model/ListDataSourceRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::ListDataSourceRequest; + +ListDataSourceRequest::ListDataSourceRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/dataSources"); + setMethod(HttpRequest::Method::Get); +} + +ListDataSourceRequest::~ListDataSourceRequest() +{} + +std::string ListDataSourceRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListDataSourceRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/airec/src/model/ListDataSourceResult.cc b/airec/src/model/ListDataSourceResult.cc new file mode 100644 index 000000000..652f1daa3 --- /dev/null +++ b/airec/src/model/ListDataSourceResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +ListDataSourceResult::ListDataSourceResult() : + ServiceResult() +{} + +ListDataSourceResult::ListDataSourceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListDataSourceResult::~ListDataSourceResult() +{} + +void ListDataSourceResult::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["TableName"].isNull()) + resultObject.tableName = valueResultResultItem["TableName"].asString(); + if(!valueResultResultItem["GmtCreate"].isNull()) + resultObject.gmtCreate = valueResultResultItem["GmtCreate"].asString(); + if(!valueResultResultItem["GmtModified"].isNull()) + resultObject.gmtModified = valueResultResultItem["GmtModified"].asString(); + auto metaNode = value["Meta"]; + if(!metaNode["AccessKeyId"].isNull()) + resultObject.meta.accessKeyId = metaNode["AccessKeyId"].asString(); + if(!metaNode["ProjectName"].isNull()) + resultObject.meta.projectName = metaNode["ProjectName"].asString(); + if(!metaNode["TableName"].isNull()) + resultObject.meta.tableName = metaNode["TableName"].asString(); + if(!metaNode["Partition"].isNull()) + resultObject.meta.partition = metaNode["Partition"].asString(); + if(!metaNode["Timestamp"].isNull()) + resultObject.meta.timestamp = std::stol(metaNode["Timestamp"].asString()); + if(!metaNode["BucketName"].isNull()) + resultObject.meta.bucketName = metaNode["BucketName"].asString(); + if(!metaNode["Path"].isNull()) + resultObject.meta.path = metaNode["Path"].asString(); + if(!metaNode["Type"].isNull()) + resultObject.meta.type = metaNode["Type"].asString(); + result_.push_back(resultObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ListDataSourceResult::getMessage()const +{ + return message_; +} + +std::string ListDataSourceResult::getCode()const +{ + return code_; +} + +std::vector ListDataSourceResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/ListDiversifyRequest.cc b/airec/src/model/ListDiversifyRequest.cc new file mode 100644 index 000000000..e35b0652e --- /dev/null +++ b/airec/src/model/ListDiversifyRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::ListDiversifyRequest; + +ListDiversifyRequest::ListDiversifyRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/diversifies"); + setMethod(HttpRequest::Method::Get); +} + +ListDiversifyRequest::~ListDiversifyRequest() +{} + +std::string ListDiversifyRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListDiversifyRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/airec/src/model/ListDiversifyResult.cc b/airec/src/model/ListDiversifyResult.cc new file mode 100644 index 000000000..5a9a5e13c --- /dev/null +++ b/airec/src/model/ListDiversifyResult.cc @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +ListDiversifyResult::ListDiversifyResult() : + ServiceResult() +{} + +ListDiversifyResult::ListDiversifyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListDiversifyResult::~ListDiversifyResult() +{} + +void ListDiversifyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allResultNode = value["Result"]["ResultItem"]; + for (auto valueResultResultItem : allResultNode) + { + ResultItem resultObject; + if(!valueResultResultItem["Name"].isNull()) + resultObject.name = valueResultResultItem["Name"].asString(); + if(!valueResultResultItem["GmtCreate"].isNull()) + resultObject.gmtCreate = valueResultResultItem["GmtCreate"].asString(); + if(!valueResultResultItem["GmtModified"].isNull()) + resultObject.gmtModified = valueResultResultItem["GmtModified"].asString(); + auto _parameterNode = value["Parameter"]; + if(!_parameterNode["CategoryIndex"].isNull()) + resultObject._parameter.categoryIndex = std::stoi(_parameterNode["CategoryIndex"].asString()); + if(!_parameterNode["Window"].isNull()) + resultObject._parameter.window = std::stoi(_parameterNode["Window"].asString()); + result_.push_back(resultObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ListDiversifyResult::getMessage()const +{ + return message_; +} + +std::string ListDiversifyResult::getCode()const +{ + return code_; +} + +std::vector ListDiversifyResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/ListInstanceRequest.cc b/airec/src/model/ListInstanceRequest.cc new file mode 100644 index 000000000..2632e5621 --- /dev/null +++ b/airec/src/model/ListInstanceRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::ListInstanceRequest; + +ListInstanceRequest::ListInstanceRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances"); + setMethod(HttpRequest::Method::Get); +} + +ListInstanceRequest::~ListInstanceRequest() +{} + +int ListInstanceRequest::getSize()const +{ + return size_; +} + +void ListInstanceRequest::setSize(int size) +{ + size_ = size; + setParameter("Size", std::to_string(size)); +} + +int ListInstanceRequest::getPage()const +{ + return page_; +} + +void ListInstanceRequest::setPage(int page) +{ + page_ = page; + setParameter("Page", std::to_string(page)); +} + diff --git a/airec/src/model/ListInstanceResult.cc b/airec/src/model/ListInstanceResult.cc new file mode 100644 index 000000000..7162b2298 --- /dev/null +++ b/airec/src/model/ListInstanceResult.cc @@ -0,0 +1,97 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +ListInstanceResult::ListInstanceResult() : + ServiceResult() +{} + +ListInstanceResult::ListInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListInstanceResult::~ListInstanceResult() +{} + +void ListInstanceResult::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["InstanceId"].isNull()) + resultObject.instanceId = valueResultResultItem["InstanceId"].asString(); + if(!valueResultResultItem["ChargeType"].isNull()) + resultObject.chargeType = valueResultResultItem["ChargeType"].asString(); + if(!valueResultResultItem["RegionId"].isNull()) + resultObject.regionId = valueResultResultItem["RegionId"].asString(); + if(!valueResultResultItem["Name"].isNull()) + resultObject.name = valueResultResultItem["Name"].asString(); + if(!valueResultResultItem["Type"].isNull()) + resultObject.type = valueResultResultItem["Type"].asString(); + if(!valueResultResultItem["ExpiredTime"].isNull()) + resultObject.expiredTime = valueResultResultItem["ExpiredTime"].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["Industry"].isNull()) + resultObject.industry = valueResultResultItem["Industry"].asString(); + if(!valueResultResultItem["Scene"].isNull()) + resultObject.scene = valueResultResultItem["Scene"].asString(); + if(!valueResultResultItem["DataSetVersion"].isNull()) + resultObject.dataSetVersion = valueResultResultItem["DataSetVersion"].asString(); + if(!valueResultResultItem["CommodityCode"].isNull()) + resultObject.commodityCode = valueResultResultItem["CommodityCode"].asString(); + if(!valueResultResultItem["LockMode"].isNull()) + resultObject.lockMode = valueResultResultItem["LockMode"].asString(); + result_.push_back(resultObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ListInstanceResult::getMessage()const +{ + return message_; +} + +std::string ListInstanceResult::getCode()const +{ + return code_; +} + +std::vector ListInstanceResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/ListInstanceTaskRequest.cc b/airec/src/model/ListInstanceTaskRequest.cc new file mode 100644 index 000000000..4e4eef7e4 --- /dev/null +++ b/airec/src/model/ListInstanceTaskRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::ListInstanceTaskRequest; + +ListInstanceTaskRequest::ListInstanceTaskRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/tasks"); + setMethod(HttpRequest::Method::Get); +} + +ListInstanceTaskRequest::~ListInstanceTaskRequest() +{} + +std::string ListInstanceTaskRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListInstanceTaskRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/airec/src/model/ListInstanceTaskResult.cc b/airec/src/model/ListInstanceTaskResult.cc new file mode 100644 index 000000000..ba90e2a2f --- /dev/null +++ b/airec/src/model/ListInstanceTaskResult.cc @@ -0,0 +1,89 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +ListInstanceTaskResult::ListInstanceTaskResult() : + ServiceResult() +{} + +ListInstanceTaskResult::ListInstanceTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListInstanceTaskResult::~ListInstanceTaskResult() +{} + +void ListInstanceTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allResultNode = value["Result"]["ResultItem"]; + for (auto valueResultResultItem : allResultNode) + { + ResultItem resultObject; + if(!valueResultResultItem["Name"].isNull()) + resultObject.name = valueResultResultItem["Name"].asString(); + if(!valueResultResultItem["TotalProgress"].isNull()) + resultObject.totalProgress = std::stoi(valueResultResultItem["TotalProgress"].asString()); + auto allSubProgressInfosNode = allResultNode["SubProgressInfos"]["SubProgressInfosItem"]; + for (auto allResultNodeSubProgressInfosSubProgressInfosItem : allSubProgressInfosNode) + { + ResultItem::SubProgressInfosItem subProgressInfosObject; + if(!allResultNodeSubProgressInfosSubProgressInfosItem["Type"].isNull()) + subProgressInfosObject.type = allResultNodeSubProgressInfosSubProgressInfosItem["Type"].asString(); + if(!allResultNodeSubProgressInfosSubProgressInfosItem["Progress"].isNull()) + subProgressInfosObject.progress = std::stoi(allResultNodeSubProgressInfosSubProgressInfosItem["Progress"].asString()); + if(!allResultNodeSubProgressInfosSubProgressInfosItem["Detail"].isNull()) + subProgressInfosObject.detail = allResultNodeSubProgressInfosSubProgressInfosItem["Detail"].asString(); + if(!allResultNodeSubProgressInfosSubProgressInfosItem["TotalNum"].isNull()) + subProgressInfosObject.totalNum = std::stoi(allResultNodeSubProgressInfosSubProgressInfosItem["TotalNum"].asString()); + if(!allResultNodeSubProgressInfosSubProgressInfosItem["FinishedNum"].isNull()) + subProgressInfosObject.finishedNum = std::stoi(allResultNodeSubProgressInfosSubProgressInfosItem["FinishedNum"].asString()); + resultObject.subProgressInfos.push_back(subProgressInfosObject); + } + result_.push_back(resultObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ListInstanceTaskResult::getMessage()const +{ + return message_; +} + +std::string ListInstanceTaskResult::getCode()const +{ + return code_; +} + +std::vector ListInstanceTaskResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/ListMixRequest.cc b/airec/src/model/ListMixRequest.cc new file mode 100644 index 000000000..8cd2dca41 --- /dev/null +++ b/airec/src/model/ListMixRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::ListMixRequest; + +ListMixRequest::ListMixRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/mixes"); + setMethod(HttpRequest::Method::Get); +} + +ListMixRequest::~ListMixRequest() +{} + +std::string ListMixRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListMixRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/airec/src/model/ListMixResult.cc b/airec/src/model/ListMixResult.cc new file mode 100644 index 000000000..eea6db87c --- /dev/null +++ b/airec/src/model/ListMixResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +ListMixResult::ListMixResult() : + ServiceResult() +{} + +ListMixResult::ListMixResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListMixResult::~ListMixResult() +{} + +void ListMixResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allResultNode = value["Result"]["ResultItem"]; + for (auto valueResultResultItem : allResultNode) + { + ResultItem resultObject; + if(!valueResultResultItem["Name"].isNull()) + resultObject.name = valueResultResultItem["Name"].asString(); + if(!valueResultResultItem["GmtCreate"].isNull()) + resultObject.gmtCreate = valueResultResultItem["GmtCreate"].asString(); + if(!valueResultResultItem["GmtModified"].isNull()) + resultObject.gmtModified = valueResultResultItem["GmtModified"].asString(); + auto _parameterNode = value["Parameter"]; + auto allSettingsNode = _parameterNode["Settings"]["SettingsItem"]; + for (auto _parameterNodeSettingsSettingsItem : allSettingsNode) + { + ResultItem::_Parameter::SettingsItem settingsItemObject; + if(!_parameterNodeSettingsSettingsItem["Name"].isNull()) + settingsItemObject.name = _parameterNodeSettingsSettingsItem["Name"].asString(); + if(!_parameterNodeSettingsSettingsItem["Value"].isNull()) + settingsItemObject.value = std::stoi(_parameterNodeSettingsSettingsItem["Value"].asString()); + resultObject._parameter.settings.push_back(settingsItemObject); + } + result_.push_back(resultObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ListMixResult::getMessage()const +{ + return message_; +} + +std::string ListMixResult::getCode()const +{ + return code_; +} + +std::vector ListMixResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/ListRuleConditionsRequest.cc b/airec/src/model/ListRuleConditionsRequest.cc new file mode 100644 index 000000000..c6c2fa37f --- /dev/null +++ b/airec/src/model/ListRuleConditionsRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::ListRuleConditionsRequest; + +ListRuleConditionsRequest::ListRuleConditionsRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/rule-conditions"); + setMethod(HttpRequest::Method::Get); +} + +ListRuleConditionsRequest::~ListRuleConditionsRequest() +{} + +std::string ListRuleConditionsRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListRuleConditionsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/airec/src/model/ListRuleConditionsResult.cc b/airec/src/model/ListRuleConditionsResult.cc new file mode 100644 index 000000000..ec62bf59a --- /dev/null +++ b/airec/src/model/ListRuleConditionsResult.cc @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +ListRuleConditionsResult::ListRuleConditionsResult() : + ServiceResult() +{} + +ListRuleConditionsResult::ListRuleConditionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListRuleConditionsResult::~ListRuleConditionsResult() +{} + +void ListRuleConditionsResult::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["SelectType"].isNull()) + resultObject.selectType = valueResultResultItem["SelectType"].asString(); + if(!valueResultResultItem["SelectionOperation"].isNull()) + resultObject.selectionOperation = valueResultResultItem["SelectionOperation"].asString(); + if(!valueResultResultItem["SelectValue"].isNull()) + resultObject.selectValue = valueResultResultItem["SelectValue"].asString(); + result_.push_back(resultObject); + } + +} + +std::vector ListRuleConditionsResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/ListRuleTasksRequest.cc b/airec/src/model/ListRuleTasksRequest.cc new file mode 100644 index 000000000..efe049439 --- /dev/null +++ b/airec/src/model/ListRuleTasksRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::ListRuleTasksRequest; + +ListRuleTasksRequest::ListRuleTasksRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/rule-tasks"); + setMethod(HttpRequest::Method::Get); +} + +ListRuleTasksRequest::~ListRuleTasksRequest() +{} + +std::string ListRuleTasksRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListRuleTasksRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ListRuleTasksRequest::getSceneId()const +{ + return sceneId_; +} + +void ListRuleTasksRequest::setSceneId(const std::string& sceneId) +{ + sceneId_ = sceneId; + setParameter("SceneId", sceneId); +} + diff --git a/airec/src/model/ListRuleTasksResult.cc b/airec/src/model/ListRuleTasksResult.cc new file mode 100644 index 000000000..f5aed7b5d --- /dev/null +++ b/airec/src/model/ListRuleTasksResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +ListRuleTasksResult::ListRuleTasksResult() : + ServiceResult() +{} + +ListRuleTasksResult::ListRuleTasksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListRuleTasksResult::~ListRuleTasksResult() +{} + +void ListRuleTasksResult::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["FinishRate"].isNull()) + result_.finishRate = std::stoi(resultNode["FinishRate"].asString()); + if(!resultNode["FinishTime"].isNull()) + result_.finishTime = std::stoi(resultNode["FinishTime"].asString()); + +} + +ListRuleTasksResult::Result ListRuleTasksResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/ListRulesRequest.cc b/airec/src/model/ListRulesRequest.cc new file mode 100644 index 000000000..c2cd2b855 --- /dev/null +++ b/airec/src/model/ListRulesRequest.cc @@ -0,0 +1,118 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::ListRulesRequest; + +ListRulesRequest::ListRulesRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/rules"); + setMethod(HttpRequest::Method::Get); +} + +ListRulesRequest::~ListRulesRequest() +{} + +std::string ListRulesRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListRulesRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +int ListRulesRequest::getSize()const +{ + return size_; +} + +void ListRulesRequest::setSize(int size) +{ + size_ = size; + setParameter("Size", std::to_string(size)); +} + +std::string ListRulesRequest::getRuleType()const +{ + return ruleType_; +} + +void ListRulesRequest::setRuleType(const std::string& ruleType) +{ + ruleType_ = ruleType; + setParameter("RuleType", ruleType); +} + +std::string ListRulesRequest::getSceneId()const +{ + return sceneId_; +} + +void ListRulesRequest::setSceneId(const std::string& sceneId) +{ + sceneId_ = sceneId; + setParameter("SceneId", sceneId); +} + +long ListRulesRequest::getEndTime()const +{ + return endTime_; +} + +void ListRulesRequest::setEndTime(long endTime) +{ + endTime_ = endTime; + setParameter("EndTime", std::to_string(endTime)); +} + +int ListRulesRequest::getPage()const +{ + return page_; +} + +void ListRulesRequest::setPage(int page) +{ + page_ = page; + setParameter("Page", std::to_string(page)); +} + +long ListRulesRequest::getStartTime()const +{ + return startTime_; +} + +void ListRulesRequest::setStartTime(long startTime) +{ + startTime_ = startTime; + setParameter("StartTime", std::to_string(startTime)); +} + +std::string ListRulesRequest::getStatus()const +{ + return status_; +} + +void ListRulesRequest::setStatus(const std::string& status) +{ + status_ = status; + setParameter("Status", status); +} + diff --git a/airec/src/model/ListRulesResult.cc b/airec/src/model/ListRulesResult.cc new file mode 100644 index 000000000..38a22293b --- /dev/null +++ b/airec/src/model/ListRulesResult.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +ListRulesResult::ListRulesResult() : + ServiceResult() +{} + +ListRulesResult::ListRulesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListRulesResult::~ListRulesResult() +{} + +void ListRulesResult::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["RuleId"].isNull()) + resultObject.ruleId = valueResultResultItem["RuleId"].asString(); + if(!valueResultResultItem["Status"].isNull()) + resultObject.status = valueResultResultItem["Status"].asString(); + if(!valueResultResultItem["GmtCreate"].isNull()) + resultObject.gmtCreate = std::stol(valueResultResultItem["GmtCreate"].asString()); + if(!valueResultResultItem["GmtModified"].isNull()) + resultObject.gmtModified = std::stol(valueResultResultItem["GmtModified"].asString()); + result_.push_back(resultObject); + } + +} + +std::vector ListRulesResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/ListSceneItemsRequest.cc b/airec/src/model/ListSceneItemsRequest.cc new file mode 100644 index 000000000..084b8bf42 --- /dev/null +++ b/airec/src/model/ListSceneItemsRequest.cc @@ -0,0 +1,118 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::ListSceneItemsRequest; + +ListSceneItemsRequest::ListSceneItemsRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/scenes/[SceneId]/items"); + setMethod(HttpRequest::Method::Get); +} + +ListSceneItemsRequest::~ListSceneItemsRequest() +{} + +std::string ListSceneItemsRequest::getSelectionRuleId()const +{ + return selectionRuleId_; +} + +void ListSceneItemsRequest::setSelectionRuleId(const std::string& selectionRuleId) +{ + selectionRuleId_ = selectionRuleId; + setParameter("SelectionRuleId", selectionRuleId); +} + +std::string ListSceneItemsRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListSceneItemsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +int ListSceneItemsRequest::getSize()const +{ + return size_; +} + +void ListSceneItemsRequest::setSize(int size) +{ + size_ = size; + setParameter("Size", std::to_string(size)); +} + +int ListSceneItemsRequest::getQueryCount()const +{ + return queryCount_; +} + +void ListSceneItemsRequest::setQueryCount(int queryCount) +{ + queryCount_ = queryCount; + setParameter("QueryCount", std::to_string(queryCount)); +} + +std::string ListSceneItemsRequest::getSceneId()const +{ + return sceneId_; +} + +void ListSceneItemsRequest::setSceneId(const std::string& sceneId) +{ + sceneId_ = sceneId; + setParameter("SceneId", sceneId); +} + +std::string ListSceneItemsRequest::getOperationRuleId()const +{ + return operationRuleId_; +} + +void ListSceneItemsRequest::setOperationRuleId(const std::string& operationRuleId) +{ + operationRuleId_ = operationRuleId; + setParameter("OperationRuleId", operationRuleId); +} + +std::string ListSceneItemsRequest::getPreviewType()const +{ + return previewType_; +} + +void ListSceneItemsRequest::setPreviewType(const std::string& previewType) +{ + previewType_ = previewType; + setParameter("PreviewType", previewType); +} + +int ListSceneItemsRequest::getPage()const +{ + return page_; +} + +void ListSceneItemsRequest::setPage(int page) +{ + page_ = page; + setParameter("Page", std::to_string(page)); +} + diff --git a/airec/src/model/ListSceneItemsResult.cc b/airec/src/model/ListSceneItemsResult.cc new file mode 100644 index 000000000..c14a7df42 --- /dev/null +++ b/airec/src/model/ListSceneItemsResult.cc @@ -0,0 +1,91 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +ListSceneItemsResult::ListSceneItemsResult() : + ServiceResult() +{} + +ListSceneItemsResult::ListSceneItemsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSceneItemsResult::~ListSceneItemsResult() +{} + +void ListSceneItemsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + auto allDetailNode = resultNode["Detail"]["DetailItem"]; + for (auto resultNodeDetailDetailItem : allDetailNode) + { + Result::DetailItem detailItemObject; + if(!resultNodeDetailDetailItem["ItemId"].isNull()) + detailItemObject.itemId = resultNodeDetailDetailItem["ItemId"].asString(); + if(!resultNodeDetailDetailItem["ItemType"].isNull()) + detailItemObject.itemType = resultNodeDetailDetailItem["ItemType"].asString(); + if(!resultNodeDetailDetailItem["ExpireTime"].isNull()) + detailItemObject.expireTime = resultNodeDetailDetailItem["ExpireTime"].asString(); + if(!resultNodeDetailDetailItem["CategoryPath"].isNull()) + detailItemObject.categoryPath = resultNodeDetailDetailItem["CategoryPath"].asString(); + if(!resultNodeDetailDetailItem["PubTime"].isNull()) + detailItemObject.pubTime = resultNodeDetailDetailItem["PubTime"].asString(); + if(!resultNodeDetailDetailItem["BrandId"].isNull()) + detailItemObject.brandId = resultNodeDetailDetailItem["BrandId"].asString(); + if(!resultNodeDetailDetailItem["ShopId"].isNull()) + detailItemObject.shopId = resultNodeDetailDetailItem["ShopId"].asString(); + if(!resultNodeDetailDetailItem["Title"].isNull()) + detailItemObject.title = resultNodeDetailDetailItem["Title"].asString(); + if(!resultNodeDetailDetailItem["Status"].isNull()) + detailItemObject.status = resultNodeDetailDetailItem["Status"].asString(); + if(!resultNodeDetailDetailItem["Duration"].isNull()) + detailItemObject.duration = resultNodeDetailDetailItem["Duration"].asString(); + if(!resultNodeDetailDetailItem["Author"].isNull()) + detailItemObject.author = resultNodeDetailDetailItem["Author"].asString(); + if(!resultNodeDetailDetailItem["Channel"].isNull()) + detailItemObject.channel = resultNodeDetailDetailItem["Channel"].asString(); + result_.detail.push_back(detailItemObject); + } + auto totalNode = resultNode["Total"]; + if(!totalNode["InstanceRecommendItem"].isNull()) + result_.total.instanceRecommendItem = std::stol(totalNode["InstanceRecommendItem"].asString()); + if(!totalNode["SceneRecommendItem"].isNull()) + result_.total.sceneRecommendItem = std::stol(totalNode["SceneRecommendItem"].asString()); + if(!totalNode["WeightItem"].isNull()) + result_.total.weightItem = std::stol(totalNode["WeightItem"].asString()); + if(!totalNode["SceneWeightItem"].isNull()) + result_.total.sceneWeightItem = std::stol(totalNode["SceneWeightItem"].asString()); + if(!totalNode["TotalCount"].isNull()) + result_.total.totalCount = std::stol(totalNode["TotalCount"].asString()); + +} + +ListSceneItemsResult::Result ListSceneItemsResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/ListScenesRequest.cc b/airec/src/model/ListScenesRequest.cc new file mode 100644 index 000000000..a4fddfb9d --- /dev/null +++ b/airec/src/model/ListScenesRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::ListScenesRequest; + +ListScenesRequest::ListScenesRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/scenes"); + setMethod(HttpRequest::Method::Get); +} + +ListScenesRequest::~ListScenesRequest() +{} + +std::string ListScenesRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListScenesRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/airec/src/model/ListScenesResult.cc b/airec/src/model/ListScenesResult.cc new file mode 100644 index 000000000..91c7a0dae --- /dev/null +++ b/airec/src/model/ListScenesResult.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +ListScenesResult::ListScenesResult() : + ServiceResult() +{} + +ListScenesResult::ListScenesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListScenesResult::~ListScenesResult() +{} + +void ListScenesResult::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["SceneId"].isNull()) + resultObject.sceneId = valueResultResultItem["SceneId"].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(); + result_.push_back(resultObject); + } + +} + +std::vector ListScenesResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/ListUmengAppkeysRequest.cc b/airec/src/model/ListUmengAppkeysRequest.cc new file mode 100644 index 000000000..c5faf98ac --- /dev/null +++ b/airec/src/model/ListUmengAppkeysRequest.cc @@ -0,0 +1,30 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::ListUmengAppkeysRequest; + +ListUmengAppkeysRequest::ListUmengAppkeysRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/umeng/appkeys"); + setMethod(HttpRequest::Method::Get); +} + +ListUmengAppkeysRequest::~ListUmengAppkeysRequest() +{} + diff --git a/airec/src/model/ListUmengAppkeysResult.cc b/airec/src/model/ListUmengAppkeysResult.cc new file mode 100644 index 000000000..25c6c7687 --- /dev/null +++ b/airec/src/model/ListUmengAppkeysResult.cc @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +ListUmengAppkeysResult::ListUmengAppkeysResult() : + ServiceResult() +{} + +ListUmengAppkeysResult::ListUmengAppkeysResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListUmengAppkeysResult::~ListUmengAppkeysResult() +{} + +void ListUmengAppkeysResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allResultNode = value["Result"]["ResultItem"]; + for (auto valueResultResultItem : allResultNode) + { + ResultItem resultObject; + if(!valueResultResultItem["Name"].isNull()) + resultObject.name = valueResultResultItem["Name"].asString(); + if(!valueResultResultItem["Appkey"].isNull()) + resultObject.appkey = valueResultResultItem["Appkey"].asString(); + if(!valueResultResultItem["Platform"].isNull()) + resultObject.platform = valueResultResultItem["Platform"].asString(); + result_.push_back(resultObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ListUmengAppkeysResult::getMessage()const +{ + return message_; +} + +std::string ListUmengAppkeysResult::getCode()const +{ + return code_; +} + +std::vector ListUmengAppkeysResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/ModifyDataSourceRequest.cc b/airec/src/model/ModifyDataSourceRequest.cc new file mode 100644 index 000000000..f14c8bbe4 --- /dev/null +++ b/airec/src/model/ModifyDataSourceRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::ModifyDataSourceRequest; + +ModifyDataSourceRequest::ModifyDataSourceRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/dataSources/[TableName]"); + setMethod(HttpRequest::Method::Put); +} + +ModifyDataSourceRequest::~ModifyDataSourceRequest() +{} + +std::string ModifyDataSourceRequest::getInstanceId()const +{ + return instanceId_; +} + +void ModifyDataSourceRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ModifyDataSourceRequest::getTableName()const +{ + return tableName_; +} + +void ModifyDataSourceRequest::setTableName(const std::string& tableName) +{ + tableName_ = tableName; + setParameter("TableName", tableName); +} + diff --git a/airec/src/model/ModifyDataSourceResult.cc b/airec/src/model/ModifyDataSourceResult.cc new file mode 100644 index 000000000..a63757bea --- /dev/null +++ b/airec/src/model/ModifyDataSourceResult.cc @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +ModifyDataSourceResult::ModifyDataSourceResult() : + ServiceResult() +{} + +ModifyDataSourceResult::ModifyDataSourceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDataSourceResult::~ModifyDataSourceResult() +{} + +void ModifyDataSourceResult::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["TableName"].isNull()) + result_.tableName = resultNode["TableName"].asString(); + if(!resultNode["GmtCreate"].isNull()) + result_.gmtCreate = resultNode["GmtCreate"].asString(); + if(!resultNode["GmtModified"].isNull()) + result_.gmtModified = resultNode["GmtModified"].asString(); + auto metaNode = resultNode["Meta"]; + if(!metaNode["AccessKeyId"].isNull()) + result_.meta.accessKeyId = metaNode["AccessKeyId"].asString(); + if(!metaNode["ProjectName"].isNull()) + result_.meta.projectName = metaNode["ProjectName"].asString(); + if(!metaNode["TableName"].isNull()) + result_.meta.tableName = metaNode["TableName"].asString(); + if(!metaNode["Partition"].isNull()) + result_.meta.partition = metaNode["Partition"].asString(); + if(!metaNode["Timestamp"].isNull()) + result_.meta.timestamp = std::stol(metaNode["Timestamp"].asString()); + if(!metaNode["BucketName"].isNull()) + result_.meta.bucketName = metaNode["BucketName"].asString(); + if(!metaNode["Path"].isNull()) + result_.meta.path = metaNode["Path"].asString(); + if(!metaNode["Type"].isNull()) + result_.meta.type = metaNode["Type"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ModifyDataSourceResult::getMessage()const +{ + return message_; +} + +std::string ModifyDataSourceResult::getCode()const +{ + return code_; +} + +ModifyDataSourceResult::Result ModifyDataSourceResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/ModifyDiversifyRequest.cc b/airec/src/model/ModifyDiversifyRequest.cc new file mode 100644 index 000000000..409e33017 --- /dev/null +++ b/airec/src/model/ModifyDiversifyRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::ModifyDiversifyRequest; + +ModifyDiversifyRequest::ModifyDiversifyRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/diversifies/[Name]"); + setMethod(HttpRequest::Method::Put); +} + +ModifyDiversifyRequest::~ModifyDiversifyRequest() +{} + +std::string ModifyDiversifyRequest::getInstanceId()const +{ + return instanceId_; +} + +void ModifyDiversifyRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ModifyDiversifyRequest::getName()const +{ + return name_; +} + +void ModifyDiversifyRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + diff --git a/airec/src/model/ModifyDiversifyResult.cc b/airec/src/model/ModifyDiversifyResult.cc new file mode 100644 index 000000000..15f721601 --- /dev/null +++ b/airec/src/model/ModifyDiversifyResult.cc @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +ModifyDiversifyResult::ModifyDiversifyResult() : + ServiceResult() +{} + +ModifyDiversifyResult::ModifyDiversifyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDiversifyResult::~ModifyDiversifyResult() +{} + +void ModifyDiversifyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["Name"].isNull()) + result_.name = resultNode["Name"].asString(); + if(!resultNode["GmtCreate"].isNull()) + result_.gmtCreate = resultNode["GmtCreate"].asString(); + if(!resultNode["GmtModified"].isNull()) + result_.gmtModified = resultNode["GmtModified"].asString(); + auto _parameterNode = resultNode["Parameter"]; + if(!_parameterNode["CategoryIndex"].isNull()) + result_._parameter.categoryIndex = std::stoi(_parameterNode["CategoryIndex"].asString()); + if(!_parameterNode["Window"].isNull()) + result_._parameter.window = std::stoi(_parameterNode["Window"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ModifyDiversifyResult::getMessage()const +{ + return message_; +} + +std::string ModifyDiversifyResult::getCode()const +{ + return code_; +} + +ModifyDiversifyResult::Result ModifyDiversifyResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/ModifyExposureSettingsRequest.cc b/airec/src/model/ModifyExposureSettingsRequest.cc new file mode 100644 index 000000000..ea908516e --- /dev/null +++ b/airec/src/model/ModifyExposureSettingsRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::ModifyExposureSettingsRequest; + +ModifyExposureSettingsRequest::ModifyExposureSettingsRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/exposure-settings"); + setMethod(HttpRequest::Method::Put); +} + +ModifyExposureSettingsRequest::~ModifyExposureSettingsRequest() +{} + +std::string ModifyExposureSettingsRequest::getInstanceId()const +{ + return instanceId_; +} + +void ModifyExposureSettingsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/airec/src/model/ModifyExposureSettingsResult.cc b/airec/src/model/ModifyExposureSettingsResult.cc new file mode 100644 index 000000000..32ffa72e5 --- /dev/null +++ b/airec/src/model/ModifyExposureSettingsResult.cc @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +ModifyExposureSettingsResult::ModifyExposureSettingsResult() : + ServiceResult() +{} + +ModifyExposureSettingsResult::ModifyExposureSettingsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyExposureSettingsResult::~ModifyExposureSettingsResult() +{} + +void ModifyExposureSettingsResult::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["DurationSeconds"].isNull()) + result_.durationSeconds = std::stoi(resultNode["DurationSeconds"].asString()); + if(!resultNode["ScenarioBased"].isNull()) + result_.scenarioBased = resultNode["ScenarioBased"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ModifyExposureSettingsResult::getMessage()const +{ + return message_; +} + +std::string ModifyExposureSettingsResult::getCode()const +{ + return code_; +} + +ModifyExposureSettingsResult::Result ModifyExposureSettingsResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/ModifyInstanceRequest.cc b/airec/src/model/ModifyInstanceRequest.cc new file mode 100644 index 000000000..cbd774ec8 --- /dev/null +++ b/airec/src/model/ModifyInstanceRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::ModifyInstanceRequest; + +ModifyInstanceRequest::ModifyInstanceRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]"); + setMethod(HttpRequest::Method::Put); +} + +ModifyInstanceRequest::~ModifyInstanceRequest() +{} + +std::string ModifyInstanceRequest::getInstanceId()const +{ + return instanceId_; +} + +void ModifyInstanceRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/airec/src/model/ModifyInstanceResult.cc b/airec/src/model/ModifyInstanceResult.cc new file mode 100644 index 000000000..5fa21bed4 --- /dev/null +++ b/airec/src/model/ModifyInstanceResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +ModifyInstanceResult::ModifyInstanceResult() : + ServiceResult() +{} + +ModifyInstanceResult::ModifyInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyInstanceResult::~ModifyInstanceResult() +{} + +void ModifyInstanceResult::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["InstanceId"].isNull()) + result_.instanceId = resultNode["InstanceId"].asString(); + if(!resultNode["ChargeType"].isNull()) + result_.chargeType = resultNode["ChargeType"].asString(); + if(!resultNode["RegionId"].isNull()) + result_.regionId = resultNode["RegionId"].asString(); + if(!resultNode["Name"].isNull()) + result_.name = resultNode["Name"].asString(); + if(!resultNode["Type"].isNull()) + result_.type = resultNode["Type"].asString(); + if(!resultNode["ExpiredTime"].isNull()) + result_.expiredTime = resultNode["ExpiredTime"].asString(); + if(!resultNode["GmtCreate"].isNull()) + result_.gmtCreate = resultNode["GmtCreate"].asString(); + if(!resultNode["GmtModified"].isNull()) + result_.gmtModified = resultNode["GmtModified"].asString(); + if(!resultNode["Status"].isNull()) + result_.status = resultNode["Status"].asString(); + if(!resultNode["Industry"].isNull()) + result_.industry = resultNode["Industry"].asString(); + if(!resultNode["Scene"].isNull()) + result_.scene = resultNode["Scene"].asString(); + if(!resultNode["DataSetVersion"].isNull()) + result_.dataSetVersion = resultNode["DataSetVersion"].asString(); + if(!resultNode["CommodityCode"].isNull()) + result_.commodityCode = resultNode["CommodityCode"].asString(); + if(!resultNode["LockMode"].isNull()) + result_.lockMode = resultNode["LockMode"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ModifyInstanceResult::getMessage()const +{ + return message_; +} + +std::string ModifyInstanceResult::getCode()const +{ + return code_; +} + +ModifyInstanceResult::Result ModifyInstanceResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/ModifyMixRequest.cc b/airec/src/model/ModifyMixRequest.cc new file mode 100644 index 000000000..196a0ee5b --- /dev/null +++ b/airec/src/model/ModifyMixRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::ModifyMixRequest; + +ModifyMixRequest::ModifyMixRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/mixes/[Name]"); + setMethod(HttpRequest::Method::Put); +} + +ModifyMixRequest::~ModifyMixRequest() +{} + +std::string ModifyMixRequest::getInstanceId()const +{ + return instanceId_; +} + +void ModifyMixRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ModifyMixRequest::getName()const +{ + return name_; +} + +void ModifyMixRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + diff --git a/airec/src/model/ModifyMixResult.cc b/airec/src/model/ModifyMixResult.cc new file mode 100644 index 000000000..7cb86c57b --- /dev/null +++ b/airec/src/model/ModifyMixResult.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +ModifyMixResult::ModifyMixResult() : + ServiceResult() +{} + +ModifyMixResult::ModifyMixResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyMixResult::~ModifyMixResult() +{} + +void ModifyMixResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["Name"].isNull()) + result_.name = resultNode["Name"].asString(); + if(!resultNode["GmtCreate"].isNull()) + result_.gmtCreate = resultNode["GmtCreate"].asString(); + if(!resultNode["GmtModified"].isNull()) + result_.gmtModified = resultNode["GmtModified"].asString(); + auto _parameterNode = resultNode["Parameter"]; + auto allSettingsNode = _parameterNode["Settings"]["SettingsItem"]; + for (auto _parameterNodeSettingsSettingsItem : allSettingsNode) + { + Result::_Parameter::SettingsItem settingsItemObject; + if(!_parameterNodeSettingsSettingsItem["Name"].isNull()) + settingsItemObject.name = _parameterNodeSettingsSettingsItem["Name"].asString(); + if(!_parameterNodeSettingsSettingsItem["Value"].isNull()) + settingsItemObject.value = std::stoi(_parameterNodeSettingsSettingsItem["Value"].asString()); + result_._parameter.settings.push_back(settingsItemObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ModifyMixResult::getMessage()const +{ + return message_; +} + +std::string ModifyMixResult::getCode()const +{ + return code_; +} + +ModifyMixResult::Result ModifyMixResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/ModifyRuleRequest.cc b/airec/src/model/ModifyRuleRequest.cc new file mode 100644 index 000000000..0b4f1f7db --- /dev/null +++ b/airec/src/model/ModifyRuleRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::ModifyRuleRequest; + +ModifyRuleRequest::ModifyRuleRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/rules/[RuleId]"); + setMethod(HttpRequest::Method::Put); +} + +ModifyRuleRequest::~ModifyRuleRequest() +{} + +std::string ModifyRuleRequest::getInstanceId()const +{ + return instanceId_; +} + +void ModifyRuleRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ModifyRuleRequest::getRuleId()const +{ + return ruleId_; +} + +void ModifyRuleRequest::setRuleId(const std::string& ruleId) +{ + ruleId_ = ruleId; + setParameter("RuleId", ruleId); +} + diff --git a/airec/src/model/ModifyRuleResult.cc b/airec/src/model/ModifyRuleResult.cc new file mode 100644 index 000000000..56beb8c2b --- /dev/null +++ b/airec/src/model/ModifyRuleResult.cc @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +ModifyRuleResult::ModifyRuleResult() : + ServiceResult() +{} + +ModifyRuleResult::ModifyRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyRuleResult::~ModifyRuleResult() +{} + +void ModifyRuleResult::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["RuleId"].isNull()) + result_.ruleId = resultNode["RuleId"].asString(); + if(!resultNode["GmtCreate"].isNull()) + result_.gmtCreate = resultNode["GmtCreate"].asString(); + if(!resultNode["GmtModified"].isNull()) + result_.gmtModified = resultNode["GmtModified"].asString(); + if(!resultNode["Status"].isNull()) + result_.status = resultNode["Status"].asString(); + if(!resultNode["RuleMeta"].isNull()) + result_.ruleMeta = resultNode["RuleMeta"].asString(); + +} + +ModifyRuleResult::Result ModifyRuleResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/ModifySceneRequest.cc b/airec/src/model/ModifySceneRequest.cc new file mode 100644 index 000000000..63049199f --- /dev/null +++ b/airec/src/model/ModifySceneRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::ModifySceneRequest; + +ModifySceneRequest::ModifySceneRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/scenes/[SceneId]"); + setMethod(HttpRequest::Method::Put); +} + +ModifySceneRequest::~ModifySceneRequest() +{} + +std::string ModifySceneRequest::getInstanceId()const +{ + return instanceId_; +} + +void ModifySceneRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ModifySceneRequest::getSceneId()const +{ + return sceneId_; +} + +void ModifySceneRequest::setSceneId(const std::string& sceneId) +{ + sceneId_ = sceneId; + setParameter("SceneId", sceneId); +} + diff --git a/airec/src/model/ModifySceneResult.cc b/airec/src/model/ModifySceneResult.cc new file mode 100644 index 000000000..b70d1958c --- /dev/null +++ b/airec/src/model/ModifySceneResult.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::Airec; +using namespace AlibabaCloud::Airec::Model; + +ModifySceneResult::ModifySceneResult() : + ServiceResult() +{} + +ModifySceneResult::ModifySceneResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifySceneResult::~ModifySceneResult() +{} + +void ModifySceneResult::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["SceneId"].isNull()) + result_.sceneId = resultNode["SceneId"].asString(); + if(!resultNode["GmtCreate"].isNull()) + result_.gmtCreate = resultNode["GmtCreate"].asString(); + if(!resultNode["GmtModified"].isNull()) + result_.gmtModified = resultNode["GmtModified"].asString(); + if(!resultNode["Status"].isNull()) + result_.status = resultNode["Status"].asString(); + +} + +ModifySceneResult::Result ModifySceneResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/PublishRuleRequest.cc b/airec/src/model/PublishRuleRequest.cc new file mode 100644 index 000000000..4e46de5c3 --- /dev/null +++ b/airec/src/model/PublishRuleRequest.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::PublishRuleRequest; + +PublishRuleRequest::PublishRuleRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/rules/[RuleId]/actions/publish"); + setMethod(HttpRequest::Method::Put); +} + +PublishRuleRequest::~PublishRuleRequest() +{} + +std::string PublishRuleRequest::getInstanceId()const +{ + return instanceId_; +} + +void PublishRuleRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string PublishRuleRequest::getRuleType()const +{ + return ruleType_; +} + +void PublishRuleRequest::setRuleType(const std::string& ruleType) +{ + ruleType_ = ruleType; + setParameter("RuleType", ruleType); +} + +std::string PublishRuleRequest::getSceneId()const +{ + return sceneId_; +} + +void PublishRuleRequest::setSceneId(const std::string& sceneId) +{ + sceneId_ = sceneId; + setParameter("SceneId", sceneId); +} + +std::string PublishRuleRequest::getRuleId()const +{ + return ruleId_; +} + +void PublishRuleRequest::setRuleId(const std::string& ruleId) +{ + ruleId_ = ruleId; + setParameter("RuleId", ruleId); +} + diff --git a/airec/src/model/PublishRuleResult.cc b/airec/src/model/PublishRuleResult.cc new file mode 100644 index 000000000..3e39816d0 --- /dev/null +++ b/airec/src/model/PublishRuleResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +PublishRuleResult::PublishRuleResult() : + ServiceResult() +{} + +PublishRuleResult::PublishRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PublishRuleResult::~PublishRuleResult() +{} + +void PublishRuleResult::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["RuleId"].isNull()) + result_.ruleId = resultNode["RuleId"].asString(); + +} + +PublishRuleResult::Result PublishRuleResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/PushDocumentRequest.cc b/airec/src/model/PushDocumentRequest.cc new file mode 100644 index 000000000..417b53195 --- /dev/null +++ b/airec/src/model/PushDocumentRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::PushDocumentRequest; + +PushDocumentRequest::PushDocumentRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/tables/[TableName]/actions/bulk"); + setMethod(HttpRequest::Method::Post); +} + +PushDocumentRequest::~PushDocumentRequest() +{} + +std::string PushDocumentRequest::getInstanceId()const +{ + return instanceId_; +} + +void PushDocumentRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string PushDocumentRequest::getTableName()const +{ + return tableName_; +} + +void PushDocumentRequest::setTableName(const std::string& tableName) +{ + tableName_ = tableName; + setParameter("TableName", tableName); +} + diff --git a/airec/src/model/PushDocumentResult.cc b/airec/src/model/PushDocumentResult.cc new file mode 100644 index 000000000..3eb472265 --- /dev/null +++ b/airec/src/model/PushDocumentResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +PushDocumentResult::PushDocumentResult() : + ServiceResult() +{} + +PushDocumentResult::PushDocumentResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PushDocumentResult::~PushDocumentResult() +{} + +void PushDocumentResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Result"].isNull()) + result_ = value["Result"].asString() == "true"; + +} + +std::string PushDocumentResult::getMessage()const +{ + return message_; +} + +std::string PushDocumentResult::getCode()const +{ + return code_; +} + +bool PushDocumentResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/PushInterventionRequest.cc b/airec/src/model/PushInterventionRequest.cc new file mode 100644 index 000000000..7fbbad550 --- /dev/null +++ b/airec/src/model/PushInterventionRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::PushInterventionRequest; + +PushInterventionRequest::PushInterventionRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/actions/intervene"); + setMethod(HttpRequest::Method::Post); +} + +PushInterventionRequest::~PushInterventionRequest() +{} + +std::string PushInterventionRequest::getInstanceId()const +{ + return instanceId_; +} + +void PushInterventionRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/airec/src/model/PushInterventionResult.cc b/airec/src/model/PushInterventionResult.cc new file mode 100644 index 000000000..232a57c57 --- /dev/null +++ b/airec/src/model/PushInterventionResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +PushInterventionResult::PushInterventionResult() : + ServiceResult() +{} + +PushInterventionResult::PushInterventionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PushInterventionResult::~PushInterventionResult() +{} + +void PushInterventionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Result"].isNull()) + result_ = value["Result"].asString() == "true"; + +} + +std::string PushInterventionResult::getMessage()const +{ + return message_; +} + +std::string PushInterventionResult::getCode()const +{ + return code_; +} + +bool PushInterventionResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/QueryDataMessageRequest.cc b/airec/src/model/QueryDataMessageRequest.cc new file mode 100644 index 000000000..70ac17326 --- /dev/null +++ b/airec/src/model/QueryDataMessageRequest.cc @@ -0,0 +1,151 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::QueryDataMessageRequest; + +QueryDataMessageRequest::QueryDataMessageRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/tables/[Table]/data-message"); + setMethod(HttpRequest::Method::Get); +} + +QueryDataMessageRequest::~QueryDataMessageRequest() +{} + +std::string QueryDataMessageRequest::getItemId()const +{ + return itemId_; +} + +void QueryDataMessageRequest::setItemId(const std::string& itemId) +{ + itemId_ = itemId; + setParameter("ItemId", itemId); +} + +std::string QueryDataMessageRequest::getInstanceId()const +{ + return instanceId_; +} + +void QueryDataMessageRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string QueryDataMessageRequest::getItemType()const +{ + return itemType_; +} + +void QueryDataMessageRequest::setItemType(const std::string& itemType) +{ + itemType_ = itemType; + setParameter("ItemType", itemType); +} + +std::string QueryDataMessageRequest::getCmdType()const +{ + return cmdType_; +} + +void QueryDataMessageRequest::setCmdType(const std::string& cmdType) +{ + cmdType_ = cmdType; + setParameter("CmdType", cmdType); +} + +int QueryDataMessageRequest::getSize()const +{ + return size_; +} + +void QueryDataMessageRequest::setSize(int size) +{ + size_ = size; + setParameter("Size", std::to_string(size)); +} + +long QueryDataMessageRequest::getEndTime()const +{ + return endTime_; +} + +void QueryDataMessageRequest::setEndTime(long endTime) +{ + endTime_ = endTime; + setParameter("EndTime", std::to_string(endTime)); +} + +std::string QueryDataMessageRequest::getUserType()const +{ + return userType_; +} + +void QueryDataMessageRequest::setUserType(const std::string& userType) +{ + userType_ = userType; + setParameter("UserType", userType); +} + +long QueryDataMessageRequest::getStartTime()const +{ + return startTime_; +} + +void QueryDataMessageRequest::setStartTime(long startTime) +{ + startTime_ = startTime; + setParameter("StartTime", std::to_string(startTime)); +} + +int QueryDataMessageRequest::getPage()const +{ + return page_; +} + +void QueryDataMessageRequest::setPage(int page) +{ + page_ = page; + setParameter("Page", std::to_string(page)); +} + +std::string QueryDataMessageRequest::getUserId()const +{ + return userId_; +} + +void QueryDataMessageRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +std::string QueryDataMessageRequest::getTable()const +{ + return table_; +} + +void QueryDataMessageRequest::setTable(const std::string& table) +{ + table_ = table; + setParameter("Table", table); +} + diff --git a/airec/src/model/QueryDataMessageResult.cc b/airec/src/model/QueryDataMessageResult.cc new file mode 100644 index 000000000..882f4ce49 --- /dev/null +++ b/airec/src/model/QueryDataMessageResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +QueryDataMessageResult::QueryDataMessageResult() : + ServiceResult() +{} + +QueryDataMessageResult::QueryDataMessageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryDataMessageResult::~QueryDataMessageResult() +{} + +void QueryDataMessageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Result"].isNull()) + result_ = value["Result"].asString(); + +} + +std::string QueryDataMessageResult::getMessage()const +{ + return message_; +} + +std::string QueryDataMessageResult::getCode()const +{ + return code_; +} + +std::string QueryDataMessageResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/QueryExceptionHistoryRequest.cc b/airec/src/model/QueryExceptionHistoryRequest.cc new file mode 100644 index 000000000..af0d9bc81 --- /dev/null +++ b/airec/src/model/QueryExceptionHistoryRequest.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::QueryExceptionHistoryRequest; + +QueryExceptionHistoryRequest::QueryExceptionHistoryRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/sync-reports/exception-history"); + setMethod(HttpRequest::Method::Get); +} + +QueryExceptionHistoryRequest::~QueryExceptionHistoryRequest() +{} + +std::string QueryExceptionHistoryRequest::getInstanceId()const +{ + return instanceId_; +} + +void QueryExceptionHistoryRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +long QueryExceptionHistoryRequest::getEndTime()const +{ + return endTime_; +} + +void QueryExceptionHistoryRequest::setEndTime(long endTime) +{ + endTime_ = endTime; + setParameter("EndTime", std::to_string(endTime)); +} + +long QueryExceptionHistoryRequest::getStartTime()const +{ + return startTime_; +} + +void QueryExceptionHistoryRequest::setStartTime(long startTime) +{ + startTime_ = startTime; + setParameter("StartTime", std::to_string(startTime)); +} + +std::string QueryExceptionHistoryRequest::getType()const +{ + return type_; +} + +void QueryExceptionHistoryRequest::setType(const std::string& type) +{ + type_ = type; + setParameter("Type", type); +} + diff --git a/airec/src/model/QueryExceptionHistoryResult.cc b/airec/src/model/QueryExceptionHistoryResult.cc new file mode 100644 index 000000000..9c604b1e1 --- /dev/null +++ b/airec/src/model/QueryExceptionHistoryResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +QueryExceptionHistoryResult::QueryExceptionHistoryResult() : + ServiceResult() +{} + +QueryExceptionHistoryResult::QueryExceptionHistoryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryExceptionHistoryResult::~QueryExceptionHistoryResult() +{} + +void QueryExceptionHistoryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Result"].isNull()) + result_ = value["Result"].asString(); + +} + +std::string QueryExceptionHistoryResult::getMessage()const +{ + return message_; +} + +std::string QueryExceptionHistoryResult::getCode()const +{ + return code_; +} + +std::string QueryExceptionHistoryResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/QueryRawDataRequest.cc b/airec/src/model/QueryRawDataRequest.cc new file mode 100644 index 000000000..48497cc4c --- /dev/null +++ b/airec/src/model/QueryRawDataRequest.cc @@ -0,0 +1,96 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::QueryRawDataRequest; + +QueryRawDataRequest::QueryRawDataRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/tables/[Table]/raw-data"); + setMethod(HttpRequest::Method::Get); +} + +QueryRawDataRequest::~QueryRawDataRequest() +{} + +std::string QueryRawDataRequest::getItemId()const +{ + return itemId_; +} + +void QueryRawDataRequest::setItemId(const std::string& itemId) +{ + itemId_ = itemId; + setParameter("ItemId", itemId); +} + +std::string QueryRawDataRequest::getInstanceId()const +{ + return instanceId_; +} + +void QueryRawDataRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string QueryRawDataRequest::getItemType()const +{ + return itemType_; +} + +void QueryRawDataRequest::setItemType(const std::string& itemType) +{ + itemType_ = itemType; + setParameter("ItemType", itemType); +} + +std::string QueryRawDataRequest::getUserType()const +{ + return userType_; +} + +void QueryRawDataRequest::setUserType(const std::string& userType) +{ + userType_ = userType; + setParameter("UserType", userType); +} + +std::string QueryRawDataRequest::getUserId()const +{ + return userId_; +} + +void QueryRawDataRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +std::string QueryRawDataRequest::getTable()const +{ + return table_; +} + +void QueryRawDataRequest::setTable(const std::string& table) +{ + table_ = table; + setParameter("Table", table); +} + diff --git a/airec/src/model/QueryRawDataResult.cc b/airec/src/model/QueryRawDataResult.cc new file mode 100644 index 000000000..fde44e4ad --- /dev/null +++ b/airec/src/model/QueryRawDataResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +QueryRawDataResult::QueryRawDataResult() : + ServiceResult() +{} + +QueryRawDataResult::QueryRawDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryRawDataResult::~QueryRawDataResult() +{} + +void QueryRawDataResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Result"].isNull()) + result_ = value["Result"].asString(); + +} + +std::string QueryRawDataResult::getMessage()const +{ + return message_; +} + +std::string QueryRawDataResult::getCode()const +{ + return code_; +} + +std::string QueryRawDataResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/QuerySingleAggregationReportRequest.cc b/airec/src/model/QuerySingleAggregationReportRequest.cc new file mode 100644 index 000000000..21cfe8bbd --- /dev/null +++ b/airec/src/model/QuerySingleAggregationReportRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::QuerySingleAggregationReportRequest; + +QuerySingleAggregationReportRequest::QuerySingleAggregationReportRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/sync-reports/single-aggregation-report"); + setMethod(HttpRequest::Method::Get); +} + +QuerySingleAggregationReportRequest::~QuerySingleAggregationReportRequest() +{} + +std::string QuerySingleAggregationReportRequest::getInstanceId()const +{ + return instanceId_; +} + +void QuerySingleAggregationReportRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/airec/src/model/QuerySingleAggregationReportResult.cc b/airec/src/model/QuerySingleAggregationReportResult.cc new file mode 100644 index 000000000..fecee0c65 --- /dev/null +++ b/airec/src/model/QuerySingleAggregationReportResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +QuerySingleAggregationReportResult::QuerySingleAggregationReportResult() : + ServiceResult() +{} + +QuerySingleAggregationReportResult::QuerySingleAggregationReportResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QuerySingleAggregationReportResult::~QuerySingleAggregationReportResult() +{} + +void QuerySingleAggregationReportResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Result"].isNull()) + result_ = value["Result"].asString(); + +} + +std::string QuerySingleAggregationReportResult::getMessage()const +{ + return message_; +} + +std::string QuerySingleAggregationReportResult::getCode()const +{ + return code_; +} + +std::string QuerySingleAggregationReportResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/QuerySingleReportRequest.cc b/airec/src/model/QuerySingleReportRequest.cc new file mode 100644 index 000000000..1a9366ab2 --- /dev/null +++ b/airec/src/model/QuerySingleReportRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::QuerySingleReportRequest; + +QuerySingleReportRequest::QuerySingleReportRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/sync-reports/single-report"); + setMethod(HttpRequest::Method::Get); +} + +QuerySingleReportRequest::~QuerySingleReportRequest() +{} + +std::string QuerySingleReportRequest::getInstanceId()const +{ + return instanceId_; +} + +void QuerySingleReportRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string QuerySingleReportRequest::getReportType()const +{ + return reportType_; +} + +void QuerySingleReportRequest::setReportType(const std::string& reportType) +{ + reportType_ = reportType; + setParameter("ReportType", reportType); +} + diff --git a/airec/src/model/QuerySingleReportResult.cc b/airec/src/model/QuerySingleReportResult.cc new file mode 100644 index 000000000..3458ba7c9 --- /dev/null +++ b/airec/src/model/QuerySingleReportResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +QuerySingleReportResult::QuerySingleReportResult() : + ServiceResult() +{} + +QuerySingleReportResult::QuerySingleReportResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QuerySingleReportResult::~QuerySingleReportResult() +{} + +void QuerySingleReportResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Result"].isNull()) + result_ = value["Result"].asString(); + +} + +std::string QuerySingleReportResult::getMessage()const +{ + return message_; +} + +std::string QuerySingleReportResult::getCode()const +{ + return code_; +} + +std::string QuerySingleReportResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/QuerySyncReportAggregationRequest.cc b/airec/src/model/QuerySyncReportAggregationRequest.cc new file mode 100644 index 000000000..021eaafc0 --- /dev/null +++ b/airec/src/model/QuerySyncReportAggregationRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::QuerySyncReportAggregationRequest; + +QuerySyncReportAggregationRequest::QuerySyncReportAggregationRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/sync-reports/aggregation"); + setMethod(HttpRequest::Method::Get); +} + +QuerySyncReportAggregationRequest::~QuerySyncReportAggregationRequest() +{} + +std::string QuerySyncReportAggregationRequest::getInstanceId()const +{ + return instanceId_; +} + +void QuerySyncReportAggregationRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +long QuerySyncReportAggregationRequest::getEndTime()const +{ + return endTime_; +} + +void QuerySyncReportAggregationRequest::setEndTime(long endTime) +{ + endTime_ = endTime; + setParameter("EndTime", std::to_string(endTime)); +} + +long QuerySyncReportAggregationRequest::getStartTime()const +{ + return startTime_; +} + +void QuerySyncReportAggregationRequest::setStartTime(long startTime) +{ + startTime_ = startTime; + setParameter("StartTime", std::to_string(startTime)); +} + diff --git a/airec/src/model/QuerySyncReportAggregationResult.cc b/airec/src/model/QuerySyncReportAggregationResult.cc new file mode 100644 index 000000000..ba6869eca --- /dev/null +++ b/airec/src/model/QuerySyncReportAggregationResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +QuerySyncReportAggregationResult::QuerySyncReportAggregationResult() : + ServiceResult() +{} + +QuerySyncReportAggregationResult::QuerySyncReportAggregationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QuerySyncReportAggregationResult::~QuerySyncReportAggregationResult() +{} + +void QuerySyncReportAggregationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Result"].isNull()) + result_ = value["Result"].asString(); + +} + +std::string QuerySyncReportAggregationResult::getMessage()const +{ + return message_; +} + +std::string QuerySyncReportAggregationResult::getCode()const +{ + return code_; +} + +std::string QuerySyncReportAggregationResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/RecommendRequest.cc b/airec/src/model/RecommendRequest.cc new file mode 100644 index 000000000..da8154649 --- /dev/null +++ b/airec/src/model/RecommendRequest.cc @@ -0,0 +1,118 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::RecommendRequest; + +RecommendRequest::RecommendRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/actions/recommend"); + setMethod(HttpRequest::Method::Get); +} + +RecommendRequest::~RecommendRequest() +{} + +int RecommendRequest::getReturnCount()const +{ + return returnCount_; +} + +void RecommendRequest::setReturnCount(int returnCount) +{ + returnCount_ = returnCount; + setParameter("ReturnCount", std::to_string(returnCount)); +} + +std::string RecommendRequest::getInstanceId()const +{ + return instanceId_; +} + +void RecommendRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string RecommendRequest::getRegionId()const +{ + return regionId_; +} + +void RecommendRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setHeader("RegionId", regionId); +} + +std::string RecommendRequest::getIp()const +{ + return ip_; +} + +void RecommendRequest::setIp(const std::string& ip) +{ + ip_ = ip; + setParameter("Ip", ip); +} + +std::string RecommendRequest::getSceneId()const +{ + return sceneId_; +} + +void RecommendRequest::setSceneId(const std::string& sceneId) +{ + sceneId_ = sceneId; + setParameter("SceneId", sceneId); +} + +std::string RecommendRequest::getImei()const +{ + return imei_; +} + +void RecommendRequest::setImei(const std::string& imei) +{ + imei_ = imei; + setParameter("Imei", imei); +} + +std::string RecommendRequest::getUserId()const +{ + return userId_; +} + +void RecommendRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +std::string RecommendRequest::getItems()const +{ + return items_; +} + +void RecommendRequest::setItems(const std::string& items) +{ + items_ = items; + setParameter("Items", items); +} + diff --git a/airec/src/model/RecommendResult.cc b/airec/src/model/RecommendResult.cc new file mode 100644 index 000000000..91cc69670 --- /dev/null +++ b/airec/src/model/RecommendResult.cc @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Airec; +using namespace AlibabaCloud::Airec::Model; + +RecommendResult::RecommendResult() : + ServiceResult() +{} + +RecommendResult::RecommendResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RecommendResult::~RecommendResult() +{} + +void RecommendResult::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["TraceId"].isNull()) + resultObject.traceId = valueResultResultItem["TraceId"].asString(); + if(!valueResultResultItem["ItemId"].isNull()) + resultObject.itemId = valueResultResultItem["ItemId"].asString(); + if(!valueResultResultItem["ItemType"].isNull()) + resultObject.itemType = valueResultResultItem["ItemType"].asString(); + if(!valueResultResultItem["MatchInfo"].isNull()) + resultObject.matchInfo = valueResultResultItem["MatchInfo"].asString(); + if(!valueResultResultItem["Weight"].isNull()) + resultObject.weight = std::stof(valueResultResultItem["Weight"].asString()); + if(!valueResultResultItem["Position"].isNull()) + resultObject.position = std::stoi(valueResultResultItem["Position"].asString()); + if(!valueResultResultItem["TraceInfo"].isNull()) + resultObject.traceInfo = valueResultResultItem["TraceInfo"].asString(); + result_.push_back(resultObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string RecommendResult::getMessage()const +{ + return message_; +} + +std::string RecommendResult::getCode()const +{ + return code_; +} + +std::vector RecommendResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/RunInstanceRequest.cc b/airec/src/model/RunInstanceRequest.cc new file mode 100644 index 000000000..4a26ea7d8 --- /dev/null +++ b/airec/src/model/RunInstanceRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::RunInstanceRequest; + +RunInstanceRequest::RunInstanceRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/actions/import"); + setMethod(HttpRequest::Method::Post); +} + +RunInstanceRequest::~RunInstanceRequest() +{} + +std::string RunInstanceRequest::getInstanceId()const +{ + return instanceId_; +} + +void RunInstanceRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/airec/src/model/RunInstanceResult.cc b/airec/src/model/RunInstanceResult.cc new file mode 100644 index 000000000..0d1b4e375 --- /dev/null +++ b/airec/src/model/RunInstanceResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +RunInstanceResult::RunInstanceResult() : + ServiceResult() +{} + +RunInstanceResult::RunInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RunInstanceResult::~RunInstanceResult() +{} + +void RunInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Result"].isNull()) + result_ = value["Result"].asString() == "true"; + +} + +std::string RunInstanceResult::getMessage()const +{ + return message_; +} + +std::string RunInstanceResult::getCode()const +{ + return code_; +} + +bool RunInstanceResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/StopDataSetRequest.cc b/airec/src/model/StopDataSetRequest.cc new file mode 100644 index 000000000..86c87d250 --- /dev/null +++ b/airec/src/model/StopDataSetRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::StopDataSetRequest; + +StopDataSetRequest::StopDataSetRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/dataSets/[VersionId]/actions/stop"); + setMethod(HttpRequest::Method::Post); +} + +StopDataSetRequest::~StopDataSetRequest() +{} + +std::string StopDataSetRequest::getVersionId()const +{ + return versionId_; +} + +void StopDataSetRequest::setVersionId(const std::string& versionId) +{ + versionId_ = versionId; + setParameter("VersionId", versionId); +} + +std::string StopDataSetRequest::getInstanceId()const +{ + return instanceId_; +} + +void StopDataSetRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/airec/src/model/StopDataSetResult.cc b/airec/src/model/StopDataSetResult.cc new file mode 100644 index 000000000..df0b2a701 --- /dev/null +++ b/airec/src/model/StopDataSetResult.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +StopDataSetResult::StopDataSetResult() : + ServiceResult() +{} + +StopDataSetResult::StopDataSetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StopDataSetResult::~StopDataSetResult() +{} + +void StopDataSetResult::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["InstanceId"].isNull()) + result_.instanceId = resultNode["InstanceId"].asString(); + if(!resultNode["VersionId"].isNull()) + result_.versionId = resultNode["VersionId"].asString(); + if(!resultNode["State"].isNull()) + result_.state = resultNode["State"].asString(); + if(!resultNode["GmtCreate"].isNull()) + result_.gmtCreate = std::stol(resultNode["GmtCreate"].asString()); + if(!resultNode["GmtModified"].isNull()) + result_.gmtModified = std::stol(resultNode["GmtModified"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string StopDataSetResult::getMessage()const +{ + return message_; +} + +std::string StopDataSetResult::getCode()const +{ + return code_; +} + +StopDataSetResult::Result StopDataSetResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/UpgradeInstanceRequest.cc b/airec/src/model/UpgradeInstanceRequest.cc new file mode 100644 index 000000000..e53a48139 --- /dev/null +++ b/airec/src/model/UpgradeInstanceRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::UpgradeInstanceRequest; + +UpgradeInstanceRequest::UpgradeInstanceRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/actions/upgrade"); + setMethod(HttpRequest::Method::Post); +} + +UpgradeInstanceRequest::~UpgradeInstanceRequest() +{} + +std::string UpgradeInstanceRequest::getInstanceId()const +{ + return instanceId_; +} + +void UpgradeInstanceRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/airec/src/model/UpgradeInstanceResult.cc b/airec/src/model/UpgradeInstanceResult.cc new file mode 100644 index 000000000..1cd5c41b1 --- /dev/null +++ b/airec/src/model/UpgradeInstanceResult.cc @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +UpgradeInstanceResult::UpgradeInstanceResult() : + ServiceResult() +{} + +UpgradeInstanceResult::UpgradeInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpgradeInstanceResult::~UpgradeInstanceResult() +{} + +void UpgradeInstanceResult::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["InstanceId"].isNull()) + result_.instanceId = resultNode["InstanceId"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string UpgradeInstanceResult::getMessage()const +{ + return message_; +} + +std::string UpgradeInstanceResult::getCode()const +{ + return code_; +} + +UpgradeInstanceResult::Result UpgradeInstanceResult::getResult()const +{ + return result_; +} + diff --git a/airec/src/model/ValidateInstanceRequest.cc b/airec/src/model/ValidateInstanceRequest.cc new file mode 100644 index 000000000..1fdc1e452 --- /dev/null +++ b/airec/src/model/ValidateInstanceRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Airec::Model::ValidateInstanceRequest; + +ValidateInstanceRequest::ValidateInstanceRequest() : + RoaServiceRequest("airec", "2018-10-12") +{ + setResourcePath("/openapi/instances/[InstanceId]/actions/validate"); + setMethod(HttpRequest::Method::Post); +} + +ValidateInstanceRequest::~ValidateInstanceRequest() +{} + +std::string ValidateInstanceRequest::getInstanceId()const +{ + return instanceId_; +} + +void ValidateInstanceRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/airec/src/model/ValidateInstanceResult.cc b/airec/src/model/ValidateInstanceResult.cc new file mode 100644 index 000000000..849adae46 --- /dev/null +++ b/airec/src/model/ValidateInstanceResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Airec; +using namespace AlibabaCloud::Airec::Model; + +ValidateInstanceResult::ValidateInstanceResult() : + ServiceResult() +{} + +ValidateInstanceResult::ValidateInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ValidateInstanceResult::~ValidateInstanceResult() +{} + +void ValidateInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Result"].isNull()) + result_ = value["Result"].asString() == "true"; + +} + +std::string ValidateInstanceResult::getMessage()const +{ + return message_; +} + +std::string ValidateInstanceResult::getCode()const +{ + return code_; +} + +bool ValidateInstanceResult::getResult()const +{ + return result_; +} +