Add DistributionProducts API.

This commit is contained in:
sdk-team
2023-05-29 09:53:14 +00:00
parent 197143a57e
commit 5888c43598
124 changed files with 4023 additions and 3895 deletions

View File

@@ -1 +1 @@
1.36.1584
1.36.1585

View File

@@ -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}

View File

@@ -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<Error, Model::ActivateLicenseResult> ActivateLicenseOutcome;
typedef std::future<ActivateLicenseOutcome> ActivateLicenseOutcomeCallable;
typedef std::function<void(const MarketClient*, const Model::ActivateLicenseRequest&, const ActivateLicenseOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ActivateLicenseAsyncHandler;
typedef Outcome<Error, Model::BindImagePackageResult> BindImagePackageOutcome;
typedef std::future<BindImagePackageOutcome> BindImagePackageOutcomeCallable;
typedef std::function<void(const MarketClient*, const Model::BindImagePackageRequest&, const BindImagePackageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BindImagePackageAsyncHandler;
typedef Outcome<Error, Model::CreateCommodityResult> CreateCommodityOutcome;
typedef std::future<CreateCommodityOutcome> CreateCommodityOutcomeCallable;
typedef std::function<void(const MarketClient*, const Model::CreateCommodityRequest&, const CreateCommodityOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateCommodityAsyncHandler;
typedef Outcome<Error, Model::AutoRenewInstanceResult> AutoRenewInstanceOutcome;
typedef std::future<AutoRenewInstanceOutcome> AutoRenewInstanceOutcomeCallable;
typedef std::function<void(const MarketClient*, const Model::AutoRenewInstanceRequest&, const AutoRenewInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AutoRenewInstanceAsyncHandler;
typedef Outcome<Error, Model::CreateOrderResult> CreateOrderOutcome;
typedef std::future<CreateOrderOutcome> CreateOrderOutcomeCallable;
typedef std::function<void(const MarketClient*, const Model::CreateOrderRequest&, const CreateOrderOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateOrderAsyncHandler;
typedef Outcome<Error, Model::CreateRateResult> CreateRateOutcome;
typedef std::future<CreateRateOutcome> CreateRateOutcomeCallable;
typedef std::function<void(const MarketClient*, const Model::CreateRateRequest&, const CreateRateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateRateAsyncHandler;
typedef Outcome<Error, Model::DeleteCommodityResult> DeleteCommodityOutcome;
typedef std::future<DeleteCommodityOutcome> DeleteCommodityOutcomeCallable;
typedef std::function<void(const MarketClient*, const Model::DeleteCommodityRequest&, const DeleteCommodityOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteCommodityAsyncHandler;
typedef Outcome<Error, Model::DescribeCommoditiesResult> DescribeCommoditiesOutcome;
typedef std::future<DescribeCommoditiesOutcome> DescribeCommoditiesOutcomeCallable;
typedef std::function<void(const MarketClient*, const Model::DescribeCommoditiesRequest&, const DescribeCommoditiesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCommoditiesAsyncHandler;
typedef Outcome<Error, Model::DescribeCommodityResult> DescribeCommodityOutcome;
typedef std::future<DescribeCommodityOutcome> DescribeCommodityOutcomeCallable;
typedef std::function<void(const MarketClient*, const Model::DescribeCommodityRequest&, const DescribeCommodityOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCommodityAsyncHandler;
typedef Outcome<Error, Model::CrossAccountVerifyTokenResult> CrossAccountVerifyTokenOutcome;
typedef std::future<CrossAccountVerifyTokenOutcome> CrossAccountVerifyTokenOutcomeCallable;
typedef std::function<void(const MarketClient*, const Model::CrossAccountVerifyTokenRequest&, const CrossAccountVerifyTokenOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CrossAccountVerifyTokenAsyncHandler;
typedef Outcome<Error, Model::DescribeCurrentNodeInfoResult> DescribeCurrentNodeInfoOutcome;
typedef std::future<DescribeCurrentNodeInfoOutcome> DescribeCurrentNodeInfoOutcomeCallable;
typedef std::function<void(const MarketClient*, const Model::DescribeCurrentNodeInfoRequest&, const DescribeCurrentNodeInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCurrentNodeInfoAsyncHandler;
typedef Outcome<Error, Model::DescribeDistributionProductsResult> DescribeDistributionProductsOutcome;
typedef std::future<DescribeDistributionProductsOutcome> DescribeDistributionProductsOutcomeCallable;
typedef std::function<void(const MarketClient*, const Model::DescribeDistributionProductsRequest&, const DescribeDistributionProductsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDistributionProductsAsyncHandler;
typedef Outcome<Error, Model::DescribeDistributionProductsLinkResult> DescribeDistributionProductsLinkOutcome;
typedef std::future<DescribeDistributionProductsLinkOutcome> DescribeDistributionProductsLinkOutcomeCallable;
typedef std::function<void(const MarketClient*, const Model::DescribeDistributionProductsLinkRequest&, const DescribeDistributionProductsLinkOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDistributionProductsLinkAsyncHandler;
typedef Outcome<Error, Model::DescribeInstanceResult> DescribeInstanceOutcome;
typedef std::future<DescribeInstanceOutcome> DescribeInstanceOutcomeCallable;
typedef std::function<void(const MarketClient*, const Model::DescribeInstanceRequest&, const DescribeInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeInstanceAsyncHandler;
@@ -120,27 +121,36 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeProductsResult> DescribeProductsOutcome;
typedef std::future<DescribeProductsOutcome> DescribeProductsOutcomeCallable;
typedef std::function<void(const MarketClient*, const Model::DescribeProductsRequest&, const DescribeProductsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeProductsAsyncHandler;
typedef Outcome<Error, Model::DescribeRateResult> DescribeRateOutcome;
typedef std::future<DescribeRateOutcome> DescribeRateOutcomeCallable;
typedef std::function<void(const MarketClient*, const Model::DescribeRateRequest&, const DescribeRateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRateAsyncHandler;
typedef Outcome<Error, Model::NotifyContractEventResult> NotifyContractEventOutcome;
typedef std::future<NotifyContractEventOutcome> NotifyContractEventOutcomeCallable;
typedef std::function<void(const MarketClient*, const Model::NotifyContractEventRequest&, const NotifyContractEventOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> NotifyContractEventAsyncHandler;
typedef Outcome<Error, Model::DescribeProjectAttachmentsResult> DescribeProjectAttachmentsOutcome;
typedef std::future<DescribeProjectAttachmentsOutcome> DescribeProjectAttachmentsOutcomeCallable;
typedef std::function<void(const MarketClient*, const Model::DescribeProjectAttachmentsRequest&, const DescribeProjectAttachmentsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeProjectAttachmentsAsyncHandler;
typedef Outcome<Error, Model::DescribeProjectInfoResult> DescribeProjectInfoOutcome;
typedef std::future<DescribeProjectInfoOutcome> DescribeProjectInfoOutcomeCallable;
typedef std::function<void(const MarketClient*, const Model::DescribeProjectInfoRequest&, const DescribeProjectInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeProjectInfoAsyncHandler;
typedef Outcome<Error, Model::DescribeProjectMessagesResult> DescribeProjectMessagesOutcome;
typedef std::future<DescribeProjectMessagesOutcome> DescribeProjectMessagesOutcomeCallable;
typedef std::function<void(const MarketClient*, const Model::DescribeProjectMessagesRequest&, const DescribeProjectMessagesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeProjectMessagesAsyncHandler;
typedef Outcome<Error, Model::DescribeProjectNodesResult> DescribeProjectNodesOutcome;
typedef std::future<DescribeProjectNodesOutcome> DescribeProjectNodesOutcomeCallable;
typedef std::function<void(const MarketClient*, const Model::DescribeProjectNodesRequest&, const DescribeProjectNodesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeProjectNodesAsyncHandler;
typedef Outcome<Error, Model::DescribeProjectOperateLogsResult> DescribeProjectOperateLogsOutcome;
typedef std::future<DescribeProjectOperateLogsOutcome> DescribeProjectOperateLogsOutcomeCallable;
typedef std::function<void(const MarketClient*, const Model::DescribeProjectOperateLogsRequest&, const DescribeProjectOperateLogsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeProjectOperateLogsAsyncHandler;
typedef Outcome<Error, Model::FinishCurrentProjectNodeResult> FinishCurrentProjectNodeOutcome;
typedef std::future<FinishCurrentProjectNodeOutcome> FinishCurrentProjectNodeOutcomeCallable;
typedef std::function<void(const MarketClient*, const Model::FinishCurrentProjectNodeRequest&, const FinishCurrentProjectNodeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> FinishCurrentProjectNodeAsyncHandler;
typedef Outcome<Error, Model::PauseProjectResult> PauseProjectOutcome;
typedef std::future<PauseProjectOutcome> PauseProjectOutcomeCallable;
typedef std::function<void(const MarketClient*, const Model::PauseProjectRequest&, const PauseProjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PauseProjectAsyncHandler;
typedef Outcome<Error, Model::PushMeteringDataResult> PushMeteringDataOutcome;
typedef std::future<PushMeteringDataOutcome> PushMeteringDataOutcomeCallable;
typedef std::function<void(const MarketClient*, const Model::PushMeteringDataRequest&, const PushMeteringDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PushMeteringDataAsyncHandler;
typedef Outcome<Error, Model::QueryMarketCategoriesResult> QueryMarketCategoriesOutcome;
typedef std::future<QueryMarketCategoriesOutcome> QueryMarketCategoriesOutcomeCallable;
typedef std::function<void(const MarketClient*, const Model::QueryMarketCategoriesRequest&, const QueryMarketCategoriesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryMarketCategoriesAsyncHandler;
typedef Outcome<Error, Model::QueryMarketImagesResult> QueryMarketImagesOutcome;
typedef std::future<QueryMarketImagesOutcome> QueryMarketImagesOutcomeCallable;
typedef std::function<void(const MarketClient*, const Model::QueryMarketImagesRequest&, const QueryMarketImagesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryMarketImagesAsyncHandler;
typedef Outcome<Error, Model::UpdateCommodityResult> UpdateCommodityOutcome;
typedef std::future<UpdateCommodityOutcome> UpdateCommodityOutcomeCallable;
typedef std::function<void(const MarketClient*, const Model::UpdateCommodityRequest&, const UpdateCommodityOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateCommodityAsyncHandler;
typedef Outcome<Error, Model::UploadCommodityFileResult> UploadCommodityFileOutcome;
typedef std::future<UploadCommodityFileOutcome> UploadCommodityFileOutcomeCallable;
typedef std::function<void(const MarketClient*, const Model::UploadCommodityFileRequest&, const UploadCommodityFileOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UploadCommodityFileAsyncHandler;
typedef Outcome<Error, Model::ResumeProjectResult> ResumeProjectOutcome;
typedef std::future<ResumeProjectOutcome> ResumeProjectOutcomeCallable;
typedef std::function<void(const MarketClient*, const Model::ResumeProjectRequest&, const ResumeProjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ResumeProjectAsyncHandler;
typedef Outcome<Error, Model::RollbackCurrentProjectNodeResult> RollbackCurrentProjectNodeOutcome;
typedef std::future<RollbackCurrentProjectNodeOutcome> RollbackCurrentProjectNodeOutcomeCallable;
typedef std::function<void(const MarketClient*, const Model::RollbackCurrentProjectNodeRequest&, const RollbackCurrentProjectNodeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RollbackCurrentProjectNodeAsyncHandler;
MarketClient(const Credentials &credentials, const ClientConfiguration &configuration);
MarketClient(const std::shared_ptr<CredentialsProvider> &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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& context = nullptr) const;
RollbackCurrentProjectNodeOutcomeCallable rollbackCurrentProjectNodeCallable(const Model::RollbackCurrentProjectNodeRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/market/MarketExport.h>
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_
*/
#ifndef ALIBABACLOUD_MARKET_MODEL_ACTIVATELICENSEREQUEST_H_
#define ALIBABACLOUD_MARKET_MODEL_ACTIVATELICENSEREQUEST_H_
#include <alibabacloud/market/MarketExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_MARKET_MODEL_AUTORENEWINSTANCEREQUEST_H_
#define ALIBABACLOUD_MARKET_MODEL_AUTORENEWINSTANCEREQUEST_H_
#include <alibabacloud/market/MarketExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
@@ -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_
#endif // !ALIBABACLOUD_MARKET_MODEL_AUTORENEWINSTANCERESULT_H_

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/market/MarketExport.h>
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_

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/market/MarketExport.h>
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_

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/market/MarketExport.h>
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_
*/
#ifndef ALIBABACLOUD_MARKET_MODEL_CREATEORDERREQUEST_H_
#define ALIBABACLOUD_MARKET_MODEL_CREATEORDERREQUEST_H_
#include <alibabacloud/market/MarketExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/market/MarketExport.h>
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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/market/MarketExport.h>
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_

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/market/MarketExport.h>
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_
*/
#ifndef ALIBABACLOUD_MARKET_MODEL_CROSSACCOUNTVERIFYTOKENREQUEST_H_
#define ALIBABACLOUD_MARKET_MODEL_CROSSACCOUNTVERIFYTOKENREQUEST_H_
#include <alibabacloud/market/MarketExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
@@ -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<std::string> 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_
#endif // !ALIBABACLOUD_MARKET_MODEL_CROSSACCOUNTVERIFYTOKENRESULT_H_

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/market/MarketExport.h>
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_

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/market/MarketExport.h>
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_
*/
#ifndef ALIBABACLOUD_MARKET_MODEL_DESCRIBECURRENTNODEINFOREQUEST_H_
#define ALIBABACLOUD_MARKET_MODEL_DESCRIBECURRENTNODEINFOREQUEST_H_
#include <alibabacloud/market/MarketExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/market/MarketExport.h>
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_

View File

@@ -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 <alibabacloud/market/MarketExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Market {
namespace Model {
class ALIBABACLOUD_MARKET_EXPORT DescribeDistributionProductsLinkRequest : public RpcServiceRequest {
public:
DescribeDistributionProductsLinkRequest();
~DescribeDistributionProductsLinkRequest();
std::vector<std::string> getCodes() const;
void setCodes(const std::vector<std::string> &codes);
private:
std::vector<std::string> codes_;
};
} // namespace Model
} // namespace Market
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_MARKET_MODEL_DESCRIBEDISTRIBUTIONPRODUCTSLINKREQUEST_H_

View File

@@ -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 <string>
#include <vector>
@@ -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<Item> getResult()const;
protected:
void parse(const std::string &payload);
private:
Commodity commodity_;
long totalCount_;
bool success_;
std::vector<Item> result_;
};
}
}
}
#endif // !ALIBABACLOUD_MARKET_MODEL_DESCRIBECOMMODITYRESULT_H_
#endif // !ALIBABACLOUD_MARKET_MODEL_DESCRIBEDISTRIBUTIONPRODUCTSLINKRESULT_H_

View File

@@ -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 <alibabacloud/market/MarketExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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<Filter> getFilter() const;
void setFilter(const std::vector<Filter> &filter);
long getPageSize() const;
void setPageSize(long pageSize);
private:
long pageNumber_;
std::vector<Filter> filter_;
long pageSize_;
};
} // namespace Model
} // namespace Market
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_MARKET_MODEL_DESCRIBEDISTRIBUTIONPRODUCTSREQUEST_H_

View File

@@ -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 <string>
#include <vector>
@@ -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<Category::ChildCategory> 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<Category> getCategories()const;
std::vector<Result> getResults()const;
int getPageNumber()const;
protected:
@@ -60,11 +64,11 @@ namespace AlibabaCloud
private:
int totalCount_;
int pageSize_;
std::vector<Category> categories_;
std::vector<Result> results_;
int pageNumber_;
};
}
}
}
#endif // !ALIBABACLOUD_MARKET_MODEL_QUERYMARKETCATEGORIESRESULT_H_
#endif // !ALIBABACLOUD_MARKET_MODEL_DESCRIBEDISTRIBUTIONPRODUCTSRESULT_H_

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/market/MarketExport.h>
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_
*/
#ifndef ALIBABACLOUD_MARKET_MODEL_DESCRIBEINSTANCEREQUEST_H_
#define ALIBABACLOUD_MARKET_MODEL_DESCRIBEINSTANCEREQUEST_H_
#include <alibabacloud/market/MarketExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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<Property::PropertyValue> propertyValues;
std::string key;
std::string displayUnit;
std::string name;
std::string showType;
std::string name;
};
std::string id;
std::vector<Module::Property> 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<Module> 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<Module> 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_;
};

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/market/MarketExport.h>
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_
*/
#ifndef ALIBABACLOUD_MARKET_MODEL_DESCRIBEINSTANCESREQUEST_H_
#define ALIBABACLOUD_MARKET_MODEL_DESCRIBEINSTANCESREQUEST_H_
#include <alibabacloud/market/MarketExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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;
};

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/market/MarketExport.h>
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_
*/
#ifndef ALIBABACLOUD_MARKET_MODEL_DESCRIBELICENSEREQUEST_H_
#define ALIBABACLOUD_MARKET_MODEL_DESCRIBELICENSEREQUEST_H_
#include <alibabacloud/market/MarketExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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<LicenseAttribute> extendArray;
ExtendInfo extendInfo;
std::string productSkuId;

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/market/MarketExport.h>
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_
*/
#ifndef ALIBABACLOUD_MARKET_MODEL_DESCRIBEORDERREQUEST_H_
#define ALIBABACLOUD_MARKET_MODEL_DESCRIBEORDERREQUEST_H_
#include <alibabacloud/market/MarketExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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<std::string> 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<std::string> instanceIds_;
long accountQuantity_;
long aliUid_;

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/market/MarketExport.h>
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_
*/
#ifndef ALIBABACLOUD_MARKET_MODEL_DESCRIBEPRICEREQUEST_H_
#define ALIBABACLOUD_MARKET_MODEL_DESCRIBEPRICEREQUEST_H_
#include <alibabacloud/market/MarketExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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<PromotionRule> 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<PromotionRule> promotionRules_;

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/market/MarketExport.h>
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_
*/
#ifndef ALIBABACLOUD_MARKET_MODEL_DESCRIBEPRODUCTREQUEST_H_
#define ALIBABACLOUD_MARKET_MODEL_DESCRIBEPRODUCTREQUEST_H_
#include <alibabacloud/market/MarketExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -41,8 +41,8 @@ namespace AlibabaCloud
};
std::vector<WangWang> wangWangs;
std::vector<std::string> 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<Property::PropertyValue> propertyValues;
std::string key;
std::string displayUnit;
std::string name;
std::string showType;
std::string name;
};
std::string id;
std::vector<Module::Property> 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<ProductSku> 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<ProductSku> 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_;

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/market/MarketExport.h>
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<Filter> getFilter()const;
void setFilter(const std::vector<Filter>& 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> filter_;
std::string searchTerm_;
int pageSize_;
int pageNumber_;
};
}
}
}
#endif // !ALIBABACLOUD_MARKET_MODEL_DESCRIBEPRODUCTSREQUEST_H_
*/
#ifndef ALIBABACLOUD_MARKET_MODEL_DESCRIBEPRODUCTSREQUEST_H_
#define ALIBABACLOUD_MARKET_MODEL_DESCRIBEPRODUCTSREQUEST_H_
#include <alibabacloud/market/MarketExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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<Filter> getFilter() const;
void setFilter(const std::vector<Filter> &filter);
int getPageSize() const;
void setPageSize(int pageSize);
private:
std::string searchTerm_;
int pageNumber_;
std::vector<Filter> filter_;
int pageSize_;
};
} // namespace Model
} // namespace Market
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_MARKET_MODEL_DESCRIBEPRODUCTSREQUEST_H_

View File

@@ -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;

View File

@@ -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 <alibabacloud/market/MarketExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -0,0 +1,71 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_MARKET_MODEL_DESCRIBEPROJECTATTACHMENTSRESULT_H_
#define ALIBABACLOUD_MARKET_MODEL_DESCRIBEPROJECTATTACHMENTSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/market/MarketExport.h>
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<ProjectAttachment> getResult()const;
protected:
void parse(const std::string &payload);
private:
bool success_;
std::vector<ProjectAttachment> result_;
};
}
}
}
#endif // !ALIBABACLOUD_MARKET_MODEL_DESCRIBEPROJECTATTACHMENTSRESULT_H_

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/market/MarketExport.h>
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_
*/
#ifndef ALIBABACLOUD_MARKET_MODEL_DESCRIBEPROJECTINFOREQUEST_H_
#define ALIBABACLOUD_MARKET_MODEL_DESCRIBEPROJECTINFOREQUEST_H_
#include <alibabacloud/market/MarketExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
@@ -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<Commodity> 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_
#endif // !ALIBABACLOUD_MARKET_MODEL_DESCRIBEPROJECTINFORESULT_H_

View File

@@ -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 <alibabacloud/market/MarketExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_MARKET_MODEL_DESCRIBEPROJECTMESSAGESRESULT_H_
#define ALIBABACLOUD_MARKET_MODEL_DESCRIBEPROJECTMESSAGESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/market/MarketExport.h>
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<ProjectMessage> getResult()const;
protected:
void parse(const std::string &payload);
private:
long totalCount_;
bool success_;
std::vector<ProjectMessage> result_;
};
}
}
}
#endif // !ALIBABACLOUD_MARKET_MODEL_DESCRIBEPROJECTMESSAGESRESULT_H_

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/market/MarketExport.h>
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_
*/
#ifndef ALIBABACLOUD_MARKET_MODEL_DESCRIBEPROJECTNODESREQUEST_H_
#define ALIBABACLOUD_MARKET_MODEL_DESCRIBEPROJECTNODESREQUEST_H_
#include <alibabacloud/market/MarketExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/market/MarketExport.h>
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<ProjectNode> getResult()const;
protected:
void parse(const std::string &payload);
private:
bool success_;
std::vector<ProjectNode> result_;
};
}
}
}
#endif // !ALIBABACLOUD_MARKET_MODEL_DESCRIBEPROJECTNODESRESULT_H_

