Add tags api, include GetRepositoryTag, ListRepositoryTags, DeleteRepositoryTag.

This commit is contained in:
sdk-team
2020-11-26 02:21:41 +00:00
parent 5ae199177a
commit f937d7b2e5
16 changed files with 1152 additions and 0 deletions

View File

@@ -52,6 +52,8 @@
#include "model/DeleteRepositoryGroupResult.h"
#include "model/DeleteRepositoryMemberRequest.h"
#include "model/DeleteRepositoryMemberResult.h"
#include "model/DeleteRepositoryTagRequest.h"
#include "model/DeleteRepositoryTagResult.h"
#include "model/GetBranchInfoRequest.h"
#include "model/GetBranchInfoResult.h"
#include "model/GetCodeupOrganizationRequest.h"
@@ -64,6 +66,8 @@
#include "model/GetProjectMemberResult.h"
#include "model/GetRepositoryInfoRequest.h"
#include "model/GetRepositoryInfoResult.h"
#include "model/GetRepositoryTagRequest.h"
#include "model/GetRepositoryTagResult.h"
#include "model/ListGroupMemberRequest.h"
#include "model/ListGroupMemberResult.h"
#include "model/ListGroupRepositoriesRequest.h"
@@ -74,6 +78,8 @@
#include "model/ListRepositoryBranchesResult.h"
#include "model/ListRepositoryMemberRequest.h"
#include "model/ListRepositoryMemberResult.h"
#include "model/ListRepositoryTagsRequest.h"
#include "model/ListRepositoryTagsResult.h"
#include "model/ListRepositoryTreeRequest.h"
#include "model/ListRepositoryTreeResult.h"
#include "model/MergeMergeRequestRequest.h"
@@ -138,6 +144,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DeleteRepositoryMemberResult> DeleteRepositoryMemberOutcome;
typedef std::future<DeleteRepositoryMemberOutcome> DeleteRepositoryMemberOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::DeleteRepositoryMemberRequest&, const DeleteRepositoryMemberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteRepositoryMemberAsyncHandler;
typedef Outcome<Error, Model::DeleteRepositoryTagResult> DeleteRepositoryTagOutcome;
typedef std::future<DeleteRepositoryTagOutcome> DeleteRepositoryTagOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::DeleteRepositoryTagRequest&, const DeleteRepositoryTagOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteRepositoryTagAsyncHandler;
typedef Outcome<Error, Model::GetBranchInfoResult> GetBranchInfoOutcome;
typedef std::future<GetBranchInfoOutcome> GetBranchInfoOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::GetBranchInfoRequest&, const GetBranchInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetBranchInfoAsyncHandler;
@@ -156,6 +165,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetRepositoryInfoResult> GetRepositoryInfoOutcome;
typedef std::future<GetRepositoryInfoOutcome> GetRepositoryInfoOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::GetRepositoryInfoRequest&, const GetRepositoryInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetRepositoryInfoAsyncHandler;
typedef Outcome<Error, Model::GetRepositoryTagResult> GetRepositoryTagOutcome;
typedef std::future<GetRepositoryTagOutcome> GetRepositoryTagOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::GetRepositoryTagRequest&, const GetRepositoryTagOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetRepositoryTagAsyncHandler;
typedef Outcome<Error, Model::ListGroupMemberResult> ListGroupMemberOutcome;
typedef std::future<ListGroupMemberOutcome> ListGroupMemberOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::ListGroupMemberRequest&, const ListGroupMemberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListGroupMemberAsyncHandler;
@@ -171,6 +183,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ListRepositoryMemberResult> ListRepositoryMemberOutcome;
typedef std::future<ListRepositoryMemberOutcome> ListRepositoryMemberOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::ListRepositoryMemberRequest&, const ListRepositoryMemberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRepositoryMemberAsyncHandler;
typedef Outcome<Error, Model::ListRepositoryTagsResult> ListRepositoryTagsOutcome;
typedef std::future<ListRepositoryTagsOutcome> ListRepositoryTagsOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::ListRepositoryTagsRequest&, const ListRepositoryTagsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRepositoryTagsAsyncHandler;
typedef Outcome<Error, Model::ListRepositoryTreeResult> ListRepositoryTreeOutcome;
typedef std::future<ListRepositoryTreeOutcome> ListRepositoryTreeOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::ListRepositoryTreeRequest&, const ListRepositoryTreeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRepositoryTreeAsyncHandler;
@@ -236,6 +251,9 @@ namespace AlibabaCloud
DeleteRepositoryMemberOutcome deleteRepositoryMember(const Model::DeleteRepositoryMemberRequest &request)const;
void deleteRepositoryMemberAsync(const Model::DeleteRepositoryMemberRequest& request, const DeleteRepositoryMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteRepositoryMemberOutcomeCallable deleteRepositoryMemberCallable(const Model::DeleteRepositoryMemberRequest& request) const;
DeleteRepositoryTagOutcome deleteRepositoryTag(const Model::DeleteRepositoryTagRequest &request)const;
void deleteRepositoryTagAsync(const Model::DeleteRepositoryTagRequest& request, const DeleteRepositoryTagAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteRepositoryTagOutcomeCallable deleteRepositoryTagCallable(const Model::DeleteRepositoryTagRequest& request) const;
GetBranchInfoOutcome getBranchInfo(const Model::GetBranchInfoRequest &request)const;
void getBranchInfoAsync(const Model::GetBranchInfoRequest& request, const GetBranchInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetBranchInfoOutcomeCallable getBranchInfoCallable(const Model::GetBranchInfoRequest& request) const;
@@ -254,6 +272,9 @@ namespace AlibabaCloud
GetRepositoryInfoOutcome getRepositoryInfo(const Model::GetRepositoryInfoRequest &request)const;
void getRepositoryInfoAsync(const Model::GetRepositoryInfoRequest& request, const GetRepositoryInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetRepositoryInfoOutcomeCallable getRepositoryInfoCallable(const Model::GetRepositoryInfoRequest& request) const;
GetRepositoryTagOutcome getRepositoryTag(const Model::GetRepositoryTagRequest &request)const;
void getRepositoryTagAsync(const Model::GetRepositoryTagRequest& request, const GetRepositoryTagAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetRepositoryTagOutcomeCallable getRepositoryTagCallable(const Model::GetRepositoryTagRequest& request) const;
ListGroupMemberOutcome listGroupMember(const Model::ListGroupMemberRequest &request)const;
void listGroupMemberAsync(const Model::ListGroupMemberRequest& request, const ListGroupMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListGroupMemberOutcomeCallable listGroupMemberCallable(const Model::ListGroupMemberRequest& request) const;
@@ -269,6 +290,9 @@ namespace AlibabaCloud
ListRepositoryMemberOutcome listRepositoryMember(const Model::ListRepositoryMemberRequest &request)const;
void listRepositoryMemberAsync(const Model::ListRepositoryMemberRequest& request, const ListRepositoryMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListRepositoryMemberOutcomeCallable listRepositoryMemberCallable(const Model::ListRepositoryMemberRequest& request) const;
ListRepositoryTagsOutcome listRepositoryTags(const Model::ListRepositoryTagsRequest &request)const;
void listRepositoryTagsAsync(const Model::ListRepositoryTagsRequest& request, const ListRepositoryTagsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListRepositoryTagsOutcomeCallable listRepositoryTagsCallable(const Model::ListRepositoryTagsRequest& request) const;
ListRepositoryTreeOutcome listRepositoryTree(const Model::ListRepositoryTreeRequest &request)const;
void listRepositoryTreeAsync(const Model::ListRepositoryTreeRequest& request, const ListRepositoryTreeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListRepositoryTreeOutcomeCallable listRepositoryTreeCallable(const Model::ListRepositoryTreeRequest& request) const;

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_CODEUP_MODEL_DELETEREPOSITORYTAGREQUEST_H_
#define ALIBABACLOUD_CODEUP_MODEL_DELETEREPOSITORYTAGREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RoaServiceRequest.h>
#include <alibabacloud/codeup/CodeupExport.h>
namespace AlibabaCloud
{
namespace Codeup
{
namespace Model
{
class ALIBABACLOUD_CODEUP_EXPORT DeleteRepositoryTagRequest : public RoaServiceRequest
{
public:
DeleteRepositoryTagRequest();
~DeleteRepositoryTagRequest();
std::string getOrganizationId()const;
void setOrganizationId(const std::string& organizationId);
std::string getTagName()const;
void setTagName(const std::string& tagName);
std::string getAccessToken()const;
void setAccessToken(const std::string& accessToken);
long getProjectId()const;
void setProjectId(long projectId);
private:
std::string organizationId_;
std::string tagName_;
std::string accessToken_;
long projectId_;
};
}
}
}
#endif // !ALIBABACLOUD_CODEUP_MODEL_DELETEREPOSITORYTAGREQUEST_H_

View 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_CODEUP_MODEL_DELETEREPOSITORYTAGRESULT_H_
#define ALIBABACLOUD_CODEUP_MODEL_DELETEREPOSITORYTAGRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/codeup/CodeupExport.h>
namespace AlibabaCloud
{
namespace Codeup
{
namespace Model
{
class ALIBABACLOUD_CODEUP_EXPORT DeleteRepositoryTagResult : public ServiceResult
{
public:
struct Result
{
std::string tagName;
};
DeleteRepositoryTagResult();
explicit DeleteRepositoryTagResult(const std::string &payload);
~DeleteRepositoryTagResult();
std::string getErrorCode()const;
std::string getErrorMessage()const;
bool getSuccess()const;
Result getResult()const;
protected:
void parse(const std::string &payload);
private:
std::string errorCode_;
std::string errorMessage_;
bool success_;
Result result_;
};
}
}
}
#endif // !ALIBABACLOUD_CODEUP_MODEL_DELETEREPOSITORYTAGRESULT_H_

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_CODEUP_MODEL_GETREPOSITORYTAGREQUEST_H_
#define ALIBABACLOUD_CODEUP_MODEL_GETREPOSITORYTAGREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RoaServiceRequest.h>
#include <alibabacloud/codeup/CodeupExport.h>
namespace AlibabaCloud
{
namespace Codeup
{
namespace Model
{
class ALIBABACLOUD_CODEUP_EXPORT GetRepositoryTagRequest : public RoaServiceRequest
{
public:
GetRepositoryTagRequest();
~GetRepositoryTagRequest();
std::string getOrganizationId()const;
void setOrganizationId(const std::string& organizationId);
std::string getTagName()const;
void setTagName(const std::string& tagName);
std::string getAccessToken()const;
void setAccessToken(const std::string& accessToken);
long getProjectId()const;
void setProjectId(long projectId);
private:
std::string organizationId_;
std::string tagName_;
std::string accessToken_;
long projectId_;
};
}
}
}
#endif // !ALIBABACLOUD_CODEUP_MODEL_GETREPOSITORYTAGREQUEST_H_

View File

@@ -0,0 +1,91 @@
/*
* 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_CODEUP_MODEL_GETREPOSITORYTAGRESULT_H_
#define ALIBABACLOUD_CODEUP_MODEL_GETREPOSITORYTAGRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/codeup/CodeupExport.h>
namespace AlibabaCloud
{
namespace Codeup
{
namespace Model
{
class ALIBABACLOUD_CODEUP_EXPORT GetRepositoryTagResult : public ServiceResult
{
public:
struct Result
{
struct Commit
{
struct Signature1
{
std::string verificationStatus;
std::string gpgKeyId;
};
std::string authoredDate;
std::string authorName;
std::string message;
std::string createdAt;
std::string title;
std::string authorEmail;
std::string committedDate;
std::string committerEmail;
std::vector<std::string> parentIds;
std::string shortId;
std::string id;
std::string committerName;
Signature1 signature1;
};
struct Signature
{
std::string verificationStatus;
std::string gpgKeyId;
};
Commit commit;
std::string message;
Signature signature;
std::string id;
std::string name;
};
GetRepositoryTagResult();
explicit GetRepositoryTagResult(const std::string &payload);
~GetRepositoryTagResult();
std::string getErrorCode()const;
std::string getErrorMessage()const;
bool getSuccess()const;
Result getResult()const;
protected:
void parse(const std::string &payload);
private:
std::string errorCode_;
std::string errorMessage_;
bool success_;
Result result_;
};
}
}
}
#endif // !ALIBABACLOUD_CODEUP_MODEL_GETREPOSITORYTAGRESULT_H_

View File

@@ -0,0 +1,69 @@
/*
* 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_CODEUP_MODEL_LISTREPOSITORYTAGSREQUEST_H_
#define ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORYTAGSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RoaServiceRequest.h>
#include <alibabacloud/codeup/CodeupExport.h>
namespace AlibabaCloud
{
namespace Codeup
{
namespace Model
{
class ALIBABACLOUD_CODEUP_EXPORT ListRepositoryTagsRequest : public RoaServiceRequest
{
public:
ListRepositoryTagsRequest();
~ListRepositoryTagsRequest();
std::string getAccessToken()const;
void setAccessToken(const std::string& accessToken);
bool getShowSignature()const;
void setShowSignature(bool showSignature);
std::string getSort()const;
void setSort(const std::string& sort);
std::string getOrganizationId()const;
void setOrganizationId(const std::string& organizationId);
std::string getSearch()const;
void setSearch(const std::string& search);
long getPageSize()const;
void setPageSize(long pageSize);
long getPage()const;
void setPage(long page);
long getProjectId()const;
void setProjectId(long projectId);
private:
std::string accessToken_;
bool showSignature_;
std::string sort_;
std::string organizationId_;
std::string search_;
long pageSize_;
long page_;
long projectId_;
};
}
}
}
#endif // !ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORYTAGSREQUEST_H_

View File

@@ -0,0 +1,93 @@
/*
* 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_CODEUP_MODEL_LISTREPOSITORYTAGSRESULT_H_
#define ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORYTAGSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/codeup/CodeupExport.h>
namespace AlibabaCloud
{
namespace Codeup
{
namespace Model
{
class ALIBABACLOUD_CODEUP_EXPORT ListRepositoryTagsResult : public ServiceResult
{
public:
struct ResultItem
{
struct Commit
{
struct Signature1
{
std::string verificationStatus;
std::string gpgKeyId;
};
std::string authoredDate;
std::string authorName;
std::string message;
std::string createdAt;
std::string title;
std::string authorEmail;
std::string committedDate;
std::string committerEmail;
std::vector<std::string> parentIds;
std::string shortId;
std::string id;
std::string committerName;
Signature1 signature1;
};
struct Signature
{
std::string verificationStatus;
std::string gpgKeyId;
};
Commit commit;
std::string message;
Signature signature;
std::string id;
std::string name;
};
ListRepositoryTagsResult();
explicit ListRepositoryTagsResult(const std::string &payload);
~ListRepositoryTagsResult();
long getTotal()const;
std::string getErrorCode()const;
std::string getErrorMessage()const;
bool getSuccess()const;
std::vector<ResultItem> getResult()const;
protected:
void parse(const std::string &payload);
private:
long total_;
std::string errorCode_;
std::string errorMessage_;
bool success_;
std::vector<ResultItem> result_;
};
}
}
}
#endif // !ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORYTAGSRESULT_H_