|
|
|
|
@@ -22,30 +22,30 @@
|
|
|
|
|
#include <alibabacloud/core/EndpointProvider.h>
|
|
|
|
|
#include <alibabacloud/core/RpcServiceClient.h>
|
|
|
|
|
#include "FnfExport.h"
|
|
|
|
|
#include "model/UpdateFlowRequest.h"
|
|
|
|
|
#include "model/UpdateFlowResult.h"
|
|
|
|
|
#include "model/DeleteFlowRequest.h"
|
|
|
|
|
#include "model/DeleteFlowResult.h"
|
|
|
|
|
#include "model/CreateFlowRequest.h"
|
|
|
|
|
#include "model/CreateFlowResult.h"
|
|
|
|
|
#include "model/DeleteFlowRequest.h"
|
|
|
|
|
#include "model/DeleteFlowResult.h"
|
|
|
|
|
#include "model/DescribeExecutionRequest.h"
|
|
|
|
|
#include "model/DescribeExecutionResult.h"
|
|
|
|
|
#include "model/ReportTaskFailedRequest.h"
|
|
|
|
|
#include "model/ReportTaskFailedResult.h"
|
|
|
|
|
#include "model/DescribeFlowRequest.h"
|
|
|
|
|
#include "model/DescribeFlowResult.h"
|
|
|
|
|
#include "model/StopExecutionRequest.h"
|
|
|
|
|
#include "model/StopExecutionResult.h"
|
|
|
|
|
#include "model/StartExecutionRequest.h"
|
|
|
|
|
#include "model/StartExecutionResult.h"
|
|
|
|
|
#include "model/GetExecutionHistoryRequest.h"
|
|
|
|
|
#include "model/GetExecutionHistoryResult.h"
|
|
|
|
|
#include "model/ListExecutionsRequest.h"
|
|
|
|
|
#include "model/ListExecutionsResult.h"
|
|
|
|
|
#include "model/ReportTaskSucceededRequest.h"
|
|
|
|
|
#include "model/ReportTaskSucceededResult.h"
|
|
|
|
|
#include "model/ListFlowsRequest.h"
|
|
|
|
|
#include "model/ListFlowsResult.h"
|
|
|
|
|
#include "model/ReportTaskFailedRequest.h"
|
|
|
|
|
#include "model/ReportTaskFailedResult.h"
|
|
|
|
|
#include "model/ReportTaskSucceededRequest.h"
|
|
|
|
|
#include "model/ReportTaskSucceededResult.h"
|
|
|
|
|
#include "model/StartExecutionRequest.h"
|
|
|
|
|
#include "model/StartExecutionResult.h"
|
|
|
|
|
#include "model/StopExecutionRequest.h"
|
|
|
|
|
#include "model/StopExecutionResult.h"
|
|
|
|
|
#include "model/UpdateFlowRequest.h"
|
|
|
|
|
#include "model/UpdateFlowResult.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace AlibabaCloud
|
|
|
|
|
@@ -55,83 +55,83 @@ namespace AlibabaCloud
|
|
|
|
|
class ALIBABACLOUD_FNF_EXPORT FnfClient : public RpcServiceClient
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
typedef Outcome<Error, Model::UpdateFlowResult> UpdateFlowOutcome;
|
|
|
|
|
typedef std::future<UpdateFlowOutcome> UpdateFlowOutcomeCallable;
|
|
|
|
|
typedef std::function<void(const FnfClient*, const Model::UpdateFlowRequest&, const UpdateFlowOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateFlowAsyncHandler;
|
|
|
|
|
typedef Outcome<Error, Model::DeleteFlowResult> DeleteFlowOutcome;
|
|
|
|
|
typedef std::future<DeleteFlowOutcome> DeleteFlowOutcomeCallable;
|
|
|
|
|
typedef std::function<void(const FnfClient*, const Model::DeleteFlowRequest&, const DeleteFlowOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteFlowAsyncHandler;
|
|
|
|
|
typedef Outcome<Error, Model::CreateFlowResult> CreateFlowOutcome;
|
|
|
|
|
typedef std::future<CreateFlowOutcome> CreateFlowOutcomeCallable;
|
|
|
|
|
typedef std::function<void(const FnfClient*, const Model::CreateFlowRequest&, const CreateFlowOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateFlowAsyncHandler;
|
|
|
|
|
typedef Outcome<Error, Model::DeleteFlowResult> DeleteFlowOutcome;
|
|
|
|
|
typedef std::future<DeleteFlowOutcome> DeleteFlowOutcomeCallable;
|
|
|
|
|
typedef std::function<void(const FnfClient*, const Model::DeleteFlowRequest&, const DeleteFlowOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteFlowAsyncHandler;
|
|
|
|
|
typedef Outcome<Error, Model::DescribeExecutionResult> DescribeExecutionOutcome;
|
|
|
|
|
typedef std::future<DescribeExecutionOutcome> DescribeExecutionOutcomeCallable;
|
|
|
|
|
typedef std::function<void(const FnfClient*, const Model::DescribeExecutionRequest&, const DescribeExecutionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeExecutionAsyncHandler;
|
|
|
|
|
typedef Outcome<Error, Model::ReportTaskFailedResult> ReportTaskFailedOutcome;
|
|
|
|
|
typedef std::future<ReportTaskFailedOutcome> ReportTaskFailedOutcomeCallable;
|
|
|
|
|
typedef std::function<void(const FnfClient*, const Model::ReportTaskFailedRequest&, const ReportTaskFailedOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ReportTaskFailedAsyncHandler;
|
|
|
|
|
typedef Outcome<Error, Model::DescribeFlowResult> DescribeFlowOutcome;
|
|
|
|
|
typedef std::future<DescribeFlowOutcome> DescribeFlowOutcomeCallable;
|
|
|
|
|
typedef std::function<void(const FnfClient*, const Model::DescribeFlowRequest&, const DescribeFlowOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeFlowAsyncHandler;
|
|
|
|
|
typedef Outcome<Error, Model::StopExecutionResult> StopExecutionOutcome;
|
|
|
|
|
typedef std::future<StopExecutionOutcome> StopExecutionOutcomeCallable;
|
|
|
|
|
typedef std::function<void(const FnfClient*, const Model::StopExecutionRequest&, const StopExecutionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopExecutionAsyncHandler;
|
|
|
|
|
typedef Outcome<Error, Model::StartExecutionResult> StartExecutionOutcome;
|
|
|
|
|
typedef std::future<StartExecutionOutcome> StartExecutionOutcomeCallable;
|
|
|
|
|
typedef std::function<void(const FnfClient*, const Model::StartExecutionRequest&, const StartExecutionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartExecutionAsyncHandler;
|
|
|
|
|
typedef Outcome<Error, Model::GetExecutionHistoryResult> GetExecutionHistoryOutcome;
|
|
|
|
|
typedef std::future<GetExecutionHistoryOutcome> GetExecutionHistoryOutcomeCallable;
|
|
|
|
|
typedef std::function<void(const FnfClient*, const Model::GetExecutionHistoryRequest&, const GetExecutionHistoryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetExecutionHistoryAsyncHandler;
|
|
|
|
|
typedef Outcome<Error, Model::ListExecutionsResult> ListExecutionsOutcome;
|
|
|
|
|
typedef std::future<ListExecutionsOutcome> ListExecutionsOutcomeCallable;
|
|
|
|
|
typedef std::function<void(const FnfClient*, const Model::ListExecutionsRequest&, const ListExecutionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListExecutionsAsyncHandler;
|
|
|
|
|
typedef Outcome<Error, Model::ReportTaskSucceededResult> ReportTaskSucceededOutcome;
|
|
|
|
|
typedef std::future<ReportTaskSucceededOutcome> ReportTaskSucceededOutcomeCallable;
|
|
|
|
|
typedef std::function<void(const FnfClient*, const Model::ReportTaskSucceededRequest&, const ReportTaskSucceededOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ReportTaskSucceededAsyncHandler;
|
|
|
|
|
typedef Outcome<Error, Model::ListFlowsResult> ListFlowsOutcome;
|
|
|
|
|
typedef std::future<ListFlowsOutcome> ListFlowsOutcomeCallable;
|
|
|
|
|
typedef std::function<void(const FnfClient*, const Model::ListFlowsRequest&, const ListFlowsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListFlowsAsyncHandler;
|
|
|
|
|
typedef Outcome<Error, Model::ReportTaskFailedResult> ReportTaskFailedOutcome;
|
|
|
|
|
typedef std::future<ReportTaskFailedOutcome> ReportTaskFailedOutcomeCallable;
|
|
|
|
|
typedef std::function<void(const FnfClient*, const Model::ReportTaskFailedRequest&, const ReportTaskFailedOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ReportTaskFailedAsyncHandler;
|
|
|
|
|
typedef Outcome<Error, Model::ReportTaskSucceededResult> ReportTaskSucceededOutcome;
|
|
|
|
|
typedef std::future<ReportTaskSucceededOutcome> ReportTaskSucceededOutcomeCallable;
|
|
|
|
|
typedef std::function<void(const FnfClient*, const Model::ReportTaskSucceededRequest&, const ReportTaskSucceededOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ReportTaskSucceededAsyncHandler;
|
|
|
|
|
typedef Outcome<Error, Model::StartExecutionResult> StartExecutionOutcome;
|
|
|
|
|
typedef std::future<StartExecutionOutcome> StartExecutionOutcomeCallable;
|
|
|
|
|
typedef std::function<void(const FnfClient*, const Model::StartExecutionRequest&, const StartExecutionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartExecutionAsyncHandler;
|
|
|
|
|
typedef Outcome<Error, Model::StopExecutionResult> StopExecutionOutcome;
|
|
|
|
|
typedef std::future<StopExecutionOutcome> StopExecutionOutcomeCallable;
|
|
|
|
|
typedef std::function<void(const FnfClient*, const Model::StopExecutionRequest&, const StopExecutionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopExecutionAsyncHandler;
|
|
|
|
|
typedef Outcome<Error, Model::UpdateFlowResult> UpdateFlowOutcome;
|
|
|
|
|
typedef std::future<UpdateFlowOutcome> UpdateFlowOutcomeCallable;
|
|
|
|
|
typedef std::function<void(const FnfClient*, const Model::UpdateFlowRequest&, const UpdateFlowOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateFlowAsyncHandler;
|
|
|
|
|
|
|
|
|
|
FnfClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
|
|
|
|
FnfClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
|
|
|
|
FnfClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
|
|
|
|
~FnfClient();
|
|
|
|
|
UpdateFlowOutcome updateFlow(const Model::UpdateFlowRequest &request)const;
|
|
|
|
|
void updateFlowAsync(const Model::UpdateFlowRequest& request, const UpdateFlowAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
|
|
|
UpdateFlowOutcomeCallable updateFlowCallable(const Model::UpdateFlowRequest& request) const;
|
|
|
|
|
DeleteFlowOutcome deleteFlow(const Model::DeleteFlowRequest &request)const;
|
|
|
|
|
void deleteFlowAsync(const Model::DeleteFlowRequest& request, const DeleteFlowAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
|
|
|
DeleteFlowOutcomeCallable deleteFlowCallable(const Model::DeleteFlowRequest& request) const;
|
|
|
|
|
CreateFlowOutcome createFlow(const Model::CreateFlowRequest &request)const;
|
|
|
|
|
void createFlowAsync(const Model::CreateFlowRequest& request, const CreateFlowAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
|
|
|
CreateFlowOutcomeCallable createFlowCallable(const Model::CreateFlowRequest& request) const;
|
|
|
|
|
DeleteFlowOutcome deleteFlow(const Model::DeleteFlowRequest &request)const;
|
|
|
|
|
void deleteFlowAsync(const Model::DeleteFlowRequest& request, const DeleteFlowAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
|
|
|
DeleteFlowOutcomeCallable deleteFlowCallable(const Model::DeleteFlowRequest& request) const;
|
|
|
|
|
DescribeExecutionOutcome describeExecution(const Model::DescribeExecutionRequest &request)const;
|
|
|
|
|
void describeExecutionAsync(const Model::DescribeExecutionRequest& request, const DescribeExecutionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
|
|
|
DescribeExecutionOutcomeCallable describeExecutionCallable(const Model::DescribeExecutionRequest& request) const;
|
|
|
|
|
ReportTaskFailedOutcome reportTaskFailed(const Model::ReportTaskFailedRequest &request)const;
|
|
|
|
|
void reportTaskFailedAsync(const Model::ReportTaskFailedRequest& request, const ReportTaskFailedAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
|
|
|
ReportTaskFailedOutcomeCallable reportTaskFailedCallable(const Model::ReportTaskFailedRequest& request) const;
|
|
|
|
|
DescribeFlowOutcome describeFlow(const Model::DescribeFlowRequest &request)const;
|
|
|
|
|
void describeFlowAsync(const Model::DescribeFlowRequest& request, const DescribeFlowAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
|
|
|
DescribeFlowOutcomeCallable describeFlowCallable(const Model::DescribeFlowRequest& request) const;
|
|
|
|
|
StopExecutionOutcome stopExecution(const Model::StopExecutionRequest &request)const;
|
|
|
|
|
void stopExecutionAsync(const Model::StopExecutionRequest& request, const StopExecutionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
|
|
|
StopExecutionOutcomeCallable stopExecutionCallable(const Model::StopExecutionRequest& request) const;
|
|
|
|
|
StartExecutionOutcome startExecution(const Model::StartExecutionRequest &request)const;
|
|
|
|
|
void startExecutionAsync(const Model::StartExecutionRequest& request, const StartExecutionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
|
|
|
StartExecutionOutcomeCallable startExecutionCallable(const Model::StartExecutionRequest& request) const;
|
|
|
|
|
GetExecutionHistoryOutcome getExecutionHistory(const Model::GetExecutionHistoryRequest &request)const;
|
|
|
|
|
void getExecutionHistoryAsync(const Model::GetExecutionHistoryRequest& request, const GetExecutionHistoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
|
|
|
GetExecutionHistoryOutcomeCallable getExecutionHistoryCallable(const Model::GetExecutionHistoryRequest& request) const;
|
|
|
|
|
ListExecutionsOutcome listExecutions(const Model::ListExecutionsRequest &request)const;
|
|
|
|
|
void listExecutionsAsync(const Model::ListExecutionsRequest& request, const ListExecutionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
|
|
|
ListExecutionsOutcomeCallable listExecutionsCallable(const Model::ListExecutionsRequest& request) const;
|
|
|
|
|
ReportTaskSucceededOutcome reportTaskSucceeded(const Model::ReportTaskSucceededRequest &request)const;
|
|
|
|
|
void reportTaskSucceededAsync(const Model::ReportTaskSucceededRequest& request, const ReportTaskSucceededAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
|
|
|
ReportTaskSucceededOutcomeCallable reportTaskSucceededCallable(const Model::ReportTaskSucceededRequest& request) const;
|
|
|
|
|
ListFlowsOutcome listFlows(const Model::ListFlowsRequest &request)const;
|
|
|
|
|
void listFlowsAsync(const Model::ListFlowsRequest& request, const ListFlowsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
|
|
|
ListFlowsOutcomeCallable listFlowsCallable(const Model::ListFlowsRequest& request) const;
|
|
|
|
|
ReportTaskFailedOutcome reportTaskFailed(const Model::ReportTaskFailedRequest &request)const;
|
|
|
|
|
void reportTaskFailedAsync(const Model::ReportTaskFailedRequest& request, const ReportTaskFailedAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
|
|
|
ReportTaskFailedOutcomeCallable reportTaskFailedCallable(const Model::ReportTaskFailedRequest& request) const;
|
|
|
|
|
ReportTaskSucceededOutcome reportTaskSucceeded(const Model::ReportTaskSucceededRequest &request)const;
|
|
|
|
|
void reportTaskSucceededAsync(const Model::ReportTaskSucceededRequest& request, const ReportTaskSucceededAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
|
|
|
ReportTaskSucceededOutcomeCallable reportTaskSucceededCallable(const Model::ReportTaskSucceededRequest& request) const;
|
|
|
|
|
StartExecutionOutcome startExecution(const Model::StartExecutionRequest &request)const;
|
|
|
|
|
void startExecutionAsync(const Model::StartExecutionRequest& request, const StartExecutionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
|
|
|
StartExecutionOutcomeCallable startExecutionCallable(const Model::StartExecutionRequest& request) const;
|
|
|
|
|
StopExecutionOutcome stopExecution(const Model::StopExecutionRequest &request)const;
|
|
|
|
|
void stopExecutionAsync(const Model::StopExecutionRequest& request, const StopExecutionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
|
|
|
StopExecutionOutcomeCallable stopExecutionCallable(const Model::StopExecutionRequest& request) const;
|
|
|
|
|
UpdateFlowOutcome updateFlow(const Model::UpdateFlowRequest &request)const;
|
|
|
|
|
void updateFlowAsync(const Model::UpdateFlowRequest& request, const UpdateFlowAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
|
|
|
UpdateFlowOutcomeCallable updateFlowCallable(const Model::UpdateFlowRequest& request) const;
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
std::shared_ptr<EndpointProvider> endpointProvider_;
|
|
|
|
|
|