View File

@@ -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 <alibabacloud/market/MarketExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
@@ -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<ProjectMessage> getResult()const;
protected:
void parse(const std::string &payload);
private:
Data data_;
bool success_;
std::vector<ProjectMessage> result_;
};
}
}
}
#endif // !ALIBABACLOUD_MARKET_MODEL_UPLOADCOMMODITYFILERESULT_H_
#endif // !ALIBABACLOUD_MARKET_MODEL_DESCRIBEPROJECTOPERATELOGSRESULT_H_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/market/MarketExport.h>
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_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_MARKET_MODEL_FINISHCURRENTPROJECTNODEREQUEST_H_
#define ALIBABACLOUD_MARKET_MODEL_FINISHCURRENTPROJECTNODEREQUEST_H_
#include <alibabacloud/market/MarketExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
@@ -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_
#endif // !ALIBABACLOUD_MARKET_MODEL_FINISHCURRENTPROJECTNODERESULT_H_

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/market/MarketExport.h>
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_

View File

@@ -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 <alibabacloud/market/MarketExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
@@ -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_
#endif // !ALIBABACLOUD_MARKET_MODEL_PAUSEPROJECTRESULT_H_

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/market/MarketExport.h>
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_
*/
#ifndef ALIBABACLOUD_MARKET_MODEL_PUSHMETERINGDATAREQUEST_H_
#define ALIBABACLOUD_MARKET_MODEL_PUSHMETERINGDATAREQUEST_H_
#include <alibabacloud/market/MarketExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/market/MarketExport.h>
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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/market/MarketExport.h>
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<std::string> ruleIdSet;
float tradePrice;
};
struct Rule
{
long ruleId;
std::string title;
std::string name;
};
Order order;
std::vector<Rule> 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<Image::DiskDeviceMapping> 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<ImageProduct::Image> images;
int osBit;
std::string detailUrl;
std::string agreementUrl;
std::vector<std::string> 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<ImageProduct> getResult()const;
protected:
void parse(const std::string &payload);
private:
int totalCount_;
int pageSize_;
int pageNumber_;
std::vector<ImageProduct> result_;
};
}
}
}
#endif // !ALIBABACLOUD_MARKET_MODEL_QUERYMARKETIMAGESRESULT_H_

