Add ListTemplateVersions API.

This commit is contained in:
sdk-team
2020-04-29 19:13:11 +08:00
parent 7041b32dc4
commit 8ef38637d2
23 changed files with 415 additions and 1 deletions

View File

@@ -56,6 +56,8 @@
#include "model/ListTagValuesResult.h"
#include "model/ListTaskExecutionsRequest.h"
#include "model/ListTaskExecutionsResult.h"
#include "model/ListTemplateVersionsRequest.h"
#include "model/ListTemplateVersionsResult.h"
#include "model/ListTemplatesRequest.h"
#include "model/ListTemplatesResult.h"
#include "model/NotifyExecutionRequest.h"
@@ -132,6 +134,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ListTaskExecutionsResult> ListTaskExecutionsOutcome;
typedef std::future<ListTaskExecutionsOutcome> ListTaskExecutionsOutcomeCallable;
typedef std::function<void(const OosClient*, const Model::ListTaskExecutionsRequest&, const ListTaskExecutionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTaskExecutionsAsyncHandler;
typedef Outcome<Error, Model::ListTemplateVersionsResult> ListTemplateVersionsOutcome;
typedef std::future<ListTemplateVersionsOutcome> ListTemplateVersionsOutcomeCallable;
typedef std::function<void(const OosClient*, const Model::ListTemplateVersionsRequest&, const ListTemplateVersionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTemplateVersionsAsyncHandler;
typedef Outcome<Error, Model::ListTemplatesResult> ListTemplatesOutcome;
typedef std::future<ListTemplatesOutcome> ListTemplatesOutcomeCallable;
typedef std::function<void(const OosClient*, const Model::ListTemplatesRequest&, const ListTemplatesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTemplatesAsyncHandler;
@@ -212,6 +217,9 @@ namespace AlibabaCloud
ListTaskExecutionsOutcome listTaskExecutions(const Model::ListTaskExecutionsRequest &request)const;
void listTaskExecutionsAsync(const Model::ListTaskExecutionsRequest& request, const ListTaskExecutionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListTaskExecutionsOutcomeCallable listTaskExecutionsCallable(const Model::ListTaskExecutionsRequest& request) const;
ListTemplateVersionsOutcome listTemplateVersions(const Model::ListTemplateVersionsRequest &request)const;
void listTemplateVersionsAsync(const Model::ListTemplateVersionsRequest& request, const ListTemplateVersionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListTemplateVersionsOutcomeCallable listTemplateVersionsCallable(const Model::ListTemplateVersionsRequest& request) const;
ListTemplatesOutcome listTemplates(const Model::ListTemplatesRequest &request)const;
void listTemplatesAsync(const Model::ListTemplatesRequest& request, const ListTemplatesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListTemplatesOutcomeCallable listTemplatesCallable(const Model::ListTemplatesRequest& request) const;

View File

@@ -43,12 +43,15 @@ namespace AlibabaCloud
void setRegionId(const std::string& regionId);
std::string getTemplateName()const;
void setTemplateName(const std::string& templateName);
std::string getVersionName()const;
void setVersionName(const std::string& versionName);
private:
std::string content_;
std::map<std::string, std::string> tags_;
std::string regionId_;
std::string templateName_;
std::string versionName_;
};
}

View File

@@ -54,11 +54,13 @@ namespace AlibabaCloud
explicit CreateTemplateResult(const std::string &payload);
~CreateTemplateResult();
_Template get_Template()const;
std::string getTemplateType()const;
protected:
void parse(const std::string &payload);
private:
_Template _template_;
std::string templateType_;
};
}

View File

@@ -35,12 +35,15 @@ namespace AlibabaCloud
GenerateExecutionPolicyRequest();
~GenerateExecutionPolicyRequest();
std::string getTemplateVersion()const;
void setTemplateVersion(const std::string& templateVersion);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getTemplateName()const;
void setTemplateName(const std::string& templateName);
private:
std::string templateVersion_;
std::string regionId_;
std::string templateName_;

View File

@@ -39,6 +39,7 @@ namespace AlibabaCloud
std::string templateFormat;
std::string updatedDate;
std::string templateVersion;
std::string templateType;
std::string hash;
std::string updatedBy;
bool hasTrigger;

View 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.
*/
#ifndef ALIBABACLOUD_OOS_MODEL_LISTTEMPLATEVERSIONSREQUEST_H_
#define ALIBABACLOUD_OOS_MODEL_LISTTEMPLATEVERSIONSREQUEST_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 ListTemplateVersionsRequest : public RpcServiceRequest
{
public:
ListTemplateVersionsRequest();
~ListTemplateVersionsRequest();
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);
std::string getTemplateName()const;
void setTemplateName(const std::string& templateName);
std::string getShareType()const;
void setShareType(const std::string& shareType);
private:
std::string regionId_;
std::string nextToken_;
int maxResults_;
std::string templateName_;
std::string shareType_;
};
}
}
}
#endif // !ALIBABACLOUD_OOS_MODEL_LISTTEMPLATEVERSIONSREQUEST_H_

View File

@@ -0,0 +1,64 @@
/*
* 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_LISTTEMPLATEVERSIONSRESULT_H_
#define ALIBABACLOUD_OOS_MODEL_LISTTEMPLATEVERSIONSRESULT_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 ListTemplateVersionsResult : public ServiceResult
{
public:
struct TemplateVersion
{
std::string updatedBy;
std::string description;
std::string templateFormat;
std::string updatedDate;
std::string templateVersion;
std::string versionName;
};
ListTemplateVersionsResult();
explicit ListTemplateVersionsResult(const std::string &payload);
~ListTemplateVersionsResult();
std::string getNextToken()const;
int getMaxResults()const;
std::vector<TemplateVersion> getTemplateVersions()const;
protected:
void parse(const std::string &payload);
private:
std::string nextToken_;
int maxResults_;
std::vector<TemplateVersion> templateVersions_;
};
}
}
}
#endif // !ALIBABACLOUD_OOS_MODEL_LISTTEMPLATEVERSIONSRESULT_H_

View File

@@ -43,6 +43,8 @@ namespace AlibabaCloud
void setCreatedBy(const std::string& createdBy);
std::string getNextToken()const;
void setNextToken(const std::string& nextToken);
std::string getTemplateType()const;
void setTemplateType(const std::string& templateType);
std::string getTemplateName()const;
void setTemplateName(const std::string& templateName);
std::string getSortOrder()const;
@@ -69,6 +71,7 @@ namespace AlibabaCloud
std::string regionId_;
std::string createdBy_;
std::string nextToken_;
std::string templateType_;
std::string templateName_;
std::string sortOrder_;
std::string shareType_;

View File

@@ -41,6 +41,7 @@ namespace AlibabaCloud
std::string updatedDate;
int popularity;
std::string templateVersion;
std::string templateType;
std::string hash;
std::string updatedBy;
bool hasTrigger;

View File

@@ -43,12 +43,15 @@ namespace AlibabaCloud
void setRegionId(const std::string& regionId);
std::string getTemplateName()const;
void setTemplateName(const std::string& templateName);
std::string getVersionName()const;
void setVersionName(const std::string& versionName);
private:
std::string content_;
std::map<std::string, std::string> tags_;
std::string regionId_;
std::string templateName_;
std::string versionName_;
};
}