From 6a7e1f141c5bb1d438bd30ac134bd24e1ac7fed5 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Wed, 30 Jul 2025 08:28:20 +0000 Subject: [PATCH] Generated 2025-07-09 for CioMarketPop. --- VERSION | 2 +- ciomarketpop/CMakeLists.txt | 86 ++++++++++++++++++ .../ciomarketpop/CioMarketPopClient.h | 54 +++++++++++ .../ciomarketpop/CioMarketPopExport.h | 32 +++++++ .../model/GetEveryOneSellsFormListRequest.h | 42 +++++++++ .../model/GetEveryOneSellsFormListResult.h | 49 ++++++++++ ciomarketpop/src/CioMarketPopClient.cc | 89 +++++++++++++++++++ .../model/GetEveryOneSellsFormListRequest.cc | 36 ++++++++ .../model/GetEveryOneSellsFormListResult.cc | 44 +++++++++ 9 files changed, 433 insertions(+), 1 deletion(-) create mode 100644 ciomarketpop/CMakeLists.txt create mode 100644 ciomarketpop/include/alibabacloud/ciomarketpop/CioMarketPopClient.h create mode 100644 ciomarketpop/include/alibabacloud/ciomarketpop/CioMarketPopExport.h create mode 100644 ciomarketpop/include/alibabacloud/ciomarketpop/model/GetEveryOneSellsFormListRequest.h create mode 100644 ciomarketpop/include/alibabacloud/ciomarketpop/model/GetEveryOneSellsFormListResult.h create mode 100644 ciomarketpop/src/CioMarketPopClient.cc create mode 100644 ciomarketpop/src/model/GetEveryOneSellsFormListRequest.cc create mode 100644 ciomarketpop/src/model/GetEveryOneSellsFormListResult.cc diff --git a/VERSION b/VERSION index e9fa3893d..c19522409 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.2091 \ No newline at end of file +1.36.2092 \ No newline at end of file diff --git a/ciomarketpop/CMakeLists.txt b/ciomarketpop/CMakeLists.txt new file mode 100644 index 000000000..c620fd248 --- /dev/null +++ b/ciomarketpop/CMakeLists.txt @@ -0,0 +1,86 @@ +# +# Copyright 2009-2017 Alibaba Cloud All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include) + +set(ciomarketpop_public_header + include/alibabacloud/ciomarketpop/CioMarketPopClient.h + include/alibabacloud/ciomarketpop/CioMarketPopExport.h ) + +set(ciomarketpop_public_header_model + include/alibabacloud/ciomarketpop/model/GetEveryOneSellsFormListRequest.h + include/alibabacloud/ciomarketpop/model/GetEveryOneSellsFormListResult.h ) + +set(ciomarketpop_src + src/CioMarketPopClient.cc + src/model/GetEveryOneSellsFormListRequest.cc + src/model/GetEveryOneSellsFormListResult.cc ) + +add_library(ciomarketpop ${LIB_TYPE} + ${ciomarketpop_public_header} + ${ciomarketpop_public_header_model} + ${ciomarketpop_src}) + +set_target_properties(ciomarketpop + PROPERTIES + LINKER_LANGUAGE CXX + ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin + OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}ciomarketpop + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(ciomarketpop + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_CIOMARKETPOP_LIBRARY) +endif() + +target_include_directories(ciomarketpop + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(ciomarketpop + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(ciomarketpop + jsoncpp) + target_include_directories(ciomarketpop + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(ciomarketpop + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(ciomarketpop + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(ciomarketpop + PRIVATE /usr/include/jsoncpp) + target_link_libraries(ciomarketpop + jsoncpp) +endif() + +install(FILES ${ciomarketpop_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/ciomarketpop) +install(FILES ${ciomarketpop_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/ciomarketpop/model) +install(TARGETS ciomarketpop + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/ciomarketpop/include/alibabacloud/ciomarketpop/CioMarketPopClient.h b/ciomarketpop/include/alibabacloud/ciomarketpop/CioMarketPopClient.h new file mode 100644 index 000000000..0990e0185 --- /dev/null +++ b/ciomarketpop/include/alibabacloud/ciomarketpop/CioMarketPopClient.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CIOMARKETPOP_CIOMARKETPOPCLIENT_H_ +#define ALIBABACLOUD_CIOMARKETPOP_CIOMARKETPOPCLIENT_H_ + +#include +#include +#include +#include +#include "CioMarketPopExport.h" +#include "model/GetEveryOneSellsFormListRequest.h" +#include "model/GetEveryOneSellsFormListResult.h" + + +namespace AlibabaCloud +{ + namespace CioMarketPop + { + class ALIBABACLOUD_CIOMARKETPOP_EXPORT CioMarketPopClient : public RpcServiceClient + { + public: + typedef Outcome GetEveryOneSellsFormListOutcome; + typedef std::future GetEveryOneSellsFormListOutcomeCallable; + typedef std::function&)> GetEveryOneSellsFormListAsyncHandler; + + CioMarketPopClient(const Credentials &credentials, const ClientConfiguration &configuration); + CioMarketPopClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + CioMarketPopClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~CioMarketPopClient(); + GetEveryOneSellsFormListOutcome getEveryOneSellsFormList(const Model::GetEveryOneSellsFormListRequest &request)const; + void getEveryOneSellsFormListAsync(const Model::GetEveryOneSellsFormListRequest& request, const GetEveryOneSellsFormListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetEveryOneSellsFormListOutcomeCallable getEveryOneSellsFormListCallable(const Model::GetEveryOneSellsFormListRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_CIOMARKETPOP_CIOMARKETPOPCLIENT_H_ diff --git a/ciomarketpop/include/alibabacloud/ciomarketpop/CioMarketPopExport.h b/ciomarketpop/include/alibabacloud/ciomarketpop/CioMarketPopExport.h new file mode 100644 index 000000000..424ef5b06 --- /dev/null +++ b/ciomarketpop/include/alibabacloud/ciomarketpop/CioMarketPopExport.h @@ -0,0 +1,32 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CIOMARKETPOP_CIOMARKETPOPEXPORT_H_ +#define ALIBABACLOUD_CIOMARKETPOP_CIOMARKETPOPEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_CIOMARKETPOP_LIBRARY) +# define ALIBABACLOUD_CIOMARKETPOP_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_CIOMARKETPOP_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_CIOMARKETPOP_EXPORT +#endif + +#endif // !ALIBABACLOUD_CIOMARKETPOP_CIOMARKETPOPEXPORT_H_ \ No newline at end of file diff --git a/ciomarketpop/include/alibabacloud/ciomarketpop/model/GetEveryOneSellsFormListRequest.h b/ciomarketpop/include/alibabacloud/ciomarketpop/model/GetEveryOneSellsFormListRequest.h new file mode 100644 index 000000000..23201586d --- /dev/null +++ b/ciomarketpop/include/alibabacloud/ciomarketpop/model/GetEveryOneSellsFormListRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CIOMARKETPOP_MODEL_GETEVERYONESELLSFORMLISTREQUEST_H_ +#define ALIBABACLOUD_CIOMARKETPOP_MODEL_GETEVERYONESELLSFORMLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace CioMarketPop { +namespace Model { +class ALIBABACLOUD_CIOMARKETPOP_EXPORT GetEveryOneSellsFormListRequest : public RpcServiceRequest { +public: + GetEveryOneSellsFormListRequest(); + ~GetEveryOneSellsFormListRequest(); + std::string getAuth() const; + void setAuth(const std::string &auth); + +private: + std::string auth_; +}; +} // namespace Model +} // namespace CioMarketPop +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CIOMARKETPOP_MODEL_GETEVERYONESELLSFORMLISTREQUEST_H_ diff --git a/ciomarketpop/include/alibabacloud/ciomarketpop/model/GetEveryOneSellsFormListResult.h b/ciomarketpop/include/alibabacloud/ciomarketpop/model/GetEveryOneSellsFormListResult.h new file mode 100644 index 000000000..1fd075cac --- /dev/null +++ b/ciomarketpop/include/alibabacloud/ciomarketpop/model/GetEveryOneSellsFormListResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CIOMARKETPOP_MODEL_GETEVERYONESELLSFORMLISTRESULT_H_ +#define ALIBABACLOUD_CIOMARKETPOP_MODEL_GETEVERYONESELLSFORMLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CioMarketPop + { + namespace Model + { + class ALIBABACLOUD_CIOMARKETPOP_EXPORT GetEveryOneSellsFormListResult : public ServiceResult + { + public: + + + GetEveryOneSellsFormListResult(); + explicit GetEveryOneSellsFormListResult(const std::string &payload); + ~GetEveryOneSellsFormListResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CIOMARKETPOP_MODEL_GETEVERYONESELLSFORMLISTRESULT_H_ \ No newline at end of file diff --git a/ciomarketpop/src/CioMarketPopClient.cc b/ciomarketpop/src/CioMarketPopClient.cc new file mode 100644 index 000000000..62a99a6bd --- /dev/null +++ b/ciomarketpop/src/CioMarketPopClient.cc @@ -0,0 +1,89 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud; +using namespace AlibabaCloud::Location; +using namespace AlibabaCloud::CioMarketPop; +using namespace AlibabaCloud::CioMarketPop::Model; + +namespace +{ + const std::string SERVICE_NAME = "CioMarketPop"; +} + +CioMarketPopClient::CioMarketPopClient(const Credentials &credentials, const ClientConfiguration &configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) +{ + auto locationClient = std::make_shared(credentials, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); +} + +CioMarketPopClient::CioMarketPopClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) +{ + auto locationClient = std::make_shared(credentialsProvider, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); +} + +CioMarketPopClient::CioMarketPopClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) +{ + auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); +} + +CioMarketPopClient::~CioMarketPopClient() +{} + +CioMarketPopClient::GetEveryOneSellsFormListOutcome CioMarketPopClient::getEveryOneSellsFormList(const GetEveryOneSellsFormListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetEveryOneSellsFormListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetEveryOneSellsFormListOutcome(GetEveryOneSellsFormListResult(outcome.result())); + else + return GetEveryOneSellsFormListOutcome(outcome.error()); +} + +void CioMarketPopClient::getEveryOneSellsFormListAsync(const GetEveryOneSellsFormListRequest& request, const GetEveryOneSellsFormListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getEveryOneSellsFormList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CioMarketPopClient::GetEveryOneSellsFormListOutcomeCallable CioMarketPopClient::getEveryOneSellsFormListCallable(const GetEveryOneSellsFormListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getEveryOneSellsFormList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/ciomarketpop/src/model/GetEveryOneSellsFormListRequest.cc b/ciomarketpop/src/model/GetEveryOneSellsFormListRequest.cc new file mode 100644 index 000000000..21d893c60 --- /dev/null +++ b/ciomarketpop/src/model/GetEveryOneSellsFormListRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CioMarketPop::Model::GetEveryOneSellsFormListRequest; + +GetEveryOneSellsFormListRequest::GetEveryOneSellsFormListRequest() + : RpcServiceRequest("ciomarketpop", "2025-07-09", "GetEveryOneSellsFormList") { + setMethod(HttpRequest::Method::Get); +} + +GetEveryOneSellsFormListRequest::~GetEveryOneSellsFormListRequest() {} + +std::string GetEveryOneSellsFormListRequest::getAuth() const { + return auth_; +} + +void GetEveryOneSellsFormListRequest::setAuth(const std::string &auth) { + auth_ = auth; + setParameter(std::string("Auth"), auth); +} + diff --git a/ciomarketpop/src/model/GetEveryOneSellsFormListResult.cc b/ciomarketpop/src/model/GetEveryOneSellsFormListResult.cc new file mode 100644 index 000000000..2471dbf56 --- /dev/null +++ b/ciomarketpop/src/model/GetEveryOneSellsFormListResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CioMarketPop; +using namespace AlibabaCloud::CioMarketPop::Model; + +GetEveryOneSellsFormListResult::GetEveryOneSellsFormListResult() : + ServiceResult() +{} + +GetEveryOneSellsFormListResult::GetEveryOneSellsFormListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetEveryOneSellsFormListResult::~GetEveryOneSellsFormListResult() +{} + +void GetEveryOneSellsFormListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} +