Add task api.
This commit is contained in:
@@ -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();
|
||||
|
||||
84
devops-rdc/src/model/CreateCommonGroupRequest.cc
Normal file
84
devops-rdc/src/model/CreateCommonGroupRequest.cc
Normal 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);
|
||||
}
|
||||
|
||||
73
devops-rdc/src/model/CreateCommonGroupResult.cc
Normal file
73
devops-rdc/src/model/CreateCommonGroupResult.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
}
|
||||
|
||||
62
devops-rdc/src/model/DeleteCommonGroupRequest.cc
Normal file
62
devops-rdc/src/model/DeleteCommonGroupRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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);
|
||||
}
|
||||
|
||||
73
devops-rdc/src/model/DeleteCommonGroupResult.cc
Normal file
73
devops-rdc/src/model/DeleteCommonGroupResult.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
}
|
||||
|
||||
73
devops-rdc/src/model/GetProjectOptionRequest.cc
Normal file
73
devops-rdc/src/model/GetProjectOptionRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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);
|
||||
}
|
||||
|
||||
80
devops-rdc/src/model/GetProjectOptionResult.cc
Normal file
80
devops-rdc/src/model/GetProjectOptionResult.cc
Normal 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_;
|
||||
}
|
||||
|
||||
62
devops-rdc/src/model/GetTaskDetailActivityRequest.cc
Normal file
62
devops-rdc/src/model/GetTaskDetailActivityRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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);
|
||||
}
|
||||
|
||||
93
devops-rdc/src/model/GetTaskDetailActivityResult.cc
Normal file
93
devops-rdc/src/model/GetTaskDetailActivityResult.cc
Normal 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_;
|
||||
}
|
||||
|
||||
62
devops-rdc/src/model/GetTaskDetailBaseRequest.cc
Normal file
62
devops-rdc/src/model/GetTaskDetailBaseRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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);
|
||||
}
|
||||
|
||||
293
devops-rdc/src/model/GetTaskDetailBaseResult.cc
Normal file
293
devops-rdc/src/model/GetTaskDetailBaseResult.cc
Normal 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_;
|
||||
}
|
||||
|
||||
249
devops-rdc/src/model/GetTaskListFilterRequest.cc
Normal file
249
devops-rdc/src/model/GetTaskListFilterRequest.cc
Normal 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);
|
||||
}
|
||||
|
||||
266
devops-rdc/src/model/GetTaskListFilterResult.cc
Normal file
266
devops-rdc/src/model/GetTaskListFilterResult.cc
Normal 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_;
|
||||
}
|
||||
|
||||
51
devops-rdc/src/model/GetUserNameRequest.cc
Normal file
51
devops-rdc/src/model/GetUserNameRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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);
|
||||
}
|
||||
|
||||
72
devops-rdc/src/model/GetUserNameResult.cc
Normal file
72
devops-rdc/src/model/GetUserNameResult.cc
Normal 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_;
|
||||
}
|
||||
|
||||
73
devops-rdc/src/model/ListCommonGroupRequest.cc
Normal file
73
devops-rdc/src/model/ListCommonGroupRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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);
|
||||
}
|
||||
|
||||
94
devops-rdc/src/model/ListCommonGroupResult.cc
Normal file
94
devops-rdc/src/model/ListCommonGroupResult.cc
Normal 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_;
|
||||
}
|
||||
|
||||
51
devops-rdc/src/model/ListSmartGroupRequest.cc
Normal file
51
devops-rdc/src/model/ListSmartGroupRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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);
|
||||
}
|
||||
|
||||
80
devops-rdc/src/model/ListSmartGroupResult.cc
Normal file
80
devops-rdc/src/model/ListSmartGroupResult.cc
Normal 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_;
|
||||
}
|
||||
|
||||
95
devops-rdc/src/model/UpdateCommonGroupRequest.cc
Normal file
95
devops-rdc/src/model/UpdateCommonGroupRequest.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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);
|
||||
}
|
||||
|
||||
73
devops-rdc/src/model/UpdateCommonGroupResult.cc
Normal file
73
devops-rdc/src/model/UpdateCommonGroupResult.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user