Release Ft SDK.
This commit is contained in:
122
ft/CMakeLists.txt
Normal file
122
ft/CMakeLists.txt
Normal file
@@ -0,0 +1,122 @@
|
||||
#
|
||||
# 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(ft_public_header
|
||||
include/alibabacloud/ft/FtClient.h
|
||||
include/alibabacloud/ft/FtExport.h )
|
||||
|
||||
set(ft_public_header_model
|
||||
include/alibabacloud/ft/model/BatchAuditTest01Request.h
|
||||
include/alibabacloud/ft/model/BatchAuditTest01Result.h
|
||||
include/alibabacloud/ft/model/FTApiAliasApiRequest.h
|
||||
include/alibabacloud/ft/model/FTApiAliasApiResult.h
|
||||
include/alibabacloud/ft/model/FtDynamicAddressDubboRequest.h
|
||||
include/alibabacloud/ft/model/FtDynamicAddressDubboResult.h
|
||||
include/alibabacloud/ft/model/FtDynamicAddressHsfRequest.h
|
||||
include/alibabacloud/ft/model/FtDynamicAddressHsfResult.h
|
||||
include/alibabacloud/ft/model/FtEagleEyeRequest.h
|
||||
include/alibabacloud/ft/model/FtEagleEyeResult.h
|
||||
include/alibabacloud/ft/model/FtFlowSpecialRequest.h
|
||||
include/alibabacloud/ft/model/FtFlowSpecialResult.h
|
||||
include/alibabacloud/ft/model/FtGatedLaunchPolicy4Request.h
|
||||
include/alibabacloud/ft/model/FtGatedLaunchPolicy4Result.h
|
||||
include/alibabacloud/ft/model/FtIpFlowControlRequest.h
|
||||
include/alibabacloud/ft/model/FtIpFlowControlResult.h
|
||||
include/alibabacloud/ft/model/FtParamListRequest.h
|
||||
include/alibabacloud/ft/model/FtParamListResult.h
|
||||
include/alibabacloud/ft/model/TestHttpApiRequest.h
|
||||
include/alibabacloud/ft/model/TestHttpApiResult.h )
|
||||
|
||||
set(ft_src
|
||||
src/FtClient.cc
|
||||
src/model/BatchAuditTest01Request.cc
|
||||
src/model/BatchAuditTest01Result.cc
|
||||
src/model/FTApiAliasApiRequest.cc
|
||||
src/model/FTApiAliasApiResult.cc
|
||||
src/model/FtDynamicAddressDubboRequest.cc
|
||||
src/model/FtDynamicAddressDubboResult.cc
|
||||
src/model/FtDynamicAddressHsfRequest.cc
|
||||
src/model/FtDynamicAddressHsfResult.cc
|
||||
src/model/FtEagleEyeRequest.cc
|
||||
src/model/FtEagleEyeResult.cc
|
||||
src/model/FtFlowSpecialRequest.cc
|
||||
src/model/FtFlowSpecialResult.cc
|
||||
src/model/FtGatedLaunchPolicy4Request.cc
|
||||
src/model/FtGatedLaunchPolicy4Result.cc
|
||||
src/model/FtIpFlowControlRequest.cc
|
||||
src/model/FtIpFlowControlResult.cc
|
||||
src/model/FtParamListRequest.cc
|
||||
src/model/FtParamListResult.cc
|
||||
src/model/TestHttpApiRequest.cc
|
||||
src/model/TestHttpApiResult.cc )
|
||||
|
||||
add_library(ft ${LIB_TYPE}
|
||||
${ft_public_header}
|
||||
${ft_public_header_model}
|
||||
${ft_src})
|
||||
|
||||
set_target_properties(ft
|
||||
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}ft
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(ft
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_FT_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(ft
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(ft
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(ft
|
||||
jsoncpp)
|
||||
target_include_directories(ft
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(ft
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(ft
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(ft
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(ft
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${ft_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/ft)
|
||||
install(FILES ${ft_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/ft/model)
|
||||
install(TARGETS ft
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
126
ft/include/alibabacloud/ft/FtClient.h
Normal file
126
ft/include/alibabacloud/ft/FtClient.h
Normal file
@@ -0,0 +1,126 @@
|
||||
/*
|
||||
* 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_FT_FTCLIENT_H_
|
||||
#define ALIBABACLOUD_FT_FTCLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "FtExport.h"
|
||||
#include "model/BatchAuditTest01Request.h"
|
||||
#include "model/BatchAuditTest01Result.h"
|
||||
#include "model/FTApiAliasApiRequest.h"
|
||||
#include "model/FTApiAliasApiResult.h"
|
||||
#include "model/FtDynamicAddressDubboRequest.h"
|
||||
#include "model/FtDynamicAddressDubboResult.h"
|
||||
#include "model/FtDynamicAddressHsfRequest.h"
|
||||
#include "model/FtDynamicAddressHsfResult.h"
|
||||
#include "model/FtEagleEyeRequest.h"
|
||||
#include "model/FtEagleEyeResult.h"
|
||||
#include "model/FtFlowSpecialRequest.h"
|
||||
#include "model/FtFlowSpecialResult.h"
|
||||
#include "model/FtGatedLaunchPolicy4Request.h"
|
||||
#include "model/FtGatedLaunchPolicy4Result.h"
|
||||
#include "model/FtIpFlowControlRequest.h"
|
||||
#include "model/FtIpFlowControlResult.h"
|
||||
#include "model/FtParamListRequest.h"
|
||||
#include "model/FtParamListResult.h"
|
||||
#include "model/TestHttpApiRequest.h"
|
||||
#include "model/TestHttpApiResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ft
|
||||
{
|
||||
class ALIBABACLOUD_FT_EXPORT FtClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::BatchAuditTest01Result> BatchAuditTest01Outcome;
|
||||
typedef std::future<BatchAuditTest01Outcome> BatchAuditTest01OutcomeCallable;
|
||||
typedef std::function<void(const FtClient*, const Model::BatchAuditTest01Request&, const BatchAuditTest01Outcome&, const std::shared_ptr<const AsyncCallerContext>&)> BatchAuditTest01AsyncHandler;
|
||||
typedef Outcome<Error, Model::FTApiAliasApiResult> FTApiAliasApiOutcome;
|
||||
typedef std::future<FTApiAliasApiOutcome> FTApiAliasApiOutcomeCallable;
|
||||
typedef std::function<void(const FtClient*, const Model::FTApiAliasApiRequest&, const FTApiAliasApiOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> FTApiAliasApiAsyncHandler;
|
||||
typedef Outcome<Error, Model::FtDynamicAddressDubboResult> FtDynamicAddressDubboOutcome;
|
||||
typedef std::future<FtDynamicAddressDubboOutcome> FtDynamicAddressDubboOutcomeCallable;
|
||||
typedef std::function<void(const FtClient*, const Model::FtDynamicAddressDubboRequest&, const FtDynamicAddressDubboOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> FtDynamicAddressDubboAsyncHandler;
|
||||
typedef Outcome<Error, Model::FtDynamicAddressHsfResult> FtDynamicAddressHsfOutcome;
|
||||
typedef std::future<FtDynamicAddressHsfOutcome> FtDynamicAddressHsfOutcomeCallable;
|
||||
typedef std::function<void(const FtClient*, const Model::FtDynamicAddressHsfRequest&, const FtDynamicAddressHsfOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> FtDynamicAddressHsfAsyncHandler;
|
||||
typedef Outcome<Error, Model::FtEagleEyeResult> FtEagleEyeOutcome;
|
||||
typedef std::future<FtEagleEyeOutcome> FtEagleEyeOutcomeCallable;
|
||||
typedef std::function<void(const FtClient*, const Model::FtEagleEyeRequest&, const FtEagleEyeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> FtEagleEyeAsyncHandler;
|
||||
typedef Outcome<Error, Model::FtFlowSpecialResult> FtFlowSpecialOutcome;
|
||||
typedef std::future<FtFlowSpecialOutcome> FtFlowSpecialOutcomeCallable;
|
||||
typedef std::function<void(const FtClient*, const Model::FtFlowSpecialRequest&, const FtFlowSpecialOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> FtFlowSpecialAsyncHandler;
|
||||
typedef Outcome<Error, Model::FtGatedLaunchPolicy4Result> FtGatedLaunchPolicy4Outcome;
|
||||
typedef std::future<FtGatedLaunchPolicy4Outcome> FtGatedLaunchPolicy4OutcomeCallable;
|
||||
typedef std::function<void(const FtClient*, const Model::FtGatedLaunchPolicy4Request&, const FtGatedLaunchPolicy4Outcome&, const std::shared_ptr<const AsyncCallerContext>&)> FtGatedLaunchPolicy4AsyncHandler;
|
||||
typedef Outcome<Error, Model::FtIpFlowControlResult> FtIpFlowControlOutcome;
|
||||
typedef std::future<FtIpFlowControlOutcome> FtIpFlowControlOutcomeCallable;
|
||||
typedef std::function<void(const FtClient*, const Model::FtIpFlowControlRequest&, const FtIpFlowControlOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> FtIpFlowControlAsyncHandler;
|
||||
typedef Outcome<Error, Model::FtParamListResult> FtParamListOutcome;
|
||||
typedef std::future<FtParamListOutcome> FtParamListOutcomeCallable;
|
||||
typedef std::function<void(const FtClient*, const Model::FtParamListRequest&, const FtParamListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> FtParamListAsyncHandler;
|
||||
typedef Outcome<Error, Model::TestHttpApiResult> TestHttpApiOutcome;
|
||||
typedef std::future<TestHttpApiOutcome> TestHttpApiOutcomeCallable;
|
||||
typedef std::function<void(const FtClient*, const Model::TestHttpApiRequest&, const TestHttpApiOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TestHttpApiAsyncHandler;
|
||||
|
||||
FtClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
FtClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
FtClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~FtClient();
|
||||
BatchAuditTest01Outcome batchAuditTest01(const Model::BatchAuditTest01Request &request)const;
|
||||
void batchAuditTest01Async(const Model::BatchAuditTest01Request& request, const BatchAuditTest01AsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
BatchAuditTest01OutcomeCallable batchAuditTest01Callable(const Model::BatchAuditTest01Request& request) const;
|
||||
FTApiAliasApiOutcome fTApiAliasApi(const Model::FTApiAliasApiRequest &request)const;
|
||||
void fTApiAliasApiAsync(const Model::FTApiAliasApiRequest& request, const FTApiAliasApiAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
FTApiAliasApiOutcomeCallable fTApiAliasApiCallable(const Model::FTApiAliasApiRequest& request) const;
|
||||
FtDynamicAddressDubboOutcome ftDynamicAddressDubbo(const Model::FtDynamicAddressDubboRequest &request)const;
|
||||
void ftDynamicAddressDubboAsync(const Model::FtDynamicAddressDubboRequest& request, const FtDynamicAddressDubboAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
FtDynamicAddressDubboOutcomeCallable ftDynamicAddressDubboCallable(const Model::FtDynamicAddressDubboRequest& request) const;
|
||||
FtDynamicAddressHsfOutcome ftDynamicAddressHsf(const Model::FtDynamicAddressHsfRequest &request)const;
|
||||
void ftDynamicAddressHsfAsync(const Model::FtDynamicAddressHsfRequest& request, const FtDynamicAddressHsfAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
FtDynamicAddressHsfOutcomeCallable ftDynamicAddressHsfCallable(const Model::FtDynamicAddressHsfRequest& request) const;
|
||||
FtEagleEyeOutcome ftEagleEye(const Model::FtEagleEyeRequest &request)const;
|
||||
void ftEagleEyeAsync(const Model::FtEagleEyeRequest& request, const FtEagleEyeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
FtEagleEyeOutcomeCallable ftEagleEyeCallable(const Model::FtEagleEyeRequest& request) const;
|
||||
FtFlowSpecialOutcome ftFlowSpecial(const Model::FtFlowSpecialRequest &request)const;
|
||||
void ftFlowSpecialAsync(const Model::FtFlowSpecialRequest& request, const FtFlowSpecialAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
FtFlowSpecialOutcomeCallable ftFlowSpecialCallable(const Model::FtFlowSpecialRequest& request) const;
|
||||
FtGatedLaunchPolicy4Outcome ftGatedLaunchPolicy4(const Model::FtGatedLaunchPolicy4Request &request)const;
|
||||
void ftGatedLaunchPolicy4Async(const Model::FtGatedLaunchPolicy4Request& request, const FtGatedLaunchPolicy4AsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
FtGatedLaunchPolicy4OutcomeCallable ftGatedLaunchPolicy4Callable(const Model::FtGatedLaunchPolicy4Request& request) const;
|
||||
FtIpFlowControlOutcome ftIpFlowControl(const Model::FtIpFlowControlRequest &request)const;
|
||||
void ftIpFlowControlAsync(const Model::FtIpFlowControlRequest& request, const FtIpFlowControlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
FtIpFlowControlOutcomeCallable ftIpFlowControlCallable(const Model::FtIpFlowControlRequest& request) const;
|
||||
FtParamListOutcome ftParamList(const Model::FtParamListRequest &request)const;
|
||||
void ftParamListAsync(const Model::FtParamListRequest& request, const FtParamListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
FtParamListOutcomeCallable ftParamListCallable(const Model::FtParamListRequest& request) const;
|
||||
TestHttpApiOutcome testHttpApi(const Model::TestHttpApiRequest &request)const;
|
||||
void testHttpApiAsync(const Model::TestHttpApiRequest& request, const TestHttpApiAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
TestHttpApiOutcomeCallable testHttpApiCallable(const Model::TestHttpApiRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_FT_FTCLIENT_H_
|
||||
32
ft/include/alibabacloud/ft/FtExport.h
Normal file
32
ft/include/alibabacloud/ft/FtExport.h
Normal file
@@ -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_FT_FTEXPORT_H_
|
||||
#define ALIBABACLOUD_FT_FTEXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_FT_LIBRARY)
|
||||
# define ALIBABACLOUD_FT_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_FT_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_FT_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // !ALIBABACLOUD_FT_FTEXPORT_H_
|
||||
57
ft/include/alibabacloud/ft/model/BatchAuditTest01Request.h
Normal file
57
ft/include/alibabacloud/ft/model/BatchAuditTest01Request.h
Normal file
@@ -0,0 +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_FT_MODEL_BATCHAUDITTEST01REQUEST_H_
|
||||
#define ALIBABACLOUD_FT_MODEL_BATCHAUDITTEST01REQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ft/FtExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ft
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FT_EXPORT BatchAuditTest01Request : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
BatchAuditTest01Request();
|
||||
~BatchAuditTest01Request();
|
||||
|
||||
std::string getDemo01()const;
|
||||
void setDemo01(const std::string& demo01);
|
||||
bool getTest010101()const;
|
||||
void setTest010101(bool test010101);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
std::string getBatchAuditTest01()const;
|
||||
void setBatchAuditTest01(const std::string& batchAuditTest01);
|
||||
|
||||
private:
|
||||
std::string demo01_;
|
||||
bool test010101_;
|
||||
std::string name_;
|
||||
std::string batchAuditTest01_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FT_MODEL_BATCHAUDITTEST01REQUEST_H_
|
||||
61
ft/include/alibabacloud/ft/model/BatchAuditTest01Result.h
Normal file
61
ft/include/alibabacloud/ft/model/BatchAuditTest01Result.h
Normal file
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* 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_FT_MODEL_BATCHAUDITTEST01RESULT_H_
|
||||
#define ALIBABACLOUD_FT_MODEL_BATCHAUDITTEST01RESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ft/FtExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ft
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FT_EXPORT BatchAuditTest01Result : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Demo01
|
||||
{
|
||||
struct Demo011Item
|
||||
{
|
||||
std::string demo0111;
|
||||
};
|
||||
std::vector<Demo011Item> demo011;
|
||||
};
|
||||
|
||||
|
||||
BatchAuditTest01Result();
|
||||
explicit BatchAuditTest01Result(const std::string &payload);
|
||||
~BatchAuditTest01Result();
|
||||
Demo01 getDemo01()const;
|
||||
std::string getName()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Demo01 demo01_;
|
||||
std::string name_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FT_MODEL_BATCHAUDITTEST01RESULT_H_
|
||||
48
ft/include/alibabacloud/ft/model/FTApiAliasApiRequest.h
Normal file
48
ft/include/alibabacloud/ft/model/FTApiAliasApiRequest.h
Normal 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_FT_MODEL_FTAPIALIASAPIREQUEST_H_
|
||||
#define ALIBABACLOUD_FT_MODEL_FTAPIALIASAPIREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ft/FtExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ft
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FT_EXPORT FTApiAliasApiRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
FTApiAliasApiRequest();
|
||||
~FTApiAliasApiRequest();
|
||||
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
|
||||
private:
|
||||
std::string name_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FT_MODEL_FTAPIALIASAPIREQUEST_H_
|
||||
51
ft/include/alibabacloud/ft/model/FTApiAliasApiResult.h
Normal file
51
ft/include/alibabacloud/ft/model/FTApiAliasApiResult.h
Normal 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_FT_MODEL_FTAPIALIASAPIRESULT_H_
|
||||
#define ALIBABACLOUD_FT_MODEL_FTAPIALIASAPIRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ft/FtExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ft
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FT_EXPORT FTApiAliasApiResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
FTApiAliasApiResult();
|
||||
explicit FTApiAliasApiResult(const std::string &payload);
|
||||
~FTApiAliasApiResult();
|
||||
std::string getName()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string name_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FT_MODEL_FTAPIALIASAPIRESULT_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_FT_MODEL_FTDYNAMICADDRESSDUBBOREQUEST_H_
|
||||
#define ALIBABACLOUD_FT_MODEL_FTDYNAMICADDRESSDUBBOREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ft/FtExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ft
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FT_EXPORT FtDynamicAddressDubboRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
FtDynamicAddressDubboRequest();
|
||||
~FtDynamicAddressDubboRequest();
|
||||
|
||||
int getIntValue()const;
|
||||
void setIntValue(int intValue);
|
||||
std::string getStringValue()const;
|
||||
void setStringValue(const std::string& stringValue);
|
||||
|
||||
private:
|
||||
int intValue_;
|
||||
std::string stringValue_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FT_MODEL_FTDYNAMICADDRESSDUBBOREQUEST_H_
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_FT_MODEL_FTDYNAMICADDRESSDUBBORESULT_H_
|
||||
#define ALIBABACLOUD_FT_MODEL_FTDYNAMICADDRESSDUBBORESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ft/FtExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ft
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FT_EXPORT FtDynamicAddressDubboResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
FtDynamicAddressDubboResult();
|
||||
explicit FtDynamicAddressDubboResult(const std::string &payload);
|
||||
~FtDynamicAddressDubboResult();
|
||||
std::string getStringValue()const;
|
||||
int getIntValue()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string stringValue_;
|
||||
int intValue_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FT_MODEL_FTDYNAMICADDRESSDUBBORESULT_H_
|
||||
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_FT_MODEL_FTDYNAMICADDRESSHSFREQUEST_H_
|
||||
#define ALIBABACLOUD_FT_MODEL_FTDYNAMICADDRESSHSFREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ft/FtExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ft
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FT_EXPORT FtDynamicAddressHsfRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
FtDynamicAddressHsfRequest();
|
||||
~FtDynamicAddressHsfRequest();
|
||||
|
||||
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FT_MODEL_FTDYNAMICADDRESSHSFREQUEST_H_
|
||||
49
ft/include/alibabacloud/ft/model/FtDynamicAddressHsfResult.h
Normal file
49
ft/include/alibabacloud/ft/model/FtDynamicAddressHsfResult.h
Normal file
@@ -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_FT_MODEL_FTDYNAMICADDRESSHSFRESULT_H_
|
||||
#define ALIBABACLOUD_FT_MODEL_FTDYNAMICADDRESSHSFRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ft/FtExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ft
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FT_EXPORT FtDynamicAddressHsfResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
FtDynamicAddressHsfResult();
|
||||
explicit FtDynamicAddressHsfResult(const std::string &payload);
|
||||
~FtDynamicAddressHsfResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FT_MODEL_FTDYNAMICADDRESSHSFRESULT_H_
|
||||
48
ft/include/alibabacloud/ft/model/FtEagleEyeRequest.h
Normal file
48
ft/include/alibabacloud/ft/model/FtEagleEyeRequest.h
Normal 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_FT_MODEL_FTEAGLEEYEREQUEST_H_
|
||||
#define ALIBABACLOUD_FT_MODEL_FTEAGLEEYEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ft/FtExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ft
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FT_EXPORT FtEagleEyeRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
FtEagleEyeRequest();
|
||||
~FtEagleEyeRequest();
|
||||
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
|
||||
private:
|
||||
std::string name_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FT_MODEL_FTEAGLEEYEREQUEST_H_
|
||||
53
ft/include/alibabacloud/ft/model/FtEagleEyeResult.h
Normal file
53
ft/include/alibabacloud/ft/model/FtEagleEyeResult.h
Normal 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_FT_MODEL_FTEAGLEEYERESULT_H_
|
||||
#define ALIBABACLOUD_FT_MODEL_FTEAGLEEYERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ft/FtExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ft
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FT_EXPORT FtEagleEyeResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
FtEagleEyeResult();
|
||||
explicit FtEagleEyeResult(const std::string &payload);
|
||||
~FtEagleEyeResult();
|
||||
std::string getEagleEyeTraceId()const;
|
||||
std::string getName()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string eagleEyeTraceId_;
|
||||
std::string name_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FT_MODEL_FTEAGLEEYERESULT_H_
|
||||
48
ft/include/alibabacloud/ft/model/FtFlowSpecialRequest.h
Normal file
48
ft/include/alibabacloud/ft/model/FtFlowSpecialRequest.h
Normal 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_FT_MODEL_FTFLOWSPECIALREQUEST_H_
|
||||
#define ALIBABACLOUD_FT_MODEL_FTFLOWSPECIALREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ft/FtExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ft
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FT_EXPORT FtFlowSpecialRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
FtFlowSpecialRequest();
|
||||
~FtFlowSpecialRequest();
|
||||
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
|
||||
private:
|
||||
std::string name_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FT_MODEL_FTFLOWSPECIALREQUEST_H_
|
||||
51
ft/include/alibabacloud/ft/model/FtFlowSpecialResult.h
Normal file
51
ft/include/alibabacloud/ft/model/FtFlowSpecialResult.h
Normal 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_FT_MODEL_FTFLOWSPECIALRESULT_H_
|
||||
#define ALIBABACLOUD_FT_MODEL_FTFLOWSPECIALRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ft/FtExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ft
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FT_EXPORT FtFlowSpecialResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
FtFlowSpecialResult();
|
||||
explicit FtFlowSpecialResult(const std::string &payload);
|
||||
~FtFlowSpecialResult();
|
||||
std::string getName()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string name_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FT_MODEL_FTFLOWSPECIALRESULT_H_
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_FT_MODEL_FTGATEDLAUNCHPOLICY4REQUEST_H_
|
||||
#define ALIBABACLOUD_FT_MODEL_FTGATEDLAUNCHPOLICY4REQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ft/FtExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ft
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FT_EXPORT FtGatedLaunchPolicy4Request : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
FtGatedLaunchPolicy4Request();
|
||||
~FtGatedLaunchPolicy4Request();
|
||||
|
||||
std::string getIsGatedLaunch()const;
|
||||
void setIsGatedLaunch(const std::string& isGatedLaunch);
|
||||
|
||||
private:
|
||||
std::string isGatedLaunch_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FT_MODEL_FTGATEDLAUNCHPOLICY4REQUEST_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_FT_MODEL_FTGATEDLAUNCHPOLICY4RESULT_H_
|
||||
#define ALIBABACLOUD_FT_MODEL_FTGATEDLAUNCHPOLICY4RESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ft/FtExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ft
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FT_EXPORT FtGatedLaunchPolicy4Result : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
FtGatedLaunchPolicy4Result();
|
||||
explicit FtGatedLaunchPolicy4Result(const std::string &payload);
|
||||
~FtGatedLaunchPolicy4Result();
|
||||
std::string getIsGatedLaunch()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string isGatedLaunch_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FT_MODEL_FTGATEDLAUNCHPOLICY4RESULT_H_
|
||||
48
ft/include/alibabacloud/ft/model/FtIpFlowControlRequest.h
Normal file
48
ft/include/alibabacloud/ft/model/FtIpFlowControlRequest.h
Normal 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_FT_MODEL_FTIPFLOWCONTROLREQUEST_H_
|
||||
#define ALIBABACLOUD_FT_MODEL_FTIPFLOWCONTROLREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ft/FtExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ft
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FT_EXPORT FtIpFlowControlRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
FtIpFlowControlRequest();
|
||||
~FtIpFlowControlRequest();
|
||||
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
|
||||
private:
|
||||
std::string name_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FT_MODEL_FTIPFLOWCONTROLREQUEST_H_
|
||||
51
ft/include/alibabacloud/ft/model/FtIpFlowControlResult.h
Normal file
51
ft/include/alibabacloud/ft/model/FtIpFlowControlResult.h
Normal 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_FT_MODEL_FTIPFLOWCONTROLRESULT_H_
|
||||
#define ALIBABACLOUD_FT_MODEL_FTIPFLOWCONTROLRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ft/FtExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ft
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FT_EXPORT FtIpFlowControlResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
FtIpFlowControlResult();
|
||||
explicit FtIpFlowControlResult(const std::string &payload);
|
||||
~FtIpFlowControlResult();
|
||||
std::string getName()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string name_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FT_MODEL_FTIPFLOWCONTROLRESULT_H_
|
||||
57
ft/include/alibabacloud/ft/model/FtParamListRequest.h
Normal file
57
ft/include/alibabacloud/ft/model/FtParamListRequest.h
Normal file
@@ -0,0 +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_FT_MODEL_FTPARAMLISTREQUEST_H_
|
||||
#define ALIBABACLOUD_FT_MODEL_FTPARAMLISTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ft/FtExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ft
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FT_EXPORT FtParamListRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct Disk
|
||||
{
|
||||
std::vector<std::string> size;
|
||||
std::vector<std::string> type;
|
||||
};
|
||||
|
||||
public:
|
||||
FtParamListRequest();
|
||||
~FtParamListRequest();
|
||||
|
||||
std::vector<Disk> getDisk()const;
|
||||
void setDisk(const std::vector<Disk>& disk);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
|
||||
private:
|
||||
std::vector<Disk> disk_;
|
||||
std::string name_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FT_MODEL_FTPARAMLISTREQUEST_H_
|
||||
51
ft/include/alibabacloud/ft/model/FtParamListResult.h
Normal file
51
ft/include/alibabacloud/ft/model/FtParamListResult.h
Normal 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_FT_MODEL_FTPARAMLISTRESULT_H_
|
||||
#define ALIBABACLOUD_FT_MODEL_FTPARAMLISTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ft/FtExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ft
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FT_EXPORT FtParamListResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
FtParamListResult();
|
||||
explicit FtParamListResult(const std::string &payload);
|
||||
~FtParamListResult();
|
||||
std::string getName()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string name_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FT_MODEL_FTPARAMLISTRESULT_H_
|
||||
57
ft/include/alibabacloud/ft/model/TestHttpApiRequest.h
Normal file
57
ft/include/alibabacloud/ft/model/TestHttpApiRequest.h
Normal file
@@ -0,0 +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_FT_MODEL_TESTHTTPAPIREQUEST_H_
|
||||
#define ALIBABACLOUD_FT_MODEL_TESTHTTPAPIREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ft/FtExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ft
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FT_EXPORT TestHttpApiRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
TestHttpApiRequest();
|
||||
~TestHttpApiRequest();
|
||||
|
||||
std::string getStringValue()const;
|
||||
void setStringValue(const std::string& stringValue);
|
||||
std::string getOtherParam()const;
|
||||
void setOtherParam(const std::string& otherParam);
|
||||
bool getBooleanParam()const;
|
||||
void setBooleanParam(bool booleanParam);
|
||||
std::string getDefaultValue()const;
|
||||
void setDefaultValue(const std::string& defaultValue);
|
||||
|
||||
private:
|
||||
std::string stringValue_;
|
||||
std::string otherParam_;
|
||||
bool booleanParam_;
|
||||
std::string defaultValue_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FT_MODEL_TESTHTTPAPIREQUEST_H_
|
||||
53
ft/include/alibabacloud/ft/model/TestHttpApiResult.h
Normal file
53
ft/include/alibabacloud/ft/model/TestHttpApiResult.h
Normal 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_FT_MODEL_TESTHTTPAPIRESULT_H_
|
||||
#define ALIBABACLOUD_FT_MODEL_TESTHTTPAPIRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ft/FtExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ft
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FT_EXPORT TestHttpApiResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
TestHttpApiResult();
|
||||
explicit TestHttpApiResult(const std::string &payload);
|
||||
~TestHttpApiResult();
|
||||
std::string getServiceRpcSign()const;
|
||||
std::string getParams()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string serviceRpcSign_;
|
||||
std::string params_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FT_MODEL_TESTHTTPAPIRESULT_H_
|
||||
413
ft/src/FtClient.cc
Normal file
413
ft/src/FtClient.cc
Normal file
@@ -0,0 +1,413 @@
|
||||
/*
|
||||
* 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/ft/FtClient.h>
|
||||
#include <alibabacloud/core/SimpleCredentialsProvider.h>
|
||||
|
||||
using namespace AlibabaCloud;
|
||||
using namespace AlibabaCloud::Location;
|
||||
using namespace AlibabaCloud::Ft;
|
||||
using namespace AlibabaCloud::Ft::Model;
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "Ft";
|
||||
}
|
||||
|
||||
FtClient::FtClient(const Credentials &credentials, const ClientConfiguration &configuration) :
|
||||
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, "");
|
||||
}
|
||||
|
||||
FtClient::FtClient(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, "");
|
||||
}
|
||||
|
||||
FtClient::FtClient(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, "");
|
||||
}
|
||||
|
||||
FtClient::~FtClient()
|
||||
{}
|
||||
|
||||
FtClient::BatchAuditTest01Outcome FtClient::batchAuditTest01(const BatchAuditTest01Request &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return BatchAuditTest01Outcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return BatchAuditTest01Outcome(BatchAuditTest01Result(outcome.result()));
|
||||
else
|
||||
return BatchAuditTest01Outcome(outcome.error());
|
||||
}
|
||||
|
||||
void FtClient::batchAuditTest01Async(const BatchAuditTest01Request& request, const BatchAuditTest01AsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, batchAuditTest01(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
FtClient::BatchAuditTest01OutcomeCallable FtClient::batchAuditTest01Callable(const BatchAuditTest01Request &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<BatchAuditTest01Outcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->batchAuditTest01(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FtClient::FTApiAliasApiOutcome FtClient::fTApiAliasApi(const FTApiAliasApiRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return FTApiAliasApiOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return FTApiAliasApiOutcome(FTApiAliasApiResult(outcome.result()));
|
||||
else
|
||||
return FTApiAliasApiOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void FtClient::fTApiAliasApiAsync(const FTApiAliasApiRequest& request, const FTApiAliasApiAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, fTApiAliasApi(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
FtClient::FTApiAliasApiOutcomeCallable FtClient::fTApiAliasApiCallable(const FTApiAliasApiRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<FTApiAliasApiOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->fTApiAliasApi(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FtClient::FtDynamicAddressDubboOutcome FtClient::ftDynamicAddressDubbo(const FtDynamicAddressDubboRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return FtDynamicAddressDubboOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return FtDynamicAddressDubboOutcome(FtDynamicAddressDubboResult(outcome.result()));
|
||||
else
|
||||
return FtDynamicAddressDubboOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void FtClient::ftDynamicAddressDubboAsync(const FtDynamicAddressDubboRequest& request, const FtDynamicAddressDubboAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, ftDynamicAddressDubbo(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
FtClient::FtDynamicAddressDubboOutcomeCallable FtClient::ftDynamicAddressDubboCallable(const FtDynamicAddressDubboRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<FtDynamicAddressDubboOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->ftDynamicAddressDubbo(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FtClient::FtDynamicAddressHsfOutcome FtClient::ftDynamicAddressHsf(const FtDynamicAddressHsfRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return FtDynamicAddressHsfOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return FtDynamicAddressHsfOutcome(FtDynamicAddressHsfResult(outcome.result()));
|
||||
else
|
||||
return FtDynamicAddressHsfOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void FtClient::ftDynamicAddressHsfAsync(const FtDynamicAddressHsfRequest& request, const FtDynamicAddressHsfAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, ftDynamicAddressHsf(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
FtClient::FtDynamicAddressHsfOutcomeCallable FtClient::ftDynamicAddressHsfCallable(const FtDynamicAddressHsfRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<FtDynamicAddressHsfOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->ftDynamicAddressHsf(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FtClient::FtEagleEyeOutcome FtClient::ftEagleEye(const FtEagleEyeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return FtEagleEyeOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return FtEagleEyeOutcome(FtEagleEyeResult(outcome.result()));
|
||||
else
|
||||
return FtEagleEyeOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void FtClient::ftEagleEyeAsync(const FtEagleEyeRequest& request, const FtEagleEyeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, ftEagleEye(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
FtClient::FtEagleEyeOutcomeCallable FtClient::ftEagleEyeCallable(const FtEagleEyeRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<FtEagleEyeOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->ftEagleEye(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FtClient::FtFlowSpecialOutcome FtClient::ftFlowSpecial(const FtFlowSpecialRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return FtFlowSpecialOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return FtFlowSpecialOutcome(FtFlowSpecialResult(outcome.result()));
|
||||
else
|
||||
return FtFlowSpecialOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void FtClient::ftFlowSpecialAsync(const FtFlowSpecialRequest& request, const FtFlowSpecialAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, ftFlowSpecial(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
FtClient::FtFlowSpecialOutcomeCallable FtClient::ftFlowSpecialCallable(const FtFlowSpecialRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<FtFlowSpecialOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->ftFlowSpecial(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FtClient::FtGatedLaunchPolicy4Outcome FtClient::ftGatedLaunchPolicy4(const FtGatedLaunchPolicy4Request &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return FtGatedLaunchPolicy4Outcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return FtGatedLaunchPolicy4Outcome(FtGatedLaunchPolicy4Result(outcome.result()));
|
||||
else
|
||||
return FtGatedLaunchPolicy4Outcome(outcome.error());
|
||||
}
|
||||
|
||||
void FtClient::ftGatedLaunchPolicy4Async(const FtGatedLaunchPolicy4Request& request, const FtGatedLaunchPolicy4AsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, ftGatedLaunchPolicy4(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
FtClient::FtGatedLaunchPolicy4OutcomeCallable FtClient::ftGatedLaunchPolicy4Callable(const FtGatedLaunchPolicy4Request &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<FtGatedLaunchPolicy4Outcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->ftGatedLaunchPolicy4(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FtClient::FtIpFlowControlOutcome FtClient::ftIpFlowControl(const FtIpFlowControlRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return FtIpFlowControlOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return FtIpFlowControlOutcome(FtIpFlowControlResult(outcome.result()));
|
||||
else
|
||||
return FtIpFlowControlOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void FtClient::ftIpFlowControlAsync(const FtIpFlowControlRequest& request, const FtIpFlowControlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, ftIpFlowControl(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
FtClient::FtIpFlowControlOutcomeCallable FtClient::ftIpFlowControlCallable(const FtIpFlowControlRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<FtIpFlowControlOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->ftIpFlowControl(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FtClient::FtParamListOutcome FtClient::ftParamList(const FtParamListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return FtParamListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return FtParamListOutcome(FtParamListResult(outcome.result()));
|
||||
else
|
||||
return FtParamListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void FtClient::ftParamListAsync(const FtParamListRequest& request, const FtParamListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, ftParamList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
FtClient::FtParamListOutcomeCallable FtClient::ftParamListCallable(const FtParamListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<FtParamListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->ftParamList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FtClient::TestHttpApiOutcome FtClient::testHttpApi(const TestHttpApiRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return TestHttpApiOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return TestHttpApiOutcome(TestHttpApiResult(outcome.result()));
|
||||
else
|
||||
return TestHttpApiOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void FtClient::testHttpApiAsync(const TestHttpApiRequest& request, const TestHttpApiAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, testHttpApi(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
FtClient::TestHttpApiOutcomeCallable FtClient::testHttpApiCallable(const TestHttpApiRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<TestHttpApiOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->testHttpApi(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
73
ft/src/model/BatchAuditTest01Request.cc
Normal file
73
ft/src/model/BatchAuditTest01Request.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* 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/ft/model/BatchAuditTest01Request.h>
|
||||
|
||||
using AlibabaCloud::Ft::Model::BatchAuditTest01Request;
|
||||
|
||||
BatchAuditTest01Request::BatchAuditTest01Request() :
|
||||
RpcServiceRequest("ft", "2018-07-13", "BatchAuditTest01")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BatchAuditTest01Request::~BatchAuditTest01Request()
|
||||
{}
|
||||
|
||||
std::string BatchAuditTest01Request::getDemo01()const
|
||||
{
|
||||
return demo01_;
|
||||
}
|
||||
|
||||
void BatchAuditTest01Request::setDemo01(const std::string& demo01)
|
||||
{
|
||||
demo01_ = demo01;
|
||||
setParameter("Demo01", demo01);
|
||||
}
|
||||
|
||||
bool BatchAuditTest01Request::getTest010101()const
|
||||
{
|
||||
return test010101_;
|
||||
}
|
||||
|
||||
void BatchAuditTest01Request::setTest010101(bool test010101)
|
||||
{
|
||||
test010101_ = test010101;
|
||||
setBodyParameter("Test010101", test010101 ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string BatchAuditTest01Request::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void BatchAuditTest01Request::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string BatchAuditTest01Request::getBatchAuditTest01()const
|
||||
{
|
||||
return batchAuditTest01_;
|
||||
}
|
||||
|
||||
void BatchAuditTest01Request::setBatchAuditTest01(const std::string& batchAuditTest01)
|
||||
{
|
||||
batchAuditTest01_ = batchAuditTest01;
|
||||
setParameter("BatchAuditTest01", batchAuditTest01);
|
||||
}
|
||||
|
||||
65
ft/src/model/BatchAuditTest01Result.cc
Normal file
65
ft/src/model/BatchAuditTest01Result.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* 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/ft/model/BatchAuditTest01Result.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ft;
|
||||
using namespace AlibabaCloud::Ft::Model;
|
||||
|
||||
BatchAuditTest01Result::BatchAuditTest01Result() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BatchAuditTest01Result::BatchAuditTest01Result(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BatchAuditTest01Result::~BatchAuditTest01Result()
|
||||
{}
|
||||
|
||||
void BatchAuditTest01Result::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto demo01Node = value["Demo01"];
|
||||
auto allDemo011Node = demo01Node["Demo011"]["Demo011Item"];
|
||||
for (auto demo01NodeDemo011Demo011Item : allDemo011Node)
|
||||
{
|
||||
Demo01::Demo011Item demo011ItemObject;
|
||||
if(!demo01NodeDemo011Demo011Item["Demo0111"].isNull())
|
||||
demo011ItemObject.demo0111 = demo01NodeDemo011Demo011Item["Demo0111"].asString();
|
||||
demo01_.demo011.push_back(demo011ItemObject);
|
||||
}
|
||||
if(!value["Name"].isNull())
|
||||
name_ = value["Name"].asString();
|
||||
|
||||
}
|
||||
|
||||
BatchAuditTest01Result::Demo01 BatchAuditTest01Result::getDemo01()const
|
||||
{
|
||||
return demo01_;
|
||||
}
|
||||
|
||||
std::string BatchAuditTest01Result::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
40
ft/src/model/FTApiAliasApiRequest.cc
Normal file
40
ft/src/model/FTApiAliasApiRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/ft/model/FTApiAliasApiRequest.h>
|
||||
|
||||
using AlibabaCloud::Ft::Model::FTApiAliasApiRequest;
|
||||
|
||||
FTApiAliasApiRequest::FTApiAliasApiRequest() :
|
||||
RpcServiceRequest("ft", "2018-07-13", "FTApiAliasApi")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
FTApiAliasApiRequest::~FTApiAliasApiRequest()
|
||||
{}
|
||||
|
||||
std::string FTApiAliasApiRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void FTApiAliasApiRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
51
ft/src/model/FTApiAliasApiResult.cc
Normal file
51
ft/src/model/FTApiAliasApiResult.cc
Normal 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ft/model/FTApiAliasApiResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ft;
|
||||
using namespace AlibabaCloud::Ft::Model;
|
||||
|
||||
FTApiAliasApiResult::FTApiAliasApiResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
FTApiAliasApiResult::FTApiAliasApiResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
FTApiAliasApiResult::~FTApiAliasApiResult()
|
||||
{}
|
||||
|
||||
void FTApiAliasApiResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Name"].isNull())
|
||||
name_ = value["Name"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string FTApiAliasApiResult::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
51
ft/src/model/FtDynamicAddressDubboRequest.cc
Normal file
51
ft/src/model/FtDynamicAddressDubboRequest.cc
Normal 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ft/model/FtDynamicAddressDubboRequest.h>
|
||||
|
||||
using AlibabaCloud::Ft::Model::FtDynamicAddressDubboRequest;
|
||||
|
||||
FtDynamicAddressDubboRequest::FtDynamicAddressDubboRequest() :
|
||||
RpcServiceRequest("ft", "2018-07-13", "FtDynamicAddressDubbo")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
FtDynamicAddressDubboRequest::~FtDynamicAddressDubboRequest()
|
||||
{}
|
||||
|
||||
int FtDynamicAddressDubboRequest::getIntValue()const
|
||||
{
|
||||
return intValue_;
|
||||
}
|
||||
|
||||
void FtDynamicAddressDubboRequest::setIntValue(int intValue)
|
||||
{
|
||||
intValue_ = intValue;
|
||||
setParameter("IntValue", std::to_string(intValue));
|
||||
}
|
||||
|
||||
std::string FtDynamicAddressDubboRequest::getStringValue()const
|
||||
{
|
||||
return stringValue_;
|
||||
}
|
||||
|
||||
void FtDynamicAddressDubboRequest::setStringValue(const std::string& stringValue)
|
||||
{
|
||||
stringValue_ = stringValue;
|
||||
setParameter("StringValue", stringValue);
|
||||
}
|
||||
|
||||
58
ft/src/model/FtDynamicAddressDubboResult.cc
Normal file
58
ft/src/model/FtDynamicAddressDubboResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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/ft/model/FtDynamicAddressDubboResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ft;
|
||||
using namespace AlibabaCloud::Ft::Model;
|
||||
|
||||
FtDynamicAddressDubboResult::FtDynamicAddressDubboResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
FtDynamicAddressDubboResult::FtDynamicAddressDubboResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
FtDynamicAddressDubboResult::~FtDynamicAddressDubboResult()
|
||||
{}
|
||||
|
||||
void FtDynamicAddressDubboResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["StringValue"].isNull())
|
||||
stringValue_ = value["StringValue"].asString();
|
||||
if(!value["IntValue"].isNull())
|
||||
intValue_ = std::stoi(value["IntValue"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string FtDynamicAddressDubboResult::getStringValue()const
|
||||
{
|
||||
return stringValue_;
|
||||
}
|
||||
|
||||
int FtDynamicAddressDubboResult::getIntValue()const
|
||||
{
|
||||
return intValue_;
|
||||
}
|
||||
|
||||
29
ft/src/model/FtDynamicAddressHsfRequest.cc
Normal file
29
ft/src/model/FtDynamicAddressHsfRequest.cc
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* 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/ft/model/FtDynamicAddressHsfRequest.h>
|
||||
|
||||
using AlibabaCloud::Ft::Model::FtDynamicAddressHsfRequest;
|
||||
|
||||
FtDynamicAddressHsfRequest::FtDynamicAddressHsfRequest() :
|
||||
RpcServiceRequest("ft", "2018-07-13", "FtDynamicAddressHsf")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
FtDynamicAddressHsfRequest::~FtDynamicAddressHsfRequest()
|
||||
{}
|
||||
|
||||
44
ft/src/model/FtDynamicAddressHsfResult.cc
Normal file
44
ft/src/model/FtDynamicAddressHsfResult.cc
Normal file
@@ -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 <alibabacloud/ft/model/FtDynamicAddressHsfResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ft;
|
||||
using namespace AlibabaCloud::Ft::Model;
|
||||
|
||||
FtDynamicAddressHsfResult::FtDynamicAddressHsfResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
FtDynamicAddressHsfResult::FtDynamicAddressHsfResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
FtDynamicAddressHsfResult::~FtDynamicAddressHsfResult()
|
||||
{}
|
||||
|
||||
void FtDynamicAddressHsfResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
40
ft/src/model/FtEagleEyeRequest.cc
Normal file
40
ft/src/model/FtEagleEyeRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/ft/model/FtEagleEyeRequest.h>
|
||||
|
||||
using AlibabaCloud::Ft::Model::FtEagleEyeRequest;
|
||||
|
||||
FtEagleEyeRequest::FtEagleEyeRequest() :
|
||||
RpcServiceRequest("ft", "2018-07-13", "FtEagleEye")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
FtEagleEyeRequest::~FtEagleEyeRequest()
|
||||
{}
|
||||
|
||||
std::string FtEagleEyeRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void FtEagleEyeRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
58
ft/src/model/FtEagleEyeResult.cc
Normal file
58
ft/src/model/FtEagleEyeResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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/ft/model/FtEagleEyeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ft;
|
||||
using namespace AlibabaCloud::Ft::Model;
|
||||
|
||||
FtEagleEyeResult::FtEagleEyeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
FtEagleEyeResult::FtEagleEyeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
FtEagleEyeResult::~FtEagleEyeResult()
|
||||
{}
|
||||
|
||||
void FtEagleEyeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Name"].isNull())
|
||||
name_ = value["Name"].asString();
|
||||
if(!value["eagleEyeTraceId"].isNull())
|
||||
eagleEyeTraceId_ = value["eagleEyeTraceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string FtEagleEyeResult::getEagleEyeTraceId()const
|
||||
{
|
||||
return eagleEyeTraceId_;
|
||||
}
|
||||
|
||||
std::string FtEagleEyeResult::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
40
ft/src/model/FtFlowSpecialRequest.cc
Normal file
40
ft/src/model/FtFlowSpecialRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/ft/model/FtFlowSpecialRequest.h>
|
||||
|
||||
using AlibabaCloud::Ft::Model::FtFlowSpecialRequest;
|
||||
|
||||
FtFlowSpecialRequest::FtFlowSpecialRequest() :
|
||||
RpcServiceRequest("ft", "2018-07-13", "FtFlowSpecial")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
FtFlowSpecialRequest::~FtFlowSpecialRequest()
|
||||
{}
|
||||
|
||||
std::string FtFlowSpecialRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void FtFlowSpecialRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
51
ft/src/model/FtFlowSpecialResult.cc
Normal file
51
ft/src/model/FtFlowSpecialResult.cc
Normal 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ft/model/FtFlowSpecialResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ft;
|
||||
using namespace AlibabaCloud::Ft::Model;
|
||||
|
||||
FtFlowSpecialResult::FtFlowSpecialResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
FtFlowSpecialResult::FtFlowSpecialResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
FtFlowSpecialResult::~FtFlowSpecialResult()
|
||||
{}
|
||||
|
||||
void FtFlowSpecialResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Name"].isNull())
|
||||
name_ = value["Name"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string FtFlowSpecialResult::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
40
ft/src/model/FtGatedLaunchPolicy4Request.cc
Normal file
40
ft/src/model/FtGatedLaunchPolicy4Request.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/ft/model/FtGatedLaunchPolicy4Request.h>
|
||||
|
||||
using AlibabaCloud::Ft::Model::FtGatedLaunchPolicy4Request;
|
||||
|
||||
FtGatedLaunchPolicy4Request::FtGatedLaunchPolicy4Request() :
|
||||
RpcServiceRequest("ft", "2018-07-13", "FtGatedLaunchPolicy4")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
FtGatedLaunchPolicy4Request::~FtGatedLaunchPolicy4Request()
|
||||
{}
|
||||
|
||||
std::string FtGatedLaunchPolicy4Request::getIsGatedLaunch()const
|
||||
{
|
||||
return isGatedLaunch_;
|
||||
}
|
||||
|
||||
void FtGatedLaunchPolicy4Request::setIsGatedLaunch(const std::string& isGatedLaunch)
|
||||
{
|
||||
isGatedLaunch_ = isGatedLaunch;
|
||||
setParameter("IsGatedLaunch", isGatedLaunch);
|
||||
}
|
||||
|
||||
51
ft/src/model/FtGatedLaunchPolicy4Result.cc
Normal file
51
ft/src/model/FtGatedLaunchPolicy4Result.cc
Normal 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ft/model/FtGatedLaunchPolicy4Result.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ft;
|
||||
using namespace AlibabaCloud::Ft::Model;
|
||||
|
||||
FtGatedLaunchPolicy4Result::FtGatedLaunchPolicy4Result() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
FtGatedLaunchPolicy4Result::FtGatedLaunchPolicy4Result(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
FtGatedLaunchPolicy4Result::~FtGatedLaunchPolicy4Result()
|
||||
{}
|
||||
|
||||
void FtGatedLaunchPolicy4Result::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["IsGatedLaunch"].isNull())
|
||||
isGatedLaunch_ = value["IsGatedLaunch"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string FtGatedLaunchPolicy4Result::getIsGatedLaunch()const
|
||||
{
|
||||
return isGatedLaunch_;
|
||||
}
|
||||
|
||||
40
ft/src/model/FtIpFlowControlRequest.cc
Normal file
40
ft/src/model/FtIpFlowControlRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/ft/model/FtIpFlowControlRequest.h>
|
||||
|
||||
using AlibabaCloud::Ft::Model::FtIpFlowControlRequest;
|
||||
|
||||
FtIpFlowControlRequest::FtIpFlowControlRequest() :
|
||||
RpcServiceRequest("ft", "2018-07-13", "FtIpFlowControl")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
FtIpFlowControlRequest::~FtIpFlowControlRequest()
|
||||
{}
|
||||
|
||||
std::string FtIpFlowControlRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void FtIpFlowControlRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
51
ft/src/model/FtIpFlowControlResult.cc
Normal file
51
ft/src/model/FtIpFlowControlResult.cc
Normal 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ft/model/FtIpFlowControlResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ft;
|
||||
using namespace AlibabaCloud::Ft::Model;
|
||||
|
||||
FtIpFlowControlResult::FtIpFlowControlResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
FtIpFlowControlResult::FtIpFlowControlResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
FtIpFlowControlResult::~FtIpFlowControlResult()
|
||||
{}
|
||||
|
||||
void FtIpFlowControlResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Name"].isNull())
|
||||
name_ = value["Name"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string FtIpFlowControlResult::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
60
ft/src/model/FtParamListRequest.cc
Normal file
60
ft/src/model/FtParamListRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* 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/ft/model/FtParamListRequest.h>
|
||||
|
||||
using AlibabaCloud::Ft::Model::FtParamListRequest;
|
||||
|
||||
FtParamListRequest::FtParamListRequest() :
|
||||
RpcServiceRequest("ft", "2018-07-13", "FtParamList")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
FtParamListRequest::~FtParamListRequest()
|
||||
{}
|
||||
|
||||
std::vector<FtParamListRequest::Disk> FtParamListRequest::getDisk()const
|
||||
{
|
||||
return disk_;
|
||||
}
|
||||
|
||||
void FtParamListRequest::setDisk(const std::vector<Disk>& disk)
|
||||
{
|
||||
disk_ = disk;
|
||||
for(int dep1 = 0; dep1!= disk.size(); dep1++) {
|
||||
auto diskObj = disk.at(dep1);
|
||||
std::string diskObjStr = "Disk." + std::to_string(dep1 + 1);
|
||||
for(int dep2 = 0; dep2!= diskObj.size.size(); dep2++) {
|
||||
setParameter(diskObjStr + ".Size."+ std::to_string(dep2), diskObj.size.at(dep2));
|
||||
}
|
||||
for(int dep2 = 0; dep2!= diskObj.type.size(); dep2++) {
|
||||
setParameter(diskObjStr + ".Type."+ std::to_string(dep2), diskObj.type.at(dep2));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
std::string FtParamListRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void FtParamListRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
51
ft/src/model/FtParamListResult.cc
Normal file
51
ft/src/model/FtParamListResult.cc
Normal 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ft/model/FtParamListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ft;
|
||||
using namespace AlibabaCloud::Ft::Model;
|
||||
|
||||
FtParamListResult::FtParamListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
FtParamListResult::FtParamListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
FtParamListResult::~FtParamListResult()
|
||||
{}
|
||||
|
||||
void FtParamListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Name"].isNull())
|
||||
name_ = value["Name"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string FtParamListResult::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
73
ft/src/model/TestHttpApiRequest.cc
Normal file
73
ft/src/model/TestHttpApiRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* 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/ft/model/TestHttpApiRequest.h>
|
||||
|
||||
using AlibabaCloud::Ft::Model::TestHttpApiRequest;
|
||||
|
||||
TestHttpApiRequest::TestHttpApiRequest() :
|
||||
RpcServiceRequest("ft", "2018-07-13", "TestHttpApi")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
TestHttpApiRequest::~TestHttpApiRequest()
|
||||
{}
|
||||
|
||||
std::string TestHttpApiRequest::getStringValue()const
|
||||
{
|
||||
return stringValue_;
|
||||
}
|
||||
|
||||
void TestHttpApiRequest::setStringValue(const std::string& stringValue)
|
||||
{
|
||||
stringValue_ = stringValue;
|
||||
setParameter("StringValue", stringValue);
|
||||
}
|
||||
|
||||
std::string TestHttpApiRequest::getOtherParam()const
|
||||
{
|
||||
return otherParam_;
|
||||
}
|
||||
|
||||
void TestHttpApiRequest::setOtherParam(const std::string& otherParam)
|
||||
{
|
||||
otherParam_ = otherParam;
|
||||
setParameter("OtherParam", otherParam);
|
||||
}
|
||||
|
||||
bool TestHttpApiRequest::getBooleanParam()const
|
||||
{
|
||||
return booleanParam_;
|
||||
}
|
||||
|
||||
void TestHttpApiRequest::setBooleanParam(bool booleanParam)
|
||||
{
|
||||
booleanParam_ = booleanParam;
|
||||
setParameter("BooleanParam", booleanParam ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string TestHttpApiRequest::getDefaultValue()const
|
||||
{
|
||||
return defaultValue_;
|
||||
}
|
||||
|
||||
void TestHttpApiRequest::setDefaultValue(const std::string& defaultValue)
|
||||
{
|
||||
defaultValue_ = defaultValue;
|
||||
setParameter("DefaultValue", defaultValue);
|
||||
}
|
||||
|
||||
58
ft/src/model/TestHttpApiResult.cc
Normal file
58
ft/src/model/TestHttpApiResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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/ft/model/TestHttpApiResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ft;
|
||||
using namespace AlibabaCloud::Ft::Model;
|
||||
|
||||
TestHttpApiResult::TestHttpApiResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
TestHttpApiResult::TestHttpApiResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
TestHttpApiResult::~TestHttpApiResult()
|
||||
{}
|
||||
|
||||
void TestHttpApiResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Params"].isNull())
|
||||
params_ = value["Params"].asString();
|
||||
if(!value["ServiceRpcSign"].isNull())
|
||||
serviceRpcSign_ = value["ServiceRpcSign"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string TestHttpApiResult::getServiceRpcSign()const
|
||||
{
|
||||
return serviceRpcSign_;
|
||||
}
|
||||
|
||||
std::string TestHttpApiResult::getParams()const
|
||||
{
|
||||
return params_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user