View File

@@ -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 <alibabacloud/market/MarketExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
@@ -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_
#endif // !ALIBABACLOUD_MARKET_MODEL_RESUMEPROJECTRESULT_H_

View File

@@ -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 <alibabacloud/market/MarketExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/market/MarketExport.h>
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_

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/market/MarketExport.h>
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_

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/market/MarketExport.h>
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_

View File

@@ -31,21 +31,21 @@ MarketClient::MarketClient(const Credentials &credentials, const ClientConfigura
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "market");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
MarketClient::MarketClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "market");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
MarketClient::MarketClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
{
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "market");
endpointProvider_ = std::make_shared<EndpointProvider>(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<const AsyncCallerContext>& context) const
void MarketClient::autoRenewInstanceAsync(const AutoRenewInstanceRequest& request, const AutoRenewInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& 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<std::packaged_task<BindImagePackageOutcome()>>(
auto task = std::make_shared<std::packaged_task<AutoRenewInstanceOutcome()>>(
[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<const AsyncCallerContext>& 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<std::packaged_task<CreateCommodityOutcome()>>(
[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<const AsyncCallerContext>& context) const
void MarketClient::crossAccountVerifyTokenAsync(const CrossAccountVerifyTokenRequest& request, const CrossAccountVerifyTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& 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<std::packaged_task<CreateRateOutcome()>>(
auto task = std::make_shared<std::packaged_task<CrossAccountVerifyTokenOutcome()>>(
[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<const AsyncCallerContext>& context) const
void MarketClient::describeCurrentNodeInfoAsync(const DescribeCurrentNodeInfoRequest& request, const DescribeCurrentNodeInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& 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<std::packaged_task<DeleteCommodityOutcome()>>(
auto task = std::make_shared<std::packaged_task<DescribeCurrentNodeInfoOutcome()>>(
[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<const AsyncCallerContext>& context) const
void MarketClient::describeDistributionProductsAsync(const DescribeDistributionProductsRequest& request, const DescribeDistributionProductsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& 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<std::packaged_task<DescribeCommoditiesOutcome()>>(
auto task = std::make_shared<std::packaged_task<DescribeDistributionProductsOutcome()>>(
[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<const AsyncCallerContext>& context) const
void MarketClient::describeDistributionProductsLinkAsync(const DescribeDistributionProductsLinkRequest& request, const DescribeDistributionProductsLinkAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& 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<std::packaged_task<DescribeCommodityOutcome()>>(
auto task = std::make_shared<std::packaged_task<DescribeDistributionProductsLinkOutcome()>>(
[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<const AsyncCallerContext>& context) const
void MarketClient::describeProjectAttachmentsAsync(const DescribeProjectAttachmentsRequest& request, const DescribeProjectAttachmentsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& 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<std::packaged_task<DescribeRateOutcome()>>(
auto task = std::make_shared<std::packaged_task<DescribeProjectAttachmentsOutcome()>>(
[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<const AsyncCallerContext>& context) const
void MarketClient::describeProjectInfoAsync(const DescribeProjectInfoRequest& request, const DescribeProjectInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& 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<std::packaged_task<NotifyContractEventOutcome()>>(
auto task = std::make_shared<std::packaged_task<DescribeProjectInfoOutcome()>>(
[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<const AsyncCallerContext>& 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<std::packaged_task<DescribeProjectMessagesOutcome()>>(
[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<const AsyncCallerContext>& 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<std::packaged_task<DescribeProjectNodesOutcome()>>(
[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<const AsyncCallerContext>& 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<std::packaged_task<DescribeProjectOperateLogsOutcome()>>(
[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<const AsyncCallerContext>& 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<std::packaged_task<FinishCurrentProjectNodeOutcome()>>(
[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<const AsyncCallerContext>& 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<std::packaged_task<PauseProjectOutcome()>>(
[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<const AsyncCallerContext>& context) const
void MarketClient::resumeProjectAsync(const ResumeProjectRequest& request, const ResumeProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& 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<std::packaged_task<QueryMarketCategoriesOutcome()>>(
auto task = std::make_shared<std::packaged_task<ResumeProjectOutcome()>>(
[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<const AsyncCallerContext>& context) const
void MarketClient::rollbackCurrentProjectNodeAsync(const RollbackCurrentProjectNodeRequest& request, const RollbackCurrentProjectNodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& 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<std::packaged_task<QueryMarketImagesOutcome()>>(
auto task = std::make_shared<std::packaged_task<RollbackCurrentProjectNodeOutcome()>>(
[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<const AsyncCallerContext>& 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<std::packaged_task<UpdateCommodityOutcome()>>(
[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<const AsyncCallerContext>& 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<std::packaged_task<UploadCommodityFileOutcome()>>(
[this, request]()
{
return this->uploadCommodityFile(request);
return this->rollbackCurrentProjectNode(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));

View File

@@ -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 <alibabacloud/market/model/ActivateLicenseRequest.h>
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 <alibabacloud/market/model/ActivateLicenseRequest.h>
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);
}

View File

@@ -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 <alibabacloud/market/model/AutoRenewInstanceRequest.h>
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));
}

View File

@@ -14,26 +14,26 @@
* limitations under the License.
*/
#include <alibabacloud/market/model/DeleteCommodityResult.h>
#include <alibabacloud/market/model/AutoRenewInstanceResult.h>
#include <json/json.h>
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_;
}

View File

@@ -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 <alibabacloud/market/model/BindImagePackageRequest.h>
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);
}

View File

@@ -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 <alibabacloud/market/model/CreateCommodityRequest.h>
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);
}

View File

@@ -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 <alibabacloud/market/model/CreateOrderRequest.h>
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 <alibabacloud/market/model/CreateOrderRequest.h>
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);
}

View File

@@ -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 <alibabacloud/market/model/CreateRateRequest.h>
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);
}

View File

@@ -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 <alibabacloud/market/model/CreateRateResult.h>
#include <json/json.h>
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_;
}

View File

@@ -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 <alibabacloud/market/model/CrossAccountVerifyTokenRequest.h>
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);
}

View File

@@ -0,0 +1,80 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/market/model/CrossAccountVerifyTokenResult.h>
#include <json/json.h>
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_;
}

View File

@@ -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 <alibabacloud/market/model/DeleteCommodityRequest.h>
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);
}

View File

@@ -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 <alibabacloud/market/model/DescribeCommoditiesRequest.h>
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);
}

View File

@@ -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 <alibabacloud/market/model/DescribeCommoditiesResult.h>
#include <json/json.h>
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_;
}

View File

@@ -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 <alibabacloud/market/model/DescribeCommodityRequest.h>
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);
}

View File

@@ -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 <alibabacloud/market/model/DescribeCommodityResult.h>
#include <json/json.h>
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_;
}

View File

@@ -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 <alibabacloud/market/model/DescribeCurrentNodeInfoRequest.h>
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);
}

View File

@@ -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 <alibabacloud/market/model/DescribeCurrentNodeInfoResult.h>
#include <json/json.h>
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_;
}

View File

@@ -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 <alibabacloud/market/model/DescribeDistributionProductsLinkRequest.h>
using AlibabaCloud::Market::Model::DescribeDistributionProductsLinkRequest;
DescribeDistributionProductsLinkRequest::DescribeDistributionProductsLinkRequest()
: RpcServiceRequest("market", "2015-11-01", "DescribeDistributionProductsLink") {
setMethod(HttpRequest::Method::Post);
}
DescribeDistributionProductsLinkRequest::~DescribeDistributionProductsLinkRequest() {}
std::vector<DescribeDistributionProductsLinkRequest::std::string> DescribeDistributionProductsLinkRequest::getCodes() const {
return codes_;
}
void DescribeDistributionProductsLinkRequest::setCodes(const std::vector<DescribeDistributionProductsLinkRequest::std::string> &codes) {
codes_ = codes;
for(int dep1 = 0; dep1 != codes.size(); dep1++) {
setParameter(std::string("Codes") + "." + std::to_string(dep1 + 1), codes[dep1]);
}
}

View File

@@ -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 <alibabacloud/market/model/DescribeDistributionProductsLinkResult.h>
#include <json/json.h>
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::Item> DescribeDistributionProductsLinkResult::getResult()const
{
return result_;
}

View File

@@ -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 <alibabacloud/market/model/DescribeDistributionProductsRequest.h>
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::Filter> DescribeDistributionProductsRequest::getFilter() const {
return filter_;
}
void DescribeDistributionProductsRequest::setFilter(const std::vector<DescribeDistributionProductsRequest::Filter> &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));
}

View File

@@ -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 <alibabacloud/market/model/DescribeDistributionProductsResult.h>
#include <json/json.h>
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::Result> DescribeDistributionProductsResult::getResults()const
{
return results_;
}
int DescribeDistributionProductsResult::getPageNumber()const
{
return pageNumber_;
}

View File

@@ -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 <alibabacloud/market/model/DescribeInstanceRequest.h>
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 <alibabacloud/market/model/DescribeInstanceRequest.h>
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);
}

View File

@@ -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::Module> 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_;

View File

@@ -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 <alibabacloud/market/model/DescribeInstancesRequest.h>
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 <alibabacloud/market/model/DescribeInstancesRequest.h>
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));
}

View File

@@ -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())

View File

@@ -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 <alibabacloud/market/model/DescribeLicenseRequest.h>
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 <alibabacloud/market/model/DescribeLicenseRequest.h>
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);
}

View File

@@ -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());
}

View File

@@ -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 <alibabacloud/market/model/DescribeOrderRequest.h>
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 <alibabacloud/market/model/DescribeOrderRequest.h>
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);
}

