Add GetRepositoryTagV2 and DeleteRepositoryTagV2 API.

This commit is contained in:
sdk-team
2021-03-03 13:47:48 +00:00
parent 11e91aaf29
commit b38385d35f
70 changed files with 757 additions and 0 deletions

View File

@@ -64,6 +64,8 @@
#include "model/DeleteRepositoryProtectedBranchResult.h"
#include "model/DeleteRepositoryTagRequest.h"
#include "model/DeleteRepositoryTagResult.h"
#include "model/DeleteRepositoryTagV2Request.h"
#include "model/DeleteRepositoryTagV2Result.h"
#include "model/DeleteRepositoryWebhookRequest.h"
#include "model/DeleteRepositoryWebhookResult.h"
#include "model/EnableRepositoryDeployKeyRequest.h"
@@ -88,6 +90,8 @@
#include "model/GetRepositoryInfoResult.h"
#include "model/GetRepositoryTagRequest.h"
#include "model/GetRepositoryTagResult.h"
#include "model/GetRepositoryTagV2Request.h"
#include "model/GetRepositoryTagV2Result.h"
#include "model/GetUserInfoRequest.h"
#include "model/GetUserInfoResult.h"
#include "model/ListGroupMemberRequest.h"
@@ -204,6 +208,9 @@ namespace AlibabaCloud
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::DeleteRepositoryTagV2Result> DeleteRepositoryTagV2Outcome;
typedef std::future<DeleteRepositoryTagV2Outcome> DeleteRepositoryTagV2OutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::DeleteRepositoryTagV2Request&, const DeleteRepositoryTagV2Outcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteRepositoryTagV2AsyncHandler;
typedef Outcome<Error, Model::DeleteRepositoryWebhookResult> DeleteRepositoryWebhookOutcome;
typedef std::future<DeleteRepositoryWebhookOutcome> DeleteRepositoryWebhookOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::DeleteRepositoryWebhookRequest&, const DeleteRepositoryWebhookOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteRepositoryWebhookAsyncHandler;
@@ -240,6 +247,9 @@ namespace AlibabaCloud
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::GetRepositoryTagV2Result> GetRepositoryTagV2Outcome;
typedef std::future<GetRepositoryTagV2Outcome> GetRepositoryTagV2OutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::GetRepositoryTagV2Request&, const GetRepositoryTagV2Outcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetRepositoryTagV2AsyncHandler;
typedef Outcome<Error, Model::GetUserInfoResult> GetUserInfoOutcome;
typedef std::future<GetUserInfoOutcome> GetUserInfoOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::GetUserInfoRequest&, const GetUserInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetUserInfoAsyncHandler;
@@ -374,6 +384,9 @@ namespace AlibabaCloud
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;
DeleteRepositoryTagV2Outcome deleteRepositoryTagV2(const Model::DeleteRepositoryTagV2Request &request)const;
void deleteRepositoryTagV2Async(const Model::DeleteRepositoryTagV2Request& request, const DeleteRepositoryTagV2AsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteRepositoryTagV2OutcomeCallable deleteRepositoryTagV2Callable(const Model::DeleteRepositoryTagV2Request& request) const;
DeleteRepositoryWebhookOutcome deleteRepositoryWebhook(const Model::DeleteRepositoryWebhookRequest &request)const;
void deleteRepositoryWebhookAsync(const Model::DeleteRepositoryWebhookRequest& request, const DeleteRepositoryWebhookAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteRepositoryWebhookOutcomeCallable deleteRepositoryWebhookCallable(const Model::DeleteRepositoryWebhookRequest& request) const;
@@ -410,6 +423,9 @@ namespace AlibabaCloud
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;
GetRepositoryTagV2Outcome getRepositoryTagV2(const Model::GetRepositoryTagV2Request &request)const;
void getRepositoryTagV2Async(const Model::GetRepositoryTagV2Request& request, const GetRepositoryTagV2AsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetRepositoryTagV2OutcomeCallable getRepositoryTagV2Callable(const Model::GetRepositoryTagV2Request& request) const;
GetUserInfoOutcome getUserInfo(const Model::GetUserInfoRequest &request)const;
void getUserInfoAsync(const Model::GetUserInfoRequest& request, const GetUserInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetUserInfoOutcomeCallable getUserInfoCallable(const Model::GetUserInfoRequest& 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_DELETEREPOSITORYTAGV2REQUEST_H_
#define ALIBABACLOUD_CODEUP_MODEL_DELETEREPOSITORYTAGV2REQUEST_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 DeleteRepositoryTagV2Request : public RoaServiceRequest
{
public:
DeleteRepositoryTagV2Request();
~DeleteRepositoryTagV2Request();
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_DELETEREPOSITORYTAGV2REQUEST_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_DELETEREPOSITORYTAGV2RESULT_H_
#define ALIBABACLOUD_CODEUP_MODEL_DELETEREPOSITORYTAGV2RESULT_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 DeleteRepositoryTagV2Result : public ServiceResult
{
public:
struct Result
{
std::string tagName;
};
DeleteRepositoryTagV2Result();
explicit DeleteRepositoryTagV2Result(const std::string &payload);
~DeleteRepositoryTagV2Result();
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_DELETEREPOSITORYTAGV2RESULT_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_GETREPOSITORYTAGV2REQUEST_H_
#define ALIBABACLOUD_CODEUP_MODEL_GETREPOSITORYTAGV2REQUEST_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 GetRepositoryTagV2Request : public RoaServiceRequest
{
public:
GetRepositoryTagV2Request();
~GetRepositoryTagV2Request();
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_GETREPOSITORYTAGV2REQUEST_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_GETREPOSITORYTAGV2RESULT_H_
#define ALIBABACLOUD_CODEUP_MODEL_GETREPOSITORYTAGV2RESULT_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 GetRepositoryTagV2Result : 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;
};
GetRepositoryTagV2Result();
explicit GetRepositoryTagV2Result(const std::string &payload);
~GetRepositoryTagV2Result();
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_GETREPOSITORYTAGV2RESULT_H_