Skip to content

Commit d2a2829

Browse files
committed
Generated 2019-08-02 for Ft.
1 parent 39681ea commit d2a2829

14 files changed

+702
-1
lines changed

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2019-08-20 Version 1.36.97
2+
- Generated 2019-08-02 for `Ft`.
3+
14
2019-08-20 Version 1.36.96
25
- Generated 2019-01-23 for `Drds`.
36

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.36.96
1+
1.36.97

ft/CMakeLists.txt

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
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(ft_public_header
20+
include/alibabacloud/ft/FtClient.h
21+
include/alibabacloud/ft/FtExport.h )
22+
23+
set(ft_public_header_model
24+
include/alibabacloud/ft/model/TestPortalRequest.h
25+
include/alibabacloud/ft/model/TestPortalResult.h
26+
include/alibabacloud/ft/model/RoaHttpStringResponseTestRequest.h
27+
include/alibabacloud/ft/model/RoaHttpStringResponseTestResult.h )
28+
29+
set(ft_src
30+
src/FtClient.cc
31+
src/model/TestPortalRequest.cc
32+
src/model/TestPortalResult.cc
33+
src/model/RoaHttpStringResponseTestRequest.cc
34+
src/model/RoaHttpStringResponseTestResult.cc )
35+
36+
add_library(ft ${LIB_TYPE}
37+
${ft_public_header}
38+
${ft_public_header_model}
39+
${ft_src})
40+
41+
set_target_properties(ft
42+
PROPERTIES
43+
LINKER_LANGUAGE CXX
44+
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
45+
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
46+
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
47+
OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}ft
48+
)
49+
50+
if(${LIB_TYPE} STREQUAL "SHARED")
51+
set_target_properties(ft
52+
PROPERTIES
53+
DEFINE_SYMBOL ALIBABACLOUD_FT_LIBRARY)
54+
endif()
55+
56+
target_include_directories(ft
57+
PRIVATE include
58+
${CMAKE_SOURCE_DIR}/core/include
59+
)
60+
target_link_libraries(ft
61+
core)
62+
63+
if(CMAKE_HOST_WIN32)
64+
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
65+
set(jsoncpp_install_dir ${INSTALL_DIR})
66+
add_dependencies(ft
67+
jsoncpp)
68+
target_include_directories(ft
69+
PRIVATE ${jsoncpp_install_dir}/include)
70+
target_link_libraries(ft
71+
${jsoncpp_install_dir}/lib/jsoncpp.lib)
72+
set_target_properties(ft
73+
PROPERTIES
74+
COMPILE_OPTIONS "/bigobj")
75+
else()
76+
target_include_directories(ft
77+
PRIVATE /usr/include/jsoncpp)
78+
target_link_libraries(ft
79+
jsoncpp)
80+
endif()
81+
82+
install(FILES ${ft_public_header}
83+
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/ft)
84+
install(FILES ${ft_public_header_model}
85+
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/ft/model)
86+
install(TARGETS ft
87+
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
88+
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
89+
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
90+
)
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
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_FT_FTCLIENT_H_
18+
#define ALIBABACLOUD_FT_FTCLIENT_H_
19+
20+
#include <future>
21+
#include <alibabacloud/core/AsyncCallerContext.h>
22+
#include <alibabacloud/core/EndpointProvider.h>
23+
#include <alibabacloud/core/RoaServiceClient.h>
24+
#include "FtExport.h"
25+
#include "model/TestPortalRequest.h"
26+
#include "model/TestPortalResult.h"
27+
#include "model/RoaHttpStringResponseTestRequest.h"
28+
#include "model/RoaHttpStringResponseTestResult.h"
29+
30+
31+
namespace AlibabaCloud
32+
{
33+
namespace Ft
34+
{
35+
class ALIBABACLOUD_FT_EXPORT FtClient : public RoaServiceClient
36+
{
37+
public:
38+
typedef Outcome<Error, Model::TestPortalResult> TestPortalOutcome;
39+
typedef std::future<TestPortalOutcome> TestPortalOutcomeCallable;
40+
typedef std::function<void(const FtClient*, const Model::TestPortalRequest&, const TestPortalOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TestPortalAsyncHandler;
41+
typedef Outcome<Error, Model::RoaHttpStringResponseTestResult> RoaHttpStringResponseTestOutcome;
42+
typedef std::future<RoaHttpStringResponseTestOutcome> RoaHttpStringResponseTestOutcomeCallable;
43+
typedef std::function<void(const FtClient*, const Model::RoaHttpStringResponseTestRequest&, const RoaHttpStringResponseTestOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RoaHttpStringResponseTestAsyncHandler;
44+
45+
FtClient(const Credentials &credentials, const ClientConfiguration &configuration);
46+
FtClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
47+
FtClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
48+
~FtClient();
49+
TestPortalOutcome testPortal(const Model::TestPortalRequest &request)const;
50+
void testPortalAsync(const Model::TestPortalRequest& request, const TestPortalAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
51+
TestPortalOutcomeCallable testPortalCallable(const Model::TestPortalRequest& request) const;
52+
RoaHttpStringResponseTestOutcome roaHttpStringResponseTest(const Model::RoaHttpStringResponseTestRequest &request)const;
53+
void roaHttpStringResponseTestAsync(const Model::RoaHttpStringResponseTestRequest& request, const RoaHttpStringResponseTestAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
54+
RoaHttpStringResponseTestOutcomeCallable roaHttpStringResponseTestCallable(const Model::RoaHttpStringResponseTestRequest& request) const;
55+
56+
private:
57+
std::shared_ptr<EndpointProvider> endpointProvider_;
58+
};
59+
}
60+
}
61+
62+
#endif // !ALIBABACLOUD_FT_FTCLIENT_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_FT_FTEXPORT_H_
18+
#define ALIBABACLOUD_FT_FTEXPORT_H_
19+
20+
#include <alibabacloud/core/Global.h>
21+
22+
#if defined(ALIBABACLOUD_SHARED)
23+
# if defined(ALIBABACLOUD_FT_LIBRARY)
24+
# define ALIBABACLOUD_FT_EXPORT ALIBABACLOUD_DECL_EXPORT
25+
# else
26+
# define ALIBABACLOUD_FT_EXPORT ALIBABACLOUD_DECL_IMPORT
27+
# endif
28+
#else
29+
# define ALIBABACLOUD_FT_EXPORT
30+
#endif
31+
32+
#endif // !ALIBABACLOUD_FT_FTEXPORT_H_
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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_FT_MODEL_ROAHTTPSTRINGRESPONSETESTREQUEST_H_
18+
#define ALIBABACLOUD_FT_MODEL_ROAHTTPSTRINGRESPONSETESTREQUEST_H_
19+
20+
#include <string>
21+
#include <vector>
22+
#include <alibabacloud/core/RoaServiceRequest.h>
23+
#include <alibabacloud/ft/FtExport.h>
24+
25+
namespace AlibabaCloud
26+
{
27+
namespace Ft
28+
{
29+
namespace Model
30+
{
31+
class ALIBABACLOUD_FT_EXPORT RoaHttpStringResponseTestRequest : public RoaServiceRequest
32+
{
33+
34+
public:
35+
RoaHttpStringResponseTestRequest();
36+
~RoaHttpStringResponseTestRequest();
37+
38+
std::string getQueryParam()const;
39+
void setQueryParam(const std::string& queryParam);
40+
41+
private:
42+
std::string queryParam_;
43+
44+
};
45+
}
46+
}
47+
}
48+
#endif // !ALIBABACLOUD_FT_MODEL_ROAHTTPSTRINGRESPONSETESTREQUEST_H_
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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_FT_MODEL_ROAHTTPSTRINGRESPONSETESTRESULT_H_
18+
#define ALIBABACLOUD_FT_MODEL_ROAHTTPSTRINGRESPONSETESTRESULT_H_
19+
20+
#include <string>
21+
#include <vector>
22+
#include <utility>
23+
#include <alibabacloud/core/ServiceResult.h>
24+
#include <alibabacloud/ft/FtExport.h>
25+
26+
namespace AlibabaCloud
27+
{
28+
namespace Ft
29+
{
30+
namespace Model
31+
{
32+
class ALIBABACLOUD_FT_EXPORT RoaHttpStringResponseTestResult : public ServiceResult
33+
{
34+
public:
35+
struct Params
36+
{
37+
std::string queryParam;
38+
};
39+
40+
41+
RoaHttpStringResponseTestResult();
42+
explicit RoaHttpStringResponseTestResult(const std::string &payload);
43+
~RoaHttpStringResponseTestResult();
44+
Params getParams()const;
45+
46+
protected:
47+
void parse(const std::string &payload);
48+
private:
49+
Params params_;
50+
51+
};
52+
}
53+
}
54+
}
55+
#endif // !ALIBABACLOUD_FT_MODEL_ROAHTTPSTRINGRESPONSETESTRESULT_H_
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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_FT_MODEL_TESTPORTALREQUEST_H_
18+
#define ALIBABACLOUD_FT_MODEL_TESTPORTALREQUEST_H_
19+
20+
#include <string>
21+
#include <vector>
22+
#include <alibabacloud/core/RoaServiceRequest.h>
23+
#include <alibabacloud/ft/FtExport.h>
24+
25+
namespace AlibabaCloud
26+
{
27+
namespace Ft
28+
{
29+
namespace Model
30+
{
31+
class ALIBABACLOUD_FT_EXPORT TestPortalRequest : public RoaServiceRequest
32+
{
33+
34+
public:
35+
TestPortalRequest();
36+
~TestPortalRequest();
37+
38+
std::string getName()const;
39+
void setName(const std::string& name);
40+
41+
private:
42+
std::string name_;
43+
44+
};
45+
}
46+
}
47+
}
48+
#endif // !ALIBABACLOUD_FT_MODEL_TESTPORTALREQUEST_H_

0 commit comments

Comments
 (0)