Compare commits
14 Commits
OnsMqtt-pa
...
oos-patch
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
38db21928a | ||
|
|
4899593377 | ||
|
|
ecf3cb4bb0 | ||
|
|
7b2178ef7c | ||
|
|
de338b6bec | ||
|
|
272a1c1466 | ||
|
|
ee902a7f28 | ||
|
|
fb12252d2d | ||
|
|
6e4fea5ea2 | ||
|
|
1b54ddd725 | ||
|
|
6e5ba8761d | ||
|
|
e71ef9a243 | ||
|
|
17af8569c4 | ||
|
|
4c3be7ed7c |
42
CHANGELOG
42
CHANGELOG
@@ -1,3 +1,45 @@
|
||||
2021-02-07 Version: patch
|
||||
- Support patch manager apis.
|
||||
|
||||
2021-02-07 Version: patch
|
||||
- Support some MergeRequest API.
|
||||
|
||||
2021-02-05 Version: patch
|
||||
- Generated 2020-05-18 for `dataworks-public`.
|
||||
|
||||
2021-02-05 Version: patch
|
||||
- Update Open API.
|
||||
|
||||
2021-02-05 Version: patch
|
||||
- Generated 2020-05-18 for `dataworks-public`.
|
||||
|
||||
2021-02-04 Version: patch
|
||||
- Update DetectVehicleIllegalParking DetectVehicleICongestion.
|
||||
|
||||
2021-02-04 Version: patch
|
||||
- Supported scheduler for outbound call.
|
||||
|
||||
2021-02-04 Version: patch
|
||||
- Supported console.
|
||||
|
||||
2021-02-04 Version: patch
|
||||
- Supported console.
|
||||
|
||||
2021-02-04 Version: patch
|
||||
- Update TaggingImage.
|
||||
|
||||
2021-02-03 Version: patch
|
||||
- After normalizing the API group name, regenerate the SDK.
|
||||
|
||||
2021-02-03 Version: patch
|
||||
- Add ModifyAuditLogConfig API.
|
||||
|
||||
2021-02-02 Version: patch
|
||||
- Add.
|
||||
|
||||
2021-02-02 Version: patch
|
||||
- CreateShardingDBInstance add ReadOnlyReplicas in ReplicaSet.
|
||||
|
||||
2021-02-01 Version: patch
|
||||
- Support device credential for mqtt.
|
||||
|
||||
|
||||
@@ -21,6 +21,8 @@ set(codeup_public_header
|
||||
include/alibabacloud/codeup/CodeupExport.h )
|
||||
|
||||
set(codeup_public_header_model
|
||||
include/alibabacloud/codeup/model/AcceptMergeRequestRequest.h
|
||||
include/alibabacloud/codeup/model/AcceptMergeRequestResult.h
|
||||
include/alibabacloud/codeup/model/AddGroupMemberRequest.h
|
||||
include/alibabacloud/codeup/model/AddGroupMemberResult.h
|
||||
include/alibabacloud/codeup/model/AddRepositoryMemberRequest.h
|
||||
@@ -33,6 +35,8 @@ set(codeup_public_header_model
|
||||
include/alibabacloud/codeup/model/CreateFileResult.h
|
||||
include/alibabacloud/codeup/model/CreateMergeRequestRequest.h
|
||||
include/alibabacloud/codeup/model/CreateMergeRequestResult.h
|
||||
include/alibabacloud/codeup/model/CreateMergeRequestCommentRequest.h
|
||||
include/alibabacloud/codeup/model/CreateMergeRequestCommentResult.h
|
||||
include/alibabacloud/codeup/model/CreateRepositoryRequest.h
|
||||
include/alibabacloud/codeup/model/CreateRepositoryResult.h
|
||||
include/alibabacloud/codeup/model/CreateRepositoryDeployKeyRequest.h
|
||||
@@ -71,6 +75,12 @@ set(codeup_public_header_model
|
||||
include/alibabacloud/codeup/model/GetFileBlobsResult.h
|
||||
include/alibabacloud/codeup/model/GetGroupDetailRequest.h
|
||||
include/alibabacloud/codeup/model/GetGroupDetailResult.h
|
||||
include/alibabacloud/codeup/model/GetMergeRequestApproveStatusRequest.h
|
||||
include/alibabacloud/codeup/model/GetMergeRequestApproveStatusResult.h
|
||||
include/alibabacloud/codeup/model/GetMergeRequestDetailRequest.h
|
||||
include/alibabacloud/codeup/model/GetMergeRequestDetailResult.h
|
||||
include/alibabacloud/codeup/model/GetMergeRequestSettingRequest.h
|
||||
include/alibabacloud/codeup/model/GetMergeRequestSettingResult.h
|
||||
include/alibabacloud/codeup/model/GetProjectMemberRequest.h
|
||||
include/alibabacloud/codeup/model/GetProjectMemberResult.h
|
||||
include/alibabacloud/codeup/model/GetRepositoryInfoRequest.h
|
||||
@@ -85,6 +95,8 @@ set(codeup_public_header_model
|
||||
include/alibabacloud/codeup/model/ListGroupRepositoriesResult.h
|
||||
include/alibabacloud/codeup/model/ListGroupsRequest.h
|
||||
include/alibabacloud/codeup/model/ListGroupsResult.h
|
||||
include/alibabacloud/codeup/model/ListMergeRequestCommentsRequest.h
|
||||
include/alibabacloud/codeup/model/ListMergeRequestCommentsResult.h
|
||||
include/alibabacloud/codeup/model/ListMergeRequestsRequest.h
|
||||
include/alibabacloud/codeup/model/ListMergeRequestsResult.h
|
||||
include/alibabacloud/codeup/model/ListOrganizationsRequest.h
|
||||
@@ -93,6 +105,8 @@ set(codeup_public_header_model
|
||||
include/alibabacloud/codeup/model/ListRepositoriesResult.h
|
||||
include/alibabacloud/codeup/model/ListRepositoryBranchesRequest.h
|
||||
include/alibabacloud/codeup/model/ListRepositoryBranchesResult.h
|
||||
include/alibabacloud/codeup/model/ListRepositoryCommitsRequest.h
|
||||
include/alibabacloud/codeup/model/ListRepositoryCommitsResult.h
|
||||
include/alibabacloud/codeup/model/ListRepositoryMemberRequest.h
|
||||
include/alibabacloud/codeup/model/ListRepositoryMemberResult.h
|
||||
include/alibabacloud/codeup/model/ListRepositoryTagsRequest.h
|
||||
@@ -107,6 +121,12 @@ set(codeup_public_header_model
|
||||
include/alibabacloud/codeup/model/UpdateFileResult.h
|
||||
include/alibabacloud/codeup/model/UpdateGroupMemberRequest.h
|
||||
include/alibabacloud/codeup/model/UpdateGroupMemberResult.h
|
||||
include/alibabacloud/codeup/model/UpdateMergeRequestRequest.h
|
||||
include/alibabacloud/codeup/model/UpdateMergeRequestResult.h
|
||||
include/alibabacloud/codeup/model/UpdateMergeRequestCommentRequest.h
|
||||
include/alibabacloud/codeup/model/UpdateMergeRequestCommentResult.h
|
||||
include/alibabacloud/codeup/model/UpdateMergeRequestSettingRequest.h
|
||||
include/alibabacloud/codeup/model/UpdateMergeRequestSettingResult.h
|
||||
include/alibabacloud/codeup/model/UpdateRepositoryRequest.h
|
||||
include/alibabacloud/codeup/model/UpdateRepositoryResult.h
|
||||
include/alibabacloud/codeup/model/UpdateRepositoryMemberRequest.h
|
||||
@@ -114,6 +134,8 @@ set(codeup_public_header_model
|
||||
|
||||
set(codeup_src
|
||||
src/CodeupClient.cc
|
||||
src/model/AcceptMergeRequestRequest.cc
|
||||
src/model/AcceptMergeRequestResult.cc
|
||||
src/model/AddGroupMemberRequest.cc
|
||||
src/model/AddGroupMemberResult.cc
|
||||
src/model/AddRepositoryMemberRequest.cc
|
||||
@@ -126,6 +148,8 @@ set(codeup_src
|
||||
src/model/CreateFileResult.cc
|
||||
src/model/CreateMergeRequestRequest.cc
|
||||
src/model/CreateMergeRequestResult.cc
|
||||
src/model/CreateMergeRequestCommentRequest.cc
|
||||
src/model/CreateMergeRequestCommentResult.cc
|
||||
src/model/CreateRepositoryRequest.cc
|
||||
src/model/CreateRepositoryResult.cc
|
||||
src/model/CreateRepositoryDeployKeyRequest.cc
|
||||
@@ -164,6 +188,12 @@ set(codeup_src
|
||||
src/model/GetFileBlobsResult.cc
|
||||
src/model/GetGroupDetailRequest.cc
|
||||
src/model/GetGroupDetailResult.cc
|
||||
src/model/GetMergeRequestApproveStatusRequest.cc
|
||||
src/model/GetMergeRequestApproveStatusResult.cc
|
||||
src/model/GetMergeRequestDetailRequest.cc
|
||||
src/model/GetMergeRequestDetailResult.cc
|
||||
src/model/GetMergeRequestSettingRequest.cc
|
||||
src/model/GetMergeRequestSettingResult.cc
|
||||
src/model/GetProjectMemberRequest.cc
|
||||
src/model/GetProjectMemberResult.cc
|
||||
src/model/GetRepositoryInfoRequest.cc
|
||||
@@ -178,6 +208,8 @@ set(codeup_src
|
||||
src/model/ListGroupRepositoriesResult.cc
|
||||
src/model/ListGroupsRequest.cc
|
||||
src/model/ListGroupsResult.cc
|
||||
src/model/ListMergeRequestCommentsRequest.cc
|
||||
src/model/ListMergeRequestCommentsResult.cc
|
||||
src/model/ListMergeRequestsRequest.cc
|
||||
src/model/ListMergeRequestsResult.cc
|
||||
src/model/ListOrganizationsRequest.cc
|
||||
@@ -186,6 +218,8 @@ set(codeup_src
|
||||
src/model/ListRepositoriesResult.cc
|
||||
src/model/ListRepositoryBranchesRequest.cc
|
||||
src/model/ListRepositoryBranchesResult.cc
|
||||
src/model/ListRepositoryCommitsRequest.cc
|
||||
src/model/ListRepositoryCommitsResult.cc
|
||||
src/model/ListRepositoryMemberRequest.cc
|
||||
src/model/ListRepositoryMemberResult.cc
|
||||
src/model/ListRepositoryTagsRequest.cc
|
||||
@@ -200,6 +234,12 @@ set(codeup_src
|
||||
src/model/UpdateFileResult.cc
|
||||
src/model/UpdateGroupMemberRequest.cc
|
||||
src/model/UpdateGroupMemberResult.cc
|
||||
src/model/UpdateMergeRequestRequest.cc
|
||||
src/model/UpdateMergeRequestResult.cc
|
||||
src/model/UpdateMergeRequestCommentRequest.cc
|
||||
src/model/UpdateMergeRequestCommentResult.cc
|
||||
src/model/UpdateMergeRequestSettingRequest.cc
|
||||
src/model/UpdateMergeRequestSettingResult.cc
|
||||
src/model/UpdateRepositoryRequest.cc
|
||||
src/model/UpdateRepositoryResult.cc
|
||||
src/model/UpdateRepositoryMemberRequest.cc
|
||||
|
||||
@@ -22,6 +22,8 @@
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RoaServiceClient.h>
|
||||
#include "CodeupExport.h"
|
||||
#include "model/AcceptMergeRequestRequest.h"
|
||||
#include "model/AcceptMergeRequestResult.h"
|
||||
#include "model/AddGroupMemberRequest.h"
|
||||
#include "model/AddGroupMemberResult.h"
|
||||
#include "model/AddRepositoryMemberRequest.h"
|
||||
@@ -34,6 +36,8 @@
|
||||
#include "model/CreateFileResult.h"
|
||||
#include "model/CreateMergeRequestRequest.h"
|
||||
#include "model/CreateMergeRequestResult.h"
|
||||
#include "model/CreateMergeRequestCommentRequest.h"
|
||||
#include "model/CreateMergeRequestCommentResult.h"
|
||||
#include "model/CreateRepositoryRequest.h"
|
||||
#include "model/CreateRepositoryResult.h"
|
||||
#include "model/CreateRepositoryDeployKeyRequest.h"
|
||||
@@ -72,6 +76,12 @@
|
||||
#include "model/GetFileBlobsResult.h"
|
||||
#include "model/GetGroupDetailRequest.h"
|
||||
#include "model/GetGroupDetailResult.h"
|
||||
#include "model/GetMergeRequestApproveStatusRequest.h"
|
||||
#include "model/GetMergeRequestApproveStatusResult.h"
|
||||
#include "model/GetMergeRequestDetailRequest.h"
|
||||
#include "model/GetMergeRequestDetailResult.h"
|
||||
#include "model/GetMergeRequestSettingRequest.h"
|
||||
#include "model/GetMergeRequestSettingResult.h"
|
||||
#include "model/GetProjectMemberRequest.h"
|
||||
#include "model/GetProjectMemberResult.h"
|
||||
#include "model/GetRepositoryInfoRequest.h"
|
||||
@@ -86,6 +96,8 @@
|
||||
#include "model/ListGroupRepositoriesResult.h"
|
||||
#include "model/ListGroupsRequest.h"
|
||||
#include "model/ListGroupsResult.h"
|
||||
#include "model/ListMergeRequestCommentsRequest.h"
|
||||
#include "model/ListMergeRequestCommentsResult.h"
|
||||
#include "model/ListMergeRequestsRequest.h"
|
||||
#include "model/ListMergeRequestsResult.h"
|
||||
#include "model/ListOrganizationsRequest.h"
|
||||
@@ -94,6 +106,8 @@
|
||||
#include "model/ListRepositoriesResult.h"
|
||||
#include "model/ListRepositoryBranchesRequest.h"
|
||||
#include "model/ListRepositoryBranchesResult.h"
|
||||
#include "model/ListRepositoryCommitsRequest.h"
|
||||
#include "model/ListRepositoryCommitsResult.h"
|
||||
#include "model/ListRepositoryMemberRequest.h"
|
||||
#include "model/ListRepositoryMemberResult.h"
|
||||
#include "model/ListRepositoryTagsRequest.h"
|
||||
@@ -108,6 +122,12 @@
|
||||
#include "model/UpdateFileResult.h"
|
||||
#include "model/UpdateGroupMemberRequest.h"
|
||||
#include "model/UpdateGroupMemberResult.h"
|
||||
#include "model/UpdateMergeRequestRequest.h"
|
||||
#include "model/UpdateMergeRequestResult.h"
|
||||
#include "model/UpdateMergeRequestCommentRequest.h"
|
||||
#include "model/UpdateMergeRequestCommentResult.h"
|
||||
#include "model/UpdateMergeRequestSettingRequest.h"
|
||||
#include "model/UpdateMergeRequestSettingResult.h"
|
||||
#include "model/UpdateRepositoryRequest.h"
|
||||
#include "model/UpdateRepositoryResult.h"
|
||||
#include "model/UpdateRepositoryMemberRequest.h"
|
||||
@@ -121,6 +141,9 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CODEUP_EXPORT CodeupClient : public RoaServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::AcceptMergeRequestResult> AcceptMergeRequestOutcome;
|
||||
typedef std::future<AcceptMergeRequestOutcome> AcceptMergeRequestOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::AcceptMergeRequestRequest&, const AcceptMergeRequestOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AcceptMergeRequestAsyncHandler;
|
||||
typedef Outcome<Error, Model::AddGroupMemberResult> AddGroupMemberOutcome;
|
||||
typedef std::future<AddGroupMemberOutcome> AddGroupMemberOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::AddGroupMemberRequest&, const AddGroupMemberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddGroupMemberAsyncHandler;
|
||||
@@ -139,6 +162,9 @@ namespace AlibabaCloud
|
||||
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::CreateMergeRequestCommentResult> CreateMergeRequestCommentOutcome;
|
||||
typedef std::future<CreateMergeRequestCommentOutcome> CreateMergeRequestCommentOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::CreateMergeRequestCommentRequest&, const CreateMergeRequestCommentOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateMergeRequestCommentAsyncHandler;
|
||||
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;
|
||||
@@ -196,6 +222,15 @@ namespace AlibabaCloud
|
||||
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::GetMergeRequestApproveStatusResult> GetMergeRequestApproveStatusOutcome;
|
||||
typedef std::future<GetMergeRequestApproveStatusOutcome> GetMergeRequestApproveStatusOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::GetMergeRequestApproveStatusRequest&, const GetMergeRequestApproveStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMergeRequestApproveStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetMergeRequestDetailResult> GetMergeRequestDetailOutcome;
|
||||
typedef std::future<GetMergeRequestDetailOutcome> GetMergeRequestDetailOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::GetMergeRequestDetailRequest&, const GetMergeRequestDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMergeRequestDetailAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetMergeRequestSettingResult> GetMergeRequestSettingOutcome;
|
||||
typedef std::future<GetMergeRequestSettingOutcome> GetMergeRequestSettingOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::GetMergeRequestSettingRequest&, const GetMergeRequestSettingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMergeRequestSettingAsyncHandler;
|
||||
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;
|
||||
@@ -217,6 +252,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::ListMergeRequestCommentsResult> ListMergeRequestCommentsOutcome;
|
||||
typedef std::future<ListMergeRequestCommentsOutcome> ListMergeRequestCommentsOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::ListMergeRequestCommentsRequest&, const ListMergeRequestCommentsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListMergeRequestCommentsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListMergeRequestsResult> ListMergeRequestsOutcome;
|
||||
typedef std::future<ListMergeRequestsOutcome> ListMergeRequestsOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::ListMergeRequestsRequest&, const ListMergeRequestsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListMergeRequestsAsyncHandler;
|
||||
@@ -229,6 +267,9 @@ namespace AlibabaCloud
|
||||
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::ListRepositoryCommitsResult> ListRepositoryCommitsOutcome;
|
||||
typedef std::future<ListRepositoryCommitsOutcome> ListRepositoryCommitsOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::ListRepositoryCommitsRequest&, const ListRepositoryCommitsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRepositoryCommitsAsyncHandler;
|
||||
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;
|
||||
@@ -250,6 +291,15 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::UpdateGroupMemberResult> UpdateGroupMemberOutcome;
|
||||
typedef std::future<UpdateGroupMemberOutcome> UpdateGroupMemberOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::UpdateGroupMemberRequest&, const UpdateGroupMemberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateGroupMemberAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateMergeRequestResult> UpdateMergeRequestOutcome;
|
||||
typedef std::future<UpdateMergeRequestOutcome> UpdateMergeRequestOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::UpdateMergeRequestRequest&, const UpdateMergeRequestOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateMergeRequestAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateMergeRequestCommentResult> UpdateMergeRequestCommentOutcome;
|
||||
typedef std::future<UpdateMergeRequestCommentOutcome> UpdateMergeRequestCommentOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::UpdateMergeRequestCommentRequest&, const UpdateMergeRequestCommentOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateMergeRequestCommentAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateMergeRequestSettingResult> UpdateMergeRequestSettingOutcome;
|
||||
typedef std::future<UpdateMergeRequestSettingOutcome> UpdateMergeRequestSettingOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::UpdateMergeRequestSettingRequest&, const UpdateMergeRequestSettingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateMergeRequestSettingAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateRepositoryResult> UpdateRepositoryOutcome;
|
||||
typedef std::future<UpdateRepositoryOutcome> UpdateRepositoryOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::UpdateRepositoryRequest&, const UpdateRepositoryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateRepositoryAsyncHandler;
|
||||
@@ -261,6 +311,9 @@ namespace AlibabaCloud
|
||||
CodeupClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
CodeupClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~CodeupClient();
|
||||
AcceptMergeRequestOutcome acceptMergeRequest(const Model::AcceptMergeRequestRequest &request)const;
|
||||
void acceptMergeRequestAsync(const Model::AcceptMergeRequestRequest& request, const AcceptMergeRequestAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AcceptMergeRequestOutcomeCallable acceptMergeRequestCallable(const Model::AcceptMergeRequestRequest& request) const;
|
||||
AddGroupMemberOutcome addGroupMember(const Model::AddGroupMemberRequest &request)const;
|
||||
void addGroupMemberAsync(const Model::AddGroupMemberRequest& request, const AddGroupMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AddGroupMemberOutcomeCallable addGroupMemberCallable(const Model::AddGroupMemberRequest& request) const;
|
||||
@@ -279,6 +332,9 @@ namespace AlibabaCloud
|
||||
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;
|
||||
CreateMergeRequestCommentOutcome createMergeRequestComment(const Model::CreateMergeRequestCommentRequest &request)const;
|
||||
void createMergeRequestCommentAsync(const Model::CreateMergeRequestCommentRequest& request, const CreateMergeRequestCommentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateMergeRequestCommentOutcomeCallable createMergeRequestCommentCallable(const Model::CreateMergeRequestCommentRequest& 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;
|
||||
@@ -336,6 +392,15 @@ namespace AlibabaCloud
|
||||
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;
|
||||
GetMergeRequestApproveStatusOutcome getMergeRequestApproveStatus(const Model::GetMergeRequestApproveStatusRequest &request)const;
|
||||
void getMergeRequestApproveStatusAsync(const Model::GetMergeRequestApproveStatusRequest& request, const GetMergeRequestApproveStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetMergeRequestApproveStatusOutcomeCallable getMergeRequestApproveStatusCallable(const Model::GetMergeRequestApproveStatusRequest& request) const;
|
||||
GetMergeRequestDetailOutcome getMergeRequestDetail(const Model::GetMergeRequestDetailRequest &request)const;
|
||||
void getMergeRequestDetailAsync(const Model::GetMergeRequestDetailRequest& request, const GetMergeRequestDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetMergeRequestDetailOutcomeCallable getMergeRequestDetailCallable(const Model::GetMergeRequestDetailRequest& request) const;
|
||||
GetMergeRequestSettingOutcome getMergeRequestSetting(const Model::GetMergeRequestSettingRequest &request)const;
|
||||
void getMergeRequestSettingAsync(const Model::GetMergeRequestSettingRequest& request, const GetMergeRequestSettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetMergeRequestSettingOutcomeCallable getMergeRequestSettingCallable(const Model::GetMergeRequestSettingRequest& 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;
|
||||
@@ -357,6 +422,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;
|
||||
ListMergeRequestCommentsOutcome listMergeRequestComments(const Model::ListMergeRequestCommentsRequest &request)const;
|
||||
void listMergeRequestCommentsAsync(const Model::ListMergeRequestCommentsRequest& request, const ListMergeRequestCommentsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListMergeRequestCommentsOutcomeCallable listMergeRequestCommentsCallable(const Model::ListMergeRequestCommentsRequest& request) const;
|
||||
ListMergeRequestsOutcome listMergeRequests(const Model::ListMergeRequestsRequest &request)const;
|
||||
void listMergeRequestsAsync(const Model::ListMergeRequestsRequest& request, const ListMergeRequestsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListMergeRequestsOutcomeCallable listMergeRequestsCallable(const Model::ListMergeRequestsRequest& request) const;
|
||||
@@ -369,6 +437,9 @@ namespace AlibabaCloud
|
||||
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;
|
||||
ListRepositoryCommitsOutcome listRepositoryCommits(const Model::ListRepositoryCommitsRequest &request)const;
|
||||
void listRepositoryCommitsAsync(const Model::ListRepositoryCommitsRequest& request, const ListRepositoryCommitsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListRepositoryCommitsOutcomeCallable listRepositoryCommitsCallable(const Model::ListRepositoryCommitsRequest& 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;
|
||||
@@ -390,6 +461,15 @@ namespace AlibabaCloud
|
||||
UpdateGroupMemberOutcome updateGroupMember(const Model::UpdateGroupMemberRequest &request)const;
|
||||
void updateGroupMemberAsync(const Model::UpdateGroupMemberRequest& request, const UpdateGroupMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateGroupMemberOutcomeCallable updateGroupMemberCallable(const Model::UpdateGroupMemberRequest& request) const;
|
||||
UpdateMergeRequestOutcome updateMergeRequest(const Model::UpdateMergeRequestRequest &request)const;
|
||||
void updateMergeRequestAsync(const Model::UpdateMergeRequestRequest& request, const UpdateMergeRequestAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateMergeRequestOutcomeCallable updateMergeRequestCallable(const Model::UpdateMergeRequestRequest& request) const;
|
||||
UpdateMergeRequestCommentOutcome updateMergeRequestComment(const Model::UpdateMergeRequestCommentRequest &request)const;
|
||||
void updateMergeRequestCommentAsync(const Model::UpdateMergeRequestCommentRequest& request, const UpdateMergeRequestCommentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateMergeRequestCommentOutcomeCallable updateMergeRequestCommentCallable(const Model::UpdateMergeRequestCommentRequest& request) const;
|
||||
UpdateMergeRequestSettingOutcome updateMergeRequestSetting(const Model::UpdateMergeRequestSettingRequest &request)const;
|
||||
void updateMergeRequestSettingAsync(const Model::UpdateMergeRequestSettingRequest& request, const UpdateMergeRequestSettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateMergeRequestSettingOutcomeCallable updateMergeRequestSettingCallable(const Model::UpdateMergeRequestSettingRequest& request) const;
|
||||
UpdateRepositoryOutcome updateRepository(const Model::UpdateRepositoryRequest &request)const;
|
||||
void updateRepositoryAsync(const Model::UpdateRepositoryRequest& request, const UpdateRepositoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateRepositoryOutcomeCallable updateRepositoryCallable(const Model::UpdateRepositoryRequest& request) const;
|
||||
|
||||
@@ -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_ACCEPTMERGEREQUESTREQUEST_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_ACCEPTMERGEREQUESTREQUEST_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 AcceptMergeRequestRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
AcceptMergeRequestRequest();
|
||||
~AcceptMergeRequestRequest();
|
||||
|
||||
std::string getOrganizationId()const;
|
||||
void setOrganizationId(const std::string& organizationId);
|
||||
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_;
|
||||
long mergeRequestId_;
|
||||
std::string accessToken_;
|
||||
long projectId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_ACCEPTMERGEREQUESTREQUEST_H_
|
||||
@@ -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_ACCEPTMERGEREQUESTRESULT_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_ACCEPTMERGEREQUESTRESULT_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 AcceptMergeRequestResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
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 Author
|
||||
{
|
||||
std::string avatarUrl;
|
||||
std::string externUserId;
|
||||
long id;
|
||||
std::string name;
|
||||
};
|
||||
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 mergeError;
|
||||
std::string nameWithNamespace;
|
||||
std::string title;
|
||||
std::string webUrl;
|
||||
std::string mergedRevision;
|
||||
std::string updatedAt;
|
||||
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;
|
||||
};
|
||||
|
||||
|
||||
AcceptMergeRequestResult();
|
||||
explicit AcceptMergeRequestResult(const std::string &payload);
|
||||
~AcceptMergeRequestResult();
|
||||
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_ACCEPTMERGEREQUESTRESULT_H_
|
||||
@@ -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_CREATEMERGEREQUESTCOMMENTREQUEST_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_CREATEMERGEREQUESTCOMMENTREQUEST_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 CreateMergeRequestCommentRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateMergeRequestCommentRequest();
|
||||
~CreateMergeRequestCommentRequest();
|
||||
|
||||
std::string getOrganizationId()const;
|
||||
void setOrganizationId(const std::string& organizationId);
|
||||
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_;
|
||||
long mergeRequestId_;
|
||||
std::string accessToken_;
|
||||
long projectId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_CREATEMERGEREQUESTCOMMENTREQUEST_H_
|
||||
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* 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_CREATEMERGEREQUESTCOMMENTRESULT_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_CREATEMERGEREQUESTCOMMENTRESULT_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 CreateMergeRequestCommentResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
struct Author
|
||||
{
|
||||
std::string avatarUrl;
|
||||
std::string email;
|
||||
std::string externUserId;
|
||||
long id;
|
||||
std::string name;
|
||||
};
|
||||
bool isDraft;
|
||||
std::string path;
|
||||
std::string createdAt;
|
||||
long projectId;
|
||||
std::string updatedAt;
|
||||
long line;
|
||||
std::string side;
|
||||
int closed;
|
||||
std::string note;
|
||||
long parentNoteId;
|
||||
Author author;
|
||||
long id;
|
||||
bool outDated;
|
||||
std::string rangeContext;
|
||||
};
|
||||
|
||||
|
||||
CreateMergeRequestCommentResult();
|
||||
explicit CreateMergeRequestCommentResult(const std::string &payload);
|
||||
~CreateMergeRequestCommentResult();
|
||||
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_CREATEMERGEREQUESTCOMMENTRESULT_H_
|
||||
@@ -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_GETMERGEREQUESTAPPROVESTATUSREQUEST_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_GETMERGEREQUESTAPPROVESTATUSREQUEST_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 GetMergeRequestApproveStatusRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetMergeRequestApproveStatusRequest();
|
||||
~GetMergeRequestApproveStatusRequest();
|
||||
|
||||
std::string getOrganizationId()const;
|
||||
void setOrganizationId(const std::string& organizationId);
|
||||
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_;
|
||||
long mergeRequestId_;
|
||||
std::string accessToken_;
|
||||
long projectId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_GETMERGEREQUESTAPPROVESTATUSREQUEST_H_
|
||||
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* 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_GETMERGEREQUESTAPPROVESTATUSRESULT_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_GETMERGEREQUESTAPPROVESTATUSRESULT_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 GetMergeRequestApproveStatusResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
std::string approveStatus;
|
||||
std::string message;
|
||||
};
|
||||
|
||||
|
||||
GetMergeRequestApproveStatusResult();
|
||||
explicit GetMergeRequestApproveStatusResult(const std::string &payload);
|
||||
~GetMergeRequestApproveStatusResult();
|
||||
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_GETMERGEREQUESTAPPROVESTATUSRESULT_H_
|
||||
@@ -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_GETMERGEREQUESTDETAILREQUEST_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_GETMERGEREQUESTDETAILREQUEST_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 GetMergeRequestDetailRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetMergeRequestDetailRequest();
|
||||
~GetMergeRequestDetailRequest();
|
||||
|
||||
std::string getOrganizationId()const;
|
||||
void setOrganizationId(const std::string& organizationId);
|
||||
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_;
|
||||
long mergeRequestId_;
|
||||
std::string accessToken_;
|
||||
long projectId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_GETMERGEREQUESTDETAILREQUEST_H_
|
||||
@@ -0,0 +1,136 @@
|
||||
/*
|
||||
* 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_GETMERGEREQUESTDETAILRESULT_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_GETMERGEREQUESTDETAILRESULT_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 GetMergeRequestDetailResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
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 Author
|
||||
{
|
||||
std::string avatarUrl;
|
||||
std::string externUserId;
|
||||
long id;
|
||||
std::string name;
|
||||
};
|
||||
struct AssigneeListItem
|
||||
{
|
||||
std::string status;
|
||||
std::string avatarUrl;
|
||||
std::string email;
|
||||
std::string externUserId;
|
||||
std::string id;
|
||||
std::string name;
|
||||
};
|
||||
ApproveCheckResult approveCheckResult;
|
||||
int behindCommitCount;
|
||||
bool isSupportMerge;
|
||||
std::string description;
|
||||
int aheadCommitCount;
|
||||
std::string createdAt;
|
||||
long projectId;
|
||||
std::string mergeError;
|
||||
std::string nameWithNamespace;
|
||||
std::string title;
|
||||
std::string webUrl;
|
||||
std::string mergedRevision;
|
||||
std::string updatedAt;
|
||||
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;
|
||||
};
|
||||
|
||||
|
||||
GetMergeRequestDetailResult();
|
||||
explicit GetMergeRequestDetailResult(const std::string &payload);
|
||||
~GetMergeRequestDetailResult();
|
||||
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_GETMERGEREQUESTDETAILRESULT_H_
|
||||
@@ -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_GETMERGEREQUESTSETTINGREQUEST_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_GETMERGEREQUESTSETTINGREQUEST_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 GetMergeRequestSettingRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetMergeRequestSettingRequest();
|
||||
~GetMergeRequestSettingRequest();
|
||||
|
||||
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_GETMERGEREQUESTSETTINGREQUEST_H_
|
||||
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* 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_GETMERGEREQUESTSETTINGRESULT_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_GETMERGEREQUESTSETTINGRESULT_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 GetMergeRequestSettingResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
bool isEnableSmartCodeReview;
|
||||
std::vector<std::string> mergeTypes;
|
||||
};
|
||||
|
||||
|
||||
GetMergeRequestSettingResult();
|
||||
explicit GetMergeRequestSettingResult(const std::string &payload);
|
||||
~GetMergeRequestSettingResult();
|
||||
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_GETMERGEREQUESTSETTINGRESULT_H_
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* 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_LISTMERGEREQUESTCOMMENTSREQUEST_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_LISTMERGEREQUESTCOMMENTSREQUEST_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 ListMergeRequestCommentsRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListMergeRequestCommentsRequest();
|
||||
~ListMergeRequestCommentsRequest();
|
||||
|
||||
std::string getOrganizationId()const;
|
||||
void setOrganizationId(const std::string& organizationId);
|
||||
long getMergeRequestId()const;
|
||||
void setMergeRequestId(long mergeRequestId);
|
||||
std::string getFromCommit()const;
|
||||
void setFromCommit(const std::string& fromCommit);
|
||||
std::string getAccessToken()const;
|
||||
void setAccessToken(const std::string& accessToken);
|
||||
std::string getToCommit()const;
|
||||
void setToCommit(const std::string& toCommit);
|
||||
long getProjectId()const;
|
||||
void setProjectId(long projectId);
|
||||
|
||||
private:
|
||||
std::string organizationId_;
|
||||
long mergeRequestId_;
|
||||
std::string fromCommit_;
|
||||
std::string accessToken_;
|
||||
std::string toCommit_;
|
||||
long projectId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_LISTMERGEREQUESTCOMMENTSREQUEST_H_
|
||||
@@ -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_LISTMERGEREQUESTCOMMENTSRESULT_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_LISTMERGEREQUESTCOMMENTSRESULT_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 ListMergeRequestCommentsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ResultItem
|
||||
{
|
||||
struct Author
|
||||
{
|
||||
std::string avatarUrl;
|
||||
std::string email;
|
||||
std::string externUserId;
|
||||
long id;
|
||||
std::string name;
|
||||
};
|
||||
bool isDraft;
|
||||
std::string path;
|
||||
std::string createdAt;
|
||||
long projectId;
|
||||
std::string updatedAt;
|
||||
long line;
|
||||
std::string side;
|
||||
int closed;
|
||||
std::string note;
|
||||
long parentNoteId;
|
||||
Author author;
|
||||
long id;
|
||||
bool outDated;
|
||||
std::string rangeContext;
|
||||
};
|
||||
|
||||
|
||||
ListMergeRequestCommentsResult();
|
||||
explicit ListMergeRequestCommentsResult(const std::string &payload);
|
||||
~ListMergeRequestCommentsResult();
|
||||
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_LISTMERGEREQUESTCOMMENTSRESULT_H_
|
||||
@@ -81,13 +81,16 @@ namespace AlibabaCloud
|
||||
};
|
||||
struct AssigneeListItem
|
||||
{
|
||||
std::string status;
|
||||
std::string avatarUrl;
|
||||
std::string email;
|
||||
std::string externUserId;
|
||||
std::string id;
|
||||
std::string name;
|
||||
};
|
||||
ApproveCheckResult approveCheckResult;
|
||||
int behindCommitCount;
|
||||
bool isSupportMerge;
|
||||
std::string description;
|
||||
int aheadCommitCount;
|
||||
std::string createdAt;
|
||||
|
||||
@@ -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_LISTREPOSITORYCOMMITSREQUEST_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORYCOMMITSREQUEST_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 ListRepositoryCommitsRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListRepositoryCommitsRequest();
|
||||
~ListRepositoryCommitsRequest();
|
||||
|
||||
std::string getAccessToken()const;
|
||||
void setAccessToken(const std::string& accessToken);
|
||||
bool getShowSignature()const;
|
||||
void setShowSignature(bool showSignature);
|
||||
std::string getRefName()const;
|
||||
void setRefName(const std::string& refName);
|
||||
std::string getOrganizationId()const;
|
||||
void setOrganizationId(const std::string& organizationId);
|
||||
std::string getPath()const;
|
||||
void setPath(const std::string& path);
|
||||
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 refName_;
|
||||
std::string organizationId_;
|
||||
std::string path_;
|
||||
std::string search_;
|
||||
long pageSize_;
|
||||
long page_;
|
||||
long projectId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORYCOMMITSREQUEST_H_
|
||||
@@ -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_LISTREPOSITORYCOMMITSRESULT_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORYCOMMITSRESULT_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 ListRepositoryCommitsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ResultItem
|
||||
{
|
||||
struct Signature
|
||||
{
|
||||
std::string verificationStatus;
|
||||
std::string gpgKeyId;
|
||||
};
|
||||
std::string authorName;
|
||||
std::string message;
|
||||
std::string createdAt;
|
||||
std::string title;
|
||||
std::string authorEmail;
|
||||
std::string authorDate;
|
||||
std::string committedDate;
|
||||
std::string committerEmail;
|
||||
std::vector<std::string> parentIds;
|
||||
Signature signature;
|
||||
std::string shortId;
|
||||
std::string id;
|
||||
std::string committerName;
|
||||
};
|
||||
|
||||
|
||||
ListRepositoryCommitsResult();
|
||||
explicit ListRepositoryCommitsResult(const std::string &payload);
|
||||
~ListRepositoryCommitsResult();
|
||||
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_LISTREPOSITORYCOMMITSRESULT_H_
|
||||
@@ -36,10 +36,12 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string avatarUrl;
|
||||
std::string email;
|
||||
std::string username;
|
||||
std::string state;
|
||||
std::string externUserId;
|
||||
long id;
|
||||
int accessLevel;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -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_UPDATEMERGEREQUESTCOMMENTREQUEST_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_UPDATEMERGEREQUESTCOMMENTREQUEST_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 UpdateMergeRequestCommentRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UpdateMergeRequestCommentRequest();
|
||||
~UpdateMergeRequestCommentRequest();
|
||||
|
||||
std::string getOrganizationId()const;
|
||||
void setOrganizationId(const std::string& organizationId);
|
||||
long getMergeRequestId()const;
|
||||
void setMergeRequestId(long mergeRequestId);
|
||||
std::string getAccessToken()const;
|
||||
void setAccessToken(const std::string& accessToken);
|
||||
long getNoteId()const;
|
||||
void setNoteId(long noteId);
|
||||
long getProjectId()const;
|
||||
void setProjectId(long projectId);
|
||||
|
||||
private:
|
||||
std::string organizationId_;
|
||||
long mergeRequestId_;
|
||||
std::string accessToken_;
|
||||
long noteId_;
|
||||
long projectId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_UPDATEMERGEREQUESTCOMMENTREQUEST_H_
|
||||
@@ -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_UPDATEMERGEREQUESTCOMMENTRESULT_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_UPDATEMERGEREQUESTCOMMENTRESULT_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 UpdateMergeRequestCommentResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
bool result;
|
||||
};
|
||||
|
||||
|
||||
UpdateMergeRequestCommentResult();
|
||||
explicit UpdateMergeRequestCommentResult(const std::string &payload);
|
||||
~UpdateMergeRequestCommentResult();
|
||||
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_UPDATEMERGEREQUESTCOMMENTRESULT_H_
|
||||
@@ -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_UPDATEMERGEREQUESTREQUEST_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_UPDATEMERGEREQUESTREQUEST_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 UpdateMergeRequestRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UpdateMergeRequestRequest();
|
||||
~UpdateMergeRequestRequest();
|
||||
|
||||
std::string getOrganizationId()const;
|
||||
void setOrganizationId(const std::string& organizationId);
|
||||
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_;
|
||||
long mergeRequestId_;
|
||||
std::string accessToken_;
|
||||
long projectId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_UPDATEMERGEREQUESTREQUEST_H_
|
||||
@@ -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_UPDATEMERGEREQUESTRESULT_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_UPDATEMERGEREQUESTRESULT_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 UpdateMergeRequestResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
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 Author
|
||||
{
|
||||
std::string avatarUrl;
|
||||
std::string externUserId;
|
||||
long id;
|
||||
std::string name;
|
||||
};
|
||||
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 mergeError;
|
||||
std::string nameWithNamespace;
|
||||
std::string title;
|
||||
std::string webUrl;
|
||||
std::string mergedRevision;
|
||||
std::string updatedAt;
|
||||
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;
|
||||
};
|
||||
|
||||
|
||||
UpdateMergeRequestResult();
|
||||
explicit UpdateMergeRequestResult(const std::string &payload);
|
||||
~UpdateMergeRequestResult();
|
||||
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_UPDATEMERGEREQUESTRESULT_H_
|
||||
@@ -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_UPDATEMERGEREQUESTSETTINGREQUEST_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_UPDATEMERGEREQUESTSETTINGREQUEST_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 UpdateMergeRequestSettingRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UpdateMergeRequestSettingRequest();
|
||||
~UpdateMergeRequestSettingRequest();
|
||||
|
||||
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_UPDATEMERGEREQUESTSETTINGREQUEST_H_
|
||||
@@ -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_UPDATEMERGEREQUESTSETTINGRESULT_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_UPDATEMERGEREQUESTSETTINGRESULT_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 UpdateMergeRequestSettingResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
bool result;
|
||||
};
|
||||
|
||||
|
||||
UpdateMergeRequestSettingResult();
|
||||
explicit UpdateMergeRequestSettingResult(const std::string &payload);
|
||||
~UpdateMergeRequestSettingResult();
|
||||
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_UPDATEMERGEREQUESTSETTINGRESULT_H_
|
||||
@@ -51,6 +51,42 @@ CodeupClient::CodeupClient(const std::string & accessKeyId, const std::string &
|
||||
CodeupClient::~CodeupClient()
|
||||
{}
|
||||
|
||||
CodeupClient::AcceptMergeRequestOutcome CodeupClient::acceptMergeRequest(const AcceptMergeRequestRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AcceptMergeRequestOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return AcceptMergeRequestOutcome(AcceptMergeRequestResult(outcome.result()));
|
||||
else
|
||||
return AcceptMergeRequestOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CodeupClient::acceptMergeRequestAsync(const AcceptMergeRequestRequest& request, const AcceptMergeRequestAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, acceptMergeRequest(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CodeupClient::AcceptMergeRequestOutcomeCallable CodeupClient::acceptMergeRequestCallable(const AcceptMergeRequestRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<AcceptMergeRequestOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->acceptMergeRequest(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::AddGroupMemberOutcome CodeupClient::addGroupMember(const AddGroupMemberRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -267,6 +303,42 @@ CodeupClient::CreateMergeRequestOutcomeCallable CodeupClient::createMergeRequest
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::CreateMergeRequestCommentOutcome CodeupClient::createMergeRequestComment(const CreateMergeRequestCommentRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateMergeRequestCommentOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateMergeRequestCommentOutcome(CreateMergeRequestCommentResult(outcome.result()));
|
||||
else
|
||||
return CreateMergeRequestCommentOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CodeupClient::createMergeRequestCommentAsync(const CreateMergeRequestCommentRequest& request, const CreateMergeRequestCommentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createMergeRequestComment(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CodeupClient::CreateMergeRequestCommentOutcomeCallable CodeupClient::createMergeRequestCommentCallable(const CreateMergeRequestCommentRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateMergeRequestCommentOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createMergeRequestComment(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::CreateRepositoryOutcome CodeupClient::createRepository(const CreateRepositoryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -951,6 +1023,114 @@ CodeupClient::GetGroupDetailOutcomeCallable CodeupClient::getGroupDetailCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::GetMergeRequestApproveStatusOutcome CodeupClient::getMergeRequestApproveStatus(const GetMergeRequestApproveStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetMergeRequestApproveStatusOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetMergeRequestApproveStatusOutcome(GetMergeRequestApproveStatusResult(outcome.result()));
|
||||
else
|
||||
return GetMergeRequestApproveStatusOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CodeupClient::getMergeRequestApproveStatusAsync(const GetMergeRequestApproveStatusRequest& request, const GetMergeRequestApproveStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getMergeRequestApproveStatus(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CodeupClient::GetMergeRequestApproveStatusOutcomeCallable CodeupClient::getMergeRequestApproveStatusCallable(const GetMergeRequestApproveStatusRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetMergeRequestApproveStatusOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getMergeRequestApproveStatus(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::GetMergeRequestDetailOutcome CodeupClient::getMergeRequestDetail(const GetMergeRequestDetailRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetMergeRequestDetailOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetMergeRequestDetailOutcome(GetMergeRequestDetailResult(outcome.result()));
|
||||
else
|
||||
return GetMergeRequestDetailOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CodeupClient::getMergeRequestDetailAsync(const GetMergeRequestDetailRequest& request, const GetMergeRequestDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getMergeRequestDetail(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CodeupClient::GetMergeRequestDetailOutcomeCallable CodeupClient::getMergeRequestDetailCallable(const GetMergeRequestDetailRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetMergeRequestDetailOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getMergeRequestDetail(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::GetMergeRequestSettingOutcome CodeupClient::getMergeRequestSetting(const GetMergeRequestSettingRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetMergeRequestSettingOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetMergeRequestSettingOutcome(GetMergeRequestSettingResult(outcome.result()));
|
||||
else
|
||||
return GetMergeRequestSettingOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CodeupClient::getMergeRequestSettingAsync(const GetMergeRequestSettingRequest& request, const GetMergeRequestSettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getMergeRequestSetting(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CodeupClient::GetMergeRequestSettingOutcomeCallable CodeupClient::getMergeRequestSettingCallable(const GetMergeRequestSettingRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetMergeRequestSettingOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getMergeRequestSetting(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::GetProjectMemberOutcome CodeupClient::getProjectMember(const GetProjectMemberRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1203,6 +1383,42 @@ CodeupClient::ListGroupsOutcomeCallable CodeupClient::listGroupsCallable(const L
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::ListMergeRequestCommentsOutcome CodeupClient::listMergeRequestComments(const ListMergeRequestCommentsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListMergeRequestCommentsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListMergeRequestCommentsOutcome(ListMergeRequestCommentsResult(outcome.result()));
|
||||
else
|
||||
return ListMergeRequestCommentsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CodeupClient::listMergeRequestCommentsAsync(const ListMergeRequestCommentsRequest& request, const ListMergeRequestCommentsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listMergeRequestComments(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CodeupClient::ListMergeRequestCommentsOutcomeCallable CodeupClient::listMergeRequestCommentsCallable(const ListMergeRequestCommentsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListMergeRequestCommentsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listMergeRequestComments(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::ListMergeRequestsOutcome CodeupClient::listMergeRequests(const ListMergeRequestsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1347,6 +1563,42 @@ CodeupClient::ListRepositoryBranchesOutcomeCallable CodeupClient::listRepository
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::ListRepositoryCommitsOutcome CodeupClient::listRepositoryCommits(const ListRepositoryCommitsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListRepositoryCommitsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListRepositoryCommitsOutcome(ListRepositoryCommitsResult(outcome.result()));
|
||||
else
|
||||
return ListRepositoryCommitsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CodeupClient::listRepositoryCommitsAsync(const ListRepositoryCommitsRequest& request, const ListRepositoryCommitsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listRepositoryCommits(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CodeupClient::ListRepositoryCommitsOutcomeCallable CodeupClient::listRepositoryCommitsCallable(const ListRepositoryCommitsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListRepositoryCommitsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listRepositoryCommits(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::ListRepositoryMemberOutcome CodeupClient::listRepositoryMember(const ListRepositoryMemberRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1599,6 +1851,114 @@ CodeupClient::UpdateGroupMemberOutcomeCallable CodeupClient::updateGroupMemberCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::UpdateMergeRequestOutcome CodeupClient::updateMergeRequest(const UpdateMergeRequestRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateMergeRequestOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateMergeRequestOutcome(UpdateMergeRequestResult(outcome.result()));
|
||||
else
|
||||
return UpdateMergeRequestOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CodeupClient::updateMergeRequestAsync(const UpdateMergeRequestRequest& request, const UpdateMergeRequestAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateMergeRequest(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CodeupClient::UpdateMergeRequestOutcomeCallable CodeupClient::updateMergeRequestCallable(const UpdateMergeRequestRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateMergeRequestOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateMergeRequest(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::UpdateMergeRequestCommentOutcome CodeupClient::updateMergeRequestComment(const UpdateMergeRequestCommentRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateMergeRequestCommentOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateMergeRequestCommentOutcome(UpdateMergeRequestCommentResult(outcome.result()));
|
||||
else
|
||||
return UpdateMergeRequestCommentOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CodeupClient::updateMergeRequestCommentAsync(const UpdateMergeRequestCommentRequest& request, const UpdateMergeRequestCommentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateMergeRequestComment(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CodeupClient::UpdateMergeRequestCommentOutcomeCallable CodeupClient::updateMergeRequestCommentCallable(const UpdateMergeRequestCommentRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateMergeRequestCommentOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateMergeRequestComment(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::UpdateMergeRequestSettingOutcome CodeupClient::updateMergeRequestSetting(const UpdateMergeRequestSettingRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateMergeRequestSettingOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateMergeRequestSettingOutcome(UpdateMergeRequestSettingResult(outcome.result()));
|
||||
else
|
||||
return UpdateMergeRequestSettingOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CodeupClient::updateMergeRequestSettingAsync(const UpdateMergeRequestSettingRequest& request, const UpdateMergeRequestSettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateMergeRequestSetting(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CodeupClient::UpdateMergeRequestSettingOutcomeCallable CodeupClient::updateMergeRequestSettingCallable(const UpdateMergeRequestSettingRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateMergeRequestSettingOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateMergeRequestSetting(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::UpdateRepositoryOutcome CodeupClient::updateRepository(const UpdateRepositoryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
74
codeup/src/model/AcceptMergeRequestRequest.cc
Normal file
74
codeup/src/model/AcceptMergeRequestRequest.cc
Normal 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/codeup/model/AcceptMergeRequestRequest.h>
|
||||
|
||||
using AlibabaCloud::Codeup::Model::AcceptMergeRequestRequest;
|
||||
|
||||
AcceptMergeRequestRequest::AcceptMergeRequestRequest() :
|
||||
RoaServiceRequest("codeup", "2020-04-14")
|
||||
{
|
||||
setResourcePath("/api/v3/projects/[ProjectId]/merge_request/[MergeRequestId]/accept");
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
}
|
||||
|
||||
AcceptMergeRequestRequest::~AcceptMergeRequestRequest()
|
||||
{}
|
||||
|
||||
std::string AcceptMergeRequestRequest::getOrganizationId()const
|
||||
{
|
||||
return organizationId_;
|
||||
}
|
||||
|
||||
void AcceptMergeRequestRequest::setOrganizationId(const std::string& organizationId)
|
||||
{
|
||||
organizationId_ = organizationId;
|
||||
setParameter("OrganizationId", organizationId);
|
||||
}
|
||||
|
||||
long AcceptMergeRequestRequest::getMergeRequestId()const
|
||||
{
|
||||
return mergeRequestId_;
|
||||
}
|
||||
|
||||
void AcceptMergeRequestRequest::setMergeRequestId(long mergeRequestId)
|
||||
{
|
||||
mergeRequestId_ = mergeRequestId;
|
||||
setParameter("MergeRequestId", std::to_string(mergeRequestId));
|
||||
}
|
||||
|
||||
std::string AcceptMergeRequestRequest::getAccessToken()const
|
||||
{
|
||||
return accessToken_;
|
||||
}
|
||||
|
||||
void AcceptMergeRequestRequest::setAccessToken(const std::string& accessToken)
|
||||
{
|
||||
accessToken_ = accessToken;
|
||||
setParameter("AccessToken", accessToken);
|
||||
}
|
||||
|
||||
long AcceptMergeRequestRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void AcceptMergeRequestRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
197
codeup/src/model/AcceptMergeRequestResult.cc
Normal file
197
codeup/src/model/AcceptMergeRequestResult.cc
Normal file
@@ -0,0 +1,197 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/codeup/model/AcceptMergeRequestResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Codeup;
|
||||
using namespace AlibabaCloud::Codeup::Model;
|
||||
|
||||
AcceptMergeRequestResult::AcceptMergeRequestResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AcceptMergeRequestResult::AcceptMergeRequestResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AcceptMergeRequestResult::~AcceptMergeRequestResult()
|
||||
{}
|
||||
|
||||
void AcceptMergeRequestResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["AcceptedRevision"].isNull())
|
||||
result_.acceptedRevision = resultNode["AcceptedRevision"].asString();
|
||||
if(!resultNode["AheadCommitCount"].isNull())
|
||||
result_.aheadCommitCount = std::stoi(resultNode["AheadCommitCount"].asString());
|
||||
if(!resultNode["BehindCommitCount"].isNull())
|
||||
result_.behindCommitCount = std::stoi(resultNode["BehindCommitCount"].asString());
|
||||
if(!resultNode["CreatedAt"].isNull())
|
||||
result_.createdAt = resultNode["CreatedAt"].asString();
|
||||
if(!resultNode["Description"].isNull())
|
||||
result_.description = resultNode["Description"].asString();
|
||||
if(!resultNode["Id"].isNull())
|
||||
result_.id = std::stol(resultNode["Id"].asString());
|
||||
if(!resultNode["MergeError"].isNull())
|
||||
result_.mergeError = resultNode["MergeError"].asString();
|
||||
if(!resultNode["MergeStatus"].isNull())
|
||||
result_.mergeStatus = resultNode["MergeStatus"].asString();
|
||||
if(!resultNode["MergeType"].isNull())
|
||||
result_.mergeType = resultNode["MergeType"].asString();
|
||||
if(!resultNode["MergedRevision"].isNull())
|
||||
result_.mergedRevision = resultNode["MergedRevision"].asString();
|
||||
if(!resultNode["NameWithNamespace"].isNull())
|
||||
result_.nameWithNamespace = resultNode["NameWithNamespace"].asString();
|
||||
if(!resultNode["ProjectId"].isNull())
|
||||
result_.projectId = std::stol(resultNode["ProjectId"].asString());
|
||||
if(!resultNode["SourceBranch"].isNull())
|
||||
result_.sourceBranch = resultNode["SourceBranch"].asString();
|
||||
if(!resultNode["State"].isNull())
|
||||
result_.state = resultNode["State"].asString();
|
||||
if(!resultNode["TargetBranch"].isNull())
|
||||
result_.targetBranch = resultNode["TargetBranch"].asString();
|
||||
if(!resultNode["Title"].isNull())
|
||||
result_.title = resultNode["Title"].asString();
|
||||
if(!resultNode["UpdatedAt"].isNull())
|
||||
result_.updatedAt = resultNode["UpdatedAt"].asString();
|
||||
if(!resultNode["WebUrl"].isNull())
|
||||
result_.webUrl = resultNode["WebUrl"].asString();
|
||||
auto allAssigneeListNode = resultNode["AssigneeList"]["AssigneeListItem"];
|
||||
for (auto resultNodeAssigneeListAssigneeListItem : allAssigneeListNode)
|
||||
{
|
||||
Result::AssigneeListItem assigneeListItemObject;
|
||||
if(!resultNodeAssigneeListAssigneeListItem["AvatarUrl"].isNull())
|
||||
assigneeListItemObject.avatarUrl = resultNodeAssigneeListAssigneeListItem["AvatarUrl"].asString();
|
||||
if(!resultNodeAssigneeListAssigneeListItem["ExternUserId"].isNull())
|
||||
assigneeListItemObject.externUserId = resultNodeAssigneeListAssigneeListItem["ExternUserId"].asString();
|
||||
if(!resultNodeAssigneeListAssigneeListItem["Id"].isNull())
|
||||
assigneeListItemObject.id = resultNodeAssigneeListAssigneeListItem["Id"].asString();
|
||||
if(!resultNodeAssigneeListAssigneeListItem["Name"].isNull())
|
||||
assigneeListItemObject.name = resultNodeAssigneeListAssigneeListItem["Name"].asString();
|
||||
result_.assigneeList.push_back(assigneeListItemObject);
|
||||
}
|
||||
auto approveCheckResultNode = resultNode["ApproveCheckResult"];
|
||||
if(!approveCheckResultNode["TotalCheckResult"].isNull())
|
||||
result_.approveCheckResult.totalCheckResult = approveCheckResultNode["TotalCheckResult"].asString();
|
||||
auto allSatisfiedCheckResultsNode = approveCheckResultNode["SatisfiedCheckResults"]["SatisfiedCheckResultsItem"];
|
||||
for (auto approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem : allSatisfiedCheckResultsNode)
|
||||
{
|
||||
Result::ApproveCheckResult::SatisfiedCheckResultsItem satisfiedCheckResultsItemObject;
|
||||
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckName"].isNull())
|
||||
satisfiedCheckResultsItemObject.checkName = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckName"].asString();
|
||||
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckStatus"].isNull())
|
||||
satisfiedCheckResultsItemObject.checkStatus = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckStatus"].asString();
|
||||
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckType"].isNull())
|
||||
satisfiedCheckResultsItemObject.checkType = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckType"].asString();
|
||||
auto allExtraUsersNode = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["ExtraUsers"]["ExtraUsersItem"];
|
||||
for (auto approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem : allExtraUsersNode)
|
||||
{
|
||||
Result::ApproveCheckResult::SatisfiedCheckResultsItem::ExtraUsersItem extraUsersObject;
|
||||
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["AvatarUrl"].isNull())
|
||||
extraUsersObject.avatarUrl = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["AvatarUrl"].asString();
|
||||
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["ExternUserId"].isNull())
|
||||
extraUsersObject.externUserId = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["ExternUserId"].asString();
|
||||
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["Id"].isNull())
|
||||
extraUsersObject.id = std::stol(approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["Id"].asString());
|
||||
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["Name"].isNull())
|
||||
extraUsersObject.name = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["Name"].asString();
|
||||
satisfiedCheckResultsItemObject.extraUsers.push_back(extraUsersObject);
|
||||
}
|
||||
auto allSatisfiedItems = value["SatisfiedItems"]["SatisfiedItems"];
|
||||
for (auto value : allSatisfiedItems)
|
||||
satisfiedCheckResultsItemObject.satisfiedItems.push_back(value.asString());
|
||||
auto allUnsatisfiedItems = value["UnsatisfiedItems"]["UnsatisfiedItems"];
|
||||
for (auto value : allUnsatisfiedItems)
|
||||
satisfiedCheckResultsItemObject.unsatisfiedItems.push_back(value.asString());
|
||||
result_.approveCheckResult.satisfiedCheckResults.push_back(satisfiedCheckResultsItemObject);
|
||||
}
|
||||
auto allUnsatisfiedCheckResultsNode = approveCheckResultNode["UnsatisfiedCheckResults"]["UnsatisfiedCheckResultsItem"];
|
||||
for (auto approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem : allUnsatisfiedCheckResultsNode)
|
||||
{
|
||||
Result::ApproveCheckResult::UnsatisfiedCheckResultsItem unsatisfiedCheckResultsItemObject;
|
||||
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckName"].isNull())
|
||||
unsatisfiedCheckResultsItemObject.checkName = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckName"].asString();
|
||||
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckStatus"].isNull())
|
||||
unsatisfiedCheckResultsItemObject.checkStatus = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckStatus"].asString();
|
||||
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckType"].isNull())
|
||||
unsatisfiedCheckResultsItemObject.checkType = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckType"].asString();
|
||||
auto allExtraUsers3Node = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["ExtraUsers"]["ExtraUsersItem"];
|
||||
for (auto approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem : allExtraUsers3Node)
|
||||
{
|
||||
Result::ApproveCheckResult::UnsatisfiedCheckResultsItem::ExtraUsersItem4 extraUsers3Object;
|
||||
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["AvatarUrl"].isNull())
|
||||
extraUsers3Object.avatarUrl = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["AvatarUrl"].asString();
|
||||
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["ExternUserId"].isNull())
|
||||
extraUsers3Object.externUserId = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["ExternUserId"].asString();
|
||||
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["Id"].isNull())
|
||||
extraUsers3Object.id = std::stol(approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["Id"].asString());
|
||||
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["Name"].isNull())
|
||||
extraUsers3Object.name = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["Name"].asString();
|
||||
unsatisfiedCheckResultsItemObject.extraUsers3.push_back(extraUsers3Object);
|
||||
}
|
||||
auto allSatisfiedItems1 = value["SatisfiedItems"]["SatisfiedItems"];
|
||||
for (auto value : allSatisfiedItems1)
|
||||
unsatisfiedCheckResultsItemObject.satisfiedItems1.push_back(value.asString());
|
||||
auto allUnsatisfiedItems2 = value["UnsatisfiedItems"]["UnsatisfiedItems"];
|
||||
for (auto value : allUnsatisfiedItems2)
|
||||
unsatisfiedCheckResultsItemObject.unsatisfiedItems2.push_back(value.asString());
|
||||
result_.approveCheckResult.unsatisfiedCheckResults.push_back(unsatisfiedCheckResultsItemObject);
|
||||
}
|
||||
auto authorNode = resultNode["Author"];
|
||||
if(!authorNode["AvatarUrl"].isNull())
|
||||
result_.author.avatarUrl = authorNode["AvatarUrl"].asString();
|
||||
if(!authorNode["ExternUserId"].isNull())
|
||||
result_.author.externUserId = authorNode["ExternUserId"].asString();
|
||||
if(!authorNode["Id"].isNull())
|
||||
result_.author.id = std::stol(authorNode["Id"].asString());
|
||||
if(!authorNode["Name"].isNull())
|
||||
result_.author.name = authorNode["Name"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string AcceptMergeRequestResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string AcceptMergeRequestResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool AcceptMergeRequestResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
AcceptMergeRequestResult::Result AcceptMergeRequestResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
74
codeup/src/model/CreateMergeRequestCommentRequest.cc
Normal file
74
codeup/src/model/CreateMergeRequestCommentRequest.cc
Normal 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/codeup/model/CreateMergeRequestCommentRequest.h>
|
||||
|
||||
using AlibabaCloud::Codeup::Model::CreateMergeRequestCommentRequest;
|
||||
|
||||
CreateMergeRequestCommentRequest::CreateMergeRequestCommentRequest() :
|
||||
RoaServiceRequest("codeup", "2020-04-14")
|
||||
{
|
||||
setResourcePath("/api/v4/projects/[ProjectId]/merge_request/[MergeRequestId]/comments");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateMergeRequestCommentRequest::~CreateMergeRequestCommentRequest()
|
||||
{}
|
||||
|
||||
std::string CreateMergeRequestCommentRequest::getOrganizationId()const
|
||||
{
|
||||
return organizationId_;
|
||||
}
|
||||
|
||||
void CreateMergeRequestCommentRequest::setOrganizationId(const std::string& organizationId)
|
||||
{
|
||||
organizationId_ = organizationId;
|
||||
setParameter("OrganizationId", organizationId);
|
||||
}
|
||||
|
||||
long CreateMergeRequestCommentRequest::getMergeRequestId()const
|
||||
{
|
||||
return mergeRequestId_;
|
||||
}
|
||||
|
||||
void CreateMergeRequestCommentRequest::setMergeRequestId(long mergeRequestId)
|
||||
{
|
||||
mergeRequestId_ = mergeRequestId;
|
||||
setParameter("MergeRequestId", std::to_string(mergeRequestId));
|
||||
}
|
||||
|
||||
std::string CreateMergeRequestCommentRequest::getAccessToken()const
|
||||
{
|
||||
return accessToken_;
|
||||
}
|
||||
|
||||
void CreateMergeRequestCommentRequest::setAccessToken(const std::string& accessToken)
|
||||
{
|
||||
accessToken_ = accessToken;
|
||||
setParameter("AccessToken", accessToken);
|
||||
}
|
||||
|
||||
long CreateMergeRequestCommentRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void CreateMergeRequestCommentRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
108
codeup/src/model/CreateMergeRequestCommentResult.cc
Normal file
108
codeup/src/model/CreateMergeRequestCommentResult.cc
Normal file
@@ -0,0 +1,108 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/codeup/model/CreateMergeRequestCommentResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Codeup;
|
||||
using namespace AlibabaCloud::Codeup::Model;
|
||||
|
||||
CreateMergeRequestCommentResult::CreateMergeRequestCommentResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateMergeRequestCommentResult::CreateMergeRequestCommentResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateMergeRequestCommentResult::~CreateMergeRequestCommentResult()
|
||||
{}
|
||||
|
||||
void CreateMergeRequestCommentResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["Id"].isNull())
|
||||
result_.id = std::stol(resultNode["Id"].asString());
|
||||
if(!resultNode["Note"].isNull())
|
||||
result_.note = resultNode["Note"].asString();
|
||||
if(!resultNode["CreatedAt"].isNull())
|
||||
result_.createdAt = resultNode["CreatedAt"].asString();
|
||||
if(!resultNode["UpdatedAt"].isNull())
|
||||
result_.updatedAt = resultNode["UpdatedAt"].asString();
|
||||
if(!resultNode["ProjectId"].isNull())
|
||||
result_.projectId = std::stol(resultNode["ProjectId"].asString());
|
||||
if(!resultNode["IsDraft"].isNull())
|
||||
result_.isDraft = resultNode["IsDraft"].asString() == "true";
|
||||
if(!resultNode["ParentNoteId"].isNull())
|
||||
result_.parentNoteId = std::stol(resultNode["ParentNoteId"].asString());
|
||||
if(!resultNode["Line"].isNull())
|
||||
result_.line = std::stol(resultNode["Line"].asString());
|
||||
if(!resultNode["Side"].isNull())
|
||||
result_.side = resultNode["Side"].asString();
|
||||
if(!resultNode["Path"].isNull())
|
||||
result_.path = resultNode["Path"].asString();
|
||||
if(!resultNode["RangeContext"].isNull())
|
||||
result_.rangeContext = resultNode["RangeContext"].asString();
|
||||
if(!resultNode["OutDated"].isNull())
|
||||
result_.outDated = resultNode["OutDated"].asString() == "true";
|
||||
if(!resultNode["Closed"].isNull())
|
||||
result_.closed = std::stoi(resultNode["Closed"].asString());
|
||||
auto authorNode = resultNode["Author"];
|
||||
if(!authorNode["Id"].isNull())
|
||||
result_.author.id = std::stol(authorNode["Id"].asString());
|
||||
if(!authorNode["AvatarUrl"].isNull())
|
||||
result_.author.avatarUrl = authorNode["AvatarUrl"].asString();
|
||||
if(!authorNode["ExternUserId"].isNull())
|
||||
result_.author.externUserId = authorNode["ExternUserId"].asString();
|
||||
if(!authorNode["Name"].isNull())
|
||||
result_.author.name = authorNode["Name"].asString();
|
||||
if(!authorNode["Email"].isNull())
|
||||
result_.author.email = authorNode["Email"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string CreateMergeRequestCommentResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string CreateMergeRequestCommentResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool CreateMergeRequestCommentResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
CreateMergeRequestCommentResult::Result CreateMergeRequestCommentResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
74
codeup/src/model/GetMergeRequestApproveStatusRequest.cc
Normal file
74
codeup/src/model/GetMergeRequestApproveStatusRequest.cc
Normal 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/codeup/model/GetMergeRequestApproveStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Codeup::Model::GetMergeRequestApproveStatusRequest;
|
||||
|
||||
GetMergeRequestApproveStatusRequest::GetMergeRequestApproveStatusRequest() :
|
||||
RoaServiceRequest("codeup", "2020-04-14")
|
||||
{
|
||||
setResourcePath("/api/v4/projects/[ProjectId]/merge_request/[MergeRequestId]/approve_status");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetMergeRequestApproveStatusRequest::~GetMergeRequestApproveStatusRequest()
|
||||
{}
|
||||
|
||||
std::string GetMergeRequestApproveStatusRequest::getOrganizationId()const
|
||||
{
|
||||
return organizationId_;
|
||||
}
|
||||
|
||||
void GetMergeRequestApproveStatusRequest::setOrganizationId(const std::string& organizationId)
|
||||
{
|
||||
organizationId_ = organizationId;
|
||||
setParameter("OrganizationId", organizationId);
|
||||
}
|
||||
|
||||
long GetMergeRequestApproveStatusRequest::getMergeRequestId()const
|
||||
{
|
||||
return mergeRequestId_;
|
||||
}
|
||||
|
||||
void GetMergeRequestApproveStatusRequest::setMergeRequestId(long mergeRequestId)
|
||||
{
|
||||
mergeRequestId_ = mergeRequestId;
|
||||
setParameter("MergeRequestId", std::to_string(mergeRequestId));
|
||||
}
|
||||
|
||||
std::string GetMergeRequestApproveStatusRequest::getAccessToken()const
|
||||
{
|
||||
return accessToken_;
|
||||
}
|
||||
|
||||
void GetMergeRequestApproveStatusRequest::setAccessToken(const std::string& accessToken)
|
||||
{
|
||||
accessToken_ = accessToken;
|
||||
setParameter("AccessToken", accessToken);
|
||||
}
|
||||
|
||||
long GetMergeRequestApproveStatusRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void GetMergeRequestApproveStatusRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
75
codeup/src/model/GetMergeRequestApproveStatusResult.cc
Normal file
75
codeup/src/model/GetMergeRequestApproveStatusResult.cc
Normal file
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/codeup/model/GetMergeRequestApproveStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Codeup;
|
||||
using namespace AlibabaCloud::Codeup::Model;
|
||||
|
||||
GetMergeRequestApproveStatusResult::GetMergeRequestApproveStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetMergeRequestApproveStatusResult::GetMergeRequestApproveStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetMergeRequestApproveStatusResult::~GetMergeRequestApproveStatusResult()
|
||||
{}
|
||||
|
||||
void GetMergeRequestApproveStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["ApproveStatus"].isNull())
|
||||
result_.approveStatus = resultNode["ApproveStatus"].asString();
|
||||
if(!resultNode["Message"].isNull())
|
||||
result_.message = resultNode["Message"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string GetMergeRequestApproveStatusResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string GetMergeRequestApproveStatusResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool GetMergeRequestApproveStatusResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
GetMergeRequestApproveStatusResult::Result GetMergeRequestApproveStatusResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
74
codeup/src/model/GetMergeRequestDetailRequest.cc
Normal file
74
codeup/src/model/GetMergeRequestDetailRequest.cc
Normal 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/codeup/model/GetMergeRequestDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Codeup::Model::GetMergeRequestDetailRequest;
|
||||
|
||||
GetMergeRequestDetailRequest::GetMergeRequestDetailRequest() :
|
||||
RoaServiceRequest("codeup", "2020-04-14")
|
||||
{
|
||||
setResourcePath("/api/v4/projects/[ProjectId]/merge_request/[MergeRequestId]");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetMergeRequestDetailRequest::~GetMergeRequestDetailRequest()
|
||||
{}
|
||||
|
||||
std::string GetMergeRequestDetailRequest::getOrganizationId()const
|
||||
{
|
||||
return organizationId_;
|
||||
}
|
||||
|
||||
void GetMergeRequestDetailRequest::setOrganizationId(const std::string& organizationId)
|
||||
{
|
||||
organizationId_ = organizationId;
|
||||
setParameter("OrganizationId", organizationId);
|
||||
}
|
||||
|
||||
long GetMergeRequestDetailRequest::getMergeRequestId()const
|
||||
{
|
||||
return mergeRequestId_;
|
||||
}
|
||||
|
||||
void GetMergeRequestDetailRequest::setMergeRequestId(long mergeRequestId)
|
||||
{
|
||||
mergeRequestId_ = mergeRequestId;
|
||||
setParameter("MergeRequestId", std::to_string(mergeRequestId));
|
||||
}
|
||||
|
||||
std::string GetMergeRequestDetailRequest::getAccessToken()const
|
||||
{
|
||||
return accessToken_;
|
||||
}
|
||||
|
||||
void GetMergeRequestDetailRequest::setAccessToken(const std::string& accessToken)
|
||||
{
|
||||
accessToken_ = accessToken;
|
||||
setParameter("AccessToken", accessToken);
|
||||
}
|
||||
|
||||
long GetMergeRequestDetailRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void GetMergeRequestDetailRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
203
codeup/src/model/GetMergeRequestDetailResult.cc
Normal file
203
codeup/src/model/GetMergeRequestDetailResult.cc
Normal file
@@ -0,0 +1,203 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/codeup/model/GetMergeRequestDetailResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Codeup;
|
||||
using namespace AlibabaCloud::Codeup::Model;
|
||||
|
||||
GetMergeRequestDetailResult::GetMergeRequestDetailResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetMergeRequestDetailResult::GetMergeRequestDetailResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetMergeRequestDetailResult::~GetMergeRequestDetailResult()
|
||||
{}
|
||||
|
||||
void GetMergeRequestDetailResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["AcceptedRevision"].isNull())
|
||||
result_.acceptedRevision = resultNode["AcceptedRevision"].asString();
|
||||
if(!resultNode["AheadCommitCount"].isNull())
|
||||
result_.aheadCommitCount = std::stoi(resultNode["AheadCommitCount"].asString());
|
||||
if(!resultNode["BehindCommitCount"].isNull())
|
||||
result_.behindCommitCount = std::stoi(resultNode["BehindCommitCount"].asString());
|
||||
if(!resultNode["CreatedAt"].isNull())
|
||||
result_.createdAt = resultNode["CreatedAt"].asString();
|
||||
if(!resultNode["Description"].isNull())
|
||||
result_.description = resultNode["Description"].asString();
|
||||
if(!resultNode["Id"].isNull())
|
||||
result_.id = std::stol(resultNode["Id"].asString());
|
||||
if(!resultNode["MergeError"].isNull())
|
||||
result_.mergeError = resultNode["MergeError"].asString();
|
||||
if(!resultNode["MergeStatus"].isNull())
|
||||
result_.mergeStatus = resultNode["MergeStatus"].asString();
|
||||
if(!resultNode["MergeType"].isNull())
|
||||
result_.mergeType = resultNode["MergeType"].asString();
|
||||
if(!resultNode["MergedRevision"].isNull())
|
||||
result_.mergedRevision = resultNode["MergedRevision"].asString();
|
||||
if(!resultNode["NameWithNamespace"].isNull())
|
||||
result_.nameWithNamespace = resultNode["NameWithNamespace"].asString();
|
||||
if(!resultNode["ProjectId"].isNull())
|
||||
result_.projectId = std::stol(resultNode["ProjectId"].asString());
|
||||
if(!resultNode["SourceBranch"].isNull())
|
||||
result_.sourceBranch = resultNode["SourceBranch"].asString();
|
||||
if(!resultNode["State"].isNull())
|
||||
result_.state = resultNode["State"].asString();
|
||||
if(!resultNode["TargetBranch"].isNull())
|
||||
result_.targetBranch = resultNode["TargetBranch"].asString();
|
||||
if(!resultNode["Title"].isNull())
|
||||
result_.title = resultNode["Title"].asString();
|
||||
if(!resultNode["UpdatedAt"].isNull())
|
||||
result_.updatedAt = resultNode["UpdatedAt"].asString();
|
||||
if(!resultNode["WebUrl"].isNull())
|
||||
result_.webUrl = resultNode["WebUrl"].asString();
|
||||
if(!resultNode["IsSupportMerge"].isNull())
|
||||
result_.isSupportMerge = resultNode["IsSupportMerge"].asString() == "true";
|
||||
auto allAssigneeListNode = resultNode["AssigneeList"]["AssigneeListItem"];
|
||||
for (auto resultNodeAssigneeListAssigneeListItem : allAssigneeListNode)
|
||||
{
|
||||
Result::AssigneeListItem assigneeListItemObject;
|
||||
if(!resultNodeAssigneeListAssigneeListItem["AvatarUrl"].isNull())
|
||||
assigneeListItemObject.avatarUrl = resultNodeAssigneeListAssigneeListItem["AvatarUrl"].asString();
|
||||
if(!resultNodeAssigneeListAssigneeListItem["ExternUserId"].isNull())
|
||||
assigneeListItemObject.externUserId = resultNodeAssigneeListAssigneeListItem["ExternUserId"].asString();
|
||||
if(!resultNodeAssigneeListAssigneeListItem["Id"].isNull())
|
||||
assigneeListItemObject.id = resultNodeAssigneeListAssigneeListItem["Id"].asString();
|
||||
if(!resultNodeAssigneeListAssigneeListItem["Name"].isNull())
|
||||
assigneeListItemObject.name = resultNodeAssigneeListAssigneeListItem["Name"].asString();
|
||||
if(!resultNodeAssigneeListAssigneeListItem["Status"].isNull())
|
||||
assigneeListItemObject.status = resultNodeAssigneeListAssigneeListItem["Status"].asString();
|
||||
if(!resultNodeAssigneeListAssigneeListItem["Email"].isNull())
|
||||
assigneeListItemObject.email = resultNodeAssigneeListAssigneeListItem["Email"].asString();
|
||||
result_.assigneeList.push_back(assigneeListItemObject);
|
||||
}
|
||||
auto approveCheckResultNode = resultNode["ApproveCheckResult"];
|
||||
if(!approveCheckResultNode["TotalCheckResult"].isNull())
|
||||
result_.approveCheckResult.totalCheckResult = approveCheckResultNode["TotalCheckResult"].asString();
|
||||
auto allSatisfiedCheckResultsNode = approveCheckResultNode["SatisfiedCheckResults"]["SatisfiedCheckResultsItem"];
|
||||
for (auto approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem : allSatisfiedCheckResultsNode)
|
||||
{
|
||||
Result::ApproveCheckResult::SatisfiedCheckResultsItem satisfiedCheckResultsItemObject;
|
||||
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckName"].isNull())
|
||||
satisfiedCheckResultsItemObject.checkName = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckName"].asString();
|
||||
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckStatus"].isNull())
|
||||
satisfiedCheckResultsItemObject.checkStatus = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckStatus"].asString();
|
||||
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckType"].isNull())
|
||||
satisfiedCheckResultsItemObject.checkType = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckType"].asString();
|
||||
auto allExtraUsersNode = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["ExtraUsers"]["ExtraUsersItem"];
|
||||
for (auto approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem : allExtraUsersNode)
|
||||
{
|
||||
Result::ApproveCheckResult::SatisfiedCheckResultsItem::ExtraUsersItem extraUsersObject;
|
||||
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["AvatarUrl"].isNull())
|
||||
extraUsersObject.avatarUrl = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["AvatarUrl"].asString();
|
||||
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["ExternUserId"].isNull())
|
||||
extraUsersObject.externUserId = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["ExternUserId"].asString();
|
||||
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["Id"].isNull())
|
||||
extraUsersObject.id = std::stol(approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["Id"].asString());
|
||||
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["Name"].isNull())
|
||||
extraUsersObject.name = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["Name"].asString();
|
||||
satisfiedCheckResultsItemObject.extraUsers.push_back(extraUsersObject);
|
||||
}
|
||||
auto allSatisfiedItems = value["SatisfiedItems"]["SatisfiedItems"];
|
||||
for (auto value : allSatisfiedItems)
|
||||
satisfiedCheckResultsItemObject.satisfiedItems.push_back(value.asString());
|
||||
auto allUnsatisfiedItems = value["UnsatisfiedItems"]["UnsatisfiedItems"];
|
||||
for (auto value : allUnsatisfiedItems)
|
||||
satisfiedCheckResultsItemObject.unsatisfiedItems.push_back(value.asString());
|
||||
result_.approveCheckResult.satisfiedCheckResults.push_back(satisfiedCheckResultsItemObject);
|
||||
}
|
||||
auto allUnsatisfiedCheckResultsNode = approveCheckResultNode["UnsatisfiedCheckResults"]["UnsatisfiedCheckResultsItem"];
|
||||
for (auto approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem : allUnsatisfiedCheckResultsNode)
|
||||
{
|
||||
Result::ApproveCheckResult::UnsatisfiedCheckResultsItem unsatisfiedCheckResultsItemObject;
|
||||
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckName"].isNull())
|
||||
unsatisfiedCheckResultsItemObject.checkName = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckName"].asString();
|
||||
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckStatus"].isNull())
|
||||
unsatisfiedCheckResultsItemObject.checkStatus = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckStatus"].asString();
|
||||
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckType"].isNull())
|
||||
unsatisfiedCheckResultsItemObject.checkType = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckType"].asString();
|
||||
auto allExtraUsers3Node = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["ExtraUsers"]["ExtraUsersItem"];
|
||||
for (auto approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem : allExtraUsers3Node)
|
||||
{
|
||||
Result::ApproveCheckResult::UnsatisfiedCheckResultsItem::ExtraUsersItem4 extraUsers3Object;
|
||||
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["AvatarUrl"].isNull())
|
||||
extraUsers3Object.avatarUrl = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["AvatarUrl"].asString();
|
||||
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["ExternUserId"].isNull())
|
||||
extraUsers3Object.externUserId = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["ExternUserId"].asString();
|
||||
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["Id"].isNull())
|
||||
extraUsers3Object.id = std::stol(approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["Id"].asString());
|
||||
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["Name"].isNull())
|
||||
extraUsers3Object.name = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["Name"].asString();
|
||||
unsatisfiedCheckResultsItemObject.extraUsers3.push_back(extraUsers3Object);
|
||||
}
|
||||
auto allSatisfiedItems1 = value["SatisfiedItems"]["SatisfiedItems"];
|
||||
for (auto value : allSatisfiedItems1)
|
||||
unsatisfiedCheckResultsItemObject.satisfiedItems1.push_back(value.asString());
|
||||
auto allUnsatisfiedItems2 = value["UnsatisfiedItems"]["UnsatisfiedItems"];
|
||||
for (auto value : allUnsatisfiedItems2)
|
||||
unsatisfiedCheckResultsItemObject.unsatisfiedItems2.push_back(value.asString());
|
||||
result_.approveCheckResult.unsatisfiedCheckResults.push_back(unsatisfiedCheckResultsItemObject);
|
||||
}
|
||||
auto authorNode = resultNode["Author"];
|
||||
if(!authorNode["AvatarUrl"].isNull())
|
||||
result_.author.avatarUrl = authorNode["AvatarUrl"].asString();
|
||||
if(!authorNode["ExternUserId"].isNull())
|
||||
result_.author.externUserId = authorNode["ExternUserId"].asString();
|
||||
if(!authorNode["Id"].isNull())
|
||||
result_.author.id = std::stol(authorNode["Id"].asString());
|
||||
if(!authorNode["Name"].isNull())
|
||||
result_.author.name = authorNode["Name"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string GetMergeRequestDetailResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string GetMergeRequestDetailResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool GetMergeRequestDetailResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
GetMergeRequestDetailResult::Result GetMergeRequestDetailResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
63
codeup/src/model/GetMergeRequestSettingRequest.cc
Normal file
63
codeup/src/model/GetMergeRequestSettingRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/codeup/model/GetMergeRequestSettingRequest.h>
|
||||
|
||||
using AlibabaCloud::Codeup::Model::GetMergeRequestSettingRequest;
|
||||
|
||||
GetMergeRequestSettingRequest::GetMergeRequestSettingRequest() :
|
||||
RoaServiceRequest("codeup", "2020-04-14")
|
||||
{
|
||||
setResourcePath("/api/v4/projects/[ProjectId]/settings/merge_requests");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetMergeRequestSettingRequest::~GetMergeRequestSettingRequest()
|
||||
{}
|
||||
|
||||
std::string GetMergeRequestSettingRequest::getOrganizationId()const
|
||||
{
|
||||
return organizationId_;
|
||||
}
|
||||
|
||||
void GetMergeRequestSettingRequest::setOrganizationId(const std::string& organizationId)
|
||||
{
|
||||
organizationId_ = organizationId;
|
||||
setParameter("OrganizationId", organizationId);
|
||||
}
|
||||
|
||||
std::string GetMergeRequestSettingRequest::getAccessToken()const
|
||||
{
|
||||
return accessToken_;
|
||||
}
|
||||
|
||||
void GetMergeRequestSettingRequest::setAccessToken(const std::string& accessToken)
|
||||
{
|
||||
accessToken_ = accessToken;
|
||||
setParameter("AccessToken", accessToken);
|
||||
}
|
||||
|
||||
long GetMergeRequestSettingRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void GetMergeRequestSettingRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
76
codeup/src/model/GetMergeRequestSettingResult.cc
Normal file
76
codeup/src/model/GetMergeRequestSettingResult.cc
Normal 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/codeup/model/GetMergeRequestSettingResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Codeup;
|
||||
using namespace AlibabaCloud::Codeup::Model;
|
||||
|
||||
GetMergeRequestSettingResult::GetMergeRequestSettingResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetMergeRequestSettingResult::GetMergeRequestSettingResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetMergeRequestSettingResult::~GetMergeRequestSettingResult()
|
||||
{}
|
||||
|
||||
void GetMergeRequestSettingResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["IsEnableSmartCodeReview"].isNull())
|
||||
result_.isEnableSmartCodeReview = resultNode["IsEnableSmartCodeReview"].asString() == "true";
|
||||
auto allMergeTypes = resultNode["MergeTypes"]["MergeTypes"];
|
||||
for (auto value : allMergeTypes)
|
||||
result_.mergeTypes.push_back(value.asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string GetMergeRequestSettingResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string GetMergeRequestSettingResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool GetMergeRequestSettingResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
GetMergeRequestSettingResult::Result GetMergeRequestSettingResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
96
codeup/src/model/ListMergeRequestCommentsRequest.cc
Normal file
96
codeup/src/model/ListMergeRequestCommentsRequest.cc
Normal file
@@ -0,0 +1,96 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/codeup/model/ListMergeRequestCommentsRequest.h>
|
||||
|
||||
using AlibabaCloud::Codeup::Model::ListMergeRequestCommentsRequest;
|
||||
|
||||
ListMergeRequestCommentsRequest::ListMergeRequestCommentsRequest() :
|
||||
RoaServiceRequest("codeup", "2020-04-14")
|
||||
{
|
||||
setResourcePath("/api/v4/projects/[ProjectId]/merge_request/[MergeRequestId]/comments");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListMergeRequestCommentsRequest::~ListMergeRequestCommentsRequest()
|
||||
{}
|
||||
|
||||
std::string ListMergeRequestCommentsRequest::getOrganizationId()const
|
||||
{
|
||||
return organizationId_;
|
||||
}
|
||||
|
||||
void ListMergeRequestCommentsRequest::setOrganizationId(const std::string& organizationId)
|
||||
{
|
||||
organizationId_ = organizationId;
|
||||
setParameter("OrganizationId", organizationId);
|
||||
}
|
||||
|
||||
long ListMergeRequestCommentsRequest::getMergeRequestId()const
|
||||
{
|
||||
return mergeRequestId_;
|
||||
}
|
||||
|
||||
void ListMergeRequestCommentsRequest::setMergeRequestId(long mergeRequestId)
|
||||
{
|
||||
mergeRequestId_ = mergeRequestId;
|
||||
setParameter("MergeRequestId", std::to_string(mergeRequestId));
|
||||
}
|
||||
|
||||
std::string ListMergeRequestCommentsRequest::getFromCommit()const
|
||||
{
|
||||
return fromCommit_;
|
||||
}
|
||||
|
||||
void ListMergeRequestCommentsRequest::setFromCommit(const std::string& fromCommit)
|
||||
{
|
||||
fromCommit_ = fromCommit;
|
||||
setParameter("FromCommit", fromCommit);
|
||||
}
|
||||
|
||||
std::string ListMergeRequestCommentsRequest::getAccessToken()const
|
||||
{
|
||||
return accessToken_;
|
||||
}
|
||||
|
||||
void ListMergeRequestCommentsRequest::setAccessToken(const std::string& accessToken)
|
||||
{
|
||||
accessToken_ = accessToken;
|
||||
setParameter("AccessToken", accessToken);
|
||||
}
|
||||
|
||||
std::string ListMergeRequestCommentsRequest::getToCommit()const
|
||||
{
|
||||
return toCommit_;
|
||||
}
|
||||
|
||||
void ListMergeRequestCommentsRequest::setToCommit(const std::string& toCommit)
|
||||
{
|
||||
toCommit_ = toCommit;
|
||||
setParameter("ToCommit", toCommit);
|
||||
}
|
||||
|
||||
long ListMergeRequestCommentsRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void ListMergeRequestCommentsRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
120
codeup/src/model/ListMergeRequestCommentsResult.cc
Normal file
120
codeup/src/model/ListMergeRequestCommentsResult.cc
Normal file
@@ -0,0 +1,120 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/codeup/model/ListMergeRequestCommentsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Codeup;
|
||||
using namespace AlibabaCloud::Codeup::Model;
|
||||
|
||||
ListMergeRequestCommentsResult::ListMergeRequestCommentsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListMergeRequestCommentsResult::ListMergeRequestCommentsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListMergeRequestCommentsResult::~ListMergeRequestCommentsResult()
|
||||
{}
|
||||
|
||||
void ListMergeRequestCommentsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allResultNode = value["Result"]["ResultItem"];
|
||||
for (auto valueResultResultItem : allResultNode)
|
||||
{
|
||||
ResultItem resultObject;
|
||||
if(!valueResultResultItem["Closed"].isNull())
|
||||
resultObject.closed = std::stoi(valueResultResultItem["Closed"].asString());
|
||||
if(!valueResultResultItem["CreatedAt"].isNull())
|
||||
resultObject.createdAt = valueResultResultItem["CreatedAt"].asString();
|
||||
if(!valueResultResultItem["Id"].isNull())
|
||||
resultObject.id = std::stol(valueResultResultItem["Id"].asString());
|
||||
if(!valueResultResultItem["IsDraft"].isNull())
|
||||
resultObject.isDraft = valueResultResultItem["IsDraft"].asString() == "true";
|
||||
if(!valueResultResultItem["Line"].isNull())
|
||||
resultObject.line = std::stol(valueResultResultItem["Line"].asString());
|
||||
if(!valueResultResultItem["Note"].isNull())
|
||||
resultObject.note = valueResultResultItem["Note"].asString();
|
||||
if(!valueResultResultItem["OutDated"].isNull())
|
||||
resultObject.outDated = valueResultResultItem["OutDated"].asString() == "true";
|
||||
if(!valueResultResultItem["ParentNoteId"].isNull())
|
||||
resultObject.parentNoteId = std::stol(valueResultResultItem["ParentNoteId"].asString());
|
||||
if(!valueResultResultItem["Path"].isNull())
|
||||
resultObject.path = valueResultResultItem["Path"].asString();
|
||||
if(!valueResultResultItem["ProjectId"].isNull())
|
||||
resultObject.projectId = std::stol(valueResultResultItem["ProjectId"].asString());
|
||||
if(!valueResultResultItem["RangeContext"].isNull())
|
||||
resultObject.rangeContext = valueResultResultItem["RangeContext"].asString();
|
||||
if(!valueResultResultItem["Side"].isNull())
|
||||
resultObject.side = valueResultResultItem["Side"].asString();
|
||||
if(!valueResultResultItem["UpdatedAt"].isNull())
|
||||
resultObject.updatedAt = valueResultResultItem["UpdatedAt"].asString();
|
||||
auto authorNode = value["Author"];
|
||||
if(!authorNode["AvatarUrl"].isNull())
|
||||
resultObject.author.avatarUrl = authorNode["AvatarUrl"].asString();
|
||||
if(!authorNode["Email"].isNull())
|
||||
resultObject.author.email = authorNode["Email"].asString();
|
||||
if(!authorNode["ExternUserId"].isNull())
|
||||
resultObject.author.externUserId = authorNode["ExternUserId"].asString();
|
||||
if(!authorNode["Id"].isNull())
|
||||
resultObject.author.id = std::stol(authorNode["Id"].asString());
|
||||
if(!authorNode["Name"].isNull())
|
||||
resultObject.author.name = authorNode["Name"].asString();
|
||||
result_.push_back(resultObject);
|
||||
}
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Total"].isNull())
|
||||
total_ = std::stol(value["Total"].asString());
|
||||
|
||||
}
|
||||
|
||||
long ListMergeRequestCommentsResult::getTotal()const
|
||||
{
|
||||
return total_;
|
||||
}
|
||||
|
||||
std::string ListMergeRequestCommentsResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string ListMergeRequestCommentsResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool ListMergeRequestCommentsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::vector<ListMergeRequestCommentsResult::ResultItem> ListMergeRequestCommentsResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
@@ -79,6 +79,8 @@ void ListMergeRequestsResult::parse(const std::string &payload)
|
||||
resultObject.updatedAt = valueResultResultItem["UpdatedAt"].asString();
|
||||
if(!valueResultResultItem["WebUrl"].isNull())
|
||||
resultObject.webUrl = valueResultResultItem["WebUrl"].asString();
|
||||
if(!valueResultResultItem["IsSupportMerge"].isNull())
|
||||
resultObject.isSupportMerge = valueResultResultItem["IsSupportMerge"].asString() == "true";
|
||||
auto allAssigneeListNode = valueResultResultItem["AssigneeList"]["AssigneeListItem"];
|
||||
for (auto valueResultResultItemAssigneeListAssigneeListItem : allAssigneeListNode)
|
||||
{
|
||||
@@ -91,6 +93,10 @@ void ListMergeRequestsResult::parse(const std::string &payload)
|
||||
assigneeListObject.id = valueResultResultItemAssigneeListAssigneeListItem["Id"].asString();
|
||||
if(!valueResultResultItemAssigneeListAssigneeListItem["Name"].isNull())
|
||||
assigneeListObject.name = valueResultResultItemAssigneeListAssigneeListItem["Name"].asString();
|
||||
if(!valueResultResultItemAssigneeListAssigneeListItem["Status"].isNull())
|
||||
assigneeListObject.status = valueResultResultItemAssigneeListAssigneeListItem["Status"].asString();
|
||||
if(!valueResultResultItemAssigneeListAssigneeListItem["Email"].isNull())
|
||||
assigneeListObject.email = valueResultResultItemAssigneeListAssigneeListItem["Email"].asString();
|
||||
resultObject.assigneeList.push_back(assigneeListObject);
|
||||
}
|
||||
auto approveCheckResultNode = value["ApproveCheckResult"];
|
||||
|
||||
129
codeup/src/model/ListRepositoryCommitsRequest.cc
Normal file
129
codeup/src/model/ListRepositoryCommitsRequest.cc
Normal file
@@ -0,0 +1,129 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/codeup/model/ListRepositoryCommitsRequest.h>
|
||||
|
||||
using AlibabaCloud::Codeup::Model::ListRepositoryCommitsRequest;
|
||||
|
||||
ListRepositoryCommitsRequest::ListRepositoryCommitsRequest() :
|
||||
RoaServiceRequest("codeup", "2020-04-14")
|
||||
{
|
||||
setResourcePath("/api/v4/projects/[ProjectId]/repository/commits");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListRepositoryCommitsRequest::~ListRepositoryCommitsRequest()
|
||||
{}
|
||||
|
||||
std::string ListRepositoryCommitsRequest::getAccessToken()const
|
||||
{
|
||||
return accessToken_;
|
||||
}
|
||||
|
||||
void ListRepositoryCommitsRequest::setAccessToken(const std::string& accessToken)
|
||||
{
|
||||
accessToken_ = accessToken;
|
||||
setParameter("AccessToken", accessToken);
|
||||
}
|
||||
|
||||
bool ListRepositoryCommitsRequest::getShowSignature()const
|
||||
{
|
||||
return showSignature_;
|
||||
}
|
||||
|
||||
void ListRepositoryCommitsRequest::setShowSignature(bool showSignature)
|
||||
{
|
||||
showSignature_ = showSignature;
|
||||
setParameter("ShowSignature", showSignature ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ListRepositoryCommitsRequest::getRefName()const
|
||||
{
|
||||
return refName_;
|
||||
}
|
||||
|
||||
void ListRepositoryCommitsRequest::setRefName(const std::string& refName)
|
||||
{
|
||||
refName_ = refName;
|
||||
setParameter("RefName", refName);
|
||||
}
|
||||
|
||||
std::string ListRepositoryCommitsRequest::getOrganizationId()const
|
||||
{
|
||||
return organizationId_;
|
||||
}
|
||||
|
||||
void ListRepositoryCommitsRequest::setOrganizationId(const std::string& organizationId)
|
||||
{
|
||||
organizationId_ = organizationId;
|
||||
setParameter("OrganizationId", organizationId);
|
||||
}
|
||||
|
||||
std::string ListRepositoryCommitsRequest::getPath()const
|
||||
{
|
||||
return path_;
|
||||
}
|
||||
|
||||
void ListRepositoryCommitsRequest::setPath(const std::string& path)
|
||||
{
|
||||
path_ = path;
|
||||
setParameter("Path", path);
|
||||
}
|
||||
|
||||
std::string ListRepositoryCommitsRequest::getSearch()const
|
||||
{
|
||||
return search_;
|
||||
}
|
||||
|
||||
void ListRepositoryCommitsRequest::setSearch(const std::string& search)
|
||||
{
|
||||
search_ = search;
|
||||
setParameter("Search", search);
|
||||
}
|
||||
|
||||
long ListRepositoryCommitsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListRepositoryCommitsRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long ListRepositoryCommitsRequest::getPage()const
|
||||
{
|
||||
return page_;
|
||||
}
|
||||
|
||||
void ListRepositoryCommitsRequest::setPage(long page)
|
||||
{
|
||||
page_ = page;
|
||||
setParameter("Page", std::to_string(page));
|
||||
}
|
||||
|
||||
long ListRepositoryCommitsRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void ListRepositoryCommitsRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
113
codeup/src/model/ListRepositoryCommitsResult.cc
Normal file
113
codeup/src/model/ListRepositoryCommitsResult.cc
Normal file
@@ -0,0 +1,113 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/codeup/model/ListRepositoryCommitsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Codeup;
|
||||
using namespace AlibabaCloud::Codeup::Model;
|
||||
|
||||
ListRepositoryCommitsResult::ListRepositoryCommitsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListRepositoryCommitsResult::ListRepositoryCommitsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListRepositoryCommitsResult::~ListRepositoryCommitsResult()
|
||||
{}
|
||||
|
||||
void ListRepositoryCommitsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allResultNode = value["Result"]["ResultItem"];
|
||||
for (auto valueResultResultItem : allResultNode)
|
||||
{
|
||||
ResultItem resultObject;
|
||||
if(!valueResultResultItem["AuthorDate"].isNull())
|
||||
resultObject.authorDate = valueResultResultItem["AuthorDate"].asString();
|
||||
if(!valueResultResultItem["AuthorEmail"].isNull())
|
||||
resultObject.authorEmail = valueResultResultItem["AuthorEmail"].asString();
|
||||
if(!valueResultResultItem["AuthorName"].isNull())
|
||||
resultObject.authorName = valueResultResultItem["AuthorName"].asString();
|
||||
if(!valueResultResultItem["CommittedDate"].isNull())
|
||||
resultObject.committedDate = valueResultResultItem["CommittedDate"].asString();
|
||||
if(!valueResultResultItem["CommitterEmail"].isNull())
|
||||
resultObject.committerEmail = valueResultResultItem["CommitterEmail"].asString();
|
||||
if(!valueResultResultItem["CommitterName"].isNull())
|
||||
resultObject.committerName = valueResultResultItem["CommitterName"].asString();
|
||||
if(!valueResultResultItem["CreatedAt"].isNull())
|
||||
resultObject.createdAt = valueResultResultItem["CreatedAt"].asString();
|
||||
if(!valueResultResultItem["Id"].isNull())
|
||||
resultObject.id = valueResultResultItem["Id"].asString();
|
||||
if(!valueResultResultItem["Message"].isNull())
|
||||
resultObject.message = valueResultResultItem["Message"].asString();
|
||||
if(!valueResultResultItem["ShortId"].isNull())
|
||||
resultObject.shortId = valueResultResultItem["ShortId"].asString();
|
||||
if(!valueResultResultItem["Title"].isNull())
|
||||
resultObject.title = valueResultResultItem["Title"].asString();
|
||||
auto signatureNode = value["Signature"];
|
||||
if(!signatureNode["GpgKeyId"].isNull())
|
||||
resultObject.signature.gpgKeyId = signatureNode["GpgKeyId"].asString();
|
||||
if(!signatureNode["VerificationStatus"].isNull())
|
||||
resultObject.signature.verificationStatus = signatureNode["VerificationStatus"].asString();
|
||||
auto allParentIds = value["ParentIds"]["ParentIds"];
|
||||
for (auto value : allParentIds)
|
||||
resultObject.parentIds.push_back(value.asString());
|
||||
result_.push_back(resultObject);
|
||||
}
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Total"].isNull())
|
||||
total_ = std::stol(value["Total"].asString());
|
||||
|
||||
}
|
||||
|
||||
long ListRepositoryCommitsResult::getTotal()const
|
||||
{
|
||||
return total_;
|
||||
}
|
||||
|
||||
std::string ListRepositoryCommitsResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string ListRepositoryCommitsResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool ListRepositoryCommitsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::vector<ListRepositoryCommitsResult::ResultItem> ListRepositoryCommitsResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
@@ -55,6 +55,10 @@ void ListRepositoryMemberResult::parse(const std::string &payload)
|
||||
resultObject.avatarUrl = valueResultResultItem["AvatarUrl"].asString();
|
||||
if(!valueResultResultItem["Email"].isNull())
|
||||
resultObject.email = valueResultResultItem["Email"].asString();
|
||||
if(!valueResultResultItem["Name"].isNull())
|
||||
resultObject.name = valueResultResultItem["Name"].asString();
|
||||
if(!valueResultResultItem["Username"].isNull())
|
||||
resultObject.username = valueResultResultItem["Username"].asString();
|
||||
result_.push_back(resultObject);
|
||||
}
|
||||
if(!value["ErrorCode"].isNull())
|
||||
|
||||
85
codeup/src/model/UpdateMergeRequestCommentRequest.cc
Normal file
85
codeup/src/model/UpdateMergeRequestCommentRequest.cc
Normal file
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/codeup/model/UpdateMergeRequestCommentRequest.h>
|
||||
|
||||
using AlibabaCloud::Codeup::Model::UpdateMergeRequestCommentRequest;
|
||||
|
||||
UpdateMergeRequestCommentRequest::UpdateMergeRequestCommentRequest() :
|
||||
RoaServiceRequest("codeup", "2020-04-14")
|
||||
{
|
||||
setResourcePath("/api/v3/projects/[ProjectId]/merge_requests/[MergeRequestId]/notes/[NoteId]");
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
}
|
||||
|
||||
UpdateMergeRequestCommentRequest::~UpdateMergeRequestCommentRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateMergeRequestCommentRequest::getOrganizationId()const
|
||||
{
|
||||
return organizationId_;
|
||||
}
|
||||
|
||||
void UpdateMergeRequestCommentRequest::setOrganizationId(const std::string& organizationId)
|
||||
{
|
||||
organizationId_ = organizationId;
|
||||
setParameter("OrganizationId", organizationId);
|
||||
}
|
||||
|
||||
long UpdateMergeRequestCommentRequest::getMergeRequestId()const
|
||||
{
|
||||
return mergeRequestId_;
|
||||
}
|
||||
|
||||
void UpdateMergeRequestCommentRequest::setMergeRequestId(long mergeRequestId)
|
||||
{
|
||||
mergeRequestId_ = mergeRequestId;
|
||||
setParameter("MergeRequestId", std::to_string(mergeRequestId));
|
||||
}
|
||||
|
||||
std::string UpdateMergeRequestCommentRequest::getAccessToken()const
|
||||
{
|
||||
return accessToken_;
|
||||
}
|
||||
|
||||
void UpdateMergeRequestCommentRequest::setAccessToken(const std::string& accessToken)
|
||||
{
|
||||
accessToken_ = accessToken;
|
||||
setParameter("AccessToken", accessToken);
|
||||
}
|
||||
|
||||
long UpdateMergeRequestCommentRequest::getNoteId()const
|
||||
{
|
||||
return noteId_;
|
||||
}
|
||||
|
||||
void UpdateMergeRequestCommentRequest::setNoteId(long noteId)
|
||||
{
|
||||
noteId_ = noteId;
|
||||
setParameter("NoteId", std::to_string(noteId));
|
||||
}
|
||||
|
||||
long UpdateMergeRequestCommentRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void UpdateMergeRequestCommentRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
73
codeup/src/model/UpdateMergeRequestCommentResult.cc
Normal file
73
codeup/src/model/UpdateMergeRequestCommentResult.cc
Normal 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/codeup/model/UpdateMergeRequestCommentResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Codeup;
|
||||
using namespace AlibabaCloud::Codeup::Model;
|
||||
|
||||
UpdateMergeRequestCommentResult::UpdateMergeRequestCommentResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateMergeRequestCommentResult::UpdateMergeRequestCommentResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateMergeRequestCommentResult::~UpdateMergeRequestCommentResult()
|
||||
{}
|
||||
|
||||
void UpdateMergeRequestCommentResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["Result"].isNull())
|
||||
result_.result = resultNode["Result"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateMergeRequestCommentResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string UpdateMergeRequestCommentResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool UpdateMergeRequestCommentResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
UpdateMergeRequestCommentResult::Result UpdateMergeRequestCommentResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
74
codeup/src/model/UpdateMergeRequestRequest.cc
Normal file
74
codeup/src/model/UpdateMergeRequestRequest.cc
Normal 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/codeup/model/UpdateMergeRequestRequest.h>
|
||||
|
||||
using AlibabaCloud::Codeup::Model::UpdateMergeRequestRequest;
|
||||
|
||||
UpdateMergeRequestRequest::UpdateMergeRequestRequest() :
|
||||
RoaServiceRequest("codeup", "2020-04-14")
|
||||
{
|
||||
setResourcePath("/api/v3/projects/[ProjectId]/merge_request/[MergeRequestId]");
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
}
|
||||
|
||||
UpdateMergeRequestRequest::~UpdateMergeRequestRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateMergeRequestRequest::getOrganizationId()const
|
||||
{
|
||||
return organizationId_;
|
||||
}
|
||||
|
||||
void UpdateMergeRequestRequest::setOrganizationId(const std::string& organizationId)
|
||||
{
|
||||
organizationId_ = organizationId;
|
||||
setParameter("OrganizationId", organizationId);
|
||||
}
|
||||
|
||||
long UpdateMergeRequestRequest::getMergeRequestId()const
|
||||
{
|
||||
return mergeRequestId_;
|
||||
}
|
||||
|
||||
void UpdateMergeRequestRequest::setMergeRequestId(long mergeRequestId)
|
||||
{
|
||||
mergeRequestId_ = mergeRequestId;
|
||||
setParameter("MergeRequestId", std::to_string(mergeRequestId));
|
||||
}
|
||||
|
||||
std::string UpdateMergeRequestRequest::getAccessToken()const
|
||||
{
|
||||
return accessToken_;
|
||||
}
|
||||
|
||||
void UpdateMergeRequestRequest::setAccessToken(const std::string& accessToken)
|
||||
{
|
||||
accessToken_ = accessToken;
|
||||
setParameter("AccessToken", accessToken);
|
||||
}
|
||||
|
||||
long UpdateMergeRequestRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void UpdateMergeRequestRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
197
codeup/src/model/UpdateMergeRequestResult.cc
Normal file
197
codeup/src/model/UpdateMergeRequestResult.cc
Normal file
@@ -0,0 +1,197 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/codeup/model/UpdateMergeRequestResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Codeup;
|
||||
using namespace AlibabaCloud::Codeup::Model;
|
||||
|
||||
UpdateMergeRequestResult::UpdateMergeRequestResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateMergeRequestResult::UpdateMergeRequestResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateMergeRequestResult::~UpdateMergeRequestResult()
|
||||
{}
|
||||
|
||||
void UpdateMergeRequestResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["AcceptedRevision"].isNull())
|
||||
result_.acceptedRevision = resultNode["AcceptedRevision"].asString();
|
||||
if(!resultNode["AheadCommitCount"].isNull())
|
||||
result_.aheadCommitCount = std::stoi(resultNode["AheadCommitCount"].asString());
|
||||
if(!resultNode["BehindCommitCount"].isNull())
|
||||
result_.behindCommitCount = std::stoi(resultNode["BehindCommitCount"].asString());
|
||||
if(!resultNode["CreatedAt"].isNull())
|
||||
result_.createdAt = resultNode["CreatedAt"].asString();
|
||||
if(!resultNode["Description"].isNull())
|
||||
result_.description = resultNode["Description"].asString();
|
||||
if(!resultNode["Id"].isNull())
|
||||
result_.id = std::stol(resultNode["Id"].asString());
|
||||
if(!resultNode["MergeError"].isNull())
|
||||
result_.mergeError = resultNode["MergeError"].asString();
|
||||
if(!resultNode["MergeStatus"].isNull())
|
||||
result_.mergeStatus = resultNode["MergeStatus"].asString();
|
||||
if(!resultNode["MergeType"].isNull())
|
||||
result_.mergeType = resultNode["MergeType"].asString();
|
||||
if(!resultNode["MergedRevision"].isNull())
|
||||
result_.mergedRevision = resultNode["MergedRevision"].asString();
|
||||
if(!resultNode["NameWithNamespace"].isNull())
|
||||
result_.nameWithNamespace = resultNode["NameWithNamespace"].asString();
|
||||
if(!resultNode["ProjectId"].isNull())
|
||||
result_.projectId = std::stol(resultNode["ProjectId"].asString());
|
||||
if(!resultNode["SourceBranch"].isNull())
|
||||
result_.sourceBranch = resultNode["SourceBranch"].asString();
|
||||
if(!resultNode["State"].isNull())
|
||||
result_.state = resultNode["State"].asString();
|
||||
if(!resultNode["TargetBranch"].isNull())
|
||||
result_.targetBranch = resultNode["TargetBranch"].asString();
|
||||
if(!resultNode["Title"].isNull())
|
||||
result_.title = resultNode["Title"].asString();
|
||||
if(!resultNode["UpdatedAt"].isNull())
|
||||
result_.updatedAt = resultNode["UpdatedAt"].asString();
|
||||
if(!resultNode["WebUrl"].isNull())
|
||||
result_.webUrl = resultNode["WebUrl"].asString();
|
||||
auto allAssigneeListNode = resultNode["AssigneeList"]["AssigneeListItem"];
|
||||
for (auto resultNodeAssigneeListAssigneeListItem : allAssigneeListNode)
|
||||
{
|
||||
Result::AssigneeListItem assigneeListItemObject;
|
||||
if(!resultNodeAssigneeListAssigneeListItem["AvatarUrl"].isNull())
|
||||
assigneeListItemObject.avatarUrl = resultNodeAssigneeListAssigneeListItem["AvatarUrl"].asString();
|
||||
if(!resultNodeAssigneeListAssigneeListItem["ExternUserId"].isNull())
|
||||
assigneeListItemObject.externUserId = resultNodeAssigneeListAssigneeListItem["ExternUserId"].asString();
|
||||
if(!resultNodeAssigneeListAssigneeListItem["Id"].isNull())
|
||||
assigneeListItemObject.id = resultNodeAssigneeListAssigneeListItem["Id"].asString();
|
||||
if(!resultNodeAssigneeListAssigneeListItem["Name"].isNull())
|
||||
assigneeListItemObject.name = resultNodeAssigneeListAssigneeListItem["Name"].asString();
|
||||
result_.assigneeList.push_back(assigneeListItemObject);
|
||||
}
|
||||
auto approveCheckResultNode = resultNode["ApproveCheckResult"];
|
||||
if(!approveCheckResultNode["TotalCheckResult"].isNull())
|
||||
result_.approveCheckResult.totalCheckResult = approveCheckResultNode["TotalCheckResult"].asString();
|
||||
auto allSatisfiedCheckResultsNode = approveCheckResultNode["SatisfiedCheckResults"]["SatisfiedCheckResultsItem"];
|
||||
for (auto approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem : allSatisfiedCheckResultsNode)
|
||||
{
|
||||
Result::ApproveCheckResult::SatisfiedCheckResultsItem satisfiedCheckResultsItemObject;
|
||||
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckName"].isNull())
|
||||
satisfiedCheckResultsItemObject.checkName = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckName"].asString();
|
||||
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckStatus"].isNull())
|
||||
satisfiedCheckResultsItemObject.checkStatus = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckStatus"].asString();
|
||||
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckType"].isNull())
|
||||
satisfiedCheckResultsItemObject.checkType = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckType"].asString();
|
||||
auto allExtraUsersNode = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["ExtraUsers"]["ExtraUsersItem"];
|
||||
for (auto approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem : allExtraUsersNode)
|
||||
{
|
||||
Result::ApproveCheckResult::SatisfiedCheckResultsItem::ExtraUsersItem extraUsersObject;
|
||||
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["AvatarUrl"].isNull())
|
||||
extraUsersObject.avatarUrl = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["AvatarUrl"].asString();
|
||||
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["ExternUserId"].isNull())
|
||||
extraUsersObject.externUserId = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["ExternUserId"].asString();
|
||||
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["Id"].isNull())
|
||||
extraUsersObject.id = std::stol(approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["Id"].asString());
|
||||
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["Name"].isNull())
|
||||
extraUsersObject.name = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["Name"].asString();
|
||||
satisfiedCheckResultsItemObject.extraUsers.push_back(extraUsersObject);
|
||||
}
|
||||
auto allSatisfiedItems = value["SatisfiedItems"]["SatisfiedItems"];
|
||||
for (auto value : allSatisfiedItems)
|
||||
satisfiedCheckResultsItemObject.satisfiedItems.push_back(value.asString());
|
||||
auto allUnsatisfiedItems = value["UnsatisfiedItems"]["UnsatisfiedItems"];
|
||||
for (auto value : allUnsatisfiedItems)
|
||||
satisfiedCheckResultsItemObject.unsatisfiedItems.push_back(value.asString());
|
||||
result_.approveCheckResult.satisfiedCheckResults.push_back(satisfiedCheckResultsItemObject);
|
||||
}
|
||||
auto allUnsatisfiedCheckResultsNode = approveCheckResultNode["UnsatisfiedCheckResults"]["UnsatisfiedCheckResultsItem"];
|
||||
for (auto approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem : allUnsatisfiedCheckResultsNode)
|
||||
{
|
||||
Result::ApproveCheckResult::UnsatisfiedCheckResultsItem unsatisfiedCheckResultsItemObject;
|
||||
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckName"].isNull())
|
||||
unsatisfiedCheckResultsItemObject.checkName = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckName"].asString();
|
||||
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckStatus"].isNull())
|
||||
unsatisfiedCheckResultsItemObject.checkStatus = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckStatus"].asString();
|
||||
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckType"].isNull())
|
||||
unsatisfiedCheckResultsItemObject.checkType = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckType"].asString();
|
||||
auto allExtraUsers3Node = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["ExtraUsers"]["ExtraUsersItem"];
|
||||
for (auto approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem : allExtraUsers3Node)
|
||||
{
|
||||
Result::ApproveCheckResult::UnsatisfiedCheckResultsItem::ExtraUsersItem4 extraUsers3Object;
|
||||
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["AvatarUrl"].isNull())
|
||||
extraUsers3Object.avatarUrl = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["AvatarUrl"].asString();
|
||||
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["ExternUserId"].isNull())
|
||||
extraUsers3Object.externUserId = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["ExternUserId"].asString();
|
||||
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["Id"].isNull())
|
||||
extraUsers3Object.id = std::stol(approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["Id"].asString());
|
||||
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["Name"].isNull())
|
||||
extraUsers3Object.name = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["Name"].asString();
|
||||
unsatisfiedCheckResultsItemObject.extraUsers3.push_back(extraUsers3Object);
|
||||
}
|
||||
auto allSatisfiedItems1 = value["SatisfiedItems"]["SatisfiedItems"];
|
||||
for (auto value : allSatisfiedItems1)
|
||||
unsatisfiedCheckResultsItemObject.satisfiedItems1.push_back(value.asString());
|
||||
auto allUnsatisfiedItems2 = value["UnsatisfiedItems"]["UnsatisfiedItems"];
|
||||
for (auto value : allUnsatisfiedItems2)
|
||||
unsatisfiedCheckResultsItemObject.unsatisfiedItems2.push_back(value.asString());
|
||||
result_.approveCheckResult.unsatisfiedCheckResults.push_back(unsatisfiedCheckResultsItemObject);
|
||||
}
|
||||
auto authorNode = resultNode["Author"];
|
||||
if(!authorNode["AvatarUrl"].isNull())
|
||||
result_.author.avatarUrl = authorNode["AvatarUrl"].asString();
|
||||
if(!authorNode["ExternUserId"].isNull())
|
||||
result_.author.externUserId = authorNode["ExternUserId"].asString();
|
||||
if(!authorNode["Id"].isNull())
|
||||
result_.author.id = std::stol(authorNode["Id"].asString());
|
||||
if(!authorNode["Name"].isNull())
|
||||
result_.author.name = authorNode["Name"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateMergeRequestResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string UpdateMergeRequestResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool UpdateMergeRequestResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
UpdateMergeRequestResult::Result UpdateMergeRequestResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
63
codeup/src/model/UpdateMergeRequestSettingRequest.cc
Normal file
63
codeup/src/model/UpdateMergeRequestSettingRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/codeup/model/UpdateMergeRequestSettingRequest.h>
|
||||
|
||||
using AlibabaCloud::Codeup::Model::UpdateMergeRequestSettingRequest;
|
||||
|
||||
UpdateMergeRequestSettingRequest::UpdateMergeRequestSettingRequest() :
|
||||
RoaServiceRequest("codeup", "2020-04-14")
|
||||
{
|
||||
setResourcePath("/api/v4/projects/[ProjectId]/settings/merge_requests");
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
}
|
||||
|
||||
UpdateMergeRequestSettingRequest::~UpdateMergeRequestSettingRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateMergeRequestSettingRequest::getOrganizationId()const
|
||||
{
|
||||
return organizationId_;
|
||||
}
|
||||
|
||||
void UpdateMergeRequestSettingRequest::setOrganizationId(const std::string& organizationId)
|
||||
{
|
||||
organizationId_ = organizationId;
|
||||
setParameter("OrganizationId", organizationId);
|
||||
}
|
||||
|
||||
std::string UpdateMergeRequestSettingRequest::getAccessToken()const
|
||||
{
|
||||
return accessToken_;
|
||||
}
|
||||
|
||||
void UpdateMergeRequestSettingRequest::setAccessToken(const std::string& accessToken)
|
||||
{
|
||||
accessToken_ = accessToken;
|
||||
setParameter("AccessToken", accessToken);
|
||||
}
|
||||
|
||||
long UpdateMergeRequestSettingRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void UpdateMergeRequestSettingRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
73
codeup/src/model/UpdateMergeRequestSettingResult.cc
Normal file
73
codeup/src/model/UpdateMergeRequestSettingResult.cc
Normal 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/codeup/model/UpdateMergeRequestSettingResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Codeup;
|
||||
using namespace AlibabaCloud::Codeup::Model;
|
||||
|
||||
UpdateMergeRequestSettingResult::UpdateMergeRequestSettingResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateMergeRequestSettingResult::UpdateMergeRequestSettingResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateMergeRequestSettingResult::~UpdateMergeRequestSettingResult()
|
||||
{}
|
||||
|
||||
void UpdateMergeRequestSettingResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["Result"].isNull())
|
||||
result_.result = resultNode["Result"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateMergeRequestSettingResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string UpdateMergeRequestSettingResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool UpdateMergeRequestSettingResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
UpdateMergeRequestSettingResult::Result UpdateMergeRequestSettingResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
@@ -31,6 +31,8 @@ set(dataworks-public_public_header_model
|
||||
include/alibabacloud/dataworks-public/model/CheckMetaPartitionResult.h
|
||||
include/alibabacloud/dataworks-public/model/CheckMetaTableRequest.h
|
||||
include/alibabacloud/dataworks-public/model/CheckMetaTableResult.h
|
||||
include/alibabacloud/dataworks-public/model/CreateBusinessRequest.h
|
||||
include/alibabacloud/dataworks-public/model/CreateBusinessResult.h
|
||||
include/alibabacloud/dataworks-public/model/CreateConnectionRequest.h
|
||||
include/alibabacloud/dataworks-public/model/CreateConnectionResult.h
|
||||
include/alibabacloud/dataworks-public/model/CreateDagComplementRequest.h
|
||||
@@ -336,6 +338,8 @@ set(dataworks-public_src
|
||||
src/model/CheckMetaPartitionResult.cc
|
||||
src/model/CheckMetaTableRequest.cc
|
||||
src/model/CheckMetaTableResult.cc
|
||||
src/model/CreateBusinessRequest.cc
|
||||
src/model/CreateBusinessResult.cc
|
||||
src/model/CreateConnectionRequest.cc
|
||||
src/model/CreateConnectionResult.cc
|
||||
src/model/CreateDagComplementRequest.cc
|
||||
|
||||
@@ -32,6 +32,8 @@
|
||||
#include "model/CheckMetaPartitionResult.h"
|
||||
#include "model/CheckMetaTableRequest.h"
|
||||
#include "model/CheckMetaTableResult.h"
|
||||
#include "model/CreateBusinessRequest.h"
|
||||
#include "model/CreateBusinessResult.h"
|
||||
#include "model/CreateConnectionRequest.h"
|
||||
#include "model/CreateConnectionResult.h"
|
||||
#include "model/CreateDagComplementRequest.h"
|
||||
@@ -348,6 +350,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CheckMetaTableResult> CheckMetaTableOutcome;
|
||||
typedef std::future<CheckMetaTableOutcome> CheckMetaTableOutcomeCallable;
|
||||
typedef std::function<void(const Dataworks_publicClient*, const Model::CheckMetaTableRequest&, const CheckMetaTableOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CheckMetaTableAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateBusinessResult> CreateBusinessOutcome;
|
||||
typedef std::future<CreateBusinessOutcome> CreateBusinessOutcomeCallable;
|
||||
typedef std::function<void(const Dataworks_publicClient*, const Model::CreateBusinessRequest&, const CreateBusinessOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateBusinessAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateConnectionResult> CreateConnectionOutcome;
|
||||
typedef std::future<CreateConnectionOutcome> CreateConnectionOutcomeCallable;
|
||||
typedef std::function<void(const Dataworks_publicClient*, const Model::CreateConnectionRequest&, const CreateConnectionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateConnectionAsyncHandler;
|
||||
@@ -806,6 +811,9 @@ namespace AlibabaCloud
|
||||
CheckMetaTableOutcome checkMetaTable(const Model::CheckMetaTableRequest &request)const;
|
||||
void checkMetaTableAsync(const Model::CheckMetaTableRequest& request, const CheckMetaTableAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CheckMetaTableOutcomeCallable checkMetaTableCallable(const Model::CheckMetaTableRequest& request) const;
|
||||
CreateBusinessOutcome createBusiness(const Model::CreateBusinessRequest &request)const;
|
||||
void createBusinessAsync(const Model::CreateBusinessRequest& request, const CreateBusinessAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateBusinessOutcomeCallable createBusinessCallable(const Model::CreateBusinessRequest& request) const;
|
||||
CreateConnectionOutcome createConnection(const Model::CreateConnectionRequest &request)const;
|
||||
void createConnectionAsync(const Model::CreateConnectionRequest& request, const CreateConnectionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateConnectionOutcomeCallable createConnectionCallable(const Model::CreateConnectionRequest& request) const;
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* 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_DATAWORKS_PUBLIC_MODEL_CREATEBUSINESSREQUEST_H_
|
||||
#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_CREATEBUSINESSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dataworks-public/Dataworks_publicExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dataworks_public
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT CreateBusinessRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateBusinessRequest();
|
||||
~CreateBusinessRequest();
|
||||
|
||||
std::string getOwner()const;
|
||||
void setOwner(const std::string& owner);
|
||||
std::string getBusinessName()const;
|
||||
void setBusinessName(const std::string& businessName);
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
long getProjectId()const;
|
||||
void setProjectId(long projectId);
|
||||
std::string getUseType()const;
|
||||
void setUseType(const std::string& useType);
|
||||
std::string getProjectIdentifier()const;
|
||||
void setProjectIdentifier(const std::string& projectIdentifier);
|
||||
|
||||
private:
|
||||
std::string owner_;
|
||||
std::string businessName_;
|
||||
std::string description_;
|
||||
long projectId_;
|
||||
std::string useType_;
|
||||
std::string projectIdentifier_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_CREATEBUSINESSREQUEST_H_
|
||||
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* 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_DATAWORKS_PUBLIC_MODEL_CREATEBUSINESSRESULT_H_
|
||||
#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_CREATEBUSINESSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dataworks-public/Dataworks_publicExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dataworks_public
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT CreateBusinessResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateBusinessResult();
|
||||
explicit CreateBusinessResult(const std::string &payload);
|
||||
~CreateBusinessResult();
|
||||
int getHttpStatusCode()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
long getBusinessId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int httpStatusCode_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
long businessId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_CREATEBUSINESSRESULT_H_
|
||||
@@ -40,14 +40,14 @@ namespace AlibabaCloud
|
||||
{
|
||||
int singleCheckResult;
|
||||
float value;
|
||||
long bizDate;
|
||||
std::string bizDate;
|
||||
std::string discreteProperty;
|
||||
float threshold;
|
||||
};
|
||||
struct SampleValueItem
|
||||
{
|
||||
float value;
|
||||
long bizDate;
|
||||
std::string bizDate;
|
||||
std::string discreteProperty;
|
||||
};
|
||||
std::string op;
|
||||
|
||||
@@ -231,6 +231,42 @@ Dataworks_publicClient::CheckMetaTableOutcomeCallable Dataworks_publicClient::ch
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dataworks_publicClient::CreateBusinessOutcome Dataworks_publicClient::createBusiness(const CreateBusinessRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateBusinessOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateBusinessOutcome(CreateBusinessResult(outcome.result()));
|
||||
else
|
||||
return CreateBusinessOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dataworks_publicClient::createBusinessAsync(const CreateBusinessRequest& request, const CreateBusinessAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createBusiness(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dataworks_publicClient::CreateBusinessOutcomeCallable Dataworks_publicClient::createBusinessCallable(const CreateBusinessRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateBusinessOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createBusiness(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dataworks_publicClient::CreateConnectionOutcome Dataworks_publicClient::createConnection(const CreateConnectionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
95
dataworks-public/src/model/CreateBusinessRequest.cc
Normal file
95
dataworks-public/src/model/CreateBusinessRequest.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/CreateBusinessRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::CreateBusinessRequest;
|
||||
|
||||
CreateBusinessRequest::CreateBusinessRequest() :
|
||||
RpcServiceRequest("dataworks-public", "2020-05-18", "CreateBusiness")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateBusinessRequest::~CreateBusinessRequest()
|
||||
{}
|
||||
|
||||
std::string CreateBusinessRequest::getOwner()const
|
||||
{
|
||||
return owner_;
|
||||
}
|
||||
|
||||
void CreateBusinessRequest::setOwner(const std::string& owner)
|
||||
{
|
||||
owner_ = owner;
|
||||
setBodyParameter("Owner", owner);
|
||||
}
|
||||
|
||||
std::string CreateBusinessRequest::getBusinessName()const
|
||||
{
|
||||
return businessName_;
|
||||
}
|
||||
|
||||
void CreateBusinessRequest::setBusinessName(const std::string& businessName)
|
||||
{
|
||||
businessName_ = businessName;
|
||||
setBodyParameter("BusinessName", businessName);
|
||||
}
|
||||
|
||||
std::string CreateBusinessRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateBusinessRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setBodyParameter("Description", description);
|
||||
}
|
||||
|
||||
long CreateBusinessRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void CreateBusinessRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setBodyParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
std::string CreateBusinessRequest::getUseType()const
|
||||
{
|
||||
return useType_;
|
||||
}
|
||||
|
||||
void CreateBusinessRequest::setUseType(const std::string& useType)
|
||||
{
|
||||
useType_ = useType;
|
||||
setBodyParameter("UseType", useType);
|
||||
}
|
||||
|
||||
std::string CreateBusinessRequest::getProjectIdentifier()const
|
||||
{
|
||||
return projectIdentifier_;
|
||||
}
|
||||
|
||||
void CreateBusinessRequest::setProjectIdentifier(const std::string& projectIdentifier)
|
||||
{
|
||||
projectIdentifier_ = projectIdentifier;
|
||||
setBodyParameter("ProjectIdentifier", projectIdentifier);
|
||||
}
|
||||
|
||||
79
dataworks-public/src/model/CreateBusinessResult.cc
Normal file
79
dataworks-public/src/model/CreateBusinessResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/CreateBusinessResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
CreateBusinessResult::CreateBusinessResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateBusinessResult::CreateBusinessResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateBusinessResult::~CreateBusinessResult()
|
||||
{}
|
||||
|
||||
void CreateBusinessResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["BusinessId"].isNull())
|
||||
businessId_ = std::stol(value["BusinessId"].asString());
|
||||
|
||||
}
|
||||
|
||||
int CreateBusinessResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string CreateBusinessResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string CreateBusinessResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool CreateBusinessResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
long CreateBusinessResult::getBusinessId()const
|
||||
{
|
||||
return businessId_;
|
||||
}
|
||||
|
||||
@@ -133,7 +133,7 @@ void ListQualityResultsByRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Data::RuleChecksItem::ReferenceValueItem referenceValueObject;
|
||||
if(!dataNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["BizDate"].isNull())
|
||||
referenceValueObject.bizDate = std::stol(dataNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["BizDate"].asString());
|
||||
referenceValueObject.bizDate = dataNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["BizDate"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["DiscreteProperty"].isNull())
|
||||
referenceValueObject.discreteProperty = dataNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["DiscreteProperty"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["Value"].isNull())
|
||||
@@ -149,7 +149,7 @@ void ListQualityResultsByRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Data::RuleChecksItem::SampleValueItem sampleValueObject;
|
||||
if(!dataNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["BizDate"].isNull())
|
||||
sampleValueObject.bizDate = std::stol(dataNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["BizDate"].asString());
|
||||
sampleValueObject.bizDate = dataNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["BizDate"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["DiscreteProperty"].isNull())
|
||||
sampleValueObject.discreteProperty = dataNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["DiscreteProperty"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["Value"].isNull())
|
||||
|
||||
@@ -89,8 +89,6 @@ set(dds_public_header_model
|
||||
include/alibabacloud/dds/model/DescribeDedicatedClusterInstanceListResult.h
|
||||
include/alibabacloud/dds/model/DescribeErrorLogRecordsRequest.h
|
||||
include/alibabacloud/dds/model/DescribeErrorLogRecordsResult.h
|
||||
include/alibabacloud/dds/model/DescribeIndexRecommendationRequest.h
|
||||
include/alibabacloud/dds/model/DescribeIndexRecommendationResult.h
|
||||
include/alibabacloud/dds/model/DescribeInstanceAutoRenewalAttributeRequest.h
|
||||
include/alibabacloud/dds/model/DescribeInstanceAutoRenewalAttributeResult.h
|
||||
include/alibabacloud/dds/model/DescribeKernelReleaseNotesRequest.h
|
||||
@@ -270,8 +268,6 @@ set(dds_src
|
||||
src/model/DescribeDedicatedClusterInstanceListResult.cc
|
||||
src/model/DescribeErrorLogRecordsRequest.cc
|
||||
src/model/DescribeErrorLogRecordsResult.cc
|
||||
src/model/DescribeIndexRecommendationRequest.cc
|
||||
src/model/DescribeIndexRecommendationResult.cc
|
||||
src/model/DescribeInstanceAutoRenewalAttributeRequest.cc
|
||||
src/model/DescribeInstanceAutoRenewalAttributeResult.cc
|
||||
src/model/DescribeKernelReleaseNotesRequest.cc
|
||||
|
||||
@@ -90,8 +90,6 @@
|
||||
#include "model/DescribeDedicatedClusterInstanceListResult.h"
|
||||
#include "model/DescribeErrorLogRecordsRequest.h"
|
||||
#include "model/DescribeErrorLogRecordsResult.h"
|
||||
#include "model/DescribeIndexRecommendationRequest.h"
|
||||
#include "model/DescribeIndexRecommendationResult.h"
|
||||
#include "model/DescribeInstanceAutoRenewalAttributeRequest.h"
|
||||
#include "model/DescribeInstanceAutoRenewalAttributeResult.h"
|
||||
#include "model/DescribeKernelReleaseNotesRequest.h"
|
||||
@@ -311,9 +309,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeErrorLogRecordsResult> DescribeErrorLogRecordsOutcome;
|
||||
typedef std::future<DescribeErrorLogRecordsOutcome> DescribeErrorLogRecordsOutcomeCallable;
|
||||
typedef std::function<void(const DdsClient*, const Model::DescribeErrorLogRecordsRequest&, const DescribeErrorLogRecordsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeErrorLogRecordsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeIndexRecommendationResult> DescribeIndexRecommendationOutcome;
|
||||
typedef std::future<DescribeIndexRecommendationOutcome> DescribeIndexRecommendationOutcomeCallable;
|
||||
typedef std::function<void(const DdsClient*, const Model::DescribeIndexRecommendationRequest&, const DescribeIndexRecommendationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeIndexRecommendationAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeInstanceAutoRenewalAttributeResult> DescribeInstanceAutoRenewalAttributeOutcome;
|
||||
typedef std::future<DescribeInstanceAutoRenewalAttributeOutcome> DescribeInstanceAutoRenewalAttributeOutcomeCallable;
|
||||
typedef std::function<void(const DdsClient*, const Model::DescribeInstanceAutoRenewalAttributeRequest&, const DescribeInstanceAutoRenewalAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeInstanceAutoRenewalAttributeAsyncHandler;
|
||||
@@ -583,9 +578,6 @@ namespace AlibabaCloud
|
||||
DescribeErrorLogRecordsOutcome describeErrorLogRecords(const Model::DescribeErrorLogRecordsRequest &request)const;
|
||||
void describeErrorLogRecordsAsync(const Model::DescribeErrorLogRecordsRequest& request, const DescribeErrorLogRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeErrorLogRecordsOutcomeCallable describeErrorLogRecordsCallable(const Model::DescribeErrorLogRecordsRequest& request) const;
|
||||
DescribeIndexRecommendationOutcome describeIndexRecommendation(const Model::DescribeIndexRecommendationRequest &request)const;
|
||||
void describeIndexRecommendationAsync(const Model::DescribeIndexRecommendationRequest& request, const DescribeIndexRecommendationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeIndexRecommendationOutcomeCallable describeIndexRecommendationCallable(const Model::DescribeIndexRecommendationRequest& request) const;
|
||||
DescribeInstanceAutoRenewalAttributeOutcome describeInstanceAutoRenewalAttribute(const Model::DescribeInstanceAutoRenewalAttributeRequest &request)const;
|
||||
void describeInstanceAutoRenewalAttributeAsync(const Model::DescribeInstanceAutoRenewalAttributeRequest& request, const DescribeInstanceAutoRenewalAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeInstanceAutoRenewalAttributeOutcomeCallable describeInstanceAutoRenewalAttributeCallable(const Model::DescribeInstanceAutoRenewalAttributeRequest& request) const;
|
||||
|
||||
@@ -41,6 +41,8 @@ namespace AlibabaCloud
|
||||
void setNodeType(const std::string& nodeType);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
int getReadonlyReplicas()const;
|
||||
void setReadonlyReplicas(int readonlyReplicas);
|
||||
std::string getNodeClass()const;
|
||||
void setNodeClass(const std::string& nodeClass);
|
||||
std::string getAccessKeyId()const;
|
||||
@@ -66,6 +68,7 @@ namespace AlibabaCloud
|
||||
long resourceOwnerId_;
|
||||
std::string nodeType_;
|
||||
std::string clientToken_;
|
||||
int readonlyReplicas_;
|
||||
std::string nodeClass_;
|
||||
std::string accessKeyId_;
|
||||
std::string securityToken_;
|
||||
|
||||
@@ -33,6 +33,7 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct ReplicaSet
|
||||
{
|
||||
int readonlyReplicas;
|
||||
int storage;
|
||||
std::string _class;
|
||||
};
|
||||
@@ -84,12 +85,12 @@ namespace AlibabaCloud
|
||||
void setConfigServer(const std::vector<ConfigServer>& configServer);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::vector<Mongos> getMongos()const;
|
||||
void setMongos(const std::vector<Mongos>& mongos);
|
||||
std::string getSecurityIPList()const;
|
||||
void setSecurityIPList(const std::string& securityIPList);
|
||||
std::string getVSwitchId()const;
|
||||
void setVSwitchId(const std::string& vSwitchId);
|
||||
std::vector<Mongos> getMongos()const;
|
||||
void setMongos(const std::vector<Mongos>& mongos);
|
||||
std::string getAccountPassword()const;
|
||||
void setAccountPassword(const std::string& accountPassword);
|
||||
std::string getAutoRenew()const;
|
||||
@@ -121,9 +122,9 @@ namespace AlibabaCloud
|
||||
std::string ownerAccount_;
|
||||
std::vector<ConfigServer> configServer_;
|
||||
long ownerId_;
|
||||
std::vector<Mongos> mongos_;
|
||||
std::string securityIPList_;
|
||||
std::string vSwitchId_;
|
||||
std::vector<Mongos> mongos_;
|
||||
std::string accountPassword_;
|
||||
std::string autoRenew_;
|
||||
std::string vpcId_;
|
||||
|
||||
@@ -51,10 +51,11 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string nodeClass;
|
||||
std::string nodeDescription;
|
||||
int readonlyReplicas;
|
||||
int maxConnections;
|
||||
int port;
|
||||
std::string nodeId;
|
||||
int nodeStorage;
|
||||
std::string nodeId;
|
||||
std::string connectString;
|
||||
int maxIOPS;
|
||||
};
|
||||
@@ -64,26 +65,26 @@ namespace AlibabaCloud
|
||||
std::string nodeDescription;
|
||||
int maxConnections;
|
||||
int port;
|
||||
std::string nodeId;
|
||||
int nodeStorage;
|
||||
std::string nodeId;
|
||||
std::string connectString;
|
||||
int maxIOPS;
|
||||
};
|
||||
struct ReplicaSet
|
||||
{
|
||||
std::string replicaSetRole;
|
||||
std::string connectionDomain;
|
||||
std::string vPCCloudInstanceId;
|
||||
std::string connectionPort;
|
||||
std::string vPCId;
|
||||
std::string networkType;
|
||||
std::string vSwitchId;
|
||||
};
|
||||
struct Tag
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
struct ReplicaSet
|
||||
{
|
||||
std::string connectionDomain;
|
||||
std::string replicaSetRole;
|
||||
std::string vPCCloudInstanceId;
|
||||
std::string vPCId;
|
||||
std::string connectionPort;
|
||||
std::string networkType;
|
||||
std::string vSwitchId;
|
||||
};
|
||||
std::string vPCCloudInstanceIds;
|
||||
std::string resourceGroupId;
|
||||
std::string dBInstanceType;
|
||||
@@ -97,27 +98,27 @@ namespace AlibabaCloud
|
||||
int dBInstanceStorage;
|
||||
std::string lastDowngradeTime;
|
||||
std::vector<DBInstance::Tag> tags;
|
||||
std::string dBInstanceDescription;
|
||||
std::string engine;
|
||||
std::string maintainStartTime;
|
||||
std::string dBInstanceDescription;
|
||||
std::string replacateId;
|
||||
bool dBInstanceReleaseProtection;
|
||||
std::string engineVersion;
|
||||
std::string zoneId;
|
||||
std::string dBInstanceStatus;
|
||||
std::string replicationFactor;
|
||||
std::string readonlyReplicas;
|
||||
int maxConnections;
|
||||
std::string zoneId;
|
||||
std::string dBInstanceStatus;
|
||||
std::string dBInstanceClass;
|
||||
std::string vPCId;
|
||||
std::string vSwitchId;
|
||||
std::vector<DBInstance::ShardAttribute> shardList;
|
||||
std::string lockMode;
|
||||
int maxIOPS;
|
||||
std::string chargeType;
|
||||
std::string currentKernelVersion;
|
||||
std::string protocolType;
|
||||
std::string vpcAuthMode;
|
||||
std::string chargeType;
|
||||
std::string creationTime;
|
||||
std::vector<DBInstance::ConfigserverAttribute> configserverList;
|
||||
std::string regionId;
|
||||
|
||||
@@ -44,6 +44,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string nodeClass;
|
||||
std::string nodeDescription;
|
||||
int readonlyReplicas;
|
||||
std::string nodeId;
|
||||
int nodeStorage;
|
||||
};
|
||||
@@ -53,10 +54,10 @@ namespace AlibabaCloud
|
||||
std::string key;
|
||||
};
|
||||
std::string engineVersion;
|
||||
std::string resourceGroupId;
|
||||
std::string zoneId;
|
||||
std::string dBInstanceStatus;
|
||||
std::string replicationFactor;
|
||||
std::string zoneId;
|
||||
std::string resourceGroupId;
|
||||
std::string dBInstanceStatus;
|
||||
std::string dBInstanceClass;
|
||||
std::string destroyTime;
|
||||
std::vector<DBInstance::ShardAttribute> shardList;
|
||||
@@ -64,9 +65,9 @@ namespace AlibabaCloud
|
||||
std::string lockMode;
|
||||
std::vector<DBInstance::MongosAttribute> mongosList;
|
||||
std::string dBInstanceId;
|
||||
std::string chargeType;
|
||||
std::string networkType;
|
||||
std::string vpcAuthMode;
|
||||
std::string chargeType;
|
||||
int dBInstanceStorage;
|
||||
std::string lastDowngradeTime;
|
||||
std::string creationTime;
|
||||
@@ -74,8 +75,8 @@ namespace AlibabaCloud
|
||||
std::string expireTime;
|
||||
std::string kindCode;
|
||||
std::vector<DBInstance::Tag> tags;
|
||||
std::string dBInstanceDescription;
|
||||
std::string engine;
|
||||
std::string dBInstanceDescription;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -1,81 +0,0 @@
|
||||
/*
|
||||
* 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_DDS_MODEL_DESCRIBEINDEXRECOMMENDATIONRESULT_H_
|
||||
#define ALIBABACLOUD_DDS_MODEL_DESCRIBEINDEXRECOMMENDATIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dds/DdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DDS_EXPORT DescribeIndexRecommendationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Analyzation
|
||||
{
|
||||
struct Recommendation
|
||||
{
|
||||
std::string recmdType;
|
||||
std::string content;
|
||||
};
|
||||
long averageReturnRowCount;
|
||||
std::string query;
|
||||
long totalExecutionTime;
|
||||
std::vector<std::string> indexCombines;
|
||||
long averageDocsExaminedCount;
|
||||
std::string _namespace;
|
||||
std::string operation;
|
||||
long count;
|
||||
std::vector<Analyzation::Recommendation> indexRecommendations;
|
||||
long averageKeysExaminedCount;
|
||||
std::string executionPlan;
|
||||
std::string inMemorySort;
|
||||
std::string database;
|
||||
std::string lastExecutionTime;
|
||||
std::string sort;
|
||||
long averageExecutionTime;
|
||||
};
|
||||
|
||||
|
||||
DescribeIndexRecommendationResult();
|
||||
explicit DescribeIndexRecommendationResult(const std::string &payload);
|
||||
~DescribeIndexRecommendationResult();
|
||||
int getTotalRecordCount()const;
|
||||
int getPageRecordCount()const;
|
||||
std::vector<Analyzation> getAnalyzations()const;
|
||||
int getPageNumber()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int totalRecordCount_;
|
||||
int pageRecordCount_;
|
||||
std::vector<Analyzation> analyzations_;
|
||||
int pageNumber_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEINDEXRECOMMENDATIONRESULT_H_
|
||||
@@ -37,16 +37,16 @@ namespace AlibabaCloud
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getPageNumber()const;
|
||||
void setPageNumber(const std::string& pageNumber);
|
||||
long getPageNumber()const;
|
||||
void setPageNumber(long pageNumber);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getSecurityToken()const;
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getPageSize()const;
|
||||
void setPageSize(const std::string& pageSize);
|
||||
long getPageSize()const;
|
||||
void setPageSize(long pageSize);
|
||||
std::string getDBInstanceId()const;
|
||||
void setDBInstanceId(const std::string& dBInstanceId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
@@ -60,11 +60,11 @@ namespace AlibabaCloud
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string pageNumber_;
|
||||
long pageNumber_;
|
||||
std::string accessKeyId_;
|
||||
std::string securityToken_;
|
||||
std::string regionId_;
|
||||
std::string pageSize_;
|
||||
long pageSize_;
|
||||
std::string dBInstanceId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
|
||||
@@ -48,12 +48,6 @@ namespace AlibabaCloud
|
||||
std::string originalAmount;
|
||||
std::string discountAmount;
|
||||
};
|
||||
struct Rule
|
||||
{
|
||||
long ruleDescId;
|
||||
std::string title;
|
||||
std::string name;
|
||||
};
|
||||
struct SubOrder
|
||||
{
|
||||
std::string instanceId;
|
||||
@@ -62,6 +56,12 @@ namespace AlibabaCloud
|
||||
std::string originalAmount;
|
||||
std::string discountAmount;
|
||||
};
|
||||
struct Rule
|
||||
{
|
||||
long ruleDescId;
|
||||
std::string title;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
DescribePriceResult();
|
||||
|
||||
@@ -37,6 +37,8 @@ namespace AlibabaCloud
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getRoleId()const;
|
||||
void setRoleId(const std::string& roleId);
|
||||
std::string getStartTime()const;
|
||||
void setStartTime(const std::string& startTime);
|
||||
int getPageNumber()const;
|
||||
@@ -70,6 +72,7 @@ namespace AlibabaCloud
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string roleId_;
|
||||
std::string startTime_;
|
||||
int pageNumber_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
@@ -40,10 +40,10 @@ namespace AlibabaCloud
|
||||
long returnRowCounts;
|
||||
std::string dBName;
|
||||
long keysExamined;
|
||||
std::string hostAddress;
|
||||
long docsExamined;
|
||||
std::string sQLText;
|
||||
std::string hostAddress;
|
||||
std::string accountName;
|
||||
std::string sQLText;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -39,6 +39,8 @@ namespace AlibabaCloud
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
int getReadonlyReplicas()const;
|
||||
void setReadonlyReplicas(int readonlyReplicas);
|
||||
std::string getNodeClass()const;
|
||||
void setNodeClass(const std::string& nodeClass);
|
||||
std::string getAccessKeyId()const;
|
||||
@@ -69,6 +71,7 @@ namespace AlibabaCloud
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string clientToken_;
|
||||
int readonlyReplicas_;
|
||||
std::string nodeClass_;
|
||||
std::string accessKeyId_;
|
||||
std::string securityToken_;
|
||||
|
||||
@@ -1275,42 +1275,6 @@ DdsClient::DescribeErrorLogRecordsOutcomeCallable DdsClient::describeErrorLogRec
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DdsClient::DescribeIndexRecommendationOutcome DdsClient::describeIndexRecommendation(const DescribeIndexRecommendationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeIndexRecommendationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeIndexRecommendationOutcome(DescribeIndexRecommendationResult(outcome.result()));
|
||||
else
|
||||
return DescribeIndexRecommendationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DdsClient::describeIndexRecommendationAsync(const DescribeIndexRecommendationRequest& request, const DescribeIndexRecommendationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeIndexRecommendation(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DdsClient::DescribeIndexRecommendationOutcomeCallable DdsClient::describeIndexRecommendationCallable(const DescribeIndexRecommendationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeIndexRecommendationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeIndexRecommendation(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DdsClient::DescribeInstanceAutoRenewalAttributeOutcome DdsClient::describeInstanceAutoRenewalAttribute(const DescribeInstanceAutoRenewalAttributeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -39,10 +39,10 @@ void CreateDBInstanceResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = value["OrderId"].asString();
|
||||
if(!value["DBInstanceId"].isNull())
|
||||
dBInstanceId_ = value["DBInstanceId"].asString();
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = value["OrderId"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -60,6 +60,17 @@ void CreateNodeRequest::setClientToken(const std::string& clientToken)
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
int CreateNodeRequest::getReadonlyReplicas()const
|
||||
{
|
||||
return readonlyReplicas_;
|
||||
}
|
||||
|
||||
void CreateNodeRequest::setReadonlyReplicas(int readonlyReplicas)
|
||||
{
|
||||
readonlyReplicas_ = readonlyReplicas;
|
||||
setParameter("ReadonlyReplicas", std::to_string(readonlyReplicas));
|
||||
}
|
||||
|
||||
std::string CreateNodeRequest::getNodeClass()const
|
||||
{
|
||||
return nodeClass_;
|
||||
|
||||
@@ -39,10 +39,10 @@ void CreateNodeResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = value["OrderId"].asString();
|
||||
if(!value["NodeId"].isNull())
|
||||
nodeId_ = value["NodeId"].asString();
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = value["OrderId"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -82,6 +82,7 @@ void CreateShardingDBInstanceRequest::setReplicaSet(const std::vector<ReplicaSet
|
||||
for(int dep1 = 0; dep1!= replicaSet.size(); dep1++) {
|
||||
auto replicaSetObj = replicaSet.at(dep1);
|
||||
std::string replicaSetObjStr = "ReplicaSet." + std::to_string(dep1 + 1);
|
||||
setParameter(replicaSetObjStr + ".ReadonlyReplicas", std::to_string(replicaSetObj.readonlyReplicas));
|
||||
setParameter(replicaSetObjStr + ".Storage", std::to_string(replicaSetObj.storage));
|
||||
setParameter(replicaSetObjStr + "._Class", replicaSetObj._class);
|
||||
}
|
||||
@@ -224,21 +225,6 @@ void CreateShardingDBInstanceRequest::setOwnerId(long ownerId)
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::vector<CreateShardingDBInstanceRequest::Mongos> CreateShardingDBInstanceRequest::getMongos()const
|
||||
{
|
||||
return mongos_;
|
||||
}
|
||||
|
||||
void CreateShardingDBInstanceRequest::setMongos(const std::vector<Mongos>& mongos)
|
||||
{
|
||||
mongos_ = mongos;
|
||||
for(int dep1 = 0; dep1!= mongos.size(); dep1++) {
|
||||
auto mongosObj = mongos.at(dep1);
|
||||
std::string mongosObjStr = "Mongos." + std::to_string(dep1 + 1);
|
||||
setParameter(mongosObjStr + "._Class", mongosObj._class);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateShardingDBInstanceRequest::getSecurityIPList()const
|
||||
{
|
||||
return securityIPList_;
|
||||
@@ -261,6 +247,21 @@ void CreateShardingDBInstanceRequest::setVSwitchId(const std::string& vSwitchId)
|
||||
setParameter("VSwitchId", vSwitchId);
|
||||
}
|
||||
|
||||
std::vector<CreateShardingDBInstanceRequest::Mongos> CreateShardingDBInstanceRequest::getMongos()const
|
||||
{
|
||||
return mongos_;
|
||||
}
|
||||
|
||||
void CreateShardingDBInstanceRequest::setMongos(const std::vector<Mongos>& mongos)
|
||||
{
|
||||
mongos_ = mongos;
|
||||
for(int dep1 = 0; dep1!= mongos.size(); dep1++) {
|
||||
auto mongosObj = mongos.at(dep1);
|
||||
std::string mongosObjStr = "Mongos." + std::to_string(dep1 + 1);
|
||||
setParameter(mongosObjStr + "._Class", mongosObj._class);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateShardingDBInstanceRequest::getAccountPassword()const
|
||||
{
|
||||
return accountPassword_;
|
||||
|
||||
@@ -43,174 +43,176 @@ void DescribeDBInstanceAttributeResult::parse(const std::string &payload)
|
||||
for (auto valueDBInstancesDBInstance : allDBInstancesNode)
|
||||
{
|
||||
DBInstance dBInstancesObject;
|
||||
if(!valueDBInstancesDBInstance["ResourceGroupId"].isNull())
|
||||
dBInstancesObject.resourceGroupId = valueDBInstancesDBInstance["ResourceGroupId"].asString();
|
||||
if(!valueDBInstancesDBInstance["DBInstanceId"].isNull())
|
||||
dBInstancesObject.dBInstanceId = valueDBInstancesDBInstance["DBInstanceId"].asString();
|
||||
if(!valueDBInstancesDBInstance["DBInstanceDescription"].isNull())
|
||||
dBInstancesObject.dBInstanceDescription = valueDBInstancesDBInstance["DBInstanceDescription"].asString();
|
||||
if(!valueDBInstancesDBInstance["RegionId"].isNull())
|
||||
dBInstancesObject.regionId = valueDBInstancesDBInstance["RegionId"].asString();
|
||||
if(!valueDBInstancesDBInstance["ZoneId"].isNull())
|
||||
dBInstancesObject.zoneId = valueDBInstancesDBInstance["ZoneId"].asString();
|
||||
if(!valueDBInstancesDBInstance["Engine"].isNull())
|
||||
dBInstancesObject.engine = valueDBInstancesDBInstance["Engine"].asString();
|
||||
if(!valueDBInstancesDBInstance["EngineVersion"].isNull())
|
||||
dBInstancesObject.engineVersion = valueDBInstancesDBInstance["EngineVersion"].asString();
|
||||
if(!valueDBInstancesDBInstance["StorageEngine"].isNull())
|
||||
dBInstancesObject.storageEngine = valueDBInstancesDBInstance["StorageEngine"].asString();
|
||||
if(!valueDBInstancesDBInstance["DBInstanceClass"].isNull())
|
||||
dBInstancesObject.dBInstanceClass = valueDBInstancesDBInstance["DBInstanceClass"].asString();
|
||||
if(!valueDBInstancesDBInstance["DBInstanceStorage"].isNull())
|
||||
dBInstancesObject.dBInstanceStorage = std::stoi(valueDBInstancesDBInstance["DBInstanceStorage"].asString());
|
||||
if(!valueDBInstancesDBInstance["ReplacateId"].isNull())
|
||||
dBInstancesObject.replacateId = valueDBInstancesDBInstance["ReplacateId"].asString();
|
||||
if(!valueDBInstancesDBInstance["VPCId"].isNull())
|
||||
dBInstancesObject.vPCId = valueDBInstancesDBInstance["VPCId"].asString();
|
||||
if(!valueDBInstancesDBInstance["VSwitchId"].isNull())
|
||||
dBInstancesObject.vSwitchId = valueDBInstancesDBInstance["VSwitchId"].asString();
|
||||
if(!valueDBInstancesDBInstance["VPCCloudInstanceIds"].isNull())
|
||||
dBInstancesObject.vPCCloudInstanceIds = valueDBInstancesDBInstance["VPCCloudInstanceIds"].asString();
|
||||
if(!valueDBInstancesDBInstance["KindCode"].isNull())
|
||||
dBInstancesObject.kindCode = valueDBInstancesDBInstance["KindCode"].asString();
|
||||
if(!valueDBInstancesDBInstance["DBInstanceStatus"].isNull())
|
||||
dBInstancesObject.dBInstanceStatus = valueDBInstancesDBInstance["DBInstanceStatus"].asString();
|
||||
if(!valueDBInstancesDBInstance["LockMode"].isNull())
|
||||
dBInstancesObject.lockMode = valueDBInstancesDBInstance["LockMode"].asString();
|
||||
if(!valueDBInstancesDBInstance["ChargeType"].isNull())
|
||||
dBInstancesObject.chargeType = valueDBInstancesDBInstance["ChargeType"].asString();
|
||||
if(!valueDBInstancesDBInstance["CreationTime"].isNull())
|
||||
dBInstancesObject.creationTime = valueDBInstancesDBInstance["CreationTime"].asString();
|
||||
if(!valueDBInstancesDBInstance["ReplicaSetName"].isNull())
|
||||
dBInstancesObject.replicaSetName = valueDBInstancesDBInstance["ReplicaSetName"].asString();
|
||||
if(!valueDBInstancesDBInstance["NetworkType"].isNull())
|
||||
dBInstancesObject.networkType = valueDBInstancesDBInstance["NetworkType"].asString();
|
||||
if(!valueDBInstancesDBInstance["ExpireTime"].isNull())
|
||||
dBInstancesObject.expireTime = valueDBInstancesDBInstance["ExpireTime"].asString();
|
||||
if(!valueDBInstancesDBInstance["MaintainStartTime"].isNull())
|
||||
dBInstancesObject.maintainStartTime = valueDBInstancesDBInstance["MaintainStartTime"].asString();
|
||||
if(!valueDBInstancesDBInstance["MaintainEndTime"].isNull())
|
||||
dBInstancesObject.maintainEndTime = valueDBInstancesDBInstance["MaintainEndTime"].asString();
|
||||
if(!valueDBInstancesDBInstance["ResourceGroupId"].isNull())
|
||||
dBInstancesObject.resourceGroupId = valueDBInstancesDBInstance["ResourceGroupId"].asString();
|
||||
if(!valueDBInstancesDBInstance["DBInstanceType"].isNull())
|
||||
dBInstancesObject.dBInstanceType = valueDBInstancesDBInstance["DBInstanceType"].asString();
|
||||
if(!valueDBInstancesDBInstance["ReplicaSetName"].isNull())
|
||||
dBInstancesObject.replicaSetName = valueDBInstancesDBInstance["ReplicaSetName"].asString();
|
||||
if(!valueDBInstancesDBInstance["StorageEngine"].isNull())
|
||||
dBInstancesObject.storageEngine = valueDBInstancesDBInstance["StorageEngine"].asString();
|
||||
if(!valueDBInstancesDBInstance["MaintainEndTime"].isNull())
|
||||
dBInstancesObject.maintainEndTime = valueDBInstancesDBInstance["MaintainEndTime"].asString();
|
||||
if(!valueDBInstancesDBInstance["DBInstanceId"].isNull())
|
||||
dBInstancesObject.dBInstanceId = valueDBInstancesDBInstance["DBInstanceId"].asString();
|
||||
if(!valueDBInstancesDBInstance["NetworkType"].isNull())
|
||||
dBInstancesObject.networkType = valueDBInstancesDBInstance["NetworkType"].asString();
|
||||
if(!valueDBInstancesDBInstance["DBInstanceStorage"].isNull())
|
||||
dBInstancesObject.dBInstanceStorage = std::stoi(valueDBInstancesDBInstance["DBInstanceStorage"].asString());
|
||||
if(!valueDBInstancesDBInstance["LastDowngradeTime"].isNull())
|
||||
dBInstancesObject.lastDowngradeTime = valueDBInstancesDBInstance["LastDowngradeTime"].asString();
|
||||
if(!valueDBInstancesDBInstance["Engine"].isNull())
|
||||
dBInstancesObject.engine = valueDBInstancesDBInstance["Engine"].asString();
|
||||
if(!valueDBInstancesDBInstance["MaintainStartTime"].isNull())
|
||||
dBInstancesObject.maintainStartTime = valueDBInstancesDBInstance["MaintainStartTime"].asString();
|
||||
if(!valueDBInstancesDBInstance["DBInstanceDescription"].isNull())
|
||||
dBInstancesObject.dBInstanceDescription = valueDBInstancesDBInstance["DBInstanceDescription"].asString();
|
||||
if(!valueDBInstancesDBInstance["ReplacateId"].isNull())
|
||||
dBInstancesObject.replacateId = valueDBInstancesDBInstance["ReplacateId"].asString();
|
||||
if(!valueDBInstancesDBInstance["DBInstanceReleaseProtection"].isNull())
|
||||
dBInstancesObject.dBInstanceReleaseProtection = valueDBInstancesDBInstance["DBInstanceReleaseProtection"].asString() == "true";
|
||||
if(!valueDBInstancesDBInstance["EngineVersion"].isNull())
|
||||
dBInstancesObject.engineVersion = valueDBInstancesDBInstance["EngineVersion"].asString();
|
||||
if(!valueDBInstancesDBInstance["ReplicationFactor"].isNull())
|
||||
dBInstancesObject.replicationFactor = valueDBInstancesDBInstance["ReplicationFactor"].asString();
|
||||
if(!valueDBInstancesDBInstance["ReadonlyReplicas"].isNull())
|
||||
dBInstancesObject.readonlyReplicas = valueDBInstancesDBInstance["ReadonlyReplicas"].asString();
|
||||
if(!valueDBInstancesDBInstance["MaxIOPS"].isNull())
|
||||
dBInstancesObject.maxIOPS = std::stoi(valueDBInstancesDBInstance["MaxIOPS"].asString());
|
||||
if(!valueDBInstancesDBInstance["MaxConnections"].isNull())
|
||||
dBInstancesObject.maxConnections = std::stoi(valueDBInstancesDBInstance["MaxConnections"].asString());
|
||||
if(!valueDBInstancesDBInstance["ZoneId"].isNull())
|
||||
dBInstancesObject.zoneId = valueDBInstancesDBInstance["ZoneId"].asString();
|
||||
if(!valueDBInstancesDBInstance["DBInstanceStatus"].isNull())
|
||||
dBInstancesObject.dBInstanceStatus = valueDBInstancesDBInstance["DBInstanceStatus"].asString();
|
||||
if(!valueDBInstancesDBInstance["DBInstanceClass"].isNull())
|
||||
dBInstancesObject.dBInstanceClass = valueDBInstancesDBInstance["DBInstanceClass"].asString();
|
||||
if(!valueDBInstancesDBInstance["VPCId"].isNull())
|
||||
dBInstancesObject.vPCId = valueDBInstancesDBInstance["VPCId"].asString();
|
||||
if(!valueDBInstancesDBInstance["VSwitchId"].isNull())
|
||||
dBInstancesObject.vSwitchId = valueDBInstancesDBInstance["VSwitchId"].asString();
|
||||
if(!valueDBInstancesDBInstance["LockMode"].isNull())
|
||||
dBInstancesObject.lockMode = valueDBInstancesDBInstance["LockMode"].asString();
|
||||
if(!valueDBInstancesDBInstance["MaxIOPS"].isNull())
|
||||
dBInstancesObject.maxIOPS = std::stoi(valueDBInstancesDBInstance["MaxIOPS"].asString());
|
||||
if(!valueDBInstancesDBInstance["CurrentKernelVersion"].isNull())
|
||||
dBInstancesObject.currentKernelVersion = valueDBInstancesDBInstance["CurrentKernelVersion"].asString();
|
||||
if(!valueDBInstancesDBInstance["ProtocolType"].isNull())
|
||||
dBInstancesObject.protocolType = valueDBInstancesDBInstance["ProtocolType"].asString();
|
||||
if(!valueDBInstancesDBInstance["VpcAuthMode"].isNull())
|
||||
dBInstancesObject.vpcAuthMode = valueDBInstancesDBInstance["VpcAuthMode"].asString();
|
||||
if(!valueDBInstancesDBInstance["DBInstanceReleaseProtection"].isNull())
|
||||
dBInstancesObject.dBInstanceReleaseProtection = valueDBInstancesDBInstance["DBInstanceReleaseProtection"].asString() == "true";
|
||||
if(!valueDBInstancesDBInstance["ChargeType"].isNull())
|
||||
dBInstancesObject.chargeType = valueDBInstancesDBInstance["ChargeType"].asString();
|
||||
if(!valueDBInstancesDBInstance["CreationTime"].isNull())
|
||||
dBInstancesObject.creationTime = valueDBInstancesDBInstance["CreationTime"].asString();
|
||||
if(!valueDBInstancesDBInstance["RegionId"].isNull())
|
||||
dBInstancesObject.regionId = valueDBInstancesDBInstance["RegionId"].asString();
|
||||
if(!valueDBInstancesDBInstance["ExpireTime"].isNull())
|
||||
dBInstancesObject.expireTime = valueDBInstancesDBInstance["ExpireTime"].asString();
|
||||
if(!valueDBInstancesDBInstance["KindCode"].isNull())
|
||||
dBInstancesObject.kindCode = valueDBInstancesDBInstance["KindCode"].asString();
|
||||
auto allMongosListNode = valueDBInstancesDBInstance["MongosList"]["MongosAttribute"];
|
||||
for (auto valueDBInstancesDBInstanceMongosListMongosAttribute : allMongosListNode)
|
||||
{
|
||||
DBInstance::MongosAttribute mongosListObject;
|
||||
if(!valueDBInstancesDBInstanceMongosListMongosAttribute["NodeId"].isNull())
|
||||
mongosListObject.nodeId = valueDBInstancesDBInstanceMongosListMongosAttribute["NodeId"].asString();
|
||||
if(!valueDBInstancesDBInstanceMongosListMongosAttribute["NodeDescription"].isNull())
|
||||
mongosListObject.nodeDescription = valueDBInstancesDBInstanceMongosListMongosAttribute["NodeDescription"].asString();
|
||||
if(!valueDBInstancesDBInstanceMongosListMongosAttribute["NodeClass"].isNull())
|
||||
mongosListObject.nodeClass = valueDBInstancesDBInstanceMongosListMongosAttribute["NodeClass"].asString();
|
||||
if(!valueDBInstancesDBInstanceMongosListMongosAttribute["ConnectSting"].isNull())
|
||||
mongosListObject.connectSting = valueDBInstancesDBInstanceMongosListMongosAttribute["ConnectSting"].asString();
|
||||
if(!valueDBInstancesDBInstanceMongosListMongosAttribute["MaxIOPS"].isNull())
|
||||
mongosListObject.maxIOPS = std::stoi(valueDBInstancesDBInstanceMongosListMongosAttribute["MaxIOPS"].asString());
|
||||
if(!valueDBInstancesDBInstanceMongosListMongosAttribute["NodeClass"].isNull())
|
||||
mongosListObject.nodeClass = valueDBInstancesDBInstanceMongosListMongosAttribute["NodeClass"].asString();
|
||||
if(!valueDBInstancesDBInstanceMongosListMongosAttribute["NodeDescription"].isNull())
|
||||
mongosListObject.nodeDescription = valueDBInstancesDBInstanceMongosListMongosAttribute["NodeDescription"].asString();
|
||||
if(!valueDBInstancesDBInstanceMongosListMongosAttribute["MaxConnections"].isNull())
|
||||
mongosListObject.maxConnections = std::stoi(valueDBInstancesDBInstanceMongosListMongosAttribute["MaxConnections"].asString());
|
||||
if(!valueDBInstancesDBInstanceMongosListMongosAttribute["Port"].isNull())
|
||||
mongosListObject.port = std::stoi(valueDBInstancesDBInstanceMongosListMongosAttribute["Port"].asString());
|
||||
if(!valueDBInstancesDBInstanceMongosListMongosAttribute["VpcCloudInstanceId"].isNull())
|
||||
mongosListObject.vpcCloudInstanceId = valueDBInstancesDBInstanceMongosListMongosAttribute["VpcCloudInstanceId"].asString();
|
||||
if(!valueDBInstancesDBInstanceMongosListMongosAttribute["VPCId"].isNull())
|
||||
mongosListObject.vPCId = valueDBInstancesDBInstanceMongosListMongosAttribute["VPCId"].asString();
|
||||
if(!valueDBInstancesDBInstanceMongosListMongosAttribute["Port"].isNull())
|
||||
mongosListObject.port = std::stoi(valueDBInstancesDBInstanceMongosListMongosAttribute["Port"].asString());
|
||||
if(!valueDBInstancesDBInstanceMongosListMongosAttribute["VSwitchId"].isNull())
|
||||
mongosListObject.vSwitchId = valueDBInstancesDBInstanceMongosListMongosAttribute["VSwitchId"].asString();
|
||||
if(!valueDBInstancesDBInstanceMongosListMongosAttribute["NodeId"].isNull())
|
||||
mongosListObject.nodeId = valueDBInstancesDBInstanceMongosListMongosAttribute["NodeId"].asString();
|
||||
if(!valueDBInstancesDBInstanceMongosListMongosAttribute["VpcCloudInstanceId"].isNull())
|
||||
mongosListObject.vpcCloudInstanceId = valueDBInstancesDBInstanceMongosListMongosAttribute["VpcCloudInstanceId"].asString();
|
||||
if(!valueDBInstancesDBInstanceMongosListMongosAttribute["MaxIOPS"].isNull())
|
||||
mongosListObject.maxIOPS = std::stoi(valueDBInstancesDBInstanceMongosListMongosAttribute["MaxIOPS"].asString());
|
||||
dBInstancesObject.mongosList.push_back(mongosListObject);
|
||||
}
|
||||
auto allShardListNode = valueDBInstancesDBInstance["ShardList"]["ShardAttribute"];
|
||||
for (auto valueDBInstancesDBInstanceShardListShardAttribute : allShardListNode)
|
||||
{
|
||||
DBInstance::ShardAttribute shardListObject;
|
||||
if(!valueDBInstancesDBInstanceShardListShardAttribute["NodeId"].isNull())
|
||||
shardListObject.nodeId = valueDBInstancesDBInstanceShardListShardAttribute["NodeId"].asString();
|
||||
if(!valueDBInstancesDBInstanceShardListShardAttribute["NodeDescription"].isNull())
|
||||
shardListObject.nodeDescription = valueDBInstancesDBInstanceShardListShardAttribute["NodeDescription"].asString();
|
||||
if(!valueDBInstancesDBInstanceShardListShardAttribute["NodeClass"].isNull())
|
||||
shardListObject.nodeClass = valueDBInstancesDBInstanceShardListShardAttribute["NodeClass"].asString();
|
||||
if(!valueDBInstancesDBInstanceShardListShardAttribute["NodeStorage"].isNull())
|
||||
shardListObject.nodeStorage = std::stoi(valueDBInstancesDBInstanceShardListShardAttribute["NodeStorage"].asString());
|
||||
if(!valueDBInstancesDBInstanceShardListShardAttribute["MaxIOPS"].isNull())
|
||||
shardListObject.maxIOPS = std::stoi(valueDBInstancesDBInstanceShardListShardAttribute["MaxIOPS"].asString());
|
||||
if(!valueDBInstancesDBInstanceShardListShardAttribute["NodeDescription"].isNull())
|
||||
shardListObject.nodeDescription = valueDBInstancesDBInstanceShardListShardAttribute["NodeDescription"].asString();
|
||||
if(!valueDBInstancesDBInstanceShardListShardAttribute["ReadonlyReplicas"].isNull())
|
||||
shardListObject.readonlyReplicas = std::stoi(valueDBInstancesDBInstanceShardListShardAttribute["ReadonlyReplicas"].asString());
|
||||
if(!valueDBInstancesDBInstanceShardListShardAttribute["MaxConnections"].isNull())
|
||||
shardListObject.maxConnections = std::stoi(valueDBInstancesDBInstanceShardListShardAttribute["MaxConnections"].asString());
|
||||
if(!valueDBInstancesDBInstanceShardListShardAttribute["ConnectString"].isNull())
|
||||
shardListObject.connectString = valueDBInstancesDBInstanceShardListShardAttribute["ConnectString"].asString();
|
||||
if(!valueDBInstancesDBInstanceShardListShardAttribute["Port"].isNull())
|
||||
shardListObject.port = std::stoi(valueDBInstancesDBInstanceShardListShardAttribute["Port"].asString());
|
||||
if(!valueDBInstancesDBInstanceShardListShardAttribute["NodeStorage"].isNull())
|
||||
shardListObject.nodeStorage = std::stoi(valueDBInstancesDBInstanceShardListShardAttribute["NodeStorage"].asString());
|
||||
if(!valueDBInstancesDBInstanceShardListShardAttribute["NodeId"].isNull())
|
||||
shardListObject.nodeId = valueDBInstancesDBInstanceShardListShardAttribute["NodeId"].asString();
|
||||
if(!valueDBInstancesDBInstanceShardListShardAttribute["ConnectString"].isNull())
|
||||
shardListObject.connectString = valueDBInstancesDBInstanceShardListShardAttribute["ConnectString"].asString();
|
||||
if(!valueDBInstancesDBInstanceShardListShardAttribute["MaxIOPS"].isNull())
|
||||
shardListObject.maxIOPS = std::stoi(valueDBInstancesDBInstanceShardListShardAttribute["MaxIOPS"].asString());
|
||||
dBInstancesObject.shardList.push_back(shardListObject);
|
||||
}
|
||||
auto allConfigserverListNode = valueDBInstancesDBInstance["ConfigserverList"]["ConfigserverAttribute"];
|
||||
for (auto valueDBInstancesDBInstanceConfigserverListConfigserverAttribute : allConfigserverListNode)
|
||||
{
|
||||
DBInstance::ConfigserverAttribute configserverListObject;
|
||||
if(!valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["NodeId"].isNull())
|
||||
configserverListObject.nodeId = valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["NodeId"].asString();
|
||||
if(!valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["NodeDescription"].isNull())
|
||||
configserverListObject.nodeDescription = valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["NodeDescription"].asString();
|
||||
if(!valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["NodeClass"].isNull())
|
||||
configserverListObject.nodeClass = valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["NodeClass"].asString();
|
||||
if(!valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["NodeStorage"].isNull())
|
||||
configserverListObject.nodeStorage = std::stoi(valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["NodeStorage"].asString());
|
||||
if(!valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["MaxIOPS"].isNull())
|
||||
configserverListObject.maxIOPS = std::stoi(valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["MaxIOPS"].asString());
|
||||
if(!valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["NodeDescription"].isNull())
|
||||
configserverListObject.nodeDescription = valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["NodeDescription"].asString();
|
||||
if(!valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["MaxConnections"].isNull())
|
||||
configserverListObject.maxConnections = std::stoi(valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["MaxConnections"].asString());
|
||||
if(!valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["ConnectString"].isNull())
|
||||
configserverListObject.connectString = valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["ConnectString"].asString();
|
||||
if(!valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["Port"].isNull())
|
||||
configserverListObject.port = std::stoi(valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["Port"].asString());
|
||||
if(!valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["NodeStorage"].isNull())
|
||||
configserverListObject.nodeStorage = std::stoi(valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["NodeStorage"].asString());
|
||||
if(!valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["NodeId"].isNull())
|
||||
configserverListObject.nodeId = valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["NodeId"].asString();
|
||||
if(!valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["ConnectString"].isNull())
|
||||
configserverListObject.connectString = valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["ConnectString"].asString();
|
||||
if(!valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["MaxIOPS"].isNull())
|
||||
configserverListObject.maxIOPS = std::stoi(valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["MaxIOPS"].asString());
|
||||
dBInstancesObject.configserverList.push_back(configserverListObject);
|
||||
}
|
||||
auto allReplicaSetsNode = valueDBInstancesDBInstance["ReplicaSets"]["ReplicaSet"];
|
||||
for (auto valueDBInstancesDBInstanceReplicaSetsReplicaSet : allReplicaSetsNode)
|
||||
{
|
||||
DBInstance::ReplicaSet replicaSetsObject;
|
||||
if(!valueDBInstancesDBInstanceReplicaSetsReplicaSet["ReplicaSetRole"].isNull())
|
||||
replicaSetsObject.replicaSetRole = valueDBInstancesDBInstanceReplicaSetsReplicaSet["ReplicaSetRole"].asString();
|
||||
if(!valueDBInstancesDBInstanceReplicaSetsReplicaSet["ConnectionDomain"].isNull())
|
||||
replicaSetsObject.connectionDomain = valueDBInstancesDBInstanceReplicaSetsReplicaSet["ConnectionDomain"].asString();
|
||||
if(!valueDBInstancesDBInstanceReplicaSetsReplicaSet["ConnectionPort"].isNull())
|
||||
replicaSetsObject.connectionPort = valueDBInstancesDBInstanceReplicaSetsReplicaSet["ConnectionPort"].asString();
|
||||
if(!valueDBInstancesDBInstanceReplicaSetsReplicaSet["VPCCloudInstanceId"].isNull())
|
||||
replicaSetsObject.vPCCloudInstanceId = valueDBInstancesDBInstanceReplicaSetsReplicaSet["VPCCloudInstanceId"].asString();
|
||||
if(!valueDBInstancesDBInstanceReplicaSetsReplicaSet["VPCId"].isNull())
|
||||
replicaSetsObject.vPCId = valueDBInstancesDBInstanceReplicaSetsReplicaSet["VPCId"].asString();
|
||||
if(!valueDBInstancesDBInstanceReplicaSetsReplicaSet["VSwitchId"].isNull())
|
||||
replicaSetsObject.vSwitchId = valueDBInstancesDBInstanceReplicaSetsReplicaSet["VSwitchId"].asString();
|
||||
if(!valueDBInstancesDBInstanceReplicaSetsReplicaSet["NetworkType"].isNull())
|
||||
replicaSetsObject.networkType = valueDBInstancesDBInstanceReplicaSetsReplicaSet["NetworkType"].asString();
|
||||
dBInstancesObject.replicaSets.push_back(replicaSetsObject);
|
||||
}
|
||||
auto allTagsNode = valueDBInstancesDBInstance["Tags"]["Tag"];
|
||||
for (auto valueDBInstancesDBInstanceTagsTag : allTagsNode)
|
||||
{
|
||||
DBInstance::Tag tagsObject;
|
||||
if(!valueDBInstancesDBInstanceTagsTag["Key"].isNull())
|
||||
tagsObject.key = valueDBInstancesDBInstanceTagsTag["Key"].asString();
|
||||
if(!valueDBInstancesDBInstanceTagsTag["Value"].isNull())
|
||||
tagsObject.value = valueDBInstancesDBInstanceTagsTag["Value"].asString();
|
||||
if(!valueDBInstancesDBInstanceTagsTag["Key"].isNull())
|
||||
tagsObject.key = valueDBInstancesDBInstanceTagsTag["Key"].asString();
|
||||
dBInstancesObject.tags.push_back(tagsObject);
|
||||
}
|
||||
auto allReplicaSetsNode = valueDBInstancesDBInstance["ReplicaSets"]["ReplicaSet"];
|
||||
for (auto valueDBInstancesDBInstanceReplicaSetsReplicaSet : allReplicaSetsNode)
|
||||
{
|
||||
DBInstance::ReplicaSet replicaSetsObject;
|
||||
if(!valueDBInstancesDBInstanceReplicaSetsReplicaSet["ConnectionDomain"].isNull())
|
||||
replicaSetsObject.connectionDomain = valueDBInstancesDBInstanceReplicaSetsReplicaSet["ConnectionDomain"].asString();
|
||||
if(!valueDBInstancesDBInstanceReplicaSetsReplicaSet["ReplicaSetRole"].isNull())
|
||||
replicaSetsObject.replicaSetRole = valueDBInstancesDBInstanceReplicaSetsReplicaSet["ReplicaSetRole"].asString();
|
||||
if(!valueDBInstancesDBInstanceReplicaSetsReplicaSet["VPCCloudInstanceId"].isNull())
|
||||
replicaSetsObject.vPCCloudInstanceId = valueDBInstancesDBInstanceReplicaSetsReplicaSet["VPCCloudInstanceId"].asString();
|
||||
if(!valueDBInstancesDBInstanceReplicaSetsReplicaSet["VPCId"].isNull())
|
||||
replicaSetsObject.vPCId = valueDBInstancesDBInstanceReplicaSetsReplicaSet["VPCId"].asString();
|
||||
if(!valueDBInstancesDBInstanceReplicaSetsReplicaSet["ConnectionPort"].isNull())
|
||||
replicaSetsObject.connectionPort = valueDBInstancesDBInstanceReplicaSetsReplicaSet["ConnectionPort"].asString();
|
||||
if(!valueDBInstancesDBInstanceReplicaSetsReplicaSet["NetworkType"].isNull())
|
||||
replicaSetsObject.networkType = valueDBInstancesDBInstanceReplicaSetsReplicaSet["NetworkType"].asString();
|
||||
if(!valueDBInstancesDBInstanceReplicaSetsReplicaSet["VSwitchId"].isNull())
|
||||
replicaSetsObject.vSwitchId = valueDBInstancesDBInstanceReplicaSetsReplicaSet["VSwitchId"].asString();
|
||||
dBInstancesObject.replicaSets.push_back(replicaSetsObject);
|
||||
}
|
||||
dBInstances_.push_back(dBInstancesObject);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,70 +43,72 @@ void DescribeDBInstancesResult::parse(const std::string &payload)
|
||||
for (auto valueDBInstancesDBInstance : allDBInstancesNode)
|
||||
{
|
||||
DBInstance dBInstancesObject;
|
||||
if(!valueDBInstancesDBInstance["ResourceGroupId"].isNull())
|
||||
dBInstancesObject.resourceGroupId = valueDBInstancesDBInstance["ResourceGroupId"].asString();
|
||||
if(!valueDBInstancesDBInstance["DBInstanceId"].isNull())
|
||||
dBInstancesObject.dBInstanceId = valueDBInstancesDBInstance["DBInstanceId"].asString();
|
||||
if(!valueDBInstancesDBInstance["DBInstanceDescription"].isNull())
|
||||
dBInstancesObject.dBInstanceDescription = valueDBInstancesDBInstance["DBInstanceDescription"].asString();
|
||||
if(!valueDBInstancesDBInstance["RegionId"].isNull())
|
||||
dBInstancesObject.regionId = valueDBInstancesDBInstance["RegionId"].asString();
|
||||
if(!valueDBInstancesDBInstance["ZoneId"].isNull())
|
||||
dBInstancesObject.zoneId = valueDBInstancesDBInstance["ZoneId"].asString();
|
||||
if(!valueDBInstancesDBInstance["Engine"].isNull())
|
||||
dBInstancesObject.engine = valueDBInstancesDBInstance["Engine"].asString();
|
||||
if(!valueDBInstancesDBInstance["EngineVersion"].isNull())
|
||||
dBInstancesObject.engineVersion = valueDBInstancesDBInstance["EngineVersion"].asString();
|
||||
if(!valueDBInstancesDBInstance["DBInstanceClass"].isNull())
|
||||
dBInstancesObject.dBInstanceClass = valueDBInstancesDBInstance["DBInstanceClass"].asString();
|
||||
if(!valueDBInstancesDBInstance["DBInstanceStorage"].isNull())
|
||||
dBInstancesObject.dBInstanceStorage = std::stoi(valueDBInstancesDBInstance["DBInstanceStorage"].asString());
|
||||
if(!valueDBInstancesDBInstance["KindCode"].isNull())
|
||||
dBInstancesObject.kindCode = valueDBInstancesDBInstance["KindCode"].asString();
|
||||
if(!valueDBInstancesDBInstance["DBInstanceStatus"].isNull())
|
||||
dBInstancesObject.dBInstanceStatus = valueDBInstancesDBInstance["DBInstanceStatus"].asString();
|
||||
if(!valueDBInstancesDBInstance["LockMode"].isNull())
|
||||
dBInstancesObject.lockMode = valueDBInstancesDBInstance["LockMode"].asString();
|
||||
if(!valueDBInstancesDBInstance["ChargeType"].isNull())
|
||||
dBInstancesObject.chargeType = valueDBInstancesDBInstance["ChargeType"].asString();
|
||||
if(!valueDBInstancesDBInstance["NetworkType"].isNull())
|
||||
dBInstancesObject.networkType = valueDBInstancesDBInstance["NetworkType"].asString();
|
||||
if(!valueDBInstancesDBInstance["CreationTime"].isNull())
|
||||
dBInstancesObject.creationTime = valueDBInstancesDBInstance["CreationTime"].asString();
|
||||
if(!valueDBInstancesDBInstance["ExpireTime"].isNull())
|
||||
dBInstancesObject.expireTime = valueDBInstancesDBInstance["ExpireTime"].asString();
|
||||
if(!valueDBInstancesDBInstance["DBInstanceType"].isNull())
|
||||
dBInstancesObject.dBInstanceType = valueDBInstancesDBInstance["DBInstanceType"].asString();
|
||||
if(!valueDBInstancesDBInstance["LastDowngradeTime"].isNull())
|
||||
dBInstancesObject.lastDowngradeTime = valueDBInstancesDBInstance["LastDowngradeTime"].asString();
|
||||
if(!valueDBInstancesDBInstance["ReplicationFactor"].isNull())
|
||||
dBInstancesObject.replicationFactor = valueDBInstancesDBInstance["ReplicationFactor"].asString();
|
||||
if(!valueDBInstancesDBInstance["ZoneId"].isNull())
|
||||
dBInstancesObject.zoneId = valueDBInstancesDBInstance["ZoneId"].asString();
|
||||
if(!valueDBInstancesDBInstance["ResourceGroupId"].isNull())
|
||||
dBInstancesObject.resourceGroupId = valueDBInstancesDBInstance["ResourceGroupId"].asString();
|
||||
if(!valueDBInstancesDBInstance["DBInstanceStatus"].isNull())
|
||||
dBInstancesObject.dBInstanceStatus = valueDBInstancesDBInstance["DBInstanceStatus"].asString();
|
||||
if(!valueDBInstancesDBInstance["DBInstanceClass"].isNull())
|
||||
dBInstancesObject.dBInstanceClass = valueDBInstancesDBInstance["DBInstanceClass"].asString();
|
||||
if(!valueDBInstancesDBInstance["DestroyTime"].isNull())
|
||||
dBInstancesObject.destroyTime = valueDBInstancesDBInstance["DestroyTime"].asString();
|
||||
if(!valueDBInstancesDBInstance["DBInstanceType"].isNull())
|
||||
dBInstancesObject.dBInstanceType = valueDBInstancesDBInstance["DBInstanceType"].asString();
|
||||
if(!valueDBInstancesDBInstance["LockMode"].isNull())
|
||||
dBInstancesObject.lockMode = valueDBInstancesDBInstance["LockMode"].asString();
|
||||
if(!valueDBInstancesDBInstance["DBInstanceId"].isNull())
|
||||
dBInstancesObject.dBInstanceId = valueDBInstancesDBInstance["DBInstanceId"].asString();
|
||||
if(!valueDBInstancesDBInstance["NetworkType"].isNull())
|
||||
dBInstancesObject.networkType = valueDBInstancesDBInstance["NetworkType"].asString();
|
||||
if(!valueDBInstancesDBInstance["VpcAuthMode"].isNull())
|
||||
dBInstancesObject.vpcAuthMode = valueDBInstancesDBInstance["VpcAuthMode"].asString();
|
||||
if(!valueDBInstancesDBInstance["ChargeType"].isNull())
|
||||
dBInstancesObject.chargeType = valueDBInstancesDBInstance["ChargeType"].asString();
|
||||
if(!valueDBInstancesDBInstance["DBInstanceStorage"].isNull())
|
||||
dBInstancesObject.dBInstanceStorage = std::stoi(valueDBInstancesDBInstance["DBInstanceStorage"].asString());
|
||||
if(!valueDBInstancesDBInstance["LastDowngradeTime"].isNull())
|
||||
dBInstancesObject.lastDowngradeTime = valueDBInstancesDBInstance["LastDowngradeTime"].asString();
|
||||
if(!valueDBInstancesDBInstance["CreationTime"].isNull())
|
||||
dBInstancesObject.creationTime = valueDBInstancesDBInstance["CreationTime"].asString();
|
||||
if(!valueDBInstancesDBInstance["RegionId"].isNull())
|
||||
dBInstancesObject.regionId = valueDBInstancesDBInstance["RegionId"].asString();
|
||||
if(!valueDBInstancesDBInstance["ExpireTime"].isNull())
|
||||
dBInstancesObject.expireTime = valueDBInstancesDBInstance["ExpireTime"].asString();
|
||||
if(!valueDBInstancesDBInstance["KindCode"].isNull())
|
||||
dBInstancesObject.kindCode = valueDBInstancesDBInstance["KindCode"].asString();
|
||||
if(!valueDBInstancesDBInstance["Engine"].isNull())
|
||||
dBInstancesObject.engine = valueDBInstancesDBInstance["Engine"].asString();
|
||||
if(!valueDBInstancesDBInstance["DBInstanceDescription"].isNull())
|
||||
dBInstancesObject.dBInstanceDescription = valueDBInstancesDBInstance["DBInstanceDescription"].asString();
|
||||
auto allMongosListNode = valueDBInstancesDBInstance["MongosList"]["MongosAttribute"];
|
||||
for (auto valueDBInstancesDBInstanceMongosListMongosAttribute : allMongosListNode)
|
||||
{
|
||||
DBInstance::MongosAttribute mongosListObject;
|
||||
if(!valueDBInstancesDBInstanceMongosListMongosAttribute["NodeId"].isNull())
|
||||
mongosListObject.nodeId = valueDBInstancesDBInstanceMongosListMongosAttribute["NodeId"].asString();
|
||||
if(!valueDBInstancesDBInstanceMongosListMongosAttribute["NodeDescription"].isNull())
|
||||
mongosListObject.nodeDescription = valueDBInstancesDBInstanceMongosListMongosAttribute["NodeDescription"].asString();
|
||||
if(!valueDBInstancesDBInstanceMongosListMongosAttribute["NodeClass"].isNull())
|
||||
mongosListObject.nodeClass = valueDBInstancesDBInstanceMongosListMongosAttribute["NodeClass"].asString();
|
||||
if(!valueDBInstancesDBInstanceMongosListMongosAttribute["NodeDescription"].isNull())
|
||||
mongosListObject.nodeDescription = valueDBInstancesDBInstanceMongosListMongosAttribute["NodeDescription"].asString();
|
||||
if(!valueDBInstancesDBInstanceMongosListMongosAttribute["NodeId"].isNull())
|
||||
mongosListObject.nodeId = valueDBInstancesDBInstanceMongosListMongosAttribute["NodeId"].asString();
|
||||
dBInstancesObject.mongosList.push_back(mongosListObject);
|
||||
}
|
||||
auto allShardListNode = valueDBInstancesDBInstance["ShardList"]["ShardAttribute"];
|
||||
for (auto valueDBInstancesDBInstanceShardListShardAttribute : allShardListNode)
|
||||
{
|
||||
DBInstance::ShardAttribute shardListObject;
|
||||
if(!valueDBInstancesDBInstanceShardListShardAttribute["NodeId"].isNull())
|
||||
shardListObject.nodeId = valueDBInstancesDBInstanceShardListShardAttribute["NodeId"].asString();
|
||||
if(!valueDBInstancesDBInstanceShardListShardAttribute["NodeDescription"].isNull())
|
||||
shardListObject.nodeDescription = valueDBInstancesDBInstanceShardListShardAttribute["NodeDescription"].asString();
|
||||
if(!valueDBInstancesDBInstanceShardListShardAttribute["NodeClass"].isNull())
|
||||
shardListObject.nodeClass = valueDBInstancesDBInstanceShardListShardAttribute["NodeClass"].asString();
|
||||
if(!valueDBInstancesDBInstanceShardListShardAttribute["NodeDescription"].isNull())
|
||||
shardListObject.nodeDescription = valueDBInstancesDBInstanceShardListShardAttribute["NodeDescription"].asString();
|
||||
if(!valueDBInstancesDBInstanceShardListShardAttribute["ReadonlyReplicas"].isNull())
|
||||
shardListObject.readonlyReplicas = std::stoi(valueDBInstancesDBInstanceShardListShardAttribute["ReadonlyReplicas"].asString());
|
||||
if(!valueDBInstancesDBInstanceShardListShardAttribute["NodeId"].isNull())
|
||||
shardListObject.nodeId = valueDBInstancesDBInstanceShardListShardAttribute["NodeId"].asString();
|
||||
if(!valueDBInstancesDBInstanceShardListShardAttribute["NodeStorage"].isNull())
|
||||
shardListObject.nodeStorage = std::stoi(valueDBInstancesDBInstanceShardListShardAttribute["NodeStorage"].asString());
|
||||
dBInstancesObject.shardList.push_back(shardListObject);
|
||||
@@ -115,20 +117,20 @@ void DescribeDBInstancesResult::parse(const std::string &payload)
|
||||
for (auto valueDBInstancesDBInstanceTagsTag : allTagsNode)
|
||||
{
|
||||
DBInstance::Tag tagsObject;
|
||||
if(!valueDBInstancesDBInstanceTagsTag["Key"].isNull())
|
||||
tagsObject.key = valueDBInstancesDBInstanceTagsTag["Key"].asString();
|
||||
if(!valueDBInstancesDBInstanceTagsTag["Value"].isNull())
|
||||
tagsObject.value = valueDBInstancesDBInstanceTagsTag["Value"].asString();
|
||||
if(!valueDBInstancesDBInstanceTagsTag["Key"].isNull())
|
||||
tagsObject.key = valueDBInstancesDBInstanceTagsTag["Key"].asString();
|
||||
dBInstancesObject.tags.push_back(tagsObject);
|
||||
}
|
||||
dBInstances_.push_back(dBInstancesObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -43,26 +43,26 @@ void DescribeErrorLogRecordsResult::parse(const std::string &payload)
|
||||
for (auto valueItemsLogRecords : allItemsNode)
|
||||
{
|
||||
LogRecords itemsObject;
|
||||
if(!valueItemsLogRecords["Id"].isNull())
|
||||
itemsObject.id = std::stoi(valueItemsLogRecords["Id"].asString());
|
||||
if(!valueItemsLogRecords["CreateTime"].isNull())
|
||||
itemsObject.createTime = valueItemsLogRecords["CreateTime"].asString();
|
||||
if(!valueItemsLogRecords["Category"].isNull())
|
||||
itemsObject.category = valueItemsLogRecords["Category"].asString();
|
||||
if(!valueItemsLogRecords["ConnInfo"].isNull())
|
||||
itemsObject.connInfo = valueItemsLogRecords["ConnInfo"].asString();
|
||||
if(!valueItemsLogRecords["Category"].isNull())
|
||||
itemsObject.category = valueItemsLogRecords["Category"].asString();
|
||||
if(!valueItemsLogRecords["Content"].isNull())
|
||||
itemsObject.content = valueItemsLogRecords["Content"].asString();
|
||||
if(!valueItemsLogRecords["CreateTime"].isNull())
|
||||
itemsObject.createTime = valueItemsLogRecords["CreateTime"].asString();
|
||||
if(!valueItemsLogRecords["Id"].isNull())
|
||||
itemsObject.id = std::stoi(valueItemsLogRecords["Id"].asString());
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["Engine"].isNull())
|
||||
engine_ = value["Engine"].asString();
|
||||
if(!value["TotalRecordCount"].isNull())
|
||||
totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageRecordCount"].isNull())
|
||||
pageRecordCount_ = std::stoi(value["PageRecordCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["Engine"].isNull())
|
||||
engine_ = value["Engine"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,205 +0,0 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dds/model/DescribeIndexRecommendationRequest.h>
|
||||
|
||||
using AlibabaCloud::Dds::Model::DescribeIndexRecommendationRequest;
|
||||
|
||||
DescribeIndexRecommendationRequest::DescribeIndexRecommendationRequest() :
|
||||
RpcServiceRequest("dds", "2015-12-01", "DescribeIndexRecommendation")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeIndexRecommendationRequest::~DescribeIndexRecommendationRequest()
|
||||
{}
|
||||
|
||||
long DescribeIndexRecommendationRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeIndexRecommendationRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeIndexRecommendationRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeIndexRecommendationRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
int DescribeIndexRecommendationRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeIndexRecommendationRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeIndexRecommendationRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeIndexRecommendationRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeIndexRecommendationRequest::getDatabase()const
|
||||
{
|
||||
return database_;
|
||||
}
|
||||
|
||||
void DescribeIndexRecommendationRequest::setDatabase(const std::string& database)
|
||||
{
|
||||
database_ = database;
|
||||
setParameter("Database", database);
|
||||
}
|
||||
|
||||
std::string DescribeIndexRecommendationRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeIndexRecommendationRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
int DescribeIndexRecommendationRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeIndexRecommendationRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeIndexRecommendationRequest::getNodeId()const
|
||||
{
|
||||
return nodeId_;
|
||||
}
|
||||
|
||||
void DescribeIndexRecommendationRequest::setNodeId(const std::string& nodeId)
|
||||
{
|
||||
nodeId_ = nodeId;
|
||||
setParameter("NodeId", nodeId);
|
||||
}
|
||||
|
||||
std::string DescribeIndexRecommendationRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void DescribeIndexRecommendationRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
std::string DescribeIndexRecommendationRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeIndexRecommendationRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeIndexRecommendationRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeIndexRecommendationRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeIndexRecommendationRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeIndexRecommendationRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string DescribeIndexRecommendationRequest::getCollection()const
|
||||
{
|
||||
return collection_;
|
||||
}
|
||||
|
||||
void DescribeIndexRecommendationRequest::setCollection(const std::string& collection)
|
||||
{
|
||||
collection_ = collection;
|
||||
setParameter("Collection", collection);
|
||||
}
|
||||
|
||||
std::string DescribeIndexRecommendationRequest::getOperationType()const
|
||||
{
|
||||
return operationType_;
|
||||
}
|
||||
|
||||
void DescribeIndexRecommendationRequest::setOperationType(const std::string& operationType)
|
||||
{
|
||||
operationType_ = operationType;
|
||||
setParameter("OperationType", operationType);
|
||||
}
|
||||
|
||||
long DescribeIndexRecommendationRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeIndexRecommendationRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeIndexRecommendationRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeIndexRecommendationRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
@@ -1,117 +0,0 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dds/model/DescribeIndexRecommendationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dds;
|
||||
using namespace AlibabaCloud::Dds::Model;
|
||||
|
||||
DescribeIndexRecommendationResult::DescribeIndexRecommendationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeIndexRecommendationResult::DescribeIndexRecommendationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeIndexRecommendationResult::~DescribeIndexRecommendationResult()
|
||||
{}
|
||||
|
||||
void DescribeIndexRecommendationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allAnalyzationsNode = value["Analyzations"]["Analyzation"];
|
||||
for (auto valueAnalyzationsAnalyzation : allAnalyzationsNode)
|
||||
{
|
||||
Analyzation analyzationsObject;
|
||||
if(!valueAnalyzationsAnalyzation["Database"].isNull())
|
||||
analyzationsObject.database = valueAnalyzationsAnalyzation["Database"].asString();
|
||||
if(!valueAnalyzationsAnalyzation["Namespace"].isNull())
|
||||
analyzationsObject._namespace = valueAnalyzationsAnalyzation["Namespace"].asString();
|
||||
if(!valueAnalyzationsAnalyzation["Operation"].isNull())
|
||||
analyzationsObject.operation = valueAnalyzationsAnalyzation["Operation"].asString();
|
||||
if(!valueAnalyzationsAnalyzation["Query"].isNull())
|
||||
analyzationsObject.query = valueAnalyzationsAnalyzation["Query"].asString();
|
||||
if(!valueAnalyzationsAnalyzation["Sort"].isNull())
|
||||
analyzationsObject.sort = valueAnalyzationsAnalyzation["Sort"].asString();
|
||||
if(!valueAnalyzationsAnalyzation["Count"].isNull())
|
||||
analyzationsObject.count = std::stol(valueAnalyzationsAnalyzation["Count"].asString());
|
||||
if(!valueAnalyzationsAnalyzation["TotalExecutionTime"].isNull())
|
||||
analyzationsObject.totalExecutionTime = std::stol(valueAnalyzationsAnalyzation["TotalExecutionTime"].asString());
|
||||
if(!valueAnalyzationsAnalyzation["AverageExecutionTime"].isNull())
|
||||
analyzationsObject.averageExecutionTime = std::stol(valueAnalyzationsAnalyzation["AverageExecutionTime"].asString());
|
||||
if(!valueAnalyzationsAnalyzation["AverageReturnRowCount"].isNull())
|
||||
analyzationsObject.averageReturnRowCount = std::stol(valueAnalyzationsAnalyzation["AverageReturnRowCount"].asString());
|
||||
if(!valueAnalyzationsAnalyzation["AverageDocsExaminedCount"].isNull())
|
||||
analyzationsObject.averageDocsExaminedCount = std::stol(valueAnalyzationsAnalyzation["AverageDocsExaminedCount"].asString());
|
||||
if(!valueAnalyzationsAnalyzation["AverageKeysExaminedCount"].isNull())
|
||||
analyzationsObject.averageKeysExaminedCount = std::stol(valueAnalyzationsAnalyzation["AverageKeysExaminedCount"].asString());
|
||||
if(!valueAnalyzationsAnalyzation["InMemorySort"].isNull())
|
||||
analyzationsObject.inMemorySort = valueAnalyzationsAnalyzation["InMemorySort"].asString();
|
||||
if(!valueAnalyzationsAnalyzation["LastExecutionTime"].isNull())
|
||||
analyzationsObject.lastExecutionTime = valueAnalyzationsAnalyzation["LastExecutionTime"].asString();
|
||||
if(!valueAnalyzationsAnalyzation["ExecutionPlan"].isNull())
|
||||
analyzationsObject.executionPlan = valueAnalyzationsAnalyzation["ExecutionPlan"].asString();
|
||||
auto allIndexRecommendationsNode = valueAnalyzationsAnalyzation["IndexRecommendations"]["Recommendation"];
|
||||
for (auto valueAnalyzationsAnalyzationIndexRecommendationsRecommendation : allIndexRecommendationsNode)
|
||||
{
|
||||
Analyzation::Recommendation indexRecommendationsObject;
|
||||
if(!valueAnalyzationsAnalyzationIndexRecommendationsRecommendation["RecmdType"].isNull())
|
||||
indexRecommendationsObject.recmdType = valueAnalyzationsAnalyzationIndexRecommendationsRecommendation["RecmdType"].asString();
|
||||
if(!valueAnalyzationsAnalyzationIndexRecommendationsRecommendation["Content"].isNull())
|
||||
indexRecommendationsObject.content = valueAnalyzationsAnalyzationIndexRecommendationsRecommendation["Content"].asString();
|
||||
analyzationsObject.indexRecommendations.push_back(indexRecommendationsObject);
|
||||
}
|
||||
auto allIndexCombines = value["IndexCombines"]["IndexCombine"];
|
||||
for (auto value : allIndexCombines)
|
||||
analyzationsObject.indexCombines.push_back(value.asString());
|
||||
analyzations_.push_back(analyzationsObject);
|
||||
}
|
||||
if(!value["TotalRecordCount"].isNull())
|
||||
totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageRecordCount"].isNull())
|
||||
pageRecordCount_ = std::stoi(value["PageRecordCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeIndexRecommendationResult::getTotalRecordCount()const
|
||||
{
|
||||
return totalRecordCount_;
|
||||
}
|
||||
|
||||
int DescribeIndexRecommendationResult::getPageRecordCount()const
|
||||
{
|
||||
return pageRecordCount_;
|
||||
}
|
||||
|
||||
std::vector<DescribeIndexRecommendationResult::Analyzation> DescribeIndexRecommendationResult::getAnalyzations()const
|
||||
{
|
||||
return analyzations_;
|
||||
}
|
||||
|
||||
int DescribeIndexRecommendationResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
@@ -38,15 +38,15 @@ void DescribeInstanceAutoRenewalAttributeRequest::setResourceOwnerId(long resour
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeInstanceAutoRenewalAttributeRequest::getPageNumber()const
|
||||
long DescribeInstanceAutoRenewalAttributeRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeInstanceAutoRenewalAttributeRequest::setPageNumber(const std::string& pageNumber)
|
||||
void DescribeInstanceAutoRenewalAttributeRequest::setPageNumber(long pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", pageNumber);
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeInstanceAutoRenewalAttributeRequest::getAccessKeyId()const
|
||||
@@ -82,15 +82,15 @@ void DescribeInstanceAutoRenewalAttributeRequest::setRegionId(const std::string&
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeInstanceAutoRenewalAttributeRequest::getPageSize()const
|
||||
long DescribeInstanceAutoRenewalAttributeRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeInstanceAutoRenewalAttributeRequest::setPageSize(const std::string& pageSize)
|
||||
void DescribeInstanceAutoRenewalAttributeRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", pageSize);
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeInstanceAutoRenewalAttributeRequest::getDBInstanceId()const
|
||||
|
||||
@@ -43,24 +43,24 @@ void DescribeInstanceAutoRenewalAttributeResult::parse(const std::string &payloa
|
||||
for (auto valueItemsItem : allItemsNode)
|
||||
{
|
||||
Item itemsObject;
|
||||
if(!valueItemsItem["DbInstanceId"].isNull())
|
||||
itemsObject.dbInstanceId = valueItemsItem["DbInstanceId"].asString();
|
||||
if(!valueItemsItem["RegionId"].isNull())
|
||||
itemsObject.regionId = valueItemsItem["RegionId"].asString();
|
||||
if(!valueItemsItem["Duration"].isNull())
|
||||
itemsObject.duration = valueItemsItem["Duration"].asString();
|
||||
if(!valueItemsItem["AutoRenew"].isNull())
|
||||
itemsObject.autoRenew = valueItemsItem["AutoRenew"].asString();
|
||||
if(!valueItemsItem["DBInstanceType"].isNull())
|
||||
itemsObject.dBInstanceType = valueItemsItem["DBInstanceType"].asString();
|
||||
if(!valueItemsItem["Duration"].isNull())
|
||||
itemsObject.duration = valueItemsItem["Duration"].asString();
|
||||
if(!valueItemsItem["RegionId"].isNull())
|
||||
itemsObject.regionId = valueItemsItem["RegionId"].asString();
|
||||
if(!valueItemsItem["DbInstanceId"].isNull())
|
||||
itemsObject.dbInstanceId = valueItemsItem["DbInstanceId"].asString();
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageRecordCount"].isNull())
|
||||
pageRecordCount_ = std::stoi(value["PageRecordCount"].asString());
|
||||
if(!value["ItemsNumbers"].isNull())
|
||||
itemsNumbers_ = std::stoi(value["ItemsNumbers"].asString());
|
||||
if(!value["PageRecordCount"].isNull())
|
||||
pageRecordCount_ = std::stoi(value["PageRecordCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,56 +39,56 @@ void DescribePriceResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allSubOrdersNode = value["SubOrders"]["SubOrder"];
|
||||
for (auto valueSubOrdersSubOrder : allSubOrdersNode)
|
||||
{
|
||||
SubOrder subOrdersObject;
|
||||
if(!valueSubOrdersSubOrder["InstanceId"].isNull())
|
||||
subOrdersObject.instanceId = valueSubOrdersSubOrder["InstanceId"].asString();
|
||||
if(!valueSubOrdersSubOrder["TradeAmount"].isNull())
|
||||
subOrdersObject.tradeAmount = valueSubOrdersSubOrder["TradeAmount"].asString();
|
||||
if(!valueSubOrdersSubOrder["OriginalAmount"].isNull())
|
||||
subOrdersObject.originalAmount = valueSubOrdersSubOrder["OriginalAmount"].asString();
|
||||
if(!valueSubOrdersSubOrder["DiscountAmount"].isNull())
|
||||
subOrdersObject.discountAmount = valueSubOrdersSubOrder["DiscountAmount"].asString();
|
||||
auto allRuleIds = value["RuleIds"]["RuleId"];
|
||||
for (auto value : allRuleIds)
|
||||
subOrdersObject.ruleIds.push_back(value.asString());
|
||||
subOrders_.push_back(subOrdersObject);
|
||||
}
|
||||
auto allRulesNode = value["Rules"]["Rule"];
|
||||
for (auto valueRulesRule : allRulesNode)
|
||||
{
|
||||
Rule rulesObject;
|
||||
if(!valueRulesRule["RuleDescId"].isNull())
|
||||
rulesObject.ruleDescId = std::stol(valueRulesRule["RuleDescId"].asString());
|
||||
if(!valueRulesRule["Name"].isNull())
|
||||
rulesObject.name = valueRulesRule["Name"].asString();
|
||||
if(!valueRulesRule["Title"].isNull())
|
||||
rulesObject.title = valueRulesRule["Title"].asString();
|
||||
if(!valueRulesRule["Name"].isNull())
|
||||
rulesObject.name = valueRulesRule["Name"].asString();
|
||||
rules_.push_back(rulesObject);
|
||||
}
|
||||
auto allSubOrdersNode = value["SubOrders"]["SubOrder"];
|
||||
for (auto valueSubOrdersSubOrder : allSubOrdersNode)
|
||||
{
|
||||
SubOrder subOrdersObject;
|
||||
if(!valueSubOrdersSubOrder["OriginalAmount"].isNull())
|
||||
subOrdersObject.originalAmount = valueSubOrdersSubOrder["OriginalAmount"].asString();
|
||||
if(!valueSubOrdersSubOrder["TradeAmount"].isNull())
|
||||
subOrdersObject.tradeAmount = valueSubOrdersSubOrder["TradeAmount"].asString();
|
||||
if(!valueSubOrdersSubOrder["DiscountAmount"].isNull())
|
||||
subOrdersObject.discountAmount = valueSubOrdersSubOrder["DiscountAmount"].asString();
|
||||
if(!valueSubOrdersSubOrder["InstanceId"].isNull())
|
||||
subOrdersObject.instanceId = valueSubOrdersSubOrder["InstanceId"].asString();
|
||||
auto allRuleIds = value["RuleIds"]["RuleId"];
|
||||
for (auto value : allRuleIds)
|
||||
subOrdersObject.ruleIds.push_back(value.asString());
|
||||
subOrders_.push_back(subOrdersObject);
|
||||
}
|
||||
auto orderNode = value["Order"];
|
||||
if(!orderNode["OriginalAmount"].isNull())
|
||||
order_.originalAmount = orderNode["OriginalAmount"].asString();
|
||||
if(!orderNode["TradeAmount"].isNull())
|
||||
order_.tradeAmount = orderNode["TradeAmount"].asString();
|
||||
if(!orderNode["DiscountAmount"].isNull())
|
||||
order_.discountAmount = orderNode["DiscountAmount"].asString();
|
||||
if(!orderNode["Currency"].isNull())
|
||||
order_.currency = orderNode["Currency"].asString();
|
||||
if(!orderNode["TradeAmount"].isNull())
|
||||
order_.tradeAmount = orderNode["TradeAmount"].asString();
|
||||
if(!orderNode["OriginalAmount"].isNull())
|
||||
order_.originalAmount = orderNode["OriginalAmount"].asString();
|
||||
if(!orderNode["DiscountAmount"].isNull())
|
||||
order_.discountAmount = orderNode["DiscountAmount"].asString();
|
||||
auto allCouponsNode = orderNode["Coupons"]["Coupon"];
|
||||
for (auto orderNodeCouponsCoupon : allCouponsNode)
|
||||
{
|
||||
Order::Coupon couponObject;
|
||||
if(!orderNodeCouponsCoupon["CouponNo"].isNull())
|
||||
couponObject.couponNo = orderNodeCouponsCoupon["CouponNo"].asString();
|
||||
if(!orderNodeCouponsCoupon["Name"].isNull())
|
||||
couponObject.name = orderNodeCouponsCoupon["Name"].asString();
|
||||
if(!orderNodeCouponsCoupon["Description"].isNull())
|
||||
couponObject.description = orderNodeCouponsCoupon["Description"].asString();
|
||||
if(!orderNodeCouponsCoupon["IsSelected"].isNull())
|
||||
couponObject.isSelected = orderNodeCouponsCoupon["IsSelected"].asString();
|
||||
if(!orderNodeCouponsCoupon["Name"].isNull())
|
||||
couponObject.name = orderNodeCouponsCoupon["Name"].asString();
|
||||
order_.coupons.push_back(couponObject);
|
||||
}
|
||||
auto allRuleIds1 = orderNode["RuleIds"]["RuleId"];
|
||||
|
||||
@@ -38,6 +38,17 @@ void DescribeRunningLogRecordsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeRunningLogRecordsRequest::getRoleId()const
|
||||
{
|
||||
return roleId_;
|
||||
}
|
||||
|
||||
void DescribeRunningLogRecordsRequest::setRoleId(const std::string& roleId)
|
||||
{
|
||||
roleId_ = roleId;
|
||||
setParameter("RoleId", roleId);
|
||||
}
|
||||
|
||||
std::string DescribeRunningLogRecordsRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
|
||||
@@ -43,26 +43,26 @@ void DescribeRunningLogRecordsResult::parse(const std::string &payload)
|
||||
for (auto valueItemsLogRecords : allItemsNode)
|
||||
{
|
||||
LogRecords itemsObject;
|
||||
if(!valueItemsLogRecords["Id"].isNull())
|
||||
itemsObject.id = std::stoi(valueItemsLogRecords["Id"].asString());
|
||||
if(!valueItemsLogRecords["CreateTime"].isNull())
|
||||
itemsObject.createTime = valueItemsLogRecords["CreateTime"].asString();
|
||||
if(!valueItemsLogRecords["Category"].isNull())
|
||||
itemsObject.category = valueItemsLogRecords["Category"].asString();
|
||||
if(!valueItemsLogRecords["ConnInfo"].isNull())
|
||||
itemsObject.connInfo = valueItemsLogRecords["ConnInfo"].asString();
|
||||
if(!valueItemsLogRecords["Category"].isNull())
|
||||
itemsObject.category = valueItemsLogRecords["Category"].asString();
|
||||
if(!valueItemsLogRecords["Content"].isNull())
|
||||
itemsObject.content = valueItemsLogRecords["Content"].asString();
|
||||
if(!valueItemsLogRecords["CreateTime"].isNull())
|
||||
itemsObject.createTime = valueItemsLogRecords["CreateTime"].asString();
|
||||
if(!valueItemsLogRecords["Id"].isNull())
|
||||
itemsObject.id = std::stoi(valueItemsLogRecords["Id"].asString());
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["Engine"].isNull())
|
||||
engine_ = value["Engine"].asString();
|
||||
if(!value["TotalRecordCount"].isNull())
|
||||
totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageRecordCount"].isNull())
|
||||
pageRecordCount_ = std::stoi(value["PageRecordCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["Engine"].isNull())
|
||||
engine_ = value["Engine"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -43,36 +43,36 @@ void DescribeSlowLogRecordsResult::parse(const std::string &payload)
|
||||
for (auto valueItemsLogRecords : allItemsNode)
|
||||
{
|
||||
LogRecords itemsObject;
|
||||
if(!valueItemsLogRecords["HostAddress"].isNull())
|
||||
itemsObject.hostAddress = valueItemsLogRecords["HostAddress"].asString();
|
||||
if(!valueItemsLogRecords["DBName"].isNull())
|
||||
itemsObject.dBName = valueItemsLogRecords["DBName"].asString();
|
||||
if(!valueItemsLogRecords["SQLText"].isNull())
|
||||
itemsObject.sQLText = valueItemsLogRecords["SQLText"].asString();
|
||||
if(!valueItemsLogRecords["QueryTimes"].isNull())
|
||||
itemsObject.queryTimes = valueItemsLogRecords["QueryTimes"].asString();
|
||||
if(!valueItemsLogRecords["DocsExamined"].isNull())
|
||||
itemsObject.docsExamined = std::stol(valueItemsLogRecords["DocsExamined"].asString());
|
||||
if(!valueItemsLogRecords["KeysExamined"].isNull())
|
||||
itemsObject.keysExamined = std::stol(valueItemsLogRecords["KeysExamined"].asString());
|
||||
if(!valueItemsLogRecords["ReturnRowCounts"].isNull())
|
||||
itemsObject.returnRowCounts = std::stol(valueItemsLogRecords["ReturnRowCounts"].asString());
|
||||
if(!valueItemsLogRecords["ExecutionStartTime"].isNull())
|
||||
itemsObject.executionStartTime = valueItemsLogRecords["ExecutionStartTime"].asString();
|
||||
if(!valueItemsLogRecords["AccountName"].isNull())
|
||||
itemsObject.accountName = valueItemsLogRecords["AccountName"].asString();
|
||||
if(!valueItemsLogRecords["TableName"].isNull())
|
||||
itemsObject.tableName = valueItemsLogRecords["TableName"].asString();
|
||||
if(!valueItemsLogRecords["QueryTimes"].isNull())
|
||||
itemsObject.queryTimes = valueItemsLogRecords["QueryTimes"].asString();
|
||||
if(!valueItemsLogRecords["ExecutionStartTime"].isNull())
|
||||
itemsObject.executionStartTime = valueItemsLogRecords["ExecutionStartTime"].asString();
|
||||
if(!valueItemsLogRecords["ReturnRowCounts"].isNull())
|
||||
itemsObject.returnRowCounts = std::stol(valueItemsLogRecords["ReturnRowCounts"].asString());
|
||||
if(!valueItemsLogRecords["DBName"].isNull())
|
||||
itemsObject.dBName = valueItemsLogRecords["DBName"].asString();
|
||||
if(!valueItemsLogRecords["KeysExamined"].isNull())
|
||||
itemsObject.keysExamined = std::stol(valueItemsLogRecords["KeysExamined"].asString());
|
||||
if(!valueItemsLogRecords["DocsExamined"].isNull())
|
||||
itemsObject.docsExamined = std::stol(valueItemsLogRecords["DocsExamined"].asString());
|
||||
if(!valueItemsLogRecords["HostAddress"].isNull())
|
||||
itemsObject.hostAddress = valueItemsLogRecords["HostAddress"].asString();
|
||||
if(!valueItemsLogRecords["AccountName"].isNull())
|
||||
itemsObject.accountName = valueItemsLogRecords["AccountName"].asString();
|
||||
if(!valueItemsLogRecords["SQLText"].isNull())
|
||||
itemsObject.sQLText = valueItemsLogRecords["SQLText"].asString();
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["Engine"].isNull())
|
||||
engine_ = value["Engine"].asString();
|
||||
if(!value["TotalRecordCount"].isNull())
|
||||
totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageRecordCount"].isNull())
|
||||
pageRecordCount_ = std::stoi(value["PageRecordCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["Engine"].isNull())
|
||||
engine_ = value["Engine"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -49,6 +49,17 @@ void ModifyNodeSpecRequest::setClientToken(const std::string& clientToken)
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
int ModifyNodeSpecRequest::getReadonlyReplicas()const
|
||||
{
|
||||
return readonlyReplicas_;
|
||||
}
|
||||
|
||||
void ModifyNodeSpecRequest::setReadonlyReplicas(int readonlyReplicas)
|
||||
{
|
||||
readonlyReplicas_ = readonlyReplicas;
|
||||
setParameter("ReadonlyReplicas", std::to_string(readonlyReplicas));
|
||||
}
|
||||
|
||||
std::string ModifyNodeSpecRequest::getNodeClass()const
|
||||
{
|
||||
return nodeClass_;
|
||||
|
||||
@@ -36,7 +36,9 @@ set(eais_public_header_model
|
||||
include/alibabacloud/eais/model/DescribeRegionsRequest.h
|
||||
include/alibabacloud/eais/model/DescribeRegionsResult.h
|
||||
include/alibabacloud/eais/model/DetachEaiRequest.h
|
||||
include/alibabacloud/eais/model/DetachEaiResult.h )
|
||||
include/alibabacloud/eais/model/DetachEaiResult.h
|
||||
include/alibabacloud/eais/model/GetPrivateIpRequest.h
|
||||
include/alibabacloud/eais/model/GetPrivateIpResult.h )
|
||||
|
||||
set(eais_src
|
||||
src/EaisClient.cc
|
||||
@@ -55,7 +57,9 @@ set(eais_src
|
||||
src/model/DescribeRegionsRequest.cc
|
||||
src/model/DescribeRegionsResult.cc
|
||||
src/model/DetachEaiRequest.cc
|
||||
src/model/DetachEaiResult.cc )
|
||||
src/model/DetachEaiResult.cc
|
||||
src/model/GetPrivateIpRequest.cc
|
||||
src/model/GetPrivateIpResult.cc )
|
||||
|
||||
add_library(eais ${LIB_TYPE}
|
||||
${eais_public_header}
|
||||
|
||||
@@ -38,6 +38,8 @@
|
||||
#include "model/DescribeRegionsResult.h"
|
||||
#include "model/DetachEaiRequest.h"
|
||||
#include "model/DetachEaiResult.h"
|
||||
#include "model/GetPrivateIpRequest.h"
|
||||
#include "model/GetPrivateIpResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
@@ -71,6 +73,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DetachEaiResult> DetachEaiOutcome;
|
||||
typedef std::future<DetachEaiOutcome> DetachEaiOutcomeCallable;
|
||||
typedef std::function<void(const EaisClient*, const Model::DetachEaiRequest&, const DetachEaiOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetachEaiAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetPrivateIpResult> GetPrivateIpOutcome;
|
||||
typedef std::future<GetPrivateIpOutcome> GetPrivateIpOutcomeCallable;
|
||||
typedef std::function<void(const EaisClient*, const Model::GetPrivateIpRequest&, const GetPrivateIpOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPrivateIpAsyncHandler;
|
||||
|
||||
EaisClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
EaisClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
@@ -100,6 +105,9 @@ namespace AlibabaCloud
|
||||
DetachEaiOutcome detachEai(const Model::DetachEaiRequest &request)const;
|
||||
void detachEaiAsync(const Model::DetachEaiRequest& request, const DetachEaiAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DetachEaiOutcomeCallable detachEaiCallable(const Model::DetachEaiRequest& request) const;
|
||||
GetPrivateIpOutcome getPrivateIp(const Model::GetPrivateIpRequest &request)const;
|
||||
void getPrivateIpAsync(const Model::GetPrivateIpRequest& request, const GetPrivateIpAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetPrivateIpOutcomeCallable getPrivateIpCallable(const Model::GetPrivateIpRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
|
||||
51
eais/include/alibabacloud/eais/model/GetPrivateIpRequest.h
Normal file
51
eais/include/alibabacloud/eais/model/GetPrivateIpRequest.h
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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_EAIS_MODEL_GETPRIVATEIPREQUEST_H_
|
||||
#define ALIBABACLOUD_EAIS_MODEL_GETPRIVATEIPREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/eais/EaisExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Eais
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_EAIS_EXPORT GetPrivateIpRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetPrivateIpRequest();
|
||||
~GetPrivateIpRequest();
|
||||
|
||||
std::string getClientInstanceId()const;
|
||||
void setClientInstanceId(const std::string& clientInstanceId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
|
||||
private:
|
||||
std::string clientInstanceId_;
|
||||
std::string regionId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EAIS_MODEL_GETPRIVATEIPREQUEST_H_
|
||||
51
eais/include/alibabacloud/eais/model/GetPrivateIpResult.h
Normal file
51
eais/include/alibabacloud/eais/model/GetPrivateIpResult.h
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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_EAIS_MODEL_GETPRIVATEIPRESULT_H_
|
||||
#define ALIBABACLOUD_EAIS_MODEL_GETPRIVATEIPRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/eais/EaisExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Eais
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_EAIS_EXPORT GetPrivateIpResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
GetPrivateIpResult();
|
||||
explicit GetPrivateIpResult(const std::string &payload);
|
||||
~GetPrivateIpResult();
|
||||
std::string getPrivateIp()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string privateIp_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EAIS_MODEL_GETPRIVATEIPRESULT_H_
|
||||
@@ -339,3 +339,39 @@ EaisClient::DetachEaiOutcomeCallable EaisClient::detachEaiCallable(const DetachE
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EaisClient::GetPrivateIpOutcome EaisClient::getPrivateIp(const GetPrivateIpRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetPrivateIpOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetPrivateIpOutcome(GetPrivateIpResult(outcome.result()));
|
||||
else
|
||||
return GetPrivateIpOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EaisClient::getPrivateIpAsync(const GetPrivateIpRequest& request, const GetPrivateIpAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getPrivateIp(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EaisClient::GetPrivateIpOutcomeCallable EaisClient::getPrivateIpCallable(const GetPrivateIpRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetPrivateIpOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getPrivateIp(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
51
eais/src/model/GetPrivateIpRequest.cc
Normal file
51
eais/src/model/GetPrivateIpRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eais/model/GetPrivateIpRequest.h>
|
||||
|
||||
using AlibabaCloud::Eais::Model::GetPrivateIpRequest;
|
||||
|
||||
GetPrivateIpRequest::GetPrivateIpRequest() :
|
||||
RpcServiceRequest("eais", "2019-06-24", "GetPrivateIp")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetPrivateIpRequest::~GetPrivateIpRequest()
|
||||
{}
|
||||
|
||||
std::string GetPrivateIpRequest::getClientInstanceId()const
|
||||
{
|
||||
return clientInstanceId_;
|
||||
}
|
||||
|
||||
void GetPrivateIpRequest::setClientInstanceId(const std::string& clientInstanceId)
|
||||
{
|
||||
clientInstanceId_ = clientInstanceId;
|
||||
setParameter("ClientInstanceId", clientInstanceId);
|
||||
}
|
||||
|
||||
std::string GetPrivateIpRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetPrivateIpRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
51
eais/src/model/GetPrivateIpResult.cc
Normal file
51
eais/src/model/GetPrivateIpResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eais/model/GetPrivateIpResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eais;
|
||||
using namespace AlibabaCloud::Eais::Model;
|
||||
|
||||
GetPrivateIpResult::GetPrivateIpResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetPrivateIpResult::GetPrivateIpResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetPrivateIpResult::~GetPrivateIpResult()
|
||||
{}
|
||||
|
||||
void GetPrivateIpResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["PrivateIp"].isNull())
|
||||
privateIp_ = value["PrivateIp"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetPrivateIpResult::getPrivateIp()const
|
||||
{
|
||||
return privateIp_;
|
||||
}
|
||||
|
||||
@@ -29,6 +29,8 @@ set(imagerecog_public_header_model
|
||||
include/alibabacloud/imagerecog/model/DetectImageElementsResult.h
|
||||
include/alibabacloud/imagerecog/model/EvaluateCertificateQualityRequest.h
|
||||
include/alibabacloud/imagerecog/model/EvaluateCertificateQualityResult.h
|
||||
include/alibabacloud/imagerecog/model/GetAsyncJobResultRequest.h
|
||||
include/alibabacloud/imagerecog/model/GetAsyncJobResultResult.h
|
||||
include/alibabacloud/imagerecog/model/RecognizeFoodRequest.h
|
||||
include/alibabacloud/imagerecog/model/RecognizeFoodResult.h
|
||||
include/alibabacloud/imagerecog/model/RecognizeImageColorRequest.h
|
||||
@@ -54,6 +56,8 @@ set(imagerecog_src
|
||||
src/model/DetectImageElementsResult.cc
|
||||
src/model/EvaluateCertificateQualityRequest.cc
|
||||
src/model/EvaluateCertificateQualityResult.cc
|
||||
src/model/GetAsyncJobResultRequest.cc
|
||||
src/model/GetAsyncJobResultResult.cc
|
||||
src/model/RecognizeFoodRequest.cc
|
||||
src/model/RecognizeFoodResult.cc
|
||||
src/model/RecognizeImageColorRequest.cc
|
||||
|
||||
@@ -30,6 +30,8 @@
|
||||
#include "model/DetectImageElementsResult.h"
|
||||
#include "model/EvaluateCertificateQualityRequest.h"
|
||||
#include "model/EvaluateCertificateQualityResult.h"
|
||||
#include "model/GetAsyncJobResultRequest.h"
|
||||
#include "model/GetAsyncJobResultResult.h"
|
||||
#include "model/RecognizeFoodRequest.h"
|
||||
#include "model/RecognizeFoodResult.h"
|
||||
#include "model/RecognizeImageColorRequest.h"
|
||||
@@ -65,6 +67,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::EvaluateCertificateQualityResult> EvaluateCertificateQualityOutcome;
|
||||
typedef std::future<EvaluateCertificateQualityOutcome> EvaluateCertificateQualityOutcomeCallable;
|
||||
typedef std::function<void(const ImagerecogClient*, const Model::EvaluateCertificateQualityRequest&, const EvaluateCertificateQualityOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EvaluateCertificateQualityAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetAsyncJobResultResult> GetAsyncJobResultOutcome;
|
||||
typedef std::future<GetAsyncJobResultOutcome> GetAsyncJobResultOutcomeCallable;
|
||||
typedef std::function<void(const ImagerecogClient*, const Model::GetAsyncJobResultRequest&, const GetAsyncJobResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAsyncJobResultAsyncHandler;
|
||||
typedef Outcome<Error, Model::RecognizeFoodResult> RecognizeFoodOutcome;
|
||||
typedef std::future<RecognizeFoodOutcome> RecognizeFoodOutcomeCallable;
|
||||
typedef std::function<void(const ImagerecogClient*, const Model::RecognizeFoodRequest&, const RecognizeFoodOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RecognizeFoodAsyncHandler;
|
||||
@@ -103,6 +108,9 @@ namespace AlibabaCloud
|
||||
EvaluateCertificateQualityOutcome evaluateCertificateQuality(const Model::EvaluateCertificateQualityRequest &request)const;
|
||||
void evaluateCertificateQualityAsync(const Model::EvaluateCertificateQualityRequest& request, const EvaluateCertificateQualityAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
EvaluateCertificateQualityOutcomeCallable evaluateCertificateQualityCallable(const Model::EvaluateCertificateQualityRequest& request) const;
|
||||
GetAsyncJobResultOutcome getAsyncJobResult(const Model::GetAsyncJobResultRequest &request)const;
|
||||
void getAsyncJobResultAsync(const Model::GetAsyncJobResultRequest& request, const GetAsyncJobResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetAsyncJobResultOutcomeCallable getAsyncJobResultCallable(const Model::GetAsyncJobResultRequest& request) const;
|
||||
RecognizeFoodOutcome recognizeFood(const Model::RecognizeFoodRequest &request)const;
|
||||
void recognizeFoodAsync(const Model::RecognizeFoodRequest& request, const RecognizeFoodAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RecognizeFoodOutcomeCallable recognizeFoodCallable(const Model::RecognizeFoodRequest& request) const;
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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_IMAGERECOG_MODEL_GETASYNCJOBRESULTREQUEST_H_
|
||||
#define ALIBABACLOUD_IMAGERECOG_MODEL_GETASYNCJOBRESULTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/imagerecog/ImagerecogExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imagerecog
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMAGERECOG_EXPORT GetAsyncJobResultRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetAsyncJobResultRequest();
|
||||
~GetAsyncJobResultRequest();
|
||||
|
||||
std::string getJobId()const;
|
||||
void setJobId(const std::string& jobId);
|
||||
std::string getAsync()const;
|
||||
void setAsync(const std::string& async);
|
||||
|
||||
private:
|
||||
std::string jobId_;
|
||||
std::string async_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMAGERECOG_MODEL_GETASYNCJOBRESULTREQUEST_H_
|
||||
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* 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_IMAGERECOG_MODEL_GETASYNCJOBRESULTRESULT_H_
|
||||
#define ALIBABACLOUD_IMAGERECOG_MODEL_GETASYNCJOBRESULTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/imagerecog/ImagerecogExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imagerecog
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMAGERECOG_EXPORT GetAsyncJobResultResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string status;
|
||||
std::string errorCode;
|
||||
std::string errorMessage;
|
||||
std::string jobId;
|
||||
std::string result;
|
||||
};
|
||||
|
||||
|
||||
GetAsyncJobResultResult();
|
||||
explicit GetAsyncJobResultResult(const std::string &payload);
|
||||
~GetAsyncJobResultResult();
|
||||
Data getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Data data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMAGERECOG_MODEL_GETASYNCJOBRESULTRESULT_H_
|
||||
@@ -37,11 +37,14 @@ namespace AlibabaCloud
|
||||
|
||||
int getImageType()const;
|
||||
void setImageType(int imageType);
|
||||
bool getAsync()const;
|
||||
void setAsync(bool async);
|
||||
std::string getImageURL()const;
|
||||
void setImageURL(const std::string& imageURL);
|
||||
|
||||
private:
|
||||
int imageType_;
|
||||
bool async_;
|
||||
std::string imageURL_;
|
||||
|
||||
};
|
||||
|
||||
@@ -195,6 +195,42 @@ ImagerecogClient::EvaluateCertificateQualityOutcomeCallable ImagerecogClient::ev
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImagerecogClient::GetAsyncJobResultOutcome ImagerecogClient::getAsyncJobResult(const GetAsyncJobResultRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetAsyncJobResultOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetAsyncJobResultOutcome(GetAsyncJobResultResult(outcome.result()));
|
||||
else
|
||||
return GetAsyncJobResultOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ImagerecogClient::getAsyncJobResultAsync(const GetAsyncJobResultRequest& request, const GetAsyncJobResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getAsyncJobResult(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ImagerecogClient::GetAsyncJobResultOutcomeCallable ImagerecogClient::getAsyncJobResultCallable(const GetAsyncJobResultRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetAsyncJobResultOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getAsyncJobResult(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImagerecogClient::RecognizeFoodOutcome ImagerecogClient::recognizeFood(const RecognizeFoodRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
51
imagerecog/src/model/GetAsyncJobResultRequest.cc
Normal file
51
imagerecog/src/model/GetAsyncJobResultRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/imagerecog/model/GetAsyncJobResultRequest.h>
|
||||
|
||||
using AlibabaCloud::Imagerecog::Model::GetAsyncJobResultRequest;
|
||||
|
||||
GetAsyncJobResultRequest::GetAsyncJobResultRequest() :
|
||||
RpcServiceRequest("imagerecog", "2019-09-30", "GetAsyncJobResult")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetAsyncJobResultRequest::~GetAsyncJobResultRequest()
|
||||
{}
|
||||
|
||||
std::string GetAsyncJobResultRequest::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
void GetAsyncJobResultRequest::setJobId(const std::string& jobId)
|
||||
{
|
||||
jobId_ = jobId;
|
||||
setParameter("JobId", jobId);
|
||||
}
|
||||
|
||||
std::string GetAsyncJobResultRequest::getAsync()const
|
||||
{
|
||||
return async_;
|
||||
}
|
||||
|
||||
void GetAsyncJobResultRequest::setAsync(const std::string& async)
|
||||
{
|
||||
async_ = async;
|
||||
setParameter("Async", async);
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user