Add ListResourceExecutionStatus API.

This commit is contained in:
sdk-team
2020-07-03 14:56:50 +08:00
parent 4b39c98f5a
commit 8d0bff56a9
15 changed files with 375 additions and 4 deletions

View File

@@ -48,6 +48,8 @@
#include "model/ListExecutionRiskyTasksResult.h"
#include "model/ListExecutionsRequest.h"
#include "model/ListExecutionsResult.h"
#include "model/ListResourceExecutionStatusRequest.h"
#include "model/ListResourceExecutionStatusResult.h"
#include "model/ListTagKeysRequest.h"
#include "model/ListTagKeysResult.h"
#include "model/ListTagResourcesRequest.h"
@@ -122,6 +124,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ListExecutionsResult> ListExecutionsOutcome;
typedef std::future<ListExecutionsOutcome> ListExecutionsOutcomeCallable;
typedef std::function<void(const OosClient*, const Model::ListExecutionsRequest&, const ListExecutionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListExecutionsAsyncHandler;
typedef Outcome<Error, Model::ListResourceExecutionStatusResult> ListResourceExecutionStatusOutcome;
typedef std::future<ListResourceExecutionStatusOutcome> ListResourceExecutionStatusOutcomeCallable;
typedef std::function<void(const OosClient*, const Model::ListResourceExecutionStatusRequest&, const ListResourceExecutionStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListResourceExecutionStatusAsyncHandler;
typedef Outcome<Error, Model::ListTagKeysResult> ListTagKeysOutcome;
typedef std::future<ListTagKeysOutcome> ListTagKeysOutcomeCallable;
typedef std::function<void(const OosClient*, const Model::ListTagKeysRequest&, const ListTagKeysOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTagKeysAsyncHandler;
@@ -205,6 +210,9 @@ namespace AlibabaCloud
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;
ListResourceExecutionStatusOutcome listResourceExecutionStatus(const Model::ListResourceExecutionStatusRequest &request)const;
void listResourceExecutionStatusAsync(const Model::ListResourceExecutionStatusRequest& request, const ListResourceExecutionStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListResourceExecutionStatusOutcomeCallable listResourceExecutionStatusCallable(const Model::ListResourceExecutionStatusRequest& request) const;
ListTagKeysOutcome listTagKeys(const Model::ListTagKeysRequest &request)const;
void listTagKeysAsync(const Model::ListTagKeysRequest& request, const ListTagKeysAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListTagKeysOutcomeCallable listTagKeysCallable(const Model::ListTagKeysRequest& request) const;

View File

@@ -45,6 +45,7 @@ namespace AlibabaCloud
bool hasTrigger;
std::string createdDate;
std::string templateName;
std::string versionName;
std::string templateId;
std::string tags;
std::string shareType;

View File

@@ -55,6 +55,8 @@ namespace AlibabaCloud
void setEndDateBefore(const std::string& endDateBefore);
std::string getSortOrder()const;
void setSortOrder(const std::string& sortOrder);
std::string getResourceId()const;
void setResourceId(const std::string& resourceId);
std::string getStartDateAfter()const;
void setStartDateAfter(const std::string& startDateAfter);
std::string getStartDateBefore()const;
@@ -71,6 +73,8 @@ namespace AlibabaCloud
void setSortField(const std::string& sortField);
std::string getCategory()const;
void setCategory(const std::string& category);
std::string getResourceTemplateName()const;
void setResourceTemplateName(const std::string& resourceTemplateName);
std::string getStatus()const;
void setStatus(const std::string& status);
@@ -85,6 +89,7 @@ namespace AlibabaCloud
std::string templateName_;
std::string endDateBefore_;
std::string sortOrder_;
std::string resourceId_;
std::string startDateAfter_;
std::string startDateBefore_;
std::map<std::string, std::string> tags_;
@@ -93,6 +98,7 @@ namespace AlibabaCloud
int maxResults_;
std::string sortField_;
std::string category_;
std::string resourceTemplateName_;
std::string status_;
};

View File

@@ -48,7 +48,10 @@ namespace AlibabaCloud
std::string createDate;
std::string startDate;
std::string updateDate;
std::string lastTriggerTime;
std::string templateName;
std::string lastSuccessfulTriggerTime;
std::string resourceStatus;
std::string templateId;
std::string executedBy;
std::string tags;
@@ -57,6 +60,7 @@ namespace AlibabaCloud
std::string statusReason;
bool isParent;
std::string mode;
std::string targets;
std::string endDate;
std::string waitingStatus;
std::string statusMessage;
@@ -64,6 +68,7 @@ namespace AlibabaCloud
std::string outputs;
std::string ramRole;
std::string counters;
std::string lastTriggerStatus;
std::string executionId;
};

View 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_OOS_MODEL_LISTRESOURCEEXECUTIONSTATUSREQUEST_H_
#define ALIBABACLOUD_OOS_MODEL_LISTRESOURCEEXECUTIONSTATUSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/oos/OosExport.h>
namespace AlibabaCloud
{
namespace Oos
{
namespace Model
{
class ALIBABACLOUD_OOS_EXPORT ListResourceExecutionStatusRequest : public RpcServiceRequest
{
public:
ListResourceExecutionStatusRequest();
~ListResourceExecutionStatusRequest();
std::string getExecutionId()const;
void setExecutionId(const std::string& executionId);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getNextToken()const;
void setNextToken(const std::string& nextToken);
int getMaxResults()const;
void setMaxResults(int maxResults);
private:
std::string executionId_;
std::string regionId_;
std::string nextToken_;
int maxResults_;
};
}
}
}
#endif // !ALIBABACLOUD_OOS_MODEL_LISTRESOURCEEXECUTIONSTATUSREQUEST_H_

View File

@@ -0,0 +1,63 @@
/*
* 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_OOS_MODEL_LISTRESOURCEEXECUTIONSTATUSRESULT_H_
#define ALIBABACLOUD_OOS_MODEL_LISTRESOURCEEXECUTIONSTATUSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/oos/OosExport.h>
namespace AlibabaCloud
{
namespace Oos
{
namespace Model
{
class ALIBABACLOUD_OOS_EXPORT ListResourceExecutionStatusResult : public ServiceResult
{
public:
struct Status
{
std::string status;
std::string executionTime;
std::string resourceId;
std::string outputs;
std::string executionId;
};
ListResourceExecutionStatusResult();
explicit ListResourceExecutionStatusResult(const std::string &payload);
~ListResourceExecutionStatusResult();
std::string getNextToken()const;
std::vector<Status> getResourceExecutionStatus()const;
int getMaxResults()const;
protected:
void parse(const std::string &payload);
private:
std::string nextToken_;
std::vector<Status> resourceExecutionStatus_;
int maxResults_;
};
}
}
}
#endif // !ALIBABACLOUD_OOS_MODEL_LISTRESOURCEEXECUTIONSTATUSRESULT_H_