Skip to content

Commit 6a7e1f1

Browse files
committed
Generated 2025-07-09 for CioMarketPop.
1 parent ecf6c5f commit 6a7e1f1

File tree

9 files changed

+433
-1
lines changed

9 files changed

+433
-1
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.36.2091
1+
1.36.2092

ciomarketpop/CMakeLists.txt

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
#
2+
# Copyright 2009-2017 Alibaba Cloud All rights reserved.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
17+
set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
18+
19+
set(ciomarketpop_public_header
20+
include/alibabacloud/ciomarketpop/CioMarketPopClient.h
21+
include/alibabacloud/ciomarketpop/CioMarketPopExport.h )
22+
23+
set(ciomarketpop_public_header_model
24+
include/alibabacloud/ciomarketpop/model/GetEveryOneSellsFormListRequest.h
25+
include/alibabacloud/ciomarketpop/model/GetEveryOneSellsFormListResult.h )
26+
27+
set(ciomarketpop_src
28+
src/CioMarketPopClient.cc
29+
src/model/GetEveryOneSellsFormListRequest.cc
30+
src/model/GetEveryOneSellsFormListResult.cc )
31+
32+
add_library(ciomarketpop ${LIB_TYPE}
33+
${ciomarketpop_public_header}
34+
${ciomarketpop_public_header_model}
35+
${ciomarketpop_src})
36+
37+
set_target_properties(ciomarketpop
38+
PROPERTIES
39+
LINKER_LANGUAGE CXX
40+
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
41+
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
42+
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
43+
OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}ciomarketpop
44+
)
45+
46+
if(${LIB_TYPE} STREQUAL "SHARED")
47+
set_target_properties(ciomarketpop
48+
PROPERTIES
49+
DEFINE_SYMBOL ALIBABACLOUD_CIOMARKETPOP_LIBRARY)
50+
endif()
51+
52+
target_include_directories(ciomarketpop
53+
PRIVATE include
54+
${CMAKE_SOURCE_DIR}/core/include
55+
)
56+
target_link_libraries(ciomarketpop
57+
core)
58+
59+
if(CMAKE_HOST_WIN32)
60+
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
61+
set(jsoncpp_install_dir ${INSTALL_DIR})
62+
add_dependencies(ciomarketpop
63+
jsoncpp)
64+
target_include_directories(ciomarketpop
65+
PRIVATE ${jsoncpp_install_dir}/include)
66+
target_link_libraries(ciomarketpop
67+
${jsoncpp_install_dir}/lib/jsoncpp.lib)
68+
set_target_properties(ciomarketpop
69+
PROPERTIES
70+
COMPILE_OPTIONS "/bigobj")
71+
else()
72+
target_include_directories(ciomarketpop
73+
PRIVATE /usr/include/jsoncpp)
74+
target_link_libraries(ciomarketpop
75+
jsoncpp)
76+
endif()
77+
78+
install(FILES ${ciomarketpop_public_header}
79+
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/ciomarketpop)
80+
install(FILES ${ciomarketpop_public_header_model}
81+
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/ciomarketpop/model)
82+
install(TARGETS ciomarketpop
83+
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
84+
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
85+
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
86+
)
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
/*
2+
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#ifndef ALIBABACLOUD_CIOMARKETPOP_CIOMARKETPOPCLIENT_H_
18+
#define ALIBABACLOUD_CIOMARKETPOP_CIOMARKETPOPCLIENT_H_
19+
20+
#include <future>
21+
#include <alibabacloud/core/AsyncCallerContext.h>
22+
#include <alibabacloud/core/EndpointProvider.h>
23+
#include <alibabacloud/core/RpcServiceClient.h>
24+
#include "CioMarketPopExport.h"
25+
#include "model/GetEveryOneSellsFormListRequest.h"
26+
#include "model/GetEveryOneSellsFormListResult.h"
27+
28+
29+
namespace AlibabaCloud
30+
{
31+
namespace CioMarketPop
32+
{
33+
class ALIBABACLOUD_CIOMARKETPOP_EXPORT CioMarketPopClient : public RpcServiceClient
34+
{
35+
public:
36+
typedef Outcome<Error, Model::GetEveryOneSellsFormListResult> GetEveryOneSellsFormListOutcome;
37+
typedef std::future<GetEveryOneSellsFormListOutcome> GetEveryOneSellsFormListOutcomeCallable;
38+
typedef std::function<void(const CioMarketPopClient*, const Model::GetEveryOneSellsFormListRequest&, const GetEveryOneSellsFormListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetEveryOneSellsFormListAsyncHandler;
39+
40+
CioMarketPopClient(const Credentials &credentials, const ClientConfiguration &configuration);
41+
CioMarketPopClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
42+
CioMarketPopClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
43+
~CioMarketPopClient();
44+
GetEveryOneSellsFormListOutcome getEveryOneSellsFormList(const Model::GetEveryOneSellsFormListRequest &request)const;
45+
void getEveryOneSellsFormListAsync(const Model::GetEveryOneSellsFormListRequest& request, const GetEveryOneSellsFormListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
46+
GetEveryOneSellsFormListOutcomeCallable getEveryOneSellsFormListCallable(const Model::GetEveryOneSellsFormListRequest& request) const;
47+
48+
private:
49+
std::shared_ptr<EndpointProvider> endpointProvider_;
50+
};
51+
}
52+
}
53+
54+
#endif // !ALIBABACLOUD_CIOMARKETPOP_CIOMARKETPOPCLIENT_H_
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#ifndef ALIBABACLOUD_CIOMARKETPOP_CIOMARKETPOPEXPORT_H_
18+
#define ALIBABACLOUD_CIOMARKETPOP_CIOMARKETPOPEXPORT_H_
19+
20+
#include <alibabacloud/core/Global.h>
21+
22+
#if defined(ALIBABACLOUD_SHARED)
23+
# if defined(ALIBABACLOUD_CIOMARKETPOP_LIBRARY)
24+
# define ALIBABACLOUD_CIOMARKETPOP_EXPORT ALIBABACLOUD_DECL_EXPORT
25+
# else
26+
# define ALIBABACLOUD_CIOMARKETPOP_EXPORT ALIBABACLOUD_DECL_IMPORT
27+
# endif
28+
#else
29+
# define ALIBABACLOUD_CIOMARKETPOP_EXPORT
30+
#endif
31+
32+
#endif // !ALIBABACLOUD_CIOMARKETPOP_CIOMARKETPOPEXPORT_H_
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/*
2+
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#ifndef ALIBABACLOUD_CIOMARKETPOP_MODEL_GETEVERYONESELLSFORMLISTREQUEST_H_
18+
#define ALIBABACLOUD_CIOMARKETPOP_MODEL_GETEVERYONESELLSFORMLISTREQUEST_H_
19+
20+
#include <alibabacloud/ciomarketpop/CioMarketPopExport.h>
21+
#include <alibabacloud/core/RpcServiceRequest.h>
22+
#include <string>
23+
#include <vector>
24+
#include <map>
25+
26+
namespace AlibabaCloud {
27+
namespace CioMarketPop {
28+
namespace Model {
29+
class ALIBABACLOUD_CIOMARKETPOP_EXPORT GetEveryOneSellsFormListRequest : public RpcServiceRequest {
30+
public:
31+
GetEveryOneSellsFormListRequest();
32+
~GetEveryOneSellsFormListRequest();
33+
std::string getAuth() const;
34+
void setAuth(const std::string &auth);
35+
36+
private:
37+
std::string auth_;
38+
};
39+
} // namespace Model
40+
} // namespace CioMarketPop
41+
} // namespace AlibabaCloud
42+
#endif // !ALIBABACLOUD_CIOMARKETPOP_MODEL_GETEVERYONESELLSFORMLISTREQUEST_H_
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
/*
2+
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#ifndef ALIBABACLOUD_CIOMARKETPOP_MODEL_GETEVERYONESELLSFORMLISTRESULT_H_
18+
#define ALIBABACLOUD_CIOMARKETPOP_MODEL_GETEVERYONESELLSFORMLISTRESULT_H_
19+
20+
#include <string>
21+
#include <vector>
22+
#include <utility>
23+
#include <alibabacloud/core/ServiceResult.h>
24+
#include <alibabacloud/ciomarketpop/CioMarketPopExport.h>
25+
26+
namespace AlibabaCloud
27+
{
28+
namespace CioMarketPop
29+
{
30+
namespace Model
31+
{
32+
class ALIBABACLOUD_CIOMARKETPOP_EXPORT GetEveryOneSellsFormListResult : public ServiceResult
33+
{
34+
public:
35+
36+
37+
GetEveryOneSellsFormListResult();
38+
explicit GetEveryOneSellsFormListResult(const std::string &payload);
39+
~GetEveryOneSellsFormListResult();
40+
41+
protected:
42+
void parse(const std::string &payload);
43+
private:
44+
45+
};
46+
}
47+
}
48+
}
49+
#endif // !ALIBABACLOUD_CIOMARKETPOP_MODEL_GETEVERYONESELLSFORMLISTRESULT_H_
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
/*
2+
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#include <alibabacloud/ciomarketpop/CioMarketPopClient.h>
18+
#include <alibabacloud/core/SimpleCredentialsProvider.h>
19+
20+
using namespace AlibabaCloud;
21+
using namespace AlibabaCloud::Location;
22+
using namespace AlibabaCloud::CioMarketPop;
23+
using namespace AlibabaCloud::CioMarketPop::Model;
24+
25+
namespace
26+
{
27+
const std::string SERVICE_NAME = "CioMarketPop";
28+
}
29+
30+
CioMarketPopClient::CioMarketPopClient(const Credentials &credentials, const ClientConfiguration &configuration) :
31+
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
32+
{
33+
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
34+
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
35+
}
36+
37+
CioMarketPopClient::CioMarketPopClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
38+
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
39+
{
40+
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
41+
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
42+
}
43+
44+
CioMarketPopClient::CioMarketPopClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
45+
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
46+
{
47+
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
48+
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
49+
}
50+
51+
CioMarketPopClient::~CioMarketPopClient()
52+
{}
53+
54+
CioMarketPopClient::GetEveryOneSellsFormListOutcome CioMarketPopClient::getEveryOneSellsFormList(const GetEveryOneSellsFormListRequest &request) const
55+
{
56+
auto endpointOutcome = endpointProvider_->getEndpoint();
57+
if (!endpointOutcome.isSuccess())
58+
return GetEveryOneSellsFormListOutcome(endpointOutcome.error());
59+
60+
auto outcome = makeRequest(endpointOutcome.result(), request);
61+
62+
if (outcome.isSuccess())
63+
return GetEveryOneSellsFormListOutcome(GetEveryOneSellsFormListResult(outcome.result()));
64+
else
65+
return GetEveryOneSellsFormListOutcome(outcome.error());
66+
}
67+
68+
void CioMarketPopClient::getEveryOneSellsFormListAsync(const GetEveryOneSellsFormListRequest& request, const GetEveryOneSellsFormListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
69+
{
70+
auto fn = [this, request, handler, context]()
71+
{
72+
handler(this, request, getEveryOneSellsFormList(request), context);
73+
};
74+
75+
asyncExecute(new Runnable(fn));
76+
}
77+
78+
CioMarketPopClient::GetEveryOneSellsFormListOutcomeCallable CioMarketPopClient::getEveryOneSellsFormListCallable(const GetEveryOneSellsFormListRequest &request) const
79+
{
80+
auto task = std::make_shared<std::packaged_task<GetEveryOneSellsFormListOutcome()>>(
81+
[this, request]()
82+
{
83+
return this->getEveryOneSellsFormList(request);
84+
});
85+
86+
asyncExecute(new Runnable([task]() { (*task)(); }));
87+
return task->get_future();
88+
}
89+

0 commit comments

Comments
 (0)