Support add webhook, get repository info via id or path.

This commit is contained in:
sdk-team
2020-10-12 10:08:08 +00:00
parent f5fe7fb428
commit 90802f9197
50 changed files with 4381 additions and 3 deletions

View File

@@ -26,12 +26,22 @@
#include "model/AddGroupMemberResult.h"
#include "model/AddRepositoryMemberRequest.h"
#include "model/AddRepositoryMemberResult.h"
#include "model/AddWebhookRequest.h"
#include "model/AddWebhookResult.h"
#include "model/CreateBranchRequest.h"
#include "model/CreateBranchResult.h"
#include "model/CreateFileRequest.h"
#include "model/CreateFileResult.h"
#include "model/CreateMergeRequestRequest.h"
#include "model/CreateMergeRequestResult.h"
#include "model/CreateRepositoryRequest.h"
#include "model/CreateRepositoryResult.h"
#include "model/CreateRepositoryGroupRequest.h"
#include "model/CreateRepositoryGroupResult.h"
#include "model/CreateTagRequest.h"
#include "model/CreateTagResult.h"
#include "model/DeleteBranchRequest.h"
#include "model/DeleteBranchResult.h"
#include "model/DeleteFileRequest.h"
#include "model/DeleteFileResult.h"
#include "model/DeleteGroupMemberRequest.h"
@@ -42,16 +52,28 @@
#include "model/DeleteRepositoryGroupResult.h"
#include "model/DeleteRepositoryMemberRequest.h"
#include "model/DeleteRepositoryMemberResult.h"
#include "model/GetBranchInfoRequest.h"
#include "model/GetBranchInfoResult.h"
#include "model/GetCodeupOrganizationRequest.h"
#include "model/GetCodeupOrganizationResult.h"
#include "model/GetFileBlobsRequest.h"
#include "model/GetFileBlobsResult.h"
#include "model/GetProjectMemberRequest.h"
#include "model/GetProjectMemberResult.h"
#include "model/GetRepositoryInfoRequest.h"
#include "model/GetRepositoryInfoResult.h"
#include "model/ListGroupMemberRequest.h"
#include "model/ListGroupMemberResult.h"
#include "model/ListGroupRepositoriesRequest.h"
#include "model/ListGroupRepositoriesResult.h"
#include "model/ListGroupsRequest.h"
#include "model/ListGroupsResult.h"
#include "model/ListRepositoryMemberRequest.h"
#include "model/ListRepositoryMemberResult.h"
#include "model/ListRepositoryTreeRequest.h"
#include "model/ListRepositoryTreeResult.h"
#include "model/MergeMergeRequestRequest.h"
#include "model/MergeMergeRequestResult.h"
#include "model/UpdateFileRequest.h"
#include "model/UpdateFileResult.h"
#include "model/UpdateGroupMemberRequest.h"
@@ -73,15 +95,30 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::AddRepositoryMemberResult> AddRepositoryMemberOutcome;
typedef std::future<AddRepositoryMemberOutcome> AddRepositoryMemberOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::AddRepositoryMemberRequest&, const AddRepositoryMemberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddRepositoryMemberAsyncHandler;
typedef Outcome<Error, Model::AddWebhookResult> AddWebhookOutcome;
typedef std::future<AddWebhookOutcome> AddWebhookOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::AddWebhookRequest&, const AddWebhookOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddWebhookAsyncHandler;
typedef Outcome<Error, Model::CreateBranchResult> CreateBranchOutcome;
typedef std::future<CreateBranchOutcome> CreateBranchOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::CreateBranchRequest&, const CreateBranchOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateBranchAsyncHandler;
typedef Outcome<Error, Model::CreateFileResult> CreateFileOutcome;
typedef std::future<CreateFileOutcome> CreateFileOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::CreateFileRequest&, const CreateFileOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateFileAsyncHandler;
typedef Outcome<Error, Model::CreateMergeRequestResult> CreateMergeRequestOutcome;
typedef std::future<CreateMergeRequestOutcome> CreateMergeRequestOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::CreateMergeRequestRequest&, const CreateMergeRequestOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateMergeRequestAsyncHandler;
typedef Outcome<Error, Model::CreateRepositoryResult> CreateRepositoryOutcome;
typedef std::future<CreateRepositoryOutcome> CreateRepositoryOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::CreateRepositoryRequest&, const CreateRepositoryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateRepositoryAsyncHandler;
typedef Outcome<Error, Model::CreateRepositoryGroupResult> CreateRepositoryGroupOutcome;
typedef std::future<CreateRepositoryGroupOutcome> CreateRepositoryGroupOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::CreateRepositoryGroupRequest&, const CreateRepositoryGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateRepositoryGroupAsyncHandler;
typedef Outcome<Error, Model::CreateTagResult> CreateTagOutcome;
typedef std::future<CreateTagOutcome> CreateTagOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::CreateTagRequest&, const CreateTagOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateTagAsyncHandler;
typedef Outcome<Error, Model::DeleteBranchResult> DeleteBranchOutcome;
typedef std::future<DeleteBranchOutcome> DeleteBranchOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::DeleteBranchRequest&, const DeleteBranchOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteBranchAsyncHandler;
typedef Outcome<Error, Model::DeleteFileResult> DeleteFileOutcome;
typedef std::future<DeleteFileOutcome> DeleteFileOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::DeleteFileRequest&, const DeleteFileOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteFileAsyncHandler;
@@ -97,21 +134,39 @@ 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::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;
typedef Outcome<Error, Model::GetCodeupOrganizationResult> GetCodeupOrganizationOutcome;
typedef std::future<GetCodeupOrganizationOutcome> GetCodeupOrganizationOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::GetCodeupOrganizationRequest&, const GetCodeupOrganizationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetCodeupOrganizationAsyncHandler;
typedef Outcome<Error, Model::GetFileBlobsResult> GetFileBlobsOutcome;
typedef std::future<GetFileBlobsOutcome> GetFileBlobsOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::GetFileBlobsRequest&, const GetFileBlobsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetFileBlobsAsyncHandler;
typedef Outcome<Error, Model::GetProjectMemberResult> GetProjectMemberOutcome;
typedef std::future<GetProjectMemberOutcome> GetProjectMemberOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::GetProjectMemberRequest&, const GetProjectMemberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetProjectMemberAsyncHandler;
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::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;
typedef Outcome<Error, Model::ListGroupRepositoriesResult> ListGroupRepositoriesOutcome;
typedef std::future<ListGroupRepositoriesOutcome> ListGroupRepositoriesOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::ListGroupRepositoriesRequest&, const ListGroupRepositoriesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListGroupRepositoriesAsyncHandler;
typedef Outcome<Error, Model::ListGroupsResult> ListGroupsOutcome;
typedef std::future<ListGroupsOutcome> ListGroupsOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::ListGroupsRequest&, const ListGroupsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListGroupsAsyncHandler;
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::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;
typedef Outcome<Error, Model::MergeMergeRequestResult> MergeMergeRequestOutcome;
typedef std::future<MergeMergeRequestOutcome> MergeMergeRequestOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::MergeMergeRequestRequest&, const MergeMergeRequestOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> MergeMergeRequestAsyncHandler;
typedef Outcome<Error, Model::UpdateFileResult> UpdateFileOutcome;
typedef std::future<UpdateFileOutcome> UpdateFileOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::UpdateFileRequest&, const UpdateFileOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateFileAsyncHandler;
@@ -132,15 +187,30 @@ namespace AlibabaCloud
AddRepositoryMemberOutcome addRepositoryMember(const Model::AddRepositoryMemberRequest &request)const;
void addRepositoryMemberAsync(const Model::AddRepositoryMemberRequest& request, const AddRepositoryMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddRepositoryMemberOutcomeCallable addRepositoryMemberCallable(const Model::AddRepositoryMemberRequest& request) const;
AddWebhookOutcome addWebhook(const Model::AddWebhookRequest &request)const;
void addWebhookAsync(const Model::AddWebhookRequest& request, const AddWebhookAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddWebhookOutcomeCallable addWebhookCallable(const Model::AddWebhookRequest& request) const;
CreateBranchOutcome createBranch(const Model::CreateBranchRequest &request)const;
void createBranchAsync(const Model::CreateBranchRequest& request, const CreateBranchAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateBranchOutcomeCallable createBranchCallable(const Model::CreateBranchRequest& request) const;
CreateFileOutcome createFile(const Model::CreateFileRequest &request)const;
void createFileAsync(const Model::CreateFileRequest& request, const CreateFileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateFileOutcomeCallable createFileCallable(const Model::CreateFileRequest& request) const;
CreateMergeRequestOutcome createMergeRequest(const Model::CreateMergeRequestRequest &request)const;
void createMergeRequestAsync(const Model::CreateMergeRequestRequest& request, const CreateMergeRequestAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateMergeRequestOutcomeCallable createMergeRequestCallable(const Model::CreateMergeRequestRequest& request) const;
CreateRepositoryOutcome createRepository(const Model::CreateRepositoryRequest &request)const;
void createRepositoryAsync(const Model::CreateRepositoryRequest& request, const CreateRepositoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateRepositoryOutcomeCallable createRepositoryCallable(const Model::CreateRepositoryRequest& request) const;
CreateRepositoryGroupOutcome createRepositoryGroup(const Model::CreateRepositoryGroupRequest &request)const;
void createRepositoryGroupAsync(const Model::CreateRepositoryGroupRequest& request, const CreateRepositoryGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateRepositoryGroupOutcomeCallable createRepositoryGroupCallable(const Model::CreateRepositoryGroupRequest& request) const;
CreateTagOutcome createTag(const Model::CreateTagRequest &request)const;
void createTagAsync(const Model::CreateTagRequest& request, const CreateTagAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateTagOutcomeCallable createTagCallable(const Model::CreateTagRequest& request) const;
DeleteBranchOutcome deleteBranch(const Model::DeleteBranchRequest &request)const;
void deleteBranchAsync(const Model::DeleteBranchRequest& request, const DeleteBranchAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteBranchOutcomeCallable deleteBranchCallable(const Model::DeleteBranchRequest& request) const;
DeleteFileOutcome deleteFile(const Model::DeleteFileRequest &request)const;
void deleteFileAsync(const Model::DeleteFileRequest& request, const DeleteFileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteFileOutcomeCallable deleteFileCallable(const Model::DeleteFileRequest& request) const;
@@ -156,21 +226,39 @@ 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;
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;
GetCodeupOrganizationOutcome getCodeupOrganization(const Model::GetCodeupOrganizationRequest &request)const;
void getCodeupOrganizationAsync(const Model::GetCodeupOrganizationRequest& request, const GetCodeupOrganizationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetCodeupOrganizationOutcomeCallable getCodeupOrganizationCallable(const Model::GetCodeupOrganizationRequest& request) const;
GetFileBlobsOutcome getFileBlobs(const Model::GetFileBlobsRequest &request)const;
void getFileBlobsAsync(const Model::GetFileBlobsRequest& request, const GetFileBlobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetFileBlobsOutcomeCallable getFileBlobsCallable(const Model::GetFileBlobsRequest& request) const;
GetProjectMemberOutcome getProjectMember(const Model::GetProjectMemberRequest &request)const;
void getProjectMemberAsync(const Model::GetProjectMemberRequest& request, const GetProjectMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetProjectMemberOutcomeCallable getProjectMemberCallable(const Model::GetProjectMemberRequest& request) const;
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;
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;
ListGroupRepositoriesOutcome listGroupRepositories(const Model::ListGroupRepositoriesRequest &request)const;
void listGroupRepositoriesAsync(const Model::ListGroupRepositoriesRequest& request, const ListGroupRepositoriesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListGroupRepositoriesOutcomeCallable listGroupRepositoriesCallable(const Model::ListGroupRepositoriesRequest& request) const;
ListGroupsOutcome listGroups(const Model::ListGroupsRequest &request)const;
void listGroupsAsync(const Model::ListGroupsRequest& request, const ListGroupsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListGroupsOutcomeCallable listGroupsCallable(const Model::ListGroupsRequest& request) const;
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;
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;
MergeMergeRequestOutcome mergeMergeRequest(const Model::MergeMergeRequestRequest &request)const;
void mergeMergeRequestAsync(const Model::MergeMergeRequestRequest& request, const MergeMergeRequestAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
MergeMergeRequestOutcomeCallable mergeMergeRequestCallable(const Model::MergeMergeRequestRequest& request) const;
UpdateFileOutcome updateFile(const Model::UpdateFileRequest &request)const;
void updateFileAsync(const Model::UpdateFileRequest& request, const UpdateFileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateFileOutcomeCallable updateFileCallable(const Model::UpdateFileRequest& request) const;

View File

@@ -0,0 +1,54 @@
/*
* 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_ADDWEBHOOKREQUEST_H_
#define ALIBABACLOUD_CODEUP_MODEL_ADDWEBHOOKREQUEST_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 AddWebhookRequest : public RoaServiceRequest
{
public:
AddWebhookRequest();
~AddWebhookRequest();
std::string getOrganizationId()const;
void setOrganizationId(const std::string& organizationId);
std::string getAccessToken()const;
void setAccessToken(const std::string& accessToken);
long getProjectId()const;
void setProjectId(long projectId);
private:
std::string organizationId_;
std::string accessToken_;
long projectId_;
};
}
}
}
#endif // !ALIBABACLOUD_CODEUP_MODEL_ADDWEBHOOKREQUEST_H_

View File

@@ -0,0 +1,73 @@
/*
* 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_ADDWEBHOOKRESULT_H_
#define ALIBABACLOUD_CODEUP_MODEL_ADDWEBHOOKRESULT_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 AddWebhookResult : public ServiceResult
{
public:
struct Result
{
std::string description;
bool pushEvents;
std::string createdAt;
long projectId;
bool issuesEvents;
bool tagPushEvents;
bool mergeRequestsEvents;
std::string url;
bool buildEvents;
std::string lastTestResult;
long id;
bool enableSslVerification;
bool noteEvents;
};
AddWebhookResult();
explicit AddWebhookResult(const std::string &payload);
~AddWebhookResult();
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_ADDWEBHOOKRESULT_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_CREATEBRANCHREQUEST_H_
#define ALIBABACLOUD_CODEUP_MODEL_CREATEBRANCHREQUEST_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 CreateBranchRequest : public RoaServiceRequest
{
public:
CreateBranchRequest();
~CreateBranchRequest();
std::string getOrganizationId()const;
void setOrganizationId(const std::string& organizationId);
std::string getSubUserId()const;
void setSubUserId(const std::string& subUserId);
std::string getAccessToken()const;
void setAccessToken(const std::string& accessToken);
long getProjectId()const;
void setProjectId(long projectId);
private:
std::string organizationId_;
std::string subUserId_;
std::string accessToken_;
long projectId_;
};
}
}
}
#endif // !ALIBABACLOUD_CODEUP_MODEL_CREATEBRANCHREQUEST_H_

View File

@@ -0,0 +1,78 @@
/*
* 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_CREATEBRANCHRESULT_H_
#define ALIBABACLOUD_CODEUP_MODEL_CREATEBRANCHRESULT_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 CreateBranchResult : public ServiceResult
{
public:
struct Result
{
struct CommitInfo
{
std::string authorName;
std::string message;
std::string authorDate;
std::string committedDate;
std::string committerEmail;
std::vector<std::string> parentIds;
std::string createdAt;
std::string shortId;
std::string title;
std::string id;
std::string authorEmail;
std::string committerName;
};
bool protectedBranch;
CommitInfo commitInfo;
std::string branchName;
};
CreateBranchResult();
explicit CreateBranchResult(const std::string &payload);
~CreateBranchResult();
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_CREATEBRANCHRESULT_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_CREATEMERGEREQUESTREQUEST_H_
#define ALIBABACLOUD_CODEUP_MODEL_CREATEMERGEREQUESTREQUEST_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 CreateMergeRequestRequest : public RoaServiceRequest
{
public:
CreateMergeRequestRequest();
~CreateMergeRequestRequest();
std::string getOrganizationId()const;
void setOrganizationId(const std::string& organizationId);
std::string getSubUserId()const;
void setSubUserId(const std::string& subUserId);
std::string getAccessToken()const;
void setAccessToken(const std::string& accessToken);
long getProjectId()const;
void setProjectId(long projectId);
private:
std::string organizationId_;
std::string subUserId_;
std::string accessToken_;
long projectId_;
};
}
}
}
#endif // !ALIBABACLOUD_CODEUP_MODEL_CREATEMERGEREQUESTREQUEST_H_

View File

@@ -0,0 +1,133 @@
/*
* 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_CREATEMERGEREQUESTRESULT_H_
#define ALIBABACLOUD_CODEUP_MODEL_CREATEMERGEREQUESTRESULT_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 CreateMergeRequestResult : public ServiceResult
{
public:
struct Result
{
struct Author
{
std::string avatarUrl;
std::string externUserId;
long id;
std::string name;
};
struct ApproveCheckResult
{
struct SatisfiedCheckResultsItem
{
struct ExtraUsersItem
{
std::string avatarUrl;
std::string externUserId;
long id;
std::string name;
};
std::string checkName;
std::vector<std::string> satisfiedItems;
std::string checkType;
std::string checkStatus;
std::vector<std::string> unsatisfiedItems;
std::vector<SatisfiedCheckResultsItem::ExtraUsersItem> extraUsers;
};
struct UnsatisfiedCheckResultsItem
{
struct ExtraUsersItem4
{
std::string avatarUrl;
std::string externUserId;
long id;
std::string name;
};
std::vector<std::string> satisfiedItems1;
std::string checkName;
std::string checkType;
std::string checkStatus;
std::vector<UnsatisfiedCheckResultsItem::ExtraUsersItem4> extraUsers3;
std::vector<std::string> unsatisfiedItems2;
};
std::vector<UnsatisfiedCheckResultsItem> unsatisfiedCheckResults;
std::vector<SatisfiedCheckResultsItem> satisfiedCheckResults;
std::string totalCheckResult;
};
struct AssigneeListItem
{
std::string avatarUrl;
std::string externUserId;
std::string id;
std::string name;
};
ApproveCheckResult approveCheckResult;
int behindCommitCount;
std::string description;
int aheadCommitCount;
std::string createdAt;
long projectId;
std::string title;
std::string webUrl;
std::string mergeError;
std::string nameWithNamespace;
std::string updatedAt;
std::string mergedRevision;
std::string acceptedRevision;
std::string state;
std::vector<AssigneeListItem> assigneeList;
std::string mergeStatus;
std::string sourceBranch;
Author author;
long id;
std::string mergeType;
std::string targetBranch;
};
CreateMergeRequestResult();
explicit CreateMergeRequestResult(const std::string &payload);
~CreateMergeRequestResult();
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_CREATEMERGEREQUESTRESULT_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_CREATETAGREQUEST_H_
#define ALIBABACLOUD_CODEUP_MODEL_CREATETAGREQUEST_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 CreateTagRequest : public RoaServiceRequest
{
public:
CreateTagRequest();
~CreateTagRequest();
std::string getOrganizationId()const;
void setOrganizationId(const std::string& organizationId);
std::string getSubUserId()const;
void setSubUserId(const std::string& subUserId);
std::string getAccessToken()const;
void setAccessToken(const std::string& accessToken);
long getProjectId()const;
void setProjectId(long projectId);
private:
std::string organizationId_;
std::string subUserId_;
std::string accessToken_;
long projectId_;
};
}
}
}
#endif // !ALIBABACLOUD_CODEUP_MODEL_CREATETAGREQUEST_H_

View File

@@ -0,0 +1,84 @@
/*
* 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_CREATETAGRESULT_H_
#define ALIBABACLOUD_CODEUP_MODEL_CREATETAGRESULT_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 CreateTagResult : public ServiceResult
{
public:
struct Result
{
struct CommitInfo
{
std::string authoredDate;
std::string authorName;
std::string committedDate;
std::string committerEmail;
std::string message;
std::vector<std::string> parentIds;
std::string createdAt;
std::string shortId;
std::string title;
std::string id;
std::string authorEmail;
std::string committerName;
};
struct Release
{
std::string description;
std::string tagName;
};
std::string message;
CommitInfo commitInfo;
Release release;
std::string name;
};
CreateTagResult();
explicit CreateTagResult(const std::string &payload);
~CreateTagResult();
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_CREATETAGRESULT_H_

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_CODEUP_MODEL_DELETEBRANCHREQUEST_H_
#define ALIBABACLOUD_CODEUP_MODEL_DELETEBRANCHREQUEST_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 DeleteBranchRequest : public RoaServiceRequest
{
public:
DeleteBranchRequest();
~DeleteBranchRequest();
std::string getOrganizationId()const;
void setOrganizationId(const std::string& organizationId);
std::string getSubUserId()const;
void setSubUserId(const std::string& subUserId);
std::string getAccessToken()const;
void setAccessToken(const std::string& accessToken);
long getProjectId()const;
void setProjectId(long projectId);
std::string getBranchName()const;
void setBranchName(const std::string& branchName);
private:
std::string organizationId_;
std::string subUserId_;
std::string accessToken_;
long projectId_;
std::string branchName_;
};
}
}
}
#endif // !ALIBABACLOUD_CODEUP_MODEL_DELETEBRANCHREQUEST_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_DELETEBRANCHRESULT_H_
#define ALIBABACLOUD_CODEUP_MODEL_DELETEBRANCHRESULT_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 DeleteBranchResult : public ServiceResult
{
public:
struct Result
{
std::string branchName;
};
DeleteBranchResult();
explicit DeleteBranchResult(const std::string &payload);
~DeleteBranchResult();
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_DELETEBRANCHRESULT_H_

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_CODEUP_MODEL_GETBRANCHINFOREQUEST_H_
#define ALIBABACLOUD_CODEUP_MODEL_GETBRANCHINFOREQUEST_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 GetBranchInfoRequest : public RoaServiceRequest
{
public:
GetBranchInfoRequest();
~GetBranchInfoRequest();
std::string getOrganizationId()const;
void setOrganizationId(const std::string& organizationId);
std::string getSubUserId()const;
void setSubUserId(const std::string& subUserId);
std::string getAccessToken()const;
void setAccessToken(const std::string& accessToken);
long getProjectId()const;
void setProjectId(long projectId);
std::string getBranchName()const;
void setBranchName(const std::string& branchName);
private:
std::string organizationId_;
std::string subUserId_;
std::string accessToken_;
long projectId_;
std::string branchName_;
};
}
}
}
#endif // !ALIBABACLOUD_CODEUP_MODEL_GETBRANCHINFOREQUEST_H_

View File

@@ -0,0 +1,78 @@
/*
* 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_GETBRANCHINFORESULT_H_
#define ALIBABACLOUD_CODEUP_MODEL_GETBRANCHINFORESULT_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 GetBranchInfoResult : public ServiceResult
{
public:
struct Result
{
struct CommitInfo
{
std::string authorName;
std::string message;
std::string authorDate;
std::string committedDate;
std::string committerEmail;
std::vector<std::string> parentIds;
std::string createdAt;
std::string shortId;
std::string title;
std::string id;
std::string authorEmail;
std::string committerName;
};
bool protectedBranch;
CommitInfo commitInfo;
std::string branchName;
};
GetBranchInfoResult();
explicit GetBranchInfoResult(const std::string &payload);
~GetBranchInfoResult();
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_GETBRANCHINFORESULT_H_

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_CODEUP_MODEL_GETPROJECTMEMBERREQUEST_H_
#define ALIBABACLOUD_CODEUP_MODEL_GETPROJECTMEMBERREQUEST_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 GetProjectMemberRequest : public RoaServiceRequest
{
public:
GetProjectMemberRequest();
~GetProjectMemberRequest();
std::string getOrganizationId()const;
void setOrganizationId(const std::string& organizationId);
std::string getSubUserId()const;
void setSubUserId(const std::string& subUserId);
std::string getAccessToken()const;
void setAccessToken(const std::string& accessToken);
long getProjectId()const;
void setProjectId(long projectId);
long getUserId()const;
void setUserId(long userId);
private:
std::string organizationId_;
std::string subUserId_;
std::string accessToken_;
long projectId_;
long userId_;
};
}
}
}
#endif // !ALIBABACLOUD_CODEUP_MODEL_GETPROJECTMEMBERREQUEST_H_

View File

@@ -0,0 +1,65 @@
/*
* 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_GETPROJECTMEMBERRESULT_H_
#define ALIBABACLOUD_CODEUP_MODEL_GETPROJECTMEMBERRESULT_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 GetProjectMemberResult : public ServiceResult
{
public:
struct Result
{
std::string avatarUrl;
std::string externUserId;
long id;
int accessLevel;
std::string name;
};
GetProjectMemberResult();
explicit GetProjectMemberResult(const std::string &payload);
~GetProjectMemberResult();
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_GETPROJECTMEMBERRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* 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_GETREPOSITORYINFOREQUEST_H_
#define ALIBABACLOUD_CODEUP_MODEL_GETREPOSITORYINFOREQUEST_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 GetRepositoryInfoRequest : public RoaServiceRequest
{
public:
GetRepositoryInfoRequest();
~GetRepositoryInfoRequest();
std::string getOrganizationId()const;
void setOrganizationId(const std::string& organizationId);
std::string getIdentity()const;
void setIdentity(const std::string& identity);
std::string getAccessToken()const;
void setAccessToken(const std::string& accessToken);
private:
std::string organizationId_;
std::string identity_;
std::string accessToken_;
};
}
}
}
#endif // !ALIBABACLOUD_CODEUP_MODEL_GETREPOSITORYINFOREQUEST_H_

View File

@@ -0,0 +1,112 @@
/*
* 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_GETREPOSITORYINFORESULT_H_
#define ALIBABACLOUD_CODEUP_MODEL_GETREPOSITORYINFORESULT_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 GetRepositoryInfoResult : public ServiceResult
{
public:
struct Result
{
struct _Namespace
{
std::string path;
std::string description;
long ownerId;
std::string state;
std::string createdAt;
bool _public;
std::string visibilityLevel;
long id;
std::string updatedAt;
std::string avatar;
std::string name;
};
struct Permissions
{
struct ProjectAccess
{
int accessLevel;
};
struct GroupAccess
{
int accessLevel;
};
GroupAccess groupAccess;
ProjectAccess projectAccess;
};
std::string httpUrlToRepo;
std::string description;
bool archive;
std::string createdAt;
std::string visibilityLevel;
std::string name;
std::string avatarUrl;
bool demoProjectStatus;
Permissions permissions;
std::vector<std::string> tagList;
std::string defaultBranch;
std::string path;
std::string pathWithNamespace;
std::string lastActivityAt;
long creatorId;
std::string webUrl;
std::string nameWithNamespace;
_Namespace _namespace;
int accessLevel;
std::string importUrl;
std::string sshUrlToRepo;
std::string importStatus;
bool importFromSubversion;
bool _public;
long id;
};
GetRepositoryInfoResult();
explicit GetRepositoryInfoResult(const std::string &payload);
~GetRepositoryInfoResult();
int getErrorCode()const;
std::string getErrorMessage()const;
bool getSuccess()const;
Result getResult()const;
protected:
void parse(const std::string &payload);
private:
int errorCode_;
std::string errorMessage_;
bool success_;
Result result_;
};
}
}
}
#endif // !ALIBABACLOUD_CODEUP_MODEL_GETREPOSITORYINFORESULT_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_LISTGROUPREPOSITORIESREQUEST_H_
#define ALIBABACLOUD_CODEUP_MODEL_LISTGROUPREPOSITORIESREQUEST_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 ListGroupRepositoriesRequest : public RoaServiceRequest
{
public:
ListGroupRepositoriesRequest();
~ListGroupRepositoriesRequest();
std::string getAccessToken()const;
void setAccessToken(const std::string& accessToken);
bool getIsMember()const;
void setIsMember(bool isMember);
std::string getOrganizationId()const;
void setOrganizationId(const std::string& organizationId);
std::string getSearch()const;
void setSearch(const std::string& search);
std::string getSubUserId()const;
void setSubUserId(const std::string& subUserId);
std::string getIdentity()const;
void setIdentity(const std::string& identity);
long getPageSize()const;
void setPageSize(long pageSize);
long getPage()const;
void setPage(long page);
private:
std::string accessToken_;
bool isMember_;
std::string organizationId_;
std::string search_;
std::string subUserId_;
std::string identity_;
long pageSize_;
long page_;
};
}
}
}
#endif // !ALIBABACLOUD_CODEUP_MODEL_LISTGROUPREPOSITORIESREQUEST_H_

View File

@@ -0,0 +1,76 @@
/*
* 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_LISTGROUPREPOSITORIESRESULT_H_
#define ALIBABACLOUD_CODEUP_MODEL_LISTGROUPREPOSITORIESRESULT_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 ListGroupRepositoriesResult : public ServiceResult
{
public:
struct ResultItem
{
std::string lastActivityAt;
std::string path;
std::string pathWithNamespace;
bool archive;
long creatorId;
std::string createdAt;
std::string nameWithNamespace;
std::string webUrl;
int visibilityLevel;
std::string updatedAt;
std::string name;
std::string importStatus;
long id;
long namespaceId;
std::string httpCloneUrl;
std::string sshCloneUrl;
};
ListGroupRepositoriesResult();
explicit ListGroupRepositoriesResult(const std::string &payload);
~ListGroupRepositoriesResult();
std::string getErrorCode()const;
std::string getErrorMessage()const;
bool getSuccess()const;
std::vector<ResultItem> getResult()const;
protected:
void parse(const std::string &payload);
private:
std::string errorCode_;
std::string errorMessage_;
bool success_;
std::vector<ResultItem> result_;
};
}
}
}
#endif // !ALIBABACLOUD_CODEUP_MODEL_LISTGROUPREPOSITORIESRESULT_H_

View File

@@ -0,0 +1,66 @@
/*
* 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_LISTGROUPSREQUEST_H_
#define ALIBABACLOUD_CODEUP_MODEL_LISTGROUPSREQUEST_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 ListGroupsRequest : public RoaServiceRequest
{
public:
ListGroupsRequest();
~ListGroupsRequest();
std::string getOrganizationId()const;
void setOrganizationId(const std::string& organizationId);
bool getIncludePersonal()const;
void setIncludePersonal(bool includePersonal);
std::string getSearch()const;
void setSearch(const std::string& search);
std::string getSubUserId()const;
void setSubUserId(const std::string& subUserId);
long getPageSize()const;
void setPageSize(long pageSize);
std::string getAccessToken()const;
void setAccessToken(const std::string& accessToken);
long getPage()const;
void setPage(long page);
private:
std::string organizationId_;
bool includePersonal_;
std::string search_;
std::string subUserId_;
long pageSize_;
std::string accessToken_;
long page_;
};
}
}
}
#endif // !ALIBABACLOUD_CODEUP_MODEL_LISTGROUPSREQUEST_H_

View File

@@ -0,0 +1,74 @@
/*
* 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_LISTGROUPSRESULT_H_
#define ALIBABACLOUD_CODEUP_MODEL_LISTGROUPSRESULT_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 ListGroupsResult : public ServiceResult
{
public:
struct ResultItem
{
long parentId;
std::string path;
std::string pathWithNamespace;
std::string description;
std::string createdAt;
std::string nameWithNamespace;
std::string webUrl;
std::string visibilityLevel;
std::string updatedAt;
int accessLevel;
std::string name;
std::string type;
long ownerId;
long id;
};
ListGroupsResult();
explicit ListGroupsResult(const std::string &payload);
~ListGroupsResult();
std::string getErrorCode()const;
std::string getErrorMessage()const;
bool getSuccess()const;
std::vector<ResultItem> getResult()const;
protected:
void parse(const std::string &payload);
private:
std::string errorCode_;
std::string errorMessage_;
bool success_;
std::vector<ResultItem> result_;
};
}
}
}
#endif // !ALIBABACLOUD_CODEUP_MODEL_LISTGROUPSRESULT_H_

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_CODEUP_MODEL_MERGEMERGEREQUESTREQUEST_H_
#define ALIBABACLOUD_CODEUP_MODEL_MERGEMERGEREQUESTREQUEST_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 MergeMergeRequestRequest : public RoaServiceRequest
{
public:
MergeMergeRequestRequest();
~MergeMergeRequestRequest();
std::string getOrganizationId()const;
void setOrganizationId(const std::string& organizationId);
std::string getSubUserId()const;
void setSubUserId(const std::string& subUserId);
long getMergeRequestId()const;
void setMergeRequestId(long mergeRequestId);
std::string getAccessToken()const;
void setAccessToken(const std::string& accessToken);
long getProjectId()const;
void setProjectId(long projectId);
private:
std::string organizationId_;
std::string subUserId_;
long mergeRequestId_;
std::string accessToken_;
long projectId_;
};
}
}
}
#endif // !ALIBABACLOUD_CODEUP_MODEL_MERGEMERGEREQUESTREQUEST_H_

View File

@@ -0,0 +1,133 @@
/*
* 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_MERGEMERGEREQUESTRESULT_H_
#define ALIBABACLOUD_CODEUP_MODEL_MERGEMERGEREQUESTRESULT_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 MergeMergeRequestResult : public ServiceResult
{
public:
struct Result
{
struct Author
{
std::string avatarUrl;
std::string externUserId;
long id;
std::string name;
};
struct ApproveCheckResult
{
struct SatisfiedCheckResultsItem
{
struct ExtraUsersItem
{
std::string avatarUrl;
std::string externUserId;
long id;
std::string name;
};
std::string checkName;
std::vector<std::string> satisfiedItems;
std::string checkType;
std::string checkStatus;
std::vector<std::string> unsatisfiedItems;
std::vector<SatisfiedCheckResultsItem::ExtraUsersItem> extraUsers;
};
struct UnsatisfiedCheckResultsItem
{
struct ExtraUsersItem4
{
std::string avatarUrl;
std::string externUserId;
long id;
std::string name;
};
std::vector<std::string> satisfiedItems1;
std::string checkName;
std::string checkType;
std::string checkStatus;
std::vector<UnsatisfiedCheckResultsItem::ExtraUsersItem4> extraUsers3;
std::vector<std::string> unsatisfiedItems2;
};
std::vector<UnsatisfiedCheckResultsItem> unsatisfiedCheckResults;
std::vector<SatisfiedCheckResultsItem> satisfiedCheckResults;
std::string totalCheckResult;
};
struct AssigneeListItem
{
std::string avatarUrl;
std::string externUserId;
std::string id;
std::string name;
};
ApproveCheckResult approveCheckResult;
int behindCommitCount;
std::string description;
int aheadCommitCount;
std::string createdAt;
long projectId;
std::string title;
std::string webUrl;
std::string mergeError;
std::string nameWithNamespace;
std::string updatedAt;
std::string mergedRevision;
std::string acceptedRevision;
std::string state;
std::vector<AssigneeListItem> assigneeList;
std::string mergeStatus;
std::string sourceBranch;
Author author;
long id;
std::string mergeType;
std::string targetBranch;
};
MergeMergeRequestResult();
explicit MergeMergeRequestResult(const std::string &payload);
~MergeMergeRequestResult();
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_MERGEMERGEREQUESTRESULT_H_