From 5888c435989b724dbad40c1920a998171ea64b02 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Mon, 29 May 2023 09:53:14 +0000 Subject: [PATCH] Add DistributionProducts API. --- VERSION | 2 +- market/CMakeLists.txt | 104 ++-- .../alibabacloud/market/MarketClient.h | 208 ++++---- .../market/model/ActivateLicenseRequest.h | 74 ++- .../market/model/AutoRenewInstanceRequest.h | 54 +++ ...ventResult.h => AutoRenewInstanceResult.h} | 16 +- .../market/model/BindImagePackageRequest.h | 51 -- .../market/model/CreateCommodityRequest.h | 51 -- .../market/model/CreateOrderRequest.h | 98 ++-- .../market/model/CreateRateRequest.h | 57 --- .../market/model/CreateRateResult.h | 51 -- ...est.h => CrossAccountVerifyTokenRequest.h} | 68 ++- ...sult.h => CrossAccountVerifyTokenResult.h} | 29 +- .../market/model/DescribeCommoditiesRequest.h | 87 ---- ...est.h => DescribeCurrentNodeInfoRequest.h} | 68 ++- .../model/DescribeCurrentNodeInfoResult.h | 72 +++ .../DescribeDistributionProductsLinkRequest.h | 42 ++ ... DescribeDistributionProductsLinkResult.h} | 29 +- .../DescribeDistributionProductsRequest.h | 52 ++ ...h => DescribeDistributionProductsResult.h} | 44 +- .../market/model/DescribeInstanceRequest.h | 80 ++- .../market/model/DescribeInstanceResult.h | 26 +- .../market/model/DescribeInstancesRequest.h | 86 ++-- .../market/model/DescribeInstancesResult.h | 8 +- .../market/model/DescribeLicenseRequest.h | 68 ++- .../market/model/DescribeLicenseResult.h | 6 +- .../market/model/DescribeOrderRequest.h | 68 ++- .../market/model/DescribeOrderResult.h | 12 +- .../market/model/DescribePriceRequest.h | 74 ++- .../market/model/DescribePriceResult.h | 4 +- .../market/model/DescribeProductRequest.h | 80 ++- .../market/model/DescribeProductResult.h | 16 +- .../market/model/DescribeProductsRequest.h | 96 ++-- .../market/model/DescribeProductsResult.h | 7 +- .../model/DescribeProjectAttachmentsRequest.h | 42 ++ .../model/DescribeProjectAttachmentsResult.h | 71 +++ ...Request.h => DescribeProjectInfoRequest.h} | 68 ++- ...esResult.h => DescribeProjectInfoResult.h} | 51 +- .../model/DescribeProjectMessagesRequest.h | 45 ++ .../model/DescribeProjectMessagesResult.h | 63 +++ ...equest.h => DescribeProjectNodesRequest.h} | 68 ++- .../market/model/DescribeProjectNodesResult.h | 72 +++ .../model/DescribeProjectOperateLogsRequest.h | 42 ++ ...t.h => DescribeProjectOperateLogsResult.h} | 27 +- .../market/model/DescribeRateResult.h | 79 --- .../model/FinishCurrentProjectNodeRequest.h | 51 ++ ...ult.h => FinishCurrentProjectNodeResult.h} | 16 +- .../market/model/NotifyContractEventRequest.h | 51 -- .../market/model/PauseProjectRequest.h | 48 ++ ...CommodityResult.h => PauseProjectResult.h} | 16 +- .../market/model/PushMeteringDataRequest.h | 68 ++- .../market/model/QueryMarketImagesRequest.h | 51 -- .../market/model/QueryMarketImagesResult.h | 130 ----- .../market/model/ResumeProjectRequest.h | 48 ++ ...ePackageResult.h => ResumeProjectResult.h} | 16 +- .../model/RollbackCurrentProjectNodeRequest.h | 48 ++ .../model/RollbackCurrentProjectNodeResult.h | 53 ++ .../market/model/UpdateCommodityRequest.h | 51 -- .../market/model/UploadCommodityFileRequest.h | 54 --- market/src/MarketClient.cc | 456 ++++++++++-------- market/src/model/ActivateLicenseRequest.cc | 58 +-- market/src/model/AutoRenewInstanceRequest.cc | 72 +++ ...tyResult.cc => AutoRenewInstanceResult.cc} | 19 +- market/src/model/BindImagePackageRequest.cc | 51 -- market/src/model/CreateCommodityRequest.cc | 51 -- market/src/model/CreateOrderRequest.cc | 106 ++-- market/src/model/CreateRateRequest.cc | 73 --- market/src/model/CreateRateResult.cc | 51 -- .../model/CrossAccountVerifyTokenRequest.cc | 36 ++ .../model/CrossAccountVerifyTokenResult.cc | 80 +++ market/src/model/DeleteCommodityRequest.cc | 40 -- .../src/model/DescribeCommoditiesRequest.cc | 183 ------- market/src/model/DescribeCommoditiesResult.cc | 76 --- market/src/model/DescribeCommodityRequest.cc | 40 -- market/src/model/DescribeCommodityResult.cc | 65 --- .../model/DescribeCurrentNodeInfoRequest.cc | 36 ++ .../model/DescribeCurrentNodeInfoResult.cc | 89 ++++ ...DescribeDistributionProductsLinkRequest.cc | 38 ++ .../DescribeDistributionProductsLinkResult.cc | 75 +++ .../DescribeDistributionProductsRequest.cc | 59 +++ .../DescribeDistributionProductsResult.cc | 104 ++++ market/src/model/DescribeInstanceRequest.cc | 70 ++- market/src/model/DescribeInstanceResult.cc | 163 ++++--- market/src/model/DescribeInstancesRequest.cc | 88 ++-- market/src/model/DescribeInstancesResult.cc | 48 +- market/src/model/DescribeLicenseRequest.cc | 46 +- market/src/model/DescribeLicenseResult.cc | 28 +- market/src/model/DescribeOrderRequest.cc | 46 +- market/src/model/DescribeOrderResult.cc | 84 ++-- market/src/model/DescribePriceRequest.cc | 58 +-- market/src/model/DescribePriceResult.cc | 54 +-- market/src/model/DescribeProductRequest.cc | 70 ++- market/src/model/DescribeProductResult.cc | 176 +++---- market/src/model/DescribeProductsRequest.cc | 92 ++-- market/src/model/DescribeProductsResult.cc | 58 +-- .../DescribeProjectAttachmentsRequest.cc | 36 ++ .../model/DescribeProjectAttachmentsResult.cc | 92 ++++ .../src/model/DescribeProjectInfoRequest.cc | 36 ++ market/src/model/DescribeProjectInfoResult.cc | 91 ++++ .../model/DescribeProjectMessagesRequest.cc | 45 ++ .../model/DescribeProjectMessagesResult.cc | 79 +++ .../src/model/DescribeProjectNodesRequest.cc | 36 ++ .../src/model/DescribeProjectNodesResult.cc | 94 ++++ .../DescribeProjectOperateLogsRequest.cc | 36 ++ .../model/DescribeProjectOperateLogsResult.cc | 72 +++ market/src/model/DescribeRateRequest.cc | 40 -- market/src/model/DescribeRateResult.cc | 149 ------ .../model/FinishCurrentProjectNodeRequest.cc | 63 +++ ...t.cc => FinishCurrentProjectNodeResult.cc} | 19 +- .../src/model/NotifyContractEventRequest.cc | 51 -- market/src/model/PauseProjectRequest.cc | 54 +++ ...ctEventResult.cc => PauseProjectResult.cc} | 19 +- market/src/model/PushMeteringDataRequest.cc | 46 +- .../src/model/QueryMarketCategoriesRequest.cc | 40 -- .../src/model/QueryMarketCategoriesResult.cc | 94 ---- market/src/model/QueryMarketImagesRequest.cc | 51 -- market/src/model/QueryMarketImagesResult.cc | 191 -------- market/src/model/ResumeProjectRequest.cc | 54 +++ ...ackageResult.cc => ResumeProjectResult.cc} | 19 +- .../RollbackCurrentProjectNodeRequest.cc | 54 +++ ...cc => RollbackCurrentProjectNodeResult.cc} | 27 +- market/src/model/UpdateCommodityRequest.cc | 51 -- .../src/model/UploadCommodityFileRequest.cc | 62 --- market/src/model/UploadCommodityFileResult.cc | 61 --- 124 files changed, 4023 insertions(+), 3895 deletions(-) create mode 100644 market/include/alibabacloud/market/model/AutoRenewInstanceRequest.h rename market/include/alibabacloud/market/model/{NotifyContractEventResult.h => AutoRenewInstanceResult.h} (69%) delete mode 100644 market/include/alibabacloud/market/model/BindImagePackageRequest.h delete mode 100644 market/include/alibabacloud/market/model/CreateCommodityRequest.h delete mode 100644 market/include/alibabacloud/market/model/CreateRateRequest.h delete mode 100644 market/include/alibabacloud/market/model/CreateRateResult.h rename market/include/alibabacloud/market/model/{QueryMarketCategoriesRequest.h => CrossAccountVerifyTokenRequest.h} (52%) rename market/include/alibabacloud/market/model/{CreateCommodityResult.h => CrossAccountVerifyTokenResult.h} (58%) delete mode 100644 market/include/alibabacloud/market/model/DescribeCommoditiesRequest.h rename market/include/alibabacloud/market/model/{DescribeRateRequest.h => DescribeCurrentNodeInfoRequest.h} (52%) create mode 100644 market/include/alibabacloud/market/model/DescribeCurrentNodeInfoResult.h create mode 100644 market/include/alibabacloud/market/model/DescribeDistributionProductsLinkRequest.h rename market/include/alibabacloud/market/model/{DescribeCommodityResult.h => DescribeDistributionProductsLinkResult.h} (58%) create mode 100644 market/include/alibabacloud/market/model/DescribeDistributionProductsRequest.h rename market/include/alibabacloud/market/model/{QueryMarketCategoriesResult.h => DescribeDistributionProductsResult.h} (53%) create mode 100644 market/include/alibabacloud/market/model/DescribeProjectAttachmentsRequest.h create mode 100644 market/include/alibabacloud/market/model/DescribeProjectAttachmentsResult.h rename market/include/alibabacloud/market/model/{DeleteCommodityRequest.h => DescribeProjectInfoRequest.h} (52%) rename market/include/alibabacloud/market/model/{DescribeCommoditiesResult.h => DescribeProjectInfoResult.h} (53%) create mode 100644 market/include/alibabacloud/market/model/DescribeProjectMessagesRequest.h create mode 100644 market/include/alibabacloud/market/model/DescribeProjectMessagesResult.h rename market/include/alibabacloud/market/model/{DescribeCommodityRequest.h => DescribeProjectNodesRequest.h} (52%) create mode 100644 market/include/alibabacloud/market/model/DescribeProjectNodesResult.h create mode 100644 market/include/alibabacloud/market/model/DescribeProjectOperateLogsRequest.h rename market/include/alibabacloud/market/model/{UploadCommodityFileResult.h => DescribeProjectOperateLogsResult.h} (58%) delete mode 100644 market/include/alibabacloud/market/model/DescribeRateResult.h create mode 100644 market/include/alibabacloud/market/model/FinishCurrentProjectNodeRequest.h rename market/include/alibabacloud/market/model/{DeleteCommodityResult.h => FinishCurrentProjectNodeResult.h} (66%) delete mode 100644 market/include/alibabacloud/market/model/NotifyContractEventRequest.h create mode 100644 market/include/alibabacloud/market/model/PauseProjectRequest.h rename market/include/alibabacloud/market/model/{UpdateCommodityResult.h => PauseProjectResult.h} (70%) delete mode 100644 market/include/alibabacloud/market/model/QueryMarketImagesRequest.h delete mode 100644 market/include/alibabacloud/market/model/QueryMarketImagesResult.h create mode 100644 market/include/alibabacloud/market/model/ResumeProjectRequest.h rename market/include/alibabacloud/market/model/{BindImagePackageResult.h => ResumeProjectResult.h} (70%) create mode 100644 market/include/alibabacloud/market/model/RollbackCurrentProjectNodeRequest.h create mode 100644 market/include/alibabacloud/market/model/RollbackCurrentProjectNodeResult.h delete mode 100644 market/include/alibabacloud/market/model/UpdateCommodityRequest.h delete mode 100644 market/include/alibabacloud/market/model/UploadCommodityFileRequest.h create mode 100644 market/src/model/AutoRenewInstanceRequest.cc rename market/src/model/{DeleteCommodityResult.cc => AutoRenewInstanceResult.cc} (67%) delete mode 100644 market/src/model/BindImagePackageRequest.cc delete mode 100644 market/src/model/CreateCommodityRequest.cc delete mode 100644 market/src/model/CreateRateRequest.cc delete mode 100644 market/src/model/CreateRateResult.cc create mode 100644 market/src/model/CrossAccountVerifyTokenRequest.cc create mode 100644 market/src/model/CrossAccountVerifyTokenResult.cc delete mode 100644 market/src/model/DeleteCommodityRequest.cc delete mode 100644 market/src/model/DescribeCommoditiesRequest.cc delete mode 100644 market/src/model/DescribeCommoditiesResult.cc delete mode 100644 market/src/model/DescribeCommodityRequest.cc delete mode 100644 market/src/model/DescribeCommodityResult.cc create mode 100644 market/src/model/DescribeCurrentNodeInfoRequest.cc create mode 100644 market/src/model/DescribeCurrentNodeInfoResult.cc create mode 100644 market/src/model/DescribeDistributionProductsLinkRequest.cc create mode 100644 market/src/model/DescribeDistributionProductsLinkResult.cc create mode 100644 market/src/model/DescribeDistributionProductsRequest.cc create mode 100644 market/src/model/DescribeDistributionProductsResult.cc create mode 100644 market/src/model/DescribeProjectAttachmentsRequest.cc create mode 100644 market/src/model/DescribeProjectAttachmentsResult.cc create mode 100644 market/src/model/DescribeProjectInfoRequest.cc create mode 100644 market/src/model/DescribeProjectInfoResult.cc create mode 100644 market/src/model/DescribeProjectMessagesRequest.cc create mode 100644 market/src/model/DescribeProjectMessagesResult.cc create mode 100644 market/src/model/DescribeProjectNodesRequest.cc create mode 100644 market/src/model/DescribeProjectNodesResult.cc create mode 100644 market/src/model/DescribeProjectOperateLogsRequest.cc create mode 100644 market/src/model/DescribeProjectOperateLogsResult.cc delete mode 100644 market/src/model/DescribeRateRequest.cc delete mode 100644 market/src/model/DescribeRateResult.cc create mode 100644 market/src/model/FinishCurrentProjectNodeRequest.cc rename market/src/model/{UpdateCommodityResult.cc => FinishCurrentProjectNodeResult.cc} (64%) delete mode 100644 market/src/model/NotifyContractEventRequest.cc create mode 100644 market/src/model/PauseProjectRequest.cc rename market/src/model/{NotifyContractEventResult.cc => PauseProjectResult.cc} (69%) delete mode 100644 market/src/model/QueryMarketCategoriesRequest.cc delete mode 100644 market/src/model/QueryMarketCategoriesResult.cc delete mode 100644 market/src/model/QueryMarketImagesRequest.cc delete mode 100644 market/src/model/QueryMarketImagesResult.cc create mode 100644 market/src/model/ResumeProjectRequest.cc rename market/src/model/{BindImagePackageResult.cc => ResumeProjectResult.cc} (68%) create mode 100644 market/src/model/RollbackCurrentProjectNodeRequest.cc rename market/src/model/{CreateCommodityResult.cc => RollbackCurrentProjectNodeResult.cc} (63%) delete mode 100644 market/src/model/UpdateCommodityRequest.cc delete mode 100644 market/src/model/UploadCommodityFileRequest.cc delete mode 100644 market/src/model/UploadCommodityFileResult.cc diff --git a/VERSION b/VERSION index 9db5dd554..bc8e01490 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1584 \ No newline at end of file +1.36.1585 \ No newline at end of file diff --git a/market/CMakeLists.txt b/market/CMakeLists.txt index faf4cf47e..40430c5b0 100644 --- a/market/CMakeLists.txt +++ b/market/CMakeLists.txt @@ -23,20 +23,18 @@ set(market_public_header set(market_public_header_model include/alibabacloud/market/model/ActivateLicenseRequest.h include/alibabacloud/market/model/ActivateLicenseResult.h - include/alibabacloud/market/model/BindImagePackageRequest.h - include/alibabacloud/market/model/BindImagePackageResult.h - include/alibabacloud/market/model/CreateCommodityRequest.h - include/alibabacloud/market/model/CreateCommodityResult.h + include/alibabacloud/market/model/AutoRenewInstanceRequest.h + include/alibabacloud/market/model/AutoRenewInstanceResult.h include/alibabacloud/market/model/CreateOrderRequest.h include/alibabacloud/market/model/CreateOrderResult.h - include/alibabacloud/market/model/CreateRateRequest.h - include/alibabacloud/market/model/CreateRateResult.h - include/alibabacloud/market/model/DeleteCommodityRequest.h - include/alibabacloud/market/model/DeleteCommodityResult.h - include/alibabacloud/market/model/DescribeCommoditiesRequest.h - include/alibabacloud/market/model/DescribeCommoditiesResult.h - include/alibabacloud/market/model/DescribeCommodityRequest.h - include/alibabacloud/market/model/DescribeCommodityResult.h + include/alibabacloud/market/model/CrossAccountVerifyTokenRequest.h + include/alibabacloud/market/model/CrossAccountVerifyTokenResult.h + include/alibabacloud/market/model/DescribeCurrentNodeInfoRequest.h + include/alibabacloud/market/model/DescribeCurrentNodeInfoResult.h + include/alibabacloud/market/model/DescribeDistributionProductsRequest.h + include/alibabacloud/market/model/DescribeDistributionProductsResult.h + include/alibabacloud/market/model/DescribeDistributionProductsLinkRequest.h + include/alibabacloud/market/model/DescribeDistributionProductsLinkResult.h include/alibabacloud/market/model/DescribeInstanceRequest.h include/alibabacloud/market/model/DescribeInstanceResult.h include/alibabacloud/market/model/DescribeInstancesRequest.h @@ -51,39 +49,43 @@ set(market_public_header_model include/alibabacloud/market/model/DescribeProductResult.h include/alibabacloud/market/model/DescribeProductsRequest.h include/alibabacloud/market/model/DescribeProductsResult.h - include/alibabacloud/market/model/DescribeRateRequest.h - include/alibabacloud/market/model/DescribeRateResult.h - include/alibabacloud/market/model/NotifyContractEventRequest.h - include/alibabacloud/market/model/NotifyContractEventResult.h + include/alibabacloud/market/model/DescribeProjectAttachmentsRequest.h + include/alibabacloud/market/model/DescribeProjectAttachmentsResult.h + include/alibabacloud/market/model/DescribeProjectInfoRequest.h + include/alibabacloud/market/model/DescribeProjectInfoResult.h + include/alibabacloud/market/model/DescribeProjectMessagesRequest.h + include/alibabacloud/market/model/DescribeProjectMessagesResult.h + include/alibabacloud/market/model/DescribeProjectNodesRequest.h + include/alibabacloud/market/model/DescribeProjectNodesResult.h + include/alibabacloud/market/model/DescribeProjectOperateLogsRequest.h + include/alibabacloud/market/model/DescribeProjectOperateLogsResult.h + include/alibabacloud/market/model/FinishCurrentProjectNodeRequest.h + include/alibabacloud/market/model/FinishCurrentProjectNodeResult.h + include/alibabacloud/market/model/PauseProjectRequest.h + include/alibabacloud/market/model/PauseProjectResult.h include/alibabacloud/market/model/PushMeteringDataRequest.h include/alibabacloud/market/model/PushMeteringDataResult.h - include/alibabacloud/market/model/QueryMarketCategoriesRequest.h - include/alibabacloud/market/model/QueryMarketCategoriesResult.h - include/alibabacloud/market/model/QueryMarketImagesRequest.h - include/alibabacloud/market/model/QueryMarketImagesResult.h - include/alibabacloud/market/model/UpdateCommodityRequest.h - include/alibabacloud/market/model/UpdateCommodityResult.h - include/alibabacloud/market/model/UploadCommodityFileRequest.h - include/alibabacloud/market/model/UploadCommodityFileResult.h ) + include/alibabacloud/market/model/ResumeProjectRequest.h + include/alibabacloud/market/model/ResumeProjectResult.h + include/alibabacloud/market/model/RollbackCurrentProjectNodeRequest.h + include/alibabacloud/market/model/RollbackCurrentProjectNodeResult.h ) set(market_src src/MarketClient.cc src/model/ActivateLicenseRequest.cc src/model/ActivateLicenseResult.cc - src/model/BindImagePackageRequest.cc - src/model/BindImagePackageResult.cc - src/model/CreateCommodityRequest.cc - src/model/CreateCommodityResult.cc + src/model/AutoRenewInstanceRequest.cc + src/model/AutoRenewInstanceResult.cc src/model/CreateOrderRequest.cc src/model/CreateOrderResult.cc - src/model/CreateRateRequest.cc - src/model/CreateRateResult.cc - src/model/DeleteCommodityRequest.cc - src/model/DeleteCommodityResult.cc - src/model/DescribeCommoditiesRequest.cc - src/model/DescribeCommoditiesResult.cc - src/model/DescribeCommodityRequest.cc - src/model/DescribeCommodityResult.cc + src/model/CrossAccountVerifyTokenRequest.cc + src/model/CrossAccountVerifyTokenResult.cc + src/model/DescribeCurrentNodeInfoRequest.cc + src/model/DescribeCurrentNodeInfoResult.cc + src/model/DescribeDistributionProductsRequest.cc + src/model/DescribeDistributionProductsResult.cc + src/model/DescribeDistributionProductsLinkRequest.cc + src/model/DescribeDistributionProductsLinkResult.cc src/model/DescribeInstanceRequest.cc src/model/DescribeInstanceResult.cc src/model/DescribeInstancesRequest.cc @@ -98,20 +100,26 @@ set(market_src src/model/DescribeProductResult.cc src/model/DescribeProductsRequest.cc src/model/DescribeProductsResult.cc - src/model/DescribeRateRequest.cc - src/model/DescribeRateResult.cc - src/model/NotifyContractEventRequest.cc - src/model/NotifyContractEventResult.cc + src/model/DescribeProjectAttachmentsRequest.cc + src/model/DescribeProjectAttachmentsResult.cc + src/model/DescribeProjectInfoRequest.cc + src/model/DescribeProjectInfoResult.cc + src/model/DescribeProjectMessagesRequest.cc + src/model/DescribeProjectMessagesResult.cc + src/model/DescribeProjectNodesRequest.cc + src/model/DescribeProjectNodesResult.cc + src/model/DescribeProjectOperateLogsRequest.cc + src/model/DescribeProjectOperateLogsResult.cc + src/model/FinishCurrentProjectNodeRequest.cc + src/model/FinishCurrentProjectNodeResult.cc + src/model/PauseProjectRequest.cc + src/model/PauseProjectResult.cc src/model/PushMeteringDataRequest.cc src/model/PushMeteringDataResult.cc - src/model/QueryMarketCategoriesRequest.cc - src/model/QueryMarketCategoriesResult.cc - src/model/QueryMarketImagesRequest.cc - src/model/QueryMarketImagesResult.cc - src/model/UpdateCommodityRequest.cc - src/model/UpdateCommodityResult.cc - src/model/UploadCommodityFileRequest.cc - src/model/UploadCommodityFileResult.cc ) + src/model/ResumeProjectRequest.cc + src/model/ResumeProjectResult.cc + src/model/RollbackCurrentProjectNodeRequest.cc + src/model/RollbackCurrentProjectNodeResult.cc ) add_library(market ${LIB_TYPE} ${market_public_header} diff --git a/market/include/alibabacloud/market/MarketClient.h b/market/include/alibabacloud/market/MarketClient.h index c1e05c4a1..f4b0885bb 100644 --- a/market/include/alibabacloud/market/MarketClient.h +++ b/market/include/alibabacloud/market/MarketClient.h @@ -24,20 +24,18 @@ #include "MarketExport.h" #include "model/ActivateLicenseRequest.h" #include "model/ActivateLicenseResult.h" -#include "model/BindImagePackageRequest.h" -#include "model/BindImagePackageResult.h" -#include "model/CreateCommodityRequest.h" -#include "model/CreateCommodityResult.h" +#include "model/AutoRenewInstanceRequest.h" +#include "model/AutoRenewInstanceResult.h" #include "model/CreateOrderRequest.h" #include "model/CreateOrderResult.h" -#include "model/CreateRateRequest.h" -#include "model/CreateRateResult.h" -#include "model/DeleteCommodityRequest.h" -#include "model/DeleteCommodityResult.h" -#include "model/DescribeCommoditiesRequest.h" -#include "model/DescribeCommoditiesResult.h" -#include "model/DescribeCommodityRequest.h" -#include "model/DescribeCommodityResult.h" +#include "model/CrossAccountVerifyTokenRequest.h" +#include "model/CrossAccountVerifyTokenResult.h" +#include "model/DescribeCurrentNodeInfoRequest.h" +#include "model/DescribeCurrentNodeInfoResult.h" +#include "model/DescribeDistributionProductsRequest.h" +#include "model/DescribeDistributionProductsResult.h" +#include "model/DescribeDistributionProductsLinkRequest.h" +#include "model/DescribeDistributionProductsLinkResult.h" #include "model/DescribeInstanceRequest.h" #include "model/DescribeInstanceResult.h" #include "model/DescribeInstancesRequest.h" @@ -52,20 +50,26 @@ #include "model/DescribeProductResult.h" #include "model/DescribeProductsRequest.h" #include "model/DescribeProductsResult.h" -#include "model/DescribeRateRequest.h" -#include "model/DescribeRateResult.h" -#include "model/NotifyContractEventRequest.h" -#include "model/NotifyContractEventResult.h" +#include "model/DescribeProjectAttachmentsRequest.h" +#include "model/DescribeProjectAttachmentsResult.h" +#include "model/DescribeProjectInfoRequest.h" +#include "model/DescribeProjectInfoResult.h" +#include "model/DescribeProjectMessagesRequest.h" +#include "model/DescribeProjectMessagesResult.h" +#include "model/DescribeProjectNodesRequest.h" +#include "model/DescribeProjectNodesResult.h" +#include "model/DescribeProjectOperateLogsRequest.h" +#include "model/DescribeProjectOperateLogsResult.h" +#include "model/FinishCurrentProjectNodeRequest.h" +#include "model/FinishCurrentProjectNodeResult.h" +#include "model/PauseProjectRequest.h" +#include "model/PauseProjectResult.h" #include "model/PushMeteringDataRequest.h" #include "model/PushMeteringDataResult.h" -#include "model/QueryMarketCategoriesRequest.h" -#include "model/QueryMarketCategoriesResult.h" -#include "model/QueryMarketImagesRequest.h" -#include "model/QueryMarketImagesResult.h" -#include "model/UpdateCommodityRequest.h" -#include "model/UpdateCommodityResult.h" -#include "model/UploadCommodityFileRequest.h" -#include "model/UploadCommodityFileResult.h" +#include "model/ResumeProjectRequest.h" +#include "model/ResumeProjectResult.h" +#include "model/RollbackCurrentProjectNodeRequest.h" +#include "model/RollbackCurrentProjectNodeResult.h" namespace AlibabaCloud @@ -78,27 +82,24 @@ namespace AlibabaCloud typedef Outcome ActivateLicenseOutcome; typedef std::future ActivateLicenseOutcomeCallable; typedef std::function&)> ActivateLicenseAsyncHandler; - typedef Outcome BindImagePackageOutcome; - typedef std::future BindImagePackageOutcomeCallable; - typedef std::function&)> BindImagePackageAsyncHandler; - typedef Outcome CreateCommodityOutcome; - typedef std::future CreateCommodityOutcomeCallable; - typedef std::function&)> CreateCommodityAsyncHandler; + typedef Outcome AutoRenewInstanceOutcome; + typedef std::future AutoRenewInstanceOutcomeCallable; + typedef std::function&)> AutoRenewInstanceAsyncHandler; typedef Outcome CreateOrderOutcome; typedef std::future CreateOrderOutcomeCallable; typedef std::function&)> CreateOrderAsyncHandler; - typedef Outcome CreateRateOutcome; - typedef std::future CreateRateOutcomeCallable; - typedef std::function&)> CreateRateAsyncHandler; - typedef Outcome DeleteCommodityOutcome; - typedef std::future DeleteCommodityOutcomeCallable; - typedef std::function&)> DeleteCommodityAsyncHandler; - typedef Outcome DescribeCommoditiesOutcome; - typedef std::future DescribeCommoditiesOutcomeCallable; - typedef std::function&)> DescribeCommoditiesAsyncHandler; - typedef Outcome DescribeCommodityOutcome; - typedef std::future DescribeCommodityOutcomeCallable; - typedef std::function&)> DescribeCommodityAsyncHandler; + typedef Outcome CrossAccountVerifyTokenOutcome; + typedef std::future CrossAccountVerifyTokenOutcomeCallable; + typedef std::function&)> CrossAccountVerifyTokenAsyncHandler; + typedef Outcome DescribeCurrentNodeInfoOutcome; + typedef std::future DescribeCurrentNodeInfoOutcomeCallable; + typedef std::function&)> DescribeCurrentNodeInfoAsyncHandler; + typedef Outcome DescribeDistributionProductsOutcome; + typedef std::future DescribeDistributionProductsOutcomeCallable; + typedef std::function&)> DescribeDistributionProductsAsyncHandler; + typedef Outcome DescribeDistributionProductsLinkOutcome; + typedef std::future DescribeDistributionProductsLinkOutcomeCallable; + typedef std::function&)> DescribeDistributionProductsLinkAsyncHandler; typedef Outcome DescribeInstanceOutcome; typedef std::future DescribeInstanceOutcomeCallable; typedef std::function&)> DescribeInstanceAsyncHandler; @@ -120,27 +121,36 @@ namespace AlibabaCloud typedef Outcome DescribeProductsOutcome; typedef std::future DescribeProductsOutcomeCallable; typedef std::function&)> DescribeProductsAsyncHandler; - typedef Outcome DescribeRateOutcome; - typedef std::future DescribeRateOutcomeCallable; - typedef std::function&)> DescribeRateAsyncHandler; - typedef Outcome NotifyContractEventOutcome; - typedef std::future NotifyContractEventOutcomeCallable; - typedef std::function&)> NotifyContractEventAsyncHandler; + typedef Outcome DescribeProjectAttachmentsOutcome; + typedef std::future DescribeProjectAttachmentsOutcomeCallable; + typedef std::function&)> DescribeProjectAttachmentsAsyncHandler; + typedef Outcome DescribeProjectInfoOutcome; + typedef std::future DescribeProjectInfoOutcomeCallable; + typedef std::function&)> DescribeProjectInfoAsyncHandler; + typedef Outcome DescribeProjectMessagesOutcome; + typedef std::future DescribeProjectMessagesOutcomeCallable; + typedef std::function&)> DescribeProjectMessagesAsyncHandler; + typedef Outcome DescribeProjectNodesOutcome; + typedef std::future DescribeProjectNodesOutcomeCallable; + typedef std::function&)> DescribeProjectNodesAsyncHandler; + typedef Outcome DescribeProjectOperateLogsOutcome; + typedef std::future DescribeProjectOperateLogsOutcomeCallable; + typedef std::function&)> DescribeProjectOperateLogsAsyncHandler; + typedef Outcome FinishCurrentProjectNodeOutcome; + typedef std::future FinishCurrentProjectNodeOutcomeCallable; + typedef std::function&)> FinishCurrentProjectNodeAsyncHandler; + typedef Outcome PauseProjectOutcome; + typedef std::future PauseProjectOutcomeCallable; + typedef std::function&)> PauseProjectAsyncHandler; typedef Outcome PushMeteringDataOutcome; typedef std::future PushMeteringDataOutcomeCallable; typedef std::function&)> PushMeteringDataAsyncHandler; - typedef Outcome QueryMarketCategoriesOutcome; - typedef std::future QueryMarketCategoriesOutcomeCallable; - typedef std::function&)> QueryMarketCategoriesAsyncHandler; - typedef Outcome QueryMarketImagesOutcome; - typedef std::future QueryMarketImagesOutcomeCallable; - typedef std::function&)> QueryMarketImagesAsyncHandler; - typedef Outcome UpdateCommodityOutcome; - typedef std::future UpdateCommodityOutcomeCallable; - typedef std::function&)> UpdateCommodityAsyncHandler; - typedef Outcome UploadCommodityFileOutcome; - typedef std::future UploadCommodityFileOutcomeCallable; - typedef std::function&)> UploadCommodityFileAsyncHandler; + typedef Outcome ResumeProjectOutcome; + typedef std::future ResumeProjectOutcomeCallable; + typedef std::function&)> ResumeProjectAsyncHandler; + typedef Outcome RollbackCurrentProjectNodeOutcome; + typedef std::future RollbackCurrentProjectNodeOutcomeCallable; + typedef std::function&)> RollbackCurrentProjectNodeAsyncHandler; MarketClient(const Credentials &credentials, const ClientConfiguration &configuration); MarketClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); @@ -149,27 +159,24 @@ namespace AlibabaCloud ActivateLicenseOutcome activateLicense(const Model::ActivateLicenseRequest &request)const; void activateLicenseAsync(const Model::ActivateLicenseRequest& request, const ActivateLicenseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ActivateLicenseOutcomeCallable activateLicenseCallable(const Model::ActivateLicenseRequest& request) const; - BindImagePackageOutcome bindImagePackage(const Model::BindImagePackageRequest &request)const; - void bindImagePackageAsync(const Model::BindImagePackageRequest& request, const BindImagePackageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - BindImagePackageOutcomeCallable bindImagePackageCallable(const Model::BindImagePackageRequest& request) const; - CreateCommodityOutcome createCommodity(const Model::CreateCommodityRequest &request)const; - void createCommodityAsync(const Model::CreateCommodityRequest& request, const CreateCommodityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateCommodityOutcomeCallable createCommodityCallable(const Model::CreateCommodityRequest& request) const; + AutoRenewInstanceOutcome autoRenewInstance(const Model::AutoRenewInstanceRequest &request)const; + void autoRenewInstanceAsync(const Model::AutoRenewInstanceRequest& request, const AutoRenewInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AutoRenewInstanceOutcomeCallable autoRenewInstanceCallable(const Model::AutoRenewInstanceRequest& request) const; CreateOrderOutcome createOrder(const Model::CreateOrderRequest &request)const; void createOrderAsync(const Model::CreateOrderRequest& request, const CreateOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateOrderOutcomeCallable createOrderCallable(const Model::CreateOrderRequest& request) const; - CreateRateOutcome createRate(const Model::CreateRateRequest &request)const; - void createRateAsync(const Model::CreateRateRequest& request, const CreateRateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateRateOutcomeCallable createRateCallable(const Model::CreateRateRequest& request) const; - DeleteCommodityOutcome deleteCommodity(const Model::DeleteCommodityRequest &request)const; - void deleteCommodityAsync(const Model::DeleteCommodityRequest& request, const DeleteCommodityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteCommodityOutcomeCallable deleteCommodityCallable(const Model::DeleteCommodityRequest& request) const; - DescribeCommoditiesOutcome describeCommodities(const Model::DescribeCommoditiesRequest &request)const; - void describeCommoditiesAsync(const Model::DescribeCommoditiesRequest& request, const DescribeCommoditiesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeCommoditiesOutcomeCallable describeCommoditiesCallable(const Model::DescribeCommoditiesRequest& request) const; - DescribeCommodityOutcome describeCommodity(const Model::DescribeCommodityRequest &request)const; - void describeCommodityAsync(const Model::DescribeCommodityRequest& request, const DescribeCommodityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeCommodityOutcomeCallable describeCommodityCallable(const Model::DescribeCommodityRequest& request) const; + CrossAccountVerifyTokenOutcome crossAccountVerifyToken(const Model::CrossAccountVerifyTokenRequest &request)const; + void crossAccountVerifyTokenAsync(const Model::CrossAccountVerifyTokenRequest& request, const CrossAccountVerifyTokenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CrossAccountVerifyTokenOutcomeCallable crossAccountVerifyTokenCallable(const Model::CrossAccountVerifyTokenRequest& request) const; + DescribeCurrentNodeInfoOutcome describeCurrentNodeInfo(const Model::DescribeCurrentNodeInfoRequest &request)const; + void describeCurrentNodeInfoAsync(const Model::DescribeCurrentNodeInfoRequest& request, const DescribeCurrentNodeInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCurrentNodeInfoOutcomeCallable describeCurrentNodeInfoCallable(const Model::DescribeCurrentNodeInfoRequest& request) const; + DescribeDistributionProductsOutcome describeDistributionProducts(const Model::DescribeDistributionProductsRequest &request)const; + void describeDistributionProductsAsync(const Model::DescribeDistributionProductsRequest& request, const DescribeDistributionProductsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDistributionProductsOutcomeCallable describeDistributionProductsCallable(const Model::DescribeDistributionProductsRequest& request) const; + DescribeDistributionProductsLinkOutcome describeDistributionProductsLink(const Model::DescribeDistributionProductsLinkRequest &request)const; + void describeDistributionProductsLinkAsync(const Model::DescribeDistributionProductsLinkRequest& request, const DescribeDistributionProductsLinkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDistributionProductsLinkOutcomeCallable describeDistributionProductsLinkCallable(const Model::DescribeDistributionProductsLinkRequest& 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; @@ -191,27 +198,36 @@ namespace AlibabaCloud DescribeProductsOutcome describeProducts(const Model::DescribeProductsRequest &request)const; void describeProductsAsync(const Model::DescribeProductsRequest& request, const DescribeProductsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeProductsOutcomeCallable describeProductsCallable(const Model::DescribeProductsRequest& request) const; - DescribeRateOutcome describeRate(const Model::DescribeRateRequest &request)const; - void describeRateAsync(const Model::DescribeRateRequest& request, const DescribeRateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeRateOutcomeCallable describeRateCallable(const Model::DescribeRateRequest& request) const; - NotifyContractEventOutcome notifyContractEvent(const Model::NotifyContractEventRequest &request)const; - void notifyContractEventAsync(const Model::NotifyContractEventRequest& request, const NotifyContractEventAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - NotifyContractEventOutcomeCallable notifyContractEventCallable(const Model::NotifyContractEventRequest& request) const; + DescribeProjectAttachmentsOutcome describeProjectAttachments(const Model::DescribeProjectAttachmentsRequest &request)const; + void describeProjectAttachmentsAsync(const Model::DescribeProjectAttachmentsRequest& request, const DescribeProjectAttachmentsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeProjectAttachmentsOutcomeCallable describeProjectAttachmentsCallable(const Model::DescribeProjectAttachmentsRequest& request) const; + DescribeProjectInfoOutcome describeProjectInfo(const Model::DescribeProjectInfoRequest &request)const; + void describeProjectInfoAsync(const Model::DescribeProjectInfoRequest& request, const DescribeProjectInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeProjectInfoOutcomeCallable describeProjectInfoCallable(const Model::DescribeProjectInfoRequest& request) const; + DescribeProjectMessagesOutcome describeProjectMessages(const Model::DescribeProjectMessagesRequest &request)const; + void describeProjectMessagesAsync(const Model::DescribeProjectMessagesRequest& request, const DescribeProjectMessagesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeProjectMessagesOutcomeCallable describeProjectMessagesCallable(const Model::DescribeProjectMessagesRequest& request) const; + DescribeProjectNodesOutcome describeProjectNodes(const Model::DescribeProjectNodesRequest &request)const; + void describeProjectNodesAsync(const Model::DescribeProjectNodesRequest& request, const DescribeProjectNodesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeProjectNodesOutcomeCallable describeProjectNodesCallable(const Model::DescribeProjectNodesRequest& request) const; + DescribeProjectOperateLogsOutcome describeProjectOperateLogs(const Model::DescribeProjectOperateLogsRequest &request)const; + void describeProjectOperateLogsAsync(const Model::DescribeProjectOperateLogsRequest& request, const DescribeProjectOperateLogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeProjectOperateLogsOutcomeCallable describeProjectOperateLogsCallable(const Model::DescribeProjectOperateLogsRequest& request) const; + FinishCurrentProjectNodeOutcome finishCurrentProjectNode(const Model::FinishCurrentProjectNodeRequest &request)const; + void finishCurrentProjectNodeAsync(const Model::FinishCurrentProjectNodeRequest& request, const FinishCurrentProjectNodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + FinishCurrentProjectNodeOutcomeCallable finishCurrentProjectNodeCallable(const Model::FinishCurrentProjectNodeRequest& request) const; + PauseProjectOutcome pauseProject(const Model::PauseProjectRequest &request)const; + void pauseProjectAsync(const Model::PauseProjectRequest& request, const PauseProjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PauseProjectOutcomeCallable pauseProjectCallable(const Model::PauseProjectRequest& request) const; PushMeteringDataOutcome pushMeteringData(const Model::PushMeteringDataRequest &request)const; void pushMeteringDataAsync(const Model::PushMeteringDataRequest& request, const PushMeteringDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; PushMeteringDataOutcomeCallable pushMeteringDataCallable(const Model::PushMeteringDataRequest& request) const; - QueryMarketCategoriesOutcome queryMarketCategories(const Model::QueryMarketCategoriesRequest &request)const; - void queryMarketCategoriesAsync(const Model::QueryMarketCategoriesRequest& request, const QueryMarketCategoriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryMarketCategoriesOutcomeCallable queryMarketCategoriesCallable(const Model::QueryMarketCategoriesRequest& request) const; - QueryMarketImagesOutcome queryMarketImages(const Model::QueryMarketImagesRequest &request)const; - void queryMarketImagesAsync(const Model::QueryMarketImagesRequest& request, const QueryMarketImagesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryMarketImagesOutcomeCallable queryMarketImagesCallable(const Model::QueryMarketImagesRequest& request) const; - UpdateCommodityOutcome updateCommodity(const Model::UpdateCommodityRequest &request)const; - void updateCommodityAsync(const Model::UpdateCommodityRequest& request, const UpdateCommodityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UpdateCommodityOutcomeCallable updateCommodityCallable(const Model::UpdateCommodityRequest& request) const; - UploadCommodityFileOutcome uploadCommodityFile(const Model::UploadCommodityFileRequest &request)const; - void uploadCommodityFileAsync(const Model::UploadCommodityFileRequest& request, const UploadCommodityFileAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UploadCommodityFileOutcomeCallable uploadCommodityFileCallable(const Model::UploadCommodityFileRequest& request) const; + ResumeProjectOutcome resumeProject(const Model::ResumeProjectRequest &request)const; + void resumeProjectAsync(const Model::ResumeProjectRequest& request, const ResumeProjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ResumeProjectOutcomeCallable resumeProjectCallable(const Model::ResumeProjectRequest& request) const; + RollbackCurrentProjectNodeOutcome rollbackCurrentProjectNode(const Model::RollbackCurrentProjectNodeRequest &request)const; + void rollbackCurrentProjectNodeAsync(const Model::RollbackCurrentProjectNodeRequest& request, const RollbackCurrentProjectNodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RollbackCurrentProjectNodeOutcomeCallable rollbackCurrentProjectNodeCallable(const Model::RollbackCurrentProjectNodeRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/market/include/alibabacloud/market/model/ActivateLicenseRequest.h b/market/include/alibabacloud/market/model/ActivateLicenseRequest.h index 39413834a..05ed5450b 100644 --- a/market/include/alibabacloud/market/model/ActivateLicenseRequest.h +++ b/market/include/alibabacloud/market/model/ActivateLicenseRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_MARKET_MODEL_ACTIVATELICENSEREQUEST_H_ -#define ALIBABACLOUD_MARKET_MODEL_ACTIVATELICENSEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Market - { - namespace Model - { - class ALIBABACLOUD_MARKET_EXPORT ActivateLicenseRequest : public RpcServiceRequest - { - - public: - ActivateLicenseRequest(); - ~ActivateLicenseRequest(); - - std::string getIdentification()const; - void setIdentification(const std::string& identification); - std::string getLicenseCode()const; - void setLicenseCode(const std::string& licenseCode); - - private: - std::string identification_; - std::string licenseCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MARKET_MODEL_ACTIVATELICENSEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MARKET_MODEL_ACTIVATELICENSEREQUEST_H_ +#define ALIBABACLOUD_MARKET_MODEL_ACTIVATELICENSEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Market { +namespace Model { +class ALIBABACLOUD_MARKET_EXPORT ActivateLicenseRequest : public RpcServiceRequest { +public: + ActivateLicenseRequest(); + ~ActivateLicenseRequest(); + std::string getIdentification() const; + void setIdentification(const std::string &identification); + std::string getLicenseCode() const; + void setLicenseCode(const std::string &licenseCode); + +private: + std::string identification_; + std::string licenseCode_; +}; +} // namespace Model +} // namespace Market +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MARKET_MODEL_ACTIVATELICENSEREQUEST_H_ diff --git a/market/include/alibabacloud/market/model/AutoRenewInstanceRequest.h b/market/include/alibabacloud/market/model/AutoRenewInstanceRequest.h new file mode 100644 index 000000000..2a03c0e8e --- /dev/null +++ b/market/include/alibabacloud/market/model/AutoRenewInstanceRequest.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_MARKET_MODEL_AUTORENEWINSTANCEREQUEST_H_ +#define ALIBABACLOUD_MARKET_MODEL_AUTORENEWINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Market { +namespace Model { +class ALIBABACLOUD_MARKET_EXPORT AutoRenewInstanceRequest : public RpcServiceRequest { +public: + AutoRenewInstanceRequest(); + ~AutoRenewInstanceRequest(); + std::string getType() const; + void setType(const std::string &type); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getAutoRenewDuration() const; + void setAutoRenewDuration(int autoRenewDuration); + std::string getAutoRenewCycle() const; + void setAutoRenewCycle(const std::string &autoRenewCycle); + long getOrderBizId() const; + void setOrderBizId(long orderBizId); + +private: + std::string type_; + long ownerId_; + int autoRenewDuration_; + std::string autoRenewCycle_; + long orderBizId_; +}; +} // namespace Model +} // namespace Market +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MARKET_MODEL_AUTORENEWINSTANCEREQUEST_H_ diff --git a/market/include/alibabacloud/market/model/NotifyContractEventResult.h b/market/include/alibabacloud/market/model/AutoRenewInstanceResult.h similarity index 69% rename from market/include/alibabacloud/market/model/NotifyContractEventResult.h rename to market/include/alibabacloud/market/model/AutoRenewInstanceResult.h index 55be5692c..021277bad 100644 --- a/market/include/alibabacloud/market/model/NotifyContractEventResult.h +++ b/market/include/alibabacloud/market/model/AutoRenewInstanceResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_MARKET_MODEL_NOTIFYCONTRACTEVENTRESULT_H_ -#define ALIBABACLOUD_MARKET_MODEL_NOTIFYCONTRACTEVENTRESULT_H_ +#ifndef ALIBABACLOUD_MARKET_MODEL_AUTORENEWINSTANCERESULT_H_ +#define ALIBABACLOUD_MARKET_MODEL_AUTORENEWINSTANCERESULT_H_ #include #include @@ -29,23 +29,25 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_MARKET_EXPORT NotifyContractEventResult : public ServiceResult + class ALIBABACLOUD_MARKET_EXPORT AutoRenewInstanceResult : public ServiceResult { public: - NotifyContractEventResult(); - explicit NotifyContractEventResult(const std::string &payload); - ~NotifyContractEventResult(); + AutoRenewInstanceResult(); + explicit AutoRenewInstanceResult(const std::string &payload); + ~AutoRenewInstanceResult(); + bool getData()const; bool getSuccess()const; protected: void parse(const std::string &payload); private: + bool data_; bool success_; }; } } } -#endif // !ALIBABACLOUD_MARKET_MODEL_NOTIFYCONTRACTEVENTRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_MARKET_MODEL_AUTORENEWINSTANCERESULT_H_ \ No newline at end of file diff --git a/market/include/alibabacloud/market/model/BindImagePackageRequest.h b/market/include/alibabacloud/market/model/BindImagePackageRequest.h deleted file mode 100644 index 18654fe63..000000000 --- a/market/include/alibabacloud/market/model/BindImagePackageRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_MARKET_MODEL_BINDIMAGEPACKAGEREQUEST_H_ -#define ALIBABACLOUD_MARKET_MODEL_BINDIMAGEPACKAGEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Market - { - namespace Model - { - class ALIBABACLOUD_MARKET_EXPORT BindImagePackageRequest : public RpcServiceRequest - { - - public: - BindImagePackageRequest(); - ~BindImagePackageRequest(); - - std::string getEcsInstanceId()const; - void setEcsInstanceId(const std::string& ecsInstanceId); - std::string getImagePackageInstanceId()const; - void setImagePackageInstanceId(const std::string& imagePackageInstanceId); - - private: - std::string ecsInstanceId_; - std::string imagePackageInstanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MARKET_MODEL_BINDIMAGEPACKAGEREQUEST_H_ \ No newline at end of file diff --git a/market/include/alibabacloud/market/model/CreateCommodityRequest.h b/market/include/alibabacloud/market/model/CreateCommodityRequest.h deleted file mode 100644 index f5fc21762..000000000 --- a/market/include/alibabacloud/market/model/CreateCommodityRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_MARKET_MODEL_CREATECOMMODITYREQUEST_H_ -#define ALIBABACLOUD_MARKET_MODEL_CREATECOMMODITYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Market - { - namespace Model - { - class ALIBABACLOUD_MARKET_EXPORT CreateCommodityRequest : public RpcServiceRequest - { - - public: - CreateCommodityRequest(); - ~CreateCommodityRequest(); - - std::string getApplicationId()const; - void setApplicationId(const std::string& applicationId); - std::string getContent()const; - void setContent(const std::string& content); - - private: - std::string applicationId_; - std::string content_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MARKET_MODEL_CREATECOMMODITYREQUEST_H_ \ No newline at end of file diff --git a/market/include/alibabacloud/market/model/CreateOrderRequest.h b/market/include/alibabacloud/market/model/CreateOrderRequest.h index 705927049..6989b161c 100644 --- a/market/include/alibabacloud/market/model/CreateOrderRequest.h +++ b/market/include/alibabacloud/market/model/CreateOrderRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_MARKET_MODEL_CREATEORDERREQUEST_H_ -#define ALIBABACLOUD_MARKET_MODEL_CREATEORDERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Market - { - namespace Model - { - class ALIBABACLOUD_MARKET_EXPORT CreateOrderRequest : public RpcServiceRequest - { - - public: - CreateOrderRequest(); - ~CreateOrderRequest(); - - std::string getOrderSouce()const; - void setOrderSouce(const std::string& orderSouce); - std::string getCommodity()const; - void setCommodity(const std::string& commodity); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getOwnerId()const; - void setOwnerId(const std::string& ownerId); - std::string getPaymentType()const; - void setPaymentType(const std::string& paymentType); - std::string getOrderType()const; - void setOrderType(const std::string& orderType); - - private: - std::string orderSouce_; - std::string commodity_; - std::string clientToken_; - std::string ownerId_; - std::string paymentType_; - std::string orderType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MARKET_MODEL_CREATEORDERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MARKET_MODEL_CREATEORDERREQUEST_H_ +#define ALIBABACLOUD_MARKET_MODEL_CREATEORDERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Market { +namespace Model { +class ALIBABACLOUD_MARKET_EXPORT CreateOrderRequest : public RpcServiceRequest { +public: + CreateOrderRequest(); + ~CreateOrderRequest(); + std::string getOrderSouce() const; + void setOrderSouce(const std::string &orderSouce); + std::string getCommodity() const; + void setCommodity(const std::string &commodity); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getOwnerId() const; + void setOwnerId(const std::string &ownerId); + std::string getPaymentType() const; + void setPaymentType(const std::string &paymentType); + std::string getOrderType() const; + void setOrderType(const std::string &orderType); + +private: + std::string orderSouce_; + std::string commodity_; + std::string clientToken_; + std::string ownerId_; + std::string paymentType_; + std::string orderType_; +}; +} // namespace Model +} // namespace Market +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MARKET_MODEL_CREATEORDERREQUEST_H_ diff --git a/market/include/alibabacloud/market/model/CreateRateRequest.h b/market/include/alibabacloud/market/model/CreateRateRequest.h deleted file mode 100644 index 31882e406..000000000 --- a/market/include/alibabacloud/market/model/CreateRateRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_MARKET_MODEL_CREATERATEREQUEST_H_ -#define ALIBABACLOUD_MARKET_MODEL_CREATERATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Market - { - namespace Model - { - class ALIBABACLOUD_MARKET_EXPORT CreateRateRequest : public RpcServiceRequest - { - - public: - CreateRateRequest(); - ~CreateRateRequest(); - - std::string getOrderId()const; - void setOrderId(const std::string& orderId); - std::string getContent()const; - void setContent(const std::string& content); - std::string getScore()const; - void setScore(const std::string& score); - std::string getRequestId()const; - void setRequestId(const std::string& requestId); - - private: - std::string orderId_; - std::string content_; - std::string score_; - std::string requestId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MARKET_MODEL_CREATERATEREQUEST_H_ \ No newline at end of file diff --git a/market/include/alibabacloud/market/model/CreateRateResult.h b/market/include/alibabacloud/market/model/CreateRateResult.h deleted file mode 100644 index c5824dee0..000000000 --- a/market/include/alibabacloud/market/model/CreateRateResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_MARKET_MODEL_CREATERATERESULT_H_ -#define ALIBABACLOUD_MARKET_MODEL_CREATERATERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Market - { - namespace Model - { - class ALIBABACLOUD_MARKET_EXPORT CreateRateResult : public ServiceResult - { - public: - - - CreateRateResult(); - explicit CreateRateResult(const std::string &payload); - ~CreateRateResult(); - long getId()const; - - protected: - void parse(const std::string &payload); - private: - long id_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MARKET_MODEL_CREATERATERESULT_H_ \ No newline at end of file diff --git a/market/include/alibabacloud/market/model/QueryMarketCategoriesRequest.h b/market/include/alibabacloud/market/model/CrossAccountVerifyTokenRequest.h similarity index 52% rename from market/include/alibabacloud/market/model/QueryMarketCategoriesRequest.h rename to market/include/alibabacloud/market/model/CrossAccountVerifyTokenRequest.h index 723147078..52e54e165 100644 --- a/market/include/alibabacloud/market/model/QueryMarketCategoriesRequest.h +++ b/market/include/alibabacloud/market/model/CrossAccountVerifyTokenRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_MARKET_MODEL_QUERYMARKETCATEGORIESREQUEST_H_ -#define ALIBABACLOUD_MARKET_MODEL_QUERYMARKETCATEGORIESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Market - { - namespace Model - { - class ALIBABACLOUD_MARKET_EXPORT QueryMarketCategoriesRequest : public RpcServiceRequest - { - - public: - QueryMarketCategoriesRequest(); - ~QueryMarketCategoriesRequest(); - - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - - private: - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MARKET_MODEL_QUERYMARKETCATEGORIESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MARKET_MODEL_CROSSACCOUNTVERIFYTOKENREQUEST_H_ +#define ALIBABACLOUD_MARKET_MODEL_CROSSACCOUNTVERIFYTOKENREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Market { +namespace Model { +class ALIBABACLOUD_MARKET_EXPORT CrossAccountVerifyTokenRequest : public RpcServiceRequest { +public: + CrossAccountVerifyTokenRequest(); + ~CrossAccountVerifyTokenRequest(); + std::string getToken() const; + void setToken(const std::string &token); + +private: + std::string token_; +}; +} // namespace Model +} // namespace Market +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MARKET_MODEL_CROSSACCOUNTVERIFYTOKENREQUEST_H_ diff --git a/market/include/alibabacloud/market/model/CreateCommodityResult.h b/market/include/alibabacloud/market/model/CrossAccountVerifyTokenResult.h similarity index 58% rename from market/include/alibabacloud/market/model/CreateCommodityResult.h rename to market/include/alibabacloud/market/model/CrossAccountVerifyTokenResult.h index 2939898b7..348652448 100644 --- a/market/include/alibabacloud/market/model/CreateCommodityResult.h +++ b/market/include/alibabacloud/market/model/CrossAccountVerifyTokenResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_MARKET_MODEL_CREATECOMMODITYRESULT_H_ -#define ALIBABACLOUD_MARKET_MODEL_CREATECOMMODITYRESULT_H_ +#ifndef ALIBABACLOUD_MARKET_MODEL_CROSSACCOUNTVERIFYTOKENRESULT_H_ +#define ALIBABACLOUD_MARKET_MODEL_CROSSACCOUNTVERIFYTOKENRESULT_H_ #include #include @@ -29,29 +29,36 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_MARKET_EXPORT CreateCommodityResult : public ServiceResult + class ALIBABACLOUD_MARKET_EXPORT CrossAccountVerifyTokenResult : public ServiceResult { public: - struct Commodity + struct Result { - std::string commodityId; + std::string uid; + std::vector authRoles; + long authTime; + std::string name; }; - CreateCommodityResult(); - explicit CreateCommodityResult(const std::string &payload); - ~CreateCommodityResult(); - Commodity getCommodity()const; + CrossAccountVerifyTokenResult(); + explicit CrossAccountVerifyTokenResult(const std::string &payload); + ~CrossAccountVerifyTokenResult(); + std::string getMessage()const; + std::string getCode()const; bool getSuccess()const; + Result getResult()const; protected: void parse(const std::string &payload); private: - Commodity commodity_; + std::string message_; + std::string code_; bool success_; + Result result_; }; } } } -#endif // !ALIBABACLOUD_MARKET_MODEL_CREATECOMMODITYRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_MARKET_MODEL_CROSSACCOUNTVERIFYTOKENRESULT_H_ \ No newline at end of file diff --git a/market/include/alibabacloud/market/model/DescribeCommoditiesRequest.h b/market/include/alibabacloud/market/model/DescribeCommoditiesRequest.h deleted file mode 100644 index 45729961b..000000000 --- a/market/include/alibabacloud/market/model/DescribeCommoditiesRequest.h +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_MARKET_MODEL_DESCRIBECOMMODITIESREQUEST_H_ -#define ALIBABACLOUD_MARKET_MODEL_DESCRIBECOMMODITIESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Market - { - namespace Model - { - class ALIBABACLOUD_MARKET_EXPORT DescribeCommoditiesRequest : public RpcServiceRequest - { - - public: - DescribeCommoditiesRequest(); - ~DescribeCommoditiesRequest(); - - std::string getCommodityGmtModifiedTo()const; - void setCommodityGmtModifiedTo(const std::string& commodityGmtModifiedTo); - std::string getCommodityGmtModifiedFrom()const; - void setCommodityGmtModifiedFrom(const std::string& commodityGmtModifiedFrom); - std::string getCommodityId()const; - void setCommodityId(const std::string& commodityId); - std::string getCommodityGmtPublishFrom()const; - void setCommodityGmtPublishFrom(const std::string& commodityGmtPublishFrom); - std::string getCommodityStatuses()const; - void setCommodityStatuses(const std::string& commodityStatuses); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getCommodityGmtCreatedFrom()const; - void setCommodityGmtCreatedFrom(const std::string& commodityGmtCreatedFrom); - std::string getCommodityIds()const; - void setCommodityIds(const std::string& commodityIds); - std::string getCommodityGmtCreatedTo()const; - void setCommodityGmtCreatedTo(const std::string& commodityGmtCreatedTo); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getCommodityGmtPublishTo()const; - void setCommodityGmtPublishTo(const std::string& commodityGmtPublishTo); - std::string getCommodityAuditStatuses()const; - void setCommodityAuditStatuses(const std::string& commodityAuditStatuses); - std::string getProperties()const; - void setProperties(const std::string& properties); - std::string getCommodityCategoryIds()const; - void setCommodityCategoryIds(const std::string& commodityCategoryIds); - - private: - std::string commodityGmtModifiedTo_; - std::string commodityGmtModifiedFrom_; - std::string commodityId_; - std::string commodityGmtPublishFrom_; - std::string commodityStatuses_; - int pageNumber_; - std::string commodityGmtCreatedFrom_; - std::string commodityIds_; - std::string commodityGmtCreatedTo_; - int pageSize_; - std::string commodityGmtPublishTo_; - std::string commodityAuditStatuses_; - std::string properties_; - std::string commodityCategoryIds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MARKET_MODEL_DESCRIBECOMMODITIESREQUEST_H_ \ No newline at end of file diff --git a/market/include/alibabacloud/market/model/DescribeRateRequest.h b/market/include/alibabacloud/market/model/DescribeCurrentNodeInfoRequest.h similarity index 52% rename from market/include/alibabacloud/market/model/DescribeRateRequest.h rename to market/include/alibabacloud/market/model/DescribeCurrentNodeInfoRequest.h index 18df8b3f7..35fcbff53 100644 --- a/market/include/alibabacloud/market/model/DescribeRateRequest.h +++ b/market/include/alibabacloud/market/model/DescribeCurrentNodeInfoRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_MARKET_MODEL_DESCRIBERATEREQUEST_H_ -#define ALIBABACLOUD_MARKET_MODEL_DESCRIBERATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Market - { - namespace Model - { - class ALIBABACLOUD_MARKET_EXPORT DescribeRateRequest : public RpcServiceRequest - { - - public: - DescribeRateRequest(); - ~DescribeRateRequest(); - - std::string getOrderId()const; - void setOrderId(const std::string& orderId); - - private: - std::string orderId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MARKET_MODEL_DESCRIBERATEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MARKET_MODEL_DESCRIBECURRENTNODEINFOREQUEST_H_ +#define ALIBABACLOUD_MARKET_MODEL_DESCRIBECURRENTNODEINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Market { +namespace Model { +class ALIBABACLOUD_MARKET_EXPORT DescribeCurrentNodeInfoRequest : public RpcServiceRequest { +public: + DescribeCurrentNodeInfoRequest(); + ~DescribeCurrentNodeInfoRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string instanceId_; +}; +} // namespace Model +} // namespace Market +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MARKET_MODEL_DESCRIBECURRENTNODEINFOREQUEST_H_ diff --git a/market/include/alibabacloud/market/model/DescribeCurrentNodeInfoResult.h b/market/include/alibabacloud/market/model/DescribeCurrentNodeInfoResult.h new file mode 100644 index 000000000..bffe37315 --- /dev/null +++ b/market/include/alibabacloud/market/model/DescribeCurrentNodeInfoResult.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_MARKET_MODEL_DESCRIBECURRENTNODEINFORESULT_H_ +#define ALIBABACLOUD_MARKET_MODEL_DESCRIBECURRENTNODEINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Market + { + namespace Model + { + class ALIBABACLOUD_MARKET_EXPORT DescribeCurrentNodeInfoResult : public ServiceResult + { + public: + struct Result + { + long gmtStart; + bool needAttachment; + std::string nodeName; + std::string templateForm; + bool autoFinishNode; + long gmtFinished; + long gmtExpired; + bool allowRollbackNode; + int finalStepNo; + long nextNodeId; + std::string operatorRole; + long nodeId; + int stepNo; + long previousNodeId; + std::string nodeStatus; + long parentNodeId; + }; + + + DescribeCurrentNodeInfoResult(); + explicit DescribeCurrentNodeInfoResult(const std::string &payload); + ~DescribeCurrentNodeInfoResult(); + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MARKET_MODEL_DESCRIBECURRENTNODEINFORESULT_H_ \ No newline at end of file diff --git a/market/include/alibabacloud/market/model/DescribeDistributionProductsLinkRequest.h b/market/include/alibabacloud/market/model/DescribeDistributionProductsLinkRequest.h new file mode 100644 index 000000000..02589c4bc --- /dev/null +++ b/market/include/alibabacloud/market/model/DescribeDistributionProductsLinkRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MARKET_MODEL_DESCRIBEDISTRIBUTIONPRODUCTSLINKREQUEST_H_ +#define ALIBABACLOUD_MARKET_MODEL_DESCRIBEDISTRIBUTIONPRODUCTSLINKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Market { +namespace Model { +class ALIBABACLOUD_MARKET_EXPORT DescribeDistributionProductsLinkRequest : public RpcServiceRequest { +public: + DescribeDistributionProductsLinkRequest(); + ~DescribeDistributionProductsLinkRequest(); + std::vector getCodes() const; + void setCodes(const std::vector &codes); + +private: + std::vector codes_; +}; +} // namespace Model +} // namespace Market +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MARKET_MODEL_DESCRIBEDISTRIBUTIONPRODUCTSLINKREQUEST_H_ diff --git a/market/include/alibabacloud/market/model/DescribeCommodityResult.h b/market/include/alibabacloud/market/model/DescribeDistributionProductsLinkResult.h similarity index 58% rename from market/include/alibabacloud/market/model/DescribeCommodityResult.h rename to market/include/alibabacloud/market/model/DescribeDistributionProductsLinkResult.h index a9af92068..79f651969 100644 --- a/market/include/alibabacloud/market/model/DescribeCommodityResult.h +++ b/market/include/alibabacloud/market/model/DescribeDistributionProductsLinkResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_MARKET_MODEL_DESCRIBECOMMODITYRESULT_H_ -#define ALIBABACLOUD_MARKET_MODEL_DESCRIBECOMMODITYRESULT_H_ +#ifndef ALIBABACLOUD_MARKET_MODEL_DESCRIBEDISTRIBUTIONPRODUCTSLINKRESULT_H_ +#define ALIBABACLOUD_MARKET_MODEL_DESCRIBEDISTRIBUTIONPRODUCTSLINKRESULT_H_ #include #include @@ -29,32 +29,33 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_MARKET_EXPORT DescribeCommodityResult : public ServiceResult + class ALIBABACLOUD_MARKET_EXPORT DescribeDistributionProductsLinkResult : public ServiceResult { public: - struct Commodity + struct Item { - std::string commodityId; - std::string commoditySpecs; - std::string properties; - std::string applicationId; + std::string code; + std::string url; + std::string name; }; - DescribeCommodityResult(); - explicit DescribeCommodityResult(const std::string &payload); - ~DescribeCommodityResult(); - Commodity getCommodity()const; + DescribeDistributionProductsLinkResult(); + explicit DescribeDistributionProductsLinkResult(const std::string &payload); + ~DescribeDistributionProductsLinkResult(); + long getTotalCount()const; bool getSuccess()const; + std::vector getResult()const; protected: void parse(const std::string &payload); private: - Commodity commodity_; + long totalCount_; bool success_; + std::vector result_; }; } } } -#endif // !ALIBABACLOUD_MARKET_MODEL_DESCRIBECOMMODITYRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_MARKET_MODEL_DESCRIBEDISTRIBUTIONPRODUCTSLINKRESULT_H_ \ No newline at end of file diff --git a/market/include/alibabacloud/market/model/DescribeDistributionProductsRequest.h b/market/include/alibabacloud/market/model/DescribeDistributionProductsRequest.h new file mode 100644 index 000000000..b97accd88 --- /dev/null +++ b/market/include/alibabacloud/market/model/DescribeDistributionProductsRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_MARKET_MODEL_DESCRIBEDISTRIBUTIONPRODUCTSREQUEST_H_ +#define ALIBABACLOUD_MARKET_MODEL_DESCRIBEDISTRIBUTIONPRODUCTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Market { +namespace Model { +class ALIBABACLOUD_MARKET_EXPORT DescribeDistributionProductsRequest : public RpcServiceRequest { +public: + struct Filter { + std::string value; + std::string key; + }; + DescribeDistributionProductsRequest(); + ~DescribeDistributionProductsRequest(); + long getPageNumber() const; + void setPageNumber(long pageNumber); + std::vector getFilter() const; + void setFilter(const std::vector &filter); + long getPageSize() const; + void setPageSize(long pageSize); + +private: + long pageNumber_; + std::vector filter_; + long pageSize_; +}; +} // namespace Model +} // namespace Market +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MARKET_MODEL_DESCRIBEDISTRIBUTIONPRODUCTSREQUEST_H_ diff --git a/market/include/alibabacloud/market/model/QueryMarketCategoriesResult.h b/market/include/alibabacloud/market/model/DescribeDistributionProductsResult.h similarity index 53% rename from market/include/alibabacloud/market/model/QueryMarketCategoriesResult.h rename to market/include/alibabacloud/market/model/DescribeDistributionProductsResult.h index 432dcaf35..cfee65fe4 100644 --- a/market/include/alibabacloud/market/model/QueryMarketCategoriesResult.h +++ b/market/include/alibabacloud/market/model/DescribeDistributionProductsResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_MARKET_MODEL_QUERYMARKETCATEGORIESRESULT_H_ -#define ALIBABACLOUD_MARKET_MODEL_QUERYMARKETCATEGORIESRESULT_H_ +#ifndef ALIBABACLOUD_MARKET_MODEL_DESCRIBEDISTRIBUTIONPRODUCTSRESULT_H_ +#define ALIBABACLOUD_MARKET_MODEL_DESCRIBEDISTRIBUTIONPRODUCTSRESULT_H_ #include #include @@ -29,30 +29,34 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_MARKET_EXPORT QueryMarketCategoriesResult : public ServiceResult + class ALIBABACLOUD_MARKET_EXPORT DescribeDistributionProductsResult : public ServiceResult { public: - struct Category + struct Result { - struct ChildCategory - { - std::string categoryCode; - std::string categoryName; - long id; - }; - std::string categoryCode; - std::string categoryName; - long id; - std::vector childCategories; + std::string submissionRadio; + std::string imageUrl; + std::string code; + std::string name; + std::string shortDescription; + std::string type; + std::string score; + std::string firstCategoryName; + std::string secondCategoryName; + std::string price; + std::string supplierName; + std::string userCommentCount; + std::string supplierUId; + std::string tradeCount; }; - QueryMarketCategoriesResult(); - explicit QueryMarketCategoriesResult(const std::string &payload); - ~QueryMarketCategoriesResult(); + DescribeDistributionProductsResult(); + explicit DescribeDistributionProductsResult(const std::string &payload); + ~DescribeDistributionProductsResult(); int getTotalCount()const; int getPageSize()const; - std::vector getCategories()const; + std::vector getResults()const; int getPageNumber()const; protected: @@ -60,11 +64,11 @@ namespace AlibabaCloud private: int totalCount_; int pageSize_; - std::vector categories_; + std::vector results_; int pageNumber_; }; } } } -#endif // !ALIBABACLOUD_MARKET_MODEL_QUERYMARKETCATEGORIESRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_MARKET_MODEL_DESCRIBEDISTRIBUTIONPRODUCTSRESULT_H_ \ No newline at end of file diff --git a/market/include/alibabacloud/market/model/DescribeInstanceRequest.h b/market/include/alibabacloud/market/model/DescribeInstanceRequest.h index e0d3b8569..08a846a62 100644 --- a/market/include/alibabacloud/market/model/DescribeInstanceRequest.h +++ b/market/include/alibabacloud/market/model/DescribeInstanceRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_MARKET_MODEL_DESCRIBEINSTANCEREQUEST_H_ -#define ALIBABACLOUD_MARKET_MODEL_DESCRIBEINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Market - { - namespace Model - { - class ALIBABACLOUD_MARKET_EXPORT DescribeInstanceRequest : public RpcServiceRequest - { - - public: - DescribeInstanceRequest(); - ~DescribeInstanceRequest(); - - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getOrderType()const; - void setOrderType(const std::string& orderType); - - private: - long ownerId_; - std::string instanceId_; - std::string orderType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MARKET_MODEL_DESCRIBEINSTANCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MARKET_MODEL_DESCRIBEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_MARKET_MODEL_DESCRIBEINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Market { +namespace Model { +class ALIBABACLOUD_MARKET_EXPORT DescribeInstanceRequest : public RpcServiceRequest { +public: + DescribeInstanceRequest(); + ~DescribeInstanceRequest(); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getOrderType() const; + void setOrderType(const std::string &orderType); + +private: + long ownerId_; + std::string instanceId_; + std::string orderType_; +}; +} // namespace Model +} // namespace Market +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MARKET_MODEL_DESCRIBEINSTANCEREQUEST_H_ diff --git a/market/include/alibabacloud/market/model/DescribeInstanceResult.h b/market/include/alibabacloud/market/model/DescribeInstanceResult.h index d5d0b29fd..7f0664003 100644 --- a/market/include/alibabacloud/market/model/DescribeInstanceResult.h +++ b/market/include/alibabacloud/market/model/DescribeInstanceResult.h @@ -45,16 +45,16 @@ namespace AlibabaCloud std::string type; std::string min; std::string max; - std::string value; std::string displayName; + std::string value; std::string step; std::string remark; }; std::vector propertyValues; std::string key; std::string displayUnit; - std::string name; std::string showType; + std::string name; }; std::string id; std::vector properties; @@ -69,21 +69,22 @@ namespace AlibabaCloud std::string getStatus()const; std::string getProductName()const; long getInstanceId()const; - std::string getProductCode()const; long getEndOn()const; + std::string getProductCode()const; std::vector getModules()const; RelationalData getRelationalData()const; - std::string getProductType()const; std::string getAppJson()const; + std::string getProductType()const; long getOrderId()const; std::string getConstraints()const; std::string getExtendJson()const; - std::string getSupplierName()const; - std::string getComponentJson()const; + std::string getAutoRenewal()const; bool getIsTrial()const; + std::string getComponentJson()const; + std::string getSupplierName()const; std::string getProductSkuCode()const; - long getCreatedOn()const; std::string getHostJson()const; + long getCreatedOn()const; long getBeganOn()const; protected: @@ -92,21 +93,22 @@ namespace AlibabaCloud std::string status_; std::string productName_; long instanceId_; - std::string productCode_; long endOn_; + std::string productCode_; std::vector modules_; RelationalData relationalData_; - std::string productType_; std::string appJson_; + std::string productType_; long orderId_; std::string constraints_; std::string extendJson_; - std::string supplierName_; - std::string componentJson_; + std::string autoRenewal_; bool isTrial_; + std::string componentJson_; + std::string supplierName_; std::string productSkuCode_; - long createdOn_; std::string hostJson_; + long createdOn_; long beganOn_; }; diff --git a/market/include/alibabacloud/market/model/DescribeInstancesRequest.h b/market/include/alibabacloud/market/model/DescribeInstancesRequest.h index 46a43b588..20c7e5021 100644 --- a/market/include/alibabacloud/market/model/DescribeInstancesRequest.h +++ b/market/include/alibabacloud/market/model/DescribeInstancesRequest.h @@ -1,54 +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_MARKET_MODEL_DESCRIBEINSTANCESREQUEST_H_ -#define ALIBABACLOUD_MARKET_MODEL_DESCRIBEINSTANCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Market - { - namespace Model - { - class ALIBABACLOUD_MARKET_EXPORT DescribeInstancesRequest : public RpcServiceRequest - { - - public: - DescribeInstancesRequest(); - ~DescribeInstancesRequest(); - - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getProductType()const; - void setProductType(const std::string& productType); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - int pageNumber_; - std::string productType_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MARKET_MODEL_DESCRIBEINSTANCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MARKET_MODEL_DESCRIBEINSTANCESREQUEST_H_ +#define ALIBABACLOUD_MARKET_MODEL_DESCRIBEINSTANCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Market { +namespace Model { +class ALIBABACLOUD_MARKET_EXPORT DescribeInstancesRequest : public RpcServiceRequest { +public: + DescribeInstancesRequest(); + ~DescribeInstancesRequest(); + std::string getCodes() const; + void setCodes(const std::string &codes); + std::string getExceptCodes() const; + void setExceptCodes(const std::string &exceptCodes); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getProductType() const; + void setProductType(const std::string &productType); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + std::string codes_; + std::string exceptCodes_; + int pageNumber_; + std::string productType_; + int pageSize_; +}; +} // namespace Model +} // namespace Market +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MARKET_MODEL_DESCRIBEINSTANCESREQUEST_H_ diff --git a/market/include/alibabacloud/market/model/DescribeInstancesResult.h b/market/include/alibabacloud/market/model/DescribeInstancesResult.h index 9ee8cb5ee..fefaf0a6f 100644 --- a/market/include/alibabacloud/market/model/DescribeInstancesResult.h +++ b/market/include/alibabacloud/market/model/DescribeInstancesResult.h @@ -37,18 +37,18 @@ namespace AlibabaCloud std::string status; std::string productName; long instanceId; - std::string productCode; long endOn; - std::string productType; + std::string productCode; std::string appJson; + std::string productType; long orderId; std::string idaasJson; std::string extendJson; - std::string supplierName; std::string imageJson; + std::string supplierName; std::string productSkuCode; - long createdOn; std::string hostJson; + long createdOn; std::string apiJson; long beganOn; }; diff --git a/market/include/alibabacloud/market/model/DescribeLicenseRequest.h b/market/include/alibabacloud/market/model/DescribeLicenseRequest.h index c1858ff37..d62246493 100644 --- a/market/include/alibabacloud/market/model/DescribeLicenseRequest.h +++ b/market/include/alibabacloud/market/model/DescribeLicenseRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_MARKET_MODEL_DESCRIBELICENSEREQUEST_H_ -#define ALIBABACLOUD_MARKET_MODEL_DESCRIBELICENSEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Market - { - namespace Model - { - class ALIBABACLOUD_MARKET_EXPORT DescribeLicenseRequest : public RpcServiceRequest - { - - public: - DescribeLicenseRequest(); - ~DescribeLicenseRequest(); - - std::string getLicenseCode()const; - void setLicenseCode(const std::string& licenseCode); - - private: - std::string licenseCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MARKET_MODEL_DESCRIBELICENSEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MARKET_MODEL_DESCRIBELICENSEREQUEST_H_ +#define ALIBABACLOUD_MARKET_MODEL_DESCRIBELICENSEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Market { +namespace Model { +class ALIBABACLOUD_MARKET_EXPORT DescribeLicenseRequest : public RpcServiceRequest { +public: + DescribeLicenseRequest(); + ~DescribeLicenseRequest(); + std::string getLicenseCode() const; + void setLicenseCode(const std::string &licenseCode); + +private: + std::string licenseCode_; +}; +} // namespace Model +} // namespace Market +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MARKET_MODEL_DESCRIBELICENSEREQUEST_H_ diff --git a/market/include/alibabacloud/market/model/DescribeLicenseResult.h b/market/include/alibabacloud/market/model/DescribeLicenseResult.h index 5ad01a8b1..42e3ca3bf 100644 --- a/market/include/alibabacloud/market/model/DescribeLicenseResult.h +++ b/market/include/alibabacloud/market/model/DescribeLicenseResult.h @@ -48,13 +48,13 @@ namespace AlibabaCloud }; std::string licenseCode; std::string productName; - std::string instanceId; std::string activateTime; - std::string productCode; + std::string instanceId; std::string supplierName; + std::string productCode; std::string licenseStatus; - std::string createTime; std::string expiredTime; + std::string createTime; std::vector extendArray; ExtendInfo extendInfo; std::string productSkuId; diff --git a/market/include/alibabacloud/market/model/DescribeOrderRequest.h b/market/include/alibabacloud/market/model/DescribeOrderRequest.h index d9a2f3164..3069ce0f4 100644 --- a/market/include/alibabacloud/market/model/DescribeOrderRequest.h +++ b/market/include/alibabacloud/market/model/DescribeOrderRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_MARKET_MODEL_DESCRIBEORDERREQUEST_H_ -#define ALIBABACLOUD_MARKET_MODEL_DESCRIBEORDERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Market - { - namespace Model - { - class ALIBABACLOUD_MARKET_EXPORT DescribeOrderRequest : public RpcServiceRequest - { - - public: - DescribeOrderRequest(); - ~DescribeOrderRequest(); - - std::string getOrderId()const; - void setOrderId(const std::string& orderId); - - private: - std::string orderId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MARKET_MODEL_DESCRIBEORDERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MARKET_MODEL_DESCRIBEORDERREQUEST_H_ +#define ALIBABACLOUD_MARKET_MODEL_DESCRIBEORDERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Market { +namespace Model { +class ALIBABACLOUD_MARKET_EXPORT DescribeOrderRequest : public RpcServiceRequest { +public: + DescribeOrderRequest(); + ~DescribeOrderRequest(); + std::string getOrderId() const; + void setOrderId(const std::string &orderId); + +private: + std::string orderId_; +}; +} // namespace Model +} // namespace Market +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MARKET_MODEL_DESCRIBEORDERREQUEST_H_ diff --git a/market/include/alibabacloud/market/model/DescribeOrderResult.h b/market/include/alibabacloud/market/model/DescribeOrderResult.h index 3e04a6765..e35097a4e 100644 --- a/market/include/alibabacloud/market/model/DescribeOrderResult.h +++ b/market/include/alibabacloud/market/model/DescribeOrderResult.h @@ -38,10 +38,10 @@ namespace AlibabaCloud explicit DescribeOrderResult(const std::string &payload); ~DescribeOrderResult(); long getPaidOn()const; - std::string getPeriodType()const; float getCouponPrice()const; - std::string getPayStatus()const; + std::string getPeriodType()const; float getOriginalPrice()const; + std::string getPayStatus()const; std::string getProductName()const; std::string getProductCode()const; std::string getSupplierCompanyName()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud std::string getOrderType()const; float getTotalPrice()const; std::string getProductSkuCode()const; - long getCreatedOn()const; float getPaymentPrice()const; + long getCreatedOn()const; std::vector getInstanceIds()const; long getAccountQuantity()const; long getAliUid()const; @@ -63,10 +63,10 @@ namespace AlibabaCloud void parse(const std::string &payload); private: long paidOn_; - std::string periodType_; float couponPrice_; - std::string payStatus_; + std::string periodType_; float originalPrice_; + std::string payStatus_; std::string productName_; std::string productCode_; std::string supplierCompanyName_; @@ -78,8 +78,8 @@ namespace AlibabaCloud std::string orderType_; float totalPrice_; std::string productSkuCode_; - long createdOn_; float paymentPrice_; + long createdOn_; std::vector instanceIds_; long accountQuantity_; long aliUid_; diff --git a/market/include/alibabacloud/market/model/DescribePriceRequest.h b/market/include/alibabacloud/market/model/DescribePriceRequest.h index 209713a1c..9beae4a00 100644 --- a/market/include/alibabacloud/market/model/DescribePriceRequest.h +++ b/market/include/alibabacloud/market/model/DescribePriceRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_MARKET_MODEL_DESCRIBEPRICEREQUEST_H_ -#define ALIBABACLOUD_MARKET_MODEL_DESCRIBEPRICEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Market - { - namespace Model - { - class ALIBABACLOUD_MARKET_EXPORT DescribePriceRequest : public RpcServiceRequest - { - - public: - DescribePriceRequest(); - ~DescribePriceRequest(); - - std::string getCommodity()const; - void setCommodity(const std::string& commodity); - std::string getOrderType()const; - void setOrderType(const std::string& orderType); - - private: - std::string commodity_; - std::string orderType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MARKET_MODEL_DESCRIBEPRICEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MARKET_MODEL_DESCRIBEPRICEREQUEST_H_ +#define ALIBABACLOUD_MARKET_MODEL_DESCRIBEPRICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Market { +namespace Model { +class ALIBABACLOUD_MARKET_EXPORT DescribePriceRequest : public RpcServiceRequest { +public: + DescribePriceRequest(); + ~DescribePriceRequest(); + std::string getCommodity() const; + void setCommodity(const std::string &commodity); + std::string getOrderType() const; + void setOrderType(const std::string &orderType); + +private: + std::string commodity_; + std::string orderType_; +}; +} // namespace Model +} // namespace Market +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MARKET_MODEL_DESCRIBEPRICEREQUEST_H_ diff --git a/market/include/alibabacloud/market/model/DescribePriceResult.h b/market/include/alibabacloud/market/model/DescribePriceResult.h index bd162f61c..ff17c7589 100644 --- a/market/include/alibabacloud/market/model/DescribePriceResult.h +++ b/market/include/alibabacloud/market/model/DescribePriceResult.h @@ -56,8 +56,8 @@ namespace AlibabaCloud float getOriginalPrice()const; std::string getProductCode()const; int getDuration()const; - float getTradePrice()const; bool getCuxiao()const; + float getTradePrice()const; std::string getCycle()const; std::string getInfoTitle()const; std::vector getPromotionRules()const; @@ -73,8 +73,8 @@ namespace AlibabaCloud float originalPrice_; std::string productCode_; int duration_; - float tradePrice_; bool cuxiao_; + float tradePrice_; std::string cycle_; std::string infoTitle_; std::vector promotionRules_; diff --git a/market/include/alibabacloud/market/model/DescribeProductRequest.h b/market/include/alibabacloud/market/model/DescribeProductRequest.h index 5f8a0c869..6ab63c5db 100644 --- a/market/include/alibabacloud/market/model/DescribeProductRequest.h +++ b/market/include/alibabacloud/market/model/DescribeProductRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_MARKET_MODEL_DESCRIBEPRODUCTREQUEST_H_ -#define ALIBABACLOUD_MARKET_MODEL_DESCRIBEPRODUCTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Market - { - namespace Model - { - class ALIBABACLOUD_MARKET_EXPORT DescribeProductRequest : public RpcServiceRequest - { - - public: - DescribeProductRequest(); - ~DescribeProductRequest(); - - std::string getCode()const; - void setCode(const std::string& code); - bool getQueryDraft()const; - void setQueryDraft(bool queryDraft); - std::string getAliUid()const; - void setAliUid(const std::string& aliUid); - - private: - std::string code_; - bool queryDraft_; - std::string aliUid_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MARKET_MODEL_DESCRIBEPRODUCTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MARKET_MODEL_DESCRIBEPRODUCTREQUEST_H_ +#define ALIBABACLOUD_MARKET_MODEL_DESCRIBEPRODUCTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Market { +namespace Model { +class ALIBABACLOUD_MARKET_EXPORT DescribeProductRequest : public RpcServiceRequest { +public: + DescribeProductRequest(); + ~DescribeProductRequest(); + std::string getCode() const; + void setCode(const std::string &code); + bool getQueryDraft() const; + void setQueryDraft(bool queryDraft); + std::string getAliUid() const; + void setAliUid(const std::string &aliUid); + +private: + std::string code_; + bool queryDraft_; + std::string aliUid_; +}; +} // namespace Model +} // namespace Market +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MARKET_MODEL_DESCRIBEPRODUCTREQUEST_H_ diff --git a/market/include/alibabacloud/market/model/DescribeProductResult.h b/market/include/alibabacloud/market/model/DescribeProductResult.h index 23fd1b0a9..85e944f0e 100644 --- a/market/include/alibabacloud/market/model/DescribeProductResult.h +++ b/market/include/alibabacloud/market/model/DescribeProductResult.h @@ -41,8 +41,8 @@ namespace AlibabaCloud }; std::vector wangWangs; std::vector telephones; - long id; std::string emails; + long id; std::string name; }; struct ProductSku @@ -61,16 +61,16 @@ namespace AlibabaCloud std::string type; std::string min; std::string max; - std::string value; std::string displayName; + std::string value; std::string step; std::string remark; }; std::vector propertyValues; std::string key; std::string displayUnit; - std::string name; std::string showType; + std::string name; }; std::string id; std::vector properties; @@ -89,8 +89,8 @@ namespace AlibabaCloud { int order; std::string type; - std::string values; std::string label; + std::string values; std::string key; }; @@ -98,8 +98,8 @@ namespace AlibabaCloud DescribeProductResult(); explicit DescribeProductResult(const std::string &payload); ~DescribeProductResult(); - std::string getStatus()const; long getFrontCategoryId()const; + std::string getStatus()const; std::string getDescription()const; ShopInfo getShopInfo()const; std::vector getProductSkus()const; @@ -107,8 +107,8 @@ namespace AlibabaCloud long getGmtModified()const; long getGmtCreated()const; std::string getCode()const; - std::string getName()const; std::string getShortDescription()const; + std::string getName()const; long getSupplierPk()const; std::string getType()const; float getScore()const; @@ -121,8 +121,8 @@ namespace AlibabaCloud protected: void parse(const std::string &payload); private: - std::string status_; long frontCategoryId_; + std::string status_; std::string description_; ShopInfo shopInfo_; std::vector productSkus_; @@ -130,8 +130,8 @@ namespace AlibabaCloud long gmtModified_; long gmtCreated_; std::string code_; - std::string name_; std::string shortDescription_; + std::string name_; long supplierPk_; std::string type_; float score_; diff --git a/market/include/alibabacloud/market/model/DescribeProductsRequest.h b/market/include/alibabacloud/market/model/DescribeProductsRequest.h index 0a696d1cd..a8f02afc5 100644 --- a/market/include/alibabacloud/market/model/DescribeProductsRequest.h +++ b/market/include/alibabacloud/market/model/DescribeProductsRequest.h @@ -1,63 +1,55 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_MARKET_MODEL_DESCRIBEPRODUCTSREQUEST_H_ -#define ALIBABACLOUD_MARKET_MODEL_DESCRIBEPRODUCTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Market - { - namespace Model - { - class ALIBABACLOUD_MARKET_EXPORT DescribeProductsRequest : public RpcServiceRequest - { - public: - struct Filter - { - std::string value; - std::string key; - }; - - public: - DescribeProductsRequest(); - ~DescribeProductsRequest(); - - std::vector getFilter()const; - void setFilter(const std::vector& filter); - std::string getSearchTerm()const; - void setSearchTerm(const std::string& searchTerm); - int getPageSize()const; - void setPageSize(int pageSize); - int getPageNumber()const; - void setPageNumber(int pageNumber); - - private: - std::vector filter_; - std::string searchTerm_; - int pageSize_; - int pageNumber_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MARKET_MODEL_DESCRIBEPRODUCTSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MARKET_MODEL_DESCRIBEPRODUCTSREQUEST_H_ +#define ALIBABACLOUD_MARKET_MODEL_DESCRIBEPRODUCTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Market { +namespace Model { +class ALIBABACLOUD_MARKET_EXPORT DescribeProductsRequest : public RpcServiceRequest { +public: + struct Filter { + std::string value; + std::string key; + }; + DescribeProductsRequest(); + ~DescribeProductsRequest(); + std::string getSearchTerm() const; + void setSearchTerm(const std::string &searchTerm); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::vector getFilter() const; + void setFilter(const std::vector &filter); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + std::string searchTerm_; + int pageNumber_; + std::vector filter_; + int pageSize_; +}; +} // namespace Model +} // namespace Market +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MARKET_MODEL_DESCRIBEPRODUCTSREQUEST_H_ diff --git a/market/include/alibabacloud/market/model/DescribeProductsResult.h b/market/include/alibabacloud/market/model/DescribeProductsResult.h index 78e1a503a..495f4363d 100644 --- a/market/include/alibabacloud/market/model/DescribeProductsResult.h +++ b/market/include/alibabacloud/market/model/DescribeProductsResult.h @@ -37,14 +37,15 @@ namespace AlibabaCloud long categoryId; std::string warrantyDate; std::string imageUrl; - std::string targetUrl; std::string operationSystem; std::string deliveryDate; + std::string targetUrl; std::string code; - std::string name; + std::string priceInfo; std::string shortDescription; - long supplierId; + std::string name; std::string deliveryWay; + long supplierId; std::string score; std::string supplierName; std::string suggestedPrice; diff --git a/market/include/alibabacloud/market/model/DescribeProjectAttachmentsRequest.h b/market/include/alibabacloud/market/model/DescribeProjectAttachmentsRequest.h new file mode 100644 index 000000000..75ba143aa --- /dev/null +++ b/market/include/alibabacloud/market/model/DescribeProjectAttachmentsRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MARKET_MODEL_DESCRIBEPROJECTATTACHMENTSREQUEST_H_ +#define ALIBABACLOUD_MARKET_MODEL_DESCRIBEPROJECTATTACHMENTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Market { +namespace Model { +class ALIBABACLOUD_MARKET_EXPORT DescribeProjectAttachmentsRequest : public RpcServiceRequest { +public: + DescribeProjectAttachmentsRequest(); + ~DescribeProjectAttachmentsRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string instanceId_; +}; +} // namespace Model +} // namespace Market +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MARKET_MODEL_DESCRIBEPROJECTATTACHMENTSREQUEST_H_ diff --git a/market/include/alibabacloud/market/model/DescribeProjectAttachmentsResult.h b/market/include/alibabacloud/market/model/DescribeProjectAttachmentsResult.h new file mode 100644 index 000000000..6cdd43ef8 --- /dev/null +++ b/market/include/alibabacloud/market/model/DescribeProjectAttachmentsResult.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_MARKET_MODEL_DESCRIBEPROJECTATTACHMENTSRESULT_H_ +#define ALIBABACLOUD_MARKET_MODEL_DESCRIBEPROJECTATTACHMENTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Market + { + namespace Model + { + class ALIBABACLOUD_MARKET_EXPORT DescribeProjectAttachmentsResult : public ServiceResult + { + public: + struct ProjectAttachment + { + std::string operatorName; + std::string attachmentType; + std::string nodeName; + std::string fileName; + long fileLinkGmtExpired; + std::string fileLink; + long _operator; + std::string attachmentToken; + std::string fileSuffix; + long gmtCreate; + std::string operatorRole; + std::string content; + long nodeId; + int stepNo; + long fileSize; + }; + + + DescribeProjectAttachmentsResult(); + explicit DescribeProjectAttachmentsResult(const std::string &payload); + ~DescribeProjectAttachmentsResult(); + bool getSuccess()const; + std::vector getResult()const; + + protected: + void parse(const std::string &payload); + private: + bool success_; + std::vector result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MARKET_MODEL_DESCRIBEPROJECTATTACHMENTSRESULT_H_ \ No newline at end of file diff --git a/market/include/alibabacloud/market/model/DeleteCommodityRequest.h b/market/include/alibabacloud/market/model/DescribeProjectInfoRequest.h similarity index 52% rename from market/include/alibabacloud/market/model/DeleteCommodityRequest.h rename to market/include/alibabacloud/market/model/DescribeProjectInfoRequest.h index b162eb9e7..e20e0d2ba 100644 --- a/market/include/alibabacloud/market/model/DeleteCommodityRequest.h +++ b/market/include/alibabacloud/market/model/DescribeProjectInfoRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_MARKET_MODEL_DELETECOMMODITYREQUEST_H_ -#define ALIBABACLOUD_MARKET_MODEL_DELETECOMMODITYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Market - { - namespace Model - { - class ALIBABACLOUD_MARKET_EXPORT DeleteCommodityRequest : public RpcServiceRequest - { - - public: - DeleteCommodityRequest(); - ~DeleteCommodityRequest(); - - std::string getCommodityId()const; - void setCommodityId(const std::string& commodityId); - - private: - std::string commodityId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MARKET_MODEL_DELETECOMMODITYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MARKET_MODEL_DESCRIBEPROJECTINFOREQUEST_H_ +#define ALIBABACLOUD_MARKET_MODEL_DESCRIBEPROJECTINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Market { +namespace Model { +class ALIBABACLOUD_MARKET_EXPORT DescribeProjectInfoRequest : public RpcServiceRequest { +public: + DescribeProjectInfoRequest(); + ~DescribeProjectInfoRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string instanceId_; +}; +} // namespace Model +} // namespace Market +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MARKET_MODEL_DESCRIBEPROJECTINFOREQUEST_H_ diff --git a/market/include/alibabacloud/market/model/DescribeCommoditiesResult.h b/market/include/alibabacloud/market/model/DescribeProjectInfoResult.h similarity index 53% rename from market/include/alibabacloud/market/model/DescribeCommoditiesResult.h rename to market/include/alibabacloud/market/model/DescribeProjectInfoResult.h index 58a893975..d9716f907 100644 --- a/market/include/alibabacloud/market/model/DescribeCommoditiesResult.h +++ b/market/include/alibabacloud/market/model/DescribeProjectInfoResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_MARKET_MODEL_DESCRIBECOMMODITIESRESULT_H_ -#define ALIBABACLOUD_MARKET_MODEL_DESCRIBECOMMODITIESRESULT_H_ +#ifndef ALIBABACLOUD_MARKET_MODEL_DESCRIBEPROJECTINFORESULT_H_ +#define ALIBABACLOUD_MARKET_MODEL_DESCRIBEPROJECTINFORESULT_H_ #include #include @@ -29,42 +29,45 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_MARKET_EXPORT DescribeCommoditiesResult : public ServiceResult + class ALIBABACLOUD_MARKET_EXPORT DescribeProjectInfoResult : public ServiceResult { public: - struct Data + struct Result { - struct Pageable - { - int pageSize; - int pageNumber; - }; - struct Commodity - { - std::string commodityId; - std::string properties; - std::string applicationId; - }; - long totalCount; - Pageable pageable; - std::vector commodities; + std::string productName; + std::string instanceId; + std::string productCode; + long gmtFinished; + int currentStepNo; + std::string templateType; + long orderId; + long gmtExpired; + std::string projectStatus; + long customerAliUid; + long gmtCreate; + int finalStepNo; + long supplierAliUid; + std::string finishType; + std::string productSkuCode; + std::string productSkuName; + long templateId; }; - DescribeCommoditiesResult(); - explicit DescribeCommoditiesResult(const std::string &payload); - ~DescribeCommoditiesResult(); - Data getData()const; + DescribeProjectInfoResult(); + explicit DescribeProjectInfoResult(const std::string &payload); + ~DescribeProjectInfoResult(); bool getSuccess()const; + Result getResult()const; protected: void parse(const std::string &payload); private: - Data data_; bool success_; + Result result_; }; } } } -#endif // !ALIBABACLOUD_MARKET_MODEL_DESCRIBECOMMODITIESRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_MARKET_MODEL_DESCRIBEPROJECTINFORESULT_H_ \ No newline at end of file diff --git a/market/include/alibabacloud/market/model/DescribeProjectMessagesRequest.h b/market/include/alibabacloud/market/model/DescribeProjectMessagesRequest.h new file mode 100644 index 000000000..b12f6709c --- /dev/null +++ b/market/include/alibabacloud/market/model/DescribeProjectMessagesRequest.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_MARKET_MODEL_DESCRIBEPROJECTMESSAGESREQUEST_H_ +#define ALIBABACLOUD_MARKET_MODEL_DESCRIBEPROJECTMESSAGESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Market { +namespace Model { +class ALIBABACLOUD_MARKET_EXPORT DescribeProjectMessagesRequest : public RpcServiceRequest { +public: + DescribeProjectMessagesRequest(); + ~DescribeProjectMessagesRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + int getPageIndex() const; + void setPageIndex(int pageIndex); + +private: + std::string instanceId_; + int pageIndex_; +}; +} // namespace Model +} // namespace Market +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MARKET_MODEL_DESCRIBEPROJECTMESSAGESREQUEST_H_ diff --git a/market/include/alibabacloud/market/model/DescribeProjectMessagesResult.h b/market/include/alibabacloud/market/model/DescribeProjectMessagesResult.h new file mode 100644 index 000000000..e856ec736 --- /dev/null +++ b/market/include/alibabacloud/market/model/DescribeProjectMessagesResult.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_MARKET_MODEL_DESCRIBEPROJECTMESSAGESRESULT_H_ +#define ALIBABACLOUD_MARKET_MODEL_DESCRIBEPROJECTMESSAGESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Market + { + namespace Model + { + class ALIBABACLOUD_MARKET_EXPORT DescribeProjectMessagesResult : public ServiceResult + { + public: + struct ProjectMessage + { + long gmtCreate; + std::string operatorName; + std::string operatorRole; + std::string content; + long _operator; + }; + + + DescribeProjectMessagesResult(); + explicit DescribeProjectMessagesResult(const std::string &payload); + ~DescribeProjectMessagesResult(); + long getTotalCount()const; + bool getSuccess()const; + std::vector getResult()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + bool success_; + std::vector result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MARKET_MODEL_DESCRIBEPROJECTMESSAGESRESULT_H_ \ No newline at end of file diff --git a/market/include/alibabacloud/market/model/DescribeCommodityRequest.h b/market/include/alibabacloud/market/model/DescribeProjectNodesRequest.h similarity index 52% rename from market/include/alibabacloud/market/model/DescribeCommodityRequest.h rename to market/include/alibabacloud/market/model/DescribeProjectNodesRequest.h index 3de0d860a..57dd62987 100644 --- a/market/include/alibabacloud/market/model/DescribeCommodityRequest.h +++ b/market/include/alibabacloud/market/model/DescribeProjectNodesRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_MARKET_MODEL_DESCRIBECOMMODITYREQUEST_H_ -#define ALIBABACLOUD_MARKET_MODEL_DESCRIBECOMMODITYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Market - { - namespace Model - { - class ALIBABACLOUD_MARKET_EXPORT DescribeCommodityRequest : public RpcServiceRequest - { - - public: - DescribeCommodityRequest(); - ~DescribeCommodityRequest(); - - std::string getCommodityId()const; - void setCommodityId(const std::string& commodityId); - - private: - std::string commodityId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MARKET_MODEL_DESCRIBECOMMODITYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MARKET_MODEL_DESCRIBEPROJECTNODESREQUEST_H_ +#define ALIBABACLOUD_MARKET_MODEL_DESCRIBEPROJECTNODESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Market { +namespace Model { +class ALIBABACLOUD_MARKET_EXPORT DescribeProjectNodesRequest : public RpcServiceRequest { +public: + DescribeProjectNodesRequest(); + ~DescribeProjectNodesRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string instanceId_; +}; +} // namespace Model +} // namespace Market +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MARKET_MODEL_DESCRIBEPROJECTNODESREQUEST_H_ diff --git a/market/include/alibabacloud/market/model/DescribeProjectNodesResult.h b/market/include/alibabacloud/market/model/DescribeProjectNodesResult.h new file mode 100644 index 000000000..1b44e3eb9 --- /dev/null +++ b/market/include/alibabacloud/market/model/DescribeProjectNodesResult.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_MARKET_MODEL_DESCRIBEPROJECTNODESRESULT_H_ +#define ALIBABACLOUD_MARKET_MODEL_DESCRIBEPROJECTNODESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Market + { + namespace Model + { + class ALIBABACLOUD_MARKET_EXPORT DescribeProjectNodesResult : public ServiceResult + { + public: + struct ProjectNode + { + long gmtStart; + bool needAttachment; + std::string nodeName; + std::string templateForm; + bool autoFinishNode; + long gmtFinished; + long gmtExpired; + bool allowRollbackNode; + int finalStepNo; + long nextNodeId; + std::string operatorRole; + long nodeId; + int stepNo; + long previousNodeId; + std::string nodeStatus; + long parentNodeId; + }; + + + DescribeProjectNodesResult(); + explicit DescribeProjectNodesResult(const std::string &payload); + ~DescribeProjectNodesResult(); + bool getSuccess()const; + std::vector getResult()const; + + protected: + void parse(const std::string &payload); + private: + bool success_; + std::vector result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MARKET_MODEL_DESCRIBEPROJECTNODESRESULT_H_ \ No newline at end of file diff --git a/market/include/alibabacloud/market/model/DescribeProjectOperateLogsRequest.h b/market/include/alibabacloud/market/model/DescribeProjectOperateLogsRequest.h new file mode 100644 index 000000000..d3871554d --- /dev/null +++ b/market/include/alibabacloud/market/model/DescribeProjectOperateLogsRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MARKET_MODEL_DESCRIBEPROJECTOPERATELOGSREQUEST_H_ +#define ALIBABACLOUD_MARKET_MODEL_DESCRIBEPROJECTOPERATELOGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Market { +namespace Model { +class ALIBABACLOUD_MARKET_EXPORT DescribeProjectOperateLogsRequest : public RpcServiceRequest { +public: + DescribeProjectOperateLogsRequest(); + ~DescribeProjectOperateLogsRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string instanceId_; +}; +} // namespace Model +} // namespace Market +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MARKET_MODEL_DESCRIBEPROJECTOPERATELOGSREQUEST_H_ diff --git a/market/include/alibabacloud/market/model/UploadCommodityFileResult.h b/market/include/alibabacloud/market/model/DescribeProjectOperateLogsResult.h similarity index 58% rename from market/include/alibabacloud/market/model/UploadCommodityFileResult.h rename to market/include/alibabacloud/market/model/DescribeProjectOperateLogsResult.h index 4a8d651cd..2f21e5f0b 100644 --- a/market/include/alibabacloud/market/model/UploadCommodityFileResult.h +++ b/market/include/alibabacloud/market/model/DescribeProjectOperateLogsResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_MARKET_MODEL_UPLOADCOMMODITYFILERESULT_H_ -#define ALIBABACLOUD_MARKET_MODEL_UPLOADCOMMODITYFILERESULT_H_ +#ifndef ALIBABACLOUD_MARKET_MODEL_DESCRIBEPROJECTOPERATELOGSRESULT_H_ +#define ALIBABACLOUD_MARKET_MODEL_DESCRIBEPROJECTOPERATELOGSRESULT_H_ #include #include @@ -29,30 +29,33 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_MARKET_EXPORT UploadCommodityFileResult : public ServiceResult + class ALIBABACLOUD_MARKET_EXPORT DescribeProjectOperateLogsResult : public ServiceResult { public: - struct Data + struct ProjectMessage { - std::string resource; - std::string resourceType; + long gmtCreate; + std::string operatorName; + std::string description; + std::string operatorRole; + long _operator; }; - UploadCommodityFileResult(); - explicit UploadCommodityFileResult(const std::string &payload); - ~UploadCommodityFileResult(); - Data getData()const; + DescribeProjectOperateLogsResult(); + explicit DescribeProjectOperateLogsResult(const std::string &payload); + ~DescribeProjectOperateLogsResult(); bool getSuccess()const; + std::vector getResult()const; protected: void parse(const std::string &payload); private: - Data data_; bool success_; + std::vector result_; }; } } } -#endif // !ALIBABACLOUD_MARKET_MODEL_UPLOADCOMMODITYFILERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_MARKET_MODEL_DESCRIBEPROJECTOPERATELOGSRESULT_H_ \ No newline at end of file diff --git a/market/include/alibabacloud/market/model/DescribeRateResult.h b/market/include/alibabacloud/market/model/DescribeRateResult.h deleted file mode 100644 index d561e39bc..000000000 --- a/market/include/alibabacloud/market/model/DescribeRateResult.h +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_MARKET_MODEL_DESCRIBERATERESULT_H_ -#define ALIBABACLOUD_MARKET_MODEL_DESCRIBERATERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Market - { - namespace Model - { - class ALIBABACLOUD_MARKET_EXPORT DescribeRateResult : public ServiceResult - { - public: - - - DescribeRateResult(); - explicit DescribeRateResult(const std::string &payload); - ~DescribeRateResult(); - std::string getInstanceId()const; - std::string getExplaintion()const; - long getGmtExplaintion()const; - std::string getProductId()const; - long getGmtCreated()const; - std::string getAdditionalContent()const; - std::string getOrderId()const; - long getGmtAdditionalExplaintion()const; - std::string getScore()const; - std::string getType()const; - std::string getContent()const; - std::string getAdditionalExplaintion()const; - long getId()const; - long getGmtAdditional()const; - long getAliUid()const; - - protected: - void parse(const std::string &payload); - private: - std::string instanceId_; - std::string explaintion_; - long gmtExplaintion_; - std::string productId_; - long gmtCreated_; - std::string additionalContent_; - std::string orderId_; - long gmtAdditionalExplaintion_; - std::string score_; - std::string type_; - std::string content_; - std::string additionalExplaintion_; - long id_; - long gmtAdditional_; - long aliUid_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MARKET_MODEL_DESCRIBERATERESULT_H_ \ No newline at end of file diff --git a/market/include/alibabacloud/market/model/FinishCurrentProjectNodeRequest.h b/market/include/alibabacloud/market/model/FinishCurrentProjectNodeRequest.h new file mode 100644 index 000000000..808de12c1 --- /dev/null +++ b/market/include/alibabacloud/market/model/FinishCurrentProjectNodeRequest.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_MARKET_MODEL_FINISHCURRENTPROJECTNODEREQUEST_H_ +#define ALIBABACLOUD_MARKET_MODEL_FINISHCURRENTPROJECTNODEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Market { +namespace Model { +class ALIBABACLOUD_MARKET_EXPORT FinishCurrentProjectNodeRequest : public RpcServiceRequest { +public: + FinishCurrentProjectNodeRequest(); + ~FinishCurrentProjectNodeRequest(); + std::string getTemplateForm() const; + void setTemplateForm(const std::string &templateForm); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getRemark() const; + void setRemark(const std::string &remark); + long getNodeId() const; + void setNodeId(long nodeId); + +private: + std::string templateForm_; + std::string instanceId_; + std::string remark_; + long nodeId_; +}; +} // namespace Model +} // namespace Market +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MARKET_MODEL_FINISHCURRENTPROJECTNODEREQUEST_H_ diff --git a/market/include/alibabacloud/market/model/DeleteCommodityResult.h b/market/include/alibabacloud/market/model/FinishCurrentProjectNodeResult.h similarity index 66% rename from market/include/alibabacloud/market/model/DeleteCommodityResult.h rename to market/include/alibabacloud/market/model/FinishCurrentProjectNodeResult.h index 0e22f92e2..8bfa560c8 100644 --- a/market/include/alibabacloud/market/model/DeleteCommodityResult.h +++ b/market/include/alibabacloud/market/model/FinishCurrentProjectNodeResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_MARKET_MODEL_DELETECOMMODITYRESULT_H_ -#define ALIBABACLOUD_MARKET_MODEL_DELETECOMMODITYRESULT_H_ +#ifndef ALIBABACLOUD_MARKET_MODEL_FINISHCURRENTPROJECTNODERESULT_H_ +#define ALIBABACLOUD_MARKET_MODEL_FINISHCURRENTPROJECTNODERESULT_H_ #include #include @@ -29,23 +29,25 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_MARKET_EXPORT DeleteCommodityResult : public ServiceResult + class ALIBABACLOUD_MARKET_EXPORT FinishCurrentProjectNodeResult : public ServiceResult { public: - DeleteCommodityResult(); - explicit DeleteCommodityResult(const std::string &payload); - ~DeleteCommodityResult(); + FinishCurrentProjectNodeResult(); + explicit FinishCurrentProjectNodeResult(const std::string &payload); + ~FinishCurrentProjectNodeResult(); bool getSuccess()const; + bool getResult()const; protected: void parse(const std::string &payload); private: bool success_; + bool result_; }; } } } -#endif // !ALIBABACLOUD_MARKET_MODEL_DELETECOMMODITYRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_MARKET_MODEL_FINISHCURRENTPROJECTNODERESULT_H_ \ No newline at end of file diff --git a/market/include/alibabacloud/market/model/NotifyContractEventRequest.h b/market/include/alibabacloud/market/model/NotifyContractEventRequest.h deleted file mode 100644 index 4fb5b8c47..000000000 --- a/market/include/alibabacloud/market/model/NotifyContractEventRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_MARKET_MODEL_NOTIFYCONTRACTEVENTREQUEST_H_ -#define ALIBABACLOUD_MARKET_MODEL_NOTIFYCONTRACTEVENTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Market - { - namespace Model - { - class ALIBABACLOUD_MARKET_EXPORT NotifyContractEventRequest : public RpcServiceRequest - { - - public: - NotifyContractEventRequest(); - ~NotifyContractEventRequest(); - - std::string getEventMessage()const; - void setEventMessage(const std::string& eventMessage); - std::string getEventType()const; - void setEventType(const std::string& eventType); - - private: - std::string eventMessage_; - std::string eventType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MARKET_MODEL_NOTIFYCONTRACTEVENTREQUEST_H_ \ No newline at end of file diff --git a/market/include/alibabacloud/market/model/PauseProjectRequest.h b/market/include/alibabacloud/market/model/PauseProjectRequest.h new file mode 100644 index 000000000..977155980 --- /dev/null +++ b/market/include/alibabacloud/market/model/PauseProjectRequest.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_MARKET_MODEL_PAUSEPROJECTREQUEST_H_ +#define ALIBABACLOUD_MARKET_MODEL_PAUSEPROJECTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Market { +namespace Model { +class ALIBABACLOUD_MARKET_EXPORT PauseProjectRequest : public RpcServiceRequest { +public: + PauseProjectRequest(); + ~PauseProjectRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getRemark() const; + void setRemark(const std::string &remark); + long getNodeId() const; + void setNodeId(long nodeId); + +private: + std::string instanceId_; + std::string remark_; + long nodeId_; +}; +} // namespace Model +} // namespace Market +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MARKET_MODEL_PAUSEPROJECTREQUEST_H_ diff --git a/market/include/alibabacloud/market/model/UpdateCommodityResult.h b/market/include/alibabacloud/market/model/PauseProjectResult.h similarity index 70% rename from market/include/alibabacloud/market/model/UpdateCommodityResult.h rename to market/include/alibabacloud/market/model/PauseProjectResult.h index e413edc59..95914e5bf 100644 --- a/market/include/alibabacloud/market/model/UpdateCommodityResult.h +++ b/market/include/alibabacloud/market/model/PauseProjectResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_MARKET_MODEL_UPDATECOMMODITYRESULT_H_ -#define ALIBABACLOUD_MARKET_MODEL_UPDATECOMMODITYRESULT_H_ +#ifndef ALIBABACLOUD_MARKET_MODEL_PAUSEPROJECTRESULT_H_ +#define ALIBABACLOUD_MARKET_MODEL_PAUSEPROJECTRESULT_H_ #include #include @@ -29,23 +29,25 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_MARKET_EXPORT UpdateCommodityResult : public ServiceResult + class ALIBABACLOUD_MARKET_EXPORT PauseProjectResult : public ServiceResult { public: - UpdateCommodityResult(); - explicit UpdateCommodityResult(const std::string &payload); - ~UpdateCommodityResult(); + PauseProjectResult(); + explicit PauseProjectResult(const std::string &payload); + ~PauseProjectResult(); bool getSuccess()const; + bool getResult()const; protected: void parse(const std::string &payload); private: bool success_; + bool result_; }; } } } -#endif // !ALIBABACLOUD_MARKET_MODEL_UPDATECOMMODITYRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_MARKET_MODEL_PAUSEPROJECTRESULT_H_ \ No newline at end of file diff --git a/market/include/alibabacloud/market/model/PushMeteringDataRequest.h b/market/include/alibabacloud/market/model/PushMeteringDataRequest.h index af678f560..814bbcab4 100644 --- a/market/include/alibabacloud/market/model/PushMeteringDataRequest.h +++ b/market/include/alibabacloud/market/model/PushMeteringDataRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_MARKET_MODEL_PUSHMETERINGDATAREQUEST_H_ -#define ALIBABACLOUD_MARKET_MODEL_PUSHMETERINGDATAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Market - { - namespace Model - { - class ALIBABACLOUD_MARKET_EXPORT PushMeteringDataRequest : public RpcServiceRequest - { - - public: - PushMeteringDataRequest(); - ~PushMeteringDataRequest(); - - std::string getMetering()const; - void setMetering(const std::string& metering); - - private: - std::string metering_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MARKET_MODEL_PUSHMETERINGDATAREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MARKET_MODEL_PUSHMETERINGDATAREQUEST_H_ +#define ALIBABACLOUD_MARKET_MODEL_PUSHMETERINGDATAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Market { +namespace Model { +class ALIBABACLOUD_MARKET_EXPORT PushMeteringDataRequest : public RpcServiceRequest { +public: + PushMeteringDataRequest(); + ~PushMeteringDataRequest(); + std::string getMetering() const; + void setMetering(const std::string &metering); + +private: + std::string metering_; +}; +} // namespace Model +} // namespace Market +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MARKET_MODEL_PUSHMETERINGDATAREQUEST_H_ diff --git a/market/include/alibabacloud/market/model/QueryMarketImagesRequest.h b/market/include/alibabacloud/market/model/QueryMarketImagesRequest.h deleted file mode 100644 index 9f496fa33..000000000 --- a/market/include/alibabacloud/market/model/QueryMarketImagesRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_MARKET_MODEL_QUERYMARKETIMAGESREQUEST_H_ -#define ALIBABACLOUD_MARKET_MODEL_QUERYMARKETIMAGESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Market - { - namespace Model - { - class ALIBABACLOUD_MARKET_EXPORT QueryMarketImagesRequest : public RpcServiceRequest - { - - public: - QueryMarketImagesRequest(); - ~QueryMarketImagesRequest(); - - std::string getParam()const; - void setParam(const std::string& param); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - - private: - std::string param_; - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MARKET_MODEL_QUERYMARKETIMAGESREQUEST_H_ \ No newline at end of file diff --git a/market/include/alibabacloud/market/model/QueryMarketImagesResult.h b/market/include/alibabacloud/market/model/QueryMarketImagesResult.h deleted file mode 100644 index 3636decf1..000000000 --- a/market/include/alibabacloud/market/model/QueryMarketImagesResult.h +++ /dev/null @@ -1,130 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_MARKET_MODEL_QUERYMARKETIMAGESRESULT_H_ -#define ALIBABACLOUD_MARKET_MODEL_QUERYMARKETIMAGESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Market - { - namespace Model - { - class ALIBABACLOUD_MARKET_EXPORT QueryMarketImagesResult : public ServiceResult - { - public: - struct ImageProduct - { - struct Quota - { - long unusedQuota; - long totalQuota; - long usingQuota; - }; - struct PriceInfo - { - struct Order - { - float originalPrice; - std::string priceUnit; - float discountPrice; - std::string currency; - int period; - std::vector ruleIdSet; - float tradePrice; - }; - struct Rule - { - long ruleId; - std::string title; - std::string name; - }; - Order order; - std::vector rules; - }; - struct Image - { - struct DiskDeviceMapping - { - std::string diskType; - std::string snapshotId; - std::string format; - int size; - std::string device; - std::string importOSSBucket; - std::string importOSSObject; - }; - bool isDefault; - std::vector diskDeviceMappings; - std::string versionDescription; - std::string version; - int imageSize; - bool supportIO; - std::string imageId; - std::string region; - }; - std::string buyUrl; - std::string productName; - long userCount; - std::vector images; - int osBit; - std::string detailUrl; - std::string agreementUrl; - std::vector skuCodes; - PriceInfo priceInfo; - std::string shortDescription; - float score; - Quota quota; - std::string imageProductCode; - std::string supplierName; - bool supportIO; - std::string categoryName; - std::string pictureUrl; - std::string storeUrl; - std::string baseSystem; - long createdOn; - std::string smallPicUrl; - std::string osKind; - }; - - - QueryMarketImagesResult(); - explicit QueryMarketImagesResult(const std::string &payload); - ~QueryMarketImagesResult(); - int getTotalCount()const; - int getPageSize()const; - int getPageNumber()const; - std::vector getResult()const; - - protected: - void parse(const std::string &payload); - private: - int totalCount_; - int pageSize_; - int pageNumber_; - std::vector result_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MARKET_MODEL_QUERYMARKETIMAGESRESULT_H_ \ No newline at end of file diff --git a/market/include/alibabacloud/market/model/ResumeProjectRequest.h b/market/include/alibabacloud/market/model/ResumeProjectRequest.h new file mode 100644 index 000000000..d61031a9f --- /dev/null +++ b/market/include/alibabacloud/market/model/ResumeProjectRequest.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_MARKET_MODEL_RESUMEPROJECTREQUEST_H_ +#define ALIBABACLOUD_MARKET_MODEL_RESUMEPROJECTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Market { +namespace Model { +class ALIBABACLOUD_MARKET_EXPORT ResumeProjectRequest : public RpcServiceRequest { +public: + ResumeProjectRequest(); + ~ResumeProjectRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getRemark() const; + void setRemark(const std::string &remark); + long getNodeId() const; + void setNodeId(long nodeId); + +private: + std::string instanceId_; + std::string remark_; + long nodeId_; +}; +} // namespace Model +} // namespace Market +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MARKET_MODEL_RESUMEPROJECTREQUEST_H_ diff --git a/market/include/alibabacloud/market/model/BindImagePackageResult.h b/market/include/alibabacloud/market/model/ResumeProjectResult.h similarity index 70% rename from market/include/alibabacloud/market/model/BindImagePackageResult.h rename to market/include/alibabacloud/market/model/ResumeProjectResult.h index 39bc2aa3c..3ea2c066f 100644 --- a/market/include/alibabacloud/market/model/BindImagePackageResult.h +++ b/market/include/alibabacloud/market/model/ResumeProjectResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_MARKET_MODEL_BINDIMAGEPACKAGERESULT_H_ -#define ALIBABACLOUD_MARKET_MODEL_BINDIMAGEPACKAGERESULT_H_ +#ifndef ALIBABACLOUD_MARKET_MODEL_RESUMEPROJECTRESULT_H_ +#define ALIBABACLOUD_MARKET_MODEL_RESUMEPROJECTRESULT_H_ #include #include @@ -29,23 +29,25 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_MARKET_EXPORT BindImagePackageResult : public ServiceResult + class ALIBABACLOUD_MARKET_EXPORT ResumeProjectResult : public ServiceResult { public: - BindImagePackageResult(); - explicit BindImagePackageResult(const std::string &payload); - ~BindImagePackageResult(); + ResumeProjectResult(); + explicit ResumeProjectResult(const std::string &payload); + ~ResumeProjectResult(); bool getSuccess()const; + bool getResult()const; protected: void parse(const std::string &payload); private: bool success_; + bool result_; }; } } } -#endif // !ALIBABACLOUD_MARKET_MODEL_BINDIMAGEPACKAGERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_MARKET_MODEL_RESUMEPROJECTRESULT_H_ \ No newline at end of file diff --git a/market/include/alibabacloud/market/model/RollbackCurrentProjectNodeRequest.h b/market/include/alibabacloud/market/model/RollbackCurrentProjectNodeRequest.h new file mode 100644 index 000000000..11dd8e25c --- /dev/null +++ b/market/include/alibabacloud/market/model/RollbackCurrentProjectNodeRequest.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_MARKET_MODEL_ROLLBACKCURRENTPROJECTNODEREQUEST_H_ +#define ALIBABACLOUD_MARKET_MODEL_ROLLBACKCURRENTPROJECTNODEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Market { +namespace Model { +class ALIBABACLOUD_MARKET_EXPORT RollbackCurrentProjectNodeRequest : public RpcServiceRequest { +public: + RollbackCurrentProjectNodeRequest(); + ~RollbackCurrentProjectNodeRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getRemark() const; + void setRemark(const std::string &remark); + long getNodeId() const; + void setNodeId(long nodeId); + +private: + std::string instanceId_; + std::string remark_; + long nodeId_; +}; +} // namespace Model +} // namespace Market +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MARKET_MODEL_ROLLBACKCURRENTPROJECTNODEREQUEST_H_ diff --git a/market/include/alibabacloud/market/model/RollbackCurrentProjectNodeResult.h b/market/include/alibabacloud/market/model/RollbackCurrentProjectNodeResult.h new file mode 100644 index 000000000..dd42fb33e --- /dev/null +++ b/market/include/alibabacloud/market/model/RollbackCurrentProjectNodeResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MARKET_MODEL_ROLLBACKCURRENTPROJECTNODERESULT_H_ +#define ALIBABACLOUD_MARKET_MODEL_ROLLBACKCURRENTPROJECTNODERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Market + { + namespace Model + { + class ALIBABACLOUD_MARKET_EXPORT RollbackCurrentProjectNodeResult : public ServiceResult + { + public: + + + RollbackCurrentProjectNodeResult(); + explicit RollbackCurrentProjectNodeResult(const std::string &payload); + ~RollbackCurrentProjectNodeResult(); + bool getSuccess()const; + bool getResult()const; + + protected: + void parse(const std::string &payload); + private: + bool success_; + bool result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MARKET_MODEL_ROLLBACKCURRENTPROJECTNODERESULT_H_ \ No newline at end of file diff --git a/market/include/alibabacloud/market/model/UpdateCommodityRequest.h b/market/include/alibabacloud/market/model/UpdateCommodityRequest.h deleted file mode 100644 index 027d1c5c1..000000000 --- a/market/include/alibabacloud/market/model/UpdateCommodityRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_MARKET_MODEL_UPDATECOMMODITYREQUEST_H_ -#define ALIBABACLOUD_MARKET_MODEL_UPDATECOMMODITYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Market - { - namespace Model - { - class ALIBABACLOUD_MARKET_EXPORT UpdateCommodityRequest : public RpcServiceRequest - { - - public: - UpdateCommodityRequest(); - ~UpdateCommodityRequest(); - - std::string getCommodityId()const; - void setCommodityId(const std::string& commodityId); - std::string getContent()const; - void setContent(const std::string& content); - - private: - std::string commodityId_; - std::string content_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MARKET_MODEL_UPDATECOMMODITYREQUEST_H_ \ No newline at end of file diff --git a/market/include/alibabacloud/market/model/UploadCommodityFileRequest.h b/market/include/alibabacloud/market/model/UploadCommodityFileRequest.h deleted file mode 100644 index c373065eb..000000000 --- a/market/include/alibabacloud/market/model/UploadCommodityFileRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_MARKET_MODEL_UPLOADCOMMODITYFILEREQUEST_H_ -#define ALIBABACLOUD_MARKET_MODEL_UPLOADCOMMODITYFILEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Market - { - namespace Model - { - class ALIBABACLOUD_MARKET_EXPORT UploadCommodityFileRequest : public RpcServiceRequest - { - - public: - UploadCommodityFileRequest(); - ~UploadCommodityFileRequest(); - - std::string getFileResourceType()const; - void setFileResourceType(const std::string& fileResourceType); - std::string getFileResource()const; - void setFileResource(const std::string& fileResource); - std::string getFileContentType()const; - void setFileContentType(const std::string& fileContentType); - - private: - std::string fileResourceType_; - std::string fileResource_; - std::string fileContentType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MARKET_MODEL_UPLOADCOMMODITYFILEREQUEST_H_ \ No newline at end of file diff --git a/market/src/MarketClient.cc b/market/src/MarketClient.cc index f015e4690..203cce44b 100644 --- a/market/src/MarketClient.cc +++ b/market/src/MarketClient.cc @@ -31,21 +31,21 @@ MarketClient::MarketClient(const Credentials &credentials, const ClientConfigura RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) { auto locationClient = std::make_shared(credentials, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "market"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); } MarketClient::MarketClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) { auto locationClient = std::make_shared(credentialsProvider, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "market"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); } MarketClient::MarketClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : RpcServiceClient(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, "market"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); } MarketClient::~MarketClient() @@ -87,72 +87,36 @@ MarketClient::ActivateLicenseOutcomeCallable MarketClient::activateLicenseCallab return task->get_future(); } -MarketClient::BindImagePackageOutcome MarketClient::bindImagePackage(const BindImagePackageRequest &request) const +MarketClient::AutoRenewInstanceOutcome MarketClient::autoRenewInstance(const AutoRenewInstanceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return BindImagePackageOutcome(endpointOutcome.error()); + return AutoRenewInstanceOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return BindImagePackageOutcome(BindImagePackageResult(outcome.result())); + return AutoRenewInstanceOutcome(AutoRenewInstanceResult(outcome.result())); else - return BindImagePackageOutcome(outcome.error()); + return AutoRenewInstanceOutcome(outcome.error()); } -void MarketClient::bindImagePackageAsync(const BindImagePackageRequest& request, const BindImagePackageAsyncHandler& handler, const std::shared_ptr& context) const +void MarketClient::autoRenewInstanceAsync(const AutoRenewInstanceRequest& request, const AutoRenewInstanceAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, bindImagePackage(request), context); + handler(this, request, autoRenewInstance(request), context); }; asyncExecute(new Runnable(fn)); } -MarketClient::BindImagePackageOutcomeCallable MarketClient::bindImagePackageCallable(const BindImagePackageRequest &request) const +MarketClient::AutoRenewInstanceOutcomeCallable MarketClient::autoRenewInstanceCallable(const AutoRenewInstanceRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->bindImagePackage(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -MarketClient::CreateCommodityOutcome MarketClient::createCommodity(const CreateCommodityRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateCommodityOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateCommodityOutcome(CreateCommodityResult(outcome.result())); - else - return CreateCommodityOutcome(outcome.error()); -} - -void MarketClient::createCommodityAsync(const CreateCommodityRequest& request, const CreateCommodityAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createCommodity(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -MarketClient::CreateCommodityOutcomeCallable MarketClient::createCommodityCallable(const CreateCommodityRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createCommodity(request); + return this->autoRenewInstance(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -195,144 +159,144 @@ MarketClient::CreateOrderOutcomeCallable MarketClient::createOrderCallable(const return task->get_future(); } -MarketClient::CreateRateOutcome MarketClient::createRate(const CreateRateRequest &request) const +MarketClient::CrossAccountVerifyTokenOutcome MarketClient::crossAccountVerifyToken(const CrossAccountVerifyTokenRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateRateOutcome(endpointOutcome.error()); + return CrossAccountVerifyTokenOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateRateOutcome(CreateRateResult(outcome.result())); + return CrossAccountVerifyTokenOutcome(CrossAccountVerifyTokenResult(outcome.result())); else - return CreateRateOutcome(outcome.error()); + return CrossAccountVerifyTokenOutcome(outcome.error()); } -void MarketClient::createRateAsync(const CreateRateRequest& request, const CreateRateAsyncHandler& handler, const std::shared_ptr& context) const +void MarketClient::crossAccountVerifyTokenAsync(const CrossAccountVerifyTokenRequest& request, const CrossAccountVerifyTokenAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createRate(request), context); + handler(this, request, crossAccountVerifyToken(request), context); }; asyncExecute(new Runnable(fn)); } -MarketClient::CreateRateOutcomeCallable MarketClient::createRateCallable(const CreateRateRequest &request) const +MarketClient::CrossAccountVerifyTokenOutcomeCallable MarketClient::crossAccountVerifyTokenCallable(const CrossAccountVerifyTokenRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createRate(request); + return this->crossAccountVerifyToken(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -MarketClient::DeleteCommodityOutcome MarketClient::deleteCommodity(const DeleteCommodityRequest &request) const +MarketClient::DescribeCurrentNodeInfoOutcome MarketClient::describeCurrentNodeInfo(const DescribeCurrentNodeInfoRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DeleteCommodityOutcome(endpointOutcome.error()); + return DescribeCurrentNodeInfoOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DeleteCommodityOutcome(DeleteCommodityResult(outcome.result())); + return DescribeCurrentNodeInfoOutcome(DescribeCurrentNodeInfoResult(outcome.result())); else - return DeleteCommodityOutcome(outcome.error()); + return DescribeCurrentNodeInfoOutcome(outcome.error()); } -void MarketClient::deleteCommodityAsync(const DeleteCommodityRequest& request, const DeleteCommodityAsyncHandler& handler, const std::shared_ptr& context) const +void MarketClient::describeCurrentNodeInfoAsync(const DescribeCurrentNodeInfoRequest& request, const DescribeCurrentNodeInfoAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, deleteCommodity(request), context); + handler(this, request, describeCurrentNodeInfo(request), context); }; asyncExecute(new Runnable(fn)); } -MarketClient::DeleteCommodityOutcomeCallable MarketClient::deleteCommodityCallable(const DeleteCommodityRequest &request) const +MarketClient::DescribeCurrentNodeInfoOutcomeCallable MarketClient::describeCurrentNodeInfoCallable(const DescribeCurrentNodeInfoRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->deleteCommodity(request); + return this->describeCurrentNodeInfo(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -MarketClient::DescribeCommoditiesOutcome MarketClient::describeCommodities(const DescribeCommoditiesRequest &request) const +MarketClient::DescribeDistributionProductsOutcome MarketClient::describeDistributionProducts(const DescribeDistributionProductsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeCommoditiesOutcome(endpointOutcome.error()); + return DescribeDistributionProductsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeCommoditiesOutcome(DescribeCommoditiesResult(outcome.result())); + return DescribeDistributionProductsOutcome(DescribeDistributionProductsResult(outcome.result())); else - return DescribeCommoditiesOutcome(outcome.error()); + return DescribeDistributionProductsOutcome(outcome.error()); } -void MarketClient::describeCommoditiesAsync(const DescribeCommoditiesRequest& request, const DescribeCommoditiesAsyncHandler& handler, const std::shared_ptr& context) const +void MarketClient::describeDistributionProductsAsync(const DescribeDistributionProductsRequest& request, const DescribeDistributionProductsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeCommodities(request), context); + handler(this, request, describeDistributionProducts(request), context); }; asyncExecute(new Runnable(fn)); } -MarketClient::DescribeCommoditiesOutcomeCallable MarketClient::describeCommoditiesCallable(const DescribeCommoditiesRequest &request) const +MarketClient::DescribeDistributionProductsOutcomeCallable MarketClient::describeDistributionProductsCallable(const DescribeDistributionProductsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeCommodities(request); + return this->describeDistributionProducts(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -MarketClient::DescribeCommodityOutcome MarketClient::describeCommodity(const DescribeCommodityRequest &request) const +MarketClient::DescribeDistributionProductsLinkOutcome MarketClient::describeDistributionProductsLink(const DescribeDistributionProductsLinkRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeCommodityOutcome(endpointOutcome.error()); + return DescribeDistributionProductsLinkOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeCommodityOutcome(DescribeCommodityResult(outcome.result())); + return DescribeDistributionProductsLinkOutcome(DescribeDistributionProductsLinkResult(outcome.result())); else - return DescribeCommodityOutcome(outcome.error()); + return DescribeDistributionProductsLinkOutcome(outcome.error()); } -void MarketClient::describeCommodityAsync(const DescribeCommodityRequest& request, const DescribeCommodityAsyncHandler& handler, const std::shared_ptr& context) const +void MarketClient::describeDistributionProductsLinkAsync(const DescribeDistributionProductsLinkRequest& request, const DescribeDistributionProductsLinkAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeCommodity(request), context); + handler(this, request, describeDistributionProductsLink(request), context); }; asyncExecute(new Runnable(fn)); } -MarketClient::DescribeCommodityOutcomeCallable MarketClient::describeCommodityCallable(const DescribeCommodityRequest &request) const +MarketClient::DescribeDistributionProductsLinkOutcomeCallable MarketClient::describeDistributionProductsLinkCallable(const DescribeDistributionProductsLinkRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeCommodity(request); + return this->describeDistributionProductsLink(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -591,72 +555,252 @@ MarketClient::DescribeProductsOutcomeCallable MarketClient::describeProductsCall return task->get_future(); } -MarketClient::DescribeRateOutcome MarketClient::describeRate(const DescribeRateRequest &request) const +MarketClient::DescribeProjectAttachmentsOutcome MarketClient::describeProjectAttachments(const DescribeProjectAttachmentsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeRateOutcome(endpointOutcome.error()); + return DescribeProjectAttachmentsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeRateOutcome(DescribeRateResult(outcome.result())); + return DescribeProjectAttachmentsOutcome(DescribeProjectAttachmentsResult(outcome.result())); else - return DescribeRateOutcome(outcome.error()); + return DescribeProjectAttachmentsOutcome(outcome.error()); } -void MarketClient::describeRateAsync(const DescribeRateRequest& request, const DescribeRateAsyncHandler& handler, const std::shared_ptr& context) const +void MarketClient::describeProjectAttachmentsAsync(const DescribeProjectAttachmentsRequest& request, const DescribeProjectAttachmentsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeRate(request), context); + handler(this, request, describeProjectAttachments(request), context); }; asyncExecute(new Runnable(fn)); } -MarketClient::DescribeRateOutcomeCallable MarketClient::describeRateCallable(const DescribeRateRequest &request) const +MarketClient::DescribeProjectAttachmentsOutcomeCallable MarketClient::describeProjectAttachmentsCallable(const DescribeProjectAttachmentsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeRate(request); + return this->describeProjectAttachments(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -MarketClient::NotifyContractEventOutcome MarketClient::notifyContractEvent(const NotifyContractEventRequest &request) const +MarketClient::DescribeProjectInfoOutcome MarketClient::describeProjectInfo(const DescribeProjectInfoRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return NotifyContractEventOutcome(endpointOutcome.error()); + return DescribeProjectInfoOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return NotifyContractEventOutcome(NotifyContractEventResult(outcome.result())); + return DescribeProjectInfoOutcome(DescribeProjectInfoResult(outcome.result())); else - return NotifyContractEventOutcome(outcome.error()); + return DescribeProjectInfoOutcome(outcome.error()); } -void MarketClient::notifyContractEventAsync(const NotifyContractEventRequest& request, const NotifyContractEventAsyncHandler& handler, const std::shared_ptr& context) const +void MarketClient::describeProjectInfoAsync(const DescribeProjectInfoRequest& request, const DescribeProjectInfoAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, notifyContractEvent(request), context); + handler(this, request, describeProjectInfo(request), context); }; asyncExecute(new Runnable(fn)); } -MarketClient::NotifyContractEventOutcomeCallable MarketClient::notifyContractEventCallable(const NotifyContractEventRequest &request) const +MarketClient::DescribeProjectInfoOutcomeCallable MarketClient::describeProjectInfoCallable(const DescribeProjectInfoRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->notifyContractEvent(request); + return this->describeProjectInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MarketClient::DescribeProjectMessagesOutcome MarketClient::describeProjectMessages(const DescribeProjectMessagesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeProjectMessagesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeProjectMessagesOutcome(DescribeProjectMessagesResult(outcome.result())); + else + return DescribeProjectMessagesOutcome(outcome.error()); +} + +void MarketClient::describeProjectMessagesAsync(const DescribeProjectMessagesRequest& request, const DescribeProjectMessagesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeProjectMessages(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MarketClient::DescribeProjectMessagesOutcomeCallable MarketClient::describeProjectMessagesCallable(const DescribeProjectMessagesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeProjectMessages(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MarketClient::DescribeProjectNodesOutcome MarketClient::describeProjectNodes(const DescribeProjectNodesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeProjectNodesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeProjectNodesOutcome(DescribeProjectNodesResult(outcome.result())); + else + return DescribeProjectNodesOutcome(outcome.error()); +} + +void MarketClient::describeProjectNodesAsync(const DescribeProjectNodesRequest& request, const DescribeProjectNodesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeProjectNodes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MarketClient::DescribeProjectNodesOutcomeCallable MarketClient::describeProjectNodesCallable(const DescribeProjectNodesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeProjectNodes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MarketClient::DescribeProjectOperateLogsOutcome MarketClient::describeProjectOperateLogs(const DescribeProjectOperateLogsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeProjectOperateLogsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeProjectOperateLogsOutcome(DescribeProjectOperateLogsResult(outcome.result())); + else + return DescribeProjectOperateLogsOutcome(outcome.error()); +} + +void MarketClient::describeProjectOperateLogsAsync(const DescribeProjectOperateLogsRequest& request, const DescribeProjectOperateLogsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeProjectOperateLogs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MarketClient::DescribeProjectOperateLogsOutcomeCallable MarketClient::describeProjectOperateLogsCallable(const DescribeProjectOperateLogsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeProjectOperateLogs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MarketClient::FinishCurrentProjectNodeOutcome MarketClient::finishCurrentProjectNode(const FinishCurrentProjectNodeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return FinishCurrentProjectNodeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return FinishCurrentProjectNodeOutcome(FinishCurrentProjectNodeResult(outcome.result())); + else + return FinishCurrentProjectNodeOutcome(outcome.error()); +} + +void MarketClient::finishCurrentProjectNodeAsync(const FinishCurrentProjectNodeRequest& request, const FinishCurrentProjectNodeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, finishCurrentProjectNode(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MarketClient::FinishCurrentProjectNodeOutcomeCallable MarketClient::finishCurrentProjectNodeCallable(const FinishCurrentProjectNodeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->finishCurrentProjectNode(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MarketClient::PauseProjectOutcome MarketClient::pauseProject(const PauseProjectRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PauseProjectOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PauseProjectOutcome(PauseProjectResult(outcome.result())); + else + return PauseProjectOutcome(outcome.error()); +} + +void MarketClient::pauseProjectAsync(const PauseProjectRequest& request, const PauseProjectAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, pauseProject(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MarketClient::PauseProjectOutcomeCallable MarketClient::pauseProjectCallable(const PauseProjectRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->pauseProject(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -699,144 +843,72 @@ MarketClient::PushMeteringDataOutcomeCallable MarketClient::pushMeteringDataCall return task->get_future(); } -MarketClient::QueryMarketCategoriesOutcome MarketClient::queryMarketCategories(const QueryMarketCategoriesRequest &request) const +MarketClient::ResumeProjectOutcome MarketClient::resumeProject(const ResumeProjectRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return QueryMarketCategoriesOutcome(endpointOutcome.error()); + return ResumeProjectOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return QueryMarketCategoriesOutcome(QueryMarketCategoriesResult(outcome.result())); + return ResumeProjectOutcome(ResumeProjectResult(outcome.result())); else - return QueryMarketCategoriesOutcome(outcome.error()); + return ResumeProjectOutcome(outcome.error()); } -void MarketClient::queryMarketCategoriesAsync(const QueryMarketCategoriesRequest& request, const QueryMarketCategoriesAsyncHandler& handler, const std::shared_ptr& context) const +void MarketClient::resumeProjectAsync(const ResumeProjectRequest& request, const ResumeProjectAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, queryMarketCategories(request), context); + handler(this, request, resumeProject(request), context); }; asyncExecute(new Runnable(fn)); } -MarketClient::QueryMarketCategoriesOutcomeCallable MarketClient::queryMarketCategoriesCallable(const QueryMarketCategoriesRequest &request) const +MarketClient::ResumeProjectOutcomeCallable MarketClient::resumeProjectCallable(const ResumeProjectRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->queryMarketCategories(request); + return this->resumeProject(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -MarketClient::QueryMarketImagesOutcome MarketClient::queryMarketImages(const QueryMarketImagesRequest &request) const +MarketClient::RollbackCurrentProjectNodeOutcome MarketClient::rollbackCurrentProjectNode(const RollbackCurrentProjectNodeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return QueryMarketImagesOutcome(endpointOutcome.error()); + return RollbackCurrentProjectNodeOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return QueryMarketImagesOutcome(QueryMarketImagesResult(outcome.result())); + return RollbackCurrentProjectNodeOutcome(RollbackCurrentProjectNodeResult(outcome.result())); else - return QueryMarketImagesOutcome(outcome.error()); + return RollbackCurrentProjectNodeOutcome(outcome.error()); } -void MarketClient::queryMarketImagesAsync(const QueryMarketImagesRequest& request, const QueryMarketImagesAsyncHandler& handler, const std::shared_ptr& context) const +void MarketClient::rollbackCurrentProjectNodeAsync(const RollbackCurrentProjectNodeRequest& request, const RollbackCurrentProjectNodeAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, queryMarketImages(request), context); + handler(this, request, rollbackCurrentProjectNode(request), context); }; asyncExecute(new Runnable(fn)); } -MarketClient::QueryMarketImagesOutcomeCallable MarketClient::queryMarketImagesCallable(const QueryMarketImagesRequest &request) const +MarketClient::RollbackCurrentProjectNodeOutcomeCallable MarketClient::rollbackCurrentProjectNodeCallable(const RollbackCurrentProjectNodeRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->queryMarketImages(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -MarketClient::UpdateCommodityOutcome MarketClient::updateCommodity(const UpdateCommodityRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UpdateCommodityOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UpdateCommodityOutcome(UpdateCommodityResult(outcome.result())); - else - return UpdateCommodityOutcome(outcome.error()); -} - -void MarketClient::updateCommodityAsync(const UpdateCommodityRequest& request, const UpdateCommodityAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, updateCommodity(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -MarketClient::UpdateCommodityOutcomeCallable MarketClient::updateCommodityCallable(const UpdateCommodityRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->updateCommodity(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -MarketClient::UploadCommodityFileOutcome MarketClient::uploadCommodityFile(const UploadCommodityFileRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UploadCommodityFileOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UploadCommodityFileOutcome(UploadCommodityFileResult(outcome.result())); - else - return UploadCommodityFileOutcome(outcome.error()); -} - -void MarketClient::uploadCommodityFileAsync(const UploadCommodityFileRequest& request, const UploadCommodityFileAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, uploadCommodityFile(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -MarketClient::UploadCommodityFileOutcomeCallable MarketClient::uploadCommodityFileCallable(const UploadCommodityFileRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->uploadCommodityFile(request); + return this->rollbackCurrentProjectNode(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); diff --git a/market/src/model/ActivateLicenseRequest.cc b/market/src/model/ActivateLicenseRequest.cc index 6c9a21167..e609c7426 100644 --- a/market/src/model/ActivateLicenseRequest.cc +++ b/market/src/model/ActivateLicenseRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Market::Model::ActivateLicenseRequest; - -ActivateLicenseRequest::ActivateLicenseRequest() : - RpcServiceRequest("market", "2015-11-01", "ActivateLicense") -{ - setMethod(HttpRequest::Method::Post); -} - -ActivateLicenseRequest::~ActivateLicenseRequest() -{} - -std::string ActivateLicenseRequest::getIdentification()const -{ - return identification_; + */ + +#include + +using AlibabaCloud::Market::Model::ActivateLicenseRequest; + +ActivateLicenseRequest::ActivateLicenseRequest() + : RpcServiceRequest("market", "2015-11-01", "ActivateLicense") { + setMethod(HttpRequest::Method::Post); } -void ActivateLicenseRequest::setIdentification(const std::string& identification) -{ - identification_ = identification; - setParameter("Identification", identification); +ActivateLicenseRequest::~ActivateLicenseRequest() {} + +std::string ActivateLicenseRequest::getIdentification() const { + return identification_; } -std::string ActivateLicenseRequest::getLicenseCode()const -{ - return licenseCode_; +void ActivateLicenseRequest::setIdentification(const std::string &identification) { + identification_ = identification; + setParameter(std::string("Identification"), identification); } -void ActivateLicenseRequest::setLicenseCode(const std::string& licenseCode) -{ - licenseCode_ = licenseCode; - setParameter("LicenseCode", licenseCode); +std::string ActivateLicenseRequest::getLicenseCode() const { + return licenseCode_; +} + +void ActivateLicenseRequest::setLicenseCode(const std::string &licenseCode) { + licenseCode_ = licenseCode; + setParameter(std::string("LicenseCode"), licenseCode); } diff --git a/market/src/model/AutoRenewInstanceRequest.cc b/market/src/model/AutoRenewInstanceRequest.cc new file mode 100644 index 000000000..3de74c337 --- /dev/null +++ b/market/src/model/AutoRenewInstanceRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Market::Model::AutoRenewInstanceRequest; + +AutoRenewInstanceRequest::AutoRenewInstanceRequest() + : RpcServiceRequest("market", "2015-11-01", "AutoRenewInstance") { + setMethod(HttpRequest::Method::Post); +} + +AutoRenewInstanceRequest::~AutoRenewInstanceRequest() {} + +std::string AutoRenewInstanceRequest::getType() const { + return type_; +} + +void AutoRenewInstanceRequest::setType(const std::string &type) { + type_ = type; + setBodyParameter(std::string("Type"), type); +} + +long AutoRenewInstanceRequest::getOwnerId() const { + return ownerId_; +} + +void AutoRenewInstanceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setBodyParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +int AutoRenewInstanceRequest::getAutoRenewDuration() const { + return autoRenewDuration_; +} + +void AutoRenewInstanceRequest::setAutoRenewDuration(int autoRenewDuration) { + autoRenewDuration_ = autoRenewDuration; + setBodyParameter(std::string("AutoRenewDuration"), std::to_string(autoRenewDuration)); +} + +std::string AutoRenewInstanceRequest::getAutoRenewCycle() const { + return autoRenewCycle_; +} + +void AutoRenewInstanceRequest::setAutoRenewCycle(const std::string &autoRenewCycle) { + autoRenewCycle_ = autoRenewCycle; + setBodyParameter(std::string("AutoRenewCycle"), autoRenewCycle); +} + +long AutoRenewInstanceRequest::getOrderBizId() const { + return orderBizId_; +} + +void AutoRenewInstanceRequest::setOrderBizId(long orderBizId) { + orderBizId_ = orderBizId; + setBodyParameter(std::string("OrderBizId"), std::to_string(orderBizId)); +} + diff --git a/market/src/model/DeleteCommodityResult.cc b/market/src/model/AutoRenewInstanceResult.cc similarity index 67% rename from market/src/model/DeleteCommodityResult.cc rename to market/src/model/AutoRenewInstanceResult.cc index 9a81811ca..713289d66 100644 --- a/market/src/model/DeleteCommodityResult.cc +++ b/market/src/model/AutoRenewInstanceResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Market; using namespace AlibabaCloud::Market::Model; -DeleteCommodityResult::DeleteCommodityResult() : +AutoRenewInstanceResult::AutoRenewInstanceResult() : ServiceResult() {} -DeleteCommodityResult::DeleteCommodityResult(const std::string &payload) : +AutoRenewInstanceResult::AutoRenewInstanceResult(const std::string &payload) : ServiceResult() { parse(payload); } -DeleteCommodityResult::~DeleteCommodityResult() +AutoRenewInstanceResult::~AutoRenewInstanceResult() {} -void DeleteCommodityResult::parse(const std::string &payload) +void AutoRenewInstanceResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -41,10 +41,17 @@ void DeleteCommodityResult::parse(const std::string &payload) setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; } -bool DeleteCommodityResult::getSuccess()const +bool AutoRenewInstanceResult::getData()const +{ + return data_; +} + +bool AutoRenewInstanceResult::getSuccess()const { return success_; } diff --git a/market/src/model/BindImagePackageRequest.cc b/market/src/model/BindImagePackageRequest.cc deleted file mode 100644 index 46be7f37b..000000000 --- a/market/src/model/BindImagePackageRequest.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Market::Model::BindImagePackageRequest; - -BindImagePackageRequest::BindImagePackageRequest() : - RpcServiceRequest("market", "2015-11-01", "BindImagePackage") -{ - setMethod(HttpRequest::Method::Post); -} - -BindImagePackageRequest::~BindImagePackageRequest() -{} - -std::string BindImagePackageRequest::getEcsInstanceId()const -{ - return ecsInstanceId_; -} - -void BindImagePackageRequest::setEcsInstanceId(const std::string& ecsInstanceId) -{ - ecsInstanceId_ = ecsInstanceId; - setParameter("EcsInstanceId", ecsInstanceId); -} - -std::string BindImagePackageRequest::getImagePackageInstanceId()const -{ - return imagePackageInstanceId_; -} - -void BindImagePackageRequest::setImagePackageInstanceId(const std::string& imagePackageInstanceId) -{ - imagePackageInstanceId_ = imagePackageInstanceId; - setParameter("ImagePackageInstanceId", imagePackageInstanceId); -} - diff --git a/market/src/model/CreateCommodityRequest.cc b/market/src/model/CreateCommodityRequest.cc deleted file mode 100644 index cf3500643..000000000 --- a/market/src/model/CreateCommodityRequest.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Market::Model::CreateCommodityRequest; - -CreateCommodityRequest::CreateCommodityRequest() : - RpcServiceRequest("market", "2015-11-01", "CreateCommodity") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateCommodityRequest::~CreateCommodityRequest() -{} - -std::string CreateCommodityRequest::getApplicationId()const -{ - return applicationId_; -} - -void CreateCommodityRequest::setApplicationId(const std::string& applicationId) -{ - applicationId_ = applicationId; - setParameter("ApplicationId", applicationId); -} - -std::string CreateCommodityRequest::getContent()const -{ - return content_; -} - -void CreateCommodityRequest::setContent(const std::string& content) -{ - content_ = content; - setBodyParameter("Content", content); -} - diff --git a/market/src/model/CreateOrderRequest.cc b/market/src/model/CreateOrderRequest.cc index b6e1b6599..72540dc82 100644 --- a/market/src/model/CreateOrderRequest.cc +++ b/market/src/model/CreateOrderRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Market::Model::CreateOrderRequest; - -CreateOrderRequest::CreateOrderRequest() : - RpcServiceRequest("market", "2015-11-01", "CreateOrder") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateOrderRequest::~CreateOrderRequest() -{} - -std::string CreateOrderRequest::getOrderSouce()const -{ - return orderSouce_; + */ + +#include + +using AlibabaCloud::Market::Model::CreateOrderRequest; + +CreateOrderRequest::CreateOrderRequest() + : RpcServiceRequest("market", "2015-11-01", "CreateOrder") { + setMethod(HttpRequest::Method::Post); } -void CreateOrderRequest::setOrderSouce(const std::string& orderSouce) -{ - orderSouce_ = orderSouce; - setParameter("OrderSouce", orderSouce); +CreateOrderRequest::~CreateOrderRequest() {} + +std::string CreateOrderRequest::getOrderSouce() const { + return orderSouce_; } -std::string CreateOrderRequest::getCommodity()const -{ - return commodity_; +void CreateOrderRequest::setOrderSouce(const std::string &orderSouce) { + orderSouce_ = orderSouce; + setParameter(std::string("OrderSouce"), orderSouce); } -void CreateOrderRequest::setCommodity(const std::string& commodity) -{ - commodity_ = commodity; - setParameter("Commodity", commodity); +std::string CreateOrderRequest::getCommodity() const { + return commodity_; } -std::string CreateOrderRequest::getClientToken()const -{ - return clientToken_; +void CreateOrderRequest::setCommodity(const std::string &commodity) { + commodity_ = commodity; + setParameter(std::string("Commodity"), commodity); } -void CreateOrderRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateOrderRequest::getClientToken() const { + return clientToken_; } -std::string CreateOrderRequest::getOwnerId()const -{ - return ownerId_; +void CreateOrderRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateOrderRequest::setOwnerId(const std::string& ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", ownerId); +std::string CreateOrderRequest::getOwnerId() const { + return ownerId_; } -std::string CreateOrderRequest::getPaymentType()const -{ - return paymentType_; +void CreateOrderRequest::setOwnerId(const std::string &ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), ownerId); } -void CreateOrderRequest::setPaymentType(const std::string& paymentType) -{ - paymentType_ = paymentType; - setParameter("PaymentType", paymentType); +std::string CreateOrderRequest::getPaymentType() const { + return paymentType_; } -std::string CreateOrderRequest::getOrderType()const -{ - return orderType_; +void CreateOrderRequest::setPaymentType(const std::string &paymentType) { + paymentType_ = paymentType; + setParameter(std::string("PaymentType"), paymentType); } -void CreateOrderRequest::setOrderType(const std::string& orderType) -{ - orderType_ = orderType; - setParameter("OrderType", orderType); +std::string CreateOrderRequest::getOrderType() const { + return orderType_; +} + +void CreateOrderRequest::setOrderType(const std::string &orderType) { + orderType_ = orderType; + setParameter(std::string("OrderType"), orderType); } diff --git a/market/src/model/CreateRateRequest.cc b/market/src/model/CreateRateRequest.cc deleted file mode 100644 index 8b1dec9e3..000000000 --- a/market/src/model/CreateRateRequest.cc +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Market::Model::CreateRateRequest; - -CreateRateRequest::CreateRateRequest() : - RpcServiceRequest("market", "2015-11-01", "CreateRate") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateRateRequest::~CreateRateRequest() -{} - -std::string CreateRateRequest::getOrderId()const -{ - return orderId_; -} - -void CreateRateRequest::setOrderId(const std::string& orderId) -{ - orderId_ = orderId; - setParameter("OrderId", orderId); -} - -std::string CreateRateRequest::getContent()const -{ - return content_; -} - -void CreateRateRequest::setContent(const std::string& content) -{ - content_ = content; - setParameter("Content", content); -} - -std::string CreateRateRequest::getScore()const -{ - return score_; -} - -void CreateRateRequest::setScore(const std::string& score) -{ - score_ = score; - setParameter("Score", score); -} - -std::string CreateRateRequest::getRequestId()const -{ - return requestId_; -} - -void CreateRateRequest::setRequestId(const std::string& requestId) -{ - requestId_ = requestId; - setParameter("RequestId", requestId); -} - diff --git a/market/src/model/CreateRateResult.cc b/market/src/model/CreateRateResult.cc deleted file mode 100644 index a70a88ec0..000000000 --- a/market/src/model/CreateRateResult.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Market; -using namespace AlibabaCloud::Market::Model; - -CreateRateResult::CreateRateResult() : - ServiceResult() -{} - -CreateRateResult::CreateRateResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateRateResult::~CreateRateResult() -{} - -void CreateRateResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["Id"].isNull()) - id_ = std::stol(value["Id"].asString()); - -} - -long CreateRateResult::getId()const -{ - return id_; -} - diff --git a/market/src/model/CrossAccountVerifyTokenRequest.cc b/market/src/model/CrossAccountVerifyTokenRequest.cc new file mode 100644 index 000000000..c4e6677ad --- /dev/null +++ b/market/src/model/CrossAccountVerifyTokenRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Market::Model::CrossAccountVerifyTokenRequest; + +CrossAccountVerifyTokenRequest::CrossAccountVerifyTokenRequest() + : RpcServiceRequest("market", "2015-11-01", "CrossAccountVerifyToken") { + setMethod(HttpRequest::Method::Post); +} + +CrossAccountVerifyTokenRequest::~CrossAccountVerifyTokenRequest() {} + +std::string CrossAccountVerifyTokenRequest::getToken() const { + return token_; +} + +void CrossAccountVerifyTokenRequest::setToken(const std::string &token) { + token_ = token; + setBodyParameter(std::string("Token"), token); +} + diff --git a/market/src/model/CrossAccountVerifyTokenResult.cc b/market/src/model/CrossAccountVerifyTokenResult.cc new file mode 100644 index 000000000..c19a39d8c --- /dev/null +++ b/market/src/model/CrossAccountVerifyTokenResult.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::Market; +using namespace AlibabaCloud::Market::Model; + +CrossAccountVerifyTokenResult::CrossAccountVerifyTokenResult() : + ServiceResult() +{} + +CrossAccountVerifyTokenResult::CrossAccountVerifyTokenResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CrossAccountVerifyTokenResult::~CrossAccountVerifyTokenResult() +{} + +void CrossAccountVerifyTokenResult::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["Uid"].isNull()) + result_.uid = resultNode["Uid"].asString(); + if(!resultNode["AuthTime"].isNull()) + result_.authTime = std::stol(resultNode["AuthTime"].asString()); + auto allAuthRoles = resultNode["AuthRoles"]["AuthRole"]; + for (auto value : allAuthRoles) + result_.authRoles.push_back(value.asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CrossAccountVerifyTokenResult::getMessage()const +{ + return message_; +} + +std::string CrossAccountVerifyTokenResult::getCode()const +{ + return code_; +} + +bool CrossAccountVerifyTokenResult::getSuccess()const +{ + return success_; +} + +CrossAccountVerifyTokenResult::Result CrossAccountVerifyTokenResult::getResult()const +{ + return result_; +} + diff --git a/market/src/model/DeleteCommodityRequest.cc b/market/src/model/DeleteCommodityRequest.cc deleted file mode 100644 index 56c31cf58..000000000 --- a/market/src/model/DeleteCommodityRequest.cc +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Market::Model::DeleteCommodityRequest; - -DeleteCommodityRequest::DeleteCommodityRequest() : - RpcServiceRequest("market", "2015-11-01", "DeleteCommodity") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteCommodityRequest::~DeleteCommodityRequest() -{} - -std::string DeleteCommodityRequest::getCommodityId()const -{ - return commodityId_; -} - -void DeleteCommodityRequest::setCommodityId(const std::string& commodityId) -{ - commodityId_ = commodityId; - setParameter("CommodityId", commodityId); -} - diff --git a/market/src/model/DescribeCommoditiesRequest.cc b/market/src/model/DescribeCommoditiesRequest.cc deleted file mode 100644 index aa9762648..000000000 --- a/market/src/model/DescribeCommoditiesRequest.cc +++ /dev/null @@ -1,183 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Market::Model::DescribeCommoditiesRequest; - -DescribeCommoditiesRequest::DescribeCommoditiesRequest() : - RpcServiceRequest("market", "2015-11-01", "DescribeCommodities") -{ - setMethod(HttpRequest::Method::Get); -} - -DescribeCommoditiesRequest::~DescribeCommoditiesRequest() -{} - -std::string DescribeCommoditiesRequest::getCommodityGmtModifiedTo()const -{ - return commodityGmtModifiedTo_; -} - -void DescribeCommoditiesRequest::setCommodityGmtModifiedTo(const std::string& commodityGmtModifiedTo) -{ - commodityGmtModifiedTo_ = commodityGmtModifiedTo; - setParameter("CommodityGmtModifiedTo", commodityGmtModifiedTo); -} - -std::string DescribeCommoditiesRequest::getCommodityGmtModifiedFrom()const -{ - return commodityGmtModifiedFrom_; -} - -void DescribeCommoditiesRequest::setCommodityGmtModifiedFrom(const std::string& commodityGmtModifiedFrom) -{ - commodityGmtModifiedFrom_ = commodityGmtModifiedFrom; - setParameter("CommodityGmtModifiedFrom", commodityGmtModifiedFrom); -} - -std::string DescribeCommoditiesRequest::getCommodityId()const -{ - return commodityId_; -} - -void DescribeCommoditiesRequest::setCommodityId(const std::string& commodityId) -{ - commodityId_ = commodityId; - setParameter("CommodityId", commodityId); -} - -std::string DescribeCommoditiesRequest::getCommodityGmtPublishFrom()const -{ - return commodityGmtPublishFrom_; -} - -void DescribeCommoditiesRequest::setCommodityGmtPublishFrom(const std::string& commodityGmtPublishFrom) -{ - commodityGmtPublishFrom_ = commodityGmtPublishFrom; - setParameter("CommodityGmtPublishFrom", commodityGmtPublishFrom); -} - -std::string DescribeCommoditiesRequest::getCommodityStatuses()const -{ - return commodityStatuses_; -} - -void DescribeCommoditiesRequest::setCommodityStatuses(const std::string& commodityStatuses) -{ - commodityStatuses_ = commodityStatuses; - setParameter("CommodityStatuses", commodityStatuses); -} - -int DescribeCommoditiesRequest::getPageNumber()const -{ - return pageNumber_; -} - -void DescribeCommoditiesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string DescribeCommoditiesRequest::getCommodityGmtCreatedFrom()const -{ - return commodityGmtCreatedFrom_; -} - -void DescribeCommoditiesRequest::setCommodityGmtCreatedFrom(const std::string& commodityGmtCreatedFrom) -{ - commodityGmtCreatedFrom_ = commodityGmtCreatedFrom; - setParameter("CommodityGmtCreatedFrom", commodityGmtCreatedFrom); -} - -std::string DescribeCommoditiesRequest::getCommodityIds()const -{ - return commodityIds_; -} - -void DescribeCommoditiesRequest::setCommodityIds(const std::string& commodityIds) -{ - commodityIds_ = commodityIds; - setParameter("CommodityIds", commodityIds); -} - -std::string DescribeCommoditiesRequest::getCommodityGmtCreatedTo()const -{ - return commodityGmtCreatedTo_; -} - -void DescribeCommoditiesRequest::setCommodityGmtCreatedTo(const std::string& commodityGmtCreatedTo) -{ - commodityGmtCreatedTo_ = commodityGmtCreatedTo; - setParameter("CommodityGmtCreatedTo", commodityGmtCreatedTo); -} - -int DescribeCommoditiesRequest::getPageSize()const -{ - return pageSize_; -} - -void DescribeCommoditiesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - -std::string DescribeCommoditiesRequest::getCommodityGmtPublishTo()const -{ - return commodityGmtPublishTo_; -} - -void DescribeCommoditiesRequest::setCommodityGmtPublishTo(const std::string& commodityGmtPublishTo) -{ - commodityGmtPublishTo_ = commodityGmtPublishTo; - setParameter("CommodityGmtPublishTo", commodityGmtPublishTo); -} - -std::string DescribeCommoditiesRequest::getCommodityAuditStatuses()const -{ - return commodityAuditStatuses_; -} - -void DescribeCommoditiesRequest::setCommodityAuditStatuses(const std::string& commodityAuditStatuses) -{ - commodityAuditStatuses_ = commodityAuditStatuses; - setParameter("CommodityAuditStatuses", commodityAuditStatuses); -} - -std::string DescribeCommoditiesRequest::getProperties()const -{ - return properties_; -} - -void DescribeCommoditiesRequest::setProperties(const std::string& properties) -{ - properties_ = properties; - setParameter("Properties", properties); -} - -std::string DescribeCommoditiesRequest::getCommodityCategoryIds()const -{ - return commodityCategoryIds_; -} - -void DescribeCommoditiesRequest::setCommodityCategoryIds(const std::string& commodityCategoryIds) -{ - commodityCategoryIds_ = commodityCategoryIds; - setParameter("CommodityCategoryIds", commodityCategoryIds); -} - diff --git a/market/src/model/DescribeCommoditiesResult.cc b/market/src/model/DescribeCommoditiesResult.cc deleted file mode 100644 index 97832d2d6..000000000 --- a/market/src/model/DescribeCommoditiesResult.cc +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Market; -using namespace AlibabaCloud::Market::Model; - -DescribeCommoditiesResult::DescribeCommoditiesResult() : - ServiceResult() -{} - -DescribeCommoditiesResult::DescribeCommoditiesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeCommoditiesResult::~DescribeCommoditiesResult() -{} - -void DescribeCommoditiesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto dataNode = value["Data"]; - if(!dataNode["TotalCount"].isNull()) - data_.totalCount = std::stol(dataNode["TotalCount"].asString()); - auto allCommoditiesNode = dataNode["Commodities"]["Commodity"]; - for (auto dataNodeCommoditiesCommodity : allCommoditiesNode) - { - Data::Commodity commodityObject; - if(!dataNodeCommoditiesCommodity["CommodityId"].isNull()) - commodityObject.commodityId = dataNodeCommoditiesCommodity["CommodityId"].asString(); - if(!dataNodeCommoditiesCommodity["Properties"].isNull()) - commodityObject.properties = dataNodeCommoditiesCommodity["Properties"].asString(); - if(!dataNodeCommoditiesCommodity["ApplicationId"].isNull()) - commodityObject.applicationId = dataNodeCommoditiesCommodity["ApplicationId"].asString(); - data_.commodities.push_back(commodityObject); - } - auto pageableNode = dataNode["Pageable"]; - if(!pageableNode["PageNumber"].isNull()) - data_.pageable.pageNumber = std::stoi(pageableNode["PageNumber"].asString()); - if(!pageableNode["PageSize"].isNull()) - data_.pageable.pageSize = std::stoi(pageableNode["PageSize"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - -} - -DescribeCommoditiesResult::Data DescribeCommoditiesResult::getData()const -{ - return data_; -} - -bool DescribeCommoditiesResult::getSuccess()const -{ - return success_; -} - diff --git a/market/src/model/DescribeCommodityRequest.cc b/market/src/model/DescribeCommodityRequest.cc deleted file mode 100644 index afa995cc8..000000000 --- a/market/src/model/DescribeCommodityRequest.cc +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Market::Model::DescribeCommodityRequest; - -DescribeCommodityRequest::DescribeCommodityRequest() : - RpcServiceRequest("market", "2015-11-01", "DescribeCommodity") -{ - setMethod(HttpRequest::Method::Get); -} - -DescribeCommodityRequest::~DescribeCommodityRequest() -{} - -std::string DescribeCommodityRequest::getCommodityId()const -{ - return commodityId_; -} - -void DescribeCommodityRequest::setCommodityId(const std::string& commodityId) -{ - commodityId_ = commodityId; - setParameter("CommodityId", commodityId); -} - diff --git a/market/src/model/DescribeCommodityResult.cc b/market/src/model/DescribeCommodityResult.cc deleted file mode 100644 index 135dc0a23..000000000 --- a/market/src/model/DescribeCommodityResult.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Market; -using namespace AlibabaCloud::Market::Model; - -DescribeCommodityResult::DescribeCommodityResult() : - ServiceResult() -{} - -DescribeCommodityResult::DescribeCommodityResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeCommodityResult::~DescribeCommodityResult() -{} - -void DescribeCommodityResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto commodityNode = value["Commodity"]; - if(!commodityNode["CommodityId"].isNull()) - commodity_.commodityId = commodityNode["CommodityId"].asString(); - if(!commodityNode["Properties"].isNull()) - commodity_.properties = commodityNode["Properties"].asString(); - if(!commodityNode["CommoditySpecs"].isNull()) - commodity_.commoditySpecs = commodityNode["CommoditySpecs"].asString(); - if(!commodityNode["ApplicationId"].isNull()) - commodity_.applicationId = commodityNode["ApplicationId"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - -} - -DescribeCommodityResult::Commodity DescribeCommodityResult::getCommodity()const -{ - return commodity_; -} - -bool DescribeCommodityResult::getSuccess()const -{ - return success_; -} - diff --git a/market/src/model/DescribeCurrentNodeInfoRequest.cc b/market/src/model/DescribeCurrentNodeInfoRequest.cc new file mode 100644 index 000000000..6d9499d8f --- /dev/null +++ b/market/src/model/DescribeCurrentNodeInfoRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Market::Model::DescribeCurrentNodeInfoRequest; + +DescribeCurrentNodeInfoRequest::DescribeCurrentNodeInfoRequest() + : RpcServiceRequest("market", "2015-11-01", "DescribeCurrentNodeInfo") { + setMethod(HttpRequest::Method::Post); +} + +DescribeCurrentNodeInfoRequest::~DescribeCurrentNodeInfoRequest() {} + +std::string DescribeCurrentNodeInfoRequest::getInstanceId() const { + return instanceId_; +} + +void DescribeCurrentNodeInfoRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/market/src/model/DescribeCurrentNodeInfoResult.cc b/market/src/model/DescribeCurrentNodeInfoResult.cc new file mode 100644 index 000000000..77bad8aaa --- /dev/null +++ b/market/src/model/DescribeCurrentNodeInfoResult.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::Market; +using namespace AlibabaCloud::Market::Model; + +DescribeCurrentNodeInfoResult::DescribeCurrentNodeInfoResult() : + ServiceResult() +{} + +DescribeCurrentNodeInfoResult::DescribeCurrentNodeInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCurrentNodeInfoResult::~DescribeCurrentNodeInfoResult() +{} + +void DescribeCurrentNodeInfoResult::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["NextNodeId"].isNull()) + result_.nextNodeId = std::stol(resultNode["NextNodeId"].asString()); + if(!resultNode["StepNo"].isNull()) + result_.stepNo = std::stoi(resultNode["StepNo"].asString()); + if(!resultNode["AutoFinishNode"].isNull()) + result_.autoFinishNode = resultNode["AutoFinishNode"].asString() == "true"; + if(!resultNode["FinalStepNo"].isNull()) + result_.finalStepNo = std::stoi(resultNode["FinalStepNo"].asString()); + if(!resultNode["PreviousNodeId"].isNull()) + result_.previousNodeId = std::stol(resultNode["PreviousNodeId"].asString()); + if(!resultNode["ParentNodeId"].isNull()) + result_.parentNodeId = std::stol(resultNode["ParentNodeId"].asString()); + if(!resultNode["GmtExpired"].isNull()) + result_.gmtExpired = std::stol(resultNode["GmtExpired"].asString()); + if(!resultNode["OperatorRole"].isNull()) + result_.operatorRole = resultNode["OperatorRole"].asString(); + if(!resultNode["GmtStart"].isNull()) + result_.gmtStart = std::stol(resultNode["GmtStart"].asString()); + if(!resultNode["NodeStatus"].isNull()) + result_.nodeStatus = resultNode["NodeStatus"].asString(); + if(!resultNode["NodeName"].isNull()) + result_.nodeName = resultNode["NodeName"].asString(); + if(!resultNode["GmtFinished"].isNull()) + result_.gmtFinished = std::stol(resultNode["GmtFinished"].asString()); + if(!resultNode["AllowRollbackNode"].isNull()) + result_.allowRollbackNode = resultNode["AllowRollbackNode"].asString() == "true"; + if(!resultNode["TemplateForm"].isNull()) + result_.templateForm = resultNode["TemplateForm"].asString(); + if(!resultNode["NeedAttachment"].isNull()) + result_.needAttachment = resultNode["NeedAttachment"].asString() == "true"; + if(!resultNode["NodeId"].isNull()) + result_.nodeId = std::stol(resultNode["NodeId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +bool DescribeCurrentNodeInfoResult::getSuccess()const +{ + return success_; +} + +DescribeCurrentNodeInfoResult::Result DescribeCurrentNodeInfoResult::getResult()const +{ + return result_; +} + diff --git a/market/src/model/DescribeDistributionProductsLinkRequest.cc b/market/src/model/DescribeDistributionProductsLinkRequest.cc new file mode 100644 index 000000000..9dd4ebb2d --- /dev/null +++ b/market/src/model/DescribeDistributionProductsLinkRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Market::Model::DescribeDistributionProductsLinkRequest; + +DescribeDistributionProductsLinkRequest::DescribeDistributionProductsLinkRequest() + : RpcServiceRequest("market", "2015-11-01", "DescribeDistributionProductsLink") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDistributionProductsLinkRequest::~DescribeDistributionProductsLinkRequest() {} + +std::vector DescribeDistributionProductsLinkRequest::getCodes() const { + return codes_; +} + +void DescribeDistributionProductsLinkRequest::setCodes(const std::vector &codes) { + codes_ = codes; + for(int dep1 = 0; dep1 != codes.size(); dep1++) { + setParameter(std::string("Codes") + "." + std::to_string(dep1 + 1), codes[dep1]); + } +} + diff --git a/market/src/model/DescribeDistributionProductsLinkResult.cc b/market/src/model/DescribeDistributionProductsLinkResult.cc new file mode 100644 index 000000000..63714a847 --- /dev/null +++ b/market/src/model/DescribeDistributionProductsLinkResult.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::Market; +using namespace AlibabaCloud::Market::Model; + +DescribeDistributionProductsLinkResult::DescribeDistributionProductsLinkResult() : + ServiceResult() +{} + +DescribeDistributionProductsLinkResult::DescribeDistributionProductsLinkResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDistributionProductsLinkResult::~DescribeDistributionProductsLinkResult() +{} + +void DescribeDistributionProductsLinkResult::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["url"].isNull()) + resultObject.url = valueResultitem["url"].asString(); + if(!valueResultitem["code"].isNull()) + resultObject.code = valueResultitem["code"].asString(); + if(!valueResultitem["name"].isNull()) + resultObject.name = valueResultitem["name"].asString(); + result_.push_back(resultObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +long DescribeDistributionProductsLinkResult::getTotalCount()const +{ + return totalCount_; +} + +bool DescribeDistributionProductsLinkResult::getSuccess()const +{ + return success_; +} + +std::vector DescribeDistributionProductsLinkResult::getResult()const +{ + return result_; +} + diff --git a/market/src/model/DescribeDistributionProductsRequest.cc b/market/src/model/DescribeDistributionProductsRequest.cc new file mode 100644 index 000000000..a418516c6 --- /dev/null +++ b/market/src/model/DescribeDistributionProductsRequest.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 + +using AlibabaCloud::Market::Model::DescribeDistributionProductsRequest; + +DescribeDistributionProductsRequest::DescribeDistributionProductsRequest() + : RpcServiceRequest("market", "2015-11-01", "DescribeDistributionProducts") { + setMethod(HttpRequest::Method::Get); +} + +DescribeDistributionProductsRequest::~DescribeDistributionProductsRequest() {} + +long DescribeDistributionProductsRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeDistributionProductsRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::vector DescribeDistributionProductsRequest::getFilter() const { + return filter_; +} + +void DescribeDistributionProductsRequest::setFilter(const std::vector &filter) { + filter_ = filter; + for(int dep1 = 0; dep1 != filter.size(); dep1++) { + auto filterObj = filter.at(dep1); + std::string filterObjStr = std::string("Filter") + "." + std::to_string(dep1 + 1); + setParameter(filterObjStr + ".Value", filterObj.value); + setParameter(filterObjStr + ".Key", filterObj.key); + } +} + +long DescribeDistributionProductsRequest::getPageSize() const { + return pageSize_; +} + +void DescribeDistributionProductsRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + diff --git a/market/src/model/DescribeDistributionProductsResult.cc b/market/src/model/DescribeDistributionProductsResult.cc new file mode 100644 index 000000000..829592e59 --- /dev/null +++ b/market/src/model/DescribeDistributionProductsResult.cc @@ -0,0 +1,104 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Market; +using namespace AlibabaCloud::Market::Model; + +DescribeDistributionProductsResult::DescribeDistributionProductsResult() : + ServiceResult() +{} + +DescribeDistributionProductsResult::DescribeDistributionProductsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDistributionProductsResult::~DescribeDistributionProductsResult() +{} + +void DescribeDistributionProductsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allResultsNode = value["Results"]["Result"]; + for (auto valueResultsResult : allResultsNode) + { + Result resultsObject; + if(!valueResultsResult["FirstCategoryName"].isNull()) + resultsObject.firstCategoryName = valueResultsResult["FirstCategoryName"].asString(); + if(!valueResultsResult["SecondCategoryName"].isNull()) + resultsObject.secondCategoryName = valueResultsResult["SecondCategoryName"].asString(); + if(!valueResultsResult["Type"].isNull()) + resultsObject.type = valueResultsResult["Type"].asString(); + if(!valueResultsResult["ImageUrl"].isNull()) + resultsObject.imageUrl = valueResultsResult["ImageUrl"].asString(); + if(!valueResultsResult["Code"].isNull()) + resultsObject.code = valueResultsResult["Code"].asString(); + if(!valueResultsResult["Name"].isNull()) + resultsObject.name = valueResultsResult["Name"].asString(); + if(!valueResultsResult["ShortDescription"].isNull()) + resultsObject.shortDescription = valueResultsResult["ShortDescription"].asString(); + if(!valueResultsResult["Price"].isNull()) + resultsObject.price = valueResultsResult["Price"].asString(); + if(!valueResultsResult["Score"].isNull()) + resultsObject.score = valueResultsResult["Score"].asString(); + if(!valueResultsResult["TradeCount"].isNull()) + resultsObject.tradeCount = valueResultsResult["TradeCount"].asString(); + if(!valueResultsResult["UserCommentCount"].isNull()) + resultsObject.userCommentCount = valueResultsResult["UserCommentCount"].asString(); + if(!valueResultsResult["SubmissionRadio"].isNull()) + resultsObject.submissionRadio = valueResultsResult["SubmissionRadio"].asString(); + if(!valueResultsResult["SupplierName"].isNull()) + resultsObject.supplierName = valueResultsResult["SupplierName"].asString(); + if(!valueResultsResult["SupplierUId"].isNull()) + resultsObject.supplierUId = valueResultsResult["SupplierUId"].asString(); + results_.push_back(resultsObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeDistributionProductsResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeDistributionProductsResult::getPageSize()const +{ + return pageSize_; +} + +std::vector DescribeDistributionProductsResult::getResults()const +{ + return results_; +} + +int DescribeDistributionProductsResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/market/src/model/DescribeInstanceRequest.cc b/market/src/model/DescribeInstanceRequest.cc index 85f3525ab..4e377e37a 100644 --- a/market/src/model/DescribeInstanceRequest.cc +++ b/market/src/model/DescribeInstanceRequest.cc @@ -1,62 +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 - -using AlibabaCloud::Market::Model::DescribeInstanceRequest; - -DescribeInstanceRequest::DescribeInstanceRequest() : - RpcServiceRequest("market", "2015-11-01", "DescribeInstance") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeInstanceRequest::~DescribeInstanceRequest() -{} - -long DescribeInstanceRequest::getOwnerId()const -{ - return ownerId_; + */ + +#include + +using AlibabaCloud::Market::Model::DescribeInstanceRequest; + +DescribeInstanceRequest::DescribeInstanceRequest() + : RpcServiceRequest("market", "2015-11-01", "DescribeInstance") { + setMethod(HttpRequest::Method::Post); } -void DescribeInstanceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +DescribeInstanceRequest::~DescribeInstanceRequest() {} + +long DescribeInstanceRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeInstanceRequest::getInstanceId()const -{ - return instanceId_; +void DescribeInstanceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeInstanceRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DescribeInstanceRequest::getInstanceId() const { + return instanceId_; } -std::string DescribeInstanceRequest::getOrderType()const -{ - return orderType_; +void DescribeInstanceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DescribeInstanceRequest::setOrderType(const std::string& orderType) -{ - orderType_ = orderType; - setParameter("OrderType", orderType); +std::string DescribeInstanceRequest::getOrderType() const { + return orderType_; +} + +void DescribeInstanceRequest::setOrderType(const std::string &orderType) { + orderType_ = orderType; + setParameter(std::string("OrderType"), orderType); } diff --git a/market/src/model/DescribeInstanceResult.cc b/market/src/model/DescribeInstanceResult.cc index cf6e6bc09..e1c23f4bb 100644 --- a/market/src/model/DescribeInstanceResult.cc +++ b/market/src/model/DescribeInstanceResult.cc @@ -43,42 +43,42 @@ void DescribeInstanceResult::parse(const std::string &payload) for (auto valueModulesModule : allModulesNode) { Module modulesObject; - if(!valueModulesModule["Id"].isNull()) - modulesObject.id = valueModulesModule["Id"].asString(); - if(!valueModulesModule["Name"].isNull()) - modulesObject.name = valueModulesModule["Name"].asString(); if(!valueModulesModule["Code"].isNull()) modulesObject.code = valueModulesModule["Code"].asString(); - auto allPropertiesNode = allModulesNode["Properties"]["Property"]; - for (auto allModulesNodePropertiesProperty : allPropertiesNode) + if(!valueModulesModule["Name"].isNull()) + modulesObject.name = valueModulesModule["Name"].asString(); + if(!valueModulesModule["Id"].isNull()) + modulesObject.id = valueModulesModule["Id"].asString(); + auto allPropertiesNode = valueModulesModule["Properties"]["Property"]; + for (auto valueModulesModulePropertiesProperty : allPropertiesNode) { Module::Property propertiesObject; - if(!allModulesNodePropertiesProperty["Name"].isNull()) - propertiesObject.name = allModulesNodePropertiesProperty["Name"].asString(); - if(!allModulesNodePropertiesProperty["Key"].isNull()) - propertiesObject.key = allModulesNodePropertiesProperty["Key"].asString(); - if(!allModulesNodePropertiesProperty["ShowType"].isNull()) - propertiesObject.showType = allModulesNodePropertiesProperty["ShowType"].asString(); - if(!allModulesNodePropertiesProperty["DisplayUnit"].isNull()) - propertiesObject.displayUnit = allModulesNodePropertiesProperty["DisplayUnit"].asString(); - auto allPropertyValuesNode = allPropertiesNode["PropertyValues"]["PropertyValue"]; - for (auto allPropertiesNodePropertyValuesPropertyValue : allPropertyValuesNode) + if(!valueModulesModulePropertiesProperty["Key"].isNull()) + propertiesObject.key = valueModulesModulePropertiesProperty["Key"].asString(); + if(!valueModulesModulePropertiesProperty["ShowType"].isNull()) + propertiesObject.showType = valueModulesModulePropertiesProperty["ShowType"].asString(); + if(!valueModulesModulePropertiesProperty["Name"].isNull()) + propertiesObject.name = valueModulesModulePropertiesProperty["Name"].asString(); + if(!valueModulesModulePropertiesProperty["DisplayUnit"].isNull()) + propertiesObject.displayUnit = valueModulesModulePropertiesProperty["DisplayUnit"].asString(); + auto allPropertyValuesNode = valueModulesModulePropertiesProperty["PropertyValues"]["PropertyValue"]; + for (auto valueModulesModulePropertiesPropertyPropertyValuesPropertyValue : allPropertyValuesNode) { Module::Property::PropertyValue propertyValuesObject; - if(!allPropertiesNodePropertyValuesPropertyValue["Value"].isNull()) - propertyValuesObject.value = allPropertiesNodePropertyValuesPropertyValue["Value"].asString(); - if(!allPropertiesNodePropertyValuesPropertyValue["DisplayName"].isNull()) - propertyValuesObject.displayName = allPropertiesNodePropertyValuesPropertyValue["DisplayName"].asString(); - if(!allPropertiesNodePropertyValuesPropertyValue["Type"].isNull()) - propertyValuesObject.type = allPropertiesNodePropertyValuesPropertyValue["Type"].asString(); - if(!allPropertiesNodePropertyValuesPropertyValue["Min"].isNull()) - propertyValuesObject.min = allPropertiesNodePropertyValuesPropertyValue["Min"].asString(); - if(!allPropertiesNodePropertyValuesPropertyValue["Max"].isNull()) - propertyValuesObject.max = allPropertiesNodePropertyValuesPropertyValue["Max"].asString(); - if(!allPropertiesNodePropertyValuesPropertyValue["Step"].isNull()) - propertyValuesObject.step = allPropertiesNodePropertyValuesPropertyValue["Step"].asString(); - if(!allPropertiesNodePropertyValuesPropertyValue["Remark"].isNull()) - propertyValuesObject.remark = allPropertiesNodePropertyValuesPropertyValue["Remark"].asString(); + if(!valueModulesModulePropertiesPropertyPropertyValuesPropertyValue["DisplayName"].isNull()) + propertyValuesObject.displayName = valueModulesModulePropertiesPropertyPropertyValuesPropertyValue["DisplayName"].asString(); + if(!valueModulesModulePropertiesPropertyPropertyValuesPropertyValue["Type"].isNull()) + propertyValuesObject.type = valueModulesModulePropertiesPropertyPropertyValuesPropertyValue["Type"].asString(); + if(!valueModulesModulePropertiesPropertyPropertyValuesPropertyValue["Step"].isNull()) + propertyValuesObject.step = valueModulesModulePropertiesPropertyPropertyValuesPropertyValue["Step"].asString(); + if(!valueModulesModulePropertiesPropertyPropertyValuesPropertyValue["Value"].isNull()) + propertyValuesObject.value = valueModulesModulePropertiesPropertyPropertyValuesPropertyValue["Value"].asString(); + if(!valueModulesModulePropertiesPropertyPropertyValuesPropertyValue["Max"].isNull()) + propertyValuesObject.max = valueModulesModulePropertiesPropertyPropertyValuesPropertyValue["Max"].asString(); + if(!valueModulesModulePropertiesPropertyPropertyValuesPropertyValue["Remark"].isNull()) + propertyValuesObject.remark = valueModulesModulePropertiesPropertyPropertyValuesPropertyValue["Remark"].asString(); + if(!valueModulesModulePropertiesPropertyPropertyValuesPropertyValue["Min"].isNull()) + propertyValuesObject.min = valueModulesModulePropertiesPropertyPropertyValuesPropertyValue["Min"].asString(); propertiesObject.propertyValues.push_back(propertyValuesObject); } modulesObject.properties.push_back(propertiesObject); @@ -88,40 +88,42 @@ void DescribeInstanceResult::parse(const std::string &payload) auto relationalDataNode = value["RelationalData"]; if(!relationalDataNode["ServiceStatus"].isNull()) relationalData_.serviceStatus = relationalDataNode["ServiceStatus"].asString(); - if(!value["InstanceId"].isNull()) - instanceId_ = std::stol(value["InstanceId"].asString()); - if(!value["OrderId"].isNull()) - orderId_ = std::stol(value["OrderId"].asString()); - if(!value["SupplierName"].isNull()) - supplierName_ = value["SupplierName"].asString(); - if(!value["ProductCode"].isNull()) - productCode_ = value["ProductCode"].asString(); - if(!value["ProductSkuCode"].isNull()) - productSkuCode_ = value["ProductSkuCode"].asString(); - if(!value["ProductName"].isNull()) - productName_ = value["ProductName"].asString(); - if(!value["ProductType"].isNull()) - productType_ = value["ProductType"].asString(); if(!value["Status"].isNull()) status_ = value["Status"].asString(); - if(!value["BeganOn"].isNull()) - beganOn_ = std::stol(value["BeganOn"].asString()); - if(!value["EndOn"].isNull()) - endOn_ = std::stol(value["EndOn"].asString()); - if(!value["CreatedOn"].isNull()) - createdOn_ = std::stol(value["CreatedOn"].asString()); - if(!value["ExtendJson"].isNull()) - extendJson_ = value["ExtendJson"].asString(); - if(!value["HostJson"].isNull()) - hostJson_ = value["HostJson"].asString(); if(!value["AppJson"].isNull()) appJson_ = value["AppJson"].asString(); + if(!value["ProductName"].isNull()) + productName_ = value["ProductName"].asString(); + if(!value["InstanceId"].isNull()) + instanceId_ = std::stol(value["InstanceId"].asString()); + if(!value["ExtendJson"].isNull()) + extendJson_ = value["ExtendJson"].asString(); + if(!value["IsTrial"].isNull()) + isTrial_ = value["IsTrial"].asString() == "true"; + if(!value["BeganOn"].isNull()) + beganOn_ = std::stol(value["BeganOn"].asString()); if(!value["ComponentJson"].isNull()) componentJson_ = value["ComponentJson"].asString(); if(!value["Constraints"].isNull()) constraints_ = value["Constraints"].asString(); - if(!value["IsTrial"].isNull()) - isTrial_ = value["IsTrial"].asString() == "true"; + if(!value["ProductType"].isNull()) + productType_ = value["ProductType"].asString(); + if(!value["HostJson"].isNull()) + hostJson_ = value["HostJson"].asString(); + if(!value["ProductSkuCode"].isNull()) + productSkuCode_ = value["ProductSkuCode"].asString(); + if(!value["CreatedOn"].isNull()) + createdOn_ = std::stol(value["CreatedOn"].asString()); + if(!value["EndOn"].isNull()) + endOn_ = std::stol(value["EndOn"].asString()); + if(!value["OrderId"].isNull()) + orderId_ = std::stol(value["OrderId"].asString()); + if(!value["ProductCode"].isNull()) + productCode_ = value["ProductCode"].asString(); + if(!value["SupplierName"].isNull()) + supplierName_ = value["SupplierName"].asString(); + if(!value["AutoRenewal"].isNull()) + autoRenewal_ = value["AutoRenewal"].asString(); } @@ -140,16 +142,16 @@ long DescribeInstanceResult::getInstanceId()const return instanceId_; } -std::string DescribeInstanceResult::getProductCode()const -{ - return productCode_; -} - long DescribeInstanceResult::getEndOn()const { return endOn_; } +std::string DescribeInstanceResult::getProductCode()const +{ + return productCode_; +} + std::vector DescribeInstanceResult::getModules()const { return modules_; @@ -160,16 +162,16 @@ DescribeInstanceResult::RelationalData DescribeInstanceResult::getRelationalData return relationalData_; } -std::string DescribeInstanceResult::getProductType()const -{ - return productType_; -} - std::string DescribeInstanceResult::getAppJson()const { return appJson_; } +std::string DescribeInstanceResult::getProductType()const +{ + return productType_; +} + long DescribeInstanceResult::getOrderId()const { return orderId_; @@ -185,14 +187,9 @@ std::string DescribeInstanceResult::getExtendJson()const return extendJson_; } -std::string DescribeInstanceResult::getSupplierName()const +std::string DescribeInstanceResult::getAutoRenewal()const { - return supplierName_; -} - -std::string DescribeInstanceResult::getComponentJson()const -{ - return componentJson_; + return autoRenewal_; } bool DescribeInstanceResult::getIsTrial()const @@ -200,21 +197,31 @@ bool DescribeInstanceResult::getIsTrial()const return isTrial_; } +std::string DescribeInstanceResult::getComponentJson()const +{ + return componentJson_; +} + +std::string DescribeInstanceResult::getSupplierName()const +{ + return supplierName_; +} + std::string DescribeInstanceResult::getProductSkuCode()const { return productSkuCode_; } -long DescribeInstanceResult::getCreatedOn()const -{ - return createdOn_; -} - std::string DescribeInstanceResult::getHostJson()const { return hostJson_; } +long DescribeInstanceResult::getCreatedOn()const +{ + return createdOn_; +} + long DescribeInstanceResult::getBeganOn()const { return beganOn_; diff --git a/market/src/model/DescribeInstancesRequest.cc b/market/src/model/DescribeInstancesRequest.cc index ee305d90c..e1f2a6548 100644 --- a/market/src/model/DescribeInstancesRequest.cc +++ b/market/src/model/DescribeInstancesRequest.cc @@ -1,62 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Market::Model::DescribeInstancesRequest; - -DescribeInstancesRequest::DescribeInstancesRequest() : - RpcServiceRequest("market", "2015-11-01", "DescribeInstances") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeInstancesRequest::~DescribeInstancesRequest() -{} - -int DescribeInstancesRequest::getPageNumber()const -{ - return pageNumber_; + */ + +#include + +using AlibabaCloud::Market::Model::DescribeInstancesRequest; + +DescribeInstancesRequest::DescribeInstancesRequest() + : RpcServiceRequest("market", "2015-11-01", "DescribeInstances") { + setMethod(HttpRequest::Method::Post); } -void DescribeInstancesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +DescribeInstancesRequest::~DescribeInstancesRequest() {} + +std::string DescribeInstancesRequest::getCodes() const { + return codes_; } -std::string DescribeInstancesRequest::getProductType()const -{ - return productType_; +void DescribeInstancesRequest::setCodes(const std::string &codes) { + codes_ = codes; + setParameter(std::string("Codes"), codes); } -void DescribeInstancesRequest::setProductType(const std::string& productType) -{ - productType_ = productType; - setParameter("ProductType", productType); +std::string DescribeInstancesRequest::getExceptCodes() const { + return exceptCodes_; } -int DescribeInstancesRequest::getPageSize()const -{ - return pageSize_; +void DescribeInstancesRequest::setExceptCodes(const std::string &exceptCodes) { + exceptCodes_ = exceptCodes; + setParameter(std::string("ExceptCodes"), exceptCodes); } -void DescribeInstancesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeInstancesRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeInstancesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeInstancesRequest::getProductType() const { + return productType_; +} + +void DescribeInstancesRequest::setProductType(const std::string &productType) { + productType_ = productType; + setParameter(std::string("ProductType"), productType); +} + +int DescribeInstancesRequest::getPageSize() const { + return pageSize_; +} + +void DescribeInstancesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/market/src/model/DescribeInstancesResult.cc b/market/src/model/DescribeInstancesResult.cc index c98e96c34..107a52cf9 100644 --- a/market/src/model/DescribeInstancesResult.cc +++ b/market/src/model/DescribeInstancesResult.cc @@ -43,40 +43,40 @@ void DescribeInstancesResult::parse(const std::string &payload) for (auto valueInstanceItemsInstanceItem : allInstanceItemsNode) { InstanceItem instanceItemsObject; - if(!valueInstanceItemsInstanceItem["InstanceId"].isNull()) - instanceItemsObject.instanceId = std::stol(valueInstanceItemsInstanceItem["InstanceId"].asString()); - if(!valueInstanceItemsInstanceItem["OrderId"].isNull()) - instanceItemsObject.orderId = std::stol(valueInstanceItemsInstanceItem["OrderId"].asString()); - if(!valueInstanceItemsInstanceItem["SupplierName"].isNull()) - instanceItemsObject.supplierName = valueInstanceItemsInstanceItem["SupplierName"].asString(); - if(!valueInstanceItemsInstanceItem["ProductCode"].isNull()) - instanceItemsObject.productCode = valueInstanceItemsInstanceItem["ProductCode"].asString(); - if(!valueInstanceItemsInstanceItem["ProductSkuCode"].isNull()) - instanceItemsObject.productSkuCode = valueInstanceItemsInstanceItem["ProductSkuCode"].asString(); - if(!valueInstanceItemsInstanceItem["ProductName"].isNull()) - instanceItemsObject.productName = valueInstanceItemsInstanceItem["ProductName"].asString(); - if(!valueInstanceItemsInstanceItem["ProductType"].isNull()) - instanceItemsObject.productType = valueInstanceItemsInstanceItem["ProductType"].asString(); if(!valueInstanceItemsInstanceItem["Status"].isNull()) instanceItemsObject.status = valueInstanceItemsInstanceItem["Status"].asString(); - if(!valueInstanceItemsInstanceItem["BeganOn"].isNull()) - instanceItemsObject.beganOn = std::stol(valueInstanceItemsInstanceItem["BeganOn"].asString()); - if(!valueInstanceItemsInstanceItem["EndOn"].isNull()) - instanceItemsObject.endOn = std::stol(valueInstanceItemsInstanceItem["EndOn"].asString()); - if(!valueInstanceItemsInstanceItem["CreatedOn"].isNull()) - instanceItemsObject.createdOn = std::stol(valueInstanceItemsInstanceItem["CreatedOn"].asString()); - if(!valueInstanceItemsInstanceItem["ExtendJson"].isNull()) - instanceItemsObject.extendJson = valueInstanceItemsInstanceItem["ExtendJson"].asString(); - if(!valueInstanceItemsInstanceItem["HostJson"].isNull()) - instanceItemsObject.hostJson = valueInstanceItemsInstanceItem["HostJson"].asString(); if(!valueInstanceItemsInstanceItem["AppJson"].isNull()) instanceItemsObject.appJson = valueInstanceItemsInstanceItem["AppJson"].asString(); if(!valueInstanceItemsInstanceItem["ApiJson"].isNull()) instanceItemsObject.apiJson = valueInstanceItemsInstanceItem["ApiJson"].asString(); + if(!valueInstanceItemsInstanceItem["ProductName"].isNull()) + instanceItemsObject.productName = valueInstanceItemsInstanceItem["ProductName"].asString(); if(!valueInstanceItemsInstanceItem["ImageJson"].isNull()) instanceItemsObject.imageJson = valueInstanceItemsInstanceItem["ImageJson"].asString(); + if(!valueInstanceItemsInstanceItem["InstanceId"].isNull()) + instanceItemsObject.instanceId = std::stol(valueInstanceItemsInstanceItem["InstanceId"].asString()); + if(!valueInstanceItemsInstanceItem["ExtendJson"].isNull()) + instanceItemsObject.extendJson = valueInstanceItemsInstanceItem["ExtendJson"].asString(); + if(!valueInstanceItemsInstanceItem["BeganOn"].isNull()) + instanceItemsObject.beganOn = std::stol(valueInstanceItemsInstanceItem["BeganOn"].asString()); + if(!valueInstanceItemsInstanceItem["ProductType"].isNull()) + instanceItemsObject.productType = valueInstanceItemsInstanceItem["ProductType"].asString(); + if(!valueInstanceItemsInstanceItem["HostJson"].isNull()) + instanceItemsObject.hostJson = valueInstanceItemsInstanceItem["HostJson"].asString(); + if(!valueInstanceItemsInstanceItem["ProductSkuCode"].isNull()) + instanceItemsObject.productSkuCode = valueInstanceItemsInstanceItem["ProductSkuCode"].asString(); + if(!valueInstanceItemsInstanceItem["CreatedOn"].isNull()) + instanceItemsObject.createdOn = std::stol(valueInstanceItemsInstanceItem["CreatedOn"].asString()); if(!valueInstanceItemsInstanceItem["IdaasJson"].isNull()) instanceItemsObject.idaasJson = valueInstanceItemsInstanceItem["IdaasJson"].asString(); + if(!valueInstanceItemsInstanceItem["EndOn"].isNull()) + instanceItemsObject.endOn = std::stol(valueInstanceItemsInstanceItem["EndOn"].asString()); + if(!valueInstanceItemsInstanceItem["OrderId"].isNull()) + instanceItemsObject.orderId = std::stol(valueInstanceItemsInstanceItem["OrderId"].asString()); + if(!valueInstanceItemsInstanceItem["ProductCode"].isNull()) + instanceItemsObject.productCode = valueInstanceItemsInstanceItem["ProductCode"].asString(); + if(!valueInstanceItemsInstanceItem["SupplierName"].isNull()) + instanceItemsObject.supplierName = valueInstanceItemsInstanceItem["SupplierName"].asString(); instanceItems_.push_back(instanceItemsObject); } if(!value["PageNumber"].isNull()) diff --git a/market/src/model/DescribeLicenseRequest.cc b/market/src/model/DescribeLicenseRequest.cc index 68160b460..2c3dd6092 100644 --- a/market/src/model/DescribeLicenseRequest.cc +++ b/market/src/model/DescribeLicenseRequest.cc @@ -1,40 +1,36 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Market::Model::DescribeLicenseRequest; - -DescribeLicenseRequest::DescribeLicenseRequest() : - RpcServiceRequest("market", "2015-11-01", "DescribeLicense") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeLicenseRequest::~DescribeLicenseRequest() -{} - -std::string DescribeLicenseRequest::getLicenseCode()const -{ - return licenseCode_; + */ + +#include + +using AlibabaCloud::Market::Model::DescribeLicenseRequest; + +DescribeLicenseRequest::DescribeLicenseRequest() + : RpcServiceRequest("market", "2015-11-01", "DescribeLicense") { + setMethod(HttpRequest::Method::Post); } -void DescribeLicenseRequest::setLicenseCode(const std::string& licenseCode) -{ - licenseCode_ = licenseCode; - setParameter("LicenseCode", licenseCode); +DescribeLicenseRequest::~DescribeLicenseRequest() {} + +std::string DescribeLicenseRequest::getLicenseCode() const { + return licenseCode_; +} + +void DescribeLicenseRequest::setLicenseCode(const std::string &licenseCode) { + licenseCode_ = licenseCode; + setParameter(std::string("LicenseCode"), licenseCode); } diff --git a/market/src/model/DescribeLicenseResult.cc b/market/src/model/DescribeLicenseResult.cc index 107e31430..4e0e63bfb 100644 --- a/market/src/model/DescribeLicenseResult.cc +++ b/market/src/model/DescribeLicenseResult.cc @@ -40,26 +40,26 @@ void DescribeLicenseResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto licenseNode = value["License"]; + if(!licenseNode["ActivateTime"].isNull()) + license_.activateTime = licenseNode["ActivateTime"].asString(); if(!licenseNode["LicenseStatus"].isNull()) license_.licenseStatus = licenseNode["LicenseStatus"].asString(); + if(!licenseNode["ProductName"].isNull()) + license_.productName = licenseNode["ProductName"].asString(); + if(!licenseNode["ExpiredTime"].isNull()) + license_.expiredTime = licenseNode["ExpiredTime"].asString(); + if(!licenseNode["ProductSkuId"].isNull()) + license_.productSkuId = licenseNode["ProductSkuId"].asString(); + if(!licenseNode["CreateTime"].isNull()) + license_.createTime = licenseNode["CreateTime"].asString(); if(!licenseNode["LicenseCode"].isNull()) license_.licenseCode = licenseNode["LicenseCode"].asString(); if(!licenseNode["InstanceId"].isNull()) license_.instanceId = licenseNode["InstanceId"].asString(); - if(!licenseNode["CreateTime"].isNull()) - license_.createTime = licenseNode["CreateTime"].asString(); - if(!licenseNode["ExpiredTime"].isNull()) - license_.expiredTime = licenseNode["ExpiredTime"].asString(); - if(!licenseNode["ActivateTime"].isNull()) - license_.activateTime = licenseNode["ActivateTime"].asString(); - if(!licenseNode["ProductSkuId"].isNull()) - license_.productSkuId = licenseNode["ProductSkuId"].asString(); - if(!licenseNode["ProductCode"].isNull()) - license_.productCode = licenseNode["ProductCode"].asString(); - if(!licenseNode["ProductName"].isNull()) - license_.productName = licenseNode["ProductName"].asString(); if(!licenseNode["SupplierName"].isNull()) license_.supplierName = licenseNode["SupplierName"].asString(); + if(!licenseNode["ProductCode"].isNull()) + license_.productCode = licenseNode["ProductCode"].asString(); auto allExtendArrayNode = licenseNode["ExtendArray"]["LicenseAttribute"]; for (auto licenseNodeExtendArrayLicenseAttribute : allExtendArrayNode) { @@ -73,12 +73,12 @@ void DescribeLicenseResult::parse(const std::string &payload) auto extendInfoNode = licenseNode["ExtendInfo"]; if(!extendInfoNode["AliUid"].isNull()) license_.extendInfo.aliUid = std::stol(extendInfoNode["AliUid"].asString()); + if(!extendInfoNode["AccountQuantity"].isNull()) + license_.extendInfo.accountQuantity = std::stol(extendInfoNode["AccountQuantity"].asString()); if(!extendInfoNode["Email"].isNull()) license_.extendInfo.email = extendInfoNode["Email"].asString(); if(!extendInfoNode["Mobile"].isNull()) license_.extendInfo.mobile = extendInfoNode["Mobile"].asString(); - if(!extendInfoNode["AccountQuantity"].isNull()) - license_.extendInfo.accountQuantity = std::stol(extendInfoNode["AccountQuantity"].asString()); } diff --git a/market/src/model/DescribeOrderRequest.cc b/market/src/model/DescribeOrderRequest.cc index 934a0e122..1c01699b5 100644 --- a/market/src/model/DescribeOrderRequest.cc +++ b/market/src/model/DescribeOrderRequest.cc @@ -1,40 +1,36 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Market::Model::DescribeOrderRequest; - -DescribeOrderRequest::DescribeOrderRequest() : - RpcServiceRequest("market", "2015-11-01", "DescribeOrder") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeOrderRequest::~DescribeOrderRequest() -{} - -std::string DescribeOrderRequest::getOrderId()const -{ - return orderId_; + */ + +#include + +using AlibabaCloud::Market::Model::DescribeOrderRequest; + +DescribeOrderRequest::DescribeOrderRequest() + : RpcServiceRequest("market", "2015-11-01", "DescribeOrder") { + setMethod(HttpRequest::Method::Post); } -void DescribeOrderRequest::setOrderId(const std::string& orderId) -{ - orderId_ = orderId; - setParameter("OrderId", orderId); +DescribeOrderRequest::~DescribeOrderRequest() {} + +std::string DescribeOrderRequest::getOrderId() const { + return orderId_; +} + +void DescribeOrderRequest::setOrderId(const std::string &orderId) { + orderId_ = orderId; + setParameter(std::string("OrderId"), orderId); } diff --git a/market/src/model/DescribeOrderResult.cc b/market/src/model/DescribeOrderResult.cc index d38226013..314cd770d 100644 --- a/market/src/model/DescribeOrderResult.cc +++ b/market/src/model/DescribeOrderResult.cc @@ -45,44 +45,44 @@ void DescribeOrderResult::parse(const std::string &payload) auto allInstanceIds = value["InstanceIds"]["InstanceId"]; for (const auto &item : allInstanceIds) instanceIds_.push_back(item.asString()); - if(!value["OrderId"].isNull()) - orderId_ = std::stol(value["OrderId"].asString()); - if(!value["AliUid"].isNull()) - aliUid_ = std::stol(value["AliUid"].asString()); - if(!value["SupplierCompanyName"].isNull()) - supplierCompanyName_ = value["SupplierCompanyName"].asString(); - if(!value["ProductCode"].isNull()) - productCode_ = value["ProductCode"].asString(); - if(!value["ProductSkuCode"].isNull()) - productSkuCode_ = value["ProductSkuCode"].asString(); if(!value["ProductName"].isNull()) productName_ = value["ProductName"].asString(); - if(!value["PeriodType"].isNull()) - periodType_ = value["PeriodType"].asString(); - if(!value["Quantity"].isNull()) - quantity_ = std::stoi(value["Quantity"].asString()); - if(!value["AccountQuantity"].isNull()) - accountQuantity_ = std::stol(value["AccountQuantity"].asString()); - if(!value["OrderType"].isNull()) - orderType_ = value["OrderType"].asString(); - if(!value["OrderStatus"].isNull()) - orderStatus_ = value["OrderStatus"].asString(); - if(!value["PayStatus"].isNull()) - payStatus_ = value["PayStatus"].asString(); - if(!value["PaidOn"].isNull()) - paidOn_ = std::stol(value["PaidOn"].asString()); - if(!value["CreatedOn"].isNull()) - createdOn_ = std::stol(value["CreatedOn"].asString()); + if(!value["SupplierCompanyName"].isNull()) + supplierCompanyName_ = value["SupplierCompanyName"].asString(); if(!value["OriginalPrice"].isNull()) originalPrice_ = std::stof(value["OriginalPrice"].asString()); - if(!value["TotalPrice"].isNull()) - totalPrice_ = std::stof(value["TotalPrice"].asString()); - if(!value["PaymentPrice"].isNull()) - paymentPrice_ = std::stof(value["PaymentPrice"].asString()); + if(!value["AliUid"].isNull()) + aliUid_ = std::stol(value["AliUid"].asString()); if(!value["CouponPrice"].isNull()) couponPrice_ = std::stof(value["CouponPrice"].asString()); + if(!value["AccountQuantity"].isNull()) + accountQuantity_ = std::stol(value["AccountQuantity"].asString()); + if(!value["PeriodType"].isNull()) + periodType_ = value["PeriodType"].asString(); + if(!value["PayStatus"].isNull()) + payStatus_ = value["PayStatus"].asString(); + if(!value["PaymentPrice"].isNull()) + paymentPrice_ = std::stof(value["PaymentPrice"].asString()); + if(!value["OrderStatus"].isNull()) + orderStatus_ = value["OrderStatus"].asString(); + if(!value["ProductSkuCode"].isNull()) + productSkuCode_ = value["ProductSkuCode"].asString(); + if(!value["PaidOn"].isNull()) + paidOn_ = std::stol(value["PaidOn"].asString()); if(!value["Components"].isNull()) components_ = value["Components"].asString(); + if(!value["CreatedOn"].isNull()) + createdOn_ = std::stol(value["CreatedOn"].asString()); + if(!value["OrderType"].isNull()) + orderType_ = value["OrderType"].asString(); + if(!value["TotalPrice"].isNull()) + totalPrice_ = std::stof(value["TotalPrice"].asString()); + if(!value["Quantity"].isNull()) + quantity_ = std::stoi(value["Quantity"].asString()); + if(!value["OrderId"].isNull()) + orderId_ = std::stol(value["OrderId"].asString()); + if(!value["ProductCode"].isNull()) + productCode_ = value["ProductCode"].asString(); } @@ -91,19 +91,14 @@ long DescribeOrderResult::getPaidOn()const return paidOn_; } -std::string DescribeOrderResult::getPeriodType()const -{ - return periodType_; -} - float DescribeOrderResult::getCouponPrice()const { return couponPrice_; } -std::string DescribeOrderResult::getPayStatus()const +std::string DescribeOrderResult::getPeriodType()const { - return payStatus_; + return periodType_; } float DescribeOrderResult::getOriginalPrice()const @@ -111,6 +106,11 @@ float DescribeOrderResult::getOriginalPrice()const return originalPrice_; } +std::string DescribeOrderResult::getPayStatus()const +{ + return payStatus_; +} + std::string DescribeOrderResult::getProductName()const { return productName_; @@ -166,16 +166,16 @@ std::string DescribeOrderResult::getProductSkuCode()const return productSkuCode_; } -long DescribeOrderResult::getCreatedOn()const -{ - return createdOn_; -} - float DescribeOrderResult::getPaymentPrice()const { return paymentPrice_; } +long DescribeOrderResult::getCreatedOn()const +{ + return createdOn_; +} + std::vector DescribeOrderResult::getInstanceIds()const { return instanceIds_; diff --git a/market/src/model/DescribePriceRequest.cc b/market/src/model/DescribePriceRequest.cc index aaf0a0b5f..7d653936b 100644 --- a/market/src/model/DescribePriceRequest.cc +++ b/market/src/model/DescribePriceRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Market::Model::DescribePriceRequest; - -DescribePriceRequest::DescribePriceRequest() : - RpcServiceRequest("market", "2015-11-01", "DescribePrice") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribePriceRequest::~DescribePriceRequest() -{} - -std::string DescribePriceRequest::getCommodity()const -{ - return commodity_; + */ + +#include + +using AlibabaCloud::Market::Model::DescribePriceRequest; + +DescribePriceRequest::DescribePriceRequest() + : RpcServiceRequest("market", "2015-11-01", "DescribePrice") { + setMethod(HttpRequest::Method::Post); } -void DescribePriceRequest::setCommodity(const std::string& commodity) -{ - commodity_ = commodity; - setParameter("Commodity", commodity); +DescribePriceRequest::~DescribePriceRequest() {} + +std::string DescribePriceRequest::getCommodity() const { + return commodity_; } -std::string DescribePriceRequest::getOrderType()const -{ - return orderType_; +void DescribePriceRequest::setCommodity(const std::string &commodity) { + commodity_ = commodity; + setParameter(std::string("Commodity"), commodity); } -void DescribePriceRequest::setOrderType(const std::string& orderType) -{ - orderType_ = orderType; - setParameter("OrderType", orderType); +std::string DescribePriceRequest::getOrderType() const { + return orderType_; +} + +void DescribePriceRequest::setOrderType(const std::string &orderType) { + orderType_ = orderType; + setParameter(std::string("OrderType"), orderType); } diff --git a/market/src/model/DescribePriceResult.cc b/market/src/model/DescribePriceResult.cc index 0ed49955a..e7f980d63 100644 --- a/market/src/model/DescribePriceResult.cc +++ b/market/src/model/DescribePriceResult.cc @@ -43,12 +43,12 @@ void DescribePriceResult::parse(const std::string &payload) for (auto valuePromotionRulesPromotionRule : allPromotionRulesNode) { PromotionRule promotionRulesObject; - if(!valuePromotionRulesPromotionRule["RuleId"].isNull()) - promotionRulesObject.ruleId = valuePromotionRulesPromotionRule["RuleId"].asString(); - if(!valuePromotionRulesPromotionRule["Name"].isNull()) - promotionRulesObject.name = valuePromotionRulesPromotionRule["Name"].asString(); if(!valuePromotionRulesPromotionRule["Title"].isNull()) promotionRulesObject.title = valuePromotionRulesPromotionRule["Title"].asString(); + if(!valuePromotionRulesPromotionRule["Name"].isNull()) + promotionRulesObject.name = valuePromotionRulesPromotionRule["Name"].asString(); + if(!valuePromotionRulesPromotionRule["RuleId"].isNull()) + promotionRulesObject.ruleId = valuePromotionRulesPromotionRule["RuleId"].asString(); promotionRules_.push_back(promotionRulesObject); } auto allCouponsNode = value["Coupons"]["Coupon"]; @@ -63,34 +63,34 @@ void DescribePriceResult::parse(const std::string &payload) couponsObject.couponName = valueCouponsCoupon["CouponName"].asString(); if(!valueCouponsCoupon["CouponDesc"].isNull()) couponsObject.couponDesc = valueCouponsCoupon["CouponDesc"].asString(); - if(!valueCouponsCoupon["CanPromFee"].isNull()) - couponsObject.canPromFee = std::stof(valueCouponsCoupon["CanPromFee"].asString()); if(!valueCouponsCoupon["IsSelected"].isNull()) couponsObject.isSelected = valueCouponsCoupon["IsSelected"].asString() == "true"; + if(!valueCouponsCoupon["CanPromFee"].isNull()) + couponsObject.canPromFee = std::stof(valueCouponsCoupon["CanPromFee"].asString()); coupons_.push_back(couponsObject); } - if(!value["ProductCode"].isNull()) - productCode_ = value["ProductCode"].asString(); - if(!value["OriginalPrice"].isNull()) - originalPrice_ = std::stof(value["OriginalPrice"].asString()); - if(!value["TradePrice"].isNull()) - tradePrice_ = std::stof(value["TradePrice"].asString()); - if(!value["DiscountPrice"].isNull()) - discountPrice_ = std::stof(value["DiscountPrice"].asString()); - if(!value["Cuxiao"].isNull()) - cuxiao_ = value["Cuxiao"].asString() == "true"; - if(!value["Duration"].isNull()) - duration_ = std::stoi(value["Duration"].asString()); - if(!value["Cycle"].isNull()) - cycle_ = value["Cycle"].asString(); - if(!value["InfoTitle"].isNull()) - infoTitle_ = value["InfoTitle"].asString(); if(!value["ExpressionCode"].isNull()) expressionCode_ = value["ExpressionCode"].asString(); + if(!value["Cuxiao"].isNull()) + cuxiao_ = value["Cuxiao"].asString() == "true"; + if(!value["DiscountPrice"].isNull()) + discountPrice_ = std::stof(value["DiscountPrice"].asString()); + if(!value["Cycle"].isNull()) + cycle_ = value["Cycle"].asString(); + if(!value["TradePrice"].isNull()) + tradePrice_ = std::stof(value["TradePrice"].asString()); + if(!value["OriginalPrice"].isNull()) + originalPrice_ = std::stof(value["OriginalPrice"].asString()); + if(!value["Duration"].isNull()) + duration_ = std::stoi(value["Duration"].asString()); if(!value["Currency"].isNull()) currency_ = value["Currency"].asString(); if(!value["ExpressionMessage"].isNull()) expressionMessage_ = value["ExpressionMessage"].asString(); + if(!value["InfoTitle"].isNull()) + infoTitle_ = value["InfoTitle"].asString(); + if(!value["ProductCode"].isNull()) + productCode_ = value["ProductCode"].asString(); } @@ -114,16 +114,16 @@ int DescribePriceResult::getDuration()const return duration_; } -float DescribePriceResult::getTradePrice()const -{ - return tradePrice_; -} - bool DescribePriceResult::getCuxiao()const { return cuxiao_; } +float DescribePriceResult::getTradePrice()const +{ + return tradePrice_; +} + std::string DescribePriceResult::getCycle()const { return cycle_; diff --git a/market/src/model/DescribeProductRequest.cc b/market/src/model/DescribeProductRequest.cc index 817956c06..30d0eac38 100644 --- a/market/src/model/DescribeProductRequest.cc +++ b/market/src/model/DescribeProductRequest.cc @@ -1,62 +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 - -using AlibabaCloud::Market::Model::DescribeProductRequest; - -DescribeProductRequest::DescribeProductRequest() : - RpcServiceRequest("market", "2015-11-01", "DescribeProduct") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeProductRequest::~DescribeProductRequest() -{} - -std::string DescribeProductRequest::getCode()const -{ - return code_; + */ + +#include + +using AlibabaCloud::Market::Model::DescribeProductRequest; + +DescribeProductRequest::DescribeProductRequest() + : RpcServiceRequest("market", "2015-11-01", "DescribeProduct") { + setMethod(HttpRequest::Method::Post); } -void DescribeProductRequest::setCode(const std::string& code) -{ - code_ = code; - setParameter("Code", code); +DescribeProductRequest::~DescribeProductRequest() {} + +std::string DescribeProductRequest::getCode() const { + return code_; } -bool DescribeProductRequest::getQueryDraft()const -{ - return queryDraft_; +void DescribeProductRequest::setCode(const std::string &code) { + code_ = code; + setParameter(std::string("Code"), code); } -void DescribeProductRequest::setQueryDraft(bool queryDraft) -{ - queryDraft_ = queryDraft; - setParameter("QueryDraft", queryDraft ? "true" : "false"); +bool DescribeProductRequest::getQueryDraft() const { + return queryDraft_; } -std::string DescribeProductRequest::getAliUid()const -{ - return aliUid_; +void DescribeProductRequest::setQueryDraft(bool queryDraft) { + queryDraft_ = queryDraft; + setParameter(std::string("QueryDraft"), queryDraft ? "true" : "false"); } -void DescribeProductRequest::setAliUid(const std::string& aliUid) -{ - aliUid_ = aliUid; - setParameter("AliUid", aliUid); +std::string DescribeProductRequest::getAliUid() const { + return aliUid_; +} + +void DescribeProductRequest::setAliUid(const std::string &aliUid) { + aliUid_ = aliUid; + setParameter(std::string("AliUid"), aliUid); } diff --git a/market/src/model/DescribeProductResult.cc b/market/src/model/DescribeProductResult.cc index bd6f09b24..c30844c06 100644 --- a/market/src/model/DescribeProductResult.cc +++ b/market/src/model/DescribeProductResult.cc @@ -43,66 +43,66 @@ void DescribeProductResult::parse(const std::string &payload) for (auto valueProductSkusProductSku : allProductSkusNode) { ProductSku productSkusObject; - if(!valueProductSkusProductSku["Name"].isNull()) - productSkusObject.name = valueProductSkusProductSku["Name"].asString(); - if(!valueProductSkusProductSku["Code"].isNull()) - productSkusObject.code = valueProductSkusProductSku["Code"].asString(); - if(!valueProductSkusProductSku["ChargeType"].isNull()) - productSkusObject.chargeType = valueProductSkusProductSku["ChargeType"].asString(); - if(!valueProductSkusProductSku["Constraints"].isNull()) - productSkusObject.constraints = valueProductSkusProductSku["Constraints"].asString(); if(!valueProductSkusProductSku["Hidden"].isNull()) productSkusObject.hidden = valueProductSkusProductSku["Hidden"].asString() == "true"; - auto allOrderPeriodsNode = allProductSkusNode["OrderPeriods"]["OrderPeriod"]; - for (auto allProductSkusNodeOrderPeriodsOrderPeriod : allOrderPeriodsNode) + if(!valueProductSkusProductSku["Code"].isNull()) + productSkusObject.code = valueProductSkusProductSku["Code"].asString(); + if(!valueProductSkusProductSku["Constraints"].isNull()) + productSkusObject.constraints = valueProductSkusProductSku["Constraints"].asString(); + if(!valueProductSkusProductSku["Name"].isNull()) + productSkusObject.name = valueProductSkusProductSku["Name"].asString(); + if(!valueProductSkusProductSku["ChargeType"].isNull()) + productSkusObject.chargeType = valueProductSkusProductSku["ChargeType"].asString(); + auto allOrderPeriodsNode = valueProductSkusProductSku["OrderPeriods"]["OrderPeriod"]; + for (auto valueProductSkusProductSkuOrderPeriodsOrderPeriod : allOrderPeriodsNode) { ProductSku::OrderPeriod orderPeriodsObject; - if(!allProductSkusNodeOrderPeriodsOrderPeriod["Name"].isNull()) - orderPeriodsObject.name = allProductSkusNodeOrderPeriodsOrderPeriod["Name"].asString(); - if(!allProductSkusNodeOrderPeriodsOrderPeriod["PeriodType"].isNull()) - orderPeriodsObject.periodType = allProductSkusNodeOrderPeriodsOrderPeriod["PeriodType"].asString(); + if(!valueProductSkusProductSkuOrderPeriodsOrderPeriod["Name"].isNull()) + orderPeriodsObject.name = valueProductSkusProductSkuOrderPeriodsOrderPeriod["Name"].asString(); + if(!valueProductSkusProductSkuOrderPeriodsOrderPeriod["PeriodType"].isNull()) + orderPeriodsObject.periodType = valueProductSkusProductSkuOrderPeriodsOrderPeriod["PeriodType"].asString(); productSkusObject.orderPeriods.push_back(orderPeriodsObject); } - auto allModulesNode = allProductSkusNode["Modules"]["Module"]; - for (auto allProductSkusNodeModulesModule : allModulesNode) + auto allModulesNode = valueProductSkusProductSku["Modules"]["Module"]; + for (auto valueProductSkusProductSkuModulesModule : allModulesNode) { ProductSku::Module modulesObject; - if(!allProductSkusNodeModulesModule["Id"].isNull()) - modulesObject.id = allProductSkusNodeModulesModule["Id"].asString(); - if(!allProductSkusNodeModulesModule["Name"].isNull()) - modulesObject.name = allProductSkusNodeModulesModule["Name"].asString(); - if(!allProductSkusNodeModulesModule["Code"].isNull()) - modulesObject.code = allProductSkusNodeModulesModule["Code"].asString(); - auto allPropertiesNode = allModulesNode["Properties"]["Property"]; - for (auto allModulesNodePropertiesProperty : allPropertiesNode) + if(!valueProductSkusProductSkuModulesModule["Code"].isNull()) + modulesObject.code = valueProductSkusProductSkuModulesModule["Code"].asString(); + if(!valueProductSkusProductSkuModulesModule["Name"].isNull()) + modulesObject.name = valueProductSkusProductSkuModulesModule["Name"].asString(); + if(!valueProductSkusProductSkuModulesModule["Id"].isNull()) + modulesObject.id = valueProductSkusProductSkuModulesModule["Id"].asString(); + auto allPropertiesNode = valueProductSkusProductSkuModulesModule["Properties"]["Property"]; + for (auto valueProductSkusProductSkuModulesModulePropertiesProperty : allPropertiesNode) { ProductSku::Module::Property propertiesObject; - if(!allModulesNodePropertiesProperty["Name"].isNull()) - propertiesObject.name = allModulesNodePropertiesProperty["Name"].asString(); - if(!allModulesNodePropertiesProperty["Key"].isNull()) - propertiesObject.key = allModulesNodePropertiesProperty["Key"].asString(); - if(!allModulesNodePropertiesProperty["ShowType"].isNull()) - propertiesObject.showType = allModulesNodePropertiesProperty["ShowType"].asString(); - if(!allModulesNodePropertiesProperty["DisplayUnit"].isNull()) - propertiesObject.displayUnit = allModulesNodePropertiesProperty["DisplayUnit"].asString(); - auto allPropertyValuesNode = allPropertiesNode["PropertyValues"]["PropertyValue"]; - for (auto allPropertiesNodePropertyValuesPropertyValue : allPropertyValuesNode) + if(!valueProductSkusProductSkuModulesModulePropertiesProperty["Key"].isNull()) + propertiesObject.key = valueProductSkusProductSkuModulesModulePropertiesProperty["Key"].asString(); + if(!valueProductSkusProductSkuModulesModulePropertiesProperty["ShowType"].isNull()) + propertiesObject.showType = valueProductSkusProductSkuModulesModulePropertiesProperty["ShowType"].asString(); + if(!valueProductSkusProductSkuModulesModulePropertiesProperty["Name"].isNull()) + propertiesObject.name = valueProductSkusProductSkuModulesModulePropertiesProperty["Name"].asString(); + if(!valueProductSkusProductSkuModulesModulePropertiesProperty["DisplayUnit"].isNull()) + propertiesObject.displayUnit = valueProductSkusProductSkuModulesModulePropertiesProperty["DisplayUnit"].asString(); + auto allPropertyValuesNode = valueProductSkusProductSkuModulesModulePropertiesProperty["PropertyValues"]["PropertyValue"]; + for (auto valueProductSkusProductSkuModulesModulePropertiesPropertyPropertyValuesPropertyValue : allPropertyValuesNode) { ProductSku::Module::Property::PropertyValue propertyValuesObject; - if(!allPropertiesNodePropertyValuesPropertyValue["Value"].isNull()) - propertyValuesObject.value = allPropertiesNodePropertyValuesPropertyValue["Value"].asString(); - if(!allPropertiesNodePropertyValuesPropertyValue["DisplayName"].isNull()) - propertyValuesObject.displayName = allPropertiesNodePropertyValuesPropertyValue["DisplayName"].asString(); - if(!allPropertiesNodePropertyValuesPropertyValue["Type"].isNull()) - propertyValuesObject.type = allPropertiesNodePropertyValuesPropertyValue["Type"].asString(); - if(!allPropertiesNodePropertyValuesPropertyValue["Min"].isNull()) - propertyValuesObject.min = allPropertiesNodePropertyValuesPropertyValue["Min"].asString(); - if(!allPropertiesNodePropertyValuesPropertyValue["Max"].isNull()) - propertyValuesObject.max = allPropertiesNodePropertyValuesPropertyValue["Max"].asString(); - if(!allPropertiesNodePropertyValuesPropertyValue["Step"].isNull()) - propertyValuesObject.step = allPropertiesNodePropertyValuesPropertyValue["Step"].asString(); - if(!allPropertiesNodePropertyValuesPropertyValue["Remark"].isNull()) - propertyValuesObject.remark = allPropertiesNodePropertyValuesPropertyValue["Remark"].asString(); + if(!valueProductSkusProductSkuModulesModulePropertiesPropertyPropertyValuesPropertyValue["DisplayName"].isNull()) + propertyValuesObject.displayName = valueProductSkusProductSkuModulesModulePropertiesPropertyPropertyValuesPropertyValue["DisplayName"].asString(); + if(!valueProductSkusProductSkuModulesModulePropertiesPropertyPropertyValuesPropertyValue["Type"].isNull()) + propertyValuesObject.type = valueProductSkusProductSkuModulesModulePropertiesPropertyPropertyValuesPropertyValue["Type"].asString(); + if(!valueProductSkusProductSkuModulesModulePropertiesPropertyPropertyValuesPropertyValue["Step"].isNull()) + propertyValuesObject.step = valueProductSkusProductSkuModulesModulePropertiesPropertyPropertyValuesPropertyValue["Step"].asString(); + if(!valueProductSkusProductSkuModulesModulePropertiesPropertyPropertyValuesPropertyValue["Value"].isNull()) + propertyValuesObject.value = valueProductSkusProductSkuModulesModulePropertiesPropertyPropertyValuesPropertyValue["Value"].asString(); + if(!valueProductSkusProductSkuModulesModulePropertiesPropertyPropertyValuesPropertyValue["Max"].isNull()) + propertyValuesObject.max = valueProductSkusProductSkuModulesModulePropertiesPropertyPropertyValuesPropertyValue["Max"].asString(); + if(!valueProductSkusProductSkuModulesModulePropertiesPropertyPropertyValuesPropertyValue["Remark"].isNull()) + propertyValuesObject.remark = valueProductSkusProductSkuModulesModulePropertiesPropertyPropertyValuesPropertyValue["Remark"].asString(); + if(!valueProductSkusProductSkuModulesModulePropertiesPropertyPropertyValuesPropertyValue["Min"].isNull()) + propertyValuesObject.min = valueProductSkusProductSkuModulesModulePropertiesPropertyPropertyValuesPropertyValue["Min"].asString(); propertiesObject.propertyValues.push_back(propertyValuesObject); } modulesObject.properties.push_back(propertiesObject); @@ -115,83 +115,83 @@ void DescribeProductResult::parse(const std::string &payload) for (auto valueProductExtrasProductExtra : allProductExtrasNode) { ProductExtra productExtrasObject; + if(!valueProductExtrasProductExtra["Type"].isNull()) + productExtrasObject.type = valueProductExtrasProductExtra["Type"].asString(); if(!valueProductExtrasProductExtra["Key"].isNull()) productExtrasObject.key = valueProductExtrasProductExtra["Key"].asString(); - if(!valueProductExtrasProductExtra["Values"].isNull()) - productExtrasObject.values = valueProductExtrasProductExtra["Values"].asString(); if(!valueProductExtrasProductExtra["Label"].isNull()) productExtrasObject.label = valueProductExtrasProductExtra["Label"].asString(); if(!valueProductExtrasProductExtra["Order"].isNull()) productExtrasObject.order = std::stoi(valueProductExtrasProductExtra["Order"].asString()); - if(!valueProductExtrasProductExtra["Type"].isNull()) - productExtrasObject.type = valueProductExtrasProductExtra["Type"].asString(); + if(!valueProductExtrasProductExtra["Values"].isNull()) + productExtrasObject.values = valueProductExtrasProductExtra["Values"].asString(); productExtras_.push_back(productExtrasObject); } auto shopInfoNode = value["ShopInfo"]; - if(!shopInfoNode["Id"].isNull()) - shopInfo_.id = std::stol(shopInfoNode["Id"].asString()); if(!shopInfoNode["Name"].isNull()) shopInfo_.name = shopInfoNode["Name"].asString(); if(!shopInfoNode["Emails"].isNull()) shopInfo_.emails = shopInfoNode["Emails"].asString(); + if(!shopInfoNode["Id"].isNull()) + shopInfo_.id = std::stol(shopInfoNode["Id"].asString()); auto allWangWangsNode = shopInfoNode["WangWangs"]["WangWang"]; for (auto shopInfoNodeWangWangsWangWang : allWangWangsNode) { ShopInfo::WangWang wangWangObject; - if(!shopInfoNodeWangWangsWangWang["UserName"].isNull()) - wangWangObject.userName = shopInfoNodeWangWangsWangWang["UserName"].asString(); if(!shopInfoNodeWangWangsWangWang["Remark"].isNull()) wangWangObject.remark = shopInfoNodeWangWangsWangWang["Remark"].asString(); + if(!shopInfoNodeWangWangsWangWang["UserName"].isNull()) + wangWangObject.userName = shopInfoNodeWangWangsWangWang["UserName"].asString(); shopInfo_.wangWangs.push_back(wangWangObject); } auto allTelephones = shopInfoNode["Telephones"]["Telephone"]; for (auto value : allTelephones) shopInfo_.telephones.push_back(value.asString()); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["Name"].isNull()) - name_ = value["Name"].asString(); + if(!value["FrontCategoryId"].isNull()) + frontCategoryId_ = std::stol(value["FrontCategoryId"].asString()); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); if(!value["Type"].isNull()) type_ = value["Type"].asString(); if(!value["PicUrl"].isNull()) picUrl_ = value["PicUrl"].asString(); - if(!value["Description"].isNull()) - description_ = value["Description"].asString(); - if(!value["ShortDescription"].isNull()) - shortDescription_ = value["ShortDescription"].asString(); - if(!value["UseCount"].isNull()) - useCount_ = std::stol(value["UseCount"].asString()); if(!value["Score"].isNull()) score_ = std::stof(value["Score"].asString()); - if(!value["Status"].isNull()) - status_ = value["Status"].asString(); - if(!value["AuditStatus"].isNull()) - auditStatus_ = value["AuditStatus"].asString(); - if(!value["AuditFailMsg"].isNull()) - auditFailMsg_ = value["AuditFailMsg"].asString(); - if(!value["AuditTime"].isNull()) - auditTime_ = std::stol(value["AuditTime"].asString()); - if(!value["GmtCreated"].isNull()) - gmtCreated_ = std::stol(value["GmtCreated"].asString()); + if(!value["UseCount"].isNull()) + useCount_ = std::stol(value["UseCount"].asString()); if(!value["GmtModified"].isNull()) gmtModified_ = std::stol(value["GmtModified"].asString()); if(!value["SupplierPk"].isNull()) supplierPk_ = std::stol(value["SupplierPk"].asString()); - if(!value["FrontCategoryId"].isNull()) - frontCategoryId_ = std::stol(value["FrontCategoryId"].asString()); + if(!value["GmtCreated"].isNull()) + gmtCreated_ = std::stol(value["GmtCreated"].asString()); + if(!value["ShortDescription"].isNull()) + shortDescription_ = value["ShortDescription"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["AuditFailMsg"].isNull()) + auditFailMsg_ = value["AuditFailMsg"].asString(); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); + if(!value["AuditTime"].isNull()) + auditTime_ = std::stol(value["AuditTime"].asString()); + if(!value["AuditStatus"].isNull()) + auditStatus_ = value["AuditStatus"].asString(); } -std::string DescribeProductResult::getStatus()const -{ - return status_; -} - long DescribeProductResult::getFrontCategoryId()const { return frontCategoryId_; } +std::string DescribeProductResult::getStatus()const +{ + return status_; +} + std::string DescribeProductResult::getDescription()const { return description_; @@ -227,16 +227,16 @@ std::string DescribeProductResult::getCode()const return code_; } -std::string DescribeProductResult::getName()const -{ - return name_; -} - std::string DescribeProductResult::getShortDescription()const { return shortDescription_; } +std::string DescribeProductResult::getName()const +{ + return name_; +} + long DescribeProductResult::getSupplierPk()const { return supplierPk_; diff --git a/market/src/model/DescribeProductsRequest.cc b/market/src/model/DescribeProductsRequest.cc index a1b4aa9a0..28d495b8e 100644 --- a/market/src/model/DescribeProductsRequest.cc +++ b/market/src/model/DescribeProductsRequest.cc @@ -1,78 +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 - -using AlibabaCloud::Market::Model::DescribeProductsRequest; - -DescribeProductsRequest::DescribeProductsRequest() : - RpcServiceRequest("market", "2015-11-01", "DescribeProducts") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeProductsRequest::~DescribeProductsRequest() -{} - -std::vector DescribeProductsRequest::getFilter()const -{ - return filter_; + */ + +#include + +using AlibabaCloud::Market::Model::DescribeProductsRequest; + +DescribeProductsRequest::DescribeProductsRequest() + : RpcServiceRequest("market", "2015-11-01", "DescribeProducts") { + setMethod(HttpRequest::Method::Post); } -void DescribeProductsRequest::setFilter(const std::vector& filter) -{ - filter_ = filter; - for(int dep1 = 0; dep1!= filter.size(); dep1++) { - auto filterObj = filter.at(dep1); - std::string filterObjStr = "Filter." + std::to_string(dep1 + 1); - setParameter(filterObjStr + ".Value", filterObj.value); - setParameter(filterObjStr + ".Key", filterObj.key); - } +DescribeProductsRequest::~DescribeProductsRequest() {} + +std::string DescribeProductsRequest::getSearchTerm() const { + return searchTerm_; } -std::string DescribeProductsRequest::getSearchTerm()const -{ - return searchTerm_; +void DescribeProductsRequest::setSearchTerm(const std::string &searchTerm) { + searchTerm_ = searchTerm; + setParameter(std::string("SearchTerm"), searchTerm); } -void DescribeProductsRequest::setSearchTerm(const std::string& searchTerm) -{ - searchTerm_ = searchTerm; - setParameter("SearchTerm", searchTerm); +int DescribeProductsRequest::getPageNumber() const { + return pageNumber_; } -int DescribeProductsRequest::getPageSize()const -{ - return pageSize_; +void DescribeProductsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeProductsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +std::vector DescribeProductsRequest::getFilter() const { + return filter_; } -int DescribeProductsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeProductsRequest::setFilter(const std::vector &filter) { + filter_ = filter; + for(int dep1 = 0; dep1 != filter.size(); dep1++) { + auto filterObj = filter.at(dep1); + std::string filterObjStr = std::string("Filter") + "." + std::to_string(dep1 + 1); + setParameter(filterObjStr + ".Value", filterObj.value); + setParameter(filterObjStr + ".Key", filterObj.key); + } } -void DescribeProductsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeProductsRequest::getPageSize() const { + return pageSize_; +} + +void DescribeProductsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/market/src/model/DescribeProductsResult.cc b/market/src/model/DescribeProductsResult.cc index cbc7df548..acdac16c7 100644 --- a/market/src/model/DescribeProductsResult.cc +++ b/market/src/model/DescribeProductsResult.cc @@ -43,36 +43,38 @@ void DescribeProductsResult::parse(const std::string &payload) for (auto valueProductItemsProductItem : allProductItemsNode) { ProductItem productItemsObject; - if(!valueProductItemsProductItem["Code"].isNull()) - productItemsObject.code = valueProductItemsProductItem["Code"].asString(); - if(!valueProductItemsProductItem["Name"].isNull()) - productItemsObject.name = valueProductItemsProductItem["Name"].asString(); - if(!valueProductItemsProductItem["CategoryId"].isNull()) - productItemsObject.categoryId = std::stol(valueProductItemsProductItem["CategoryId"].asString()); - if(!valueProductItemsProductItem["SupplierId"].isNull()) - productItemsObject.supplierId = std::stol(valueProductItemsProductItem["SupplierId"].asString()); - if(!valueProductItemsProductItem["SupplierName"].isNull()) - productItemsObject.supplierName = valueProductItemsProductItem["SupplierName"].asString(); - if(!valueProductItemsProductItem["ShortDescription"].isNull()) - productItemsObject.shortDescription = valueProductItemsProductItem["ShortDescription"].asString(); - if(!valueProductItemsProductItem["Tags"].isNull()) - productItemsObject.tags = valueProductItemsProductItem["Tags"].asString(); - if(!valueProductItemsProductItem["SuggestedPrice"].isNull()) - productItemsObject.suggestedPrice = valueProductItemsProductItem["SuggestedPrice"].asString(); - if(!valueProductItemsProductItem["TargetUrl"].isNull()) - productItemsObject.targetUrl = valueProductItemsProductItem["TargetUrl"].asString(); - if(!valueProductItemsProductItem["ImageUrl"].isNull()) - productItemsObject.imageUrl = valueProductItemsProductItem["ImageUrl"].asString(); - if(!valueProductItemsProductItem["Score"].isNull()) - productItemsObject.score = valueProductItemsProductItem["Score"].asString(); - if(!valueProductItemsProductItem["OperationSystem"].isNull()) - productItemsObject.operationSystem = valueProductItemsProductItem["OperationSystem"].asString(); - if(!valueProductItemsProductItem["WarrantyDate"].isNull()) - productItemsObject.warrantyDate = valueProductItemsProductItem["WarrantyDate"].asString(); - if(!valueProductItemsProductItem["DeliveryDate"].isNull()) - productItemsObject.deliveryDate = valueProductItemsProductItem["DeliveryDate"].asString(); + if(!valueProductItemsProductItem["PriceInfo"].isNull()) + productItemsObject.priceInfo = valueProductItemsProductItem["PriceInfo"].asString(); if(!valueProductItemsProductItem["DeliveryWay"].isNull()) productItemsObject.deliveryWay = valueProductItemsProductItem["DeliveryWay"].asString(); + if(!valueProductItemsProductItem["ImageUrl"].isNull()) + productItemsObject.imageUrl = valueProductItemsProductItem["ImageUrl"].asString(); + if(!valueProductItemsProductItem["WarrantyDate"].isNull()) + productItemsObject.warrantyDate = valueProductItemsProductItem["WarrantyDate"].asString(); + if(!valueProductItemsProductItem["Tags"].isNull()) + productItemsObject.tags = valueProductItemsProductItem["Tags"].asString(); + if(!valueProductItemsProductItem["Score"].isNull()) + productItemsObject.score = valueProductItemsProductItem["Score"].asString(); + if(!valueProductItemsProductItem["SupplierId"].isNull()) + productItemsObject.supplierId = std::stol(valueProductItemsProductItem["SupplierId"].asString()); + if(!valueProductItemsProductItem["OperationSystem"].isNull()) + productItemsObject.operationSystem = valueProductItemsProductItem["OperationSystem"].asString(); + if(!valueProductItemsProductItem["ShortDescription"].isNull()) + productItemsObject.shortDescription = valueProductItemsProductItem["ShortDescription"].asString(); + if(!valueProductItemsProductItem["DeliveryDate"].isNull()) + productItemsObject.deliveryDate = valueProductItemsProductItem["DeliveryDate"].asString(); + if(!valueProductItemsProductItem["TargetUrl"].isNull()) + productItemsObject.targetUrl = valueProductItemsProductItem["TargetUrl"].asString(); + if(!valueProductItemsProductItem["Code"].isNull()) + productItemsObject.code = valueProductItemsProductItem["Code"].asString(); + if(!valueProductItemsProductItem["CategoryId"].isNull()) + productItemsObject.categoryId = std::stol(valueProductItemsProductItem["CategoryId"].asString()); + if(!valueProductItemsProductItem["Name"].isNull()) + productItemsObject.name = valueProductItemsProductItem["Name"].asString(); + if(!valueProductItemsProductItem["SuggestedPrice"].isNull()) + productItemsObject.suggestedPrice = valueProductItemsProductItem["SuggestedPrice"].asString(); + if(!valueProductItemsProductItem["SupplierName"].isNull()) + productItemsObject.supplierName = valueProductItemsProductItem["SupplierName"].asString(); productItems_.push_back(productItemsObject); } if(!value["PageNumber"].isNull()) diff --git a/market/src/model/DescribeProjectAttachmentsRequest.cc b/market/src/model/DescribeProjectAttachmentsRequest.cc new file mode 100644 index 000000000..f1126b1bf --- /dev/null +++ b/market/src/model/DescribeProjectAttachmentsRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Market::Model::DescribeProjectAttachmentsRequest; + +DescribeProjectAttachmentsRequest::DescribeProjectAttachmentsRequest() + : RpcServiceRequest("market", "2015-11-01", "DescribeProjectAttachments") { + setMethod(HttpRequest::Method::Post); +} + +DescribeProjectAttachmentsRequest::~DescribeProjectAttachmentsRequest() {} + +std::string DescribeProjectAttachmentsRequest::getInstanceId() const { + return instanceId_; +} + +void DescribeProjectAttachmentsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/market/src/model/DescribeProjectAttachmentsResult.cc b/market/src/model/DescribeProjectAttachmentsResult.cc new file mode 100644 index 000000000..09246f6b2 --- /dev/null +++ b/market/src/model/DescribeProjectAttachmentsResult.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::Market; +using namespace AlibabaCloud::Market::Model; + +DescribeProjectAttachmentsResult::DescribeProjectAttachmentsResult() : + ServiceResult() +{} + +DescribeProjectAttachmentsResult::DescribeProjectAttachmentsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeProjectAttachmentsResult::~DescribeProjectAttachmentsResult() +{} + +void DescribeProjectAttachmentsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allResultNode = value["Result"]["ProjectAttachment"]; + for (auto valueResultProjectAttachment : allResultNode) + { + ProjectAttachment resultObject; + if(!valueResultProjectAttachment["FileLinkGmtExpired"].isNull()) + resultObject.fileLinkGmtExpired = std::stol(valueResultProjectAttachment["FileLinkGmtExpired"].asString()); + if(!valueResultProjectAttachment["StepNo"].isNull()) + resultObject.stepNo = std::stoi(valueResultProjectAttachment["StepNo"].asString()); + if(!valueResultProjectAttachment["AttachmentToken"].isNull()) + resultObject.attachmentToken = valueResultProjectAttachment["AttachmentToken"].asString(); + if(!valueResultProjectAttachment["FileName"].isNull()) + resultObject.fileName = valueResultProjectAttachment["FileName"].asString(); + if(!valueResultProjectAttachment["OperatorRole"].isNull()) + resultObject.operatorRole = valueResultProjectAttachment["OperatorRole"].asString(); + if(!valueResultProjectAttachment["NodeName"].isNull()) + resultObject.nodeName = valueResultProjectAttachment["NodeName"].asString(); + if(!valueResultProjectAttachment["OperatorName"].isNull()) + resultObject.operatorName = valueResultProjectAttachment["OperatorName"].asString(); + if(!valueResultProjectAttachment["FileLink"].isNull()) + resultObject.fileLink = valueResultProjectAttachment["FileLink"].asString(); + if(!valueResultProjectAttachment["GmtCreate"].isNull()) + resultObject.gmtCreate = std::stol(valueResultProjectAttachment["GmtCreate"].asString()); + if(!valueResultProjectAttachment["FileSuffix"].isNull()) + resultObject.fileSuffix = valueResultProjectAttachment["FileSuffix"].asString(); + if(!valueResultProjectAttachment["Operator"].isNull()) + resultObject._operator = std::stol(valueResultProjectAttachment["Operator"].asString()); + if(!valueResultProjectAttachment["Content"].isNull()) + resultObject.content = valueResultProjectAttachment["Content"].asString(); + if(!valueResultProjectAttachment["NodeId"].isNull()) + resultObject.nodeId = std::stol(valueResultProjectAttachment["NodeId"].asString()); + if(!valueResultProjectAttachment["AttachmentType"].isNull()) + resultObject.attachmentType = valueResultProjectAttachment["AttachmentType"].asString(); + if(!valueResultProjectAttachment["FileSize"].isNull()) + resultObject.fileSize = std::stol(valueResultProjectAttachment["FileSize"].asString()); + result_.push_back(resultObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +bool DescribeProjectAttachmentsResult::getSuccess()const +{ + return success_; +} + +std::vector DescribeProjectAttachmentsResult::getResult()const +{ + return result_; +} + diff --git a/market/src/model/DescribeProjectInfoRequest.cc b/market/src/model/DescribeProjectInfoRequest.cc new file mode 100644 index 000000000..764e4b10f --- /dev/null +++ b/market/src/model/DescribeProjectInfoRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Market::Model::DescribeProjectInfoRequest; + +DescribeProjectInfoRequest::DescribeProjectInfoRequest() + : RpcServiceRequest("market", "2015-11-01", "DescribeProjectInfo") { + setMethod(HttpRequest::Method::Post); +} + +DescribeProjectInfoRequest::~DescribeProjectInfoRequest() {} + +std::string DescribeProjectInfoRequest::getInstanceId() const { + return instanceId_; +} + +void DescribeProjectInfoRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/market/src/model/DescribeProjectInfoResult.cc b/market/src/model/DescribeProjectInfoResult.cc new file mode 100644 index 000000000..ae058435f --- /dev/null +++ b/market/src/model/DescribeProjectInfoResult.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::Market; +using namespace AlibabaCloud::Market::Model; + +DescribeProjectInfoResult::DescribeProjectInfoResult() : + ServiceResult() +{} + +DescribeProjectInfoResult::DescribeProjectInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeProjectInfoResult::~DescribeProjectInfoResult() +{} + +void DescribeProjectInfoResult::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["ProductName"].isNull()) + result_.productName = resultNode["ProductName"].asString(); + if(!resultNode["ProjectStatus"].isNull()) + result_.projectStatus = resultNode["ProjectStatus"].asString(); + if(!resultNode["CustomerAliUid"].isNull()) + result_.customerAliUid = std::stol(resultNode["CustomerAliUid"].asString()); + if(!resultNode["TemplateType"].isNull()) + result_.templateType = resultNode["TemplateType"].asString(); + if(!resultNode["InstanceId"].isNull()) + result_.instanceId = resultNode["InstanceId"].asString(); + if(!resultNode["ProductSkuName"].isNull()) + result_.productSkuName = resultNode["ProductSkuName"].asString(); + if(!resultNode["FinalStepNo"].isNull()) + result_.finalStepNo = std::stoi(resultNode["FinalStepNo"].asString()); + if(!resultNode["CurrentStepNo"].isNull()) + result_.currentStepNo = std::stoi(resultNode["CurrentStepNo"].asString()); + if(!resultNode["GmtExpired"].isNull()) + result_.gmtExpired = std::stol(resultNode["GmtExpired"].asString()); + if(!resultNode["GmtFinished"].isNull()) + result_.gmtFinished = std::stol(resultNode["GmtFinished"].asString()); + if(!resultNode["ProductSkuCode"].isNull()) + result_.productSkuCode = resultNode["ProductSkuCode"].asString(); + if(!resultNode["GmtCreate"].isNull()) + result_.gmtCreate = std::stol(resultNode["GmtCreate"].asString()); + if(!resultNode["SupplierAliUid"].isNull()) + result_.supplierAliUid = std::stol(resultNode["SupplierAliUid"].asString()); + if(!resultNode["FinishType"].isNull()) + result_.finishType = resultNode["FinishType"].asString(); + if(!resultNode["TemplateId"].isNull()) + result_.templateId = std::stol(resultNode["TemplateId"].asString()); + if(!resultNode["OrderId"].isNull()) + result_.orderId = std::stol(resultNode["OrderId"].asString()); + if(!resultNode["ProductCode"].isNull()) + result_.productCode = resultNode["ProductCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +bool DescribeProjectInfoResult::getSuccess()const +{ + return success_; +} + +DescribeProjectInfoResult::Result DescribeProjectInfoResult::getResult()const +{ + return result_; +} + diff --git a/market/src/model/DescribeProjectMessagesRequest.cc b/market/src/model/DescribeProjectMessagesRequest.cc new file mode 100644 index 000000000..245157361 --- /dev/null +++ b/market/src/model/DescribeProjectMessagesRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Market::Model::DescribeProjectMessagesRequest; + +DescribeProjectMessagesRequest::DescribeProjectMessagesRequest() + : RpcServiceRequest("market", "2015-11-01", "DescribeProjectMessages") { + setMethod(HttpRequest::Method::Post); +} + +DescribeProjectMessagesRequest::~DescribeProjectMessagesRequest() {} + +std::string DescribeProjectMessagesRequest::getInstanceId() const { + return instanceId_; +} + +void DescribeProjectMessagesRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +int DescribeProjectMessagesRequest::getPageIndex() const { + return pageIndex_; +} + +void DescribeProjectMessagesRequest::setPageIndex(int pageIndex) { + pageIndex_ = pageIndex; + setParameter(std::string("PageIndex"), std::to_string(pageIndex)); +} + diff --git a/market/src/model/DescribeProjectMessagesResult.cc b/market/src/model/DescribeProjectMessagesResult.cc new file mode 100644 index 000000000..acaf95e12 --- /dev/null +++ b/market/src/model/DescribeProjectMessagesResult.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::Market; +using namespace AlibabaCloud::Market::Model; + +DescribeProjectMessagesResult::DescribeProjectMessagesResult() : + ServiceResult() +{} + +DescribeProjectMessagesResult::DescribeProjectMessagesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeProjectMessagesResult::~DescribeProjectMessagesResult() +{} + +void DescribeProjectMessagesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allResultNode = value["Result"]["ProjectMessage"]; + for (auto valueResultProjectMessage : allResultNode) + { + ProjectMessage resultObject; + if(!valueResultProjectMessage["GmtCreate"].isNull()) + resultObject.gmtCreate = std::stol(valueResultProjectMessage["GmtCreate"].asString()); + if(!valueResultProjectMessage["Operator"].isNull()) + resultObject._operator = std::stol(valueResultProjectMessage["Operator"].asString()); + if(!valueResultProjectMessage["OperatorRole"].isNull()) + resultObject.operatorRole = valueResultProjectMessage["OperatorRole"].asString(); + if(!valueResultProjectMessage["Content"].isNull()) + resultObject.content = valueResultProjectMessage["Content"].asString(); + if(!valueResultProjectMessage["OperatorName"].isNull()) + resultObject.operatorName = valueResultProjectMessage["OperatorName"].asString(); + result_.push_back(resultObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +long DescribeProjectMessagesResult::getTotalCount()const +{ + return totalCount_; +} + +bool DescribeProjectMessagesResult::getSuccess()const +{ + return success_; +} + +std::vector DescribeProjectMessagesResult::getResult()const +{ + return result_; +} + diff --git a/market/src/model/DescribeProjectNodesRequest.cc b/market/src/model/DescribeProjectNodesRequest.cc new file mode 100644 index 000000000..859371bcb --- /dev/null +++ b/market/src/model/DescribeProjectNodesRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Market::Model::DescribeProjectNodesRequest; + +DescribeProjectNodesRequest::DescribeProjectNodesRequest() + : RpcServiceRequest("market", "2015-11-01", "DescribeProjectNodes") { + setMethod(HttpRequest::Method::Post); +} + +DescribeProjectNodesRequest::~DescribeProjectNodesRequest() {} + +std::string DescribeProjectNodesRequest::getInstanceId() const { + return instanceId_; +} + +void DescribeProjectNodesRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/market/src/model/DescribeProjectNodesResult.cc b/market/src/model/DescribeProjectNodesResult.cc new file mode 100644 index 000000000..aa4bb0919 --- /dev/null +++ b/market/src/model/DescribeProjectNodesResult.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Market; +using namespace AlibabaCloud::Market::Model; + +DescribeProjectNodesResult::DescribeProjectNodesResult() : + ServiceResult() +{} + +DescribeProjectNodesResult::DescribeProjectNodesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeProjectNodesResult::~DescribeProjectNodesResult() +{} + +void DescribeProjectNodesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allResultNode = value["Result"]["ProjectNode"]; + for (auto valueResultProjectNode : allResultNode) + { + ProjectNode resultObject; + if(!valueResultProjectNode["NextNodeId"].isNull()) + resultObject.nextNodeId = std::stol(valueResultProjectNode["NextNodeId"].asString()); + if(!valueResultProjectNode["StepNo"].isNull()) + resultObject.stepNo = std::stoi(valueResultProjectNode["StepNo"].asString()); + if(!valueResultProjectNode["AutoFinishNode"].isNull()) + resultObject.autoFinishNode = valueResultProjectNode["AutoFinishNode"].asString() == "true"; + if(!valueResultProjectNode["FinalStepNo"].isNull()) + resultObject.finalStepNo = std::stoi(valueResultProjectNode["FinalStepNo"].asString()); + if(!valueResultProjectNode["PreviousNodeId"].isNull()) + resultObject.previousNodeId = std::stol(valueResultProjectNode["PreviousNodeId"].asString()); + if(!valueResultProjectNode["ParentNodeId"].isNull()) + resultObject.parentNodeId = std::stol(valueResultProjectNode["ParentNodeId"].asString()); + if(!valueResultProjectNode["GmtExpired"].isNull()) + resultObject.gmtExpired = std::stol(valueResultProjectNode["GmtExpired"].asString()); + if(!valueResultProjectNode["OperatorRole"].isNull()) + resultObject.operatorRole = valueResultProjectNode["OperatorRole"].asString(); + if(!valueResultProjectNode["GmtStart"].isNull()) + resultObject.gmtStart = std::stol(valueResultProjectNode["GmtStart"].asString()); + if(!valueResultProjectNode["NodeStatus"].isNull()) + resultObject.nodeStatus = valueResultProjectNode["NodeStatus"].asString(); + if(!valueResultProjectNode["NodeName"].isNull()) + resultObject.nodeName = valueResultProjectNode["NodeName"].asString(); + if(!valueResultProjectNode["GmtFinished"].isNull()) + resultObject.gmtFinished = std::stol(valueResultProjectNode["GmtFinished"].asString()); + if(!valueResultProjectNode["AllowRollbackNode"].isNull()) + resultObject.allowRollbackNode = valueResultProjectNode["AllowRollbackNode"].asString() == "true"; + if(!valueResultProjectNode["TemplateForm"].isNull()) + resultObject.templateForm = valueResultProjectNode["TemplateForm"].asString(); + if(!valueResultProjectNode["NeedAttachment"].isNull()) + resultObject.needAttachment = valueResultProjectNode["NeedAttachment"].asString() == "true"; + if(!valueResultProjectNode["NodeId"].isNull()) + resultObject.nodeId = std::stol(valueResultProjectNode["NodeId"].asString()); + result_.push_back(resultObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +bool DescribeProjectNodesResult::getSuccess()const +{ + return success_; +} + +std::vector DescribeProjectNodesResult::getResult()const +{ + return result_; +} + diff --git a/market/src/model/DescribeProjectOperateLogsRequest.cc b/market/src/model/DescribeProjectOperateLogsRequest.cc new file mode 100644 index 000000000..9bf54922d --- /dev/null +++ b/market/src/model/DescribeProjectOperateLogsRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Market::Model::DescribeProjectOperateLogsRequest; + +DescribeProjectOperateLogsRequest::DescribeProjectOperateLogsRequest() + : RpcServiceRequest("market", "2015-11-01", "DescribeProjectOperateLogs") { + setMethod(HttpRequest::Method::Post); +} + +DescribeProjectOperateLogsRequest::~DescribeProjectOperateLogsRequest() {} + +std::string DescribeProjectOperateLogsRequest::getInstanceId() const { + return instanceId_; +} + +void DescribeProjectOperateLogsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/market/src/model/DescribeProjectOperateLogsResult.cc b/market/src/model/DescribeProjectOperateLogsResult.cc new file mode 100644 index 000000000..0482b9abd --- /dev/null +++ b/market/src/model/DescribeProjectOperateLogsResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Market; +using namespace AlibabaCloud::Market::Model; + +DescribeProjectOperateLogsResult::DescribeProjectOperateLogsResult() : + ServiceResult() +{} + +DescribeProjectOperateLogsResult::DescribeProjectOperateLogsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeProjectOperateLogsResult::~DescribeProjectOperateLogsResult() +{} + +void DescribeProjectOperateLogsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allResultNode = value["Result"]["ProjectMessage"]; + for (auto valueResultProjectMessage : allResultNode) + { + ProjectMessage resultObject; + if(!valueResultProjectMessage["GmtCreate"].isNull()) + resultObject.gmtCreate = std::stol(valueResultProjectMessage["GmtCreate"].asString()); + if(!valueResultProjectMessage["Operator"].isNull()) + resultObject._operator = std::stol(valueResultProjectMessage["Operator"].asString()); + if(!valueResultProjectMessage["OperatorRole"].isNull()) + resultObject.operatorRole = valueResultProjectMessage["OperatorRole"].asString(); + if(!valueResultProjectMessage["Description"].isNull()) + resultObject.description = valueResultProjectMessage["Description"].asString(); + if(!valueResultProjectMessage["OperatorName"].isNull()) + resultObject.operatorName = valueResultProjectMessage["OperatorName"].asString(); + result_.push_back(resultObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +bool DescribeProjectOperateLogsResult::getSuccess()const +{ + return success_; +} + +std::vector DescribeProjectOperateLogsResult::getResult()const +{ + return result_; +} + diff --git a/market/src/model/DescribeRateRequest.cc b/market/src/model/DescribeRateRequest.cc deleted file mode 100644 index 92c0e28fe..000000000 --- a/market/src/model/DescribeRateRequest.cc +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Market::Model::DescribeRateRequest; - -DescribeRateRequest::DescribeRateRequest() : - RpcServiceRequest("market", "2015-11-01", "DescribeRate") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeRateRequest::~DescribeRateRequest() -{} - -std::string DescribeRateRequest::getOrderId()const -{ - return orderId_; -} - -void DescribeRateRequest::setOrderId(const std::string& orderId) -{ - orderId_ = orderId; - setParameter("OrderId", orderId); -} - diff --git a/market/src/model/DescribeRateResult.cc b/market/src/model/DescribeRateResult.cc deleted file mode 100644 index f9e7aa995..000000000 --- a/market/src/model/DescribeRateResult.cc +++ /dev/null @@ -1,149 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Market; -using namespace AlibabaCloud::Market::Model; - -DescribeRateResult::DescribeRateResult() : - ServiceResult() -{} - -DescribeRateResult::DescribeRateResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeRateResult::~DescribeRateResult() -{} - -void DescribeRateResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["Id"].isNull()) - id_ = std::stol(value["Id"].asString()); - if(!value["OrderId"].isNull()) - orderId_ = value["OrderId"].asString(); - if(!value["InstanceId"].isNull()) - instanceId_ = value["InstanceId"].asString(); - if(!value["AliUid"].isNull()) - aliUid_ = std::stol(value["AliUid"].asString()); - if(!value["ProductId"].isNull()) - productId_ = value["ProductId"].asString(); - if(!value["Score"].isNull()) - score_ = value["Score"].asString(); - if(!value["Content"].isNull()) - content_ = value["Content"].asString(); - if(!value["GmtCreated"].isNull()) - gmtCreated_ = std::stol(value["GmtCreated"].asString()); - if(!value["Explaintion"].isNull()) - explaintion_ = value["Explaintion"].asString(); - if(!value["GmtExplaintion"].isNull()) - gmtExplaintion_ = std::stol(value["GmtExplaintion"].asString()); - if(!value["AdditionalContent"].isNull()) - additionalContent_ = value["AdditionalContent"].asString(); - if(!value["GmtAdditional"].isNull()) - gmtAdditional_ = std::stol(value["GmtAdditional"].asString()); - if(!value["AdditionalExplaintion"].isNull()) - additionalExplaintion_ = value["AdditionalExplaintion"].asString(); - if(!value["GmtAdditionalExplaintion"].isNull()) - gmtAdditionalExplaintion_ = std::stol(value["GmtAdditionalExplaintion"].asString()); - if(!value["Type"].isNull()) - type_ = value["Type"].asString(); - -} - -std::string DescribeRateResult::getInstanceId()const -{ - return instanceId_; -} - -std::string DescribeRateResult::getExplaintion()const -{ - return explaintion_; -} - -long DescribeRateResult::getGmtExplaintion()const -{ - return gmtExplaintion_; -} - -std::string DescribeRateResult::getProductId()const -{ - return productId_; -} - -long DescribeRateResult::getGmtCreated()const -{ - return gmtCreated_; -} - -std::string DescribeRateResult::getAdditionalContent()const -{ - return additionalContent_; -} - -std::string DescribeRateResult::getOrderId()const -{ - return orderId_; -} - -long DescribeRateResult::getGmtAdditionalExplaintion()const -{ - return gmtAdditionalExplaintion_; -} - -std::string DescribeRateResult::getScore()const -{ - return score_; -} - -std::string DescribeRateResult::getType()const -{ - return type_; -} - -std::string DescribeRateResult::getContent()const -{ - return content_; -} - -std::string DescribeRateResult::getAdditionalExplaintion()const -{ - return additionalExplaintion_; -} - -long DescribeRateResult::getId()const -{ - return id_; -} - -long DescribeRateResult::getGmtAdditional()const -{ - return gmtAdditional_; -} - -long DescribeRateResult::getAliUid()const -{ - return aliUid_; -} - diff --git a/market/src/model/FinishCurrentProjectNodeRequest.cc b/market/src/model/FinishCurrentProjectNodeRequest.cc new file mode 100644 index 000000000..f1bafdf88 --- /dev/null +++ b/market/src/model/FinishCurrentProjectNodeRequest.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::Market::Model::FinishCurrentProjectNodeRequest; + +FinishCurrentProjectNodeRequest::FinishCurrentProjectNodeRequest() + : RpcServiceRequest("market", "2015-11-01", "FinishCurrentProjectNode") { + setMethod(HttpRequest::Method::Post); +} + +FinishCurrentProjectNodeRequest::~FinishCurrentProjectNodeRequest() {} + +std::string FinishCurrentProjectNodeRequest::getTemplateForm() const { + return templateForm_; +} + +void FinishCurrentProjectNodeRequest::setTemplateForm(const std::string &templateForm) { + templateForm_ = templateForm; + setParameter(std::string("TemplateForm"), templateForm); +} + +std::string FinishCurrentProjectNodeRequest::getInstanceId() const { + return instanceId_; +} + +void FinishCurrentProjectNodeRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string FinishCurrentProjectNodeRequest::getRemark() const { + return remark_; +} + +void FinishCurrentProjectNodeRequest::setRemark(const std::string &remark) { + remark_ = remark; + setParameter(std::string("Remark"), remark); +} + +long FinishCurrentProjectNodeRequest::getNodeId() const { + return nodeId_; +} + +void FinishCurrentProjectNodeRequest::setNodeId(long nodeId) { + nodeId_ = nodeId; + setParameter(std::string("NodeId"), std::to_string(nodeId)); +} + diff --git a/market/src/model/UpdateCommodityResult.cc b/market/src/model/FinishCurrentProjectNodeResult.cc similarity index 64% rename from market/src/model/UpdateCommodityResult.cc rename to market/src/model/FinishCurrentProjectNodeResult.cc index c8acf427c..c5a940e86 100644 --- a/market/src/model/UpdateCommodityResult.cc +++ b/market/src/model/FinishCurrentProjectNodeResult.cc @@ -14,38 +14,45 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Market; using namespace AlibabaCloud::Market::Model; -UpdateCommodityResult::UpdateCommodityResult() : +FinishCurrentProjectNodeResult::FinishCurrentProjectNodeResult() : ServiceResult() {} -UpdateCommodityResult::UpdateCommodityResult(const std::string &payload) : +FinishCurrentProjectNodeResult::FinishCurrentProjectNodeResult(const std::string &payload) : ServiceResult() { parse(payload); } -UpdateCommodityResult::~UpdateCommodityResult() +FinishCurrentProjectNodeResult::~FinishCurrentProjectNodeResult() {} -void UpdateCommodityResult::parse(const std::string &payload) +void FinishCurrentProjectNodeResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["Result"].isNull()) + result_ = value["Result"].asString() == "true"; if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; } -bool UpdateCommodityResult::getSuccess()const +bool FinishCurrentProjectNodeResult::getSuccess()const { return success_; } +bool FinishCurrentProjectNodeResult::getResult()const +{ + return result_; +} + diff --git a/market/src/model/NotifyContractEventRequest.cc b/market/src/model/NotifyContractEventRequest.cc deleted file mode 100644 index 31d29a27e..000000000 --- a/market/src/model/NotifyContractEventRequest.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Market::Model::NotifyContractEventRequest; - -NotifyContractEventRequest::NotifyContractEventRequest() : - RpcServiceRequest("market", "2015-11-01", "NotifyContractEvent") -{ - setMethod(HttpRequest::Method::Post); -} - -NotifyContractEventRequest::~NotifyContractEventRequest() -{} - -std::string NotifyContractEventRequest::getEventMessage()const -{ - return eventMessage_; -} - -void NotifyContractEventRequest::setEventMessage(const std::string& eventMessage) -{ - eventMessage_ = eventMessage; - setParameter("EventMessage", eventMessage); -} - -std::string NotifyContractEventRequest::getEventType()const -{ - return eventType_; -} - -void NotifyContractEventRequest::setEventType(const std::string& eventType) -{ - eventType_ = eventType; - setParameter("EventType", eventType); -} - diff --git a/market/src/model/PauseProjectRequest.cc b/market/src/model/PauseProjectRequest.cc new file mode 100644 index 000000000..800f79db2 --- /dev/null +++ b/market/src/model/PauseProjectRequest.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 + +using AlibabaCloud::Market::Model::PauseProjectRequest; + +PauseProjectRequest::PauseProjectRequest() + : RpcServiceRequest("market", "2015-11-01", "PauseProject") { + setMethod(HttpRequest::Method::Post); +} + +PauseProjectRequest::~PauseProjectRequest() {} + +std::string PauseProjectRequest::getInstanceId() const { + return instanceId_; +} + +void PauseProjectRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string PauseProjectRequest::getRemark() const { + return remark_; +} + +void PauseProjectRequest::setRemark(const std::string &remark) { + remark_ = remark; + setParameter(std::string("Remark"), remark); +} + +long PauseProjectRequest::getNodeId() const { + return nodeId_; +} + +void PauseProjectRequest::setNodeId(long nodeId) { + nodeId_ = nodeId; + setParameter(std::string("NodeId"), std::to_string(nodeId)); +} + diff --git a/market/src/model/NotifyContractEventResult.cc b/market/src/model/PauseProjectResult.cc similarity index 69% rename from market/src/model/NotifyContractEventResult.cc rename to market/src/model/PauseProjectResult.cc index f5283cbe1..457f2da86 100644 --- a/market/src/model/NotifyContractEventResult.cc +++ b/market/src/model/PauseProjectResult.cc @@ -14,38 +14,45 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Market; using namespace AlibabaCloud::Market::Model; -NotifyContractEventResult::NotifyContractEventResult() : +PauseProjectResult::PauseProjectResult() : ServiceResult() {} -NotifyContractEventResult::NotifyContractEventResult(const std::string &payload) : +PauseProjectResult::PauseProjectResult(const std::string &payload) : ServiceResult() { parse(payload); } -NotifyContractEventResult::~NotifyContractEventResult() +PauseProjectResult::~PauseProjectResult() {} -void NotifyContractEventResult::parse(const std::string &payload) +void PauseProjectResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["Result"].isNull()) + result_ = value["Result"].asString() == "true"; if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; } -bool NotifyContractEventResult::getSuccess()const +bool PauseProjectResult::getSuccess()const { return success_; } +bool PauseProjectResult::getResult()const +{ + return result_; +} + diff --git a/market/src/model/PushMeteringDataRequest.cc b/market/src/model/PushMeteringDataRequest.cc index 54b42dbfb..703403dd8 100644 --- a/market/src/model/PushMeteringDataRequest.cc +++ b/market/src/model/PushMeteringDataRequest.cc @@ -1,40 +1,36 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Market::Model::PushMeteringDataRequest; - -PushMeteringDataRequest::PushMeteringDataRequest() : - RpcServiceRequest("market", "2015-11-01", "PushMeteringData") -{ - setMethod(HttpRequest::Method::Post); -} - -PushMeteringDataRequest::~PushMeteringDataRequest() -{} - -std::string PushMeteringDataRequest::getMetering()const -{ - return metering_; + */ + +#include + +using AlibabaCloud::Market::Model::PushMeteringDataRequest; + +PushMeteringDataRequest::PushMeteringDataRequest() + : RpcServiceRequest("market", "2015-11-01", "PushMeteringData") { + setMethod(HttpRequest::Method::Post); } -void PushMeteringDataRequest::setMetering(const std::string& metering) -{ - metering_ = metering; - setParameter("Metering", metering); +PushMeteringDataRequest::~PushMeteringDataRequest() {} + +std::string PushMeteringDataRequest::getMetering() const { + return metering_; +} + +void PushMeteringDataRequest::setMetering(const std::string &metering) { + metering_ = metering; + setParameter(std::string("Metering"), metering); } diff --git a/market/src/model/QueryMarketCategoriesRequest.cc b/market/src/model/QueryMarketCategoriesRequest.cc deleted file mode 100644 index 0377b0931..000000000 --- a/market/src/model/QueryMarketCategoriesRequest.cc +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Market::Model::QueryMarketCategoriesRequest; - -QueryMarketCategoriesRequest::QueryMarketCategoriesRequest() : - RpcServiceRequest("market", "2015-11-01", "QueryMarketCategories") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryMarketCategoriesRequest::~QueryMarketCategoriesRequest() -{} - -std::string QueryMarketCategoriesRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void QueryMarketCategoriesRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/market/src/model/QueryMarketCategoriesResult.cc b/market/src/model/QueryMarketCategoriesResult.cc deleted file mode 100644 index 208f26778..000000000 --- a/market/src/model/QueryMarketCategoriesResult.cc +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Market; -using namespace AlibabaCloud::Market::Model; - -QueryMarketCategoriesResult::QueryMarketCategoriesResult() : - ServiceResult() -{} - -QueryMarketCategoriesResult::QueryMarketCategoriesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -QueryMarketCategoriesResult::~QueryMarketCategoriesResult() -{} - -void QueryMarketCategoriesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allCategoriesNode = value["Categories"]["Category"]; - for (auto valueCategoriesCategory : allCategoriesNode) - { - Category categoriesObject; - if(!valueCategoriesCategory["Id"].isNull()) - categoriesObject.id = std::stol(valueCategoriesCategory["Id"].asString()); - if(!valueCategoriesCategory["CategoryCode"].isNull()) - categoriesObject.categoryCode = valueCategoriesCategory["CategoryCode"].asString(); - if(!valueCategoriesCategory["CategoryName"].isNull()) - categoriesObject.categoryName = valueCategoriesCategory["CategoryName"].asString(); - auto allChildCategoriesNode = allCategoriesNode["ChildCategories"]["ChildCategory"]; - for (auto allCategoriesNodeChildCategoriesChildCategory : allChildCategoriesNode) - { - Category::ChildCategory childCategoriesObject; - if(!allCategoriesNodeChildCategoriesChildCategory["Id"].isNull()) - childCategoriesObject.id = std::stol(allCategoriesNodeChildCategoriesChildCategory["Id"].asString()); - if(!allCategoriesNodeChildCategoriesChildCategory["CategoryCode"].isNull()) - childCategoriesObject.categoryCode = allCategoriesNodeChildCategoriesChildCategory["CategoryCode"].asString(); - if(!allCategoriesNodeChildCategoriesChildCategory["CategoryName"].isNull()) - childCategoriesObject.categoryName = allCategoriesNodeChildCategoriesChildCategory["CategoryName"].asString(); - categoriesObject.childCategories.push_back(childCategoriesObject); - } - categories_.push_back(categoriesObject); - } - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); - -} - -int QueryMarketCategoriesResult::getTotalCount()const -{ - return totalCount_; -} - -int QueryMarketCategoriesResult::getPageSize()const -{ - return pageSize_; -} - -std::vector QueryMarketCategoriesResult::getCategories()const -{ - return categories_; -} - -int QueryMarketCategoriesResult::getPageNumber()const -{ - return pageNumber_; -} - diff --git a/market/src/model/QueryMarketImagesRequest.cc b/market/src/model/QueryMarketImagesRequest.cc deleted file mode 100644 index 57a8177fd..000000000 --- a/market/src/model/QueryMarketImagesRequest.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Market::Model::QueryMarketImagesRequest; - -QueryMarketImagesRequest::QueryMarketImagesRequest() : - RpcServiceRequest("market", "2015-11-01", "QueryMarketImages") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryMarketImagesRequest::~QueryMarketImagesRequest() -{} - -std::string QueryMarketImagesRequest::getParam()const -{ - return param_; -} - -void QueryMarketImagesRequest::setParam(const std::string& param) -{ - param_ = param; - setParameter("Param", param); -} - -std::string QueryMarketImagesRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void QueryMarketImagesRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/market/src/model/QueryMarketImagesResult.cc b/market/src/model/QueryMarketImagesResult.cc deleted file mode 100644 index 2e1c2d34f..000000000 --- a/market/src/model/QueryMarketImagesResult.cc +++ /dev/null @@ -1,191 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Market; -using namespace AlibabaCloud::Market::Model; - -QueryMarketImagesResult::QueryMarketImagesResult() : - ServiceResult() -{} - -QueryMarketImagesResult::QueryMarketImagesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -QueryMarketImagesResult::~QueryMarketImagesResult() -{} - -void QueryMarketImagesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allResultNode = value["Result"]["ImageProduct"]; - for (auto valueResultImageProduct : allResultNode) - { - ImageProduct resultObject; - if(!valueResultImageProduct["ImageProductCode"].isNull()) - resultObject.imageProductCode = valueResultImageProduct["ImageProductCode"].asString(); - if(!valueResultImageProduct["ProductName"].isNull()) - resultObject.productName = valueResultImageProduct["ProductName"].asString(); - if(!valueResultImageProduct["CategoryName"].isNull()) - resultObject.categoryName = valueResultImageProduct["CategoryName"].asString(); - if(!valueResultImageProduct["SupplierName"].isNull()) - resultObject.supplierName = valueResultImageProduct["SupplierName"].asString(); - if(!valueResultImageProduct["BaseSystem"].isNull()) - resultObject.baseSystem = valueResultImageProduct["BaseSystem"].asString(); - if(!valueResultImageProduct["OsKind"].isNull()) - resultObject.osKind = valueResultImageProduct["OsKind"].asString(); - if(!valueResultImageProduct["OsBit"].isNull()) - resultObject.osBit = std::stoi(valueResultImageProduct["OsBit"].asString()); - if(!valueResultImageProduct["PictureUrl"].isNull()) - resultObject.pictureUrl = valueResultImageProduct["PictureUrl"].asString(); - if(!valueResultImageProduct["SmallPicUrl"].isNull()) - resultObject.smallPicUrl = valueResultImageProduct["SmallPicUrl"].asString(); - if(!valueResultImageProduct["ShortDescription"].isNull()) - resultObject.shortDescription = valueResultImageProduct["ShortDescription"].asString(); - if(!valueResultImageProduct["AgreementUrl"].isNull()) - resultObject.agreementUrl = valueResultImageProduct["AgreementUrl"].asString(); - if(!valueResultImageProduct["DetailUrl"].isNull()) - resultObject.detailUrl = valueResultImageProduct["DetailUrl"].asString(); - if(!valueResultImageProduct["BuyUrl"].isNull()) - resultObject.buyUrl = valueResultImageProduct["BuyUrl"].asString(); - if(!valueResultImageProduct["StoreUrl"].isNull()) - resultObject.storeUrl = valueResultImageProduct["StoreUrl"].asString(); - if(!valueResultImageProduct["Score"].isNull()) - resultObject.score = std::stof(valueResultImageProduct["Score"].asString()); - if(!valueResultImageProduct["UserCount"].isNull()) - resultObject.userCount = std::stol(valueResultImageProduct["UserCount"].asString()); - if(!valueResultImageProduct["SupportIO"].isNull()) - resultObject.supportIO = valueResultImageProduct["SupportIO"].asString() == "true"; - if(!valueResultImageProduct["CreatedOn"].isNull()) - resultObject.createdOn = std::stol(valueResultImageProduct["CreatedOn"].asString()); - auto allImagesNode = allResultNode["Images"]["Image"]; - for (auto allResultNodeImagesImage : allImagesNode) - { - ImageProduct::Image imagesObject; - if(!allResultNodeImagesImage["Version"].isNull()) - imagesObject.version = allResultNodeImagesImage["Version"].asString(); - if(!allResultNodeImagesImage["VersionDescription"].isNull()) - imagesObject.versionDescription = allResultNodeImagesImage["VersionDescription"].asString(); - if(!allResultNodeImagesImage["ImageId"].isNull()) - imagesObject.imageId = allResultNodeImagesImage["ImageId"].asString(); - if(!allResultNodeImagesImage["ImageSize"].isNull()) - imagesObject.imageSize = std::stoi(allResultNodeImagesImage["ImageSize"].asString()); - if(!allResultNodeImagesImage["Region"].isNull()) - imagesObject.region = allResultNodeImagesImage["Region"].asString(); - if(!allResultNodeImagesImage["IsDefault"].isNull()) - imagesObject.isDefault = allResultNodeImagesImage["IsDefault"].asString() == "true"; - if(!allResultNodeImagesImage["SupportIO"].isNull()) - imagesObject.supportIO = allResultNodeImagesImage["SupportIO"].asString() == "true"; - auto allDiskDeviceMappingsNode = allImagesNode["DiskDeviceMappings"]["DiskDeviceMapping"]; - for (auto allImagesNodeDiskDeviceMappingsDiskDeviceMapping : allDiskDeviceMappingsNode) - { - ImageProduct::Image::DiskDeviceMapping diskDeviceMappingsObject; - if(!allImagesNodeDiskDeviceMappingsDiskDeviceMapping["DiskType"].isNull()) - diskDeviceMappingsObject.diskType = allImagesNodeDiskDeviceMappingsDiskDeviceMapping["DiskType"].asString(); - if(!allImagesNodeDiskDeviceMappingsDiskDeviceMapping["Format"].isNull()) - diskDeviceMappingsObject.format = allImagesNodeDiskDeviceMappingsDiskDeviceMapping["Format"].asString(); - if(!allImagesNodeDiskDeviceMappingsDiskDeviceMapping["SnapshotId"].isNull()) - diskDeviceMappingsObject.snapshotId = allImagesNodeDiskDeviceMappingsDiskDeviceMapping["SnapshotId"].asString(); - if(!allImagesNodeDiskDeviceMappingsDiskDeviceMapping["Size"].isNull()) - diskDeviceMappingsObject.size = std::stoi(allImagesNodeDiskDeviceMappingsDiskDeviceMapping["Size"].asString()); - if(!allImagesNodeDiskDeviceMappingsDiskDeviceMapping["Device"].isNull()) - diskDeviceMappingsObject.device = allImagesNodeDiskDeviceMappingsDiskDeviceMapping["Device"].asString(); - if(!allImagesNodeDiskDeviceMappingsDiskDeviceMapping["ImportOSSBucket"].isNull()) - diskDeviceMappingsObject.importOSSBucket = allImagesNodeDiskDeviceMappingsDiskDeviceMapping["ImportOSSBucket"].asString(); - if(!allImagesNodeDiskDeviceMappingsDiskDeviceMapping["ImportOSSObject"].isNull()) - diskDeviceMappingsObject.importOSSObject = allImagesNodeDiskDeviceMappingsDiskDeviceMapping["ImportOSSObject"].asString(); - imagesObject.diskDeviceMappings.push_back(diskDeviceMappingsObject); - } - resultObject.images.push_back(imagesObject); - } - auto quotaNode = value["Quota"]; - if(!quotaNode["TotalQuota"].isNull()) - resultObject.quota.totalQuota = std::stol(quotaNode["TotalQuota"].asString()); - if(!quotaNode["UsingQuota"].isNull()) - resultObject.quota.usingQuota = std::stol(quotaNode["UsingQuota"].asString()); - if(!quotaNode["UnusedQuota"].isNull()) - resultObject.quota.unusedQuota = std::stol(quotaNode["UnusedQuota"].asString()); - auto priceInfoNode = value["PriceInfo"]; - auto allRulesNode = priceInfoNode["Rules"]["Rule"]; - for (auto priceInfoNodeRulesRule : allRulesNode) - { - ImageProduct::PriceInfo::Rule ruleObject; - if(!priceInfoNodeRulesRule["RuleId"].isNull()) - ruleObject.ruleId = std::stol(priceInfoNodeRulesRule["RuleId"].asString()); - if(!priceInfoNodeRulesRule["Title"].isNull()) - ruleObject.title = priceInfoNodeRulesRule["Title"].asString(); - if(!priceInfoNodeRulesRule["Name"].isNull()) - ruleObject.name = priceInfoNodeRulesRule["Name"].asString(); - resultObject.priceInfo.rules.push_back(ruleObject); - } - auto orderNode = priceInfoNode["Order"]; - if(!orderNode["OriginalPrice"].isNull()) - resultObject.priceInfo.order.originalPrice = std::stof(orderNode["OriginalPrice"].asString()); - if(!orderNode["DiscountPrice"].isNull()) - resultObject.priceInfo.order.discountPrice = std::stof(orderNode["DiscountPrice"].asString()); - if(!orderNode["TradePrice"].isNull()) - resultObject.priceInfo.order.tradePrice = std::stof(orderNode["TradePrice"].asString()); - if(!orderNode["Currency"].isNull()) - resultObject.priceInfo.order.currency = orderNode["Currency"].asString(); - if(!orderNode["Period"].isNull()) - resultObject.priceInfo.order.period = std::stoi(orderNode["Period"].asString()); - if(!orderNode["PriceUnit"].isNull()) - resultObject.priceInfo.order.priceUnit = orderNode["PriceUnit"].asString(); - auto allRuleIdSet = orderNode["RuleIdSet"]["RuleId"]; - for (auto value : allRuleIdSet) - resultObject.priceInfo.order.ruleIdSet.push_back(value.asString()); - auto allSkuCodes = value["SkuCodes"]["SkuCode"]; - for (auto value : allSkuCodes) - resultObject.skuCodes.push_back(value.asString()); - result_.push_back(resultObject); - } - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); - -} - -int QueryMarketImagesResult::getTotalCount()const -{ - return totalCount_; -} - -int QueryMarketImagesResult::getPageSize()const -{ - return pageSize_; -} - -int QueryMarketImagesResult::getPageNumber()const -{ - return pageNumber_; -} - -std::vector QueryMarketImagesResult::getResult()const -{ - return result_; -} - diff --git a/market/src/model/ResumeProjectRequest.cc b/market/src/model/ResumeProjectRequest.cc new file mode 100644 index 000000000..c07193f13 --- /dev/null +++ b/market/src/model/ResumeProjectRequest.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 + +using AlibabaCloud::Market::Model::ResumeProjectRequest; + +ResumeProjectRequest::ResumeProjectRequest() + : RpcServiceRequest("market", "2015-11-01", "ResumeProject") { + setMethod(HttpRequest::Method::Post); +} + +ResumeProjectRequest::~ResumeProjectRequest() {} + +std::string ResumeProjectRequest::getInstanceId() const { + return instanceId_; +} + +void ResumeProjectRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string ResumeProjectRequest::getRemark() const { + return remark_; +} + +void ResumeProjectRequest::setRemark(const std::string &remark) { + remark_ = remark; + setParameter(std::string("Remark"), remark); +} + +long ResumeProjectRequest::getNodeId() const { + return nodeId_; +} + +void ResumeProjectRequest::setNodeId(long nodeId) { + nodeId_ = nodeId; + setParameter(std::string("NodeId"), std::to_string(nodeId)); +} + diff --git a/market/src/model/BindImagePackageResult.cc b/market/src/model/ResumeProjectResult.cc similarity index 68% rename from market/src/model/BindImagePackageResult.cc rename to market/src/model/ResumeProjectResult.cc index bd126a260..28385797e 100644 --- a/market/src/model/BindImagePackageResult.cc +++ b/market/src/model/ResumeProjectResult.cc @@ -14,38 +14,45 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Market; using namespace AlibabaCloud::Market::Model; -BindImagePackageResult::BindImagePackageResult() : +ResumeProjectResult::ResumeProjectResult() : ServiceResult() {} -BindImagePackageResult::BindImagePackageResult(const std::string &payload) : +ResumeProjectResult::ResumeProjectResult(const std::string &payload) : ServiceResult() { parse(payload); } -BindImagePackageResult::~BindImagePackageResult() +ResumeProjectResult::~ResumeProjectResult() {} -void BindImagePackageResult::parse(const std::string &payload) +void ResumeProjectResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["Result"].isNull()) + result_ = value["Result"].asString() == "true"; if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; } -bool BindImagePackageResult::getSuccess()const +bool ResumeProjectResult::getSuccess()const { return success_; } +bool ResumeProjectResult::getResult()const +{ + return result_; +} + diff --git a/market/src/model/RollbackCurrentProjectNodeRequest.cc b/market/src/model/RollbackCurrentProjectNodeRequest.cc new file mode 100644 index 000000000..76bcbdc05 --- /dev/null +++ b/market/src/model/RollbackCurrentProjectNodeRequest.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 + +using AlibabaCloud::Market::Model::RollbackCurrentProjectNodeRequest; + +RollbackCurrentProjectNodeRequest::RollbackCurrentProjectNodeRequest() + : RpcServiceRequest("market", "2015-11-01", "RollbackCurrentProjectNode") { + setMethod(HttpRequest::Method::Post); +} + +RollbackCurrentProjectNodeRequest::~RollbackCurrentProjectNodeRequest() {} + +std::string RollbackCurrentProjectNodeRequest::getInstanceId() const { + return instanceId_; +} + +void RollbackCurrentProjectNodeRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string RollbackCurrentProjectNodeRequest::getRemark() const { + return remark_; +} + +void RollbackCurrentProjectNodeRequest::setRemark(const std::string &remark) { + remark_ = remark; + setParameter(std::string("Remark"), remark); +} + +long RollbackCurrentProjectNodeRequest::getNodeId() const { + return nodeId_; +} + +void RollbackCurrentProjectNodeRequest::setNodeId(long nodeId) { + nodeId_ = nodeId; + setParameter(std::string("NodeId"), std::to_string(nodeId)); +} + diff --git a/market/src/model/CreateCommodityResult.cc b/market/src/model/RollbackCurrentProjectNodeResult.cc similarity index 63% rename from market/src/model/CreateCommodityResult.cc rename to market/src/model/RollbackCurrentProjectNodeResult.cc index dacc39646..535eaab32 100644 --- a/market/src/model/CreateCommodityResult.cc +++ b/market/src/model/RollbackCurrentProjectNodeResult.cc @@ -14,46 +14,45 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Market; using namespace AlibabaCloud::Market::Model; -CreateCommodityResult::CreateCommodityResult() : +RollbackCurrentProjectNodeResult::RollbackCurrentProjectNodeResult() : ServiceResult() {} -CreateCommodityResult::CreateCommodityResult(const std::string &payload) : +RollbackCurrentProjectNodeResult::RollbackCurrentProjectNodeResult(const std::string &payload) : ServiceResult() { parse(payload); } -CreateCommodityResult::~CreateCommodityResult() +RollbackCurrentProjectNodeResult::~RollbackCurrentProjectNodeResult() {} -void CreateCommodityResult::parse(const std::string &payload) +void RollbackCurrentProjectNodeResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto commodityNode = value["Commodity"]; - if(!commodityNode["CommodityId"].isNull()) - commodity_.commodityId = commodityNode["CommodityId"].asString(); + if(!value["Result"].isNull()) + result_ = value["Result"].asString() == "true"; if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; } -CreateCommodityResult::Commodity CreateCommodityResult::getCommodity()const -{ - return commodity_; -} - -bool CreateCommodityResult::getSuccess()const +bool RollbackCurrentProjectNodeResult::getSuccess()const { return success_; } +bool RollbackCurrentProjectNodeResult::getResult()const +{ + return result_; +} + diff --git a/market/src/model/UpdateCommodityRequest.cc b/market/src/model/UpdateCommodityRequest.cc deleted file mode 100644 index 87d071b58..000000000 --- a/market/src/model/UpdateCommodityRequest.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Market::Model::UpdateCommodityRequest; - -UpdateCommodityRequest::UpdateCommodityRequest() : - RpcServiceRequest("market", "2015-11-01", "UpdateCommodity") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateCommodityRequest::~UpdateCommodityRequest() -{} - -std::string UpdateCommodityRequest::getCommodityId()const -{ - return commodityId_; -} - -void UpdateCommodityRequest::setCommodityId(const std::string& commodityId) -{ - commodityId_ = commodityId; - setParameter("CommodityId", commodityId); -} - -std::string UpdateCommodityRequest::getContent()const -{ - return content_; -} - -void UpdateCommodityRequest::setContent(const std::string& content) -{ - content_ = content; - setParameter("Content", content); -} - diff --git a/market/src/model/UploadCommodityFileRequest.cc b/market/src/model/UploadCommodityFileRequest.cc deleted file mode 100644 index 014ae7ddc..000000000 --- a/market/src/model/UploadCommodityFileRequest.cc +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Market::Model::UploadCommodityFileRequest; - -UploadCommodityFileRequest::UploadCommodityFileRequest() : - RpcServiceRequest("market", "2015-11-01", "UploadCommodityFile") -{ - setMethod(HttpRequest::Method::Post); -} - -UploadCommodityFileRequest::~UploadCommodityFileRequest() -{} - -std::string UploadCommodityFileRequest::getFileResourceType()const -{ - return fileResourceType_; -} - -void UploadCommodityFileRequest::setFileResourceType(const std::string& fileResourceType) -{ - fileResourceType_ = fileResourceType; - setParameter("FileResourceType", fileResourceType); -} - -std::string UploadCommodityFileRequest::getFileResource()const -{ - return fileResource_; -} - -void UploadCommodityFileRequest::setFileResource(const std::string& fileResource) -{ - fileResource_ = fileResource; - setParameter("FileResource", fileResource); -} - -std::string UploadCommodityFileRequest::getFileContentType()const -{ - return fileContentType_; -} - -void UploadCommodityFileRequest::setFileContentType(const std::string& fileContentType) -{ - fileContentType_ = fileContentType; - setParameter("FileContentType", fileContentType); -} - diff --git a/market/src/model/UploadCommodityFileResult.cc b/market/src/model/UploadCommodityFileResult.cc deleted file mode 100644 index 2fb036d35..000000000 --- a/market/src/model/UploadCommodityFileResult.cc +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Market; -using namespace AlibabaCloud::Market::Model; - -UploadCommodityFileResult::UploadCommodityFileResult() : - ServiceResult() -{} - -UploadCommodityFileResult::UploadCommodityFileResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -UploadCommodityFileResult::~UploadCommodityFileResult() -{} - -void UploadCommodityFileResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto dataNode = value["Data"]; - if(!dataNode["ResourceType"].isNull()) - data_.resourceType = dataNode["ResourceType"].asString(); - if(!dataNode["Resource"].isNull()) - data_.resource = dataNode["Resource"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - -} - -UploadCommodityFileResult::Data UploadCommodityFileResult::getData()const -{ - return data_; -} - -bool UploadCommodityFileResult::getSuccess()const -{ - return success_; -} -