ソースを参照

Support ListExecutions with filter functionality.

sdk-team 5 年 前
コミット
aca0a3efa8

+ 3 - 0
CHANGELOG

@@ -1,3 +1,6 @@
+2020-11-20 Version: patch
+- Support ListExecutions with filter functionality.
+
 2020-11-20 Version: patch
 - Public beta version.
 - Add Api Overseas.

+ 9 - 0
fnf/include/alibabacloud/fnf/model/ListExecutionsRequest.h

@@ -35,6 +35,10 @@ namespace AlibabaCloud
 				ListExecutionsRequest();
 				~ListExecutionsRequest();
 
+				std::string getStartedTimeBegin()const;
+				void setStartedTimeBegin(const std::string& startedTimeBegin);
+				std::string getExecutionNamePrefix()const;
+				void setExecutionNamePrefix(const std::string& executionNamePrefix);
 				std::string getNextToken()const;
 				void setNextToken(const std::string& nextToken);
 				std::string getRequestId()const;
@@ -43,14 +47,19 @@ namespace AlibabaCloud
 				void setLimit(int limit);
 				std::string getFlowName()const;
 				void setFlowName(const std::string& flowName);
+				std::string getStartedTimeEnd()const;
+				void setStartedTimeEnd(const std::string& startedTimeEnd);
 				std::string getStatus()const;
 				void setStatus(const std::string& status);
 
             private:
+				std::string startedTimeBegin_;
+				std::string executionNamePrefix_;
 				std::string nextToken_;
 				std::string requestId_;
 				int limit_;
 				std::string flowName_;
+				std::string startedTimeEnd_;
 				std::string status_;
 
 			};

+ 3 - 3
fnf/src/FnfClient.cc

@@ -31,21 +31,21 @@ FnfClient::FnfClient(const Credentials &credentials, const ClientConfiguration &
 	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, "");
+	endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "fnf");
 }
 
 FnfClient::FnfClient(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, "");
+	endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "fnf");
 }
 
 FnfClient::FnfClient(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, "");
+	endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "fnf");
 }
 
 FnfClient::~FnfClient()

+ 33 - 0
fnf/src/model/ListExecutionsRequest.cc

@@ -27,6 +27,28 @@ ListExecutionsRequest::ListExecutionsRequest() :
 ListExecutionsRequest::~ListExecutionsRequest()
 {}
 
+std::string ListExecutionsRequest::getStartedTimeBegin()const
+{
+	return startedTimeBegin_;
+}
+
+void ListExecutionsRequest::setStartedTimeBegin(const std::string& startedTimeBegin)
+{
+	startedTimeBegin_ = startedTimeBegin;
+	setParameter("StartedTimeBegin", startedTimeBegin);
+}
+
+std::string ListExecutionsRequest::getExecutionNamePrefix()const
+{
+	return executionNamePrefix_;
+}
+
+void ListExecutionsRequest::setExecutionNamePrefix(const std::string& executionNamePrefix)
+{
+	executionNamePrefix_ = executionNamePrefix;
+	setParameter("ExecutionNamePrefix", executionNamePrefix);
+}
+
 std::string ListExecutionsRequest::getNextToken()const
 {
 	return nextToken_;
@@ -71,6 +93,17 @@ void ListExecutionsRequest::setFlowName(const std::string& flowName)
 	setParameter("FlowName", flowName);
 }
 
+std::string ListExecutionsRequest::getStartedTimeEnd()const
+{
+	return startedTimeEnd_;
+}
+
+void ListExecutionsRequest::setStartedTimeEnd(const std::string& startedTimeEnd)
+{
+	startedTimeEnd_ = startedTimeEnd;
+	setParameter("StartedTimeEnd", startedTimeEnd);
+}
+
 std::string ListExecutionsRequest::getStatus()const
 {
 	return status_;