Add task api.

This commit is contained in:
sdk-team
2020-12-01 11:55:57 +00:00
parent ea23aa89b7
commit c867781e78
44 changed files with 4038 additions and 0 deletions

View File

@@ -27,6 +27,8 @@ set(devops-rdc_public_header_model
include/alibabacloud/devops-rdc/model/CancelPipelineResult.h
include/alibabacloud/devops-rdc/model/CheckAliyunAccountExistsRequest.h
include/alibabacloud/devops-rdc/model/CheckAliyunAccountExistsResult.h
include/alibabacloud/devops-rdc/model/CreateCommonGroupRequest.h
include/alibabacloud/devops-rdc/model/CreateCommonGroupResult.h
include/alibabacloud/devops-rdc/model/CreateCredentialRequest.h
include/alibabacloud/devops-rdc/model/CreateCredentialResult.h
include/alibabacloud/devops-rdc/model/CreateDevopsOrganizationRequest.h
@@ -41,6 +43,8 @@ set(devops-rdc_public_header_model
include/alibabacloud/devops-rdc/model/CreatePipelineResult.h
include/alibabacloud/devops-rdc/model/CreateServiceConnectionRequest.h
include/alibabacloud/devops-rdc/model/CreateServiceConnectionResult.h
include/alibabacloud/devops-rdc/model/DeleteCommonGroupRequest.h
include/alibabacloud/devops-rdc/model/DeleteCommonGroupResult.h
include/alibabacloud/devops-rdc/model/DeleteDevopsOrganizationMembersRequest.h
include/alibabacloud/devops-rdc/model/DeleteDevopsOrganizationMembersResult.h
include/alibabacloud/devops-rdc/model/DeleteDevopsProjectRequest.h
@@ -77,14 +81,26 @@ set(devops-rdc_public_header_model
include/alibabacloud/devops-rdc/model/GetPipelineLogResult.h
include/alibabacloud/devops-rdc/model/GetPipleineLatestInstanceStatusRequest.h
include/alibabacloud/devops-rdc/model/GetPipleineLatestInstanceStatusResult.h
include/alibabacloud/devops-rdc/model/GetProjectOptionRequest.h
include/alibabacloud/devops-rdc/model/GetProjectOptionResult.h
include/alibabacloud/devops-rdc/model/GetTaskDetailActivityRequest.h
include/alibabacloud/devops-rdc/model/GetTaskDetailActivityResult.h
include/alibabacloud/devops-rdc/model/GetTaskDetailBaseRequest.h
include/alibabacloud/devops-rdc/model/GetTaskDetailBaseResult.h
include/alibabacloud/devops-rdc/model/GetTaskListFilterRequest.h
include/alibabacloud/devops-rdc/model/GetTaskListFilterResult.h
include/alibabacloud/devops-rdc/model/GetUserByAliyunUidRequest.h
include/alibabacloud/devops-rdc/model/GetUserByAliyunUidResult.h
include/alibabacloud/devops-rdc/model/GetUserNameRequest.h
include/alibabacloud/devops-rdc/model/GetUserNameResult.h
include/alibabacloud/devops-rdc/model/InsertDevopsUserRequest.h
include/alibabacloud/devops-rdc/model/InsertDevopsUserResult.h
include/alibabacloud/devops-rdc/model/InsertPipelineMemberRequest.h
include/alibabacloud/devops-rdc/model/InsertPipelineMemberResult.h
include/alibabacloud/devops-rdc/model/InsertProjectMembersRequest.h
include/alibabacloud/devops-rdc/model/InsertProjectMembersResult.h
include/alibabacloud/devops-rdc/model/ListCommonGroupRequest.h
include/alibabacloud/devops-rdc/model/ListCommonGroupResult.h
include/alibabacloud/devops-rdc/model/ListCredentialsRequest.h
include/alibabacloud/devops-rdc/model/ListCredentialsResult.h
include/alibabacloud/devops-rdc/model/ListDevopsProjectSprintsRequest.h
@@ -103,10 +119,14 @@ set(devops-rdc_public_header_model
include/alibabacloud/devops-rdc/model/ListPipelinesResult.h
include/alibabacloud/devops-rdc/model/ListServiceConnectionsRequest.h
include/alibabacloud/devops-rdc/model/ListServiceConnectionsResult.h
include/alibabacloud/devops-rdc/model/ListSmartGroupRequest.h
include/alibabacloud/devops-rdc/model/ListSmartGroupResult.h
include/alibabacloud/devops-rdc/model/ListUserOrganizationRequest.h
include/alibabacloud/devops-rdc/model/ListUserOrganizationResult.h
include/alibabacloud/devops-rdc/model/TransferPipelineOwnerRequest.h
include/alibabacloud/devops-rdc/model/TransferPipelineOwnerResult.h
include/alibabacloud/devops-rdc/model/UpdateCommonGroupRequest.h
include/alibabacloud/devops-rdc/model/UpdateCommonGroupResult.h
include/alibabacloud/devops-rdc/model/UpdateDevopsProjectRequest.h
include/alibabacloud/devops-rdc/model/UpdateDevopsProjectResult.h
include/alibabacloud/devops-rdc/model/UpdateDevopsProjectSprintRequest.h
@@ -124,6 +144,8 @@ set(devops-rdc_src
src/model/CancelPipelineResult.cc
src/model/CheckAliyunAccountExistsRequest.cc
src/model/CheckAliyunAccountExistsResult.cc
src/model/CreateCommonGroupRequest.cc
src/model/CreateCommonGroupResult.cc
src/model/CreateCredentialRequest.cc
src/model/CreateCredentialResult.cc
src/model/CreateDevopsOrganizationRequest.cc
@@ -138,6 +160,8 @@ set(devops-rdc_src
src/model/CreatePipelineResult.cc
src/model/CreateServiceConnectionRequest.cc
src/model/CreateServiceConnectionResult.cc
src/model/DeleteCommonGroupRequest.cc
src/model/DeleteCommonGroupResult.cc
src/model/DeleteDevopsOrganizationMembersRequest.cc
src/model/DeleteDevopsOrganizationMembersResult.cc
src/model/DeleteDevopsProjectRequest.cc
@@ -174,14 +198,26 @@ set(devops-rdc_src
src/model/GetPipelineLogResult.cc
src/model/GetPipleineLatestInstanceStatusRequest.cc
src/model/GetPipleineLatestInstanceStatusResult.cc
src/model/GetProjectOptionRequest.cc
src/model/GetProjectOptionResult.cc
src/model/GetTaskDetailActivityRequest.cc
src/model/GetTaskDetailActivityResult.cc
src/model/GetTaskDetailBaseRequest.cc
src/model/GetTaskDetailBaseResult.cc
src/model/GetTaskListFilterRequest.cc
src/model/GetTaskListFilterResult.cc
src/model/GetUserByAliyunUidRequest.cc
src/model/GetUserByAliyunUidResult.cc
src/model/GetUserNameRequest.cc
src/model/GetUserNameResult.cc
src/model/InsertDevopsUserRequest.cc
src/model/InsertDevopsUserResult.cc
src/model/InsertPipelineMemberRequest.cc
src/model/InsertPipelineMemberResult.cc
src/model/InsertProjectMembersRequest.cc
src/model/InsertProjectMembersResult.cc
src/model/ListCommonGroupRequest.cc
src/model/ListCommonGroupResult.cc
src/model/ListCredentialsRequest.cc
src/model/ListCredentialsResult.cc
src/model/ListDevopsProjectSprintsRequest.cc
@@ -200,10 +236,14 @@ set(devops-rdc_src
src/model/ListPipelinesResult.cc
src/model/ListServiceConnectionsRequest.cc
src/model/ListServiceConnectionsResult.cc
src/model/ListSmartGroupRequest.cc
src/model/ListSmartGroupResult.cc
src/model/ListUserOrganizationRequest.cc
src/model/ListUserOrganizationResult.cc
src/model/TransferPipelineOwnerRequest.cc
src/model/TransferPipelineOwnerResult.cc
src/model/UpdateCommonGroupRequest.cc
src/model/UpdateCommonGroupResult.cc
src/model/UpdateDevopsProjectRequest.cc
src/model/UpdateDevopsProjectResult.cc
src/model/UpdateDevopsProjectSprintRequest.cc

View File

@@ -28,6 +28,8 @@
#include "model/CancelPipelineResult.h"
#include "model/CheckAliyunAccountExistsRequest.h"
#include "model/CheckAliyunAccountExistsResult.h"
#include "model/CreateCommonGroupRequest.h"
#include "model/CreateCommonGroupResult.h"
#include "model/CreateCredentialRequest.h"
#include "model/CreateCredentialResult.h"
#include "model/CreateDevopsOrganizationRequest.h"
@@ -42,6 +44,8 @@
#include "model/CreatePipelineResult.h"
#include "model/CreateServiceConnectionRequest.h"
#include "model/CreateServiceConnectionResult.h"
#include "model/DeleteCommonGroupRequest.h"
#include "model/DeleteCommonGroupResult.h"
#include "model/DeleteDevopsOrganizationMembersRequest.h"
#include "model/DeleteDevopsOrganizationMembersResult.h"
#include "model/DeleteDevopsProjectRequest.h"
@@ -78,14 +82,26 @@
#include "model/GetPipelineLogResult.h"
#include "model/GetPipleineLatestInstanceStatusRequest.h"
#include "model/GetPipleineLatestInstanceStatusResult.h"
#include "model/GetProjectOptionRequest.h"
#include "model/GetProjectOptionResult.h"
#include "model/GetTaskDetailActivityRequest.h"
#include "model/GetTaskDetailActivityResult.h"
#include "model/GetTaskDetailBaseRequest.h"
#include "model/GetTaskDetailBaseResult.h"
#include "model/GetTaskListFilterRequest.h"
#include "model/GetTaskListFilterResult.h"
#include "model/GetUserByAliyunUidRequest.h"
#include "model/GetUserByAliyunUidResult.h"
#include "model/GetUserNameRequest.h"
#include "model/GetUserNameResult.h"
#include "model/InsertDevopsUserRequest.h"
#include "model/InsertDevopsUserResult.h"
#include "model/InsertPipelineMemberRequest.h"
#include "model/InsertPipelineMemberResult.h"
#include "model/InsertProjectMembersRequest.h"
#include "model/InsertProjectMembersResult.h"
#include "model/ListCommonGroupRequest.h"
#include "model/ListCommonGroupResult.h"
#include "model/ListCredentialsRequest.h"
#include "model/ListCredentialsResult.h"
#include "model/ListDevopsProjectSprintsRequest.h"
@@ -104,10 +120,14 @@
#include "model/ListPipelinesResult.h"
#include "model/ListServiceConnectionsRequest.h"
#include "model/ListServiceConnectionsResult.h"
#include "model/ListSmartGroupRequest.h"
#include "model/ListSmartGroupResult.h"
#include "model/ListUserOrganizationRequest.h"
#include "model/ListUserOrganizationResult.h"
#include "model/TransferPipelineOwnerRequest.h"
#include "model/TransferPipelineOwnerResult.h"
#include "model/UpdateCommonGroupRequest.h"
#include "model/UpdateCommonGroupResult.h"
#include "model/UpdateDevopsProjectRequest.h"
#include "model/UpdateDevopsProjectResult.h"
#include "model/UpdateDevopsProjectSprintRequest.h"
@@ -134,6 +154,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CheckAliyunAccountExistsResult> CheckAliyunAccountExistsOutcome;
typedef std::future<CheckAliyunAccountExistsOutcome> CheckAliyunAccountExistsOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::CheckAliyunAccountExistsRequest&, const CheckAliyunAccountExistsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CheckAliyunAccountExistsAsyncHandler;
typedef Outcome<Error, Model::CreateCommonGroupResult> CreateCommonGroupOutcome;
typedef std::future<CreateCommonGroupOutcome> CreateCommonGroupOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::CreateCommonGroupRequest&, const CreateCommonGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateCommonGroupAsyncHandler;
typedef Outcome<Error, Model::CreateCredentialResult> CreateCredentialOutcome;
typedef std::future<CreateCredentialOutcome> CreateCredentialOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::CreateCredentialRequest&, const CreateCredentialOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateCredentialAsyncHandler;
@@ -155,6 +178,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CreateServiceConnectionResult> CreateServiceConnectionOutcome;
typedef std::future<CreateServiceConnectionOutcome> CreateServiceConnectionOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::CreateServiceConnectionRequest&, const CreateServiceConnectionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateServiceConnectionAsyncHandler;
typedef Outcome<Error, Model::DeleteCommonGroupResult> DeleteCommonGroupOutcome;
typedef std::future<DeleteCommonGroupOutcome> DeleteCommonGroupOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::DeleteCommonGroupRequest&, const DeleteCommonGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteCommonGroupAsyncHandler;
typedef Outcome<Error, Model::DeleteDevopsOrganizationMembersResult> DeleteDevopsOrganizationMembersOutcome;
typedef std::future<DeleteDevopsOrganizationMembersOutcome> DeleteDevopsOrganizationMembersOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::DeleteDevopsOrganizationMembersRequest&, const DeleteDevopsOrganizationMembersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDevopsOrganizationMembersAsyncHandler;
@@ -209,9 +235,24 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetPipleineLatestInstanceStatusResult> GetPipleineLatestInstanceStatusOutcome;
typedef std::future<GetPipleineLatestInstanceStatusOutcome> GetPipleineLatestInstanceStatusOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::GetPipleineLatestInstanceStatusRequest&, const GetPipleineLatestInstanceStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPipleineLatestInstanceStatusAsyncHandler;
typedef Outcome<Error, Model::GetProjectOptionResult> GetProjectOptionOutcome;
typedef std::future<GetProjectOptionOutcome> GetProjectOptionOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::GetProjectOptionRequest&, const GetProjectOptionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetProjectOptionAsyncHandler;
typedef Outcome<Error, Model::GetTaskDetailActivityResult> GetTaskDetailActivityOutcome;
typedef std::future<GetTaskDetailActivityOutcome> GetTaskDetailActivityOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::GetTaskDetailActivityRequest&, const GetTaskDetailActivityOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTaskDetailActivityAsyncHandler;
typedef Outcome<Error, Model::GetTaskDetailBaseResult> GetTaskDetailBaseOutcome;
typedef std::future<GetTaskDetailBaseOutcome> GetTaskDetailBaseOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::GetTaskDetailBaseRequest&, const GetTaskDetailBaseOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTaskDetailBaseAsyncHandler;
typedef Outcome<Error, Model::GetTaskListFilterResult> GetTaskListFilterOutcome;
typedef std::future<GetTaskListFilterOutcome> GetTaskListFilterOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::GetTaskListFilterRequest&, const GetTaskListFilterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTaskListFilterAsyncHandler;
typedef Outcome<Error, Model::GetUserByAliyunUidResult> GetUserByAliyunUidOutcome;
typedef std::future<GetUserByAliyunUidOutcome> GetUserByAliyunUidOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::GetUserByAliyunUidRequest&, const GetUserByAliyunUidOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetUserByAliyunUidAsyncHandler;
typedef Outcome<Error, Model::GetUserNameResult> GetUserNameOutcome;
typedef std::future<GetUserNameOutcome> GetUserNameOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::GetUserNameRequest&, const GetUserNameOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetUserNameAsyncHandler;
typedef Outcome<Error, Model::InsertDevopsUserResult> InsertDevopsUserOutcome;
typedef std::future<InsertDevopsUserOutcome> InsertDevopsUserOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::InsertDevopsUserRequest&, const InsertDevopsUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InsertDevopsUserAsyncHandler;
@@ -221,6 +262,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::InsertProjectMembersResult> InsertProjectMembersOutcome;
typedef std::future<InsertProjectMembersOutcome> InsertProjectMembersOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::InsertProjectMembersRequest&, const InsertProjectMembersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InsertProjectMembersAsyncHandler;
typedef Outcome<Error, Model::ListCommonGroupResult> ListCommonGroupOutcome;
typedef std::future<ListCommonGroupOutcome> ListCommonGroupOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::ListCommonGroupRequest&, const ListCommonGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListCommonGroupAsyncHandler;
typedef Outcome<Error, Model::ListCredentialsResult> ListCredentialsOutcome;
typedef std::future<ListCredentialsOutcome> ListCredentialsOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::ListCredentialsRequest&, const ListCredentialsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListCredentialsAsyncHandler;
@@ -248,12 +292,18 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ListServiceConnectionsResult> ListServiceConnectionsOutcome;
typedef std::future<ListServiceConnectionsOutcome> ListServiceConnectionsOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::ListServiceConnectionsRequest&, const ListServiceConnectionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListServiceConnectionsAsyncHandler;
typedef Outcome<Error, Model::ListSmartGroupResult> ListSmartGroupOutcome;
typedef std::future<ListSmartGroupOutcome> ListSmartGroupOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::ListSmartGroupRequest&, const ListSmartGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListSmartGroupAsyncHandler;
typedef Outcome<Error, Model::ListUserOrganizationResult> ListUserOrganizationOutcome;
typedef std::future<ListUserOrganizationOutcome> ListUserOrganizationOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::ListUserOrganizationRequest&, const ListUserOrganizationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListUserOrganizationAsyncHandler;
typedef Outcome<Error, Model::TransferPipelineOwnerResult> TransferPipelineOwnerOutcome;
typedef std::future<TransferPipelineOwnerOutcome> TransferPipelineOwnerOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::TransferPipelineOwnerRequest&, const TransferPipelineOwnerOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TransferPipelineOwnerAsyncHandler;
typedef Outcome<Error, Model::UpdateCommonGroupResult> UpdateCommonGroupOutcome;
typedef std::future<UpdateCommonGroupOutcome> UpdateCommonGroupOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::UpdateCommonGroupRequest&, const UpdateCommonGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateCommonGroupAsyncHandler;
typedef Outcome<Error, Model::UpdateDevopsProjectResult> UpdateDevopsProjectOutcome;
typedef std::future<UpdateDevopsProjectOutcome> UpdateDevopsProjectOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::UpdateDevopsProjectRequest&, const UpdateDevopsProjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateDevopsProjectAsyncHandler;
@@ -280,6 +330,9 @@ namespace AlibabaCloud
CheckAliyunAccountExistsOutcome checkAliyunAccountExists(const Model::CheckAliyunAccountExistsRequest &request)const;
void checkAliyunAccountExistsAsync(const Model::CheckAliyunAccountExistsRequest& request, const CheckAliyunAccountExistsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CheckAliyunAccountExistsOutcomeCallable checkAliyunAccountExistsCallable(const Model::CheckAliyunAccountExistsRequest& request) const;
CreateCommonGroupOutcome createCommonGroup(const Model::CreateCommonGroupRequest &request)const;
void createCommonGroupAsync(const Model::CreateCommonGroupRequest& request, const CreateCommonGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateCommonGroupOutcomeCallable createCommonGroupCallable(const Model::CreateCommonGroupRequest& request) const;
CreateCredentialOutcome createCredential(const Model::CreateCredentialRequest &request)const;
void createCredentialAsync(const Model::CreateCredentialRequest& request, const CreateCredentialAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateCredentialOutcomeCallable createCredentialCallable(const Model::CreateCredentialRequest& request) const;
@@ -301,6 +354,9 @@ namespace AlibabaCloud
CreateServiceConnectionOutcome createServiceConnection(const Model::CreateServiceConnectionRequest &request)const;
void createServiceConnectionAsync(const Model::CreateServiceConnectionRequest& request, const CreateServiceConnectionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateServiceConnectionOutcomeCallable createServiceConnectionCallable(const Model::CreateServiceConnectionRequest& request) const;
DeleteCommonGroupOutcome deleteCommonGroup(const Model::DeleteCommonGroupRequest &request)const;
void deleteCommonGroupAsync(const Model::DeleteCommonGroupRequest& request, const DeleteCommonGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteCommonGroupOutcomeCallable deleteCommonGroupCallable(const Model::DeleteCommonGroupRequest& request) const;
DeleteDevopsOrganizationMembersOutcome deleteDevopsOrganizationMembers(const Model::DeleteDevopsOrganizationMembersRequest &request)const;
void deleteDevopsOrganizationMembersAsync(const Model::DeleteDevopsOrganizationMembersRequest& request, const DeleteDevopsOrganizationMembersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteDevopsOrganizationMembersOutcomeCallable deleteDevopsOrganizationMembersCallable(const Model::DeleteDevopsOrganizationMembersRequest& request) const;
@@ -355,9 +411,24 @@ namespace AlibabaCloud
GetPipleineLatestInstanceStatusOutcome getPipleineLatestInstanceStatus(const Model::GetPipleineLatestInstanceStatusRequest &request)const;
void getPipleineLatestInstanceStatusAsync(const Model::GetPipleineLatestInstanceStatusRequest& request, const GetPipleineLatestInstanceStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetPipleineLatestInstanceStatusOutcomeCallable getPipleineLatestInstanceStatusCallable(const Model::GetPipleineLatestInstanceStatusRequest& request) const;
GetProjectOptionOutcome getProjectOption(const Model::GetProjectOptionRequest &request)const;
void getProjectOptionAsync(const Model::GetProjectOptionRequest& request, const GetProjectOptionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetProjectOptionOutcomeCallable getProjectOptionCallable(const Model::GetProjectOptionRequest& request) const;
GetTaskDetailActivityOutcome getTaskDetailActivity(const Model::GetTaskDetailActivityRequest &request)const;
void getTaskDetailActivityAsync(const Model::GetTaskDetailActivityRequest& request, const GetTaskDetailActivityAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetTaskDetailActivityOutcomeCallable getTaskDetailActivityCallable(const Model::GetTaskDetailActivityRequest& request) const;
GetTaskDetailBaseOutcome getTaskDetailBase(const Model::GetTaskDetailBaseRequest &request)const;
void getTaskDetailBaseAsync(const Model::GetTaskDetailBaseRequest& request, const GetTaskDetailBaseAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetTaskDetailBaseOutcomeCallable getTaskDetailBaseCallable(const Model::GetTaskDetailBaseRequest& request) const;
GetTaskListFilterOutcome getTaskListFilter(const Model::GetTaskListFilterRequest &request)const;
void getTaskListFilterAsync(const Model::GetTaskListFilterRequest& request, const GetTaskListFilterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetTaskListFilterOutcomeCallable getTaskListFilterCallable(const Model::GetTaskListFilterRequest& request) const;
GetUserByAliyunUidOutcome getUserByAliyunUid(const Model::GetUserByAliyunUidRequest &request)const;
void getUserByAliyunUidAsync(const Model::GetUserByAliyunUidRequest& request, const GetUserByAliyunUidAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetUserByAliyunUidOutcomeCallable getUserByAliyunUidCallable(const Model::GetUserByAliyunUidRequest& request) const;
GetUserNameOutcome getUserName(const Model::GetUserNameRequest &request)const;
void getUserNameAsync(const Model::GetUserNameRequest& request, const GetUserNameAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetUserNameOutcomeCallable getUserNameCallable(const Model::GetUserNameRequest& request) const;
InsertDevopsUserOutcome insertDevopsUser(const Model::InsertDevopsUserRequest &request)const;
void insertDevopsUserAsync(const Model::InsertDevopsUserRequest& request, const InsertDevopsUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
InsertDevopsUserOutcomeCallable insertDevopsUserCallable(const Model::InsertDevopsUserRequest& request) const;
@@ -367,6 +438,9 @@ namespace AlibabaCloud
InsertProjectMembersOutcome insertProjectMembers(const Model::InsertProjectMembersRequest &request)const;
void insertProjectMembersAsync(const Model::InsertProjectMembersRequest& request, const InsertProjectMembersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
InsertProjectMembersOutcomeCallable insertProjectMembersCallable(const Model::InsertProjectMembersRequest& request) const;
ListCommonGroupOutcome listCommonGroup(const Model::ListCommonGroupRequest &request)const;
void listCommonGroupAsync(const Model::ListCommonGroupRequest& request, const ListCommonGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListCommonGroupOutcomeCallable listCommonGroupCallable(const Model::ListCommonGroupRequest& request) const;
ListCredentialsOutcome listCredentials(const Model::ListCredentialsRequest &request)const;
void listCredentialsAsync(const Model::ListCredentialsRequest& request, const ListCredentialsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListCredentialsOutcomeCallable listCredentialsCallable(const Model::ListCredentialsRequest& request) const;
@@ -394,12 +468,18 @@ namespace AlibabaCloud
ListServiceConnectionsOutcome listServiceConnections(const Model::ListServiceConnectionsRequest &request)const;
void listServiceConnectionsAsync(const Model::ListServiceConnectionsRequest& request, const ListServiceConnectionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListServiceConnectionsOutcomeCallable listServiceConnectionsCallable(const Model::ListServiceConnectionsRequest& request) const;
ListSmartGroupOutcome listSmartGroup(const Model::ListSmartGroupRequest &request)const;
void listSmartGroupAsync(const Model::ListSmartGroupRequest& request, const ListSmartGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListSmartGroupOutcomeCallable listSmartGroupCallable(const Model::ListSmartGroupRequest& request) const;
ListUserOrganizationOutcome listUserOrganization(const Model::ListUserOrganizationRequest &request)const;
void listUserOrganizationAsync(const Model::ListUserOrganizationRequest& request, const ListUserOrganizationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListUserOrganizationOutcomeCallable listUserOrganizationCallable(const Model::ListUserOrganizationRequest& request) const;
TransferPipelineOwnerOutcome transferPipelineOwner(const Model::TransferPipelineOwnerRequest &request)const;
void transferPipelineOwnerAsync(const Model::TransferPipelineOwnerRequest& request, const TransferPipelineOwnerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
TransferPipelineOwnerOutcomeCallable transferPipelineOwnerCallable(const Model::TransferPipelineOwnerRequest& request) const;
UpdateCommonGroupOutcome updateCommonGroup(const Model::UpdateCommonGroupRequest &request)const;
void updateCommonGroupAsync(const Model::UpdateCommonGroupRequest& request, const UpdateCommonGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateCommonGroupOutcomeCallable updateCommonGroupCallable(const Model::UpdateCommonGroupRequest& request) const;
UpdateDevopsProjectOutcome updateDevopsProject(const Model::UpdateDevopsProjectRequest &request)const;
void updateDevopsProjectAsync(const Model::UpdateDevopsProjectRequest& request, const UpdateDevopsProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateDevopsProjectOutcomeCallable updateDevopsProjectCallable(const Model::UpdateDevopsProjectRequest& request) const;

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DEVOPS_RDC_MODEL_CREATECOMMONGROUPREQUEST_H_
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_CREATECOMMONGROUPREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/devops-rdc/Devops_rdcExport.h>
namespace AlibabaCloud
{
namespace Devops_rdc
{
namespace Model
{
class ALIBABACLOUD_DEVOPS_RDC_EXPORT CreateCommonGroupRequest : public RpcServiceRequest
{
public:
CreateCommonGroupRequest();
~CreateCommonGroupRequest();
std::string getSmartGroupId()const;
void setSmartGroupId(const std::string& smartGroupId);
std::string getName()const;
void setName(const std::string& name);
std::string getDescription()const;
void setDescription(const std::string& description);
std::string getProjectId()const;
void setProjectId(const std::string& projectId);
std::string getOrgId()const;
void setOrgId(const std::string& orgId);
private:
std::string smartGroupId_;
std::string name_;
std::string description_;
std::string projectId_;
std::string orgId_;
};
}
}
}
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_CREATECOMMONGROUPREQUEST_H_

View File

@@ -0,0 +1,61 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DEVOPS_RDC_MODEL_CREATECOMMONGROUPRESULT_H_
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_CREATECOMMONGROUPRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/devops-rdc/Devops_rdcExport.h>
namespace AlibabaCloud
{
namespace Devops_rdc
{
namespace Model
{
class ALIBABACLOUD_DEVOPS_RDC_EXPORT CreateCommonGroupResult : public ServiceResult
{
public:
struct Object
{
std::string id;
};
CreateCommonGroupResult();
explicit CreateCommonGroupResult(const std::string &payload);
~CreateCommonGroupResult();
std::string getErrorMsg()const;
Object getObject()const;
std::string getErrorCode()const;
bool getSuccessful()const;
protected:
void parse(const std::string &payload);
private:
std::string errorMsg_;
Object object_;
std::string errorCode_;
bool successful_;
};
}
}
}
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_CREATECOMMONGROUPRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DEVOPS_RDC_MODEL_DELETECOMMONGROUPREQUEST_H_
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_DELETECOMMONGROUPREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/devops-rdc/Devops_rdcExport.h>
namespace AlibabaCloud
{
namespace Devops_rdc
{
namespace Model
{
class ALIBABACLOUD_DEVOPS_RDC_EXPORT DeleteCommonGroupRequest : public RpcServiceRequest
{
public:
DeleteCommonGroupRequest();
~DeleteCommonGroupRequest();
std::string getProjectId()const;
void setProjectId(const std::string& projectId);
std::string getCommonGroupId()const;
void setCommonGroupId(const std::string& commonGroupId);
std::string getOrgId()const;
void setOrgId(const std::string& orgId);
private:
std::string projectId_;
std::string commonGroupId_;
std::string orgId_;
};
}
}
}
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_DELETECOMMONGROUPREQUEST_H_

View File

@@ -0,0 +1,61 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DEVOPS_RDC_MODEL_DELETECOMMONGROUPRESULT_H_
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_DELETECOMMONGROUPRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/devops-rdc/Devops_rdcExport.h>
namespace AlibabaCloud
{
namespace Devops_rdc
{
namespace Model
{
class ALIBABACLOUD_DEVOPS_RDC_EXPORT DeleteCommonGroupResult : public ServiceResult
{
public:
struct Object
{
std::string id;
};
DeleteCommonGroupResult();
explicit DeleteCommonGroupResult(const std::string &payload);
~DeleteCommonGroupResult();
std::string getErrorMsg()const;
Object getObject()const;
std::string getErrorCode()const;
bool getSuccessful()const;
protected:
void parse(const std::string &payload);
private:
std::string errorMsg_;
Object object_;
std::string errorCode_;
bool successful_;
};
}
}
}
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_DELETECOMMONGROUPRESULT_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DEVOPS_RDC_MODEL_GETPROJECTOPTIONREQUEST_H_
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_GETPROJECTOPTIONREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/devops-rdc/Devops_rdcExport.h>
namespace AlibabaCloud
{
namespace Devops_rdc
{
namespace Model
{
class ALIBABACLOUD_DEVOPS_RDC_EXPORT GetProjectOptionRequest : public RpcServiceRequest
{
public:
GetProjectOptionRequest();
~GetProjectOptionRequest();
std::string getQuery()const;
void setQuery(const std::string& query);
std::string getType()const;
void setType(const std::string& type);
std::string getProjectId()const;
void setProjectId(const std::string& projectId);
std::string getOrgId()const;
void setOrgId(const std::string& orgId);
private:
std::string query_;
std::string type_;
std::string projectId_;
std::string orgId_;
};
}
}
}
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_GETPROJECTOPTIONREQUEST_H_

View 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.
*/
#ifndef ALIBABACLOUD_DEVOPS_RDC_MODEL_GETPROJECTOPTIONRESULT_H_
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_GETPROJECTOPTIONRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/devops-rdc/Devops_rdcExport.h>
namespace AlibabaCloud
{
namespace Devops_rdc
{
namespace Model
{
class ALIBABACLOUD_DEVOPS_RDC_EXPORT GetProjectOptionResult : public ServiceResult
{
public:
struct Option
{
std::string value;
std::string name;
};
GetProjectOptionResult();
explicit GetProjectOptionResult(const std::string &payload);
~GetProjectOptionResult();
std::string getErrorMsg()const;
std::vector<Option> getObject()const;
std::string getErrorCode()const;
bool getSuccessful()const;
protected:
void parse(const std::string &payload);
private:
std::string errorMsg_;
std::vector<Option> object_;
std::string errorCode_;
bool successful_;
};
}
}
}
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_GETPROJECTOPTIONRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DEVOPS_RDC_MODEL_GETTASKDETAILACTIVITYREQUEST_H_
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_GETTASKDETAILACTIVITYREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/devops-rdc/Devops_rdcExport.h>
namespace AlibabaCloud
{
namespace Devops_rdc
{
namespace Model
{
class ALIBABACLOUD_DEVOPS_RDC_EXPORT GetTaskDetailActivityRequest : public RpcServiceRequest
{
public:
GetTaskDetailActivityRequest();
~GetTaskDetailActivityRequest();
std::string getProjectId()const;
void setProjectId(const std::string& projectId);
std::string getOrgId()const;
void setOrgId(const std::string& orgId);
std::string getTaskId()const;
void setTaskId(const std::string& taskId);
private:
std::string projectId_;
std::string orgId_;
std::string taskId_;
};
}
}
}
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_GETTASKDETAILACTIVITYREQUEST_H_

View File

@@ -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_DEVOPS_RDC_MODEL_GETTASKDETAILACTIVITYRESULT_H_
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_GETTASKDETAILACTIVITYRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/devops-rdc/Devops_rdcExport.h>
namespace AlibabaCloud
{
namespace Devops_rdc
{
namespace Model
{
class ALIBABACLOUD_DEVOPS_RDC_EXPORT GetTaskDetailActivityResult : public ServiceResult
{
public:
struct Activity
{
std::string action;
std::string updated;
std::string content;
std::string title;
std::string created;
};
GetTaskDetailActivityResult();
explicit GetTaskDetailActivityResult(const std::string &payload);
~GetTaskDetailActivityResult();
std::string getErrorMsg()const;
int getHttpStatusCode()const;
std::vector<Activity> getObject()const;
std::string getErrorCode()const;
bool getSuccessful()const;
protected:
void parse(const std::string &payload);
private:
std::string errorMsg_;
int httpStatusCode_;
std::vector<Activity> object_;
std::string errorCode_;
bool successful_;
};
}
}
}
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_GETTASKDETAILACTIVITYRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DEVOPS_RDC_MODEL_GETTASKDETAILBASEREQUEST_H_
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_GETTASKDETAILBASEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/devops-rdc/Devops_rdcExport.h>
namespace AlibabaCloud
{
namespace Devops_rdc
{
namespace Model
{
class ALIBABACLOUD_DEVOPS_RDC_EXPORT GetTaskDetailBaseRequest : public RpcServiceRequest
{
public:
GetTaskDetailBaseRequest();
~GetTaskDetailBaseRequest();
std::string getProjectId()const;
void setProjectId(const std::string& projectId);
std::string getOrgId()const;
void setOrgId(const std::string& orgId);
std::string getTaskId()const;
void setTaskId(const std::string& taskId);
private:
std::string projectId_;
std::string orgId_;
std::string taskId_;
};
}
}
}
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_GETTASKDETAILBASEREQUEST_H_

View File

@@ -0,0 +1,205 @@
/*
* 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_DEVOPS_RDC_MODEL_GETTASKDETAILBASERESULT_H_
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_GETTASKDETAILBASERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/devops-rdc/Devops_rdcExport.h>
namespace AlibabaCloud
{
namespace Devops_rdc
{
namespace Model
{
class ALIBABACLOUD_DEVOPS_RDC_EXPORT GetTaskDetailBaseResult : public ServiceResult
{
public:
struct Object
{
struct Scenariofieldconfig
{
std::string icon;
std::string id;
std::string proTemplateConfigType;
std::string name;
};
struct Executor
{
std::string avatarUrl;
std::string id;
std::string name;
};
struct Tasklist
{
std::string title;
std::string id;
};
struct Taskflowstatus
{
std::string taskflowId;
std::string kind;
std::string id;
std::string name;
};
struct Creator
{
std::string id;
std::string name;
};
struct Reminder
{
std::string type;
std::string creatorId;
std::string method;
std::vector<std::string> memberRoles;
std::vector<std::string> rules;
std::string date;
std::vector<std::string> members;
};
struct SubtaskCount
{
int done;
int total;
};
struct WorkTime
{
int usedTime;
int totalTime;
std::string unit;
};
struct Badges
{
int likesCount;
int commentsCount;
int objectlinksCount;
int attachmentsCount;
};
struct Stage
{
std::string id;
std::string name;
};
struct Customfield
{
struct ValueInfo
{
std::string title;
std::string id;
};
std::string customfieldId;
std::string type;
std::vector<Customfield::ValueInfo> value;
std::vector<std::string> values;
};
struct Subtask
{
std::string content;
std::string id;
};
struct Involver
{
std::string id;
std::string name;
};
std::string untilDate;
std::string recurrence;
std::string sourceDate;
std::vector<std::string> tagIds;
std::string stageId;
std::vector<std::string> involveMembers;
Creator creator;
std::string startDate;
std::string executorId;
Stage stage;
SubtaskCount subtaskCount;
std::vector<std::string> divisions;
int likesCount;
int uniqueId;
std::string updated;
int priority;
int shareStatus;
std::vector<std::string> labels;
std::string storyPoint;
bool isFavorite;
Tasklist tasklist;
std::string content;
std::string note;
std::vector<Customfield> customfields;
std::string scenariofieldconfigId;
std::string sprint;
std::string id;
std::string accomplished;
std::string taskId;
std::string organization;
std::string parent;
int rating;
std::string sourceId;
std::string sprintId;
std::string organizationId;
std::string source;
std::string created;
std::string objectType;
Executor executor;
std::string visible;
std::vector<std::string> ancestorIds;
std::string dueDate;
Taskflowstatus taskflowstatus;
int progress;
Reminder reminder;
std::string creatorId;
std::vector<Subtask> subtasks;
std::string projectId;
std::vector<Involver> involvers;
std::string taskflowstatusId;
bool isDone;
std::vector<std::string> ancestors;
int attachmentsCount;
WorkTime workTime;
bool isArchived;
bool isTopInProject;
Badges badges;
int commentsCount;
Scenariofieldconfig scenariofieldconfig;
int objectlinksCount;
};
GetTaskDetailBaseResult();
explicit GetTaskDetailBaseResult(const std::string &payload);
~GetTaskDetailBaseResult();
std::string getErrorMsg()const;
Object getObject()const;
std::string getErrorCode()const;
bool getSuccessful()const;
protected:
void parse(const std::string &payload);
private:
std::string errorMsg_;
Object object_;
std::string errorCode_;
bool successful_;
};
}
}
}
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_GETTASKDETAILBASERESULT_H_

View File

@@ -0,0 +1,105 @@
/*
* 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_DEVOPS_RDC_MODEL_GETTASKLISTFILTERREQUEST_H_
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_GETTASKLISTFILTERREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/devops-rdc/Devops_rdcExport.h>
namespace AlibabaCloud
{
namespace Devops_rdc
{
namespace Model
{
class ALIBABACLOUD_DEVOPS_RDC_EXPORT GetTaskListFilterRequest : public RpcServiceRequest
{
public:
GetTaskListFilterRequest();
~GetTaskListFilterRequest();
std::string getInvolveMembers()const;
void setInvolveMembers(const std::string& involveMembers);
std::string getExecutorId()const;
void setExecutorId(const std::string& executorId);
std::string getOrderCondition()const;
void setOrderCondition(const std::string& orderCondition);
std::string getSprintId()const;
void setSprintId(const std::string& sprintId);
std::string getExtra()const;
void setExtra(const std::string& extra);
int getPageSize()const;
void setPageSize(int pageSize);
std::string getScenarioFieldConfigId()const;
void setScenarioFieldConfigId(const std::string& scenarioFieldConfigId);
bool getIsDone()const;
void setIsDone(bool isDone);
std::string getObjectType()const;
void setObjectType(const std::string& objectType);
std::string getProjectId()const;
void setProjectId(const std::string& projectId);
std::string getPageToken()const;
void setPageToken(const std::string& pageToken);
std::string getOrder()const;
void setOrder(const std::string& order);
std::string getTagId()const;
void setTagId(const std::string& tagId);
std::string getTaskFlowStatusId()const;
void setTaskFlowStatusId(const std::string& taskFlowStatusId);
std::string getDueDateStart()const;
void setDueDateStart(const std::string& dueDateStart);
std::string getCreatorId()const;
void setCreatorId(const std::string& creatorId);
std::string getPriority()const;
void setPriority(const std::string& priority);
std::string getDueDateEnd()const;
void setDueDateEnd(const std::string& dueDateEnd);
std::string getOrgId()const;
void setOrgId(const std::string& orgId);
std::string getName()const;
void setName(const std::string& name);
private:
std::string involveMembers_;
std::string executorId_;
std::string orderCondition_;
std::string sprintId_;
std::string extra_;
int pageSize_;
std::string scenarioFieldConfigId_;
bool isDone_;
std::string objectType_;
std::string projectId_;
std::string pageToken_;
std::string order_;
std::string tagId_;
std::string taskFlowStatusId_;
std::string dueDateStart_;
std::string creatorId_;
std::string priority_;
std::string dueDateEnd_;
std::string orgId_;
std::string name_;
};
}
}
}
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_GETTASKLISTFILTERREQUEST_H_

View File

@@ -0,0 +1,185 @@
/*
* 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_DEVOPS_RDC_MODEL_GETTASKLISTFILTERRESULT_H_
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_GETTASKLISTFILTERRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/devops-rdc/Devops_rdcExport.h>
namespace AlibabaCloud
{
namespace Devops_rdc
{
namespace Model
{
class ALIBABACLOUD_DEVOPS_RDC_EXPORT GetTaskListFilterResult : public ServiceResult
{
public:
struct Object
{
struct Task
{
struct WorkTime
{
int totalTime;
int usedTime;
std::string unit;
};
struct Badges
{
int likesCount;
int commentsCount;
int objectlinksCount;
int attachmentsCount;
};
struct SubtaskCount
{
int done;
int total;
};
struct Reminder
{
std::string type;
std::string creatorId;
std::vector<std::string> rules;
std::string date;
std::vector<std::string> members;
};
struct Creator
{
std::string avatarUrl;
std::string id;
std::string name;
};
struct Stage
{
std::string id;
std::string name;
};
struct Executor
{
std::string avatarUrl;
std::string id;
std::string name;
};
struct TaskFlowStatus
{
int pos;
std::string kind;
std::string id;
std::string taskFlowId;
std::string name;
};
struct Customfield
{
struct ValueItem
{
std::string title;
std::string id;
};
std::string customfieldId;
std::string type;
std::vector<Customfield::ValueItem> value;
std::string values;
};
std::string untilDate;
std::string recurrence;
std::string sourceDate;
std::vector<std::string> tagIds;
std::string stageId;
std::vector<std::string> involveMembers;
Creator creator;
std::string startDate;
std::string executorId;
Stage stage;
SubtaskCount subtaskCount;
std::vector<std::string> divisions;
int likesCount;
int uniqueId;
std::string updated;
int priority;
int shareStatus;
std::vector<std::string> labels;
std::string storyPoint;
bool isFavorite;
int pos;
std::string content;
std::string note;
std::vector<Task::Customfield> customfields;
std::string id;
std::string sprint;
std::string accomplished;
std::string taskId;
std::string parent;
std::string sourceId;
int rating;
std::string taskListId;
std::string sprintId;
std::string organizationId;
std::string source;
std::string created;
std::string taskFlowStatusId;
std::string objectType;
Executor executor;
std::string visible;
std::vector<std::string> ancestorIds;
TaskFlowStatus taskFlowStatus;
std::string dueDate;
int progress;
Reminder reminder;
std::string scenariofFeldConfigId;
std::string creatorId;
std::string projectId;
bool isDone;
int attachmentsCount;
WorkTime workTime;
bool isArchived;
bool isTopInProject;
Badges badges;
int commentsCount;
int objectlinksCount;
};
std::string nextPageToken;
int totalSize;
std::vector<Task> result;
};
GetTaskListFilterResult();
explicit GetTaskListFilterResult(const std::string &payload);
~GetTaskListFilterResult();
std::string getErrorMsg()const;
Object getObject()const;
std::string getErrorCode()const;
std::string getSuccessful()const;
protected:
void parse(const std::string &payload);
private:
std::string errorMsg_;
Object object_;
std::string errorCode_;
std::string successful_;
};
}
}
}
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_GETTASKLISTFILTERRESULT_H_

View 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_DEVOPS_RDC_MODEL_GETUSERNAMEREQUEST_H_
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_GETUSERNAMEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/devops-rdc/Devops_rdcExport.h>
namespace AlibabaCloud
{
namespace Devops_rdc
{
namespace Model
{
class ALIBABACLOUD_DEVOPS_RDC_EXPORT GetUserNameRequest : public RpcServiceRequest
{
public:
GetUserNameRequest();
~GetUserNameRequest();
std::string getUserId()const;
void setUserId(const std::string& userId);
std::string getOrgId()const;
void setOrgId(const std::string& orgId);
private:
std::string userId_;
std::string orgId_;
};
}
}
}
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_GETUSERNAMEREQUEST_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DEVOPS_RDC_MODEL_GETUSERNAMERESULT_H_
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_GETUSERNAMERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/devops-rdc/Devops_rdcExport.h>
namespace AlibabaCloud
{
namespace Devops_rdc
{
namespace Model
{
class ALIBABACLOUD_DEVOPS_RDC_EXPORT GetUserNameResult : public ServiceResult
{
public:
GetUserNameResult();
explicit GetUserNameResult(const std::string &payload);
~GetUserNameResult();
std::string getErrorMsg()const;
std::string getObject()const;
std::string getErrorCode()const;
bool getSuccessful()const;
protected:
void parse(const std::string &payload);
private:
std::string errorMsg_;
std::string object_;
std::string errorCode_;
bool successful_;
};
}
}
}
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_GETUSERNAMERESULT_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DEVOPS_RDC_MODEL_LISTCOMMONGROUPREQUEST_H_
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_LISTCOMMONGROUPREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/devops-rdc/Devops_rdcExport.h>
namespace AlibabaCloud
{
namespace Devops_rdc
{
namespace Model
{
class ALIBABACLOUD_DEVOPS_RDC_EXPORT ListCommonGroupRequest : public RpcServiceRequest
{
public:
ListCommonGroupRequest();
~ListCommonGroupRequest();
bool getAll()const;
void setAll(bool all);
std::string getSmartGroupId()const;
void setSmartGroupId(const std::string& smartGroupId);
std::string getProjectId()const;
void setProjectId(const std::string& projectId);
std::string getOrgId()const;
void setOrgId(const std::string& orgId);
private:
bool all_;
std::string smartGroupId_;
std::string projectId_;
std::string orgId_;
};
}
}
}
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_LISTCOMMONGROUPREQUEST_H_

View File

@@ -0,0 +1,69 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DEVOPS_RDC_MODEL_LISTCOMMONGROUPRESULT_H_
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_LISTCOMMONGROUPRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/devops-rdc/Devops_rdcExport.h>
namespace AlibabaCloud
{
namespace Devops_rdc
{
namespace Model
{
class ALIBABACLOUD_DEVOPS_RDC_EXPORT ListCommonGroupResult : public ServiceResult
{
public:
struct CommonGroup
{
bool isRoot;
int pos;
std::string smartGroupId;
std::string pinyin;
std::string creatorId;
int resourceCount;
std::string projectId;
std::string id;
std::string name;
};
ListCommonGroupResult();
explicit ListCommonGroupResult(const std::string &payload);
~ListCommonGroupResult();
std::string getErrorMsg()const;
std::vector<CommonGroup> getObject()const;
std::string getErrorCode()const;
bool getSuccessful()const;
protected:
void parse(const std::string &payload);
private:
std::string errorMsg_;
std::vector<CommonGroup> object_;
std::string errorCode_;
bool successful_;
};
}
}
}
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_LISTCOMMONGROUPRESULT_H_

View 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_DEVOPS_RDC_MODEL_LISTSMARTGROUPREQUEST_H_
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_LISTSMARTGROUPREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/devops-rdc/Devops_rdcExport.h>
namespace AlibabaCloud
{
namespace Devops_rdc
{
namespace Model
{
class ALIBABACLOUD_DEVOPS_RDC_EXPORT ListSmartGroupRequest : public RpcServiceRequest
{
public:
ListSmartGroupRequest();
~ListSmartGroupRequest();
std::string getProjectId()const;
void setProjectId(const std::string& projectId);
std::string getOrgId()const;
void setOrgId(const std::string& orgId);
private:
std::string projectId_;
std::string orgId_;
};
}
}
}
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_LISTSMARTGROUPREQUEST_H_

View 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.
*/
#ifndef ALIBABACLOUD_DEVOPS_RDC_MODEL_LISTSMARTGROUPRESULT_H_
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_LISTSMARTGROUPRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/devops-rdc/Devops_rdcExport.h>
namespace AlibabaCloud
{
namespace Devops_rdc
{
namespace Model
{
class ALIBABACLOUD_DEVOPS_RDC_EXPORT ListSmartGroupResult : public ServiceResult
{
public:
struct SmartGroup
{
std::string type;
std::string id;
};
ListSmartGroupResult();
explicit ListSmartGroupResult(const std::string &payload);
~ListSmartGroupResult();
std::string getErrorMsg()const;
std::vector<SmartGroup> getObject()const;
std::string getErrorCode()const;
bool getSuccessful()const;
protected:
void parse(const std::string &payload);
private:
std::string errorMsg_;
std::vector<SmartGroup> object_;
std::string errorCode_;
bool successful_;
};
}
}
}
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_LISTSMARTGROUPRESULT_H_

View 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.
*/
#ifndef ALIBABACLOUD_DEVOPS_RDC_MODEL_UPDATECOMMONGROUPREQUEST_H_
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_UPDATECOMMONGROUPREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/devops-rdc/Devops_rdcExport.h>
namespace AlibabaCloud
{
namespace Devops_rdc
{
namespace Model
{
class ALIBABACLOUD_DEVOPS_RDC_EXPORT UpdateCommonGroupRequest : public RpcServiceRequest
{
public:
UpdateCommonGroupRequest();
~UpdateCommonGroupRequest();
std::string getDescription()const;
void setDescription(const std::string& description);
std::string getCommonGroupId()const;
void setCommonGroupId(const std::string& commonGroupId);
std::string getOrgId()const;
void setOrgId(const std::string& orgId);
std::string getSmartGroupId()const;
void setSmartGroupId(const std::string& smartGroupId);
std::string getName()const;
void setName(const std::string& name);
std::string getProjectId()const;
void setProjectId(const std::string& projectId);
private:
std::string description_;
std::string commonGroupId_;
std::string orgId_;
std::string smartGroupId_;
std::string name_;
std::string projectId_;
};
}
}
}
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_UPDATECOMMONGROUPREQUEST_H_

View File

@@ -0,0 +1,61 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DEVOPS_RDC_MODEL_UPDATECOMMONGROUPRESULT_H_
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_UPDATECOMMONGROUPRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/devops-rdc/Devops_rdcExport.h>
namespace AlibabaCloud
{
namespace Devops_rdc
{
namespace Model
{
class ALIBABACLOUD_DEVOPS_RDC_EXPORT UpdateCommonGroupResult : public ServiceResult
{
public:
struct Object
{
std::string id;
};
UpdateCommonGroupResult();
explicit UpdateCommonGroupResult(const std::string &payload);
~UpdateCommonGroupResult();
std::string getErrorMsg()const;
Object getObject()const;
std::string getErrorCode()const;
bool getSuccessful()const;
protected:
void parse(const std::string &payload);
private:
std::string errorMsg_;
Object object_;
std::string errorCode_;
bool successful_;
};
}
}
}
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_UPDATECOMMONGROUPRESULT_H_

View File

@@ -159,6 +159,42 @@ Devops_rdcClient::CheckAliyunAccountExistsOutcomeCallable Devops_rdcClient::chec
return task->get_future();
}
Devops_rdcClient::CreateCommonGroupOutcome Devops_rdcClient::createCommonGroup(const CreateCommonGroupRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateCommonGroupOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateCommonGroupOutcome(CreateCommonGroupResult(outcome.result()));
else
return CreateCommonGroupOutcome(outcome.error());
}
void Devops_rdcClient::createCommonGroupAsync(const CreateCommonGroupRequest& request, const CreateCommonGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createCommonGroup(request), context);
};
asyncExecute(new Runnable(fn));
}
Devops_rdcClient::CreateCommonGroupOutcomeCallable Devops_rdcClient::createCommonGroupCallable(const CreateCommonGroupRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateCommonGroupOutcome()>>(
[this, request]()
{
return this->createCommonGroup(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Devops_rdcClient::CreateCredentialOutcome Devops_rdcClient::createCredential(const CreateCredentialRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -411,6 +447,42 @@ Devops_rdcClient::CreateServiceConnectionOutcomeCallable Devops_rdcClient::creat
return task->get_future();
}
Devops_rdcClient::DeleteCommonGroupOutcome Devops_rdcClient::deleteCommonGroup(const DeleteCommonGroupRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteCommonGroupOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteCommonGroupOutcome(DeleteCommonGroupResult(outcome.result()));
else
return DeleteCommonGroupOutcome(outcome.error());
}
void Devops_rdcClient::deleteCommonGroupAsync(const DeleteCommonGroupRequest& request, const DeleteCommonGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteCommonGroup(request), context);
};
asyncExecute(new Runnable(fn));
}
Devops_rdcClient::DeleteCommonGroupOutcomeCallable Devops_rdcClient::deleteCommonGroupCallable(const DeleteCommonGroupRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteCommonGroupOutcome()>>(
[this, request]()
{
return this->deleteCommonGroup(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Devops_rdcClient::DeleteDevopsOrganizationMembersOutcome Devops_rdcClient::deleteDevopsOrganizationMembers(const DeleteDevopsOrganizationMembersRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1059,6 +1131,150 @@ Devops_rdcClient::GetPipleineLatestInstanceStatusOutcomeCallable Devops_rdcClien
return task->get_future();
}
Devops_rdcClient::GetProjectOptionOutcome Devops_rdcClient::getProjectOption(const GetProjectOptionRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetProjectOptionOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetProjectOptionOutcome(GetProjectOptionResult(outcome.result()));
else
return GetProjectOptionOutcome(outcome.error());
}
void Devops_rdcClient::getProjectOptionAsync(const GetProjectOptionRequest& request, const GetProjectOptionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getProjectOption(request), context);
};
asyncExecute(new Runnable(fn));
}
Devops_rdcClient::GetProjectOptionOutcomeCallable Devops_rdcClient::getProjectOptionCallable(const GetProjectOptionRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetProjectOptionOutcome()>>(
[this, request]()
{
return this->getProjectOption(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Devops_rdcClient::GetTaskDetailActivityOutcome Devops_rdcClient::getTaskDetailActivity(const GetTaskDetailActivityRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetTaskDetailActivityOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetTaskDetailActivityOutcome(GetTaskDetailActivityResult(outcome.result()));
else
return GetTaskDetailActivityOutcome(outcome.error());
}
void Devops_rdcClient::getTaskDetailActivityAsync(const GetTaskDetailActivityRequest& request, const GetTaskDetailActivityAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getTaskDetailActivity(request), context);
};
asyncExecute(new Runnable(fn));
}
Devops_rdcClient::GetTaskDetailActivityOutcomeCallable Devops_rdcClient::getTaskDetailActivityCallable(const GetTaskDetailActivityRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetTaskDetailActivityOutcome()>>(
[this, request]()
{
return this->getTaskDetailActivity(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Devops_rdcClient::GetTaskDetailBaseOutcome Devops_rdcClient::getTaskDetailBase(const GetTaskDetailBaseRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetTaskDetailBaseOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetTaskDetailBaseOutcome(GetTaskDetailBaseResult(outcome.result()));
else
return GetTaskDetailBaseOutcome(outcome.error());
}
void Devops_rdcClient::getTaskDetailBaseAsync(const GetTaskDetailBaseRequest& request, const GetTaskDetailBaseAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getTaskDetailBase(request), context);
};
asyncExecute(new Runnable(fn));
}
Devops_rdcClient::GetTaskDetailBaseOutcomeCallable Devops_rdcClient::getTaskDetailBaseCallable(const GetTaskDetailBaseRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetTaskDetailBaseOutcome()>>(
[this, request]()
{
return this->getTaskDetailBase(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Devops_rdcClient::GetTaskListFilterOutcome Devops_rdcClient::getTaskListFilter(const GetTaskListFilterRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetTaskListFilterOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetTaskListFilterOutcome(GetTaskListFilterResult(outcome.result()));
else
return GetTaskListFilterOutcome(outcome.error());
}
void Devops_rdcClient::getTaskListFilterAsync(const GetTaskListFilterRequest& request, const GetTaskListFilterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getTaskListFilter(request), context);
};
asyncExecute(new Runnable(fn));
}
Devops_rdcClient::GetTaskListFilterOutcomeCallable Devops_rdcClient::getTaskListFilterCallable(const GetTaskListFilterRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetTaskListFilterOutcome()>>(
[this, request]()
{
return this->getTaskListFilter(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Devops_rdcClient::GetUserByAliyunUidOutcome Devops_rdcClient::getUserByAliyunUid(const GetUserByAliyunUidRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1095,6 +1311,42 @@ Devops_rdcClient::GetUserByAliyunUidOutcomeCallable Devops_rdcClient::getUserByA
return task->get_future();
}
Devops_rdcClient::GetUserNameOutcome Devops_rdcClient::getUserName(const GetUserNameRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetUserNameOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetUserNameOutcome(GetUserNameResult(outcome.result()));
else
return GetUserNameOutcome(outcome.error());
}
void Devops_rdcClient::getUserNameAsync(const GetUserNameRequest& request, const GetUserNameAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getUserName(request), context);
};
asyncExecute(new Runnable(fn));
}
Devops_rdcClient::GetUserNameOutcomeCallable Devops_rdcClient::getUserNameCallable(const GetUserNameRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetUserNameOutcome()>>(
[this, request]()
{
return this->getUserName(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Devops_rdcClient::InsertDevopsUserOutcome Devops_rdcClient::insertDevopsUser(const InsertDevopsUserRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1203,6 +1455,42 @@ Devops_rdcClient::InsertProjectMembersOutcomeCallable Devops_rdcClient::insertPr
return task->get_future();
}
Devops_rdcClient::ListCommonGroupOutcome Devops_rdcClient::listCommonGroup(const ListCommonGroupRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListCommonGroupOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListCommonGroupOutcome(ListCommonGroupResult(outcome.result()));
else
return ListCommonGroupOutcome(outcome.error());
}
void Devops_rdcClient::listCommonGroupAsync(const ListCommonGroupRequest& request, const ListCommonGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listCommonGroup(request), context);
};
asyncExecute(new Runnable(fn));
}
Devops_rdcClient::ListCommonGroupOutcomeCallable Devops_rdcClient::listCommonGroupCallable(const ListCommonGroupRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListCommonGroupOutcome()>>(
[this, request]()
{
return this->listCommonGroup(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Devops_rdcClient::ListCredentialsOutcome Devops_rdcClient::listCredentials(const ListCredentialsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1527,6 +1815,42 @@ Devops_rdcClient::ListServiceConnectionsOutcomeCallable Devops_rdcClient::listSe
return task->get_future();
}
Devops_rdcClient::ListSmartGroupOutcome Devops_rdcClient::listSmartGroup(const ListSmartGroupRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListSmartGroupOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListSmartGroupOutcome(ListSmartGroupResult(outcome.result()));
else
return ListSmartGroupOutcome(outcome.error());
}
void Devops_rdcClient::listSmartGroupAsync(const ListSmartGroupRequest& request, const ListSmartGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listSmartGroup(request), context);
};
asyncExecute(new Runnable(fn));
}
Devops_rdcClient::ListSmartGroupOutcomeCallable Devops_rdcClient::listSmartGroupCallable(const ListSmartGroupRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListSmartGroupOutcome()>>(
[this, request]()
{
return this->listSmartGroup(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Devops_rdcClient::ListUserOrganizationOutcome Devops_rdcClient::listUserOrganization(const ListUserOrganizationRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1599,6 +1923,42 @@ Devops_rdcClient::TransferPipelineOwnerOutcomeCallable Devops_rdcClient::transfe
return task->get_future();
}
Devops_rdcClient::UpdateCommonGroupOutcome Devops_rdcClient::updateCommonGroup(const UpdateCommonGroupRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateCommonGroupOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateCommonGroupOutcome(UpdateCommonGroupResult(outcome.result()));
else
return UpdateCommonGroupOutcome(outcome.error());
}
void Devops_rdcClient::updateCommonGroupAsync(const UpdateCommonGroupRequest& request, const UpdateCommonGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateCommonGroup(request), context);
};
asyncExecute(new Runnable(fn));
}
Devops_rdcClient::UpdateCommonGroupOutcomeCallable Devops_rdcClient::updateCommonGroupCallable(const UpdateCommonGroupRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateCommonGroupOutcome()>>(
[this, request]()
{
return this->updateCommonGroup(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Devops_rdcClient::UpdateDevopsProjectOutcome Devops_rdcClient::updateDevopsProject(const UpdateDevopsProjectRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/devops-rdc/model/CreateCommonGroupRequest.h>
using AlibabaCloud::Devops_rdc::Model::CreateCommonGroupRequest;
CreateCommonGroupRequest::CreateCommonGroupRequest() :
RpcServiceRequest("devops-rdc", "2020-03-03", "CreateCommonGroup")
{
setMethod(HttpRequest::Method::Post);
}
CreateCommonGroupRequest::~CreateCommonGroupRequest()
{}
std::string CreateCommonGroupRequest::getSmartGroupId()const
{
return smartGroupId_;
}
void CreateCommonGroupRequest::setSmartGroupId(const std::string& smartGroupId)
{
smartGroupId_ = smartGroupId;
setBodyParameter("SmartGroupId", smartGroupId);
}
std::string CreateCommonGroupRequest::getName()const
{
return name_;
}
void CreateCommonGroupRequest::setName(const std::string& name)
{
name_ = name;
setBodyParameter("Name", name);
}
std::string CreateCommonGroupRequest::getDescription()const
{
return description_;
}
void CreateCommonGroupRequest::setDescription(const std::string& description)
{
description_ = description;
setBodyParameter("Description", description);
}
std::string CreateCommonGroupRequest::getProjectId()const
{
return projectId_;
}
void CreateCommonGroupRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", projectId);
}
std::string CreateCommonGroupRequest::getOrgId()const
{
return orgId_;
}
void CreateCommonGroupRequest::setOrgId(const std::string& orgId)
{
orgId_ = orgId;
setBodyParameter("OrgId", orgId);
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/devops-rdc/model/CreateCommonGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Devops_rdc;
using namespace AlibabaCloud::Devops_rdc::Model;
CreateCommonGroupResult::CreateCommonGroupResult() :
ServiceResult()
{}
CreateCommonGroupResult::CreateCommonGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateCommonGroupResult::~CreateCommonGroupResult()
{}
void CreateCommonGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto objectNode = value["Object"];
if(!objectNode["Id"].isNull())
object_.id = objectNode["Id"].asString();
if(!value["Successful"].isNull())
successful_ = value["Successful"].asString() == "true";
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["ErrorMsg"].isNull())
errorMsg_ = value["ErrorMsg"].asString();
}
std::string CreateCommonGroupResult::getErrorMsg()const
{
return errorMsg_;
}
CreateCommonGroupResult::Object CreateCommonGroupResult::getObject()const
{
return object_;
}
std::string CreateCommonGroupResult::getErrorCode()const
{
return errorCode_;
}
bool CreateCommonGroupResult::getSuccessful()const
{
return successful_;
}

View 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/devops-rdc/model/DeleteCommonGroupRequest.h>
using AlibabaCloud::Devops_rdc::Model::DeleteCommonGroupRequest;
DeleteCommonGroupRequest::DeleteCommonGroupRequest() :
RpcServiceRequest("devops-rdc", "2020-03-03", "DeleteCommonGroup")
{
setMethod(HttpRequest::Method::Post);
}
DeleteCommonGroupRequest::~DeleteCommonGroupRequest()
{}
std::string DeleteCommonGroupRequest::getProjectId()const
{
return projectId_;
}
void DeleteCommonGroupRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", projectId);
}
std::string DeleteCommonGroupRequest::getCommonGroupId()const
{
return commonGroupId_;
}
void DeleteCommonGroupRequest::setCommonGroupId(const std::string& commonGroupId)
{
commonGroupId_ = commonGroupId;
setBodyParameter("CommonGroupId", commonGroupId);
}
std::string DeleteCommonGroupRequest::getOrgId()const
{
return orgId_;
}
void DeleteCommonGroupRequest::setOrgId(const std::string& orgId)
{
orgId_ = orgId;
setBodyParameter("OrgId", orgId);
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/devops-rdc/model/DeleteCommonGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Devops_rdc;
using namespace AlibabaCloud::Devops_rdc::Model;
DeleteCommonGroupResult::DeleteCommonGroupResult() :
ServiceResult()
{}
DeleteCommonGroupResult::DeleteCommonGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteCommonGroupResult::~DeleteCommonGroupResult()
{}
void DeleteCommonGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto objectNode = value["Object"];
if(!objectNode["Id"].isNull())
object_.id = objectNode["Id"].asString();
if(!value["Successful"].isNull())
successful_ = value["Successful"].asString() == "true";
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["ErrorMsg"].isNull())
errorMsg_ = value["ErrorMsg"].asString();
}
std::string DeleteCommonGroupResult::getErrorMsg()const
{
return errorMsg_;
}
DeleteCommonGroupResult::Object DeleteCommonGroupResult::getObject()const
{
return object_;
}
std::string DeleteCommonGroupResult::getErrorCode()const
{
return errorCode_;
}
bool DeleteCommonGroupResult::getSuccessful()const
{
return successful_;
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/devops-rdc/model/GetProjectOptionRequest.h>
using AlibabaCloud::Devops_rdc::Model::GetProjectOptionRequest;
GetProjectOptionRequest::GetProjectOptionRequest() :
RpcServiceRequest("devops-rdc", "2020-03-03", "GetProjectOption")
{
setMethod(HttpRequest::Method::Post);
}
GetProjectOptionRequest::~GetProjectOptionRequest()
{}
std::string GetProjectOptionRequest::getQuery()const
{
return query_;
}
void GetProjectOptionRequest::setQuery(const std::string& query)
{
query_ = query;
setBodyParameter("Query", query);
}
std::string GetProjectOptionRequest::getType()const
{
return type_;
}
void GetProjectOptionRequest::setType(const std::string& type)
{
type_ = type;
setBodyParameter("Type", type);
}
std::string GetProjectOptionRequest::getProjectId()const
{
return projectId_;
}
void GetProjectOptionRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", projectId);
}
std::string GetProjectOptionRequest::getOrgId()const
{
return orgId_;
}
void GetProjectOptionRequest::setOrgId(const std::string& orgId)
{
orgId_ = orgId;
setBodyParameter("OrgId", orgId);
}

View File

@@ -0,0 +1,80 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/devops-rdc/model/GetProjectOptionResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Devops_rdc;
using namespace AlibabaCloud::Devops_rdc::Model;
GetProjectOptionResult::GetProjectOptionResult() :
ServiceResult()
{}
GetProjectOptionResult::GetProjectOptionResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetProjectOptionResult::~GetProjectOptionResult()
{}
void GetProjectOptionResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allObjectNode = value["Object"]["Option"];
for (auto valueObjectOption : allObjectNode)
{
Option objectObject;
if(!valueObjectOption["Name"].isNull())
objectObject.name = valueObjectOption["Name"].asString();
if(!valueObjectOption["Value"].isNull())
objectObject.value = valueObjectOption["Value"].asString();
object_.push_back(objectObject);
}
if(!value["Successful"].isNull())
successful_ = value["Successful"].asString() == "true";
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["ErrorMsg"].isNull())
errorMsg_ = value["ErrorMsg"].asString();
}
std::string GetProjectOptionResult::getErrorMsg()const
{
return errorMsg_;
}
std::vector<GetProjectOptionResult::Option> GetProjectOptionResult::getObject()const
{
return object_;
}
std::string GetProjectOptionResult::getErrorCode()const
{
return errorCode_;
}
bool GetProjectOptionResult::getSuccessful()const
{
return successful_;
}

View 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/devops-rdc/model/GetTaskDetailActivityRequest.h>
using AlibabaCloud::Devops_rdc::Model::GetTaskDetailActivityRequest;
GetTaskDetailActivityRequest::GetTaskDetailActivityRequest() :
RpcServiceRequest("devops-rdc", "2020-03-03", "GetTaskDetailActivity")
{
setMethod(HttpRequest::Method::Post);
}
GetTaskDetailActivityRequest::~GetTaskDetailActivityRequest()
{}
std::string GetTaskDetailActivityRequest::getProjectId()const
{
return projectId_;
}
void GetTaskDetailActivityRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", projectId);
}
std::string GetTaskDetailActivityRequest::getOrgId()const
{
return orgId_;
}
void GetTaskDetailActivityRequest::setOrgId(const std::string& orgId)
{
orgId_ = orgId;
setBodyParameter("OrgId", orgId);
}
std::string GetTaskDetailActivityRequest::getTaskId()const
{
return taskId_;
}
void GetTaskDetailActivityRequest::setTaskId(const std::string& taskId)
{
taskId_ = taskId;
setBodyParameter("TaskId", taskId);
}

View File

@@ -0,0 +1,93 @@
/*
* 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/devops-rdc/model/GetTaskDetailActivityResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Devops_rdc;
using namespace AlibabaCloud::Devops_rdc::Model;
GetTaskDetailActivityResult::GetTaskDetailActivityResult() :
ServiceResult()
{}
GetTaskDetailActivityResult::GetTaskDetailActivityResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetTaskDetailActivityResult::~GetTaskDetailActivityResult()
{}
void GetTaskDetailActivityResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allObjectNode = value["Object"]["Activity"];
for (auto valueObjectActivity : allObjectNode)
{
Activity objectObject;
if(!valueObjectActivity["Created"].isNull())
objectObject.created = valueObjectActivity["Created"].asString();
if(!valueObjectActivity["Title"].isNull())
objectObject.title = valueObjectActivity["Title"].asString();
if(!valueObjectActivity["Action"].isNull())
objectObject.action = valueObjectActivity["Action"].asString();
if(!valueObjectActivity["Updated"].isNull())
objectObject.updated = valueObjectActivity["Updated"].asString();
if(!valueObjectActivity["Content"].isNull())
objectObject.content = valueObjectActivity["Content"].asString();
object_.push_back(objectObject);
}
if(!value["Successful"].isNull())
successful_ = value["Successful"].asString() == "true";
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["ErrorMsg"].isNull())
errorMsg_ = value["ErrorMsg"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
}
std::string GetTaskDetailActivityResult::getErrorMsg()const
{
return errorMsg_;
}
int GetTaskDetailActivityResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::vector<GetTaskDetailActivityResult::Activity> GetTaskDetailActivityResult::getObject()const
{
return object_;
}
std::string GetTaskDetailActivityResult::getErrorCode()const
{
return errorCode_;
}
bool GetTaskDetailActivityResult::getSuccessful()const
{
return successful_;
}

View 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/devops-rdc/model/GetTaskDetailBaseRequest.h>
using AlibabaCloud::Devops_rdc::Model::GetTaskDetailBaseRequest;
GetTaskDetailBaseRequest::GetTaskDetailBaseRequest() :
RpcServiceRequest("devops-rdc", "2020-03-03", "GetTaskDetailBase")
{
setMethod(HttpRequest::Method::Post);
}
GetTaskDetailBaseRequest::~GetTaskDetailBaseRequest()
{}
std::string GetTaskDetailBaseRequest::getProjectId()const
{
return projectId_;
}
void GetTaskDetailBaseRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", projectId);
}
std::string GetTaskDetailBaseRequest::getOrgId()const
{
return orgId_;
}
void GetTaskDetailBaseRequest::setOrgId(const std::string& orgId)
{
orgId_ = orgId;
setBodyParameter("OrgId", orgId);
}
std::string GetTaskDetailBaseRequest::getTaskId()const
{
return taskId_;
}
void GetTaskDetailBaseRequest::setTaskId(const std::string& taskId)
{
taskId_ = taskId;
setBodyParameter("TaskId", taskId);
}

View File

@@ -0,0 +1,293 @@
/*
* 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/devops-rdc/model/GetTaskDetailBaseResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Devops_rdc;
using namespace AlibabaCloud::Devops_rdc::Model;
GetTaskDetailBaseResult::GetTaskDetailBaseResult() :
ServiceResult()
{}
GetTaskDetailBaseResult::GetTaskDetailBaseResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetTaskDetailBaseResult::~GetTaskDetailBaseResult()
{}
void GetTaskDetailBaseResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto objectNode = value["Object"];
if(!objectNode["Parent"].isNull())
object_.parent = objectNode["Parent"].asString();
if(!objectNode["DueDate"].isNull())
object_.dueDate = objectNode["DueDate"].asString();
if(!objectNode["Sprint"].isNull())
object_.sprint = objectNode["Sprint"].asString();
if(!objectNode["Rating"].isNull())
object_.rating = std::stoi(objectNode["Rating"].asString());
if(!objectNode["SourceId"].isNull())
object_.sourceId = objectNode["SourceId"].asString();
if(!objectNode["Source"].isNull())
object_.source = objectNode["Source"].asString();
if(!objectNode["StageId"].isNull())
object_.stageId = objectNode["StageId"].asString();
if(!objectNode["ObjectType"].isNull())
object_.objectType = objectNode["ObjectType"].asString();
if(!objectNode["TaskflowstatusId"].isNull())
object_.taskflowstatusId = objectNode["TaskflowstatusId"].asString();
if(!objectNode["LikesCount"].isNull())
object_.likesCount = std::stoi(objectNode["LikesCount"].asString());
if(!objectNode["Accomplished"].isNull())
object_.accomplished = objectNode["Accomplished"].asString();
if(!objectNode["ObjectlinksCount"].isNull())
object_.objectlinksCount = std::stoi(objectNode["ObjectlinksCount"].asString());
if(!objectNode["CreatorId"].isNull())
object_.creatorId = objectNode["CreatorId"].asString();
if(!objectNode["Visible"].isNull())
object_.visible = objectNode["Visible"].asString();
if(!objectNode["StoryPoint"].isNull())
object_.storyPoint = objectNode["StoryPoint"].asString();
if(!objectNode["Created"].isNull())
object_.created = objectNode["Created"].asString();
if(!objectNode["Priority"].isNull())
object_.priority = std::stoi(objectNode["Priority"].asString());
if(!objectNode["Recurrence"].isNull())
object_.recurrence = objectNode["Recurrence"].asString();
if(!objectNode["UntilDate"].isNull())
object_.untilDate = objectNode["UntilDate"].asString();
if(!objectNode["Id"].isNull())
object_.id = objectNode["Id"].asString();
if(!objectNode["Updated"].isNull())
object_.updated = objectNode["Updated"].asString();
if(!objectNode["StartDate"].isNull())
object_.startDate = objectNode["StartDate"].asString();
if(!objectNode["UniqueId"].isNull())
object_.uniqueId = std::stoi(objectNode["UniqueId"].asString());
if(!objectNode["IsFavorite"].isNull())
object_.isFavorite = objectNode["IsFavorite"].asString() == "true";
if(!objectNode["Note"].isNull())
object_.note = objectNode["Note"].asString();
if(!objectNode["IsArchived"].isNull())
object_.isArchived = objectNode["IsArchived"].asString() == "true";
if(!objectNode["Content"].isNull())
object_.content = objectNode["Content"].asString();
if(!objectNode["SourceDate"].isNull())
object_.sourceDate = objectNode["SourceDate"].asString();
if(!objectNode["AttachmentsCount"].isNull())
object_.attachmentsCount = std::stoi(objectNode["AttachmentsCount"].asString());
if(!objectNode["ScenariofieldconfigId"].isNull())
object_.scenariofieldconfigId = objectNode["ScenariofieldconfigId"].asString();
if(!objectNode["IsTopInProject"].isNull())
object_.isTopInProject = objectNode["IsTopInProject"].asString() == "true";
if(!objectNode["ExecutorId"].isNull())
object_.executorId = objectNode["ExecutorId"].asString();
if(!objectNode["OrganizationId"].isNull())
object_.organizationId = objectNode["OrganizationId"].asString();
if(!objectNode["IsDone"].isNull())
object_.isDone = objectNode["IsDone"].asString() == "true";
if(!objectNode["TaskId"].isNull())
object_.taskId = objectNode["TaskId"].asString();
if(!objectNode["CommentsCount"].isNull())
object_.commentsCount = std::stoi(objectNode["CommentsCount"].asString());
if(!objectNode["Organization"].isNull())
object_.organization = objectNode["Organization"].asString();
if(!objectNode["Progress"].isNull())
object_.progress = std::stoi(objectNode["Progress"].asString());
if(!objectNode["SprintId"].isNull())
object_.sprintId = objectNode["SprintId"].asString();
if(!objectNode["ProjectId"].isNull())
object_.projectId = objectNode["ProjectId"].asString();
if(!objectNode["ShareStatus"].isNull())
object_.shareStatus = std::stoi(objectNode["ShareStatus"].asString());
auto allCustomfieldsNode = objectNode["Customfields"]["Customfield"];
for (auto objectNodeCustomfieldsCustomfield : allCustomfieldsNode)
{
Object::Customfield customfieldObject;
if(!objectNodeCustomfieldsCustomfield["CustomfieldId"].isNull())
customfieldObject.customfieldId = objectNodeCustomfieldsCustomfield["CustomfieldId"].asString();
if(!objectNodeCustomfieldsCustomfield["Type"].isNull())
customfieldObject.type = objectNodeCustomfieldsCustomfield["Type"].asString();
auto allValueNode = objectNodeCustomfieldsCustomfield["Value"]["ValueInfo"];
for (auto objectNodeCustomfieldsCustomfieldValueValueInfo : allValueNode)
{
Object::Customfield::ValueInfo valueObject;
if(!objectNodeCustomfieldsCustomfieldValueValueInfo["Id"].isNull())
valueObject.id = objectNodeCustomfieldsCustomfieldValueValueInfo["Id"].asString();
if(!objectNodeCustomfieldsCustomfieldValueValueInfo["Title"].isNull())
valueObject.title = objectNodeCustomfieldsCustomfieldValueValueInfo["Title"].asString();
customfieldObject.value.push_back(valueObject);
}
auto allValues = value["Values"]["Value"];
for (auto value : allValues)
customfieldObject.values.push_back(value.asString());
object_.customfields.push_back(customfieldObject);
}
auto allSubtasksNode = objectNode["Subtasks"]["Subtask"];
for (auto objectNodeSubtasksSubtask : allSubtasksNode)
{
Object::Subtask subtaskObject;
if(!objectNodeSubtasksSubtask["Id"].isNull())
subtaskObject.id = objectNodeSubtasksSubtask["Id"].asString();
if(!objectNodeSubtasksSubtask["Content"].isNull())
subtaskObject.content = objectNodeSubtasksSubtask["Content"].asString();
object_.subtasks.push_back(subtaskObject);
}
auto allInvolversNode = objectNode["Involvers"]["Involver"];
for (auto objectNodeInvolversInvolver : allInvolversNode)
{
Object::Involver involverObject;
if(!objectNodeInvolversInvolver["Name"].isNull())
involverObject.name = objectNodeInvolversInvolver["Name"].asString();
if(!objectNodeInvolversInvolver["Id"].isNull())
involverObject.id = objectNodeInvolversInvolver["Id"].asString();
object_.involvers.push_back(involverObject);
}
auto scenariofieldconfigNode = objectNode["Scenariofieldconfig"];
if(!scenariofieldconfigNode["Name"].isNull())
object_.scenariofieldconfig.name = scenariofieldconfigNode["Name"].asString();
if(!scenariofieldconfigNode["Icon"].isNull())
object_.scenariofieldconfig.icon = scenariofieldconfigNode["Icon"].asString();
if(!scenariofieldconfigNode["ProTemplateConfigType"].isNull())
object_.scenariofieldconfig.proTemplateConfigType = scenariofieldconfigNode["ProTemplateConfigType"].asString();
if(!scenariofieldconfigNode["Id"].isNull())
object_.scenariofieldconfig.id = scenariofieldconfigNode["Id"].asString();
auto executorNode = objectNode["Executor"];
if(!executorNode["AvatarUrl"].isNull())
object_.executor.avatarUrl = executorNode["AvatarUrl"].asString();
if(!executorNode["Name"].isNull())
object_.executor.name = executorNode["Name"].asString();
if(!executorNode["Id"].isNull())
object_.executor.id = executorNode["Id"].asString();
auto tasklistNode = objectNode["Tasklist"];
if(!tasklistNode["Id"].isNull())
object_.tasklist.id = tasklistNode["Id"].asString();
if(!tasklistNode["Title"].isNull())
object_.tasklist.title = tasklistNode["Title"].asString();
auto taskflowstatusNode = objectNode["Taskflowstatus"];
if(!taskflowstatusNode["Kind"].isNull())
object_.taskflowstatus.kind = taskflowstatusNode["Kind"].asString();
if(!taskflowstatusNode["TaskflowId"].isNull())
object_.taskflowstatus.taskflowId = taskflowstatusNode["TaskflowId"].asString();
if(!taskflowstatusNode["Name"].isNull())
object_.taskflowstatus.name = taskflowstatusNode["Name"].asString();
if(!taskflowstatusNode["Id"].isNull())
object_.taskflowstatus.id = taskflowstatusNode["Id"].asString();
auto creatorNode = objectNode["Creator"];
if(!creatorNode["Name"].isNull())
object_.creator.name = creatorNode["Name"].asString();
if(!creatorNode["Id"].isNull())
object_.creator.id = creatorNode["Id"].asString();
auto reminderNode = objectNode["Reminder"];
if(!reminderNode["Date"].isNull())
object_.reminder.date = reminderNode["Date"].asString();
if(!reminderNode["Method"].isNull())
object_.reminder.method = reminderNode["Method"].asString();
if(!reminderNode["CreatorId"].isNull())
object_.reminder.creatorId = reminderNode["CreatorId"].asString();
if(!reminderNode["Type"].isNull())
object_.reminder.type = reminderNode["Type"].asString();
auto allMemberRoles = reminderNode["MemberRoles"]["MemberRole"];
for (auto value : allMemberRoles)
object_.reminder.memberRoles.push_back(value.asString());
auto allMembers = reminderNode["Members"]["Member"];
for (auto value : allMembers)
object_.reminder.members.push_back(value.asString());
auto allRules = reminderNode["Rules"]["Rule"];
for (auto value : allRules)
object_.reminder.rules.push_back(value.asString());
auto subtaskCountNode = objectNode["SubtaskCount"];
if(!subtaskCountNode["Total"].isNull())
object_.subtaskCount.total = std::stoi(subtaskCountNode["Total"].asString());
if(!subtaskCountNode["Done"].isNull())
object_.subtaskCount.done = std::stoi(subtaskCountNode["Done"].asString());
auto workTimeNode = objectNode["WorkTime"];
if(!workTimeNode["UsedTime"].isNull())
object_.workTime.usedTime = std::stoi(workTimeNode["UsedTime"].asString());
if(!workTimeNode["Unit"].isNull())
object_.workTime.unit = workTimeNode["Unit"].asString();
if(!workTimeNode["TotalTime"].isNull())
object_.workTime.totalTime = std::stoi(workTimeNode["TotalTime"].asString());
auto badgesNode = objectNode["Badges"];
if(!badgesNode["LikesCount"].isNull())
object_.badges.likesCount = std::stoi(badgesNode["LikesCount"].asString());
if(!badgesNode["AttachmentsCount"].isNull())
object_.badges.attachmentsCount = std::stoi(badgesNode["AttachmentsCount"].asString());
if(!badgesNode["CommentsCount"].isNull())
object_.badges.commentsCount = std::stoi(badgesNode["CommentsCount"].asString());
if(!badgesNode["ObjectlinksCount"].isNull())
object_.badges.objectlinksCount = std::stoi(badgesNode["ObjectlinksCount"].asString());
auto stageNode = objectNode["Stage"];
if(!stageNode["Name"].isNull())
object_.stage.name = stageNode["Name"].asString();
if(!stageNode["Id"].isNull())
object_.stage.id = stageNode["Id"].asString();
auto allDivisions = objectNode["Divisions"]["Division"];
for (auto value : allDivisions)
object_.divisions.push_back(value.asString());
auto allAncestors = objectNode["Ancestors"]["Ancestor"];
for (auto value : allAncestors)
object_.ancestors.push_back(value.asString());
auto allLabels = objectNode["Labels"]["Label"];
for (auto value : allLabels)
object_.labels.push_back(value.asString());
auto allTagIds = objectNode["TagIds"]["TagId"];
for (auto value : allTagIds)
object_.tagIds.push_back(value.asString());
auto allAncestorIds = objectNode["AncestorIds"]["AncestorId"];
for (auto value : allAncestorIds)
object_.ancestorIds.push_back(value.asString());
auto allInvolveMembers = objectNode["InvolveMembers"]["InvolveMember"];
for (auto value : allInvolveMembers)
object_.involveMembers.push_back(value.asString());
if(!value["Successful"].isNull())
successful_ = value["Successful"].asString() == "true";
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["ErrorMsg"].isNull())
errorMsg_ = value["ErrorMsg"].asString();
}
std::string GetTaskDetailBaseResult::getErrorMsg()const
{
return errorMsg_;
}
GetTaskDetailBaseResult::Object GetTaskDetailBaseResult::getObject()const
{
return object_;
}
std::string GetTaskDetailBaseResult::getErrorCode()const
{
return errorCode_;
}
bool GetTaskDetailBaseResult::getSuccessful()const
{
return successful_;
}

View File

@@ -0,0 +1,249 @@
/*
* 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/devops-rdc/model/GetTaskListFilterRequest.h>
using AlibabaCloud::Devops_rdc::Model::GetTaskListFilterRequest;
GetTaskListFilterRequest::GetTaskListFilterRequest() :
RpcServiceRequest("devops-rdc", "2020-03-03", "GetTaskListFilter")
{
setMethod(HttpRequest::Method::Post);
}
GetTaskListFilterRequest::~GetTaskListFilterRequest()
{}
std::string GetTaskListFilterRequest::getInvolveMembers()const
{
return involveMembers_;
}
void GetTaskListFilterRequest::setInvolveMembers(const std::string& involveMembers)
{
involveMembers_ = involveMembers;
setBodyParameter("InvolveMembers", involveMembers);
}
std::string GetTaskListFilterRequest::getExecutorId()const
{
return executorId_;
}
void GetTaskListFilterRequest::setExecutorId(const std::string& executorId)
{
executorId_ = executorId;
setBodyParameter("ExecutorId", executorId);
}
std::string GetTaskListFilterRequest::getOrderCondition()const
{
return orderCondition_;
}
void GetTaskListFilterRequest::setOrderCondition(const std::string& orderCondition)
{
orderCondition_ = orderCondition;
setBodyParameter("OrderCondition", orderCondition);
}
std::string GetTaskListFilterRequest::getSprintId()const
{
return sprintId_;
}
void GetTaskListFilterRequest::setSprintId(const std::string& sprintId)
{
sprintId_ = sprintId;
setBodyParameter("SprintId", sprintId);
}
std::string GetTaskListFilterRequest::getExtra()const
{
return extra_;
}
void GetTaskListFilterRequest::setExtra(const std::string& extra)
{
extra_ = extra;
setBodyParameter("Extra", extra);
}
int GetTaskListFilterRequest::getPageSize()const
{
return pageSize_;
}
void GetTaskListFilterRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setBodyParameter("PageSize", std::to_string(pageSize));
}
std::string GetTaskListFilterRequest::getScenarioFieldConfigId()const
{
return scenarioFieldConfigId_;
}
void GetTaskListFilterRequest::setScenarioFieldConfigId(const std::string& scenarioFieldConfigId)
{
scenarioFieldConfigId_ = scenarioFieldConfigId;
setBodyParameter("ScenarioFieldConfigId", scenarioFieldConfigId);
}
bool GetTaskListFilterRequest::getIsDone()const
{
return isDone_;
}
void GetTaskListFilterRequest::setIsDone(bool isDone)
{
isDone_ = isDone;
setBodyParameter("IsDone", isDone ? "true" : "false");
}
std::string GetTaskListFilterRequest::getObjectType()const
{
return objectType_;
}
void GetTaskListFilterRequest::setObjectType(const std::string& objectType)
{
objectType_ = objectType;
setBodyParameter("ObjectType", objectType);
}
std::string GetTaskListFilterRequest::getProjectId()const
{
return projectId_;
}
void GetTaskListFilterRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", projectId);
}
std::string GetTaskListFilterRequest::getPageToken()const
{
return pageToken_;
}
void GetTaskListFilterRequest::setPageToken(const std::string& pageToken)
{
pageToken_ = pageToken;
setBodyParameter("PageToken", pageToken);
}
std::string GetTaskListFilterRequest::getOrder()const
{
return order_;
}
void GetTaskListFilterRequest::setOrder(const std::string& order)
{
order_ = order;
setBodyParameter("Order", order);
}
std::string GetTaskListFilterRequest::getTagId()const
{
return tagId_;
}
void GetTaskListFilterRequest::setTagId(const std::string& tagId)
{
tagId_ = tagId;
setBodyParameter("TagId", tagId);
}
std::string GetTaskListFilterRequest::getTaskFlowStatusId()const
{
return taskFlowStatusId_;
}
void GetTaskListFilterRequest::setTaskFlowStatusId(const std::string& taskFlowStatusId)
{
taskFlowStatusId_ = taskFlowStatusId;
setBodyParameter("TaskFlowStatusId", taskFlowStatusId);
}
std::string GetTaskListFilterRequest::getDueDateStart()const
{
return dueDateStart_;
}
void GetTaskListFilterRequest::setDueDateStart(const std::string& dueDateStart)
{
dueDateStart_ = dueDateStart;
setBodyParameter("DueDateStart", dueDateStart);
}
std::string GetTaskListFilterRequest::getCreatorId()const
{
return creatorId_;
}
void GetTaskListFilterRequest::setCreatorId(const std::string& creatorId)
{
creatorId_ = creatorId;
setBodyParameter("CreatorId", creatorId);
}
std::string GetTaskListFilterRequest::getPriority()const
{
return priority_;
}
void GetTaskListFilterRequest::setPriority(const std::string& priority)
{
priority_ = priority;
setBodyParameter("Priority", priority);
}
std::string GetTaskListFilterRequest::getDueDateEnd()const
{
return dueDateEnd_;
}
void GetTaskListFilterRequest::setDueDateEnd(const std::string& dueDateEnd)
{
dueDateEnd_ = dueDateEnd;
setBodyParameter("DueDateEnd", dueDateEnd);
}
std::string GetTaskListFilterRequest::getOrgId()const
{
return orgId_;
}
void GetTaskListFilterRequest::setOrgId(const std::string& orgId)
{
orgId_ = orgId;
setBodyParameter("OrgId", orgId);
}
std::string GetTaskListFilterRequest::getName()const
{
return name_;
}
void GetTaskListFilterRequest::setName(const std::string& name)
{
name_ = name;
setBodyParameter("Name", name);
}

View File

@@ -0,0 +1,266 @@
/*
* 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/devops-rdc/model/GetTaskListFilterResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Devops_rdc;
using namespace AlibabaCloud::Devops_rdc::Model;
GetTaskListFilterResult::GetTaskListFilterResult() :
ServiceResult()
{}
GetTaskListFilterResult::GetTaskListFilterResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetTaskListFilterResult::~GetTaskListFilterResult()
{}
void GetTaskListFilterResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto objectNode = value["Object"];
if(!objectNode["NextPageToken"].isNull())
object_.nextPageToken = objectNode["NextPageToken"].asString();
if(!objectNode["TotalSize"].isNull())
object_.totalSize = std::stoi(objectNode["TotalSize"].asString());
auto allResultNode = objectNode["Result"]["Task"];
for (auto objectNodeResultTask : allResultNode)
{
Object::Task taskObject;
if(!objectNodeResultTask["Id"].isNull())
taskObject.id = objectNodeResultTask["Id"].asString();
if(!objectNodeResultTask["CreatorId"].isNull())
taskObject.creatorId = objectNodeResultTask["CreatorId"].asString();
if(!objectNodeResultTask["ExecutorId"].isNull())
taskObject.executorId = objectNodeResultTask["ExecutorId"].asString();
if(!objectNodeResultTask["ProjectId"].isNull())
taskObject.projectId = objectNodeResultTask["ProjectId"].asString();
if(!objectNodeResultTask["TaskListId"].isNull())
taskObject.taskListId = objectNodeResultTask["TaskListId"].asString();
if(!objectNodeResultTask["OrganizationId"].isNull())
taskObject.organizationId = objectNodeResultTask["OrganizationId"].asString();
if(!objectNodeResultTask["StageId"].isNull())
taskObject.stageId = objectNodeResultTask["StageId"].asString();
if(!objectNodeResultTask["Visible"].isNull())
taskObject.visible = objectNodeResultTask["Visible"].asString();
if(!objectNodeResultTask["Updated"].isNull())
taskObject.updated = objectNodeResultTask["Updated"].asString();
if(!objectNodeResultTask["Created"].isNull())
taskObject.created = objectNodeResultTask["Created"].asString();
if(!objectNodeResultTask["IsArchived"].isNull())
taskObject.isArchived = objectNodeResultTask["IsArchived"].asString() == "true";
if(!objectNodeResultTask["IsDone"].isNull())
taskObject.isDone = objectNodeResultTask["IsDone"].asString() == "true";
if(!objectNodeResultTask["IsTopInProject"].isNull())
taskObject.isTopInProject = objectNodeResultTask["IsTopInProject"].asString() == "true";
if(!objectNodeResultTask["Priority"].isNull())
taskObject.priority = std::stoi(objectNodeResultTask["Priority"].asString());
if(!objectNodeResultTask["Pos"].isNull())
taskObject.pos = std::stoi(objectNodeResultTask["Pos"].asString());
if(!objectNodeResultTask["StartDate"].isNull())
taskObject.startDate = objectNodeResultTask["StartDate"].asString();
if(!objectNodeResultTask["DueDate"].isNull())
taskObject.dueDate = objectNodeResultTask["DueDate"].asString();
if(!objectNodeResultTask["Accomplished"].isNull())
taskObject.accomplished = objectNodeResultTask["Accomplished"].asString();
if(!objectNodeResultTask["Note"].isNull())
taskObject.note = objectNodeResultTask["Note"].asString();
if(!objectNodeResultTask["Content"].isNull())
taskObject.content = objectNodeResultTask["Content"].asString();
if(!objectNodeResultTask["Recurrence"].isNull())
taskObject.recurrence = objectNodeResultTask["Recurrence"].asString();
if(!objectNodeResultTask["SourceId"].isNull())
taskObject.sourceId = objectNodeResultTask["SourceId"].asString();
if(!objectNodeResultTask["SourceDate"].isNull())
taskObject.sourceDate = objectNodeResultTask["SourceDate"].asString();
if(!objectNodeResultTask["CommentsCount"].isNull())
taskObject.commentsCount = std::stoi(objectNodeResultTask["CommentsCount"].asString());
if(!objectNodeResultTask["AttachmentsCount"].isNull())
taskObject.attachmentsCount = std::stoi(objectNodeResultTask["AttachmentsCount"].asString());
if(!objectNodeResultTask["LikesCount"].isNull())
taskObject.likesCount = std::stoi(objectNodeResultTask["LikesCount"].asString());
if(!objectNodeResultTask["ObjectlinksCount"].isNull())
taskObject.objectlinksCount = std::stoi(objectNodeResultTask["ObjectlinksCount"].asString());
if(!objectNodeResultTask["UniqueId"].isNull())
taskObject.uniqueId = std::stoi(objectNodeResultTask["UniqueId"].asString());
if(!objectNodeResultTask["StoryPoint"].isNull())
taskObject.storyPoint = objectNodeResultTask["StoryPoint"].asString();
if(!objectNodeResultTask["Progress"].isNull())
taskObject.progress = std::stoi(objectNodeResultTask["Progress"].asString());
if(!objectNodeResultTask["Rating"].isNull())
taskObject.rating = std::stoi(objectNodeResultTask["Rating"].asString());
if(!objectNodeResultTask["IsFavorite"].isNull())
taskObject.isFavorite = objectNodeResultTask["IsFavorite"].asString() == "true";
if(!objectNodeResultTask["ScenariofFeldConfigId"].isNull())
taskObject.scenariofFeldConfigId = objectNodeResultTask["ScenariofFeldConfigId"].asString();
if(!objectNodeResultTask["ShareStatus"].isNull())
taskObject.shareStatus = std::stoi(objectNodeResultTask["ShareStatus"].asString());
if(!objectNodeResultTask["SprintId"].isNull())
taskObject.sprintId = objectNodeResultTask["SprintId"].asString();
if(!objectNodeResultTask["TaskFlowStatusId"].isNull())
taskObject.taskFlowStatusId = objectNodeResultTask["TaskFlowStatusId"].asString();
if(!objectNodeResultTask["ObjectType"].isNull())
taskObject.objectType = objectNodeResultTask["ObjectType"].asString();
if(!objectNodeResultTask["Source"].isNull())
taskObject.source = objectNodeResultTask["Source"].asString();
if(!objectNodeResultTask["UntilDate"].isNull())
taskObject.untilDate = objectNodeResultTask["UntilDate"].asString();
if(!objectNodeResultTask["TaskId"].isNull())
taskObject.taskId = objectNodeResultTask["TaskId"].asString();
if(!objectNodeResultTask["Sprint"].isNull())
taskObject.sprint = objectNodeResultTask["Sprint"].asString();
if(!objectNodeResultTask["Parent"].isNull())
taskObject.parent = objectNodeResultTask["Parent"].asString();
auto allCustomfieldsNode = objectNodeResultTask["Customfields"]["Customfield"];
for (auto objectNodeResultTaskCustomfieldsCustomfield : allCustomfieldsNode)
{
Object::Task::Customfield customfieldsObject;
if(!objectNodeResultTaskCustomfieldsCustomfield["CustomfieldId"].isNull())
customfieldsObject.customfieldId = objectNodeResultTaskCustomfieldsCustomfield["CustomfieldId"].asString();
if(!objectNodeResultTaskCustomfieldsCustomfield["Type"].isNull())
customfieldsObject.type = objectNodeResultTaskCustomfieldsCustomfield["Type"].asString();
if(!objectNodeResultTaskCustomfieldsCustomfield["Values"].isNull())
customfieldsObject.values = objectNodeResultTaskCustomfieldsCustomfield["Values"].asString();
auto allValueNode = objectNodeResultTaskCustomfieldsCustomfield["Value"]["ValueItem"];
for (auto objectNodeResultTaskCustomfieldsCustomfieldValueValueItem : allValueNode)
{
Object::Task::Customfield::ValueItem valueObject;
if(!objectNodeResultTaskCustomfieldsCustomfieldValueValueItem["Id"].isNull())
valueObject.id = objectNodeResultTaskCustomfieldsCustomfieldValueValueItem["Id"].asString();
if(!objectNodeResultTaskCustomfieldsCustomfieldValueValueItem["Title"].isNull())
valueObject.title = objectNodeResultTaskCustomfieldsCustomfieldValueValueItem["Title"].asString();
customfieldsObject.value.push_back(valueObject);
}
taskObject.customfields.push_back(customfieldsObject);
}
auto workTimeNode = value["WorkTime"];
if(!workTimeNode["TotalTime"].isNull())
taskObject.workTime.totalTime = std::stoi(workTimeNode["TotalTime"].asString());
if(!workTimeNode["UsedTime"].isNull())
taskObject.workTime.usedTime = std::stoi(workTimeNode["UsedTime"].asString());
if(!workTimeNode["Unit"].isNull())
taskObject.workTime.unit = workTimeNode["Unit"].asString();
auto badgesNode = value["Badges"];
if(!badgesNode["ObjectlinksCount"].isNull())
taskObject.badges.objectlinksCount = std::stoi(badgesNode["ObjectlinksCount"].asString());
if(!badgesNode["CommentsCount"].isNull())
taskObject.badges.commentsCount = std::stoi(badgesNode["CommentsCount"].asString());
if(!badgesNode["AttachmentsCount"].isNull())
taskObject.badges.attachmentsCount = std::stoi(badgesNode["AttachmentsCount"].asString());
if(!badgesNode["LikesCount"].isNull())
taskObject.badges.likesCount = std::stoi(badgesNode["LikesCount"].asString());
auto subtaskCountNode = value["SubtaskCount"];
if(!subtaskCountNode["Total"].isNull())
taskObject.subtaskCount.total = std::stoi(subtaskCountNode["Total"].asString());
if(!subtaskCountNode["Done"].isNull())
taskObject.subtaskCount.done = std::stoi(subtaskCountNode["Done"].asString());
auto reminderNode = value["Reminder"];
if(!reminderNode["Type"].isNull())
taskObject.reminder.type = reminderNode["Type"].asString();
if(!reminderNode["Date"].isNull())
taskObject.reminder.date = reminderNode["Date"].asString();
if(!reminderNode["CreatorId"].isNull())
taskObject.reminder.creatorId = reminderNode["CreatorId"].asString();
auto allMembers = reminderNode["Members"]["Member"];
for (auto value : allMembers)
taskObject.reminder.members.push_back(value.asString());
auto allRules = reminderNode["Rules"]["Rule"];
for (auto value : allRules)
taskObject.reminder.rules.push_back(value.asString());
auto creatorNode = value["Creator"];
if(!creatorNode["Id"].isNull())
taskObject.creator.id = creatorNode["Id"].asString();
if(!creatorNode["Name"].isNull())
taskObject.creator.name = creatorNode["Name"].asString();
if(!creatorNode["AvatarUrl"].isNull())
taskObject.creator.avatarUrl = creatorNode["AvatarUrl"].asString();
auto stageNode = value["Stage"];
if(!stageNode["Id"].isNull())
taskObject.stage.id = stageNode["Id"].asString();
if(!stageNode["Name"].isNull())
taskObject.stage.name = stageNode["Name"].asString();
auto executorNode = value["Executor"];
if(!executorNode["Id"].isNull())
taskObject.executor.id = executorNode["Id"].asString();
if(!executorNode["Name"].isNull())
taskObject.executor.name = executorNode["Name"].asString();
if(!executorNode["AvatarUrl"].isNull())
taskObject.executor.avatarUrl = executorNode["AvatarUrl"].asString();
auto taskFlowStatusNode = value["TaskFlowStatus"];
if(!taskFlowStatusNode["Id"].isNull())
taskObject.taskFlowStatus.id = taskFlowStatusNode["Id"].asString();
if(!taskFlowStatusNode["Name"].isNull())
taskObject.taskFlowStatus.name = taskFlowStatusNode["Name"].asString();
if(!taskFlowStatusNode["Kind"].isNull())
taskObject.taskFlowStatus.kind = taskFlowStatusNode["Kind"].asString();
if(!taskFlowStatusNode["Pos"].isNull())
taskObject.taskFlowStatus.pos = std::stoi(taskFlowStatusNode["Pos"].asString());
if(!taskFlowStatusNode["TaskFlowId"].isNull())
taskObject.taskFlowStatus.taskFlowId = taskFlowStatusNode["TaskFlowId"].asString();
auto allAncestorIds = value["AncestorIds"]["AncestorId"];
for (auto value : allAncestorIds)
taskObject.ancestorIds.push_back(value.asString());
auto allLabels = value["Labels"]["Label"];
for (auto value : allLabels)
taskObject.labels.push_back(value.asString());
auto allTagIds = value["TagIds"]["TagId"];
for (auto value : allTagIds)
taskObject.tagIds.push_back(value.asString());
auto allInvolveMembers = value["InvolveMembers"]["InvolveMember"];
for (auto value : allInvolveMembers)
taskObject.involveMembers.push_back(value.asString());
auto allDivisions = value["Divisions"]["Division"];
for (auto value : allDivisions)
taskObject.divisions.push_back(value.asString());
object_.result.push_back(taskObject);
}
if(!value["ErrorMsg"].isNull())
errorMsg_ = value["ErrorMsg"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["Successful"].isNull())
successful_ = value["Successful"].asString();
}
std::string GetTaskListFilterResult::getErrorMsg()const
{
return errorMsg_;
}
GetTaskListFilterResult::Object GetTaskListFilterResult::getObject()const
{
return object_;
}
std::string GetTaskListFilterResult::getErrorCode()const
{
return errorCode_;
}
std::string GetTaskListFilterResult::getSuccessful()const
{
return successful_;
}

View 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/devops-rdc/model/GetUserNameRequest.h>
using AlibabaCloud::Devops_rdc::Model::GetUserNameRequest;
GetUserNameRequest::GetUserNameRequest() :
RpcServiceRequest("devops-rdc", "2020-03-03", "GetUserName")
{
setMethod(HttpRequest::Method::Post);
}
GetUserNameRequest::~GetUserNameRequest()
{}
std::string GetUserNameRequest::getUserId()const
{
return userId_;
}
void GetUserNameRequest::setUserId(const std::string& userId)
{
userId_ = userId;
setBodyParameter("UserId", userId);
}
std::string GetUserNameRequest::getOrgId()const
{
return orgId_;
}
void GetUserNameRequest::setOrgId(const std::string& orgId)
{
orgId_ = orgId;
setBodyParameter("OrgId", orgId);
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/devops-rdc/model/GetUserNameResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Devops_rdc;
using namespace AlibabaCloud::Devops_rdc::Model;
GetUserNameResult::GetUserNameResult() :
ServiceResult()
{}
GetUserNameResult::GetUserNameResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetUserNameResult::~GetUserNameResult()
{}
void GetUserNameResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Successful"].isNull())
successful_ = value["Successful"].asString() == "true";
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["ErrorMsg"].isNull())
errorMsg_ = value["ErrorMsg"].asString();
if(!value["Object"].isNull())
object_ = value["Object"].asString();
}
std::string GetUserNameResult::getErrorMsg()const
{
return errorMsg_;
}
std::string GetUserNameResult::getObject()const
{
return object_;
}
std::string GetUserNameResult::getErrorCode()const
{
return errorCode_;
}
bool GetUserNameResult::getSuccessful()const
{
return successful_;
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/devops-rdc/model/ListCommonGroupRequest.h>
using AlibabaCloud::Devops_rdc::Model::ListCommonGroupRequest;
ListCommonGroupRequest::ListCommonGroupRequest() :
RpcServiceRequest("devops-rdc", "2020-03-03", "ListCommonGroup")
{
setMethod(HttpRequest::Method::Post);
}
ListCommonGroupRequest::~ListCommonGroupRequest()
{}
bool ListCommonGroupRequest::getAll()const
{
return all_;
}
void ListCommonGroupRequest::setAll(bool all)
{
all_ = all;
setBodyParameter("All", all ? "true" : "false");
}
std::string ListCommonGroupRequest::getSmartGroupId()const
{
return smartGroupId_;
}
void ListCommonGroupRequest::setSmartGroupId(const std::string& smartGroupId)
{
smartGroupId_ = smartGroupId;
setBodyParameter("SmartGroupId", smartGroupId);
}
std::string ListCommonGroupRequest::getProjectId()const
{
return projectId_;
}
void ListCommonGroupRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", projectId);
}
std::string ListCommonGroupRequest::getOrgId()const
{
return orgId_;
}
void ListCommonGroupRequest::setOrgId(const std::string& orgId)
{
orgId_ = orgId;
setBodyParameter("OrgId", orgId);
}

View File

@@ -0,0 +1,94 @@
/*
* 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/devops-rdc/model/ListCommonGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Devops_rdc;
using namespace AlibabaCloud::Devops_rdc::Model;
ListCommonGroupResult::ListCommonGroupResult() :
ServiceResult()
{}
ListCommonGroupResult::ListCommonGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListCommonGroupResult::~ListCommonGroupResult()
{}
void ListCommonGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allObjectNode = value["Object"]["CommonGroup"];
for (auto valueObjectCommonGroup : allObjectNode)
{
CommonGroup objectObject;
if(!valueObjectCommonGroup["Pinyin"].isNull())
objectObject.pinyin = valueObjectCommonGroup["Pinyin"].asString();
if(!valueObjectCommonGroup["IsRoot"].isNull())
objectObject.isRoot = valueObjectCommonGroup["IsRoot"].asString() == "true";
if(!valueObjectCommonGroup["Pos"].isNull())
objectObject.pos = std::stoi(valueObjectCommonGroup["Pos"].asString());
if(!valueObjectCommonGroup["ResourceCount"].isNull())
objectObject.resourceCount = std::stoi(valueObjectCommonGroup["ResourceCount"].asString());
if(!valueObjectCommonGroup["Name"].isNull())
objectObject.name = valueObjectCommonGroup["Name"].asString();
if(!valueObjectCommonGroup["CreatorId"].isNull())
objectObject.creatorId = valueObjectCommonGroup["CreatorId"].asString();
if(!valueObjectCommonGroup["SmartGroupId"].isNull())
objectObject.smartGroupId = valueObjectCommonGroup["SmartGroupId"].asString();
if(!valueObjectCommonGroup["ProjectId"].isNull())
objectObject.projectId = valueObjectCommonGroup["ProjectId"].asString();
if(!valueObjectCommonGroup["id"].isNull())
objectObject.id = valueObjectCommonGroup["id"].asString();
object_.push_back(objectObject);
}
if(!value["Successful"].isNull())
successful_ = value["Successful"].asString() == "true";
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["ErrorMsg"].isNull())
errorMsg_ = value["ErrorMsg"].asString();
}
std::string ListCommonGroupResult::getErrorMsg()const
{
return errorMsg_;
}
std::vector<ListCommonGroupResult::CommonGroup> ListCommonGroupResult::getObject()const
{
return object_;
}
std::string ListCommonGroupResult::getErrorCode()const
{
return errorCode_;
}
bool ListCommonGroupResult::getSuccessful()const
{
return successful_;
}

View 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/devops-rdc/model/ListSmartGroupRequest.h>
using AlibabaCloud::Devops_rdc::Model::ListSmartGroupRequest;
ListSmartGroupRequest::ListSmartGroupRequest() :
RpcServiceRequest("devops-rdc", "2020-03-03", "ListSmartGroup")
{
setMethod(HttpRequest::Method::Post);
}
ListSmartGroupRequest::~ListSmartGroupRequest()
{}
std::string ListSmartGroupRequest::getProjectId()const
{
return projectId_;
}
void ListSmartGroupRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", projectId);
}
std::string ListSmartGroupRequest::getOrgId()const
{
return orgId_;
}
void ListSmartGroupRequest::setOrgId(const std::string& orgId)
{
orgId_ = orgId;
setBodyParameter("OrgId", orgId);
}

View File

@@ -0,0 +1,80 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/devops-rdc/model/ListSmartGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Devops_rdc;
using namespace AlibabaCloud::Devops_rdc::Model;
ListSmartGroupResult::ListSmartGroupResult() :
ServiceResult()
{}
ListSmartGroupResult::ListSmartGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListSmartGroupResult::~ListSmartGroupResult()
{}
void ListSmartGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allObjectNode = value["Object"]["SmartGroup"];
for (auto valueObjectSmartGroup : allObjectNode)
{
SmartGroup objectObject;
if(!valueObjectSmartGroup["Id"].isNull())
objectObject.id = valueObjectSmartGroup["Id"].asString();
if(!valueObjectSmartGroup["Type"].isNull())
objectObject.type = valueObjectSmartGroup["Type"].asString();
object_.push_back(objectObject);
}
if(!value["Successful"].isNull())
successful_ = value["Successful"].asString() == "true";
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["ErrorMsg"].isNull())
errorMsg_ = value["ErrorMsg"].asString();
}
std::string ListSmartGroupResult::getErrorMsg()const
{
return errorMsg_;
}
std::vector<ListSmartGroupResult::SmartGroup> ListSmartGroupResult::getObject()const
{
return object_;
}
std::string ListSmartGroupResult::getErrorCode()const
{
return errorCode_;
}
bool ListSmartGroupResult::getSuccessful()const
{
return successful_;
}

View 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/devops-rdc/model/UpdateCommonGroupRequest.h>
using AlibabaCloud::Devops_rdc::Model::UpdateCommonGroupRequest;
UpdateCommonGroupRequest::UpdateCommonGroupRequest() :
RpcServiceRequest("devops-rdc", "2020-03-03", "UpdateCommonGroup")
{
setMethod(HttpRequest::Method::Post);
}
UpdateCommonGroupRequest::~UpdateCommonGroupRequest()
{}
std::string UpdateCommonGroupRequest::getDescription()const
{
return description_;
}
void UpdateCommonGroupRequest::setDescription(const std::string& description)
{
description_ = description;
setBodyParameter("Description", description);
}
std::string UpdateCommonGroupRequest::getCommonGroupId()const
{
return commonGroupId_;
}
void UpdateCommonGroupRequest::setCommonGroupId(const std::string& commonGroupId)
{
commonGroupId_ = commonGroupId;
setBodyParameter("CommonGroupId", commonGroupId);
}
std::string UpdateCommonGroupRequest::getOrgId()const
{
return orgId_;
}
void UpdateCommonGroupRequest::setOrgId(const std::string& orgId)
{
orgId_ = orgId;
setBodyParameter("OrgId", orgId);
}
std::string UpdateCommonGroupRequest::getSmartGroupId()const
{
return smartGroupId_;
}
void UpdateCommonGroupRequest::setSmartGroupId(const std::string& smartGroupId)
{
smartGroupId_ = smartGroupId;
setBodyParameter("SmartGroupId", smartGroupId);
}
std::string UpdateCommonGroupRequest::getName()const
{
return name_;
}
void UpdateCommonGroupRequest::setName(const std::string& name)
{
name_ = name;
setBodyParameter("Name", name);
}
std::string UpdateCommonGroupRequest::getProjectId()const
{
return projectId_;
}
void UpdateCommonGroupRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", projectId);
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/devops-rdc/model/UpdateCommonGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Devops_rdc;
using namespace AlibabaCloud::Devops_rdc::Model;
UpdateCommonGroupResult::UpdateCommonGroupResult() :
ServiceResult()
{}
UpdateCommonGroupResult::UpdateCommonGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateCommonGroupResult::~UpdateCommonGroupResult()
{}
void UpdateCommonGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto objectNode = value["Object"];
if(!objectNode["Id"].isNull())
object_.id = objectNode["Id"].asString();
if(!value["Successful"].isNull())
successful_ = value["Successful"].asString() == "true";
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["ErrorMsg"].isNull())
errorMsg_ = value["ErrorMsg"].asString();
}
std::string UpdateCommonGroupResult::getErrorMsg()const
{
return errorMsg_;
}
UpdateCommonGroupResult::Object UpdateCommonGroupResult::getObject()const
{
return object_;
}
std::string UpdateCommonGroupResult::getErrorCode()const
{
return errorCode_;
}
bool UpdateCommonGroupResult::getSuccessful()const
{
return successful_;
}