Compare commits
8 Commits
safconsole
...
oos-patch
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
38db21928a | ||
|
|
4899593377 | ||
|
|
ecf3cb4bb0 | ||
|
|
7b2178ef7c | ||
|
|
de338b6bec | ||
|
|
272a1c1466 | ||
|
|
ee902a7f28 | ||
|
|
fb12252d2d |
24
CHANGELOG
24
CHANGELOG
@@ -1,3 +1,27 @@
|
||||
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.
|
||||
|
||||
|
||||
@@ -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())
|
||||
|
||||
@@ -40,7 +40,9 @@ namespace AlibabaCloud
|
||||
std::string type;
|
||||
std::vector<std::string> box;
|
||||
};
|
||||
long height;
|
||||
std::vector<Element> elements;
|
||||
long width;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -40,6 +40,10 @@ void DetectIPCObjectResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Height"].isNull())
|
||||
data_.height = std::stol(dataNode["Height"].asString());
|
||||
if(!dataNode["Width"].isNull())
|
||||
data_.width = std::stol(dataNode["Width"].asString());
|
||||
auto allElementsNode = dataNode["Elements"]["Element"];
|
||||
for (auto dataNodeElementsElement : allElementsNode)
|
||||
{
|
||||
|
||||
@@ -25,16 +25,24 @@ set(oos_public_header_model
|
||||
include/alibabacloud/oos/model/CancelExecutionResult.h
|
||||
include/alibabacloud/oos/model/CreateParameterRequest.h
|
||||
include/alibabacloud/oos/model/CreateParameterResult.h
|
||||
include/alibabacloud/oos/model/CreatePatchBaselineRequest.h
|
||||
include/alibabacloud/oos/model/CreatePatchBaselineResult.h
|
||||
include/alibabacloud/oos/model/CreateSecretParameterRequest.h
|
||||
include/alibabacloud/oos/model/CreateSecretParameterResult.h
|
||||
include/alibabacloud/oos/model/CreateStateConfigurationRequest.h
|
||||
include/alibabacloud/oos/model/CreateStateConfigurationResult.h
|
||||
include/alibabacloud/oos/model/CreateTemplateRequest.h
|
||||
include/alibabacloud/oos/model/CreateTemplateResult.h
|
||||
include/alibabacloud/oos/model/DeleteExecutionsRequest.h
|
||||
include/alibabacloud/oos/model/DeleteExecutionsResult.h
|
||||
include/alibabacloud/oos/model/DeleteParameterRequest.h
|
||||
include/alibabacloud/oos/model/DeleteParameterResult.h
|
||||
include/alibabacloud/oos/model/DeletePatchBaselineRequest.h
|
||||
include/alibabacloud/oos/model/DeletePatchBaselineResult.h
|
||||
include/alibabacloud/oos/model/DeleteSecretParameterRequest.h
|
||||
include/alibabacloud/oos/model/DeleteSecretParameterResult.h
|
||||
include/alibabacloud/oos/model/DeleteStateConfigurationsRequest.h
|
||||
include/alibabacloud/oos/model/DeleteStateConfigurationsResult.h
|
||||
include/alibabacloud/oos/model/DeleteTemplateRequest.h
|
||||
include/alibabacloud/oos/model/DeleteTemplateResult.h
|
||||
include/alibabacloud/oos/model/DeleteTemplatesRequest.h
|
||||
@@ -53,6 +61,8 @@ set(oos_public_header_model
|
||||
include/alibabacloud/oos/model/GetParametersResult.h
|
||||
include/alibabacloud/oos/model/GetParametersByPathRequest.h
|
||||
include/alibabacloud/oos/model/GetParametersByPathResult.h
|
||||
include/alibabacloud/oos/model/GetPatchBaselineRequest.h
|
||||
include/alibabacloud/oos/model/GetPatchBaselineResult.h
|
||||
include/alibabacloud/oos/model/GetSecretParameterRequest.h
|
||||
include/alibabacloud/oos/model/GetSecretParameterResult.h
|
||||
include/alibabacloud/oos/model/GetSecretParametersRequest.h
|
||||
@@ -71,18 +81,28 @@ set(oos_public_header_model
|
||||
include/alibabacloud/oos/model/ListExecutionRiskyTasksResult.h
|
||||
include/alibabacloud/oos/model/ListExecutionsRequest.h
|
||||
include/alibabacloud/oos/model/ListExecutionsResult.h
|
||||
include/alibabacloud/oos/model/ListInstancePatchStatesRequest.h
|
||||
include/alibabacloud/oos/model/ListInstancePatchStatesResult.h
|
||||
include/alibabacloud/oos/model/ListInstancePatchesRequest.h
|
||||
include/alibabacloud/oos/model/ListInstancePatchesResult.h
|
||||
include/alibabacloud/oos/model/ListInstanceStateReportsRequest.h
|
||||
include/alibabacloud/oos/model/ListInstanceStateReportsResult.h
|
||||
include/alibabacloud/oos/model/ListInventoryEntriesRequest.h
|
||||
include/alibabacloud/oos/model/ListInventoryEntriesResult.h
|
||||
include/alibabacloud/oos/model/ListParameterVersionsRequest.h
|
||||
include/alibabacloud/oos/model/ListParameterVersionsResult.h
|
||||
include/alibabacloud/oos/model/ListParametersRequest.h
|
||||
include/alibabacloud/oos/model/ListParametersResult.h
|
||||
include/alibabacloud/oos/model/ListPatchBaselinesRequest.h
|
||||
include/alibabacloud/oos/model/ListPatchBaselinesResult.h
|
||||
include/alibabacloud/oos/model/ListResourceExecutionStatusRequest.h
|
||||
include/alibabacloud/oos/model/ListResourceExecutionStatusResult.h
|
||||
include/alibabacloud/oos/model/ListSecretParameterVersionsRequest.h
|
||||
include/alibabacloud/oos/model/ListSecretParameterVersionsResult.h
|
||||
include/alibabacloud/oos/model/ListSecretParametersRequest.h
|
||||
include/alibabacloud/oos/model/ListSecretParametersResult.h
|
||||
include/alibabacloud/oos/model/ListStateConfigurationsRequest.h
|
||||
include/alibabacloud/oos/model/ListStateConfigurationsResult.h
|
||||
include/alibabacloud/oos/model/ListTagKeysRequest.h
|
||||
include/alibabacloud/oos/model/ListTagKeysResult.h
|
||||
include/alibabacloud/oos/model/ListTagResourcesRequest.h
|
||||
@@ -97,6 +117,8 @@ set(oos_public_header_model
|
||||
include/alibabacloud/oos/model/ListTemplatesResult.h
|
||||
include/alibabacloud/oos/model/NotifyExecutionRequest.h
|
||||
include/alibabacloud/oos/model/NotifyExecutionResult.h
|
||||
include/alibabacloud/oos/model/RegisterDefaultPatchBaselineRequest.h
|
||||
include/alibabacloud/oos/model/RegisterDefaultPatchBaselineResult.h
|
||||
include/alibabacloud/oos/model/SearchInventoryRequest.h
|
||||
include/alibabacloud/oos/model/SearchInventoryResult.h
|
||||
include/alibabacloud/oos/model/SetServiceSettingsRequest.h
|
||||
@@ -115,8 +137,12 @@ set(oos_public_header_model
|
||||
include/alibabacloud/oos/model/UpdateInstanceInformationResult.h
|
||||
include/alibabacloud/oos/model/UpdateParameterRequest.h
|
||||
include/alibabacloud/oos/model/UpdateParameterResult.h
|
||||
include/alibabacloud/oos/model/UpdatePatchBaselineRequest.h
|
||||
include/alibabacloud/oos/model/UpdatePatchBaselineResult.h
|
||||
include/alibabacloud/oos/model/UpdateSecretParameterRequest.h
|
||||
include/alibabacloud/oos/model/UpdateSecretParameterResult.h
|
||||
include/alibabacloud/oos/model/UpdateStateConfigurationRequest.h
|
||||
include/alibabacloud/oos/model/UpdateStateConfigurationResult.h
|
||||
include/alibabacloud/oos/model/UpdateTemplateRequest.h
|
||||
include/alibabacloud/oos/model/UpdateTemplateResult.h
|
||||
include/alibabacloud/oos/model/ValidateTemplateContentRequest.h
|
||||
@@ -128,16 +154,24 @@ set(oos_src
|
||||
src/model/CancelExecutionResult.cc
|
||||
src/model/CreateParameterRequest.cc
|
||||
src/model/CreateParameterResult.cc
|
||||
src/model/CreatePatchBaselineRequest.cc
|
||||
src/model/CreatePatchBaselineResult.cc
|
||||
src/model/CreateSecretParameterRequest.cc
|
||||
src/model/CreateSecretParameterResult.cc
|
||||
src/model/CreateStateConfigurationRequest.cc
|
||||
src/model/CreateStateConfigurationResult.cc
|
||||
src/model/CreateTemplateRequest.cc
|
||||
src/model/CreateTemplateResult.cc
|
||||
src/model/DeleteExecutionsRequest.cc
|
||||
src/model/DeleteExecutionsResult.cc
|
||||
src/model/DeleteParameterRequest.cc
|
||||
src/model/DeleteParameterResult.cc
|
||||
src/model/DeletePatchBaselineRequest.cc
|
||||
src/model/DeletePatchBaselineResult.cc
|
||||
src/model/DeleteSecretParameterRequest.cc
|
||||
src/model/DeleteSecretParameterResult.cc
|
||||
src/model/DeleteStateConfigurationsRequest.cc
|
||||
src/model/DeleteStateConfigurationsResult.cc
|
||||
src/model/DeleteTemplateRequest.cc
|
||||
src/model/DeleteTemplateResult.cc
|
||||
src/model/DeleteTemplatesRequest.cc
|
||||
@@ -156,6 +190,8 @@ set(oos_src
|
||||
src/model/GetParametersResult.cc
|
||||
src/model/GetParametersByPathRequest.cc
|
||||
src/model/GetParametersByPathResult.cc
|
||||
src/model/GetPatchBaselineRequest.cc
|
||||
src/model/GetPatchBaselineResult.cc
|
||||
src/model/GetSecretParameterRequest.cc
|
||||
src/model/GetSecretParameterResult.cc
|
||||
src/model/GetSecretParametersRequest.cc
|
||||
@@ -174,18 +210,28 @@ set(oos_src
|
||||
src/model/ListExecutionRiskyTasksResult.cc
|
||||
src/model/ListExecutionsRequest.cc
|
||||
src/model/ListExecutionsResult.cc
|
||||
src/model/ListInstancePatchStatesRequest.cc
|
||||
src/model/ListInstancePatchStatesResult.cc
|
||||
src/model/ListInstancePatchesRequest.cc
|
||||
src/model/ListInstancePatchesResult.cc
|
||||
src/model/ListInstanceStateReportsRequest.cc
|
||||
src/model/ListInstanceStateReportsResult.cc
|
||||
src/model/ListInventoryEntriesRequest.cc
|
||||
src/model/ListInventoryEntriesResult.cc
|
||||
src/model/ListParameterVersionsRequest.cc
|
||||
src/model/ListParameterVersionsResult.cc
|
||||
src/model/ListParametersRequest.cc
|
||||
src/model/ListParametersResult.cc
|
||||
src/model/ListPatchBaselinesRequest.cc
|
||||
src/model/ListPatchBaselinesResult.cc
|
||||
src/model/ListResourceExecutionStatusRequest.cc
|
||||
src/model/ListResourceExecutionStatusResult.cc
|
||||
src/model/ListSecretParameterVersionsRequest.cc
|
||||
src/model/ListSecretParameterVersionsResult.cc
|
||||
src/model/ListSecretParametersRequest.cc
|
||||
src/model/ListSecretParametersResult.cc
|
||||
src/model/ListStateConfigurationsRequest.cc
|
||||
src/model/ListStateConfigurationsResult.cc
|
||||
src/model/ListTagKeysRequest.cc
|
||||
src/model/ListTagKeysResult.cc
|
||||
src/model/ListTagResourcesRequest.cc
|
||||
@@ -200,6 +246,8 @@ set(oos_src
|
||||
src/model/ListTemplatesResult.cc
|
||||
src/model/NotifyExecutionRequest.cc
|
||||
src/model/NotifyExecutionResult.cc
|
||||
src/model/RegisterDefaultPatchBaselineRequest.cc
|
||||
src/model/RegisterDefaultPatchBaselineResult.cc
|
||||
src/model/SearchInventoryRequest.cc
|
||||
src/model/SearchInventoryResult.cc
|
||||
src/model/SetServiceSettingsRequest.cc
|
||||
@@ -218,8 +266,12 @@ set(oos_src
|
||||
src/model/UpdateInstanceInformationResult.cc
|
||||
src/model/UpdateParameterRequest.cc
|
||||
src/model/UpdateParameterResult.cc
|
||||
src/model/UpdatePatchBaselineRequest.cc
|
||||
src/model/UpdatePatchBaselineResult.cc
|
||||
src/model/UpdateSecretParameterRequest.cc
|
||||
src/model/UpdateSecretParameterResult.cc
|
||||
src/model/UpdateStateConfigurationRequest.cc
|
||||
src/model/UpdateStateConfigurationResult.cc
|
||||
src/model/UpdateTemplateRequest.cc
|
||||
src/model/UpdateTemplateResult.cc
|
||||
src/model/ValidateTemplateContentRequest.cc
|
||||
|
||||
@@ -26,16 +26,24 @@
|
||||
#include "model/CancelExecutionResult.h"
|
||||
#include "model/CreateParameterRequest.h"
|
||||
#include "model/CreateParameterResult.h"
|
||||
#include "model/CreatePatchBaselineRequest.h"
|
||||
#include "model/CreatePatchBaselineResult.h"
|
||||
#include "model/CreateSecretParameterRequest.h"
|
||||
#include "model/CreateSecretParameterResult.h"
|
||||
#include "model/CreateStateConfigurationRequest.h"
|
||||
#include "model/CreateStateConfigurationResult.h"
|
||||
#include "model/CreateTemplateRequest.h"
|
||||
#include "model/CreateTemplateResult.h"
|
||||
#include "model/DeleteExecutionsRequest.h"
|
||||
#include "model/DeleteExecutionsResult.h"
|
||||
#include "model/DeleteParameterRequest.h"
|
||||
#include "model/DeleteParameterResult.h"
|
||||
#include "model/DeletePatchBaselineRequest.h"
|
||||
#include "model/DeletePatchBaselineResult.h"
|
||||
#include "model/DeleteSecretParameterRequest.h"
|
||||
#include "model/DeleteSecretParameterResult.h"
|
||||
#include "model/DeleteStateConfigurationsRequest.h"
|
||||
#include "model/DeleteStateConfigurationsResult.h"
|
||||
#include "model/DeleteTemplateRequest.h"
|
||||
#include "model/DeleteTemplateResult.h"
|
||||
#include "model/DeleteTemplatesRequest.h"
|
||||
@@ -54,6 +62,8 @@
|
||||
#include "model/GetParametersResult.h"
|
||||
#include "model/GetParametersByPathRequest.h"
|
||||
#include "model/GetParametersByPathResult.h"
|
||||
#include "model/GetPatchBaselineRequest.h"
|
||||
#include "model/GetPatchBaselineResult.h"
|
||||
#include "model/GetSecretParameterRequest.h"
|
||||
#include "model/GetSecretParameterResult.h"
|
||||
#include "model/GetSecretParametersRequest.h"
|
||||
@@ -72,18 +82,28 @@
|
||||
#include "model/ListExecutionRiskyTasksResult.h"
|
||||
#include "model/ListExecutionsRequest.h"
|
||||
#include "model/ListExecutionsResult.h"
|
||||
#include "model/ListInstancePatchStatesRequest.h"
|
||||
#include "model/ListInstancePatchStatesResult.h"
|
||||
#include "model/ListInstancePatchesRequest.h"
|
||||
#include "model/ListInstancePatchesResult.h"
|
||||
#include "model/ListInstanceStateReportsRequest.h"
|
||||
#include "model/ListInstanceStateReportsResult.h"
|
||||
#include "model/ListInventoryEntriesRequest.h"
|
||||
#include "model/ListInventoryEntriesResult.h"
|
||||
#include "model/ListParameterVersionsRequest.h"
|
||||
#include "model/ListParameterVersionsResult.h"
|
||||
#include "model/ListParametersRequest.h"
|
||||
#include "model/ListParametersResult.h"
|
||||
#include "model/ListPatchBaselinesRequest.h"
|
||||
#include "model/ListPatchBaselinesResult.h"
|
||||
#include "model/ListResourceExecutionStatusRequest.h"
|
||||
#include "model/ListResourceExecutionStatusResult.h"
|
||||
#include "model/ListSecretParameterVersionsRequest.h"
|
||||
#include "model/ListSecretParameterVersionsResult.h"
|
||||
#include "model/ListSecretParametersRequest.h"
|
||||
#include "model/ListSecretParametersResult.h"
|
||||
#include "model/ListStateConfigurationsRequest.h"
|
||||
#include "model/ListStateConfigurationsResult.h"
|
||||
#include "model/ListTagKeysRequest.h"
|
||||
#include "model/ListTagKeysResult.h"
|
||||
#include "model/ListTagResourcesRequest.h"
|
||||
@@ -98,6 +118,8 @@
|
||||
#include "model/ListTemplatesResult.h"
|
||||
#include "model/NotifyExecutionRequest.h"
|
||||
#include "model/NotifyExecutionResult.h"
|
||||
#include "model/RegisterDefaultPatchBaselineRequest.h"
|
||||
#include "model/RegisterDefaultPatchBaselineResult.h"
|
||||
#include "model/SearchInventoryRequest.h"
|
||||
#include "model/SearchInventoryResult.h"
|
||||
#include "model/SetServiceSettingsRequest.h"
|
||||
@@ -116,8 +138,12 @@
|
||||
#include "model/UpdateInstanceInformationResult.h"
|
||||
#include "model/UpdateParameterRequest.h"
|
||||
#include "model/UpdateParameterResult.h"
|
||||
#include "model/UpdatePatchBaselineRequest.h"
|
||||
#include "model/UpdatePatchBaselineResult.h"
|
||||
#include "model/UpdateSecretParameterRequest.h"
|
||||
#include "model/UpdateSecretParameterResult.h"
|
||||
#include "model/UpdateStateConfigurationRequest.h"
|
||||
#include "model/UpdateStateConfigurationResult.h"
|
||||
#include "model/UpdateTemplateRequest.h"
|
||||
#include "model/UpdateTemplateResult.h"
|
||||
#include "model/ValidateTemplateContentRequest.h"
|
||||
@@ -137,9 +163,15 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateParameterResult> CreateParameterOutcome;
|
||||
typedef std::future<CreateParameterOutcome> CreateParameterOutcomeCallable;
|
||||
typedef std::function<void(const OosClient*, const Model::CreateParameterRequest&, const CreateParameterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateParameterAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreatePatchBaselineResult> CreatePatchBaselineOutcome;
|
||||
typedef std::future<CreatePatchBaselineOutcome> CreatePatchBaselineOutcomeCallable;
|
||||
typedef std::function<void(const OosClient*, const Model::CreatePatchBaselineRequest&, const CreatePatchBaselineOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreatePatchBaselineAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateSecretParameterResult> CreateSecretParameterOutcome;
|
||||
typedef std::future<CreateSecretParameterOutcome> CreateSecretParameterOutcomeCallable;
|
||||
typedef std::function<void(const OosClient*, const Model::CreateSecretParameterRequest&, const CreateSecretParameterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateSecretParameterAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateStateConfigurationResult> CreateStateConfigurationOutcome;
|
||||
typedef std::future<CreateStateConfigurationOutcome> CreateStateConfigurationOutcomeCallable;
|
||||
typedef std::function<void(const OosClient*, const Model::CreateStateConfigurationRequest&, const CreateStateConfigurationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateStateConfigurationAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateTemplateResult> CreateTemplateOutcome;
|
||||
typedef std::future<CreateTemplateOutcome> CreateTemplateOutcomeCallable;
|
||||
typedef std::function<void(const OosClient*, const Model::CreateTemplateRequest&, const CreateTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateTemplateAsyncHandler;
|
||||
@@ -149,9 +181,15 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DeleteParameterResult> DeleteParameterOutcome;
|
||||
typedef std::future<DeleteParameterOutcome> DeleteParameterOutcomeCallable;
|
||||
typedef std::function<void(const OosClient*, const Model::DeleteParameterRequest&, const DeleteParameterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteParameterAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeletePatchBaselineResult> DeletePatchBaselineOutcome;
|
||||
typedef std::future<DeletePatchBaselineOutcome> DeletePatchBaselineOutcomeCallable;
|
||||
typedef std::function<void(const OosClient*, const Model::DeletePatchBaselineRequest&, const DeletePatchBaselineOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeletePatchBaselineAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteSecretParameterResult> DeleteSecretParameterOutcome;
|
||||
typedef std::future<DeleteSecretParameterOutcome> DeleteSecretParameterOutcomeCallable;
|
||||
typedef std::function<void(const OosClient*, const Model::DeleteSecretParameterRequest&, const DeleteSecretParameterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteSecretParameterAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteStateConfigurationsResult> DeleteStateConfigurationsOutcome;
|
||||
typedef std::future<DeleteStateConfigurationsOutcome> DeleteStateConfigurationsOutcomeCallable;
|
||||
typedef std::function<void(const OosClient*, const Model::DeleteStateConfigurationsRequest&, const DeleteStateConfigurationsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteStateConfigurationsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteTemplateResult> DeleteTemplateOutcome;
|
||||
typedef std::future<DeleteTemplateOutcome> DeleteTemplateOutcomeCallable;
|
||||
typedef std::function<void(const OosClient*, const Model::DeleteTemplateRequest&, const DeleteTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteTemplateAsyncHandler;
|
||||
@@ -179,6 +217,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetParametersByPathResult> GetParametersByPathOutcome;
|
||||
typedef std::future<GetParametersByPathOutcome> GetParametersByPathOutcomeCallable;
|
||||
typedef std::function<void(const OosClient*, const Model::GetParametersByPathRequest&, const GetParametersByPathOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetParametersByPathAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetPatchBaselineResult> GetPatchBaselineOutcome;
|
||||
typedef std::future<GetPatchBaselineOutcome> GetPatchBaselineOutcomeCallable;
|
||||
typedef std::function<void(const OosClient*, const Model::GetPatchBaselineRequest&, const GetPatchBaselineOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPatchBaselineAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetSecretParameterResult> GetSecretParameterOutcome;
|
||||
typedef std::future<GetSecretParameterOutcome> GetSecretParameterOutcomeCallable;
|
||||
typedef std::function<void(const OosClient*, const Model::GetSecretParameterRequest&, const GetSecretParameterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetSecretParameterAsyncHandler;
|
||||
@@ -206,6 +247,15 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListExecutionsResult> ListExecutionsOutcome;
|
||||
typedef std::future<ListExecutionsOutcome> ListExecutionsOutcomeCallable;
|
||||
typedef std::function<void(const OosClient*, const Model::ListExecutionsRequest&, const ListExecutionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListExecutionsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListInstancePatchStatesResult> ListInstancePatchStatesOutcome;
|
||||
typedef std::future<ListInstancePatchStatesOutcome> ListInstancePatchStatesOutcomeCallable;
|
||||
typedef std::function<void(const OosClient*, const Model::ListInstancePatchStatesRequest&, const ListInstancePatchStatesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListInstancePatchStatesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListInstancePatchesResult> ListInstancePatchesOutcome;
|
||||
typedef std::future<ListInstancePatchesOutcome> ListInstancePatchesOutcomeCallable;
|
||||
typedef std::function<void(const OosClient*, const Model::ListInstancePatchesRequest&, const ListInstancePatchesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListInstancePatchesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListInstanceStateReportsResult> ListInstanceStateReportsOutcome;
|
||||
typedef std::future<ListInstanceStateReportsOutcome> ListInstanceStateReportsOutcomeCallable;
|
||||
typedef std::function<void(const OosClient*, const Model::ListInstanceStateReportsRequest&, const ListInstanceStateReportsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListInstanceStateReportsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListInventoryEntriesResult> ListInventoryEntriesOutcome;
|
||||
typedef std::future<ListInventoryEntriesOutcome> ListInventoryEntriesOutcomeCallable;
|
||||
typedef std::function<void(const OosClient*, const Model::ListInventoryEntriesRequest&, const ListInventoryEntriesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListInventoryEntriesAsyncHandler;
|
||||
@@ -215,6 +265,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListParametersResult> ListParametersOutcome;
|
||||
typedef std::future<ListParametersOutcome> ListParametersOutcomeCallable;
|
||||
typedef std::function<void(const OosClient*, const Model::ListParametersRequest&, const ListParametersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListParametersAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListPatchBaselinesResult> ListPatchBaselinesOutcome;
|
||||
typedef std::future<ListPatchBaselinesOutcome> ListPatchBaselinesOutcomeCallable;
|
||||
typedef std::function<void(const OosClient*, const Model::ListPatchBaselinesRequest&, const ListPatchBaselinesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPatchBaselinesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListResourceExecutionStatusResult> ListResourceExecutionStatusOutcome;
|
||||
typedef std::future<ListResourceExecutionStatusOutcome> ListResourceExecutionStatusOutcomeCallable;
|
||||
typedef std::function<void(const OosClient*, const Model::ListResourceExecutionStatusRequest&, const ListResourceExecutionStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListResourceExecutionStatusAsyncHandler;
|
||||
@@ -224,6 +277,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListSecretParametersResult> ListSecretParametersOutcome;
|
||||
typedef std::future<ListSecretParametersOutcome> ListSecretParametersOutcomeCallable;
|
||||
typedef std::function<void(const OosClient*, const Model::ListSecretParametersRequest&, const ListSecretParametersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListSecretParametersAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListStateConfigurationsResult> ListStateConfigurationsOutcome;
|
||||
typedef std::future<ListStateConfigurationsOutcome> ListStateConfigurationsOutcomeCallable;
|
||||
typedef std::function<void(const OosClient*, const Model::ListStateConfigurationsRequest&, const ListStateConfigurationsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListStateConfigurationsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListTagKeysResult> ListTagKeysOutcome;
|
||||
typedef std::future<ListTagKeysOutcome> ListTagKeysOutcomeCallable;
|
||||
typedef std::function<void(const OosClient*, const Model::ListTagKeysRequest&, const ListTagKeysOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTagKeysAsyncHandler;
|
||||
@@ -245,6 +301,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::NotifyExecutionResult> NotifyExecutionOutcome;
|
||||
typedef std::future<NotifyExecutionOutcome> NotifyExecutionOutcomeCallable;
|
||||
typedef std::function<void(const OosClient*, const Model::NotifyExecutionRequest&, const NotifyExecutionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> NotifyExecutionAsyncHandler;
|
||||
typedef Outcome<Error, Model::RegisterDefaultPatchBaselineResult> RegisterDefaultPatchBaselineOutcome;
|
||||
typedef std::future<RegisterDefaultPatchBaselineOutcome> RegisterDefaultPatchBaselineOutcomeCallable;
|
||||
typedef std::function<void(const OosClient*, const Model::RegisterDefaultPatchBaselineRequest&, const RegisterDefaultPatchBaselineOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RegisterDefaultPatchBaselineAsyncHandler;
|
||||
typedef Outcome<Error, Model::SearchInventoryResult> SearchInventoryOutcome;
|
||||
typedef std::future<SearchInventoryOutcome> SearchInventoryOutcomeCallable;
|
||||
typedef std::function<void(const OosClient*, const Model::SearchInventoryRequest&, const SearchInventoryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchInventoryAsyncHandler;
|
||||
@@ -272,9 +331,15 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::UpdateParameterResult> UpdateParameterOutcome;
|
||||
typedef std::future<UpdateParameterOutcome> UpdateParameterOutcomeCallable;
|
||||
typedef std::function<void(const OosClient*, const Model::UpdateParameterRequest&, const UpdateParameterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateParameterAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdatePatchBaselineResult> UpdatePatchBaselineOutcome;
|
||||
typedef std::future<UpdatePatchBaselineOutcome> UpdatePatchBaselineOutcomeCallable;
|
||||
typedef std::function<void(const OosClient*, const Model::UpdatePatchBaselineRequest&, const UpdatePatchBaselineOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdatePatchBaselineAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateSecretParameterResult> UpdateSecretParameterOutcome;
|
||||
typedef std::future<UpdateSecretParameterOutcome> UpdateSecretParameterOutcomeCallable;
|
||||
typedef std::function<void(const OosClient*, const Model::UpdateSecretParameterRequest&, const UpdateSecretParameterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateSecretParameterAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateStateConfigurationResult> UpdateStateConfigurationOutcome;
|
||||
typedef std::future<UpdateStateConfigurationOutcome> UpdateStateConfigurationOutcomeCallable;
|
||||
typedef std::function<void(const OosClient*, const Model::UpdateStateConfigurationRequest&, const UpdateStateConfigurationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateStateConfigurationAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateTemplateResult> UpdateTemplateOutcome;
|
||||
typedef std::future<UpdateTemplateOutcome> UpdateTemplateOutcomeCallable;
|
||||
typedef std::function<void(const OosClient*, const Model::UpdateTemplateRequest&, const UpdateTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateTemplateAsyncHandler;
|
||||
@@ -292,9 +357,15 @@ namespace AlibabaCloud
|
||||
CreateParameterOutcome createParameter(const Model::CreateParameterRequest &request)const;
|
||||
void createParameterAsync(const Model::CreateParameterRequest& request, const CreateParameterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateParameterOutcomeCallable createParameterCallable(const Model::CreateParameterRequest& request) const;
|
||||
CreatePatchBaselineOutcome createPatchBaseline(const Model::CreatePatchBaselineRequest &request)const;
|
||||
void createPatchBaselineAsync(const Model::CreatePatchBaselineRequest& request, const CreatePatchBaselineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreatePatchBaselineOutcomeCallable createPatchBaselineCallable(const Model::CreatePatchBaselineRequest& request) const;
|
||||
CreateSecretParameterOutcome createSecretParameter(const Model::CreateSecretParameterRequest &request)const;
|
||||
void createSecretParameterAsync(const Model::CreateSecretParameterRequest& request, const CreateSecretParameterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateSecretParameterOutcomeCallable createSecretParameterCallable(const Model::CreateSecretParameterRequest& request) const;
|
||||
CreateStateConfigurationOutcome createStateConfiguration(const Model::CreateStateConfigurationRequest &request)const;
|
||||
void createStateConfigurationAsync(const Model::CreateStateConfigurationRequest& request, const CreateStateConfigurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateStateConfigurationOutcomeCallable createStateConfigurationCallable(const Model::CreateStateConfigurationRequest& request) const;
|
||||
CreateTemplateOutcome createTemplate(const Model::CreateTemplateRequest &request)const;
|
||||
void createTemplateAsync(const Model::CreateTemplateRequest& request, const CreateTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateTemplateOutcomeCallable createTemplateCallable(const Model::CreateTemplateRequest& request) const;
|
||||
@@ -304,9 +375,15 @@ namespace AlibabaCloud
|
||||
DeleteParameterOutcome deleteParameter(const Model::DeleteParameterRequest &request)const;
|
||||
void deleteParameterAsync(const Model::DeleteParameterRequest& request, const DeleteParameterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteParameterOutcomeCallable deleteParameterCallable(const Model::DeleteParameterRequest& request) const;
|
||||
DeletePatchBaselineOutcome deletePatchBaseline(const Model::DeletePatchBaselineRequest &request)const;
|
||||
void deletePatchBaselineAsync(const Model::DeletePatchBaselineRequest& request, const DeletePatchBaselineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeletePatchBaselineOutcomeCallable deletePatchBaselineCallable(const Model::DeletePatchBaselineRequest& request) const;
|
||||
DeleteSecretParameterOutcome deleteSecretParameter(const Model::DeleteSecretParameterRequest &request)const;
|
||||
void deleteSecretParameterAsync(const Model::DeleteSecretParameterRequest& request, const DeleteSecretParameterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteSecretParameterOutcomeCallable deleteSecretParameterCallable(const Model::DeleteSecretParameterRequest& request) const;
|
||||
DeleteStateConfigurationsOutcome deleteStateConfigurations(const Model::DeleteStateConfigurationsRequest &request)const;
|
||||
void deleteStateConfigurationsAsync(const Model::DeleteStateConfigurationsRequest& request, const DeleteStateConfigurationsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteStateConfigurationsOutcomeCallable deleteStateConfigurationsCallable(const Model::DeleteStateConfigurationsRequest& request) const;
|
||||
DeleteTemplateOutcome deleteTemplate(const Model::DeleteTemplateRequest &request)const;
|
||||
void deleteTemplateAsync(const Model::DeleteTemplateRequest& request, const DeleteTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteTemplateOutcomeCallable deleteTemplateCallable(const Model::DeleteTemplateRequest& request) const;
|
||||
@@ -334,6 +411,9 @@ namespace AlibabaCloud
|
||||
GetParametersByPathOutcome getParametersByPath(const Model::GetParametersByPathRequest &request)const;
|
||||
void getParametersByPathAsync(const Model::GetParametersByPathRequest& request, const GetParametersByPathAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetParametersByPathOutcomeCallable getParametersByPathCallable(const Model::GetParametersByPathRequest& request) const;
|
||||
GetPatchBaselineOutcome getPatchBaseline(const Model::GetPatchBaselineRequest &request)const;
|
||||
void getPatchBaselineAsync(const Model::GetPatchBaselineRequest& request, const GetPatchBaselineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetPatchBaselineOutcomeCallable getPatchBaselineCallable(const Model::GetPatchBaselineRequest& request) const;
|
||||
GetSecretParameterOutcome getSecretParameter(const Model::GetSecretParameterRequest &request)const;
|
||||
void getSecretParameterAsync(const Model::GetSecretParameterRequest& request, const GetSecretParameterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetSecretParameterOutcomeCallable getSecretParameterCallable(const Model::GetSecretParameterRequest& request) const;
|
||||
@@ -361,6 +441,15 @@ namespace AlibabaCloud
|
||||
ListExecutionsOutcome listExecutions(const Model::ListExecutionsRequest &request)const;
|
||||
void listExecutionsAsync(const Model::ListExecutionsRequest& request, const ListExecutionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListExecutionsOutcomeCallable listExecutionsCallable(const Model::ListExecutionsRequest& request) const;
|
||||
ListInstancePatchStatesOutcome listInstancePatchStates(const Model::ListInstancePatchStatesRequest &request)const;
|
||||
void listInstancePatchStatesAsync(const Model::ListInstancePatchStatesRequest& request, const ListInstancePatchStatesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListInstancePatchStatesOutcomeCallable listInstancePatchStatesCallable(const Model::ListInstancePatchStatesRequest& request) const;
|
||||
ListInstancePatchesOutcome listInstancePatches(const Model::ListInstancePatchesRequest &request)const;
|
||||
void listInstancePatchesAsync(const Model::ListInstancePatchesRequest& request, const ListInstancePatchesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListInstancePatchesOutcomeCallable listInstancePatchesCallable(const Model::ListInstancePatchesRequest& request) const;
|
||||
ListInstanceStateReportsOutcome listInstanceStateReports(const Model::ListInstanceStateReportsRequest &request)const;
|
||||
void listInstanceStateReportsAsync(const Model::ListInstanceStateReportsRequest& request, const ListInstanceStateReportsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListInstanceStateReportsOutcomeCallable listInstanceStateReportsCallable(const Model::ListInstanceStateReportsRequest& request) const;
|
||||
ListInventoryEntriesOutcome listInventoryEntries(const Model::ListInventoryEntriesRequest &request)const;
|
||||
void listInventoryEntriesAsync(const Model::ListInventoryEntriesRequest& request, const ListInventoryEntriesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListInventoryEntriesOutcomeCallable listInventoryEntriesCallable(const Model::ListInventoryEntriesRequest& request) const;
|
||||
@@ -370,6 +459,9 @@ namespace AlibabaCloud
|
||||
ListParametersOutcome listParameters(const Model::ListParametersRequest &request)const;
|
||||
void listParametersAsync(const Model::ListParametersRequest& request, const ListParametersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListParametersOutcomeCallable listParametersCallable(const Model::ListParametersRequest& request) const;
|
||||
ListPatchBaselinesOutcome listPatchBaselines(const Model::ListPatchBaselinesRequest &request)const;
|
||||
void listPatchBaselinesAsync(const Model::ListPatchBaselinesRequest& request, const ListPatchBaselinesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListPatchBaselinesOutcomeCallable listPatchBaselinesCallable(const Model::ListPatchBaselinesRequest& request) const;
|
||||
ListResourceExecutionStatusOutcome listResourceExecutionStatus(const Model::ListResourceExecutionStatusRequest &request)const;
|
||||
void listResourceExecutionStatusAsync(const Model::ListResourceExecutionStatusRequest& request, const ListResourceExecutionStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListResourceExecutionStatusOutcomeCallable listResourceExecutionStatusCallable(const Model::ListResourceExecutionStatusRequest& request) const;
|
||||
@@ -379,6 +471,9 @@ namespace AlibabaCloud
|
||||
ListSecretParametersOutcome listSecretParameters(const Model::ListSecretParametersRequest &request)const;
|
||||
void listSecretParametersAsync(const Model::ListSecretParametersRequest& request, const ListSecretParametersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListSecretParametersOutcomeCallable listSecretParametersCallable(const Model::ListSecretParametersRequest& request) const;
|
||||
ListStateConfigurationsOutcome listStateConfigurations(const Model::ListStateConfigurationsRequest &request)const;
|
||||
void listStateConfigurationsAsync(const Model::ListStateConfigurationsRequest& request, const ListStateConfigurationsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListStateConfigurationsOutcomeCallable listStateConfigurationsCallable(const Model::ListStateConfigurationsRequest& request) const;
|
||||
ListTagKeysOutcome listTagKeys(const Model::ListTagKeysRequest &request)const;
|
||||
void listTagKeysAsync(const Model::ListTagKeysRequest& request, const ListTagKeysAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListTagKeysOutcomeCallable listTagKeysCallable(const Model::ListTagKeysRequest& request) const;
|
||||
@@ -400,6 +495,9 @@ namespace AlibabaCloud
|
||||
NotifyExecutionOutcome notifyExecution(const Model::NotifyExecutionRequest &request)const;
|
||||
void notifyExecutionAsync(const Model::NotifyExecutionRequest& request, const NotifyExecutionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
NotifyExecutionOutcomeCallable notifyExecutionCallable(const Model::NotifyExecutionRequest& request) const;
|
||||
RegisterDefaultPatchBaselineOutcome registerDefaultPatchBaseline(const Model::RegisterDefaultPatchBaselineRequest &request)const;
|
||||
void registerDefaultPatchBaselineAsync(const Model::RegisterDefaultPatchBaselineRequest& request, const RegisterDefaultPatchBaselineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RegisterDefaultPatchBaselineOutcomeCallable registerDefaultPatchBaselineCallable(const Model::RegisterDefaultPatchBaselineRequest& request) const;
|
||||
SearchInventoryOutcome searchInventory(const Model::SearchInventoryRequest &request)const;
|
||||
void searchInventoryAsync(const Model::SearchInventoryRequest& request, const SearchInventoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SearchInventoryOutcomeCallable searchInventoryCallable(const Model::SearchInventoryRequest& request) const;
|
||||
@@ -427,9 +525,15 @@ namespace AlibabaCloud
|
||||
UpdateParameterOutcome updateParameter(const Model::UpdateParameterRequest &request)const;
|
||||
void updateParameterAsync(const Model::UpdateParameterRequest& request, const UpdateParameterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateParameterOutcomeCallable updateParameterCallable(const Model::UpdateParameterRequest& request) const;
|
||||
UpdatePatchBaselineOutcome updatePatchBaseline(const Model::UpdatePatchBaselineRequest &request)const;
|
||||
void updatePatchBaselineAsync(const Model::UpdatePatchBaselineRequest& request, const UpdatePatchBaselineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdatePatchBaselineOutcomeCallable updatePatchBaselineCallable(const Model::UpdatePatchBaselineRequest& request) const;
|
||||
UpdateSecretParameterOutcome updateSecretParameter(const Model::UpdateSecretParameterRequest &request)const;
|
||||
void updateSecretParameterAsync(const Model::UpdateSecretParameterRequest& request, const UpdateSecretParameterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateSecretParameterOutcomeCallable updateSecretParameterCallable(const Model::UpdateSecretParameterRequest& request) const;
|
||||
UpdateStateConfigurationOutcome updateStateConfiguration(const Model::UpdateStateConfigurationRequest &request)const;
|
||||
void updateStateConfigurationAsync(const Model::UpdateStateConfigurationRequest& request, const UpdateStateConfigurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateStateConfigurationOutcomeCallable updateStateConfigurationCallable(const Model::UpdateStateConfigurationRequest& request) const;
|
||||
UpdateTemplateOutcome updateTemplate(const Model::UpdateTemplateRequest &request)const;
|
||||
void updateTemplateAsync(const Model::UpdateTemplateRequest& request, const UpdateTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateTemplateOutcomeCallable updateTemplateCallable(const Model::UpdateTemplateRequest& 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_OOS_MODEL_CREATEPATCHBASELINEREQUEST_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_CREATEPATCHBASELINEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/oos/OosExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Oos
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OOS_EXPORT CreatePatchBaselineRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreatePatchBaselineRequest();
|
||||
~CreatePatchBaselineRequest();
|
||||
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getApprovalRules()const;
|
||||
void setApprovalRules(const std::string& approvalRules);
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
std::string getOperationSystem()const;
|
||||
void setOperationSystem(const std::string& operationSystem);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string approvalRules_;
|
||||
std::string description_;
|
||||
std::string operationSystem_;
|
||||
std::string regionId_;
|
||||
std::string name_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OOS_MODEL_CREATEPATCHBASELINEREQUEST_H_
|
||||
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* 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_OOS_MODEL_CREATEPATCHBASELINERESULT_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_CREATEPATCHBASELINERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/oos/OosExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Oos
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OOS_EXPORT CreatePatchBaselineResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct PatchBaseline
|
||||
{
|
||||
std::string updatedBy;
|
||||
std::string createdBy;
|
||||
std::string description;
|
||||
std::string updatedDate;
|
||||
std::string createdDate;
|
||||
std::string id;
|
||||
std::string operationSystem;
|
||||
std::string approvalRules;
|
||||
std::string name;
|
||||
std::string shareType;
|
||||
};
|
||||
|
||||
|
||||
CreatePatchBaselineResult();
|
||||
explicit CreatePatchBaselineResult(const std::string &payload);
|
||||
~CreatePatchBaselineResult();
|
||||
PatchBaseline getPatchBaseline()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
PatchBaseline patchBaseline_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OOS_MODEL_CREATEPATCHBASELINERESULT_H_
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OOS_MODEL_CREATESTATECONFIGURATIONREQUEST_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_CREATESTATECONFIGURATIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/oos/OosExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Oos
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OOS_EXPORT CreateStateConfigurationRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateStateConfigurationRequest();
|
||||
~CreateStateConfigurationRequest();
|
||||
|
||||
std::string getScheduleType()const;
|
||||
void setScheduleType(const std::string& scheduleType);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
std::string getTargets()const;
|
||||
void setTargets(const std::string& targets);
|
||||
std::string getTemplateVersion()const;
|
||||
void setTemplateVersion(const std::string& templateVersion);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getScheduleExpression()const;
|
||||
void setScheduleExpression(const std::string& scheduleExpression);
|
||||
std::string getTemplateName()const;
|
||||
void setTemplateName(const std::string& templateName);
|
||||
std::string getConfigureMode()const;
|
||||
void setConfigureMode(const std::string& configureMode);
|
||||
std::string getTags()const;
|
||||
void setTags(const std::string& tags);
|
||||
std::string getParameters()const;
|
||||
void setParameters(const std::string& parameters);
|
||||
|
||||
private:
|
||||
std::string scheduleType_;
|
||||
std::string clientToken_;
|
||||
std::string description_;
|
||||
std::string targets_;
|
||||
std::string templateVersion_;
|
||||
std::string regionId_;
|
||||
std::string scheduleExpression_;
|
||||
std::string templateName_;
|
||||
std::string configureMode_;
|
||||
std::string tags_;
|
||||
std::string parameters_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OOS_MODEL_CREATESTATECONFIGURATIONREQUEST_H_
|
||||
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OOS_MODEL_CREATESTATECONFIGURATIONRESULT_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_CREATESTATECONFIGURATIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/oos/OosExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Oos
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OOS_EXPORT CreateStateConfigurationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct StateConfigurationItem
|
||||
{
|
||||
std::string configureMode;
|
||||
std::string scheduleType;
|
||||
std::string scheduleExpression;
|
||||
std::string description;
|
||||
std::string parameters;
|
||||
std::string stateConfigurationId;
|
||||
std::string createTime;
|
||||
std::string templateName;
|
||||
std::string templateVersion;
|
||||
std::string targets;
|
||||
std::string templateId;
|
||||
std::string tags;
|
||||
};
|
||||
|
||||
|
||||
CreateStateConfigurationResult();
|
||||
explicit CreateStateConfigurationResult(const std::string &payload);
|
||||
~CreateStateConfigurationResult();
|
||||
std::vector<StateConfigurationItem> getStateConfiguration()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<StateConfigurationItem> stateConfiguration_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OOS_MODEL_CREATESTATECONFIGURATIONRESULT_H_
|
||||
@@ -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_OOS_MODEL_DELETEPATCHBASELINEREQUEST_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_DELETEPATCHBASELINEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/oos/OosExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Oos
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OOS_EXPORT DeletePatchBaselineRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeletePatchBaselineRequest();
|
||||
~DeletePatchBaselineRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
std::string name_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OOS_MODEL_DELETEPATCHBASELINEREQUEST_H_
|
||||
@@ -14,29 +14,29 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RDS_MODEL_RESETACCOUNTFORPGRESULT_H_
|
||||
#define ALIBABACLOUD_RDS_MODEL_RESETACCOUNTFORPGRESULT_H_
|
||||
#ifndef ALIBABACLOUD_OOS_MODEL_DELETEPATCHBASELINERESULT_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_DELETEPATCHBASELINERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/rds/RdsExport.h>
|
||||
#include <alibabacloud/oos/OosExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rds
|
||||
namespace Oos
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RDS_EXPORT ResetAccountForPGResult : public ServiceResult
|
||||
class ALIBABACLOUD_OOS_EXPORT DeletePatchBaselineResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ResetAccountForPGResult();
|
||||
explicit ResetAccountForPGResult(const std::string &payload);
|
||||
~ResetAccountForPGResult();
|
||||
DeletePatchBaselineResult();
|
||||
explicit DeletePatchBaselineResult(const std::string &payload);
|
||||
~DeletePatchBaselineResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
@@ -46,4 +46,4 @@ namespace AlibabaCloud
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RDS_MODEL_RESETACCOUNTFORPGRESULT_H_
|
||||
#endif // !ALIBABACLOUD_OOS_MODEL_DELETEPATCHBASELINERESULT_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_OOS_MODEL_DELETESTATECONFIGURATIONSREQUEST_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_DELETESTATECONFIGURATIONSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/oos/OosExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Oos
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OOS_EXPORT DeleteStateConfigurationsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteStateConfigurationsRequest();
|
||||
~DeleteStateConfigurationsRequest();
|
||||
|
||||
std::string getStateConfigurationIds()const;
|
||||
void setStateConfigurationIds(const std::string& stateConfigurationIds);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
|
||||
private:
|
||||
std::string stateConfigurationIds_;
|
||||
std::string clientToken_;
|
||||
std::string regionId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OOS_MODEL_DELETESTATECONFIGURATIONSREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* 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_OOS_MODEL_DELETESTATECONFIGURATIONSRESULT_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_DELETESTATECONFIGURATIONSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/oos/OosExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Oos
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OOS_EXPORT DeleteStateConfigurationsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteStateConfigurationsResult();
|
||||
explicit DeleteStateConfigurationsResult(const std::string &payload);
|
||||
~DeleteStateConfigurationsResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OOS_MODEL_DELETESTATECONFIGURATIONSRESULT_H_
|
||||
51
oos/include/alibabacloud/oos/model/GetPatchBaselineRequest.h
Normal file
51
oos/include/alibabacloud/oos/model/GetPatchBaselineRequest.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_OOS_MODEL_GETPATCHBASELINEREQUEST_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_GETPATCHBASELINEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/oos/OosExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Oos
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OOS_EXPORT GetPatchBaselineRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetPatchBaselineRequest();
|
||||
~GetPatchBaselineRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
std::string name_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OOS_MODEL_GETPATCHBASELINEREQUEST_H_
|
||||
64
oos/include/alibabacloud/oos/model/GetPatchBaselineResult.h
Normal file
64
oos/include/alibabacloud/oos/model/GetPatchBaselineResult.h
Normal file
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* 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_OOS_MODEL_GETPATCHBASELINERESULT_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_GETPATCHBASELINERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/oos/OosExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Oos
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OOS_EXPORT GetPatchBaselineResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct PatchBaseline
|
||||
{
|
||||
std::string updatedBy;
|
||||
std::string createdBy;
|
||||
std::string description;
|
||||
std::string updatedDate;
|
||||
std::string createdDate;
|
||||
std::string id;
|
||||
std::string operationSystem;
|
||||
std::string approvalRules;
|
||||
std::string name;
|
||||
std::string shareType;
|
||||
};
|
||||
|
||||
|
||||
GetPatchBaselineResult();
|
||||
explicit GetPatchBaselineResult(const std::string &payload);
|
||||
~GetPatchBaselineResult();
|
||||
PatchBaseline getPatchBaseline()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
PatchBaseline patchBaseline_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OOS_MODEL_GETPATCHBASELINERESULT_H_
|
||||
@@ -35,8 +35,11 @@ namespace AlibabaCloud
|
||||
GetServiceSettingsRequest();
|
||||
~GetServiceSettingsRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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_OOS_MODEL_LISTINSTANCEPATCHSTATESREQUEST_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_LISTINSTANCEPATCHSTATESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/oos/OosExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Oos
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OOS_EXPORT ListInstancePatchStatesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListInstancePatchStatesRequest();
|
||||
~ListInstancePatchStatesRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getNextToken()const;
|
||||
void setNextToken(const std::string& nextToken);
|
||||
std::string getInstanceIds()const;
|
||||
void setInstanceIds(const std::string& instanceIds);
|
||||
int getMaxResults()const;
|
||||
void setMaxResults(int maxResults);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
std::string nextToken_;
|
||||
std::string instanceIds_;
|
||||
int maxResults_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OOS_MODEL_LISTINSTANCEPATCHSTATESREQUEST_H_
|
||||
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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_OOS_MODEL_LISTINSTANCEPATCHSTATESRESULT_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_LISTINSTANCEPATCHSTATESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/oos/OosExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Oos
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OOS_EXPORT ListInstancePatchStatesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct InstancePatchState
|
||||
{
|
||||
std::string baselineId;
|
||||
std::string missingCount;
|
||||
std::string ownerInformation;
|
||||
std::string instanceId;
|
||||
std::string installedOtherCount;
|
||||
std::string operationEndTime;
|
||||
std::string installedPendingRebootCount;
|
||||
std::string operationStartTime;
|
||||
std::string failedCount;
|
||||
std::string operationType;
|
||||
std::string installedCount;
|
||||
std::string patchGroup;
|
||||
std::string installedRejectedCount;
|
||||
};
|
||||
|
||||
|
||||
ListInstancePatchStatesResult();
|
||||
explicit ListInstancePatchStatesResult(const std::string &payload);
|
||||
~ListInstancePatchStatesResult();
|
||||
std::string getNextToken()const;
|
||||
int getMaxResults()const;
|
||||
std::vector<InstancePatchState> getInstancePatchStates()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string nextToken_;
|
||||
int maxResults_;
|
||||
std::vector<InstancePatchState> instancePatchStates_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OOS_MODEL_LISTINSTANCEPATCHSTATESRESULT_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_OOS_MODEL_LISTINSTANCEPATCHESREQUEST_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_LISTINSTANCEPATCHESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/oos/OosExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Oos
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OOS_EXPORT ListInstancePatchesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListInstancePatchesRequest();
|
||||
~ListInstancePatchesRequest();
|
||||
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getNextToken()const;
|
||||
void setNextToken(const std::string& nextToken);
|
||||
int getMaxResults()const;
|
||||
void setMaxResults(int maxResults);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string regionId_;
|
||||
std::string nextToken_;
|
||||
int maxResults_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OOS_MODEL_LISTINSTANCEPATCHESREQUEST_H_
|
||||
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* 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_OOS_MODEL_LISTINSTANCEPATCHESRESULT_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_LISTINSTANCEPATCHESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/oos/OosExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Oos
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OOS_EXPORT ListInstancePatchesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Patch
|
||||
{
|
||||
std::string status;
|
||||
std::string kBId;
|
||||
std::string installedTime;
|
||||
std::string classification;
|
||||
std::string title;
|
||||
std::string severity;
|
||||
};
|
||||
|
||||
|
||||
ListInstancePatchesResult();
|
||||
explicit ListInstancePatchesResult(const std::string &payload);
|
||||
~ListInstancePatchesResult();
|
||||
std::string getNextToken()const;
|
||||
int getMaxResults()const;
|
||||
std::vector<Patch> getPatches()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string nextToken_;
|
||||
int maxResults_;
|
||||
std::vector<Patch> patches_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OOS_MODEL_LISTINSTANCEPATCHESRESULT_H_
|
||||
@@ -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_OOS_MODEL_LISTINSTANCESTATEREPORTSREQUEST_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_LISTINSTANCESTATEREPORTSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/oos/OosExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Oos
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OOS_EXPORT ListInstanceStateReportsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListInstanceStateReportsRequest();
|
||||
~ListInstanceStateReportsRequest();
|
||||
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getNextToken()const;
|
||||
void setNextToken(const std::string& nextToken);
|
||||
int getMaxResults()const;
|
||||
void setMaxResults(int maxResults);
|
||||
std::string getStateConfigurationId()const;
|
||||
void setStateConfigurationId(const std::string& stateConfigurationId);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string regionId_;
|
||||
std::string nextToken_;
|
||||
int maxResults_;
|
||||
std::string stateConfigurationId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OOS_MODEL_LISTINSTANCESTATEREPORTSREQUEST_H_
|
||||
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OOS_MODEL_LISTINSTANCESTATEREPORTSRESULT_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_LISTINSTANCESTATEREPORTSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/oos/OosExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Oos
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OOS_EXPORT ListInstanceStateReportsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct StateReport
|
||||
{
|
||||
std::string reportTime;
|
||||
std::string instanceId;
|
||||
std::string stateConfigurationId;
|
||||
std::string successApplyTime;
|
||||
std::string mode;
|
||||
std::string reportInfo;
|
||||
std::string reportStatus;
|
||||
};
|
||||
|
||||
|
||||
ListInstanceStateReportsResult();
|
||||
explicit ListInstanceStateReportsResult(const std::string &payload);
|
||||
~ListInstanceStateReportsResult();
|
||||
std::vector<StateReport> getStateReports()const;
|
||||
std::string getNextToken()const;
|
||||
int getMaxResults()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<StateReport> stateReports_;
|
||||
std::string nextToken_;
|
||||
int maxResults_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OOS_MODEL_LISTINSTANCESTATEREPORTSRESULT_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_OOS_MODEL_LISTPATCHBASELINESREQUEST_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_LISTPATCHBASELINESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/oos/OosExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Oos
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OOS_EXPORT ListPatchBaselinesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListPatchBaselinesRequest();
|
||||
~ListPatchBaselinesRequest();
|
||||
|
||||
std::string getOperationSystem()const;
|
||||
void setOperationSystem(const std::string& operationSystem);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getNextToken()const;
|
||||
void setNextToken(const std::string& nextToken);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
int getMaxResults()const;
|
||||
void setMaxResults(int maxResults);
|
||||
std::string getShareType()const;
|
||||
void setShareType(const std::string& shareType);
|
||||
|
||||
private:
|
||||
std::string operationSystem_;
|
||||
std::string regionId_;
|
||||
std::string nextToken_;
|
||||
std::string name_;
|
||||
int maxResults_;
|
||||
std::string shareType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OOS_MODEL_LISTPATCHBASELINESREQUEST_H_
|
||||
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* 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_OOS_MODEL_LISTPATCHBASELINESRESULT_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_LISTPATCHBASELINESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/oos/OosExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Oos
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OOS_EXPORT ListPatchBaselinesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct PatchBaseline
|
||||
{
|
||||
bool isDefault;
|
||||
std::string updatedBy;
|
||||
std::string createdBy;
|
||||
std::string description;
|
||||
std::string updatedDate;
|
||||
std::string createdDate;
|
||||
std::string id;
|
||||
std::string operationSystem;
|
||||
std::string name;
|
||||
std::string shareType;
|
||||
};
|
||||
|
||||
|
||||
ListPatchBaselinesResult();
|
||||
explicit ListPatchBaselinesResult(const std::string &payload);
|
||||
~ListPatchBaselinesResult();
|
||||
std::string getNextToken()const;
|
||||
int getMaxResults()const;
|
||||
std::vector<PatchBaseline> getPatchBaselines()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string nextToken_;
|
||||
int maxResults_;
|
||||
std::vector<PatchBaseline> patchBaselines_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OOS_MODEL_LISTPATCHBASELINESRESULT_H_
|
||||
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OOS_MODEL_LISTSTATECONFIGURATIONSREQUEST_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_LISTSTATECONFIGURATIONSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/oos/OosExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Oos
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OOS_EXPORT ListStateConfigurationsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListStateConfigurationsRequest();
|
||||
~ListStateConfigurationsRequest();
|
||||
|
||||
std::string getStateConfigurationIds()const;
|
||||
void setStateConfigurationIds(const std::string& stateConfigurationIds);
|
||||
std::string getTags()const;
|
||||
void setTags(const std::string& tags);
|
||||
std::string getTemplateVersion()const;
|
||||
void setTemplateVersion(const std::string& templateVersion);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getNextToken()const;
|
||||
void setNextToken(const std::string& nextToken);
|
||||
std::string getMaxResults()const;
|
||||
void setMaxResults(const std::string& maxResults);
|
||||
std::string getTemplateName()const;
|
||||
void setTemplateName(const std::string& templateName);
|
||||
|
||||
private:
|
||||
std::string stateConfigurationIds_;
|
||||
std::string tags_;
|
||||
std::string templateVersion_;
|
||||
std::string regionId_;
|
||||
std::string nextToken_;
|
||||
std::string maxResults_;
|
||||
std::string templateName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OOS_MODEL_LISTSTATECONFIGURATIONSREQUEST_H_
|
||||
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* 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_OOS_MODEL_LISTSTATECONFIGURATIONSRESULT_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_LISTSTATECONFIGURATIONSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/oos/OosExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Oos
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OOS_EXPORT ListStateConfigurationsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct StateConfiguration
|
||||
{
|
||||
std::string scheduleType;
|
||||
std::string scheduleExpression;
|
||||
std::string description;
|
||||
std::string parameters;
|
||||
std::string createTime;
|
||||
std::string templateVersion;
|
||||
std::string targets;
|
||||
std::string configureMode;
|
||||
std::string stateConfigurationId;
|
||||
std::string updateTime;
|
||||
std::string templateName;
|
||||
std::string templateId;
|
||||
std::string tags;
|
||||
};
|
||||
|
||||
|
||||
ListStateConfigurationsResult();
|
||||
explicit ListStateConfigurationsResult(const std::string &payload);
|
||||
~ListStateConfigurationsResult();
|
||||
std::vector<StateConfiguration> getStateConfigurations()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<StateConfiguration> stateConfigurations_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OOS_MODEL_LISTSTATECONFIGURATIONSRESULT_H_
|
||||
@@ -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_OOS_MODEL_REGISTERDEFAULTPATCHBASELINEREQUEST_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_REGISTERDEFAULTPATCHBASELINEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/oos/OosExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Oos
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OOS_EXPORT RegisterDefaultPatchBaselineRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
RegisterDefaultPatchBaselineRequest();
|
||||
~RegisterDefaultPatchBaselineRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
std::string name_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OOS_MODEL_REGISTERDEFAULTPATCHBASELINEREQUEST_H_
|
||||
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* 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_OOS_MODEL_REGISTERDEFAULTPATCHBASELINERESULT_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_REGISTERDEFAULTPATCHBASELINERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/oos/OosExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Oos
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OOS_EXPORT RegisterDefaultPatchBaselineResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct PatchBaseline
|
||||
{
|
||||
std::string updatedBy;
|
||||
std::string createdBy;
|
||||
std::string description;
|
||||
std::string updatedDate;
|
||||
std::string createdDate;
|
||||
std::string id;
|
||||
std::string operationSystem;
|
||||
std::string approvalRules;
|
||||
std::string name;
|
||||
std::string shareType;
|
||||
};
|
||||
|
||||
|
||||
RegisterDefaultPatchBaselineResult();
|
||||
explicit RegisterDefaultPatchBaselineResult(const std::string &payload);
|
||||
~RegisterDefaultPatchBaselineResult();
|
||||
PatchBaseline getPatchBaseline()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
PatchBaseline patchBaseline_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OOS_MODEL_REGISTERDEFAULTPATCHBASELINERESULT_H_
|
||||
@@ -41,6 +41,8 @@ namespace AlibabaCloud
|
||||
void setDeliveryOssKeyPrefix(const std::string& deliveryOssKeyPrefix);
|
||||
bool getDeliveryOssEnabled()const;
|
||||
void setDeliveryOssEnabled(bool deliveryOssEnabled);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getDeliverySlsProjectName()const;
|
||||
void setDeliverySlsProjectName(const std::string& deliverySlsProjectName);
|
||||
std::string getDeliveryOssBucketName()const;
|
||||
@@ -50,6 +52,7 @@ namespace AlibabaCloud
|
||||
bool deliverySlsEnabled_;
|
||||
std::string deliveryOssKeyPrefix_;
|
||||
bool deliveryOssEnabled_;
|
||||
std::string regionId_;
|
||||
std::string deliverySlsProjectName_;
|
||||
std::string deliveryOssBucketName_;
|
||||
|
||||
|
||||
@@ -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_OOS_MODEL_UPDATEPATCHBASELINEREQUEST_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_UPDATEPATCHBASELINEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/oos/OosExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Oos
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OOS_EXPORT UpdatePatchBaselineRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UpdatePatchBaselineRequest();
|
||||
~UpdatePatchBaselineRequest();
|
||||
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getApprovalRules()const;
|
||||
void setApprovalRules(const std::string& approvalRules);
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string approvalRules_;
|
||||
std::string description_;
|
||||
std::string regionId_;
|
||||
std::string name_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OOS_MODEL_UPDATEPATCHBASELINEREQUEST_H_
|
||||
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* 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_OOS_MODEL_UPDATEPATCHBASELINERESULT_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_UPDATEPATCHBASELINERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/oos/OosExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Oos
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OOS_EXPORT UpdatePatchBaselineResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct PatchBaseline
|
||||
{
|
||||
std::string updatedBy;
|
||||
std::string createdBy;
|
||||
std::string description;
|
||||
std::string updatedDate;
|
||||
std::string createdDate;
|
||||
std::string id;
|
||||
std::string operationSystem;
|
||||
std::string approvalRules;
|
||||
std::string name;
|
||||
std::string shareType;
|
||||
};
|
||||
|
||||
|
||||
UpdatePatchBaselineResult();
|
||||
explicit UpdatePatchBaselineResult(const std::string &payload);
|
||||
~UpdatePatchBaselineResult();
|
||||
PatchBaseline getPatchBaseline()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
PatchBaseline patchBaseline_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OOS_MODEL_UPDATEPATCHBASELINERESULT_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OOS_MODEL_UPDATESTATECONFIGURATIONREQUEST_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_UPDATESTATECONFIGURATIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/oos/OosExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Oos
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OOS_EXPORT UpdateStateConfigurationRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UpdateStateConfigurationRequest();
|
||||
~UpdateStateConfigurationRequest();
|
||||
|
||||
std::string getScheduleType()const;
|
||||
void setScheduleType(const std::string& scheduleType);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
std::string getTargets()const;
|
||||
void setTargets(const std::string& targets);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getScheduleExpression()const;
|
||||
void setScheduleExpression(const std::string& scheduleExpression);
|
||||
std::string getConfigureMode()const;
|
||||
void setConfigureMode(const std::string& configureMode);
|
||||
std::string getTags()const;
|
||||
void setTags(const std::string& tags);
|
||||
std::string getParameters()const;
|
||||
void setParameters(const std::string& parameters);
|
||||
std::string getStateConfigurationId()const;
|
||||
void setStateConfigurationId(const std::string& stateConfigurationId);
|
||||
|
||||
private:
|
||||
std::string scheduleType_;
|
||||
std::string clientToken_;
|
||||
std::string description_;
|
||||
std::string targets_;
|
||||
std::string regionId_;
|
||||
std::string scheduleExpression_;
|
||||
std::string configureMode_;
|
||||
std::string tags_;
|
||||
std::string parameters_;
|
||||
std::string stateConfigurationId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OOS_MODEL_UPDATESTATECONFIGURATIONREQUEST_H_
|
||||
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* 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_OOS_MODEL_UPDATESTATECONFIGURATIONRESULT_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_UPDATESTATECONFIGURATIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/oos/OosExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Oos
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OOS_EXPORT UpdateStateConfigurationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct StateConfigurationItem
|
||||
{
|
||||
std::string scheduleType;
|
||||
std::string scheduleExpression;
|
||||
std::string description;
|
||||
std::string parameters;
|
||||
std::string createTime;
|
||||
std::string templateVersion;
|
||||
std::string targets;
|
||||
std::string configureMode;
|
||||
std::string stateConfigurationId;
|
||||
std::string updateTime;
|
||||
std::string templateName;
|
||||
std::string templateId;
|
||||
std::string tags;
|
||||
};
|
||||
|
||||
|
||||
UpdateStateConfigurationResult();
|
||||
explicit UpdateStateConfigurationResult(const std::string &payload);
|
||||
~UpdateStateConfigurationResult();
|
||||
std::vector<StateConfigurationItem> getStateConfiguration()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<StateConfigurationItem> stateConfiguration_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OOS_MODEL_UPDATESTATECONFIGURATIONRESULT_H_
|
||||
@@ -123,6 +123,42 @@ OosClient::CreateParameterOutcomeCallable OosClient::createParameterCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::CreatePatchBaselineOutcome OosClient::createPatchBaseline(const CreatePatchBaselineRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreatePatchBaselineOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreatePatchBaselineOutcome(CreatePatchBaselineResult(outcome.result()));
|
||||
else
|
||||
return CreatePatchBaselineOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OosClient::createPatchBaselineAsync(const CreatePatchBaselineRequest& request, const CreatePatchBaselineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createPatchBaseline(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OosClient::CreatePatchBaselineOutcomeCallable OosClient::createPatchBaselineCallable(const CreatePatchBaselineRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreatePatchBaselineOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createPatchBaseline(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::CreateSecretParameterOutcome OosClient::createSecretParameter(const CreateSecretParameterRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -159,6 +195,42 @@ OosClient::CreateSecretParameterOutcomeCallable OosClient::createSecretParameter
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::CreateStateConfigurationOutcome OosClient::createStateConfiguration(const CreateStateConfigurationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateStateConfigurationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateStateConfigurationOutcome(CreateStateConfigurationResult(outcome.result()));
|
||||
else
|
||||
return CreateStateConfigurationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OosClient::createStateConfigurationAsync(const CreateStateConfigurationRequest& request, const CreateStateConfigurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createStateConfiguration(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OosClient::CreateStateConfigurationOutcomeCallable OosClient::createStateConfigurationCallable(const CreateStateConfigurationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateStateConfigurationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createStateConfiguration(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::CreateTemplateOutcome OosClient::createTemplate(const CreateTemplateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -267,6 +339,42 @@ OosClient::DeleteParameterOutcomeCallable OosClient::deleteParameterCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::DeletePatchBaselineOutcome OosClient::deletePatchBaseline(const DeletePatchBaselineRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeletePatchBaselineOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeletePatchBaselineOutcome(DeletePatchBaselineResult(outcome.result()));
|
||||
else
|
||||
return DeletePatchBaselineOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OosClient::deletePatchBaselineAsync(const DeletePatchBaselineRequest& request, const DeletePatchBaselineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deletePatchBaseline(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OosClient::DeletePatchBaselineOutcomeCallable OosClient::deletePatchBaselineCallable(const DeletePatchBaselineRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeletePatchBaselineOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deletePatchBaseline(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::DeleteSecretParameterOutcome OosClient::deleteSecretParameter(const DeleteSecretParameterRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -303,6 +411,42 @@ OosClient::DeleteSecretParameterOutcomeCallable OosClient::deleteSecretParameter
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::DeleteStateConfigurationsOutcome OosClient::deleteStateConfigurations(const DeleteStateConfigurationsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteStateConfigurationsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteStateConfigurationsOutcome(DeleteStateConfigurationsResult(outcome.result()));
|
||||
else
|
||||
return DeleteStateConfigurationsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OosClient::deleteStateConfigurationsAsync(const DeleteStateConfigurationsRequest& request, const DeleteStateConfigurationsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteStateConfigurations(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OosClient::DeleteStateConfigurationsOutcomeCallable OosClient::deleteStateConfigurationsCallable(const DeleteStateConfigurationsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteStateConfigurationsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteStateConfigurations(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::DeleteTemplateOutcome OosClient::deleteTemplate(const DeleteTemplateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -627,6 +771,42 @@ OosClient::GetParametersByPathOutcomeCallable OosClient::getParametersByPathCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::GetPatchBaselineOutcome OosClient::getPatchBaseline(const GetPatchBaselineRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetPatchBaselineOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetPatchBaselineOutcome(GetPatchBaselineResult(outcome.result()));
|
||||
else
|
||||
return GetPatchBaselineOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OosClient::getPatchBaselineAsync(const GetPatchBaselineRequest& request, const GetPatchBaselineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getPatchBaseline(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OosClient::GetPatchBaselineOutcomeCallable OosClient::getPatchBaselineCallable(const GetPatchBaselineRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetPatchBaselineOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getPatchBaseline(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::GetSecretParameterOutcome OosClient::getSecretParameter(const GetSecretParameterRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -951,6 +1131,114 @@ OosClient::ListExecutionsOutcomeCallable OosClient::listExecutionsCallable(const
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::ListInstancePatchStatesOutcome OosClient::listInstancePatchStates(const ListInstancePatchStatesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListInstancePatchStatesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListInstancePatchStatesOutcome(ListInstancePatchStatesResult(outcome.result()));
|
||||
else
|
||||
return ListInstancePatchStatesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OosClient::listInstancePatchStatesAsync(const ListInstancePatchStatesRequest& request, const ListInstancePatchStatesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listInstancePatchStates(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OosClient::ListInstancePatchStatesOutcomeCallable OosClient::listInstancePatchStatesCallable(const ListInstancePatchStatesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListInstancePatchStatesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listInstancePatchStates(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::ListInstancePatchesOutcome OosClient::listInstancePatches(const ListInstancePatchesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListInstancePatchesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListInstancePatchesOutcome(ListInstancePatchesResult(outcome.result()));
|
||||
else
|
||||
return ListInstancePatchesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OosClient::listInstancePatchesAsync(const ListInstancePatchesRequest& request, const ListInstancePatchesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listInstancePatches(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OosClient::ListInstancePatchesOutcomeCallable OosClient::listInstancePatchesCallable(const ListInstancePatchesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListInstancePatchesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listInstancePatches(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::ListInstanceStateReportsOutcome OosClient::listInstanceStateReports(const ListInstanceStateReportsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListInstanceStateReportsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListInstanceStateReportsOutcome(ListInstanceStateReportsResult(outcome.result()));
|
||||
else
|
||||
return ListInstanceStateReportsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OosClient::listInstanceStateReportsAsync(const ListInstanceStateReportsRequest& request, const ListInstanceStateReportsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listInstanceStateReports(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OosClient::ListInstanceStateReportsOutcomeCallable OosClient::listInstanceStateReportsCallable(const ListInstanceStateReportsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListInstanceStateReportsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listInstanceStateReports(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::ListInventoryEntriesOutcome OosClient::listInventoryEntries(const ListInventoryEntriesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1059,6 +1347,42 @@ OosClient::ListParametersOutcomeCallable OosClient::listParametersCallable(const
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::ListPatchBaselinesOutcome OosClient::listPatchBaselines(const ListPatchBaselinesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListPatchBaselinesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListPatchBaselinesOutcome(ListPatchBaselinesResult(outcome.result()));
|
||||
else
|
||||
return ListPatchBaselinesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OosClient::listPatchBaselinesAsync(const ListPatchBaselinesRequest& request, const ListPatchBaselinesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listPatchBaselines(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OosClient::ListPatchBaselinesOutcomeCallable OosClient::listPatchBaselinesCallable(const ListPatchBaselinesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListPatchBaselinesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listPatchBaselines(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::ListResourceExecutionStatusOutcome OosClient::listResourceExecutionStatus(const ListResourceExecutionStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1167,6 +1491,42 @@ OosClient::ListSecretParametersOutcomeCallable OosClient::listSecretParametersCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::ListStateConfigurationsOutcome OosClient::listStateConfigurations(const ListStateConfigurationsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListStateConfigurationsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListStateConfigurationsOutcome(ListStateConfigurationsResult(outcome.result()));
|
||||
else
|
||||
return ListStateConfigurationsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OosClient::listStateConfigurationsAsync(const ListStateConfigurationsRequest& request, const ListStateConfigurationsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listStateConfigurations(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OosClient::ListStateConfigurationsOutcomeCallable OosClient::listStateConfigurationsCallable(const ListStateConfigurationsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListStateConfigurationsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listStateConfigurations(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::ListTagKeysOutcome OosClient::listTagKeys(const ListTagKeysRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1419,6 +1779,42 @@ OosClient::NotifyExecutionOutcomeCallable OosClient::notifyExecutionCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::RegisterDefaultPatchBaselineOutcome OosClient::registerDefaultPatchBaseline(const RegisterDefaultPatchBaselineRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return RegisterDefaultPatchBaselineOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return RegisterDefaultPatchBaselineOutcome(RegisterDefaultPatchBaselineResult(outcome.result()));
|
||||
else
|
||||
return RegisterDefaultPatchBaselineOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OosClient::registerDefaultPatchBaselineAsync(const RegisterDefaultPatchBaselineRequest& request, const RegisterDefaultPatchBaselineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, registerDefaultPatchBaseline(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OosClient::RegisterDefaultPatchBaselineOutcomeCallable OosClient::registerDefaultPatchBaselineCallable(const RegisterDefaultPatchBaselineRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<RegisterDefaultPatchBaselineOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->registerDefaultPatchBaseline(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::SearchInventoryOutcome OosClient::searchInventory(const SearchInventoryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1743,6 +2139,42 @@ OosClient::UpdateParameterOutcomeCallable OosClient::updateParameterCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::UpdatePatchBaselineOutcome OosClient::updatePatchBaseline(const UpdatePatchBaselineRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdatePatchBaselineOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdatePatchBaselineOutcome(UpdatePatchBaselineResult(outcome.result()));
|
||||
else
|
||||
return UpdatePatchBaselineOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OosClient::updatePatchBaselineAsync(const UpdatePatchBaselineRequest& request, const UpdatePatchBaselineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updatePatchBaseline(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OosClient::UpdatePatchBaselineOutcomeCallable OosClient::updatePatchBaselineCallable(const UpdatePatchBaselineRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdatePatchBaselineOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updatePatchBaseline(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::UpdateSecretParameterOutcome OosClient::updateSecretParameter(const UpdateSecretParameterRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1779,6 +2211,42 @@ OosClient::UpdateSecretParameterOutcomeCallable OosClient::updateSecretParameter
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::UpdateStateConfigurationOutcome OosClient::updateStateConfiguration(const UpdateStateConfigurationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateStateConfigurationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateStateConfigurationOutcome(UpdateStateConfigurationResult(outcome.result()));
|
||||
else
|
||||
return UpdateStateConfigurationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OosClient::updateStateConfigurationAsync(const UpdateStateConfigurationRequest& request, const UpdateStateConfigurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateStateConfiguration(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OosClient::UpdateStateConfigurationOutcomeCallable OosClient::updateStateConfigurationCallable(const UpdateStateConfigurationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateStateConfigurationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateStateConfiguration(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::UpdateTemplateOutcome OosClient::updateTemplate(const UpdateTemplateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
95
oos/src/model/CreatePatchBaselineRequest.cc
Normal file
95
oos/src/model/CreatePatchBaselineRequest.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/oos/model/CreatePatchBaselineRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::CreatePatchBaselineRequest;
|
||||
|
||||
CreatePatchBaselineRequest::CreatePatchBaselineRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "CreatePatchBaseline")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreatePatchBaselineRequest::~CreatePatchBaselineRequest()
|
||||
{}
|
||||
|
||||
std::string CreatePatchBaselineRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreatePatchBaselineRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreatePatchBaselineRequest::getApprovalRules()const
|
||||
{
|
||||
return approvalRules_;
|
||||
}
|
||||
|
||||
void CreatePatchBaselineRequest::setApprovalRules(const std::string& approvalRules)
|
||||
{
|
||||
approvalRules_ = approvalRules;
|
||||
setParameter("ApprovalRules", approvalRules);
|
||||
}
|
||||
|
||||
std::string CreatePatchBaselineRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreatePatchBaselineRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreatePatchBaselineRequest::getOperationSystem()const
|
||||
{
|
||||
return operationSystem_;
|
||||
}
|
||||
|
||||
void CreatePatchBaselineRequest::setOperationSystem(const std::string& operationSystem)
|
||||
{
|
||||
operationSystem_ = operationSystem;
|
||||
setParameter("OperationSystem", operationSystem);
|
||||
}
|
||||
|
||||
std::string CreatePatchBaselineRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreatePatchBaselineRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreatePatchBaselineRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreatePatchBaselineRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
70
oos/src/model/CreatePatchBaselineResult.cc
Normal file
70
oos/src/model/CreatePatchBaselineResult.cc
Normal file
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* 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/oos/model/CreatePatchBaselineResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
CreatePatchBaselineResult::CreatePatchBaselineResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreatePatchBaselineResult::CreatePatchBaselineResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreatePatchBaselineResult::~CreatePatchBaselineResult()
|
||||
{}
|
||||
|
||||
void CreatePatchBaselineResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto patchBaselineNode = value["PatchBaseline"];
|
||||
if(!patchBaselineNode["Id"].isNull())
|
||||
patchBaseline_.id = patchBaselineNode["Id"].asString();
|
||||
if(!patchBaselineNode["Name"].isNull())
|
||||
patchBaseline_.name = patchBaselineNode["Name"].asString();
|
||||
if(!patchBaselineNode["CreatedDate"].isNull())
|
||||
patchBaseline_.createdDate = patchBaselineNode["CreatedDate"].asString();
|
||||
if(!patchBaselineNode["CreatedBy"].isNull())
|
||||
patchBaseline_.createdBy = patchBaselineNode["CreatedBy"].asString();
|
||||
if(!patchBaselineNode["UpdatedDate"].isNull())
|
||||
patchBaseline_.updatedDate = patchBaselineNode["UpdatedDate"].asString();
|
||||
if(!patchBaselineNode["UpdatedBy"].isNull())
|
||||
patchBaseline_.updatedBy = patchBaselineNode["UpdatedBy"].asString();
|
||||
if(!patchBaselineNode["Description"].isNull())
|
||||
patchBaseline_.description = patchBaselineNode["Description"].asString();
|
||||
if(!patchBaselineNode["ShareType"].isNull())
|
||||
patchBaseline_.shareType = patchBaselineNode["ShareType"].asString();
|
||||
if(!patchBaselineNode["OperationSystem"].isNull())
|
||||
patchBaseline_.operationSystem = patchBaselineNode["OperationSystem"].asString();
|
||||
if(!patchBaselineNode["ApprovalRules"].isNull())
|
||||
patchBaseline_.approvalRules = patchBaselineNode["ApprovalRules"].asString();
|
||||
|
||||
}
|
||||
|
||||
CreatePatchBaselineResult::PatchBaseline CreatePatchBaselineResult::getPatchBaseline()const
|
||||
{
|
||||
return patchBaseline_;
|
||||
}
|
||||
|
||||
150
oos/src/model/CreateStateConfigurationRequest.cc
Normal file
150
oos/src/model/CreateStateConfigurationRequest.cc
Normal file
@@ -0,0 +1,150 @@
|
||||
/*
|
||||
* 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/oos/model/CreateStateConfigurationRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::CreateStateConfigurationRequest;
|
||||
|
||||
CreateStateConfigurationRequest::CreateStateConfigurationRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "CreateStateConfiguration")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateStateConfigurationRequest::~CreateStateConfigurationRequest()
|
||||
{}
|
||||
|
||||
std::string CreateStateConfigurationRequest::getScheduleType()const
|
||||
{
|
||||
return scheduleType_;
|
||||
}
|
||||
|
||||
void CreateStateConfigurationRequest::setScheduleType(const std::string& scheduleType)
|
||||
{
|
||||
scheduleType_ = scheduleType;
|
||||
setParameter("ScheduleType", scheduleType);
|
||||
}
|
||||
|
||||
std::string CreateStateConfigurationRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateStateConfigurationRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateStateConfigurationRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateStateConfigurationRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateStateConfigurationRequest::getTargets()const
|
||||
{
|
||||
return targets_;
|
||||
}
|
||||
|
||||
void CreateStateConfigurationRequest::setTargets(const std::string& targets)
|
||||
{
|
||||
targets_ = targets;
|
||||
setParameter("Targets", targets);
|
||||
}
|
||||
|
||||
std::string CreateStateConfigurationRequest::getTemplateVersion()const
|
||||
{
|
||||
return templateVersion_;
|
||||
}
|
||||
|
||||
void CreateStateConfigurationRequest::setTemplateVersion(const std::string& templateVersion)
|
||||
{
|
||||
templateVersion_ = templateVersion;
|
||||
setParameter("TemplateVersion", templateVersion);
|
||||
}
|
||||
|
||||
std::string CreateStateConfigurationRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateStateConfigurationRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateStateConfigurationRequest::getScheduleExpression()const
|
||||
{
|
||||
return scheduleExpression_;
|
||||
}
|
||||
|
||||
void CreateStateConfigurationRequest::setScheduleExpression(const std::string& scheduleExpression)
|
||||
{
|
||||
scheduleExpression_ = scheduleExpression;
|
||||
setParameter("ScheduleExpression", scheduleExpression);
|
||||
}
|
||||
|
||||
std::string CreateStateConfigurationRequest::getTemplateName()const
|
||||
{
|
||||
return templateName_;
|
||||
}
|
||||
|
||||
void CreateStateConfigurationRequest::setTemplateName(const std::string& templateName)
|
||||
{
|
||||
templateName_ = templateName;
|
||||
setParameter("TemplateName", templateName);
|
||||
}
|
||||
|
||||
std::string CreateStateConfigurationRequest::getConfigureMode()const
|
||||
{
|
||||
return configureMode_;
|
||||
}
|
||||
|
||||
void CreateStateConfigurationRequest::setConfigureMode(const std::string& configureMode)
|
||||
{
|
||||
configureMode_ = configureMode;
|
||||
setParameter("ConfigureMode", configureMode);
|
||||
}
|
||||
|
||||
std::string CreateStateConfigurationRequest::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
}
|
||||
|
||||
void CreateStateConfigurationRequest::setTags(const std::string& tags)
|
||||
{
|
||||
tags_ = tags;
|
||||
setParameter("Tags", tags);
|
||||
}
|
||||
|
||||
std::string CreateStateConfigurationRequest::getParameters()const
|
||||
{
|
||||
return parameters_;
|
||||
}
|
||||
|
||||
void CreateStateConfigurationRequest::setParameters(const std::string& parameters)
|
||||
{
|
||||
parameters_ = parameters;
|
||||
setParameter("Parameters", parameters);
|
||||
}
|
||||
|
||||
79
oos/src/model/CreateStateConfigurationResult.cc
Normal file
79
oos/src/model/CreateStateConfigurationResult.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/oos/model/CreateStateConfigurationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
CreateStateConfigurationResult::CreateStateConfigurationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateStateConfigurationResult::CreateStateConfigurationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateStateConfigurationResult::~CreateStateConfigurationResult()
|
||||
{}
|
||||
|
||||
void CreateStateConfigurationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allStateConfigurationNode = value["StateConfiguration"]["StateConfigurationItem"];
|
||||
for (auto valueStateConfigurationStateConfigurationItem : allStateConfigurationNode)
|
||||
{
|
||||
StateConfigurationItem stateConfigurationObject;
|
||||
if(!valueStateConfigurationStateConfigurationItem["CreateTime"].isNull())
|
||||
stateConfigurationObject.createTime = valueStateConfigurationStateConfigurationItem["CreateTime"].asString();
|
||||
if(!valueStateConfigurationStateConfigurationItem["Description"].isNull())
|
||||
stateConfigurationObject.description = valueStateConfigurationStateConfigurationItem["Description"].asString();
|
||||
if(!valueStateConfigurationStateConfigurationItem["StateConfigurationId"].isNull())
|
||||
stateConfigurationObject.stateConfigurationId = valueStateConfigurationStateConfigurationItem["StateConfigurationId"].asString();
|
||||
if(!valueStateConfigurationStateConfigurationItem["TemplateId"].isNull())
|
||||
stateConfigurationObject.templateId = valueStateConfigurationStateConfigurationItem["TemplateId"].asString();
|
||||
if(!valueStateConfigurationStateConfigurationItem["TemplateName"].isNull())
|
||||
stateConfigurationObject.templateName = valueStateConfigurationStateConfigurationItem["TemplateName"].asString();
|
||||
if(!valueStateConfigurationStateConfigurationItem["TemplateVersion"].isNull())
|
||||
stateConfigurationObject.templateVersion = valueStateConfigurationStateConfigurationItem["TemplateVersion"].asString();
|
||||
if(!valueStateConfigurationStateConfigurationItem["Parameters"].isNull())
|
||||
stateConfigurationObject.parameters = valueStateConfigurationStateConfigurationItem["Parameters"].asString();
|
||||
if(!valueStateConfigurationStateConfigurationItem["ConfigureMode"].isNull())
|
||||
stateConfigurationObject.configureMode = valueStateConfigurationStateConfigurationItem["ConfigureMode"].asString();
|
||||
if(!valueStateConfigurationStateConfigurationItem["ScheduleType"].isNull())
|
||||
stateConfigurationObject.scheduleType = valueStateConfigurationStateConfigurationItem["ScheduleType"].asString();
|
||||
if(!valueStateConfigurationStateConfigurationItem["ScheduleExpression"].isNull())
|
||||
stateConfigurationObject.scheduleExpression = valueStateConfigurationStateConfigurationItem["ScheduleExpression"].asString();
|
||||
if(!valueStateConfigurationStateConfigurationItem["Targets"].isNull())
|
||||
stateConfigurationObject.targets = valueStateConfigurationStateConfigurationItem["Targets"].asString();
|
||||
if(!valueStateConfigurationStateConfigurationItem["Tags"].isNull())
|
||||
stateConfigurationObject.tags = valueStateConfigurationStateConfigurationItem["Tags"].asString();
|
||||
stateConfiguration_.push_back(stateConfigurationObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<CreateStateConfigurationResult::StateConfigurationItem> CreateStateConfigurationResult::getStateConfiguration()const
|
||||
{
|
||||
return stateConfiguration_;
|
||||
}
|
||||
|
||||
51
oos/src/model/DeletePatchBaselineRequest.cc
Normal file
51
oos/src/model/DeletePatchBaselineRequest.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/oos/model/DeletePatchBaselineRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::DeletePatchBaselineRequest;
|
||||
|
||||
DeletePatchBaselineRequest::DeletePatchBaselineRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "DeletePatchBaseline")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeletePatchBaselineRequest::~DeletePatchBaselineRequest()
|
||||
{}
|
||||
|
||||
std::string DeletePatchBaselineRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeletePatchBaselineRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeletePatchBaselineRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DeletePatchBaselineRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/ResetAccountForPGResult.h>
|
||||
#include <alibabacloud/oos/model/DeletePatchBaselineResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
ResetAccountForPGResult::ResetAccountForPGResult() :
|
||||
DeletePatchBaselineResult::DeletePatchBaselineResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ResetAccountForPGResult::ResetAccountForPGResult(const std::string &payload) :
|
||||
DeletePatchBaselineResult::DeletePatchBaselineResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ResetAccountForPGResult::~ResetAccountForPGResult()
|
||||
DeletePatchBaselineResult::~DeletePatchBaselineResult()
|
||||
{}
|
||||
|
||||
void ResetAccountForPGResult::parse(const std::string &payload)
|
||||
void DeletePatchBaselineResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
62
oos/src/model/DeleteStateConfigurationsRequest.cc
Normal file
62
oos/src/model/DeleteStateConfigurationsRequest.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/DeleteStateConfigurationsRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::DeleteStateConfigurationsRequest;
|
||||
|
||||
DeleteStateConfigurationsRequest::DeleteStateConfigurationsRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "DeleteStateConfigurations")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteStateConfigurationsRequest::~DeleteStateConfigurationsRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteStateConfigurationsRequest::getStateConfigurationIds()const
|
||||
{
|
||||
return stateConfigurationIds_;
|
||||
}
|
||||
|
||||
void DeleteStateConfigurationsRequest::setStateConfigurationIds(const std::string& stateConfigurationIds)
|
||||
{
|
||||
stateConfigurationIds_ = stateConfigurationIds;
|
||||
setParameter("StateConfigurationIds", stateConfigurationIds);
|
||||
}
|
||||
|
||||
std::string DeleteStateConfigurationsRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DeleteStateConfigurationsRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string DeleteStateConfigurationsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteStateConfigurationsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
44
oos/src/model/DeleteStateConfigurationsResult.cc
Normal file
44
oos/src/model/DeleteStateConfigurationsResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/oos/model/DeleteStateConfigurationsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
DeleteStateConfigurationsResult::DeleteStateConfigurationsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteStateConfigurationsResult::DeleteStateConfigurationsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteStateConfigurationsResult::~DeleteStateConfigurationsResult()
|
||||
{}
|
||||
|
||||
void DeleteStateConfigurationsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
51
oos/src/model/GetPatchBaselineRequest.cc
Normal file
51
oos/src/model/GetPatchBaselineRequest.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/oos/model/GetPatchBaselineRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::GetPatchBaselineRequest;
|
||||
|
||||
GetPatchBaselineRequest::GetPatchBaselineRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "GetPatchBaseline")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetPatchBaselineRequest::~GetPatchBaselineRequest()
|
||||
{}
|
||||
|
||||
std::string GetPatchBaselineRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetPatchBaselineRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string GetPatchBaselineRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void GetPatchBaselineRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
70
oos/src/model/GetPatchBaselineResult.cc
Normal file
70
oos/src/model/GetPatchBaselineResult.cc
Normal file
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* 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/oos/model/GetPatchBaselineResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
GetPatchBaselineResult::GetPatchBaselineResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetPatchBaselineResult::GetPatchBaselineResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetPatchBaselineResult::~GetPatchBaselineResult()
|
||||
{}
|
||||
|
||||
void GetPatchBaselineResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto patchBaselineNode = value["PatchBaseline"];
|
||||
if(!patchBaselineNode["Id"].isNull())
|
||||
patchBaseline_.id = patchBaselineNode["Id"].asString();
|
||||
if(!patchBaselineNode["Name"].isNull())
|
||||
patchBaseline_.name = patchBaselineNode["Name"].asString();
|
||||
if(!patchBaselineNode["CreatedDate"].isNull())
|
||||
patchBaseline_.createdDate = patchBaselineNode["CreatedDate"].asString();
|
||||
if(!patchBaselineNode["CreatedBy"].isNull())
|
||||
patchBaseline_.createdBy = patchBaselineNode["CreatedBy"].asString();
|
||||
if(!patchBaselineNode["UpdatedDate"].isNull())
|
||||
patchBaseline_.updatedDate = patchBaselineNode["UpdatedDate"].asString();
|
||||
if(!patchBaselineNode["UpdatedBy"].isNull())
|
||||
patchBaseline_.updatedBy = patchBaselineNode["UpdatedBy"].asString();
|
||||
if(!patchBaselineNode["Description"].isNull())
|
||||
patchBaseline_.description = patchBaselineNode["Description"].asString();
|
||||
if(!patchBaselineNode["ShareType"].isNull())
|
||||
patchBaseline_.shareType = patchBaselineNode["ShareType"].asString();
|
||||
if(!patchBaselineNode["OperationSystem"].isNull())
|
||||
patchBaseline_.operationSystem = patchBaselineNode["OperationSystem"].asString();
|
||||
if(!patchBaselineNode["ApprovalRules"].isNull())
|
||||
patchBaseline_.approvalRules = patchBaselineNode["ApprovalRules"].asString();
|
||||
|
||||
}
|
||||
|
||||
GetPatchBaselineResult::PatchBaseline GetPatchBaselineResult::getPatchBaseline()const
|
||||
{
|
||||
return patchBaseline_;
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user