View File

@@ -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<std::string> DescribeOrderResult::getInstanceIds()const
{
return instanceIds_;

View File

@@ -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 <alibabacloud/market/model/DescribePriceRequest.h>
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 <alibabacloud/market/model/DescribePriceRequest.h>
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);
}

View File

@@ -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_;

View File

@@ -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 <alibabacloud/market/model/DescribeProductRequest.h>
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 <alibabacloud/market/model/DescribeProductRequest.h>
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);
}

View File

@@ -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_;

View File

@@ -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 <alibabacloud/market/model/DescribeProductsRequest.h>
using AlibabaCloud::Market::Model::DescribeProductsRequest;
DescribeProductsRequest::DescribeProductsRequest() :
RpcServiceRequest("market", "2015-11-01", "DescribeProducts")
{
setMethod(HttpRequest::Method::Post);
}
DescribeProductsRequest::~DescribeProductsRequest()
{}
std::vector<DescribeProductsRequest::Filter> DescribeProductsRequest::getFilter()const
{
return filter_;
*/
#include <alibabacloud/market/model/DescribeProductsRequest.h>
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_ = 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::Filter> DescribeProductsRequest::getFilter() const {
return filter_;
}
int DescribeProductsRequest::getPageNumber()const
{
return pageNumber_;
void DescribeProductsRequest::setFilter(const std::vector<DescribeProductsRequest::Filter> &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));
}

View File

@@ -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())

View File

@@ -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 <alibabacloud/market/model/DescribeProjectAttachmentsRequest.h>
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);
}

View File

@@ -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 <alibabacloud/market/model/DescribeProjectAttachmentsResult.h>
#include <json/json.h>
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::ProjectAttachment> DescribeProjectAttachmentsResult::getResult()const
{
return result_;
}

View File

@@ -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 <alibabacloud/market/model/DescribeProjectInfoRequest.h>
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);
}

View File

@@ -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 <alibabacloud/market/model/DescribeProjectInfoResult.h>
#include <json/json.h>
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_;
}

View File

@@ -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 <alibabacloud/market/model/DescribeProjectMessagesRequest.h>
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));
}

Some files were not shown because too many files have changed in this diff Show More