Fix GetBranchInfo and DeleteBranch API 404 error.

This commit is contained in:
sdk-team
2020-11-13 06:29:26 +00:00
parent f3b00eade0
commit 630656ce24
24 changed files with 842 additions and 42 deletions

View File

@@ -58,6 +58,8 @@
#include "model/GetCodeupOrganizationResult.h"
#include "model/GetFileBlobsRequest.h"
#include "model/GetFileBlobsResult.h"
#include "model/GetGroupDetailRequest.h"
#include "model/GetGroupDetailResult.h"
#include "model/GetProjectMemberRequest.h"
#include "model/GetProjectMemberResult.h"
#include "model/GetRepositoryInfoRequest.h"
@@ -68,6 +70,8 @@
#include "model/ListGroupRepositoriesResult.h"
#include "model/ListGroupsRequest.h"
#include "model/ListGroupsResult.h"
#include "model/ListRepositoryBranchesRequest.h"
#include "model/ListRepositoryBranchesResult.h"
#include "model/ListRepositoryMemberRequest.h"
#include "model/ListRepositoryMemberResult.h"
#include "model/ListRepositoryTreeRequest.h"
@@ -143,6 +147,9 @@ namespace AlibabaCloud
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::GetGroupDetailResult> GetGroupDetailOutcome;
typedef std::future<GetGroupDetailOutcome> GetGroupDetailOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::GetGroupDetailRequest&, const GetGroupDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetGroupDetailAsyncHandler;
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;
@@ -158,6 +165,9 @@ namespace AlibabaCloud
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::ListRepositoryBranchesResult> ListRepositoryBranchesOutcome;
typedef std::future<ListRepositoryBranchesOutcome> ListRepositoryBranchesOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::ListRepositoryBranchesRequest&, const ListRepositoryBranchesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRepositoryBranchesAsyncHandler;
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;
@@ -235,6 +245,9 @@ namespace AlibabaCloud
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;
GetGroupDetailOutcome getGroupDetail(const Model::GetGroupDetailRequest &request)const;
void getGroupDetailAsync(const Model::GetGroupDetailRequest& request, const GetGroupDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetGroupDetailOutcomeCallable getGroupDetailCallable(const Model::GetGroupDetailRequest& 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;
@@ -250,6 +263,9 @@ namespace AlibabaCloud
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;
ListRepositoryBranchesOutcome listRepositoryBranches(const Model::ListRepositoryBranchesRequest &request)const;
void listRepositoryBranchesAsync(const Model::ListRepositoryBranchesRequest& request, const ListRepositoryBranchesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListRepositoryBranchesOutcomeCallable listRepositoryBranchesCallable(const Model::ListRepositoryBranchesRequest& 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;

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_GETGROUPDETAILREQUEST_H_
#define ALIBABACLOUD_CODEUP_MODEL_GETGROUPDETAILREQUEST_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 GetGroupDetailRequest : public RoaServiceRequest
{
public:
GetGroupDetailRequest();
~GetGroupDetailRequest();
std::string getOrganizationId()const;
void setOrganizationId(const std::string& organizationId);
std::string getSubUserId()const;
void setSubUserId(const std::string& subUserId);
long getGroupId()const;
void setGroupId(long groupId);
std::string getAccessToken()const;
void setAccessToken(const std::string& accessToken);
private:
std::string organizationId_;
std::string subUserId_;
long groupId_;
std::string accessToken_;
};
}
}
}
#endif // !ALIBABACLOUD_CODEUP_MODEL_GETGROUPDETAILREQUEST_H_

View File

@@ -0,0 +1,72 @@
/*
* 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_GETGROUPDETAILRESULT_H_
#define ALIBABACLOUD_CODEUP_MODEL_GETGROUPDETAILRESULT_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 GetGroupDetailResult : public ServiceResult
{
public:
struct Result
{
std::string path;
std::string pathWithNamespace;
long parentId;
std::string type;
std::string description;
std::string avatarUrl;
long ownerId;
std::string webUrl;
std::string nameWithNamespace;
std::string visibilityLevel;
long id;
std::string name;
};
GetGroupDetailResult();
explicit GetGroupDetailResult(const std::string &payload);
~GetGroupDetailResult();
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_GETGROUPDETAILRESULT_H_

View File

@@ -46,6 +46,7 @@ namespace AlibabaCloud
ListGroupMemberResult();
explicit ListGroupMemberResult(const std::string &payload);
~ListGroupMemberResult();
long getTotal()const;
std::string getErrorCode()const;
std::string getErrorMessage()const;
bool getSuccess()const;
@@ -54,6 +55,7 @@ namespace AlibabaCloud
protected:
void parse(const std::string &payload);
private:
long total_;
std::string errorCode_;
std::string errorMessage_;
bool success_;

View File

@@ -56,6 +56,7 @@ namespace AlibabaCloud
ListGroupRepositoriesResult();
explicit ListGroupRepositoriesResult(const std::string &payload);
~ListGroupRepositoriesResult();
long getTotal()const;
std::string getErrorCode()const;
std::string getErrorMessage()const;
bool getSuccess()const;
@@ -64,6 +65,7 @@ namespace AlibabaCloud
protected:
void parse(const std::string &payload);
private:
long total_;
std::string errorCode_;
std::string errorMessage_;
bool success_;

View File

@@ -54,6 +54,7 @@ namespace AlibabaCloud
ListGroupsResult();
explicit ListGroupsResult(const std::string &payload);
~ListGroupsResult();
long getTotal()const;
std::string getErrorCode()const;
std::string getErrorMessage()const;
bool getSuccess()const;
@@ -62,6 +63,7 @@ namespace AlibabaCloud
protected:
void parse(const std::string &payload);
private:
long total_;
std::string errorCode_;
std::string errorMessage_;
bool success_;

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_LISTREPOSITORYBRANCHESREQUEST_H_
#define ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORYBRANCHESREQUEST_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 ListRepositoryBranchesRequest : public RoaServiceRequest
{
public:
ListRepositoryBranchesRequest();
~ListRepositoryBranchesRequest();
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);
long getPageSize()const;
void setPageSize(long pageSize);
std::string getAccessToken()const;
void setAccessToken(const std::string& accessToken);
long getPage()const;
void setPage(long page);
long getProjectId()const;
void setProjectId(long projectId);
private:
std::string organizationId_;
std::string search_;
std::string subUserId_;
long pageSize_;
std::string accessToken_;
long page_;
long projectId_;
};
}
}
}
#endif // !ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORYBRANCHESREQUEST_H_

View File

@@ -0,0 +1,80 @@
/*
* 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_LISTREPOSITORYBRANCHESRESULT_H_
#define ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORYBRANCHESRESULT_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 ListRepositoryBranchesResult : public ServiceResult
{
public:
struct ResultItem
{
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;
};
ListRepositoryBranchesResult();
explicit ListRepositoryBranchesResult(const std::string &payload);
~ListRepositoryBranchesResult();
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_LISTREPOSITORYBRANCHESRESULT_H_

View File

@@ -46,6 +46,7 @@ namespace AlibabaCloud
ListRepositoryMemberResult();
explicit ListRepositoryMemberResult(const std::string &payload);
~ListRepositoryMemberResult();
long getTotal()const;
std::string getErrorCode()const;
std::string getErrorMessage()const;
bool getSuccess()const;
@@ -54,6 +55,7 @@ namespace AlibabaCloud
protected:
void parse(const std::string &payload);
private:
long total_;
std::string errorCode_;
std::string errorMessage_;
bool success_;