diff --git a/CHANGELOG b/CHANGELOG index b4ca49284..3523ec932 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2020-08-14 Version: 1.36.581 +- Add project Api. + 2020-08-13 Version: 1.36.580 - Add PipCode and CommodityCode for QueryInstanceBill, QueryBillOverview, QueryBill, QuerySettleBill, QueryAccountBill, QuerySplitItemBill. - Support BillOwnerId filter for QueryInstanceBill, QueryBillOverview, QueryBill, QuerySettleBill, QueryAccountBill, QuerySplitItemBill. diff --git a/VERSION b/VERSION index 5cfced496..a3c027119 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.580 \ No newline at end of file +1.36.581 \ No newline at end of file diff --git a/teambition-aliyun/CMakeLists.txt b/teambition-aliyun/CMakeLists.txt new file mode 100644 index 000000000..b4f70cdc1 --- /dev/null +++ b/teambition-aliyun/CMakeLists.txt @@ -0,0 +1,194 @@ +# +# 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. +# + +set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include) + +set(teambition-aliyun_public_header + include/alibabacloud/teambition-aliyun/Teambition_aliyunClient.h + include/alibabacloud/teambition-aliyun/Teambition_aliyunExport.h ) + +set(teambition-aliyun_public_header_model + include/alibabacloud/teambition-aliyun/model/AddProjectMembersRequest.h + include/alibabacloud/teambition-aliyun/model/AddProjectMembersResult.h + include/alibabacloud/teambition-aliyun/model/ApplySmallMicroRequest.h + include/alibabacloud/teambition-aliyun/model/ApplySmallMicroResult.h + include/alibabacloud/teambition-aliyun/model/BactchInsertMembersRequest.h + include/alibabacloud/teambition-aliyun/model/BactchInsertMembersResult.h + include/alibabacloud/teambition-aliyun/model/CheckAliyunUserExistsRequest.h + include/alibabacloud/teambition-aliyun/model/CheckAliyunUserExistsResult.h + include/alibabacloud/teambition-aliyun/model/CreateDevopsOrgRequest.h + include/alibabacloud/teambition-aliyun/model/CreateDevopsOrgResult.h + include/alibabacloud/teambition-aliyun/model/CreateProjectRequest.h + include/alibabacloud/teambition-aliyun/model/CreateProjectResult.h + include/alibabacloud/teambition-aliyun/model/CreateProjectSprintRequest.h + include/alibabacloud/teambition-aliyun/model/CreateProjectSprintResult.h + include/alibabacloud/teambition-aliyun/model/CreateProjectTaskRequest.h + include/alibabacloud/teambition-aliyun/model/CreateProjectTaskResult.h + include/alibabacloud/teambition-aliyun/model/DeleteMembersForOrgRequest.h + include/alibabacloud/teambition-aliyun/model/DeleteMembersForOrgResult.h + include/alibabacloud/teambition-aliyun/model/DeleteProjectRequest.h + include/alibabacloud/teambition-aliyun/model/DeleteProjectResult.h + include/alibabacloud/teambition-aliyun/model/DeleteProjectMembersRequest.h + include/alibabacloud/teambition-aliyun/model/DeleteProjectMembersResult.h + include/alibabacloud/teambition-aliyun/model/DeleteProjectSprintRequest.h + include/alibabacloud/teambition-aliyun/model/DeleteProjectSprintResult.h + include/alibabacloud/teambition-aliyun/model/DeleteProjectTaskRequest.h + include/alibabacloud/teambition-aliyun/model/DeleteProjectTaskResult.h + include/alibabacloud/teambition-aliyun/model/GetOrganizationMembersRequest.h + include/alibabacloud/teambition-aliyun/model/GetOrganizationMembersResult.h + include/alibabacloud/teambition-aliyun/model/GetProjectInfoRequest.h + include/alibabacloud/teambition-aliyun/model/GetProjectInfoResult.h + include/alibabacloud/teambition-aliyun/model/GetProjectMembersRequest.h + include/alibabacloud/teambition-aliyun/model/GetProjectMembersResult.h + include/alibabacloud/teambition-aliyun/model/GetProjectSprintInfoRequest.h + include/alibabacloud/teambition-aliyun/model/GetProjectSprintInfoResult.h + include/alibabacloud/teambition-aliyun/model/GetProjectTaskInfoRequest.h + include/alibabacloud/teambition-aliyun/model/GetProjectTaskInfoResult.h + include/alibabacloud/teambition-aliyun/model/GetUserByUidRequest.h + include/alibabacloud/teambition-aliyun/model/GetUserByUidResult.h + include/alibabacloud/teambition-aliyun/model/InsertDevopsMemberRequest.h + include/alibabacloud/teambition-aliyun/model/InsertDevopsMemberResult.h + include/alibabacloud/teambition-aliyun/model/ListProjectSprintsRequest.h + include/alibabacloud/teambition-aliyun/model/ListProjectSprintsResult.h + include/alibabacloud/teambition-aliyun/model/ListProjectTaskFlowRequest.h + include/alibabacloud/teambition-aliyun/model/ListProjectTaskFlowResult.h + include/alibabacloud/teambition-aliyun/model/ListProjectTaskFlowStatusRequest.h + include/alibabacloud/teambition-aliyun/model/ListProjectTaskFlowStatusResult.h + include/alibabacloud/teambition-aliyun/model/ListProjectTasksRequest.h + include/alibabacloud/teambition-aliyun/model/ListProjectTasksResult.h + include/alibabacloud/teambition-aliyun/model/ListScenarioFieldConfigRequest.h + include/alibabacloud/teambition-aliyun/model/ListScenarioFieldConfigResult.h + include/alibabacloud/teambition-aliyun/model/UpdateProjectRequest.h + include/alibabacloud/teambition-aliyun/model/UpdateProjectResult.h + include/alibabacloud/teambition-aliyun/model/UpdateProjectSprintRequest.h + include/alibabacloud/teambition-aliyun/model/UpdateProjectSprintResult.h + include/alibabacloud/teambition-aliyun/model/UpdateProjectTaskRequest.h + include/alibabacloud/teambition-aliyun/model/UpdateProjectTaskResult.h ) + +set(teambition-aliyun_src + src/Teambition-aliyunClient.cc + src/model/AddProjectMembersRequest.cc + src/model/AddProjectMembersResult.cc + src/model/ApplySmallMicroRequest.cc + src/model/ApplySmallMicroResult.cc + src/model/BactchInsertMembersRequest.cc + src/model/BactchInsertMembersResult.cc + src/model/CheckAliyunUserExistsRequest.cc + src/model/CheckAliyunUserExistsResult.cc + src/model/CreateDevopsOrgRequest.cc + src/model/CreateDevopsOrgResult.cc + src/model/CreateProjectRequest.cc + src/model/CreateProjectResult.cc + src/model/CreateProjectSprintRequest.cc + src/model/CreateProjectSprintResult.cc + src/model/CreateProjectTaskRequest.cc + src/model/CreateProjectTaskResult.cc + src/model/DeleteMembersForOrgRequest.cc + src/model/DeleteMembersForOrgResult.cc + src/model/DeleteProjectRequest.cc + src/model/DeleteProjectResult.cc + src/model/DeleteProjectMembersRequest.cc + src/model/DeleteProjectMembersResult.cc + src/model/DeleteProjectSprintRequest.cc + src/model/DeleteProjectSprintResult.cc + src/model/DeleteProjectTaskRequest.cc + src/model/DeleteProjectTaskResult.cc + src/model/GetOrganizationMembersRequest.cc + src/model/GetOrganizationMembersResult.cc + src/model/GetProjectInfoRequest.cc + src/model/GetProjectInfoResult.cc + src/model/GetProjectMembersRequest.cc + src/model/GetProjectMembersResult.cc + src/model/GetProjectSprintInfoRequest.cc + src/model/GetProjectSprintInfoResult.cc + src/model/GetProjectTaskInfoRequest.cc + src/model/GetProjectTaskInfoResult.cc + src/model/GetUserByUidRequest.cc + src/model/GetUserByUidResult.cc + src/model/InsertDevopsMemberRequest.cc + src/model/InsertDevopsMemberResult.cc + src/model/ListProjectSprintsRequest.cc + src/model/ListProjectSprintsResult.cc + src/model/ListProjectTaskFlowRequest.cc + src/model/ListProjectTaskFlowResult.cc + src/model/ListProjectTaskFlowStatusRequest.cc + src/model/ListProjectTaskFlowStatusResult.cc + src/model/ListProjectTasksRequest.cc + src/model/ListProjectTasksResult.cc + src/model/ListScenarioFieldConfigRequest.cc + src/model/ListScenarioFieldConfigResult.cc + src/model/UpdateProjectRequest.cc + src/model/UpdateProjectResult.cc + src/model/UpdateProjectSprintRequest.cc + src/model/UpdateProjectSprintResult.cc + src/model/UpdateProjectTaskRequest.cc + src/model/UpdateProjectTaskResult.cc ) + +add_library(teambition-aliyun ${LIB_TYPE} + ${teambition-aliyun_public_header} + ${teambition-aliyun_public_header_model} + ${teambition-aliyun_src}) + +set_target_properties(teambition-aliyun + PROPERTIES + LINKER_LANGUAGE CXX + ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin + OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}teambition-aliyun + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(teambition-aliyun + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_TEAMBITION_ALIYUN_LIBRARY) +endif() + +target_include_directories(teambition-aliyun + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(teambition-aliyun + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(teambition-aliyun + jsoncpp) + target_include_directories(teambition-aliyun + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(teambition-aliyun + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(teambition-aliyun + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(teambition-aliyun + PRIVATE /usr/include/jsoncpp) + target_link_libraries(teambition-aliyun + jsoncpp) +endif() + +install(FILES ${teambition-aliyun_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/teambition-aliyun) +install(FILES ${teambition-aliyun_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/teambition-aliyun/model) +install(TARGETS teambition-aliyun + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/Teambition_aliyunClient.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/Teambition_aliyunClient.h new file mode 100644 index 000000000..15f853243 --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/Teambition_aliyunClient.h @@ -0,0 +1,270 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_TEAMBITION_ALIYUNCLIENT_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_TEAMBITION_ALIYUNCLIENT_H_ + +#include +#include +#include +#include +#include "Teambition_aliyunExport.h" +#include "model/AddProjectMembersRequest.h" +#include "model/AddProjectMembersResult.h" +#include "model/ApplySmallMicroRequest.h" +#include "model/ApplySmallMicroResult.h" +#include "model/BactchInsertMembersRequest.h" +#include "model/BactchInsertMembersResult.h" +#include "model/CheckAliyunUserExistsRequest.h" +#include "model/CheckAliyunUserExistsResult.h" +#include "model/CreateDevopsOrgRequest.h" +#include "model/CreateDevopsOrgResult.h" +#include "model/CreateProjectRequest.h" +#include "model/CreateProjectResult.h" +#include "model/CreateProjectSprintRequest.h" +#include "model/CreateProjectSprintResult.h" +#include "model/CreateProjectTaskRequest.h" +#include "model/CreateProjectTaskResult.h" +#include "model/DeleteMembersForOrgRequest.h" +#include "model/DeleteMembersForOrgResult.h" +#include "model/DeleteProjectRequest.h" +#include "model/DeleteProjectResult.h" +#include "model/DeleteProjectMembersRequest.h" +#include "model/DeleteProjectMembersResult.h" +#include "model/DeleteProjectSprintRequest.h" +#include "model/DeleteProjectSprintResult.h" +#include "model/DeleteProjectTaskRequest.h" +#include "model/DeleteProjectTaskResult.h" +#include "model/GetOrganizationMembersRequest.h" +#include "model/GetOrganizationMembersResult.h" +#include "model/GetProjectInfoRequest.h" +#include "model/GetProjectInfoResult.h" +#include "model/GetProjectMembersRequest.h" +#include "model/GetProjectMembersResult.h" +#include "model/GetProjectSprintInfoRequest.h" +#include "model/GetProjectSprintInfoResult.h" +#include "model/GetProjectTaskInfoRequest.h" +#include "model/GetProjectTaskInfoResult.h" +#include "model/GetUserByUidRequest.h" +#include "model/GetUserByUidResult.h" +#include "model/InsertDevopsMemberRequest.h" +#include "model/InsertDevopsMemberResult.h" +#include "model/ListProjectSprintsRequest.h" +#include "model/ListProjectSprintsResult.h" +#include "model/ListProjectTaskFlowRequest.h" +#include "model/ListProjectTaskFlowResult.h" +#include "model/ListProjectTaskFlowStatusRequest.h" +#include "model/ListProjectTaskFlowStatusResult.h" +#include "model/ListProjectTasksRequest.h" +#include "model/ListProjectTasksResult.h" +#include "model/ListScenarioFieldConfigRequest.h" +#include "model/ListScenarioFieldConfigResult.h" +#include "model/UpdateProjectRequest.h" +#include "model/UpdateProjectResult.h" +#include "model/UpdateProjectSprintRequest.h" +#include "model/UpdateProjectSprintResult.h" +#include "model/UpdateProjectTaskRequest.h" +#include "model/UpdateProjectTaskResult.h" + + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT Teambition_aliyunClient : public RpcServiceClient + { + public: + typedef Outcome AddProjectMembersOutcome; + typedef std::future AddProjectMembersOutcomeCallable; + typedef std::function&)> AddProjectMembersAsyncHandler; + typedef Outcome ApplySmallMicroOutcome; + typedef std::future ApplySmallMicroOutcomeCallable; + typedef std::function&)> ApplySmallMicroAsyncHandler; + typedef Outcome BactchInsertMembersOutcome; + typedef std::future BactchInsertMembersOutcomeCallable; + typedef std::function&)> BactchInsertMembersAsyncHandler; + typedef Outcome CheckAliyunUserExistsOutcome; + typedef std::future CheckAliyunUserExistsOutcomeCallable; + typedef std::function&)> CheckAliyunUserExistsAsyncHandler; + typedef Outcome CreateDevopsOrgOutcome; + typedef std::future CreateDevopsOrgOutcomeCallable; + typedef std::function&)> CreateDevopsOrgAsyncHandler; + typedef Outcome CreateProjectOutcome; + typedef std::future CreateProjectOutcomeCallable; + typedef std::function&)> CreateProjectAsyncHandler; + typedef Outcome CreateProjectSprintOutcome; + typedef std::future CreateProjectSprintOutcomeCallable; + typedef std::function&)> CreateProjectSprintAsyncHandler; + typedef Outcome CreateProjectTaskOutcome; + typedef std::future CreateProjectTaskOutcomeCallable; + typedef std::function&)> CreateProjectTaskAsyncHandler; + typedef Outcome DeleteMembersForOrgOutcome; + typedef std::future DeleteMembersForOrgOutcomeCallable; + typedef std::function&)> DeleteMembersForOrgAsyncHandler; + typedef Outcome DeleteProjectOutcome; + typedef std::future DeleteProjectOutcomeCallable; + typedef std::function&)> DeleteProjectAsyncHandler; + typedef Outcome DeleteProjectMembersOutcome; + typedef std::future DeleteProjectMembersOutcomeCallable; + typedef std::function&)> DeleteProjectMembersAsyncHandler; + typedef Outcome DeleteProjectSprintOutcome; + typedef std::future DeleteProjectSprintOutcomeCallable; + typedef std::function&)> DeleteProjectSprintAsyncHandler; + typedef Outcome DeleteProjectTaskOutcome; + typedef std::future DeleteProjectTaskOutcomeCallable; + typedef std::function&)> DeleteProjectTaskAsyncHandler; + typedef Outcome GetOrganizationMembersOutcome; + typedef std::future GetOrganizationMembersOutcomeCallable; + typedef std::function&)> GetOrganizationMembersAsyncHandler; + typedef Outcome GetProjectInfoOutcome; + typedef std::future GetProjectInfoOutcomeCallable; + typedef std::function&)> GetProjectInfoAsyncHandler; + typedef Outcome GetProjectMembersOutcome; + typedef std::future GetProjectMembersOutcomeCallable; + typedef std::function&)> GetProjectMembersAsyncHandler; + typedef Outcome GetProjectSprintInfoOutcome; + typedef std::future GetProjectSprintInfoOutcomeCallable; + typedef std::function&)> GetProjectSprintInfoAsyncHandler; + typedef Outcome GetProjectTaskInfoOutcome; + typedef std::future GetProjectTaskInfoOutcomeCallable; + typedef std::function&)> GetProjectTaskInfoAsyncHandler; + typedef Outcome GetUserByUidOutcome; + typedef std::future GetUserByUidOutcomeCallable; + typedef std::function&)> GetUserByUidAsyncHandler; + typedef Outcome InsertDevopsMemberOutcome; + typedef std::future InsertDevopsMemberOutcomeCallable; + typedef std::function&)> InsertDevopsMemberAsyncHandler; + typedef Outcome ListProjectSprintsOutcome; + typedef std::future ListProjectSprintsOutcomeCallable; + typedef std::function&)> ListProjectSprintsAsyncHandler; + typedef Outcome ListProjectTaskFlowOutcome; + typedef std::future ListProjectTaskFlowOutcomeCallable; + typedef std::function&)> ListProjectTaskFlowAsyncHandler; + typedef Outcome ListProjectTaskFlowStatusOutcome; + typedef std::future ListProjectTaskFlowStatusOutcomeCallable; + typedef std::function&)> ListProjectTaskFlowStatusAsyncHandler; + typedef Outcome ListProjectTasksOutcome; + typedef std::future ListProjectTasksOutcomeCallable; + typedef std::function&)> ListProjectTasksAsyncHandler; + typedef Outcome ListScenarioFieldConfigOutcome; + typedef std::future ListScenarioFieldConfigOutcomeCallable; + typedef std::function&)> ListScenarioFieldConfigAsyncHandler; + typedef Outcome UpdateProjectOutcome; + typedef std::future UpdateProjectOutcomeCallable; + typedef std::function&)> UpdateProjectAsyncHandler; + typedef Outcome UpdateProjectSprintOutcome; + typedef std::future UpdateProjectSprintOutcomeCallable; + typedef std::function&)> UpdateProjectSprintAsyncHandler; + typedef Outcome UpdateProjectTaskOutcome; + typedef std::future UpdateProjectTaskOutcomeCallable; + typedef std::function&)> UpdateProjectTaskAsyncHandler; + + Teambition_aliyunClient(const Credentials &credentials, const ClientConfiguration &configuration); + Teambition_aliyunClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + Teambition_aliyunClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~Teambition_aliyunClient(); + AddProjectMembersOutcome addProjectMembers(const Model::AddProjectMembersRequest &request)const; + void addProjectMembersAsync(const Model::AddProjectMembersRequest& request, const AddProjectMembersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddProjectMembersOutcomeCallable addProjectMembersCallable(const Model::AddProjectMembersRequest& request) const; + ApplySmallMicroOutcome applySmallMicro(const Model::ApplySmallMicroRequest &request)const; + void applySmallMicroAsync(const Model::ApplySmallMicroRequest& request, const ApplySmallMicroAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ApplySmallMicroOutcomeCallable applySmallMicroCallable(const Model::ApplySmallMicroRequest& request) const; + BactchInsertMembersOutcome bactchInsertMembers(const Model::BactchInsertMembersRequest &request)const; + void bactchInsertMembersAsync(const Model::BactchInsertMembersRequest& request, const BactchInsertMembersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BactchInsertMembersOutcomeCallable bactchInsertMembersCallable(const Model::BactchInsertMembersRequest& request) const; + CheckAliyunUserExistsOutcome checkAliyunUserExists(const Model::CheckAliyunUserExistsRequest &request)const; + void checkAliyunUserExistsAsync(const Model::CheckAliyunUserExistsRequest& request, const CheckAliyunUserExistsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CheckAliyunUserExistsOutcomeCallable checkAliyunUserExistsCallable(const Model::CheckAliyunUserExistsRequest& request) const; + CreateDevopsOrgOutcome createDevopsOrg(const Model::CreateDevopsOrgRequest &request)const; + void createDevopsOrgAsync(const Model::CreateDevopsOrgRequest& request, const CreateDevopsOrgAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDevopsOrgOutcomeCallable createDevopsOrgCallable(const Model::CreateDevopsOrgRequest& request) const; + CreateProjectOutcome createProject(const Model::CreateProjectRequest &request)const; + void createProjectAsync(const Model::CreateProjectRequest& request, const CreateProjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateProjectOutcomeCallable createProjectCallable(const Model::CreateProjectRequest& request) const; + CreateProjectSprintOutcome createProjectSprint(const Model::CreateProjectSprintRequest &request)const; + void createProjectSprintAsync(const Model::CreateProjectSprintRequest& request, const CreateProjectSprintAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateProjectSprintOutcomeCallable createProjectSprintCallable(const Model::CreateProjectSprintRequest& request) const; + CreateProjectTaskOutcome createProjectTask(const Model::CreateProjectTaskRequest &request)const; + void createProjectTaskAsync(const Model::CreateProjectTaskRequest& request, const CreateProjectTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateProjectTaskOutcomeCallable createProjectTaskCallable(const Model::CreateProjectTaskRequest& request) const; + DeleteMembersForOrgOutcome deleteMembersForOrg(const Model::DeleteMembersForOrgRequest &request)const; + void deleteMembersForOrgAsync(const Model::DeleteMembersForOrgRequest& request, const DeleteMembersForOrgAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteMembersForOrgOutcomeCallable deleteMembersForOrgCallable(const Model::DeleteMembersForOrgRequest& request) const; + DeleteProjectOutcome deleteProject(const Model::DeleteProjectRequest &request)const; + void deleteProjectAsync(const Model::DeleteProjectRequest& request, const DeleteProjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteProjectOutcomeCallable deleteProjectCallable(const Model::DeleteProjectRequest& request) const; + DeleteProjectMembersOutcome deleteProjectMembers(const Model::DeleteProjectMembersRequest &request)const; + void deleteProjectMembersAsync(const Model::DeleteProjectMembersRequest& request, const DeleteProjectMembersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteProjectMembersOutcomeCallable deleteProjectMembersCallable(const Model::DeleteProjectMembersRequest& request) const; + DeleteProjectSprintOutcome deleteProjectSprint(const Model::DeleteProjectSprintRequest &request)const; + void deleteProjectSprintAsync(const Model::DeleteProjectSprintRequest& request, const DeleteProjectSprintAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteProjectSprintOutcomeCallable deleteProjectSprintCallable(const Model::DeleteProjectSprintRequest& request) const; + DeleteProjectTaskOutcome deleteProjectTask(const Model::DeleteProjectTaskRequest &request)const; + void deleteProjectTaskAsync(const Model::DeleteProjectTaskRequest& request, const DeleteProjectTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteProjectTaskOutcomeCallable deleteProjectTaskCallable(const Model::DeleteProjectTaskRequest& request) const; + GetOrganizationMembersOutcome getOrganizationMembers(const Model::GetOrganizationMembersRequest &request)const; + void getOrganizationMembersAsync(const Model::GetOrganizationMembersRequest& request, const GetOrganizationMembersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetOrganizationMembersOutcomeCallable getOrganizationMembersCallable(const Model::GetOrganizationMembersRequest& request) const; + GetProjectInfoOutcome getProjectInfo(const Model::GetProjectInfoRequest &request)const; + void getProjectInfoAsync(const Model::GetProjectInfoRequest& request, const GetProjectInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetProjectInfoOutcomeCallable getProjectInfoCallable(const Model::GetProjectInfoRequest& request) const; + GetProjectMembersOutcome getProjectMembers(const Model::GetProjectMembersRequest &request)const; + void getProjectMembersAsync(const Model::GetProjectMembersRequest& request, const GetProjectMembersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetProjectMembersOutcomeCallable getProjectMembersCallable(const Model::GetProjectMembersRequest& request) const; + GetProjectSprintInfoOutcome getProjectSprintInfo(const Model::GetProjectSprintInfoRequest &request)const; + void getProjectSprintInfoAsync(const Model::GetProjectSprintInfoRequest& request, const GetProjectSprintInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetProjectSprintInfoOutcomeCallable getProjectSprintInfoCallable(const Model::GetProjectSprintInfoRequest& request) const; + GetProjectTaskInfoOutcome getProjectTaskInfo(const Model::GetProjectTaskInfoRequest &request)const; + void getProjectTaskInfoAsync(const Model::GetProjectTaskInfoRequest& request, const GetProjectTaskInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetProjectTaskInfoOutcomeCallable getProjectTaskInfoCallable(const Model::GetProjectTaskInfoRequest& request) const; + GetUserByUidOutcome getUserByUid(const Model::GetUserByUidRequest &request)const; + void getUserByUidAsync(const Model::GetUserByUidRequest& request, const GetUserByUidAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetUserByUidOutcomeCallable getUserByUidCallable(const Model::GetUserByUidRequest& request) const; + InsertDevopsMemberOutcome insertDevopsMember(const Model::InsertDevopsMemberRequest &request)const; + void insertDevopsMemberAsync(const Model::InsertDevopsMemberRequest& request, const InsertDevopsMemberAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + InsertDevopsMemberOutcomeCallable insertDevopsMemberCallable(const Model::InsertDevopsMemberRequest& request) const; + ListProjectSprintsOutcome listProjectSprints(const Model::ListProjectSprintsRequest &request)const; + void listProjectSprintsAsync(const Model::ListProjectSprintsRequest& request, const ListProjectSprintsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListProjectSprintsOutcomeCallable listProjectSprintsCallable(const Model::ListProjectSprintsRequest& request) const; + ListProjectTaskFlowOutcome listProjectTaskFlow(const Model::ListProjectTaskFlowRequest &request)const; + void listProjectTaskFlowAsync(const Model::ListProjectTaskFlowRequest& request, const ListProjectTaskFlowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListProjectTaskFlowOutcomeCallable listProjectTaskFlowCallable(const Model::ListProjectTaskFlowRequest& request) const; + ListProjectTaskFlowStatusOutcome listProjectTaskFlowStatus(const Model::ListProjectTaskFlowStatusRequest &request)const; + void listProjectTaskFlowStatusAsync(const Model::ListProjectTaskFlowStatusRequest& request, const ListProjectTaskFlowStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListProjectTaskFlowStatusOutcomeCallable listProjectTaskFlowStatusCallable(const Model::ListProjectTaskFlowStatusRequest& request) const; + ListProjectTasksOutcome listProjectTasks(const Model::ListProjectTasksRequest &request)const; + void listProjectTasksAsync(const Model::ListProjectTasksRequest& request, const ListProjectTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListProjectTasksOutcomeCallable listProjectTasksCallable(const Model::ListProjectTasksRequest& request) const; + ListScenarioFieldConfigOutcome listScenarioFieldConfig(const Model::ListScenarioFieldConfigRequest &request)const; + void listScenarioFieldConfigAsync(const Model::ListScenarioFieldConfigRequest& request, const ListScenarioFieldConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListScenarioFieldConfigOutcomeCallable listScenarioFieldConfigCallable(const Model::ListScenarioFieldConfigRequest& request) const; + UpdateProjectOutcome updateProject(const Model::UpdateProjectRequest &request)const; + void updateProjectAsync(const Model::UpdateProjectRequest& request, const UpdateProjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateProjectOutcomeCallable updateProjectCallable(const Model::UpdateProjectRequest& request) const; + UpdateProjectSprintOutcome updateProjectSprint(const Model::UpdateProjectSprintRequest &request)const; + void updateProjectSprintAsync(const Model::UpdateProjectSprintRequest& request, const UpdateProjectSprintAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateProjectSprintOutcomeCallable updateProjectSprintCallable(const Model::UpdateProjectSprintRequest& request) const; + UpdateProjectTaskOutcome updateProjectTask(const Model::UpdateProjectTaskRequest &request)const; + void updateProjectTaskAsync(const Model::UpdateProjectTaskRequest& request, const UpdateProjectTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateProjectTaskOutcomeCallable updateProjectTaskCallable(const Model::UpdateProjectTaskRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_TEAMBITION_ALIYUNCLIENT_H_ diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/Teambition_aliyunExport.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/Teambition_aliyunExport.h new file mode 100644 index 000000000..23f12b60c --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/Teambition_aliyunExport.h @@ -0,0 +1,32 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_TEAMBITION_ALIYUNEXPORT_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_TEAMBITION_ALIYUNEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_TEAMBITION_ALIYUN_LIBRARY) +# define ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT +#endif + +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_TEAMBITION_ALIYUNEXPORT_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/AddProjectMembersRequest.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/AddProjectMembersRequest.h new file mode 100644 index 000000000..4bbbd2bd8 --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/AddProjectMembersRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_ADDPROJECTMEMBERSREQUEST_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_ADDPROJECTMEMBERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT AddProjectMembersRequest : public RpcServiceRequest + { + + public: + AddProjectMembersRequest(); + ~AddProjectMembersRequest(); + + std::string getMembers()const; + void setMembers(const std::string& members); + std::string getProjectId()const; + void setProjectId(const std::string& projectId); + std::string getOrgId()const; + void setOrgId(const std::string& orgId); + + private: + std::string members_; + std::string projectId_; + std::string orgId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_ADDPROJECTMEMBERSREQUEST_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/AddProjectMembersResult.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/AddProjectMembersResult.h new file mode 100644 index 000000000..ec81b9104 --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/AddProjectMembersResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_ADDPROJECTMEMBERSRESULT_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_ADDPROJECTMEMBERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT AddProjectMembersResult : public ServiceResult + { + public: + + + AddProjectMembersResult(); + explicit AddProjectMembersResult(const std::string &payload); + ~AddProjectMembersResult(); + std::string getErrorMsg()const; + bool getObject()const; + std::string getErrorCode()const; + bool getSuccessful()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorMsg_; + bool object_; + std::string errorCode_; + bool successful_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_ADDPROJECTMEMBERSRESULT_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/ApplySmallMicroRequest.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/ApplySmallMicroRequest.h new file mode 100644 index 000000000..59cf4f553 --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/ApplySmallMicroRequest.h @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_APPLYSMALLMICROREQUEST_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_APPLYSMALLMICROREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT ApplySmallMicroRequest : public RpcServiceRequest + { + + public: + ApplySmallMicroRequest(); + ~ApplySmallMicroRequest(); + + std::string getApplicantEmail()const; + void setApplicantEmail(const std::string& applicantEmail); + std::string getDevelopScale()const; + void setDevelopScale(const std::string& developScale); + std::string getType()const; + void setType(const std::string& type); + std::string getOrgId()const; + void setOrgId(const std::string& orgId); + std::string getApplicantPosition()const; + void setApplicantPosition(const std::string& applicantPosition); + std::string getDevelopLanguage()const; + void setDevelopLanguage(const std::string& developLanguage); + std::string getOrgName()const; + void setOrgName(const std::string& orgName); + std::string getApplicantTel()const; + void setApplicantTel(const std::string& applicantTel); + std::string getSolution()const; + void setSolution(const std::string& solution); + std::string getForHelp()const; + void setForHelp(const std::string& forHelp); + std::string getApplicantName()const; + void setApplicantName(const std::string& applicantName); + std::string getBusinessModel()const; + void setBusinessModel(const std::string& businessModel); + + private: + std::string applicantEmail_; + std::string developScale_; + std::string type_; + std::string orgId_; + std::string applicantPosition_; + std::string developLanguage_; + std::string orgName_; + std::string applicantTel_; + std::string solution_; + std::string forHelp_; + std::string applicantName_; + std::string businessModel_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_APPLYSMALLMICROREQUEST_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/ApplySmallMicroResult.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/ApplySmallMicroResult.h new file mode 100644 index 000000000..fd7e61f81 --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/ApplySmallMicroResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_APPLYSMALLMICRORESULT_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_APPLYSMALLMICRORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT ApplySmallMicroResult : public ServiceResult + { + public: + + + ApplySmallMicroResult(); + explicit ApplySmallMicroResult(const std::string &payload); + ~ApplySmallMicroResult(); + bool getMessage()const; + bool getRaw()const; + int getCode()const; + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + bool message_; + bool raw_; + int code_; + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_APPLYSMALLMICRORESULT_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/BactchInsertMembersRequest.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/BactchInsertMembersRequest.h new file mode 100644 index 000000000..2ac62b782 --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/BactchInsertMembersRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_BACTCHINSERTMEMBERSREQUEST_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_BACTCHINSERTMEMBERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT BactchInsertMembersRequest : public RpcServiceRequest + { + + public: + BactchInsertMembersRequest(); + ~BactchInsertMembersRequest(); + + std::string getMembers()const; + void setMembers(const std::string& members); + std::string getRealPk()const; + void setRealPk(const std::string& realPk); + std::string getOrgId()const; + void setOrgId(const std::string& orgId); + + private: + std::string members_; + std::string realPk_; + std::string orgId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_BACTCHINSERTMEMBERSREQUEST_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/BactchInsertMembersResult.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/BactchInsertMembersResult.h new file mode 100644 index 000000000..dfac1968e --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/BactchInsertMembersResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_BACTCHINSERTMEMBERSRESULT_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_BACTCHINSERTMEMBERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT BactchInsertMembersResult : public ServiceResult + { + public: + + + BactchInsertMembersResult(); + explicit BactchInsertMembersResult(const std::string &payload); + ~BactchInsertMembersResult(); + bool getObject()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + bool object_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_BACTCHINSERTMEMBERSRESULT_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/CheckAliyunUserExistsRequest.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/CheckAliyunUserExistsRequest.h new file mode 100644 index 000000000..6e5ca203e --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/CheckAliyunUserExistsRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_CHECKALIYUNUSEREXISTSREQUEST_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_CHECKALIYUNUSEREXISTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT CheckAliyunUserExistsRequest : public RpcServiceRequest + { + + public: + CheckAliyunUserExistsRequest(); + ~CheckAliyunUserExistsRequest(); + + std::string getUserPk()const; + void setUserPk(const std::string& userPk); + + private: + std::string userPk_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_CHECKALIYUNUSEREXISTSREQUEST_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/CheckAliyunUserExistsResult.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/CheckAliyunUserExistsResult.h new file mode 100644 index 000000000..5225cf204 --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/CheckAliyunUserExistsResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_CHECKALIYUNUSEREXISTSRESULT_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_CHECKALIYUNUSEREXISTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT CheckAliyunUserExistsResult : public ServiceResult + { + public: + + + CheckAliyunUserExistsResult(); + explicit CheckAliyunUserExistsResult(const std::string &payload); + ~CheckAliyunUserExistsResult(); + std::string getErrorMsg()const; + bool getObject()const; + std::string getErrorCode()const; + bool getSuccessful()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorMsg_; + bool object_; + std::string errorCode_; + bool successful_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_CHECKALIYUNUSEREXISTSRESULT_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/CreateDevopsOrgRequest.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/CreateDevopsOrgRequest.h new file mode 100644 index 000000000..2cf36b24b --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/CreateDevopsOrgRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_CREATEDEVOPSORGREQUEST_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_CREATEDEVOPSORGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT CreateDevopsOrgRequest : public RpcServiceRequest + { + + public: + CreateDevopsOrgRequest(); + ~CreateDevopsOrgRequest(); + + std::string getOrgName()const; + void setOrgName(const std::string& orgName); + std::string getSource()const; + void setSource(const std::string& source); + std::string getRealPk()const; + void setRealPk(const std::string& realPk); + int getDesiredMemberCount()const; + void setDesiredMemberCount(int desiredMemberCount); + + private: + std::string orgName_; + std::string source_; + std::string realPk_; + int desiredMemberCount_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_CREATEDEVOPSORGREQUEST_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/CreateDevopsOrgResult.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/CreateDevopsOrgResult.h new file mode 100644 index 000000000..affef85bb --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/CreateDevopsOrgResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_CREATEDEVOPSORGRESULT_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_CREATEDEVOPSORGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT CreateDevopsOrgResult : public ServiceResult + { + public: + + + CreateDevopsOrgResult(); + explicit CreateDevopsOrgResult(const std::string &payload); + ~CreateDevopsOrgResult(); + std::string getObject()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string object_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_CREATEDEVOPSORGRESULT_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/CreateProjectRequest.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/CreateProjectRequest.h new file mode 100644 index 000000000..6468b8bd7 --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/CreateProjectRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_CREATEPROJECTREQUEST_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_CREATEPROJECTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT CreateProjectRequest : public RpcServiceRequest + { + + public: + CreateProjectRequest(); + ~CreateProjectRequest(); + + std::string getName()const; + void setName(const std::string& name); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getOrgId()const; + void setOrgId(const std::string& orgId); + + private: + std::string name_; + std::string description_; + std::string orgId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_CREATEPROJECTREQUEST_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/CreateProjectResult.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/CreateProjectResult.h new file mode 100644 index 000000000..ebf87e9c6 --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/CreateProjectResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_CREATEPROJECTRESULT_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_CREATEPROJECTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT CreateProjectResult : public ServiceResult + { + public: + + + CreateProjectResult(); + explicit CreateProjectResult(const std::string &payload); + ~CreateProjectResult(); + std::string getObject()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string object_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_CREATEPROJECTRESULT_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/CreateProjectSprintRequest.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/CreateProjectSprintRequest.h new file mode 100644 index 000000000..e6d400f0f --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/CreateProjectSprintRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_CREATEPROJECTSPRINTREQUEST_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_CREATEPROJECTSPRINTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT CreateProjectSprintRequest : public RpcServiceRequest + { + + public: + CreateProjectSprintRequest(); + ~CreateProjectSprintRequest(); + + std::string getExecutorId()const; + void setExecutorId(const std::string& executorId); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getStartDate()const; + void setStartDate(const std::string& startDate); + std::string getOrgId()const; + void setOrgId(const std::string& orgId); + std::string getDueDate()const; + void setDueDate(const std::string& dueDate); + std::string getName()const; + void setName(const std::string& name); + std::string getProjectId()const; + void setProjectId(const std::string& projectId); + + private: + std::string executorId_; + std::string description_; + std::string startDate_; + std::string orgId_; + std::string dueDate_; + std::string name_; + std::string projectId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_CREATEPROJECTSPRINTREQUEST_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/CreateProjectSprintResult.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/CreateProjectSprintResult.h new file mode 100644 index 000000000..54c4184f5 --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/CreateProjectSprintResult.h @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_CREATEPROJECTSPRINTRESULT_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_CREATEPROJECTSPRINTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT CreateProjectSprintResult : public ServiceResult + { + public: + struct Object + { + struct PlanToDo + { + int tasks; + int workTimes; + int storyPoints; + }; + std::string status; + bool isDeleted; + std::string description; + std::string accomplished; + std::string updated; + std::string creatorId; + std::string projectId; + std::string created; + std::string name; + std::string startDate; + std::string executor; + PlanToDo planToDo; + std::string id; + std::string dueDate; + }; + + + CreateProjectSprintResult(); + explicit CreateProjectSprintResult(const std::string &payload); + ~CreateProjectSprintResult(); + std::string getErrorMsg()const; + Object getObject()const; + std::string getErrorCode()const; + bool getSuccessful()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorMsg_; + Object object_; + std::string errorCode_; + bool successful_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_CREATEPROJECTSPRINTRESULT_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/CreateProjectTaskRequest.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/CreateProjectTaskRequest.h new file mode 100644 index 000000000..f39746e95 --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/CreateProjectTaskRequest.h @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_CREATEPROJECTTASKREQUEST_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_CREATEPROJECTTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT CreateProjectTaskRequest : public RpcServiceRequest + { + + public: + CreateProjectTaskRequest(); + ~CreateProjectTaskRequest(); + + std::string getNote()const; + void setNote(const std::string& note); + std::string getVisible()const; + void setVisible(const std::string& visible); + std::string getExecutorId()const; + void setExecutorId(const std::string& executorId); + std::string getStartDate()const; + void setStartDate(const std::string& startDate); + int getPriority()const; + void setPriority(int priority); + std::string getParentTaskId()const; + void setParentTaskId(const std::string& parentTaskId); + std::string getOrgId()const; + void setOrgId(const std::string& orgId); + std::string getContent()const; + void setContent(const std::string& content); + std::string getSprintId()const; + void setSprintId(const std::string& sprintId); + std::string getDueDate()const; + void setDueDate(const std::string& dueDate); + std::string getTasFlowStatusId()const; + void setTasFlowStatusId(const std::string& tasFlowStatusId); + std::string getScenarioFieldConfigId()const; + void setScenarioFieldConfigId(const std::string& scenarioFieldConfigId); + std::string getProjectId()const; + void setProjectId(const std::string& projectId); + std::string getTaskListId()const; + void setTaskListId(const std::string& taskListId); + + private: + std::string note_; + std::string visible_; + std::string executorId_; + std::string startDate_; + int priority_; + std::string parentTaskId_; + std::string orgId_; + std::string content_; + std::string sprintId_; + std::string dueDate_; + std::string tasFlowStatusId_; + std::string scenarioFieldConfigId_; + std::string projectId_; + std::string taskListId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_CREATEPROJECTTASKREQUEST_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/CreateProjectTaskResult.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/CreateProjectTaskResult.h new file mode 100644 index 000000000..446926376 --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/CreateProjectTaskResult.h @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_CREATEPROJECTTASKRESULT_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_CREATEPROJECTTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT CreateProjectTaskResult : public ServiceResult + { + public: + struct Object + { + int rating; + std::string sprintId; + std::string organizationId; + std::string tasklistId; + std::string source; + std::string created; + std::string startDate; + std::string executorId; + std::string taskType; + std::string ancestorIds; + std::string visible; + std::string dueDate; + int uniqueId; + std::string updated; + std::string creatorId; + int priority; + std::string projectId; + std::string taskflowstatusId; + bool isDone; + std::string storyPoint; + int pos; + std::string content; + std::string note; + std::string id; + std::string scenarioFieldConfigId; + }; + + + CreateProjectTaskResult(); + explicit CreateProjectTaskResult(const std::string &payload); + ~CreateProjectTaskResult(); + std::string getErrorMsg()const; + Object getObject()const; + std::string getErrorCode()const; + bool getSuccessful()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorMsg_; + Object object_; + std::string errorCode_; + bool successful_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_CREATEPROJECTTASKRESULT_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/DeleteMembersForOrgRequest.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/DeleteMembersForOrgRequest.h new file mode 100644 index 000000000..59a748b72 --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/DeleteMembersForOrgRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_DELETEMEMBERSFORORGREQUEST_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_DELETEMEMBERSFORORGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT DeleteMembersForOrgRequest : public RpcServiceRequest + { + + public: + DeleteMembersForOrgRequest(); + ~DeleteMembersForOrgRequest(); + + std::string getRealPk()const; + void setRealPk(const std::string& realPk); + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getOrgId()const; + void setOrgId(const std::string& orgId); + + private: + std::string realPk_; + std::string userId_; + std::string orgId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_DELETEMEMBERSFORORGREQUEST_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/DeleteMembersForOrgResult.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/DeleteMembersForOrgResult.h new file mode 100644 index 000000000..afed398b5 --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/DeleteMembersForOrgResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_DELETEMEMBERSFORORGRESULT_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_DELETEMEMBERSFORORGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT DeleteMembersForOrgResult : public ServiceResult + { + public: + + + DeleteMembersForOrgResult(); + explicit DeleteMembersForOrgResult(const std::string &payload); + ~DeleteMembersForOrgResult(); + bool getObject()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + bool object_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_DELETEMEMBERSFORORGRESULT_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/DeleteProjectMembersRequest.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/DeleteProjectMembersRequest.h new file mode 100644 index 000000000..502acfff6 --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/DeleteProjectMembersRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_DELETEPROJECTMEMBERSREQUEST_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_DELETEPROJECTMEMBERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT DeleteProjectMembersRequest : public RpcServiceRequest + { + + public: + DeleteProjectMembersRequest(); + ~DeleteProjectMembersRequest(); + + std::string getUserIds()const; + void setUserIds(const std::string& userIds); + std::string getProjectId()const; + void setProjectId(const std::string& projectId); + std::string getOrgId()const; + void setOrgId(const std::string& orgId); + + private: + std::string userIds_; + std::string projectId_; + std::string orgId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_DELETEPROJECTMEMBERSREQUEST_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/DeleteProjectMembersResult.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/DeleteProjectMembersResult.h new file mode 100644 index 000000000..f37f2ec81 --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/DeleteProjectMembersResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_DELETEPROJECTMEMBERSRESULT_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_DELETEPROJECTMEMBERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT DeleteProjectMembersResult : public ServiceResult + { + public: + + + DeleteProjectMembersResult(); + explicit DeleteProjectMembersResult(const std::string &payload); + ~DeleteProjectMembersResult(); + std::string getErrorMsg()const; + bool getObject()const; + std::string getErrorCode()const; + bool getSuccessful()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorMsg_; + bool object_; + std::string errorCode_; + bool successful_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_DELETEPROJECTMEMBERSRESULT_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/DeleteProjectRequest.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/DeleteProjectRequest.h new file mode 100644 index 000000000..4e5ca539a --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/DeleteProjectRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_DELETEPROJECTREQUEST_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_DELETEPROJECTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT DeleteProjectRequest : public RpcServiceRequest + { + + public: + DeleteProjectRequest(); + ~DeleteProjectRequest(); + + std::string getProjectId()const; + void setProjectId(const std::string& projectId); + std::string getOrgId()const; + void setOrgId(const std::string& orgId); + + private: + std::string projectId_; + std::string orgId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_DELETEPROJECTREQUEST_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/DeleteProjectResult.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/DeleteProjectResult.h new file mode 100644 index 000000000..0a4edf730 --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/DeleteProjectResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_DELETEPROJECTRESULT_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_DELETEPROJECTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT DeleteProjectResult : public ServiceResult + { + public: + + + DeleteProjectResult(); + explicit DeleteProjectResult(const std::string &payload); + ~DeleteProjectResult(); + std::string getObject()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string object_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_DELETEPROJECTRESULT_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/DeleteProjectSprintRequest.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/DeleteProjectSprintRequest.h new file mode 100644 index 000000000..63b20a30b --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/DeleteProjectSprintRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_DELETEPROJECTSPRINTREQUEST_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_DELETEPROJECTSPRINTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT DeleteProjectSprintRequest : public RpcServiceRequest + { + + public: + DeleteProjectSprintRequest(); + ~DeleteProjectSprintRequest(); + + std::string getSprintId()const; + void setSprintId(const std::string& sprintId); + std::string getOrgId()const; + void setOrgId(const std::string& orgId); + + private: + std::string sprintId_; + std::string orgId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_DELETEPROJECTSPRINTREQUEST_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/DeleteProjectSprintResult.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/DeleteProjectSprintResult.h new file mode 100644 index 000000000..6dc11860f --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/DeleteProjectSprintResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_DELETEPROJECTSPRINTRESULT_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_DELETEPROJECTSPRINTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT DeleteProjectSprintResult : public ServiceResult + { + public: + + + DeleteProjectSprintResult(); + explicit DeleteProjectSprintResult(const std::string &payload); + ~DeleteProjectSprintResult(); + std::string getErrorMsg()const; + bool getObject()const; + std::string getErrorCode()const; + bool getSuccessful()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorMsg_; + bool object_; + std::string errorCode_; + bool successful_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_DELETEPROJECTSPRINTRESULT_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/DeleteProjectTaskRequest.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/DeleteProjectTaskRequest.h new file mode 100644 index 000000000..aea093c24 --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/DeleteProjectTaskRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_DELETEPROJECTTASKREQUEST_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_DELETEPROJECTTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT DeleteProjectTaskRequest : public RpcServiceRequest + { + + public: + DeleteProjectTaskRequest(); + ~DeleteProjectTaskRequest(); + + std::string getOrgId()const; + void setOrgId(const std::string& orgId); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + + private: + std::string orgId_; + std::string taskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_DELETEPROJECTTASKREQUEST_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/DeleteProjectTaskResult.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/DeleteProjectTaskResult.h new file mode 100644 index 000000000..43744eede --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/DeleteProjectTaskResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_DELETEPROJECTTASKRESULT_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_DELETEPROJECTTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT DeleteProjectTaskResult : public ServiceResult + { + public: + + + DeleteProjectTaskResult(); + explicit DeleteProjectTaskResult(const std::string &payload); + ~DeleteProjectTaskResult(); + std::string getErrorMsg()const; + bool getObject()const; + std::string getErrorCode()const; + bool getSuccessful()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorMsg_; + bool object_; + std::string errorCode_; + bool successful_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_DELETEPROJECTTASKRESULT_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/GetOrganizationMembersRequest.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/GetOrganizationMembersRequest.h new file mode 100644 index 000000000..21d9b78ce --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/GetOrganizationMembersRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_GETORGANIZATIONMEMBERSREQUEST_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_GETORGANIZATIONMEMBERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT GetOrganizationMembersRequest : public RpcServiceRequest + { + + public: + GetOrganizationMembersRequest(); + ~GetOrganizationMembersRequest(); + + std::string getOrgId()const; + void setOrgId(const std::string& orgId); + + private: + std::string orgId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_GETORGANIZATIONMEMBERSREQUEST_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/GetOrganizationMembersResult.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/GetOrganizationMembersResult.h new file mode 100644 index 000000000..b3860d934 --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/GetOrganizationMembersResult.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_GETORGANIZATIONMEMBERSRESULT_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_GETORGANIZATIONMEMBERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT GetOrganizationMembersResult : public ServiceResult + { + public: + struct Member + { + int role; + std::string memberId; + std::string avatarUrl; + std::string email; + std::string userId; + std::string phone; + std::string name; + }; + + + GetOrganizationMembersResult(); + explicit GetOrganizationMembersResult(const std::string &payload); + ~GetOrganizationMembersResult(); + std::string getErrorMsg()const; + std::vector getObject()const; + std::string getErrorCode()const; + bool getSuccessful()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorMsg_; + std::vector object_; + std::string errorCode_; + bool successful_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_GETORGANIZATIONMEMBERSRESULT_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/GetProjectInfoRequest.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/GetProjectInfoRequest.h new file mode 100644 index 000000000..d358e627a --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/GetProjectInfoRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_GETPROJECTINFOREQUEST_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_GETPROJECTINFOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT GetProjectInfoRequest : public RpcServiceRequest + { + + public: + GetProjectInfoRequest(); + ~GetProjectInfoRequest(); + + std::string getProjectId()const; + void setProjectId(const std::string& projectId); + std::string getOrgId()const; + void setOrgId(const std::string& orgId); + + private: + std::string projectId_; + std::string orgId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_GETPROJECTINFOREQUEST_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/GetProjectInfoResult.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/GetProjectInfoResult.h new file mode 100644 index 000000000..e92f57082 --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/GetProjectInfoResult.h @@ -0,0 +1,89 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_GETPROJECTINFORESULT_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_GETPROJECTINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT GetProjectInfoResult : public ServiceResult + { + public: + struct Object + { + std::string sortMethod; + std::string description; + std::string category; + std::string sourceId; + std::string sourceType; + int nextTaskUniqueId; + std::string organizationId; + std::string rootCollectionId; + std::string created; + std::string name; + std::string startDate; + std::string defaultCollectionId; + std::string normalType; + std::string defaultRoleId; + std::string modifierId; + bool isTemplate; + bool isDeleted; + std::string updated; + std::string creatorId; + std::string py; + std::string endDate; + bool isSuspended; + std::string logo; + bool isArchived; + std::string uniqueIdPrefix; + std::string pinyin; + std::string customfields; + std::string visibility; + std::string id; + }; + + + GetProjectInfoResult(); + explicit GetProjectInfoResult(const std::string &payload); + ~GetProjectInfoResult(); + std::string getErrorMsg()const; + Object getObject()const; + std::string getErrorCode()const; + bool getSuccessful()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorMsg_; + Object object_; + std::string errorCode_; + bool successful_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_GETPROJECTINFORESULT_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/GetProjectMembersRequest.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/GetProjectMembersRequest.h new file mode 100644 index 000000000..e44b6ca28 --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/GetProjectMembersRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_GETPROJECTMEMBERSREQUEST_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_GETPROJECTMEMBERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT GetProjectMembersRequest : public RpcServiceRequest + { + + public: + GetProjectMembersRequest(); + ~GetProjectMembersRequest(); + + std::string getProjectId()const; + void setProjectId(const std::string& projectId); + std::string getOrgId()const; + void setOrgId(const std::string& orgId); + + private: + std::string projectId_; + std::string orgId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_GETPROJECTMEMBERSREQUEST_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/GetProjectMembersResult.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/GetProjectMembersResult.h new file mode 100644 index 000000000..c3adee0ab --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/GetProjectMembersResult.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_GETPROJECTMEMBERSRESULT_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_GETPROJECTMEMBERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT GetProjectMembersResult : public ServiceResult + { + public: + struct Member + { + int role; + std::string memberId; + std::string avatarUrl; + std::string email; + std::string userId; + std::string phone; + std::string name; + }; + + + GetProjectMembersResult(); + explicit GetProjectMembersResult(const std::string &payload); + ~GetProjectMembersResult(); + std::string getErrorMsg()const; + std::vector getObject()const; + std::string getErrorCode()const; + bool getSuccessful()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorMsg_; + std::vector object_; + std::string errorCode_; + bool successful_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_GETPROJECTMEMBERSRESULT_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/GetProjectSprintInfoRequest.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/GetProjectSprintInfoRequest.h new file mode 100644 index 000000000..0141301fb --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/GetProjectSprintInfoRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_GETPROJECTSPRINTINFOREQUEST_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_GETPROJECTSPRINTINFOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT GetProjectSprintInfoRequest : public RpcServiceRequest + { + + public: + GetProjectSprintInfoRequest(); + ~GetProjectSprintInfoRequest(); + + std::string getSprintId()const; + void setSprintId(const std::string& sprintId); + std::string getOrgId()const; + void setOrgId(const std::string& orgId); + + private: + std::string sprintId_; + std::string orgId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_GETPROJECTSPRINTINFOREQUEST_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/GetProjectSprintInfoResult.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/GetProjectSprintInfoResult.h new file mode 100644 index 000000000..a601ceb8b --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/GetProjectSprintInfoResult.h @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_GETPROJECTSPRINTINFORESULT_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_GETPROJECTSPRINTINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT GetProjectSprintInfoResult : public ServiceResult + { + public: + struct Object + { + struct PlanToDo + { + int tasks; + int workTimes; + int storyPoints; + }; + std::string startDate; + std::string status; + bool isDeleted; + std::string accomplished; + PlanToDo planToDo; + std::string updated; + std::string creatorId; + std::string projectId; + std::string id; + std::string dueDate; + std::string created; + std::string name; + }; + + + GetProjectSprintInfoResult(); + explicit GetProjectSprintInfoResult(const std::string &payload); + ~GetProjectSprintInfoResult(); + std::string getErrorMsg()const; + Object getObject()const; + std::string getErrorCode()const; + bool getSuccessful()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorMsg_; + Object object_; + std::string errorCode_; + bool successful_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_GETPROJECTSPRINTINFORESULT_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/GetProjectTaskInfoRequest.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/GetProjectTaskInfoRequest.h new file mode 100644 index 000000000..b291b11ed --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/GetProjectTaskInfoRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_GETPROJECTTASKINFOREQUEST_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_GETPROJECTTASKINFOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT GetProjectTaskInfoRequest : public RpcServiceRequest + { + + public: + GetProjectTaskInfoRequest(); + ~GetProjectTaskInfoRequest(); + + std::string getOrgId()const; + void setOrgId(const std::string& orgId); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + + private: + std::string orgId_; + std::string taskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_GETPROJECTTASKINFOREQUEST_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/GetProjectTaskInfoResult.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/GetProjectTaskInfoResult.h new file mode 100644 index 000000000..9953e76b5 --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/GetProjectTaskInfoResult.h @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_GETPROJECTTASKINFORESULT_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_GETPROJECTTASKINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT GetProjectTaskInfoResult : public ServiceResult + { + public: + struct Object + { + bool isDeleted; + std::string updated; + std::string creatorId; + std::string priority; + std::vector involveMembers; + std::string projectId; + std::string taskflowstatusId; + bool isDone; + std::string sprintId; + std::string storyPoint; + std::string organizationId; + std::string tasklistId; + std::string created; + std::string startDate; + std::string executorId; + bool isTopInProject; + std::string content; + std::string taskType; + std::string note; + std::string visible; + std::string id; + std::string dueDate; + }; + + + GetProjectTaskInfoResult(); + explicit GetProjectTaskInfoResult(const std::string &payload); + ~GetProjectTaskInfoResult(); + std::string getErrorMsg()const; + Object getObject()const; + std::string getErrorCode()const; + bool getSuccessful()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorMsg_; + Object object_; + std::string errorCode_; + bool successful_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_GETPROJECTTASKINFORESULT_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/GetUserByUidRequest.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/GetUserByUidRequest.h new file mode 100644 index 000000000..2184c6ce1 --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/GetUserByUidRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_GETUSERBYUIDREQUEST_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_GETUSERBYUIDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT GetUserByUidRequest : public RpcServiceRequest + { + + public: + GetUserByUidRequest(); + ~GetUserByUidRequest(); + + std::string getUserPk()const; + void setUserPk(const std::string& userPk); + std::string getOrgId()const; + void setOrgId(const std::string& orgId); + + private: + std::string userPk_; + std::string orgId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_GETUSERBYUIDREQUEST_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/GetUserByUidResult.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/GetUserByUidResult.h new file mode 100644 index 000000000..ef3c8ef07 --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/GetUserByUidResult.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_GETUSERBYUIDRESULT_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_GETUSERBYUIDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT GetUserByUidResult : public ServiceResult + { + public: + struct Object + { + std::string avatarUrl; + std::string email; + std::string aliyunPk; + std::string phone; + std::string id; + std::string name; + }; + + + GetUserByUidResult(); + explicit GetUserByUidResult(const std::string &payload); + ~GetUserByUidResult(); + std::string getErrorMsg()const; + Object getObject()const; + std::string getErrorCode()const; + bool getSuccessful()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorMsg_; + Object object_; + std::string errorCode_; + bool successful_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_GETUSERBYUIDRESULT_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/InsertDevopsMemberRequest.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/InsertDevopsMemberRequest.h new file mode 100644 index 000000000..f07f8cd58 --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/InsertDevopsMemberRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_INSERTDEVOPSMEMBERREQUEST_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_INSERTDEVOPSMEMBERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT InsertDevopsMemberRequest : public RpcServiceRequest + { + + public: + InsertDevopsMemberRequest(); + ~InsertDevopsMemberRequest(); + + std::string getPhone()const; + void setPhone(const std::string& phone); + std::string getUserPk()const; + void setUserPk(const std::string& userPk); + std::string getEmail()const; + void setEmail(const std::string& email); + std::string getUserName()const; + void setUserName(const std::string& userName); + + private: + std::string phone_; + std::string userPk_; + std::string email_; + std::string userName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_INSERTDEVOPSMEMBERREQUEST_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/InsertDevopsMemberResult.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/InsertDevopsMemberResult.h new file mode 100644 index 000000000..f52867f98 --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/InsertDevopsMemberResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_INSERTDEVOPSMEMBERRESULT_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_INSERTDEVOPSMEMBERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT InsertDevopsMemberResult : public ServiceResult + { + public: + + + InsertDevopsMemberResult(); + explicit InsertDevopsMemberResult(const std::string &payload); + ~InsertDevopsMemberResult(); + std::string getObject()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string object_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_INSERTDEVOPSMEMBERRESULT_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/ListProjectSprintsRequest.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/ListProjectSprintsRequest.h new file mode 100644 index 000000000..070651f73 --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/ListProjectSprintsRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_LISTPROJECTSPRINTSREQUEST_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_LISTPROJECTSPRINTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT ListProjectSprintsRequest : public RpcServiceRequest + { + + public: + ListProjectSprintsRequest(); + ~ListProjectSprintsRequest(); + + std::string getProjectId()const; + void setProjectId(const std::string& projectId); + std::string getOrgId()const; + void setOrgId(const std::string& orgId); + + private: + std::string projectId_; + std::string orgId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_LISTPROJECTSPRINTSREQUEST_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/ListProjectSprintsResult.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/ListProjectSprintsResult.h new file mode 100644 index 000000000..707b0e2cb --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/ListProjectSprintsResult.h @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_LISTPROJECTSPRINTSRESULT_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_LISTPROJECTSPRINTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT ListProjectSprintsResult : public ServiceResult + { + public: + struct Sprint + { + struct PlanToDo + { + int tasks; + int workTimes; + int storyPoints; + }; + std::string startDate; + std::string status; + bool isDeleted; + std::string accomplished; + PlanToDo planToDo; + std::string updated; + std::string creatorId; + std::string projectId; + std::string id; + std::string dueDate; + std::string created; + std::string name; + }; + + + ListProjectSprintsResult(); + explicit ListProjectSprintsResult(const std::string &payload); + ~ListProjectSprintsResult(); + std::string getErrorMsg()const; + std::vector getObject()const; + std::string getErrorCode()const; + bool getSuccessful()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorMsg_; + std::vector object_; + std::string errorCode_; + bool successful_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_LISTPROJECTSPRINTSRESULT_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/ListProjectTaskFlowRequest.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/ListProjectTaskFlowRequest.h new file mode 100644 index 000000000..30424bcb6 --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/ListProjectTaskFlowRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_LISTPROJECTTASKFLOWREQUEST_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_LISTPROJECTTASKFLOWREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT ListProjectTaskFlowRequest : public RpcServiceRequest + { + + public: + ListProjectTaskFlowRequest(); + ~ListProjectTaskFlowRequest(); + + std::string getProjectId()const; + void setProjectId(const std::string& projectId); + std::string getOrgId()const; + void setOrgId(const std::string& orgId); + + private: + std::string projectId_; + std::string orgId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_LISTPROJECTTASKFLOWREQUEST_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/ListProjectTaskFlowResult.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/ListProjectTaskFlowResult.h new file mode 100644 index 000000000..3905e5104 --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/ListProjectTaskFlowResult.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_LISTPROJECTTASKFLOWRESULT_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_LISTPROJECTTASKFLOWRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT ListProjectTaskFlowResult : public ServiceResult + { + public: + struct Taskflow + { + std::string type; + std::string id; + }; + + + ListProjectTaskFlowResult(); + explicit ListProjectTaskFlowResult(const std::string &payload); + ~ListProjectTaskFlowResult(); + std::string getErrorMsg()const; + std::vector getObject()const; + std::string getErrorCode()const; + bool getSuccessful()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorMsg_; + std::vector object_; + std::string errorCode_; + bool successful_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_LISTPROJECTTASKFLOWRESULT_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/ListProjectTaskFlowStatusRequest.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/ListProjectTaskFlowStatusRequest.h new file mode 100644 index 000000000..afda8fb93 --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/ListProjectTaskFlowStatusRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_LISTPROJECTTASKFLOWSTATUSREQUEST_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_LISTPROJECTTASKFLOWSTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT ListProjectTaskFlowStatusRequest : public RpcServiceRequest + { + + public: + ListProjectTaskFlowStatusRequest(); + ~ListProjectTaskFlowStatusRequest(); + + std::string getTaskFlowId()const; + void setTaskFlowId(const std::string& taskFlowId); + std::string getOrgId()const; + void setOrgId(const std::string& orgId); + + private: + std::string taskFlowId_; + std::string orgId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_LISTPROJECTTASKFLOWSTATUSREQUEST_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/ListProjectTaskFlowStatusResult.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/ListProjectTaskFlowStatusResult.h new file mode 100644 index 000000000..9e209dbcd --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/ListProjectTaskFlowStatusResult.h @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_LISTPROJECTTASKFLOWSTATUSRESULT_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_LISTPROJECTTASKFLOWSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT ListProjectTaskFlowStatusResult : public ServiceResult + { + public: + struct TaskflowStatus + { + bool isDeleted; + std::string rejectStatusIds; + std::string taskflowId; + std::string updated; + int pos; + std::string creatorId; + std::string kind; + std::string id; + std::string created; + std::string name; + }; + + + ListProjectTaskFlowStatusResult(); + explicit ListProjectTaskFlowStatusResult(const std::string &payload); + ~ListProjectTaskFlowStatusResult(); + std::string getErrorMsg()const; + std::vector getObject()const; + std::string getErrorCode()const; + bool getSuccessful()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorMsg_; + std::vector object_; + std::string errorCode_; + bool successful_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_LISTPROJECTTASKFLOWSTATUSRESULT_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/ListProjectTasksRequest.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/ListProjectTasksRequest.h new file mode 100644 index 000000000..1355071be --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/ListProjectTasksRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_LISTPROJECTTASKSREQUEST_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_LISTPROJECTTASKSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT ListProjectTasksRequest : public RpcServiceRequest + { + + public: + ListProjectTasksRequest(); + ~ListProjectTasksRequest(); + + std::string getProjectIds()const; + void setProjectIds(const std::string& projectIds); + std::string getOrgId()const; + void setOrgId(const std::string& orgId); + + private: + std::string projectIds_; + std::string orgId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_LISTPROJECTTASKSREQUEST_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/ListProjectTasksResult.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/ListProjectTasksResult.h new file mode 100644 index 000000000..a7357bbaa --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/ListProjectTasksResult.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_LISTPROJECTTASKSRESULT_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_LISTPROJECTTASKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT ListProjectTasksResult : public ServiceResult + { + public: + struct Task + { + std::string taskgroupId; + std::string updated; + std::string creatorId; + std::string projectId; + std::string id; + std::string tasklistId; + std::string modifierId; + std::string name; + std::string created; + }; + + + ListProjectTasksResult(); + explicit ListProjectTasksResult(const std::string &payload); + ~ListProjectTasksResult(); + std::string getErrorMsg()const; + std::vector getObject()const; + std::string getErrorCode()const; + bool getSuccessful()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorMsg_; + std::vector object_; + std::string errorCode_; + bool successful_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_LISTPROJECTTASKSRESULT_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/ListScenarioFieldConfigRequest.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/ListScenarioFieldConfigRequest.h new file mode 100644 index 000000000..f91920ad5 --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/ListScenarioFieldConfigRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_LISTSCENARIOFIELDCONFIGREQUEST_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_LISTSCENARIOFIELDCONFIGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT ListScenarioFieldConfigRequest : public RpcServiceRequest + { + + public: + ListScenarioFieldConfigRequest(); + ~ListScenarioFieldConfigRequest(); + + std::string getProjectId()const; + void setProjectId(const std::string& projectId); + std::string getOrgId()const; + void setOrgId(const std::string& orgId); + + private: + std::string projectId_; + std::string orgId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_LISTSCENARIOFIELDCONFIGREQUEST_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/ListScenarioFieldConfigResult.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/ListScenarioFieldConfigResult.h new file mode 100644 index 000000000..11c220700 --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/ListScenarioFieldConfigResult.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_LISTSCENARIOFIELDCONFIGRESULT_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_LISTSCENARIOFIELDCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT ListScenarioFieldConfigResult : public ServiceResult + { + public: + struct ScenarioFieldConfig + { + std::string type; + std::string id; + }; + + + ListScenarioFieldConfigResult(); + explicit ListScenarioFieldConfigResult(const std::string &payload); + ~ListScenarioFieldConfigResult(); + std::string getErrorMsg()const; + std::vector getObject()const; + std::string getErrorCode()const; + bool getSuccessful()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorMsg_; + std::vector object_; + std::string errorCode_; + bool successful_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_LISTSCENARIOFIELDCONFIGRESULT_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/UpdateProjectRequest.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/UpdateProjectRequest.h new file mode 100644 index 000000000..616d892f7 --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/UpdateProjectRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_UPDATEPROJECTREQUEST_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_UPDATEPROJECTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT UpdateProjectRequest : public RpcServiceRequest + { + + public: + UpdateProjectRequest(); + ~UpdateProjectRequest(); + + std::string getName()const; + void setName(const std::string& name); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getProjectId()const; + void setProjectId(const std::string& projectId); + std::string getOrgId()const; + void setOrgId(const std::string& orgId); + + private: + std::string name_; + std::string description_; + std::string projectId_; + std::string orgId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_UPDATEPROJECTREQUEST_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/UpdateProjectResult.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/UpdateProjectResult.h new file mode 100644 index 000000000..bbf8c697c --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/UpdateProjectResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_UPDATEPROJECTRESULT_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_UPDATEPROJECTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT UpdateProjectResult : public ServiceResult + { + public: + + + UpdateProjectResult(); + explicit UpdateProjectResult(const std::string &payload); + ~UpdateProjectResult(); + std::string getObject()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string object_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_UPDATEPROJECTRESULT_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/UpdateProjectSprintRequest.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/UpdateProjectSprintRequest.h new file mode 100644 index 000000000..27f540822 --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/UpdateProjectSprintRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_UPDATEPROJECTSPRINTREQUEST_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_UPDATEPROJECTSPRINTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT UpdateProjectSprintRequest : public RpcServiceRequest + { + + public: + UpdateProjectSprintRequest(); + ~UpdateProjectSprintRequest(); + + std::string getExecutorId()const; + void setExecutorId(const std::string& executorId); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getStartDate()const; + void setStartDate(const std::string& startDate); + std::string getOrgId()const; + void setOrgId(const std::string& orgId); + std::string getSprintId()const; + void setSprintId(const std::string& sprintId); + std::string getDueDate()const; + void setDueDate(const std::string& dueDate); + std::string getName()const; + void setName(const std::string& name); + std::string getProjectId()const; + void setProjectId(const std::string& projectId); + + private: + std::string executorId_; + std::string description_; + std::string startDate_; + std::string orgId_; + std::string sprintId_; + std::string dueDate_; + std::string name_; + std::string projectId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_UPDATEPROJECTSPRINTREQUEST_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/UpdateProjectSprintResult.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/UpdateProjectSprintResult.h new file mode 100644 index 000000000..d49a4b07f --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/UpdateProjectSprintResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_UPDATEPROJECTSPRINTRESULT_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_UPDATEPROJECTSPRINTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT UpdateProjectSprintResult : public ServiceResult + { + public: + + + UpdateProjectSprintResult(); + explicit UpdateProjectSprintResult(const std::string &payload); + ~UpdateProjectSprintResult(); + std::string getErrorMsg()const; + bool getObject()const; + std::string getErrorCode()const; + bool getSuccessful()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorMsg_; + bool object_; + std::string errorCode_; + bool successful_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_UPDATEPROJECTSPRINTRESULT_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/UpdateProjectTaskRequest.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/UpdateProjectTaskRequest.h new file mode 100644 index 000000000..09e2a4ca3 --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/UpdateProjectTaskRequest.h @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_UPDATEPROJECTTASKREQUEST_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_UPDATEPROJECTTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT UpdateProjectTaskRequest : public RpcServiceRequest + { + + public: + UpdateProjectTaskRequest(); + ~UpdateProjectTaskRequest(); + + std::string getNote()const; + void setNote(const std::string& note); + std::string getVisible()const; + void setVisible(const std::string& visible); + std::string getExecutorId()const; + void setExecutorId(const std::string& executorId); + std::string getTaskFlowStatusId()const; + void setTaskFlowStatusId(const std::string& taskFlowStatusId); + std::string getScenarioFiieldConfigId()const; + void setScenarioFiieldConfigId(const std::string& scenarioFiieldConfigId); + std::string getStartDate()const; + void setStartDate(const std::string& startDate); + int getPriority()const; + void setPriority(int priority); + std::string getParentTaskId()const; + void setParentTaskId(const std::string& parentTaskId); + std::string getOrgId()const; + void setOrgId(const std::string& orgId); + std::string getContent()const; + void setContent(const std::string& content); + std::string getSprintId()const; + void setSprintId(const std::string& sprintId); + std::string getDueDate()const; + void setDueDate(const std::string& dueDate); + std::string getProjectId()const; + void setProjectId(const std::string& projectId); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + + private: + std::string note_; + std::string visible_; + std::string executorId_; + std::string taskFlowStatusId_; + std::string scenarioFiieldConfigId_; + std::string startDate_; + int priority_; + std::string parentTaskId_; + std::string orgId_; + std::string content_; + std::string sprintId_; + std::string dueDate_; + std::string projectId_; + std::string taskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_UPDATEPROJECTTASKREQUEST_H_ \ No newline at end of file diff --git a/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/UpdateProjectTaskResult.h b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/UpdateProjectTaskResult.h new file mode 100644 index 000000000..a95cee49d --- /dev/null +++ b/teambition-aliyun/include/alibabacloud/teambition-aliyun/model/UpdateProjectTaskResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_UPDATEPROJECTTASKRESULT_H_ +#define ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_UPDATEPROJECTTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Teambition_aliyun + { + namespace Model + { + class ALIBABACLOUD_TEAMBITION_ALIYUN_EXPORT UpdateProjectTaskResult : public ServiceResult + { + public: + + + UpdateProjectTaskResult(); + explicit UpdateProjectTaskResult(const std::string &payload); + ~UpdateProjectTaskResult(); + std::string getErrorMsg()const; + bool getObject()const; + std::string getErrorCode()const; + bool getSuccessful()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorMsg_; + bool object_; + std::string errorCode_; + bool successful_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TEAMBITION_ALIYUN_MODEL_UPDATEPROJECTTASKRESULT_H_ \ No newline at end of file diff --git a/teambition-aliyun/src/Teambition-aliyunClient.cc b/teambition-aliyun/src/Teambition-aliyunClient.cc new file mode 100644 index 000000000..e72b3a569 --- /dev/null +++ b/teambition-aliyun/src/Teambition-aliyunClient.cc @@ -0,0 +1,1061 @@ +/* + * 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 +#include + +using namespace AlibabaCloud; +using namespace AlibabaCloud::Location; +using namespace AlibabaCloud::Teambition_aliyun; +using namespace AlibabaCloud::Teambition_aliyun::Model; + +namespace +{ + const std::string SERVICE_NAME = "teambition-aliyun"; +} + +Teambition_aliyunClient::Teambition_aliyunClient(const Credentials &credentials, const ClientConfiguration &configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) +{ + auto locationClient = std::make_shared(credentials, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); +} + +Teambition_aliyunClient::Teambition_aliyunClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) +{ + auto locationClient = std::make_shared(credentialsProvider, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); +} + +Teambition_aliyunClient::Teambition_aliyunClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) +{ + auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); +} + +Teambition_aliyunClient::~Teambition_aliyunClient() +{} + +Teambition_aliyunClient::AddProjectMembersOutcome Teambition_aliyunClient::addProjectMembers(const AddProjectMembersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddProjectMembersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddProjectMembersOutcome(AddProjectMembersResult(outcome.result())); + else + return AddProjectMembersOutcome(outcome.error()); +} + +void Teambition_aliyunClient::addProjectMembersAsync(const AddProjectMembersRequest& request, const AddProjectMembersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addProjectMembers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Teambition_aliyunClient::AddProjectMembersOutcomeCallable Teambition_aliyunClient::addProjectMembersCallable(const AddProjectMembersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addProjectMembers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Teambition_aliyunClient::ApplySmallMicroOutcome Teambition_aliyunClient::applySmallMicro(const ApplySmallMicroRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ApplySmallMicroOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ApplySmallMicroOutcome(ApplySmallMicroResult(outcome.result())); + else + return ApplySmallMicroOutcome(outcome.error()); +} + +void Teambition_aliyunClient::applySmallMicroAsync(const ApplySmallMicroRequest& request, const ApplySmallMicroAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, applySmallMicro(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Teambition_aliyunClient::ApplySmallMicroOutcomeCallable Teambition_aliyunClient::applySmallMicroCallable(const ApplySmallMicroRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->applySmallMicro(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Teambition_aliyunClient::BactchInsertMembersOutcome Teambition_aliyunClient::bactchInsertMembers(const BactchInsertMembersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BactchInsertMembersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BactchInsertMembersOutcome(BactchInsertMembersResult(outcome.result())); + else + return BactchInsertMembersOutcome(outcome.error()); +} + +void Teambition_aliyunClient::bactchInsertMembersAsync(const BactchInsertMembersRequest& request, const BactchInsertMembersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, bactchInsertMembers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Teambition_aliyunClient::BactchInsertMembersOutcomeCallable Teambition_aliyunClient::bactchInsertMembersCallable(const BactchInsertMembersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->bactchInsertMembers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Teambition_aliyunClient::CheckAliyunUserExistsOutcome Teambition_aliyunClient::checkAliyunUserExists(const CheckAliyunUserExistsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CheckAliyunUserExistsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CheckAliyunUserExistsOutcome(CheckAliyunUserExistsResult(outcome.result())); + else + return CheckAliyunUserExistsOutcome(outcome.error()); +} + +void Teambition_aliyunClient::checkAliyunUserExistsAsync(const CheckAliyunUserExistsRequest& request, const CheckAliyunUserExistsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, checkAliyunUserExists(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Teambition_aliyunClient::CheckAliyunUserExistsOutcomeCallable Teambition_aliyunClient::checkAliyunUserExistsCallable(const CheckAliyunUserExistsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->checkAliyunUserExists(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Teambition_aliyunClient::CreateDevopsOrgOutcome Teambition_aliyunClient::createDevopsOrg(const CreateDevopsOrgRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDevopsOrgOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDevopsOrgOutcome(CreateDevopsOrgResult(outcome.result())); + else + return CreateDevopsOrgOutcome(outcome.error()); +} + +void Teambition_aliyunClient::createDevopsOrgAsync(const CreateDevopsOrgRequest& request, const CreateDevopsOrgAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDevopsOrg(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Teambition_aliyunClient::CreateDevopsOrgOutcomeCallable Teambition_aliyunClient::createDevopsOrgCallable(const CreateDevopsOrgRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDevopsOrg(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Teambition_aliyunClient::CreateProjectOutcome Teambition_aliyunClient::createProject(const CreateProjectRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateProjectOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateProjectOutcome(CreateProjectResult(outcome.result())); + else + return CreateProjectOutcome(outcome.error()); +} + +void Teambition_aliyunClient::createProjectAsync(const CreateProjectRequest& request, const CreateProjectAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createProject(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Teambition_aliyunClient::CreateProjectOutcomeCallable Teambition_aliyunClient::createProjectCallable(const CreateProjectRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createProject(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Teambition_aliyunClient::CreateProjectSprintOutcome Teambition_aliyunClient::createProjectSprint(const CreateProjectSprintRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateProjectSprintOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateProjectSprintOutcome(CreateProjectSprintResult(outcome.result())); + else + return CreateProjectSprintOutcome(outcome.error()); +} + +void Teambition_aliyunClient::createProjectSprintAsync(const CreateProjectSprintRequest& request, const CreateProjectSprintAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createProjectSprint(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Teambition_aliyunClient::CreateProjectSprintOutcomeCallable Teambition_aliyunClient::createProjectSprintCallable(const CreateProjectSprintRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createProjectSprint(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Teambition_aliyunClient::CreateProjectTaskOutcome Teambition_aliyunClient::createProjectTask(const CreateProjectTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateProjectTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateProjectTaskOutcome(CreateProjectTaskResult(outcome.result())); + else + return CreateProjectTaskOutcome(outcome.error()); +} + +void Teambition_aliyunClient::createProjectTaskAsync(const CreateProjectTaskRequest& request, const CreateProjectTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createProjectTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Teambition_aliyunClient::CreateProjectTaskOutcomeCallable Teambition_aliyunClient::createProjectTaskCallable(const CreateProjectTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createProjectTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Teambition_aliyunClient::DeleteMembersForOrgOutcome Teambition_aliyunClient::deleteMembersForOrg(const DeleteMembersForOrgRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteMembersForOrgOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteMembersForOrgOutcome(DeleteMembersForOrgResult(outcome.result())); + else + return DeleteMembersForOrgOutcome(outcome.error()); +} + +void Teambition_aliyunClient::deleteMembersForOrgAsync(const DeleteMembersForOrgRequest& request, const DeleteMembersForOrgAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteMembersForOrg(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Teambition_aliyunClient::DeleteMembersForOrgOutcomeCallable Teambition_aliyunClient::deleteMembersForOrgCallable(const DeleteMembersForOrgRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteMembersForOrg(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Teambition_aliyunClient::DeleteProjectOutcome Teambition_aliyunClient::deleteProject(const DeleteProjectRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteProjectOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteProjectOutcome(DeleteProjectResult(outcome.result())); + else + return DeleteProjectOutcome(outcome.error()); +} + +void Teambition_aliyunClient::deleteProjectAsync(const DeleteProjectRequest& request, const DeleteProjectAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteProject(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Teambition_aliyunClient::DeleteProjectOutcomeCallable Teambition_aliyunClient::deleteProjectCallable(const DeleteProjectRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteProject(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Teambition_aliyunClient::DeleteProjectMembersOutcome Teambition_aliyunClient::deleteProjectMembers(const DeleteProjectMembersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteProjectMembersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteProjectMembersOutcome(DeleteProjectMembersResult(outcome.result())); + else + return DeleteProjectMembersOutcome(outcome.error()); +} + +void Teambition_aliyunClient::deleteProjectMembersAsync(const DeleteProjectMembersRequest& request, const DeleteProjectMembersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteProjectMembers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Teambition_aliyunClient::DeleteProjectMembersOutcomeCallable Teambition_aliyunClient::deleteProjectMembersCallable(const DeleteProjectMembersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteProjectMembers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Teambition_aliyunClient::DeleteProjectSprintOutcome Teambition_aliyunClient::deleteProjectSprint(const DeleteProjectSprintRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteProjectSprintOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteProjectSprintOutcome(DeleteProjectSprintResult(outcome.result())); + else + return DeleteProjectSprintOutcome(outcome.error()); +} + +void Teambition_aliyunClient::deleteProjectSprintAsync(const DeleteProjectSprintRequest& request, const DeleteProjectSprintAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteProjectSprint(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Teambition_aliyunClient::DeleteProjectSprintOutcomeCallable Teambition_aliyunClient::deleteProjectSprintCallable(const DeleteProjectSprintRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteProjectSprint(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Teambition_aliyunClient::DeleteProjectTaskOutcome Teambition_aliyunClient::deleteProjectTask(const DeleteProjectTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteProjectTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteProjectTaskOutcome(DeleteProjectTaskResult(outcome.result())); + else + return DeleteProjectTaskOutcome(outcome.error()); +} + +void Teambition_aliyunClient::deleteProjectTaskAsync(const DeleteProjectTaskRequest& request, const DeleteProjectTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteProjectTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Teambition_aliyunClient::DeleteProjectTaskOutcomeCallable Teambition_aliyunClient::deleteProjectTaskCallable(const DeleteProjectTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteProjectTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Teambition_aliyunClient::GetOrganizationMembersOutcome Teambition_aliyunClient::getOrganizationMembers(const GetOrganizationMembersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetOrganizationMembersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetOrganizationMembersOutcome(GetOrganizationMembersResult(outcome.result())); + else + return GetOrganizationMembersOutcome(outcome.error()); +} + +void Teambition_aliyunClient::getOrganizationMembersAsync(const GetOrganizationMembersRequest& request, const GetOrganizationMembersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getOrganizationMembers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Teambition_aliyunClient::GetOrganizationMembersOutcomeCallable Teambition_aliyunClient::getOrganizationMembersCallable(const GetOrganizationMembersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getOrganizationMembers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Teambition_aliyunClient::GetProjectInfoOutcome Teambition_aliyunClient::getProjectInfo(const GetProjectInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetProjectInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetProjectInfoOutcome(GetProjectInfoResult(outcome.result())); + else + return GetProjectInfoOutcome(outcome.error()); +} + +void Teambition_aliyunClient::getProjectInfoAsync(const GetProjectInfoRequest& request, const GetProjectInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getProjectInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Teambition_aliyunClient::GetProjectInfoOutcomeCallable Teambition_aliyunClient::getProjectInfoCallable(const GetProjectInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getProjectInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Teambition_aliyunClient::GetProjectMembersOutcome Teambition_aliyunClient::getProjectMembers(const GetProjectMembersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetProjectMembersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetProjectMembersOutcome(GetProjectMembersResult(outcome.result())); + else + return GetProjectMembersOutcome(outcome.error()); +} + +void Teambition_aliyunClient::getProjectMembersAsync(const GetProjectMembersRequest& request, const GetProjectMembersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getProjectMembers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Teambition_aliyunClient::GetProjectMembersOutcomeCallable Teambition_aliyunClient::getProjectMembersCallable(const GetProjectMembersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getProjectMembers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Teambition_aliyunClient::GetProjectSprintInfoOutcome Teambition_aliyunClient::getProjectSprintInfo(const GetProjectSprintInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetProjectSprintInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetProjectSprintInfoOutcome(GetProjectSprintInfoResult(outcome.result())); + else + return GetProjectSprintInfoOutcome(outcome.error()); +} + +void Teambition_aliyunClient::getProjectSprintInfoAsync(const GetProjectSprintInfoRequest& request, const GetProjectSprintInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getProjectSprintInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Teambition_aliyunClient::GetProjectSprintInfoOutcomeCallable Teambition_aliyunClient::getProjectSprintInfoCallable(const GetProjectSprintInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getProjectSprintInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Teambition_aliyunClient::GetProjectTaskInfoOutcome Teambition_aliyunClient::getProjectTaskInfo(const GetProjectTaskInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetProjectTaskInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetProjectTaskInfoOutcome(GetProjectTaskInfoResult(outcome.result())); + else + return GetProjectTaskInfoOutcome(outcome.error()); +} + +void Teambition_aliyunClient::getProjectTaskInfoAsync(const GetProjectTaskInfoRequest& request, const GetProjectTaskInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getProjectTaskInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Teambition_aliyunClient::GetProjectTaskInfoOutcomeCallable Teambition_aliyunClient::getProjectTaskInfoCallable(const GetProjectTaskInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getProjectTaskInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Teambition_aliyunClient::GetUserByUidOutcome Teambition_aliyunClient::getUserByUid(const GetUserByUidRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetUserByUidOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetUserByUidOutcome(GetUserByUidResult(outcome.result())); + else + return GetUserByUidOutcome(outcome.error()); +} + +void Teambition_aliyunClient::getUserByUidAsync(const GetUserByUidRequest& request, const GetUserByUidAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getUserByUid(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Teambition_aliyunClient::GetUserByUidOutcomeCallable Teambition_aliyunClient::getUserByUidCallable(const GetUserByUidRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getUserByUid(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Teambition_aliyunClient::InsertDevopsMemberOutcome Teambition_aliyunClient::insertDevopsMember(const InsertDevopsMemberRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return InsertDevopsMemberOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return InsertDevopsMemberOutcome(InsertDevopsMemberResult(outcome.result())); + else + return InsertDevopsMemberOutcome(outcome.error()); +} + +void Teambition_aliyunClient::insertDevopsMemberAsync(const InsertDevopsMemberRequest& request, const InsertDevopsMemberAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, insertDevopsMember(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Teambition_aliyunClient::InsertDevopsMemberOutcomeCallable Teambition_aliyunClient::insertDevopsMemberCallable(const InsertDevopsMemberRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->insertDevopsMember(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Teambition_aliyunClient::ListProjectSprintsOutcome Teambition_aliyunClient::listProjectSprints(const ListProjectSprintsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListProjectSprintsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListProjectSprintsOutcome(ListProjectSprintsResult(outcome.result())); + else + return ListProjectSprintsOutcome(outcome.error()); +} + +void Teambition_aliyunClient::listProjectSprintsAsync(const ListProjectSprintsRequest& request, const ListProjectSprintsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listProjectSprints(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Teambition_aliyunClient::ListProjectSprintsOutcomeCallable Teambition_aliyunClient::listProjectSprintsCallable(const ListProjectSprintsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listProjectSprints(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Teambition_aliyunClient::ListProjectTaskFlowOutcome Teambition_aliyunClient::listProjectTaskFlow(const ListProjectTaskFlowRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListProjectTaskFlowOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListProjectTaskFlowOutcome(ListProjectTaskFlowResult(outcome.result())); + else + return ListProjectTaskFlowOutcome(outcome.error()); +} + +void Teambition_aliyunClient::listProjectTaskFlowAsync(const ListProjectTaskFlowRequest& request, const ListProjectTaskFlowAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listProjectTaskFlow(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Teambition_aliyunClient::ListProjectTaskFlowOutcomeCallable Teambition_aliyunClient::listProjectTaskFlowCallable(const ListProjectTaskFlowRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listProjectTaskFlow(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Teambition_aliyunClient::ListProjectTaskFlowStatusOutcome Teambition_aliyunClient::listProjectTaskFlowStatus(const ListProjectTaskFlowStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListProjectTaskFlowStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListProjectTaskFlowStatusOutcome(ListProjectTaskFlowStatusResult(outcome.result())); + else + return ListProjectTaskFlowStatusOutcome(outcome.error()); +} + +void Teambition_aliyunClient::listProjectTaskFlowStatusAsync(const ListProjectTaskFlowStatusRequest& request, const ListProjectTaskFlowStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listProjectTaskFlowStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Teambition_aliyunClient::ListProjectTaskFlowStatusOutcomeCallable Teambition_aliyunClient::listProjectTaskFlowStatusCallable(const ListProjectTaskFlowStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listProjectTaskFlowStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Teambition_aliyunClient::ListProjectTasksOutcome Teambition_aliyunClient::listProjectTasks(const ListProjectTasksRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListProjectTasksOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListProjectTasksOutcome(ListProjectTasksResult(outcome.result())); + else + return ListProjectTasksOutcome(outcome.error()); +} + +void Teambition_aliyunClient::listProjectTasksAsync(const ListProjectTasksRequest& request, const ListProjectTasksAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listProjectTasks(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Teambition_aliyunClient::ListProjectTasksOutcomeCallable Teambition_aliyunClient::listProjectTasksCallable(const ListProjectTasksRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listProjectTasks(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Teambition_aliyunClient::ListScenarioFieldConfigOutcome Teambition_aliyunClient::listScenarioFieldConfig(const ListScenarioFieldConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListScenarioFieldConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListScenarioFieldConfigOutcome(ListScenarioFieldConfigResult(outcome.result())); + else + return ListScenarioFieldConfigOutcome(outcome.error()); +} + +void Teambition_aliyunClient::listScenarioFieldConfigAsync(const ListScenarioFieldConfigRequest& request, const ListScenarioFieldConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listScenarioFieldConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Teambition_aliyunClient::ListScenarioFieldConfigOutcomeCallable Teambition_aliyunClient::listScenarioFieldConfigCallable(const ListScenarioFieldConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listScenarioFieldConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Teambition_aliyunClient::UpdateProjectOutcome Teambition_aliyunClient::updateProject(const UpdateProjectRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateProjectOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateProjectOutcome(UpdateProjectResult(outcome.result())); + else + return UpdateProjectOutcome(outcome.error()); +} + +void Teambition_aliyunClient::updateProjectAsync(const UpdateProjectRequest& request, const UpdateProjectAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateProject(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Teambition_aliyunClient::UpdateProjectOutcomeCallable Teambition_aliyunClient::updateProjectCallable(const UpdateProjectRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateProject(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Teambition_aliyunClient::UpdateProjectSprintOutcome Teambition_aliyunClient::updateProjectSprint(const UpdateProjectSprintRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateProjectSprintOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateProjectSprintOutcome(UpdateProjectSprintResult(outcome.result())); + else + return UpdateProjectSprintOutcome(outcome.error()); +} + +void Teambition_aliyunClient::updateProjectSprintAsync(const UpdateProjectSprintRequest& request, const UpdateProjectSprintAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateProjectSprint(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Teambition_aliyunClient::UpdateProjectSprintOutcomeCallable Teambition_aliyunClient::updateProjectSprintCallable(const UpdateProjectSprintRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateProjectSprint(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Teambition_aliyunClient::UpdateProjectTaskOutcome Teambition_aliyunClient::updateProjectTask(const UpdateProjectTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateProjectTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateProjectTaskOutcome(UpdateProjectTaskResult(outcome.result())); + else + return UpdateProjectTaskOutcome(outcome.error()); +} + +void Teambition_aliyunClient::updateProjectTaskAsync(const UpdateProjectTaskRequest& request, const UpdateProjectTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateProjectTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Teambition_aliyunClient::UpdateProjectTaskOutcomeCallable Teambition_aliyunClient::updateProjectTaskCallable(const UpdateProjectTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateProjectTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/teambition-aliyun/src/model/AddProjectMembersRequest.cc b/teambition-aliyun/src/model/AddProjectMembersRequest.cc new file mode 100644 index 000000000..b6fa02b60 --- /dev/null +++ b/teambition-aliyun/src/model/AddProjectMembersRequest.cc @@ -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 + +using AlibabaCloud::Teambition_aliyun::Model::AddProjectMembersRequest; + +AddProjectMembersRequest::AddProjectMembersRequest() : + RpcServiceRequest("teambition-aliyun", "2020-02-26", "AddProjectMembers") +{ + setMethod(HttpRequest::Method::Post); +} + +AddProjectMembersRequest::~AddProjectMembersRequest() +{} + +std::string AddProjectMembersRequest::getMembers()const +{ + return members_; +} + +void AddProjectMembersRequest::setMembers(const std::string& members) +{ + members_ = members; + setBodyParameter("Members", members); +} + +std::string AddProjectMembersRequest::getProjectId()const +{ + return projectId_; +} + +void AddProjectMembersRequest::setProjectId(const std::string& projectId) +{ + projectId_ = projectId; + setBodyParameter("ProjectId", projectId); +} + +std::string AddProjectMembersRequest::getOrgId()const +{ + return orgId_; +} + +void AddProjectMembersRequest::setOrgId(const std::string& orgId) +{ + orgId_ = orgId; + setBodyParameter("OrgId", orgId); +} + diff --git a/teambition-aliyun/src/model/AddProjectMembersResult.cc b/teambition-aliyun/src/model/AddProjectMembersResult.cc new file mode 100644 index 000000000..4f97f3c32 --- /dev/null +++ b/teambition-aliyun/src/model/AddProjectMembersResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Teambition_aliyun; +using namespace AlibabaCloud::Teambition_aliyun::Model; + +AddProjectMembersResult::AddProjectMembersResult() : + ServiceResult() +{} + +AddProjectMembersResult::AddProjectMembersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddProjectMembersResult::~AddProjectMembersResult() +{} + +void AddProjectMembersResult::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() == "true"; + +} + +std::string AddProjectMembersResult::getErrorMsg()const +{ + return errorMsg_; +} + +bool AddProjectMembersResult::getObject()const +{ + return object_; +} + +std::string AddProjectMembersResult::getErrorCode()const +{ + return errorCode_; +} + +bool AddProjectMembersResult::getSuccessful()const +{ + return successful_; +} + diff --git a/teambition-aliyun/src/model/ApplySmallMicroRequest.cc b/teambition-aliyun/src/model/ApplySmallMicroRequest.cc new file mode 100644 index 000000000..ff448ebb7 --- /dev/null +++ b/teambition-aliyun/src/model/ApplySmallMicroRequest.cc @@ -0,0 +1,161 @@ +/* + * 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 + +using AlibabaCloud::Teambition_aliyun::Model::ApplySmallMicroRequest; + +ApplySmallMicroRequest::ApplySmallMicroRequest() : + RpcServiceRequest("teambition-aliyun", "2020-02-26", "ApplySmallMicro") +{ + setMethod(HttpRequest::Method::Post); +} + +ApplySmallMicroRequest::~ApplySmallMicroRequest() +{} + +std::string ApplySmallMicroRequest::getApplicantEmail()const +{ + return applicantEmail_; +} + +void ApplySmallMicroRequest::setApplicantEmail(const std::string& applicantEmail) +{ + applicantEmail_ = applicantEmail; + setBodyParameter("ApplicantEmail", applicantEmail); +} + +std::string ApplySmallMicroRequest::getDevelopScale()const +{ + return developScale_; +} + +void ApplySmallMicroRequest::setDevelopScale(const std::string& developScale) +{ + developScale_ = developScale; + setParameter("DevelopScale", developScale); +} + +std::string ApplySmallMicroRequest::getType()const +{ + return type_; +} + +void ApplySmallMicroRequest::setType(const std::string& type) +{ + type_ = type; + setBodyParameter("Type", type); +} + +std::string ApplySmallMicroRequest::getOrgId()const +{ + return orgId_; +} + +void ApplySmallMicroRequest::setOrgId(const std::string& orgId) +{ + orgId_ = orgId; + setBodyParameter("OrgId", orgId); +} + +std::string ApplySmallMicroRequest::getApplicantPosition()const +{ + return applicantPosition_; +} + +void ApplySmallMicroRequest::setApplicantPosition(const std::string& applicantPosition) +{ + applicantPosition_ = applicantPosition; + setBodyParameter("ApplicantPosition", applicantPosition); +} + +std::string ApplySmallMicroRequest::getDevelopLanguage()const +{ + return developLanguage_; +} + +void ApplySmallMicroRequest::setDevelopLanguage(const std::string& developLanguage) +{ + developLanguage_ = developLanguage; + setBodyParameter("DevelopLanguage", developLanguage); +} + +std::string ApplySmallMicroRequest::getOrgName()const +{ + return orgName_; +} + +void ApplySmallMicroRequest::setOrgName(const std::string& orgName) +{ + orgName_ = orgName; + setBodyParameter("OrgName", orgName); +} + +std::string ApplySmallMicroRequest::getApplicantTel()const +{ + return applicantTel_; +} + +void ApplySmallMicroRequest::setApplicantTel(const std::string& applicantTel) +{ + applicantTel_ = applicantTel; + setBodyParameter("ApplicantTel", applicantTel); +} + +std::string ApplySmallMicroRequest::getSolution()const +{ + return solution_; +} + +void ApplySmallMicroRequest::setSolution(const std::string& solution) +{ + solution_ = solution; + setBodyParameter("Solution", solution); +} + +std::string ApplySmallMicroRequest::getForHelp()const +{ + return forHelp_; +} + +void ApplySmallMicroRequest::setForHelp(const std::string& forHelp) +{ + forHelp_ = forHelp; + setBodyParameter("ForHelp", forHelp); +} + +std::string ApplySmallMicroRequest::getApplicantName()const +{ + return applicantName_; +} + +void ApplySmallMicroRequest::setApplicantName(const std::string& applicantName) +{ + applicantName_ = applicantName; + setBodyParameter("ApplicantName", applicantName); +} + +std::string ApplySmallMicroRequest::getBusinessModel()const +{ + return businessModel_; +} + +void ApplySmallMicroRequest::setBusinessModel(const std::string& businessModel) +{ + businessModel_ = businessModel; + setBodyParameter("BusinessModel", businessModel); +} + diff --git a/teambition-aliyun/src/model/ApplySmallMicroResult.cc b/teambition-aliyun/src/model/ApplySmallMicroResult.cc new file mode 100644 index 000000000..7a1430548 --- /dev/null +++ b/teambition-aliyun/src/model/ApplySmallMicroResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Teambition_aliyun; +using namespace AlibabaCloud::Teambition_aliyun::Model; + +ApplySmallMicroResult::ApplySmallMicroResult() : + ServiceResult() +{} + +ApplySmallMicroResult::ApplySmallMicroResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ApplySmallMicroResult::~ApplySmallMicroResult() +{} + +void ApplySmallMicroResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["code"].isNull()) + code_ = std::stoi(value["code"].asString()); + if(!value["result"].isNull()) + result_ = value["result"].asString(); + if(!value["message"].isNull()) + message_ = value["message"].asString() == "true"; + if(!value["raw"].isNull()) + raw_ = value["raw"].asString() == "true"; + +} + +bool ApplySmallMicroResult::getMessage()const +{ + return message_; +} + +bool ApplySmallMicroResult::getRaw()const +{ + return raw_; +} + +int ApplySmallMicroResult::getCode()const +{ + return code_; +} + +std::string ApplySmallMicroResult::getResult()const +{ + return result_; +} + diff --git a/teambition-aliyun/src/model/BactchInsertMembersRequest.cc b/teambition-aliyun/src/model/BactchInsertMembersRequest.cc new file mode 100644 index 000000000..22be00571 --- /dev/null +++ b/teambition-aliyun/src/model/BactchInsertMembersRequest.cc @@ -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 + +using AlibabaCloud::Teambition_aliyun::Model::BactchInsertMembersRequest; + +BactchInsertMembersRequest::BactchInsertMembersRequest() : + RpcServiceRequest("teambition-aliyun", "2020-02-26", "BactchInsertMembers") +{ + setMethod(HttpRequest::Method::Post); +} + +BactchInsertMembersRequest::~BactchInsertMembersRequest() +{} + +std::string BactchInsertMembersRequest::getMembers()const +{ + return members_; +} + +void BactchInsertMembersRequest::setMembers(const std::string& members) +{ + members_ = members; + setBodyParameter("Members", members); +} + +std::string BactchInsertMembersRequest::getRealPk()const +{ + return realPk_; +} + +void BactchInsertMembersRequest::setRealPk(const std::string& realPk) +{ + realPk_ = realPk; + setBodyParameter("RealPk", realPk); +} + +std::string BactchInsertMembersRequest::getOrgId()const +{ + return orgId_; +} + +void BactchInsertMembersRequest::setOrgId(const std::string& orgId) +{ + orgId_ = orgId; + setBodyParameter("OrgId", orgId); +} + diff --git a/teambition-aliyun/src/model/BactchInsertMembersResult.cc b/teambition-aliyun/src/model/BactchInsertMembersResult.cc new file mode 100644 index 000000000..b57083a02 --- /dev/null +++ b/teambition-aliyun/src/model/BactchInsertMembersResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Teambition_aliyun; +using namespace AlibabaCloud::Teambition_aliyun::Model; + +BactchInsertMembersResult::BactchInsertMembersResult() : + ServiceResult() +{} + +BactchInsertMembersResult::BactchInsertMembersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +BactchInsertMembersResult::~BactchInsertMembersResult() +{} + +void BactchInsertMembersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Object"].isNull()) + object_ = value["Object"].asString() == "true"; + +} + +bool BactchInsertMembersResult::getObject()const +{ + return object_; +} + +std::string BactchInsertMembersResult::getErrorCode()const +{ + return errorCode_; +} + +std::string BactchInsertMembersResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool BactchInsertMembersResult::getSuccess()const +{ + return success_; +} + diff --git a/teambition-aliyun/src/model/CheckAliyunUserExistsRequest.cc b/teambition-aliyun/src/model/CheckAliyunUserExistsRequest.cc new file mode 100644 index 000000000..d01115c3b --- /dev/null +++ b/teambition-aliyun/src/model/CheckAliyunUserExistsRequest.cc @@ -0,0 +1,40 @@ +/* + * 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 + +using AlibabaCloud::Teambition_aliyun::Model::CheckAliyunUserExistsRequest; + +CheckAliyunUserExistsRequest::CheckAliyunUserExistsRequest() : + RpcServiceRequest("teambition-aliyun", "2020-02-26", "CheckAliyunUserExists") +{ + setMethod(HttpRequest::Method::Post); +} + +CheckAliyunUserExistsRequest::~CheckAliyunUserExistsRequest() +{} + +std::string CheckAliyunUserExistsRequest::getUserPk()const +{ + return userPk_; +} + +void CheckAliyunUserExistsRequest::setUserPk(const std::string& userPk) +{ + userPk_ = userPk; + setBodyParameter("UserPk", userPk); +} + diff --git a/teambition-aliyun/src/model/CheckAliyunUserExistsResult.cc b/teambition-aliyun/src/model/CheckAliyunUserExistsResult.cc new file mode 100644 index 000000000..eacc27e16 --- /dev/null +++ b/teambition-aliyun/src/model/CheckAliyunUserExistsResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Teambition_aliyun; +using namespace AlibabaCloud::Teambition_aliyun::Model; + +CheckAliyunUserExistsResult::CheckAliyunUserExistsResult() : + ServiceResult() +{} + +CheckAliyunUserExistsResult::CheckAliyunUserExistsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CheckAliyunUserExistsResult::~CheckAliyunUserExistsResult() +{} + +void CheckAliyunUserExistsResult::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() == "true"; + +} + +std::string CheckAliyunUserExistsResult::getErrorMsg()const +{ + return errorMsg_; +} + +bool CheckAliyunUserExistsResult::getObject()const +{ + return object_; +} + +std::string CheckAliyunUserExistsResult::getErrorCode()const +{ + return errorCode_; +} + +bool CheckAliyunUserExistsResult::getSuccessful()const +{ + return successful_; +} + diff --git a/teambition-aliyun/src/model/CreateDevopsOrgRequest.cc b/teambition-aliyun/src/model/CreateDevopsOrgRequest.cc new file mode 100644 index 000000000..138145bad --- /dev/null +++ b/teambition-aliyun/src/model/CreateDevopsOrgRequest.cc @@ -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 + +using AlibabaCloud::Teambition_aliyun::Model::CreateDevopsOrgRequest; + +CreateDevopsOrgRequest::CreateDevopsOrgRequest() : + RpcServiceRequest("teambition-aliyun", "2020-02-26", "CreateDevopsOrg") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateDevopsOrgRequest::~CreateDevopsOrgRequest() +{} + +std::string CreateDevopsOrgRequest::getOrgName()const +{ + return orgName_; +} + +void CreateDevopsOrgRequest::setOrgName(const std::string& orgName) +{ + orgName_ = orgName; + setBodyParameter("OrgName", orgName); +} + +std::string CreateDevopsOrgRequest::getSource()const +{ + return source_; +} + +void CreateDevopsOrgRequest::setSource(const std::string& source) +{ + source_ = source; + setBodyParameter("Source", source); +} + +std::string CreateDevopsOrgRequest::getRealPk()const +{ + return realPk_; +} + +void CreateDevopsOrgRequest::setRealPk(const std::string& realPk) +{ + realPk_ = realPk; + setBodyParameter("RealPk", realPk); +} + +int CreateDevopsOrgRequest::getDesiredMemberCount()const +{ + return desiredMemberCount_; +} + +void CreateDevopsOrgRequest::setDesiredMemberCount(int desiredMemberCount) +{ + desiredMemberCount_ = desiredMemberCount; + setBodyParameter("DesiredMemberCount", std::to_string(desiredMemberCount)); +} + diff --git a/teambition-aliyun/src/model/CreateDevopsOrgResult.cc b/teambition-aliyun/src/model/CreateDevopsOrgResult.cc new file mode 100644 index 000000000..e1f3b1911 --- /dev/null +++ b/teambition-aliyun/src/model/CreateDevopsOrgResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Teambition_aliyun; +using namespace AlibabaCloud::Teambition_aliyun::Model; + +CreateDevopsOrgResult::CreateDevopsOrgResult() : + ServiceResult() +{} + +CreateDevopsOrgResult::CreateDevopsOrgResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDevopsOrgResult::~CreateDevopsOrgResult() +{} + +void CreateDevopsOrgResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Object"].isNull()) + object_ = value["Object"].asString(); + +} + +std::string CreateDevopsOrgResult::getObject()const +{ + return object_; +} + +std::string CreateDevopsOrgResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CreateDevopsOrgResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool CreateDevopsOrgResult::getSuccess()const +{ + return success_; +} + diff --git a/teambition-aliyun/src/model/CreateProjectRequest.cc b/teambition-aliyun/src/model/CreateProjectRequest.cc new file mode 100644 index 000000000..0e197a12a --- /dev/null +++ b/teambition-aliyun/src/model/CreateProjectRequest.cc @@ -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 + +using AlibabaCloud::Teambition_aliyun::Model::CreateProjectRequest; + +CreateProjectRequest::CreateProjectRequest() : + RpcServiceRequest("teambition-aliyun", "2020-02-26", "CreateProject") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateProjectRequest::~CreateProjectRequest() +{} + +std::string CreateProjectRequest::getName()const +{ + return name_; +} + +void CreateProjectRequest::setName(const std::string& name) +{ + name_ = name; + setBodyParameter("Name", name); +} + +std::string CreateProjectRequest::getDescription()const +{ + return description_; +} + +void CreateProjectRequest::setDescription(const std::string& description) +{ + description_ = description; + setBodyParameter("Description", description); +} + +std::string CreateProjectRequest::getOrgId()const +{ + return orgId_; +} + +void CreateProjectRequest::setOrgId(const std::string& orgId) +{ + orgId_ = orgId; + setBodyParameter("OrgId", orgId); +} + diff --git a/teambition-aliyun/src/model/CreateProjectResult.cc b/teambition-aliyun/src/model/CreateProjectResult.cc new file mode 100644 index 000000000..816bbf45c --- /dev/null +++ b/teambition-aliyun/src/model/CreateProjectResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Teambition_aliyun; +using namespace AlibabaCloud::Teambition_aliyun::Model; + +CreateProjectResult::CreateProjectResult() : + ServiceResult() +{} + +CreateProjectResult::CreateProjectResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateProjectResult::~CreateProjectResult() +{} + +void CreateProjectResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Object"].isNull()) + object_ = value["Object"].asString(); + +} + +std::string CreateProjectResult::getObject()const +{ + return object_; +} + +std::string CreateProjectResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CreateProjectResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool CreateProjectResult::getSuccess()const +{ + return success_; +} + diff --git a/teambition-aliyun/src/model/CreateProjectSprintRequest.cc b/teambition-aliyun/src/model/CreateProjectSprintRequest.cc new file mode 100644 index 000000000..b87558285 --- /dev/null +++ b/teambition-aliyun/src/model/CreateProjectSprintRequest.cc @@ -0,0 +1,106 @@ +/* + * 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 + +using AlibabaCloud::Teambition_aliyun::Model::CreateProjectSprintRequest; + +CreateProjectSprintRequest::CreateProjectSprintRequest() : + RpcServiceRequest("teambition-aliyun", "2020-02-26", "CreateProjectSprint") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateProjectSprintRequest::~CreateProjectSprintRequest() +{} + +std::string CreateProjectSprintRequest::getExecutorId()const +{ + return executorId_; +} + +void CreateProjectSprintRequest::setExecutorId(const std::string& executorId) +{ + executorId_ = executorId; + setBodyParameter("ExecutorId", executorId); +} + +std::string CreateProjectSprintRequest::getDescription()const +{ + return description_; +} + +void CreateProjectSprintRequest::setDescription(const std::string& description) +{ + description_ = description; + setBodyParameter("Description", description); +} + +std::string CreateProjectSprintRequest::getStartDate()const +{ + return startDate_; +} + +void CreateProjectSprintRequest::setStartDate(const std::string& startDate) +{ + startDate_ = startDate; + setBodyParameter("StartDate", startDate); +} + +std::string CreateProjectSprintRequest::getOrgId()const +{ + return orgId_; +} + +void CreateProjectSprintRequest::setOrgId(const std::string& orgId) +{ + orgId_ = orgId; + setBodyParameter("OrgId", orgId); +} + +std::string CreateProjectSprintRequest::getDueDate()const +{ + return dueDate_; +} + +void CreateProjectSprintRequest::setDueDate(const std::string& dueDate) +{ + dueDate_ = dueDate; + setBodyParameter("DueDate", dueDate); +} + +std::string CreateProjectSprintRequest::getName()const +{ + return name_; +} + +void CreateProjectSprintRequest::setName(const std::string& name) +{ + name_ = name; + setBodyParameter("Name", name); +} + +std::string CreateProjectSprintRequest::getProjectId()const +{ + return projectId_; +} + +void CreateProjectSprintRequest::setProjectId(const std::string& projectId) +{ + projectId_ = projectId; + setBodyParameter("ProjectId", projectId); +} + diff --git a/teambition-aliyun/src/model/CreateProjectSprintResult.cc b/teambition-aliyun/src/model/CreateProjectSprintResult.cc new file mode 100644 index 000000000..5c05bb970 --- /dev/null +++ b/teambition-aliyun/src/model/CreateProjectSprintResult.cc @@ -0,0 +1,104 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Teambition_aliyun; +using namespace AlibabaCloud::Teambition_aliyun::Model; + +CreateProjectSprintResult::CreateProjectSprintResult() : + ServiceResult() +{} + +CreateProjectSprintResult::CreateProjectSprintResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateProjectSprintResult::~CreateProjectSprintResult() +{} + +void CreateProjectSprintResult::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["Created"].isNull()) + object_.created = objectNode["Created"].asString(); + if(!objectNode["DueDate"].isNull()) + object_.dueDate = objectNode["DueDate"].asString(); + if(!objectNode["Description"].isNull()) + object_.description = objectNode["Description"].asString(); + if(!objectNode["Accomplished"].isNull()) + object_.accomplished = objectNode["Accomplished"].asString(); + if(!objectNode["IsDeleted"].isNull()) + object_.isDeleted = objectNode["IsDeleted"].asString() == "true"; + if(!objectNode["Executor"].isNull()) + object_.executor = objectNode["Executor"].asString(); + if(!objectNode["Name"].isNull()) + object_.name = objectNode["Name"].asString(); + if(!objectNode["CreatorId"].isNull()) + object_.creatorId = objectNode["CreatorId"].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["Status"].isNull()) + object_.status = objectNode["Status"].asString(); + if(!objectNode["ProjectId"].isNull()) + object_.projectId = objectNode["ProjectId"].asString(); + auto planToDoNode = objectNode["PlanToDo"]; + if(!planToDoNode["StoryPoints"].isNull()) + object_.planToDo.storyPoints = std::stoi(planToDoNode["StoryPoints"].asString()); + if(!planToDoNode["WorkTimes"].isNull()) + object_.planToDo.workTimes = std::stoi(planToDoNode["WorkTimes"].asString()); + if(!planToDoNode["Tasks"].isNull()) + object_.planToDo.tasks = std::stoi(planToDoNode["Tasks"].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 CreateProjectSprintResult::getErrorMsg()const +{ + return errorMsg_; +} + +CreateProjectSprintResult::Object CreateProjectSprintResult::getObject()const +{ + return object_; +} + +std::string CreateProjectSprintResult::getErrorCode()const +{ + return errorCode_; +} + +bool CreateProjectSprintResult::getSuccessful()const +{ + return successful_; +} + diff --git a/teambition-aliyun/src/model/CreateProjectTaskRequest.cc b/teambition-aliyun/src/model/CreateProjectTaskRequest.cc new file mode 100644 index 000000000..a8728eada --- /dev/null +++ b/teambition-aliyun/src/model/CreateProjectTaskRequest.cc @@ -0,0 +1,183 @@ +/* + * 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 + +using AlibabaCloud::Teambition_aliyun::Model::CreateProjectTaskRequest; + +CreateProjectTaskRequest::CreateProjectTaskRequest() : + RpcServiceRequest("teambition-aliyun", "2020-02-26", "CreateProjectTask") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateProjectTaskRequest::~CreateProjectTaskRequest() +{} + +std::string CreateProjectTaskRequest::getNote()const +{ + return note_; +} + +void CreateProjectTaskRequest::setNote(const std::string& note) +{ + note_ = note; + setBodyParameter("Note", note); +} + +std::string CreateProjectTaskRequest::getVisible()const +{ + return visible_; +} + +void CreateProjectTaskRequest::setVisible(const std::string& visible) +{ + visible_ = visible; + setBodyParameter("Visible", visible); +} + +std::string CreateProjectTaskRequest::getExecutorId()const +{ + return executorId_; +} + +void CreateProjectTaskRequest::setExecutorId(const std::string& executorId) +{ + executorId_ = executorId; + setBodyParameter("ExecutorId", executorId); +} + +std::string CreateProjectTaskRequest::getStartDate()const +{ + return startDate_; +} + +void CreateProjectTaskRequest::setStartDate(const std::string& startDate) +{ + startDate_ = startDate; + setBodyParameter("StartDate", startDate); +} + +int CreateProjectTaskRequest::getPriority()const +{ + return priority_; +} + +void CreateProjectTaskRequest::setPriority(int priority) +{ + priority_ = priority; + setBodyParameter("Priority", std::to_string(priority)); +} + +std::string CreateProjectTaskRequest::getParentTaskId()const +{ + return parentTaskId_; +} + +void CreateProjectTaskRequest::setParentTaskId(const std::string& parentTaskId) +{ + parentTaskId_ = parentTaskId; + setBodyParameter("ParentTaskId", parentTaskId); +} + +std::string CreateProjectTaskRequest::getOrgId()const +{ + return orgId_; +} + +void CreateProjectTaskRequest::setOrgId(const std::string& orgId) +{ + orgId_ = orgId; + setBodyParameter("OrgId", orgId); +} + +std::string CreateProjectTaskRequest::getContent()const +{ + return content_; +} + +void CreateProjectTaskRequest::setContent(const std::string& content) +{ + content_ = content; + setBodyParameter("Content", content); +} + +std::string CreateProjectTaskRequest::getSprintId()const +{ + return sprintId_; +} + +void CreateProjectTaskRequest::setSprintId(const std::string& sprintId) +{ + sprintId_ = sprintId; + setBodyParameter("SprintId", sprintId); +} + +std::string CreateProjectTaskRequest::getDueDate()const +{ + return dueDate_; +} + +void CreateProjectTaskRequest::setDueDate(const std::string& dueDate) +{ + dueDate_ = dueDate; + setBodyParameter("DueDate", dueDate); +} + +std::string CreateProjectTaskRequest::getTasFlowStatusId()const +{ + return tasFlowStatusId_; +} + +void CreateProjectTaskRequest::setTasFlowStatusId(const std::string& tasFlowStatusId) +{ + tasFlowStatusId_ = tasFlowStatusId; + setBodyParameter("TasFlowStatusId", tasFlowStatusId); +} + +std::string CreateProjectTaskRequest::getScenarioFieldConfigId()const +{ + return scenarioFieldConfigId_; +} + +void CreateProjectTaskRequest::setScenarioFieldConfigId(const std::string& scenarioFieldConfigId) +{ + scenarioFieldConfigId_ = scenarioFieldConfigId; + setBodyParameter("ScenarioFieldConfigId", scenarioFieldConfigId); +} + +std::string CreateProjectTaskRequest::getProjectId()const +{ + return projectId_; +} + +void CreateProjectTaskRequest::setProjectId(const std::string& projectId) +{ + projectId_ = projectId; + setBodyParameter("ProjectId", projectId); +} + +std::string CreateProjectTaskRequest::getTaskListId()const +{ + return taskListId_; +} + +void CreateProjectTaskRequest::setTaskListId(const std::string& taskListId) +{ + taskListId_ = taskListId; + setBodyParameter("TaskListId", taskListId); +} + diff --git a/teambition-aliyun/src/model/CreateProjectTaskResult.cc b/teambition-aliyun/src/model/CreateProjectTaskResult.cc new file mode 100644 index 000000000..126d5c66f --- /dev/null +++ b/teambition-aliyun/src/model/CreateProjectTaskResult.cc @@ -0,0 +1,121 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Teambition_aliyun; +using namespace AlibabaCloud::Teambition_aliyun::Model; + +CreateProjectTaskResult::CreateProjectTaskResult() : + ServiceResult() +{} + +CreateProjectTaskResult::CreateProjectTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateProjectTaskResult::~CreateProjectTaskResult() +{} + +void CreateProjectTaskResult::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["Note"].isNull()) + object_.note = objectNode["Note"].asString(); + if(!objectNode["TasklistId"].isNull()) + object_.tasklistId = objectNode["TasklistId"].asString(); + if(!objectNode["DueDate"].isNull()) + object_.dueDate = objectNode["DueDate"].asString(); + if(!objectNode["Rating"].isNull()) + object_.rating = std::stoi(objectNode["Rating"].asString()); + if(!objectNode["Source"].isNull()) + object_.source = objectNode["Source"].asString(); + if(!objectNode["Content"].isNull()) + object_.content = objectNode["Content"].asString(); + if(!objectNode["TaskflowstatusId"].isNull()) + object_.taskflowstatusId = objectNode["TaskflowstatusId"].asString(); + if(!objectNode["TaskType"].isNull()) + object_.taskType = objectNode["TaskType"].asString(); + if(!objectNode["ScenarioFieldConfigId"].isNull()) + object_.scenarioFieldConfigId = objectNode["ScenarioFieldConfigId"].asString(); + if(!objectNode["Pos"].isNull()) + object_.pos = std::stoi(objectNode["Pos"].asString()); + if(!objectNode["AncestorIds"].isNull()) + object_.ancestorIds = objectNode["AncestorIds"].asString(); + if(!objectNode["CreatorId"].isNull()) + object_.creatorId = objectNode["CreatorId"].asString(); + if(!objectNode["Visible"].isNull()) + object_.visible = objectNode["Visible"].asString(); + if(!objectNode["ExecutorId"].isNull()) + object_.executorId = objectNode["ExecutorId"].asString(); + if(!objectNode["StoryPoint"].isNull()) + object_.storyPoint = objectNode["StoryPoint"].asString(); + if(!objectNode["Created"].isNull()) + object_.created = objectNode["Created"].asString(); + if(!objectNode["OrganizationId"].isNull()) + object_.organizationId = objectNode["OrganizationId"].asString(); + if(!objectNode["Priority"].isNull()) + object_.priority = std::stoi(objectNode["Priority"].asString()); + if(!objectNode["IsDone"].isNull()) + object_.isDone = objectNode["IsDone"].asString() == "true"; + if(!objectNode["Id"].isNull()) + object_.id = objectNode["Id"].asString(); + if(!objectNode["Updated"].isNull()) + object_.updated = objectNode["Updated"].asString(); + if(!objectNode["UniqueId"].isNull()) + object_.uniqueId = std::stoi(objectNode["UniqueId"].asString()); + if(!objectNode["StartDate"].isNull()) + object_.startDate = objectNode["StartDate"].asString(); + if(!objectNode["SprintId"].isNull()) + object_.sprintId = objectNode["SprintId"].asString(); + if(!objectNode["ProjectId"].isNull()) + object_.projectId = objectNode["ProjectId"].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 CreateProjectTaskResult::getErrorMsg()const +{ + return errorMsg_; +} + +CreateProjectTaskResult::Object CreateProjectTaskResult::getObject()const +{ + return object_; +} + +std::string CreateProjectTaskResult::getErrorCode()const +{ + return errorCode_; +} + +bool CreateProjectTaskResult::getSuccessful()const +{ + return successful_; +} + diff --git a/teambition-aliyun/src/model/DeleteMembersForOrgRequest.cc b/teambition-aliyun/src/model/DeleteMembersForOrgRequest.cc new file mode 100644 index 000000000..bf37997e8 --- /dev/null +++ b/teambition-aliyun/src/model/DeleteMembersForOrgRequest.cc @@ -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 + +using AlibabaCloud::Teambition_aliyun::Model::DeleteMembersForOrgRequest; + +DeleteMembersForOrgRequest::DeleteMembersForOrgRequest() : + RpcServiceRequest("teambition-aliyun", "2020-02-26", "DeleteMembersForOrg") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteMembersForOrgRequest::~DeleteMembersForOrgRequest() +{} + +std::string DeleteMembersForOrgRequest::getRealPk()const +{ + return realPk_; +} + +void DeleteMembersForOrgRequest::setRealPk(const std::string& realPk) +{ + realPk_ = realPk; + setBodyParameter("RealPk", realPk); +} + +std::string DeleteMembersForOrgRequest::getUserId()const +{ + return userId_; +} + +void DeleteMembersForOrgRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setBodyParameter("UserId", userId); +} + +std::string DeleteMembersForOrgRequest::getOrgId()const +{ + return orgId_; +} + +void DeleteMembersForOrgRequest::setOrgId(const std::string& orgId) +{ + orgId_ = orgId; + setBodyParameter("OrgId", orgId); +} + diff --git a/teambition-aliyun/src/model/DeleteMembersForOrgResult.cc b/teambition-aliyun/src/model/DeleteMembersForOrgResult.cc new file mode 100644 index 000000000..ad4901b81 --- /dev/null +++ b/teambition-aliyun/src/model/DeleteMembersForOrgResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Teambition_aliyun; +using namespace AlibabaCloud::Teambition_aliyun::Model; + +DeleteMembersForOrgResult::DeleteMembersForOrgResult() : + ServiceResult() +{} + +DeleteMembersForOrgResult::DeleteMembersForOrgResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteMembersForOrgResult::~DeleteMembersForOrgResult() +{} + +void DeleteMembersForOrgResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Object"].isNull()) + object_ = value["Object"].asString() == "true"; + +} + +bool DeleteMembersForOrgResult::getObject()const +{ + return object_; +} + +std::string DeleteMembersForOrgResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DeleteMembersForOrgResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool DeleteMembersForOrgResult::getSuccess()const +{ + return success_; +} + diff --git a/teambition-aliyun/src/model/DeleteProjectMembersRequest.cc b/teambition-aliyun/src/model/DeleteProjectMembersRequest.cc new file mode 100644 index 000000000..c859a4ccb --- /dev/null +++ b/teambition-aliyun/src/model/DeleteProjectMembersRequest.cc @@ -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 + +using AlibabaCloud::Teambition_aliyun::Model::DeleteProjectMembersRequest; + +DeleteProjectMembersRequest::DeleteProjectMembersRequest() : + RpcServiceRequest("teambition-aliyun", "2020-02-26", "DeleteProjectMembers") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteProjectMembersRequest::~DeleteProjectMembersRequest() +{} + +std::string DeleteProjectMembersRequest::getUserIds()const +{ + return userIds_; +} + +void DeleteProjectMembersRequest::setUserIds(const std::string& userIds) +{ + userIds_ = userIds; + setBodyParameter("UserIds", userIds); +} + +std::string DeleteProjectMembersRequest::getProjectId()const +{ + return projectId_; +} + +void DeleteProjectMembersRequest::setProjectId(const std::string& projectId) +{ + projectId_ = projectId; + setBodyParameter("ProjectId", projectId); +} + +std::string DeleteProjectMembersRequest::getOrgId()const +{ + return orgId_; +} + +void DeleteProjectMembersRequest::setOrgId(const std::string& orgId) +{ + orgId_ = orgId; + setBodyParameter("OrgId", orgId); +} + diff --git a/teambition-aliyun/src/model/DeleteProjectMembersResult.cc b/teambition-aliyun/src/model/DeleteProjectMembersResult.cc new file mode 100644 index 000000000..553c29ced --- /dev/null +++ b/teambition-aliyun/src/model/DeleteProjectMembersResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Teambition_aliyun; +using namespace AlibabaCloud::Teambition_aliyun::Model; + +DeleteProjectMembersResult::DeleteProjectMembersResult() : + ServiceResult() +{} + +DeleteProjectMembersResult::DeleteProjectMembersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteProjectMembersResult::~DeleteProjectMembersResult() +{} + +void DeleteProjectMembersResult::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() == "true"; + +} + +std::string DeleteProjectMembersResult::getErrorMsg()const +{ + return errorMsg_; +} + +bool DeleteProjectMembersResult::getObject()const +{ + return object_; +} + +std::string DeleteProjectMembersResult::getErrorCode()const +{ + return errorCode_; +} + +bool DeleteProjectMembersResult::getSuccessful()const +{ + return successful_; +} + diff --git a/teambition-aliyun/src/model/DeleteProjectRequest.cc b/teambition-aliyun/src/model/DeleteProjectRequest.cc new file mode 100644 index 000000000..18da07762 --- /dev/null +++ b/teambition-aliyun/src/model/DeleteProjectRequest.cc @@ -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 + +using AlibabaCloud::Teambition_aliyun::Model::DeleteProjectRequest; + +DeleteProjectRequest::DeleteProjectRequest() : + RpcServiceRequest("teambition-aliyun", "2020-02-26", "DeleteProject") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteProjectRequest::~DeleteProjectRequest() +{} + +std::string DeleteProjectRequest::getProjectId()const +{ + return projectId_; +} + +void DeleteProjectRequest::setProjectId(const std::string& projectId) +{ + projectId_ = projectId; + setBodyParameter("ProjectId", projectId); +} + +std::string DeleteProjectRequest::getOrgId()const +{ + return orgId_; +} + +void DeleteProjectRequest::setOrgId(const std::string& orgId) +{ + orgId_ = orgId; + setBodyParameter("OrgId", orgId); +} + diff --git a/teambition-aliyun/src/model/DeleteProjectResult.cc b/teambition-aliyun/src/model/DeleteProjectResult.cc new file mode 100644 index 000000000..caadb05d1 --- /dev/null +++ b/teambition-aliyun/src/model/DeleteProjectResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Teambition_aliyun; +using namespace AlibabaCloud::Teambition_aliyun::Model; + +DeleteProjectResult::DeleteProjectResult() : + ServiceResult() +{} + +DeleteProjectResult::DeleteProjectResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteProjectResult::~DeleteProjectResult() +{} + +void DeleteProjectResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Object"].isNull()) + object_ = value["Object"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DeleteProjectResult::getObject()const +{ + return object_; +} + +std::string DeleteProjectResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DeleteProjectResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool DeleteProjectResult::getSuccess()const +{ + return success_; +} + diff --git a/teambition-aliyun/src/model/DeleteProjectSprintRequest.cc b/teambition-aliyun/src/model/DeleteProjectSprintRequest.cc new file mode 100644 index 000000000..6f45b8c72 --- /dev/null +++ b/teambition-aliyun/src/model/DeleteProjectSprintRequest.cc @@ -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 + +using AlibabaCloud::Teambition_aliyun::Model::DeleteProjectSprintRequest; + +DeleteProjectSprintRequest::DeleteProjectSprintRequest() : + RpcServiceRequest("teambition-aliyun", "2020-02-26", "DeleteProjectSprint") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteProjectSprintRequest::~DeleteProjectSprintRequest() +{} + +std::string DeleteProjectSprintRequest::getSprintId()const +{ + return sprintId_; +} + +void DeleteProjectSprintRequest::setSprintId(const std::string& sprintId) +{ + sprintId_ = sprintId; + setBodyParameter("SprintId", sprintId); +} + +std::string DeleteProjectSprintRequest::getOrgId()const +{ + return orgId_; +} + +void DeleteProjectSprintRequest::setOrgId(const std::string& orgId) +{ + orgId_ = orgId; + setBodyParameter("OrgId", orgId); +} + diff --git a/teambition-aliyun/src/model/DeleteProjectSprintResult.cc b/teambition-aliyun/src/model/DeleteProjectSprintResult.cc new file mode 100644 index 000000000..2fd47a01e --- /dev/null +++ b/teambition-aliyun/src/model/DeleteProjectSprintResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Teambition_aliyun; +using namespace AlibabaCloud::Teambition_aliyun::Model; + +DeleteProjectSprintResult::DeleteProjectSprintResult() : + ServiceResult() +{} + +DeleteProjectSprintResult::DeleteProjectSprintResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteProjectSprintResult::~DeleteProjectSprintResult() +{} + +void DeleteProjectSprintResult::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() == "true"; + +} + +std::string DeleteProjectSprintResult::getErrorMsg()const +{ + return errorMsg_; +} + +bool DeleteProjectSprintResult::getObject()const +{ + return object_; +} + +std::string DeleteProjectSprintResult::getErrorCode()const +{ + return errorCode_; +} + +bool DeleteProjectSprintResult::getSuccessful()const +{ + return successful_; +} + diff --git a/teambition-aliyun/src/model/DeleteProjectTaskRequest.cc b/teambition-aliyun/src/model/DeleteProjectTaskRequest.cc new file mode 100644 index 000000000..b26da4cb3 --- /dev/null +++ b/teambition-aliyun/src/model/DeleteProjectTaskRequest.cc @@ -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 + +using AlibabaCloud::Teambition_aliyun::Model::DeleteProjectTaskRequest; + +DeleteProjectTaskRequest::DeleteProjectTaskRequest() : + RpcServiceRequest("teambition-aliyun", "2020-02-26", "DeleteProjectTask") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteProjectTaskRequest::~DeleteProjectTaskRequest() +{} + +std::string DeleteProjectTaskRequest::getOrgId()const +{ + return orgId_; +} + +void DeleteProjectTaskRequest::setOrgId(const std::string& orgId) +{ + orgId_ = orgId; + setBodyParameter("OrgId", orgId); +} + +std::string DeleteProjectTaskRequest::getTaskId()const +{ + return taskId_; +} + +void DeleteProjectTaskRequest::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; + setBodyParameter("TaskId", taskId); +} + diff --git a/teambition-aliyun/src/model/DeleteProjectTaskResult.cc b/teambition-aliyun/src/model/DeleteProjectTaskResult.cc new file mode 100644 index 000000000..39ce50208 --- /dev/null +++ b/teambition-aliyun/src/model/DeleteProjectTaskResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Teambition_aliyun; +using namespace AlibabaCloud::Teambition_aliyun::Model; + +DeleteProjectTaskResult::DeleteProjectTaskResult() : + ServiceResult() +{} + +DeleteProjectTaskResult::DeleteProjectTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteProjectTaskResult::~DeleteProjectTaskResult() +{} + +void DeleteProjectTaskResult::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() == "true"; + +} + +std::string DeleteProjectTaskResult::getErrorMsg()const +{ + return errorMsg_; +} + +bool DeleteProjectTaskResult::getObject()const +{ + return object_; +} + +std::string DeleteProjectTaskResult::getErrorCode()const +{ + return errorCode_; +} + +bool DeleteProjectTaskResult::getSuccessful()const +{ + return successful_; +} + diff --git a/teambition-aliyun/src/model/GetOrganizationMembersRequest.cc b/teambition-aliyun/src/model/GetOrganizationMembersRequest.cc new file mode 100644 index 000000000..4a0472ae9 --- /dev/null +++ b/teambition-aliyun/src/model/GetOrganizationMembersRequest.cc @@ -0,0 +1,40 @@ +/* + * 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 + +using AlibabaCloud::Teambition_aliyun::Model::GetOrganizationMembersRequest; + +GetOrganizationMembersRequest::GetOrganizationMembersRequest() : + RpcServiceRequest("teambition-aliyun", "2020-02-26", "GetOrganizationMembers") +{ + setMethod(HttpRequest::Method::Post); +} + +GetOrganizationMembersRequest::~GetOrganizationMembersRequest() +{} + +std::string GetOrganizationMembersRequest::getOrgId()const +{ + return orgId_; +} + +void GetOrganizationMembersRequest::setOrgId(const std::string& orgId) +{ + orgId_ = orgId; + setBodyParameter("OrgId", orgId); +} + diff --git a/teambition-aliyun/src/model/GetOrganizationMembersResult.cc b/teambition-aliyun/src/model/GetOrganizationMembersResult.cc new file mode 100644 index 000000000..2b29e542c --- /dev/null +++ b/teambition-aliyun/src/model/GetOrganizationMembersResult.cc @@ -0,0 +1,90 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Teambition_aliyun; +using namespace AlibabaCloud::Teambition_aliyun::Model; + +GetOrganizationMembersResult::GetOrganizationMembersResult() : + ServiceResult() +{} + +GetOrganizationMembersResult::GetOrganizationMembersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetOrganizationMembersResult::~GetOrganizationMembersResult() +{} + +void GetOrganizationMembersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allObjectNode = value["Object"]["member"]; + for (auto valueObjectmember : allObjectNode) + { + Member objectObject; + if(!valueObjectmember["MemberId"].isNull()) + objectObject.memberId = valueObjectmember["MemberId"].asString(); + if(!valueObjectmember["UserId"].isNull()) + objectObject.userId = valueObjectmember["UserId"].asString(); + if(!valueObjectmember["Role"].isNull()) + objectObject.role = std::stoi(valueObjectmember["Role"].asString()); + if(!valueObjectmember["Name"].isNull()) + objectObject.name = valueObjectmember["Name"].asString(); + if(!valueObjectmember["AvatarUrl"].isNull()) + objectObject.avatarUrl = valueObjectmember["AvatarUrl"].asString(); + if(!valueObjectmember["Email"].isNull()) + objectObject.email = valueObjectmember["Email"].asString(); + if(!valueObjectmember["Phone"].isNull()) + objectObject.phone = valueObjectmember["Phone"].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 GetOrganizationMembersResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::vector GetOrganizationMembersResult::getObject()const +{ + return object_; +} + +std::string GetOrganizationMembersResult::getErrorCode()const +{ + return errorCode_; +} + +bool GetOrganizationMembersResult::getSuccessful()const +{ + return successful_; +} + diff --git a/teambition-aliyun/src/model/GetProjectInfoRequest.cc b/teambition-aliyun/src/model/GetProjectInfoRequest.cc new file mode 100644 index 000000000..8d24f48d8 --- /dev/null +++ b/teambition-aliyun/src/model/GetProjectInfoRequest.cc @@ -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 + +using AlibabaCloud::Teambition_aliyun::Model::GetProjectInfoRequest; + +GetProjectInfoRequest::GetProjectInfoRequest() : + RpcServiceRequest("teambition-aliyun", "2020-02-26", "GetProjectInfo") +{ + setMethod(HttpRequest::Method::Post); +} + +GetProjectInfoRequest::~GetProjectInfoRequest() +{} + +std::string GetProjectInfoRequest::getProjectId()const +{ + return projectId_; +} + +void GetProjectInfoRequest::setProjectId(const std::string& projectId) +{ + projectId_ = projectId; + setBodyParameter("ProjectId", projectId); +} + +std::string GetProjectInfoRequest::getOrgId()const +{ + return orgId_; +} + +void GetProjectInfoRequest::setOrgId(const std::string& orgId) +{ + orgId_ = orgId; + setBodyParameter("OrgId", orgId); +} + diff --git a/teambition-aliyun/src/model/GetProjectInfoResult.cc b/teambition-aliyun/src/model/GetProjectInfoResult.cc new file mode 100644 index 000000000..a01fd4cb1 --- /dev/null +++ b/teambition-aliyun/src/model/GetProjectInfoResult.cc @@ -0,0 +1,129 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Teambition_aliyun; +using namespace AlibabaCloud::Teambition_aliyun::Model; + +GetProjectInfoResult::GetProjectInfoResult() : + ServiceResult() +{} + +GetProjectInfoResult::GetProjectInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetProjectInfoResult::~GetProjectInfoResult() +{} + +void GetProjectInfoResult::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["RootCollectionId"].isNull()) + object_.rootCollectionId = objectNode["RootCollectionId"].asString(); + if(!objectNode["EndDate"].isNull()) + object_.endDate = objectNode["EndDate"].asString(); + if(!objectNode["IsArchived"].isNull()) + object_.isArchived = objectNode["IsArchived"].asString() == "true"; + if(!objectNode["ModifierId"].isNull()) + object_.modifierId = objectNode["ModifierId"].asString(); + if(!objectNode["SourceId"].isNull()) + object_.sourceId = objectNode["SourceId"].asString(); + if(!objectNode["Description"].isNull()) + object_.description = objectNode["Description"].asString(); + if(!objectNode["Py"].isNull()) + object_.py = objectNode["Py"].asString(); + if(!objectNode["DefaultRoleId"].isNull()) + object_.defaultRoleId = objectNode["DefaultRoleId"].asString(); + if(!objectNode["Customfields"].isNull()) + object_.customfields = objectNode["Customfields"].asString(); + if(!objectNode["IsDeleted"].isNull()) + object_.isDeleted = objectNode["IsDeleted"].asString() == "true"; + if(!objectNode["UniqueIdPrefix"].isNull()) + object_.uniqueIdPrefix = objectNode["UniqueIdPrefix"].asString(); + if(!objectNode["NextTaskUniqueId"].isNull()) + object_.nextTaskUniqueId = std::stoi(objectNode["NextTaskUniqueId"].asString()); + if(!objectNode["CreatorId"].isNull()) + object_.creatorId = objectNode["CreatorId"].asString(); + if(!objectNode["Logo"].isNull()) + object_.logo = objectNode["Logo"].asString(); + if(!objectNode["DefaultCollectionId"].isNull()) + object_.defaultCollectionId = objectNode["DefaultCollectionId"].asString(); + if(!objectNode["IsSuspended"].isNull()) + object_.isSuspended = objectNode["IsSuspended"].asString() == "true"; + if(!objectNode["Visibility"].isNull()) + object_.visibility = objectNode["Visibility"].asString(); + if(!objectNode["NormalType"].isNull()) + object_.normalType = objectNode["NormalType"].asString(); + if(!objectNode["Created"].isNull()) + object_.created = objectNode["Created"].asString(); + if(!objectNode["OrganizationId"].isNull()) + object_.organizationId = objectNode["OrganizationId"].asString(); + if(!objectNode["SortMethod"].isNull()) + object_.sortMethod = objectNode["SortMethod"].asString(); + if(!objectNode["Pinyin"].isNull()) + object_.pinyin = objectNode["Pinyin"].asString(); + if(!objectNode["SourceType"].isNull()) + object_.sourceType = objectNode["SourceType"].asString(); + if(!objectNode["IsTemplate"].isNull()) + object_.isTemplate = objectNode["IsTemplate"].asString() == "true"; + if(!objectNode["Name"].isNull()) + object_.name = objectNode["Name"].asString(); + if(!objectNode["Id"].isNull()) + object_.id = objectNode["Id"].asString(); + if(!objectNode["Category"].isNull()) + object_.category = objectNode["Category"].asString(); + if(!objectNode["Updated"].isNull()) + object_.updated = objectNode["Updated"].asString(); + if(!objectNode["StartDate"].isNull()) + object_.startDate = objectNode["StartDate"].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 GetProjectInfoResult::getErrorMsg()const +{ + return errorMsg_; +} + +GetProjectInfoResult::Object GetProjectInfoResult::getObject()const +{ + return object_; +} + +std::string GetProjectInfoResult::getErrorCode()const +{ + return errorCode_; +} + +bool GetProjectInfoResult::getSuccessful()const +{ + return successful_; +} + diff --git a/teambition-aliyun/src/model/GetProjectMembersRequest.cc b/teambition-aliyun/src/model/GetProjectMembersRequest.cc new file mode 100644 index 000000000..17916c193 --- /dev/null +++ b/teambition-aliyun/src/model/GetProjectMembersRequest.cc @@ -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 + +using AlibabaCloud::Teambition_aliyun::Model::GetProjectMembersRequest; + +GetProjectMembersRequest::GetProjectMembersRequest() : + RpcServiceRequest("teambition-aliyun", "2020-02-26", "GetProjectMembers") +{ + setMethod(HttpRequest::Method::Post); +} + +GetProjectMembersRequest::~GetProjectMembersRequest() +{} + +std::string GetProjectMembersRequest::getProjectId()const +{ + return projectId_; +} + +void GetProjectMembersRequest::setProjectId(const std::string& projectId) +{ + projectId_ = projectId; + setBodyParameter("ProjectId", projectId); +} + +std::string GetProjectMembersRequest::getOrgId()const +{ + return orgId_; +} + +void GetProjectMembersRequest::setOrgId(const std::string& orgId) +{ + orgId_ = orgId; + setBodyParameter("OrgId", orgId); +} + diff --git a/teambition-aliyun/src/model/GetProjectMembersResult.cc b/teambition-aliyun/src/model/GetProjectMembersResult.cc new file mode 100644 index 000000000..b1fb040c9 --- /dev/null +++ b/teambition-aliyun/src/model/GetProjectMembersResult.cc @@ -0,0 +1,90 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Teambition_aliyun; +using namespace AlibabaCloud::Teambition_aliyun::Model; + +GetProjectMembersResult::GetProjectMembersResult() : + ServiceResult() +{} + +GetProjectMembersResult::GetProjectMembersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetProjectMembersResult::~GetProjectMembersResult() +{} + +void GetProjectMembersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allObjectNode = value["Object"]["Member"]; + for (auto valueObjectMember : allObjectNode) + { + Member objectObject; + if(!valueObjectMember["MemberId"].isNull()) + objectObject.memberId = valueObjectMember["MemberId"].asString(); + if(!valueObjectMember["UserId"].isNull()) + objectObject.userId = valueObjectMember["UserId"].asString(); + if(!valueObjectMember["Role"].isNull()) + objectObject.role = std::stoi(valueObjectMember["Role"].asString()); + if(!valueObjectMember["Name"].isNull()) + objectObject.name = valueObjectMember["Name"].asString(); + if(!valueObjectMember["AvatarUrl"].isNull()) + objectObject.avatarUrl = valueObjectMember["AvatarUrl"].asString(); + if(!valueObjectMember["Email"].isNull()) + objectObject.email = valueObjectMember["Email"].asString(); + if(!valueObjectMember["Phone"].isNull()) + objectObject.phone = valueObjectMember["Phone"].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 GetProjectMembersResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::vector GetProjectMembersResult::getObject()const +{ + return object_; +} + +std::string GetProjectMembersResult::getErrorCode()const +{ + return errorCode_; +} + +bool GetProjectMembersResult::getSuccessful()const +{ + return successful_; +} + diff --git a/teambition-aliyun/src/model/GetProjectSprintInfoRequest.cc b/teambition-aliyun/src/model/GetProjectSprintInfoRequest.cc new file mode 100644 index 000000000..ac4068fc5 --- /dev/null +++ b/teambition-aliyun/src/model/GetProjectSprintInfoRequest.cc @@ -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 + +using AlibabaCloud::Teambition_aliyun::Model::GetProjectSprintInfoRequest; + +GetProjectSprintInfoRequest::GetProjectSprintInfoRequest() : + RpcServiceRequest("teambition-aliyun", "2020-02-26", "GetProjectSprintInfo") +{ + setMethod(HttpRequest::Method::Post); +} + +GetProjectSprintInfoRequest::~GetProjectSprintInfoRequest() +{} + +std::string GetProjectSprintInfoRequest::getSprintId()const +{ + return sprintId_; +} + +void GetProjectSprintInfoRequest::setSprintId(const std::string& sprintId) +{ + sprintId_ = sprintId; + setBodyParameter("SprintId", sprintId); +} + +std::string GetProjectSprintInfoRequest::getOrgId()const +{ + return orgId_; +} + +void GetProjectSprintInfoRequest::setOrgId(const std::string& orgId) +{ + orgId_ = orgId; + setBodyParameter("OrgId", orgId); +} + diff --git a/teambition-aliyun/src/model/GetProjectSprintInfoResult.cc b/teambition-aliyun/src/model/GetProjectSprintInfoResult.cc new file mode 100644 index 000000000..11481b3be --- /dev/null +++ b/teambition-aliyun/src/model/GetProjectSprintInfoResult.cc @@ -0,0 +1,100 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Teambition_aliyun; +using namespace AlibabaCloud::Teambition_aliyun::Model; + +GetProjectSprintInfoResult::GetProjectSprintInfoResult() : + ServiceResult() +{} + +GetProjectSprintInfoResult::GetProjectSprintInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetProjectSprintInfoResult::~GetProjectSprintInfoResult() +{} + +void GetProjectSprintInfoResult::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["Accomplished"].isNull()) + object_.accomplished = objectNode["Accomplished"].asString(); + if(!objectNode["IsDeleted"].isNull()) + object_.isDeleted = objectNode["IsDeleted"].asString() == "true"; + if(!objectNode["Created"].isNull()) + object_.created = objectNode["Created"].asString(); + if(!objectNode["DueDate"].isNull()) + object_.dueDate = objectNode["DueDate"].asString(); + if(!objectNode["Name"].isNull()) + object_.name = objectNode["Name"].asString(); + if(!objectNode["CreatorId"].isNull()) + object_.creatorId = objectNode["CreatorId"].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["Status"].isNull()) + object_.status = objectNode["Status"].asString(); + if(!objectNode["ProjectId"].isNull()) + object_.projectId = objectNode["ProjectId"].asString(); + auto planToDoNode = objectNode["PlanToDo"]; + if(!planToDoNode["StoryPoints"].isNull()) + object_.planToDo.storyPoints = std::stoi(planToDoNode["StoryPoints"].asString()); + if(!planToDoNode["WorkTimes"].isNull()) + object_.planToDo.workTimes = std::stoi(planToDoNode["WorkTimes"].asString()); + if(!planToDoNode["Tasks"].isNull()) + object_.planToDo.tasks = std::stoi(planToDoNode["Tasks"].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 GetProjectSprintInfoResult::getErrorMsg()const +{ + return errorMsg_; +} + +GetProjectSprintInfoResult::Object GetProjectSprintInfoResult::getObject()const +{ + return object_; +} + +std::string GetProjectSprintInfoResult::getErrorCode()const +{ + return errorCode_; +} + +bool GetProjectSprintInfoResult::getSuccessful()const +{ + return successful_; +} + diff --git a/teambition-aliyun/src/model/GetProjectTaskInfoRequest.cc b/teambition-aliyun/src/model/GetProjectTaskInfoRequest.cc new file mode 100644 index 000000000..8775607d6 --- /dev/null +++ b/teambition-aliyun/src/model/GetProjectTaskInfoRequest.cc @@ -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 + +using AlibabaCloud::Teambition_aliyun::Model::GetProjectTaskInfoRequest; + +GetProjectTaskInfoRequest::GetProjectTaskInfoRequest() : + RpcServiceRequest("teambition-aliyun", "2020-02-26", "GetProjectTaskInfo") +{ + setMethod(HttpRequest::Method::Post); +} + +GetProjectTaskInfoRequest::~GetProjectTaskInfoRequest() +{} + +std::string GetProjectTaskInfoRequest::getOrgId()const +{ + return orgId_; +} + +void GetProjectTaskInfoRequest::setOrgId(const std::string& orgId) +{ + orgId_ = orgId; + setBodyParameter("OrgId", orgId); +} + +std::string GetProjectTaskInfoRequest::getTaskId()const +{ + return taskId_; +} + +void GetProjectTaskInfoRequest::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; + setBodyParameter("TaskId", taskId); +} + diff --git a/teambition-aliyun/src/model/GetProjectTaskInfoResult.cc b/teambition-aliyun/src/model/GetProjectTaskInfoResult.cc new file mode 100644 index 000000000..34a468e28 --- /dev/null +++ b/teambition-aliyun/src/model/GetProjectTaskInfoResult.cc @@ -0,0 +1,116 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Teambition_aliyun; +using namespace AlibabaCloud::Teambition_aliyun::Model; + +GetProjectTaskInfoResult::GetProjectTaskInfoResult() : + ServiceResult() +{} + +GetProjectTaskInfoResult::GetProjectTaskInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetProjectTaskInfoResult::~GetProjectTaskInfoResult() +{} + +void GetProjectTaskInfoResult::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["TasklistId"].isNull()) + object_.tasklistId = objectNode["TasklistId"].asString(); + if(!objectNode["TaskflowstatusId"].isNull()) + object_.taskflowstatusId = objectNode["TaskflowstatusId"].asString(); + if(!objectNode["TaskType"].isNull()) + object_.taskType = objectNode["TaskType"].asString(); + if(!objectNode["IsDeleted"].isNull()) + object_.isDeleted = objectNode["IsDeleted"].asString() == "true"; + if(!objectNode["CreatorId"].isNull()) + object_.creatorId = objectNode["CreatorId"].asString(); + if(!objectNode["IsTopInProject"].isNull()) + object_.isTopInProject = objectNode["IsTopInProject"].asString() == "true"; + if(!objectNode["ExecutorId"].isNull()) + object_.executorId = objectNode["ExecutorId"].asString(); + if(!objectNode["StoryPoint"].isNull()) + object_.storyPoint = objectNode["StoryPoint"].asString(); + if(!objectNode["Created"].isNull()) + object_.created = objectNode["Created"].asString(); + if(!objectNode["OrganizationId"].isNull()) + object_.organizationId = objectNode["OrganizationId"].asString(); + if(!objectNode["IsDone"].isNull()) + object_.isDone = objectNode["IsDone"].asString() == "true"; + if(!objectNode["Id"].isNull()) + object_.id = objectNode["Id"].asString(); + if(!objectNode["Updated"].isNull()) + object_.updated = objectNode["Updated"].asString(); + if(!objectNode["SprintId"].isNull()) + object_.sprintId = objectNode["SprintId"].asString(); + if(!objectNode["ProjectId"].isNull()) + object_.projectId = objectNode["ProjectId"].asString(); + if(!objectNode["Content"].isNull()) + object_.content = objectNode["Content"].asString(); + if(!objectNode["Note"].isNull()) + object_.note = objectNode["Note"].asString(); + if(!objectNode["DueDate"].isNull()) + object_.dueDate = objectNode["DueDate"].asString(); + if(!objectNode["StartDate"].isNull()) + object_.startDate = objectNode["StartDate"].asString(); + if(!objectNode["Visible"].isNull()) + object_.visible = objectNode["Visible"].asString(); + if(!objectNode["Priority"].isNull()) + object_.priority = objectNode["Priority"].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 GetProjectTaskInfoResult::getErrorMsg()const +{ + return errorMsg_; +} + +GetProjectTaskInfoResult::Object GetProjectTaskInfoResult::getObject()const +{ + return object_; +} + +std::string GetProjectTaskInfoResult::getErrorCode()const +{ + return errorCode_; +} + +bool GetProjectTaskInfoResult::getSuccessful()const +{ + return successful_; +} + diff --git a/teambition-aliyun/src/model/GetUserByUidRequest.cc b/teambition-aliyun/src/model/GetUserByUidRequest.cc new file mode 100644 index 000000000..1502ec756 --- /dev/null +++ b/teambition-aliyun/src/model/GetUserByUidRequest.cc @@ -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 + +using AlibabaCloud::Teambition_aliyun::Model::GetUserByUidRequest; + +GetUserByUidRequest::GetUserByUidRequest() : + RpcServiceRequest("teambition-aliyun", "2020-02-26", "GetUserByUid") +{ + setMethod(HttpRequest::Method::Post); +} + +GetUserByUidRequest::~GetUserByUidRequest() +{} + +std::string GetUserByUidRequest::getUserPk()const +{ + return userPk_; +} + +void GetUserByUidRequest::setUserPk(const std::string& userPk) +{ + userPk_ = userPk; + setBodyParameter("UserPk", userPk); +} + +std::string GetUserByUidRequest::getOrgId()const +{ + return orgId_; +} + +void GetUserByUidRequest::setOrgId(const std::string& orgId) +{ + orgId_ = orgId; + setBodyParameter("OrgId", orgId); +} + diff --git a/teambition-aliyun/src/model/GetUserByUidResult.cc b/teambition-aliyun/src/model/GetUserByUidResult.cc new file mode 100644 index 000000000..6c192c711 --- /dev/null +++ b/teambition-aliyun/src/model/GetUserByUidResult.cc @@ -0,0 +1,83 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Teambition_aliyun; +using namespace AlibabaCloud::Teambition_aliyun::Model; + +GetUserByUidResult::GetUserByUidResult() : + ServiceResult() +{} + +GetUserByUidResult::GetUserByUidResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetUserByUidResult::~GetUserByUidResult() +{} + +void GetUserByUidResult::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["Name"].isNull()) + object_.name = objectNode["Name"].asString(); + if(!objectNode["Id"].isNull()) + object_.id = objectNode["Id"].asString(); + if(!objectNode["AliyunPk"].isNull()) + object_.aliyunPk = objectNode["AliyunPk"].asString(); + if(!objectNode["AvatarUrl"].isNull()) + object_.avatarUrl = objectNode["AvatarUrl"].asString(); + if(!objectNode["Email"].isNull()) + object_.email = objectNode["Email"].asString(); + if(!objectNode["Phone"].isNull()) + object_.phone = objectNode["Phone"].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 GetUserByUidResult::getErrorMsg()const +{ + return errorMsg_; +} + +GetUserByUidResult::Object GetUserByUidResult::getObject()const +{ + return object_; +} + +std::string GetUserByUidResult::getErrorCode()const +{ + return errorCode_; +} + +bool GetUserByUidResult::getSuccessful()const +{ + return successful_; +} + diff --git a/teambition-aliyun/src/model/InsertDevopsMemberRequest.cc b/teambition-aliyun/src/model/InsertDevopsMemberRequest.cc new file mode 100644 index 000000000..f808cb4a6 --- /dev/null +++ b/teambition-aliyun/src/model/InsertDevopsMemberRequest.cc @@ -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 + +using AlibabaCloud::Teambition_aliyun::Model::InsertDevopsMemberRequest; + +InsertDevopsMemberRequest::InsertDevopsMemberRequest() : + RpcServiceRequest("teambition-aliyun", "2020-02-26", "InsertDevopsMember") +{ + setMethod(HttpRequest::Method::Post); +} + +InsertDevopsMemberRequest::~InsertDevopsMemberRequest() +{} + +std::string InsertDevopsMemberRequest::getPhone()const +{ + return phone_; +} + +void InsertDevopsMemberRequest::setPhone(const std::string& phone) +{ + phone_ = phone; + setBodyParameter("Phone", phone); +} + +std::string InsertDevopsMemberRequest::getUserPk()const +{ + return userPk_; +} + +void InsertDevopsMemberRequest::setUserPk(const std::string& userPk) +{ + userPk_ = userPk; + setBodyParameter("UserPk", userPk); +} + +std::string InsertDevopsMemberRequest::getEmail()const +{ + return email_; +} + +void InsertDevopsMemberRequest::setEmail(const std::string& email) +{ + email_ = email; + setBodyParameter("Email", email); +} + +std::string InsertDevopsMemberRequest::getUserName()const +{ + return userName_; +} + +void InsertDevopsMemberRequest::setUserName(const std::string& userName) +{ + userName_ = userName; + setBodyParameter("UserName", userName); +} + diff --git a/teambition-aliyun/src/model/InsertDevopsMemberResult.cc b/teambition-aliyun/src/model/InsertDevopsMemberResult.cc new file mode 100644 index 000000000..003b5cd9b --- /dev/null +++ b/teambition-aliyun/src/model/InsertDevopsMemberResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Teambition_aliyun; +using namespace AlibabaCloud::Teambition_aliyun::Model; + +InsertDevopsMemberResult::InsertDevopsMemberResult() : + ServiceResult() +{} + +InsertDevopsMemberResult::InsertDevopsMemberResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +InsertDevopsMemberResult::~InsertDevopsMemberResult() +{} + +void InsertDevopsMemberResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Object"].isNull()) + object_ = value["Object"].asString(); + +} + +std::string InsertDevopsMemberResult::getObject()const +{ + return object_; +} + +std::string InsertDevopsMemberResult::getErrorCode()const +{ + return errorCode_; +} + +std::string InsertDevopsMemberResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool InsertDevopsMemberResult::getSuccess()const +{ + return success_; +} + diff --git a/teambition-aliyun/src/model/ListProjectSprintsRequest.cc b/teambition-aliyun/src/model/ListProjectSprintsRequest.cc new file mode 100644 index 000000000..38323859b --- /dev/null +++ b/teambition-aliyun/src/model/ListProjectSprintsRequest.cc @@ -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 + +using AlibabaCloud::Teambition_aliyun::Model::ListProjectSprintsRequest; + +ListProjectSprintsRequest::ListProjectSprintsRequest() : + RpcServiceRequest("teambition-aliyun", "2020-02-26", "ListProjectSprints") +{ + setMethod(HttpRequest::Method::Post); +} + +ListProjectSprintsRequest::~ListProjectSprintsRequest() +{} + +std::string ListProjectSprintsRequest::getProjectId()const +{ + return projectId_; +} + +void ListProjectSprintsRequest::setProjectId(const std::string& projectId) +{ + projectId_ = projectId; + setBodyParameter("ProjectId", projectId); +} + +std::string ListProjectSprintsRequest::getOrgId()const +{ + return orgId_; +} + +void ListProjectSprintsRequest::setOrgId(const std::string& orgId) +{ + orgId_ = orgId; + setBodyParameter("OrgId", orgId); +} + diff --git a/teambition-aliyun/src/model/ListProjectSprintsResult.cc b/teambition-aliyun/src/model/ListProjectSprintsResult.cc new file mode 100644 index 000000000..6846f2400 --- /dev/null +++ b/teambition-aliyun/src/model/ListProjectSprintsResult.cc @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Teambition_aliyun; +using namespace AlibabaCloud::Teambition_aliyun::Model; + +ListProjectSprintsResult::ListProjectSprintsResult() : + ServiceResult() +{} + +ListProjectSprintsResult::ListProjectSprintsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListProjectSprintsResult::~ListProjectSprintsResult() +{} + +void ListProjectSprintsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allObjectNode = value["Object"]["Sprint"]; + for (auto valueObjectSprint : allObjectNode) + { + Sprint objectObject; + if(!valueObjectSprint["Accomplished"].isNull()) + objectObject.accomplished = valueObjectSprint["Accomplished"].asString(); + if(!valueObjectSprint["IsDeleted"].isNull()) + objectObject.isDeleted = valueObjectSprint["IsDeleted"].asString() == "true"; + if(!valueObjectSprint["Created"].isNull()) + objectObject.created = valueObjectSprint["Created"].asString(); + if(!valueObjectSprint["DueDate"].isNull()) + objectObject.dueDate = valueObjectSprint["DueDate"].asString(); + if(!valueObjectSprint["Name"].isNull()) + objectObject.name = valueObjectSprint["Name"].asString(); + if(!valueObjectSprint["CreatorId"].isNull()) + objectObject.creatorId = valueObjectSprint["CreatorId"].asString(); + if(!valueObjectSprint["Id"].isNull()) + objectObject.id = valueObjectSprint["Id"].asString(); + if(!valueObjectSprint["Updated"].isNull()) + objectObject.updated = valueObjectSprint["Updated"].asString(); + if(!valueObjectSprint["StartDate"].isNull()) + objectObject.startDate = valueObjectSprint["StartDate"].asString(); + if(!valueObjectSprint["Status"].isNull()) + objectObject.status = valueObjectSprint["Status"].asString(); + if(!valueObjectSprint["ProjectId"].isNull()) + objectObject.projectId = valueObjectSprint["ProjectId"].asString(); + auto planToDoNode = value["PlanToDo"]; + if(!planToDoNode["StoryPoints"].isNull()) + objectObject.planToDo.storyPoints = std::stoi(planToDoNode["StoryPoints"].asString()); + if(!planToDoNode["WorkTimes"].isNull()) + objectObject.planToDo.workTimes = std::stoi(planToDoNode["WorkTimes"].asString()); + if(!planToDoNode["Tasks"].isNull()) + objectObject.planToDo.tasks = std::stoi(planToDoNode["Tasks"].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 ListProjectSprintsResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::vector ListProjectSprintsResult::getObject()const +{ + return object_; +} + +std::string ListProjectSprintsResult::getErrorCode()const +{ + return errorCode_; +} + +bool ListProjectSprintsResult::getSuccessful()const +{ + return successful_; +} + diff --git a/teambition-aliyun/src/model/ListProjectTaskFlowRequest.cc b/teambition-aliyun/src/model/ListProjectTaskFlowRequest.cc new file mode 100644 index 000000000..b921b5cdb --- /dev/null +++ b/teambition-aliyun/src/model/ListProjectTaskFlowRequest.cc @@ -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 + +using AlibabaCloud::Teambition_aliyun::Model::ListProjectTaskFlowRequest; + +ListProjectTaskFlowRequest::ListProjectTaskFlowRequest() : + RpcServiceRequest("teambition-aliyun", "2020-02-26", "ListProjectTaskFlow") +{ + setMethod(HttpRequest::Method::Post); +} + +ListProjectTaskFlowRequest::~ListProjectTaskFlowRequest() +{} + +std::string ListProjectTaskFlowRequest::getProjectId()const +{ + return projectId_; +} + +void ListProjectTaskFlowRequest::setProjectId(const std::string& projectId) +{ + projectId_ = projectId; + setBodyParameter("ProjectId", projectId); +} + +std::string ListProjectTaskFlowRequest::getOrgId()const +{ + return orgId_; +} + +void ListProjectTaskFlowRequest::setOrgId(const std::string& orgId) +{ + orgId_ = orgId; + setBodyParameter("OrgId", orgId); +} + diff --git a/teambition-aliyun/src/model/ListProjectTaskFlowResult.cc b/teambition-aliyun/src/model/ListProjectTaskFlowResult.cc new file mode 100644 index 000000000..a9866f256 --- /dev/null +++ b/teambition-aliyun/src/model/ListProjectTaskFlowResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Teambition_aliyun; +using namespace AlibabaCloud::Teambition_aliyun::Model; + +ListProjectTaskFlowResult::ListProjectTaskFlowResult() : + ServiceResult() +{} + +ListProjectTaskFlowResult::ListProjectTaskFlowResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListProjectTaskFlowResult::~ListProjectTaskFlowResult() +{} + +void ListProjectTaskFlowResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allObjectNode = value["Object"]["Taskflow"]; + for (auto valueObjectTaskflow : allObjectNode) + { + Taskflow objectObject; + if(!valueObjectTaskflow["Id"].isNull()) + objectObject.id = valueObjectTaskflow["Id"].asString(); + if(!valueObjectTaskflow["Type"].isNull()) + objectObject.type = valueObjectTaskflow["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 ListProjectTaskFlowResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::vector ListProjectTaskFlowResult::getObject()const +{ + return object_; +} + +std::string ListProjectTaskFlowResult::getErrorCode()const +{ + return errorCode_; +} + +bool ListProjectTaskFlowResult::getSuccessful()const +{ + return successful_; +} + diff --git a/teambition-aliyun/src/model/ListProjectTaskFlowStatusRequest.cc b/teambition-aliyun/src/model/ListProjectTaskFlowStatusRequest.cc new file mode 100644 index 000000000..5623338eb --- /dev/null +++ b/teambition-aliyun/src/model/ListProjectTaskFlowStatusRequest.cc @@ -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 + +using AlibabaCloud::Teambition_aliyun::Model::ListProjectTaskFlowStatusRequest; + +ListProjectTaskFlowStatusRequest::ListProjectTaskFlowStatusRequest() : + RpcServiceRequest("teambition-aliyun", "2020-02-26", "ListProjectTaskFlowStatus") +{ + setMethod(HttpRequest::Method::Post); +} + +ListProjectTaskFlowStatusRequest::~ListProjectTaskFlowStatusRequest() +{} + +std::string ListProjectTaskFlowStatusRequest::getTaskFlowId()const +{ + return taskFlowId_; +} + +void ListProjectTaskFlowStatusRequest::setTaskFlowId(const std::string& taskFlowId) +{ + taskFlowId_ = taskFlowId; + setBodyParameter("TaskFlowId", taskFlowId); +} + +std::string ListProjectTaskFlowStatusRequest::getOrgId()const +{ + return orgId_; +} + +void ListProjectTaskFlowStatusRequest::setOrgId(const std::string& orgId) +{ + orgId_ = orgId; + setBodyParameter("OrgId", orgId); +} + diff --git a/teambition-aliyun/src/model/ListProjectTaskFlowStatusResult.cc b/teambition-aliyun/src/model/ListProjectTaskFlowStatusResult.cc new file mode 100644 index 000000000..c2ed347bc --- /dev/null +++ b/teambition-aliyun/src/model/ListProjectTaskFlowStatusResult.cc @@ -0,0 +1,96 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Teambition_aliyun; +using namespace AlibabaCloud::Teambition_aliyun::Model; + +ListProjectTaskFlowStatusResult::ListProjectTaskFlowStatusResult() : + ServiceResult() +{} + +ListProjectTaskFlowStatusResult::ListProjectTaskFlowStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListProjectTaskFlowStatusResult::~ListProjectTaskFlowStatusResult() +{} + +void ListProjectTaskFlowStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allObjectNode = value["Object"]["taskflowStatus"]; + for (auto valueObjecttaskflowStatus : allObjectNode) + { + TaskflowStatus objectObject; + if(!valueObjecttaskflowStatus["IsDeleted"].isNull()) + objectObject.isDeleted = valueObjecttaskflowStatus["IsDeleted"].asString() == "true"; + if(!valueObjecttaskflowStatus["RejectStatusIds"].isNull()) + objectObject.rejectStatusIds = valueObjecttaskflowStatus["RejectStatusIds"].asString(); + if(!valueObjecttaskflowStatus["Pos"].isNull()) + objectObject.pos = std::stoi(valueObjecttaskflowStatus["Pos"].asString()); + if(!valueObjecttaskflowStatus["Kind"].isNull()) + objectObject.kind = valueObjecttaskflowStatus["Kind"].asString(); + if(!valueObjecttaskflowStatus["Created"].isNull()) + objectObject.created = valueObjecttaskflowStatus["Created"].asString(); + if(!valueObjecttaskflowStatus["TaskflowId"].isNull()) + objectObject.taskflowId = valueObjecttaskflowStatus["TaskflowId"].asString(); + if(!valueObjecttaskflowStatus["Name"].isNull()) + objectObject.name = valueObjecttaskflowStatus["Name"].asString(); + if(!valueObjecttaskflowStatus["CreatorId"].isNull()) + objectObject.creatorId = valueObjecttaskflowStatus["CreatorId"].asString(); + if(!valueObjecttaskflowStatus["Id"].isNull()) + objectObject.id = valueObjecttaskflowStatus["Id"].asString(); + if(!valueObjecttaskflowStatus["Updated"].isNull()) + objectObject.updated = valueObjecttaskflowStatus["Updated"].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 ListProjectTaskFlowStatusResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::vector ListProjectTaskFlowStatusResult::getObject()const +{ + return object_; +} + +std::string ListProjectTaskFlowStatusResult::getErrorCode()const +{ + return errorCode_; +} + +bool ListProjectTaskFlowStatusResult::getSuccessful()const +{ + return successful_; +} + diff --git a/teambition-aliyun/src/model/ListProjectTasksRequest.cc b/teambition-aliyun/src/model/ListProjectTasksRequest.cc new file mode 100644 index 000000000..ee29fe9b1 --- /dev/null +++ b/teambition-aliyun/src/model/ListProjectTasksRequest.cc @@ -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 + +using AlibabaCloud::Teambition_aliyun::Model::ListProjectTasksRequest; + +ListProjectTasksRequest::ListProjectTasksRequest() : + RpcServiceRequest("teambition-aliyun", "2020-02-26", "ListProjectTasks") +{ + setMethod(HttpRequest::Method::Post); +} + +ListProjectTasksRequest::~ListProjectTasksRequest() +{} + +std::string ListProjectTasksRequest::getProjectIds()const +{ + return projectIds_; +} + +void ListProjectTasksRequest::setProjectIds(const std::string& projectIds) +{ + projectIds_ = projectIds; + setBodyParameter("ProjectIds", projectIds); +} + +std::string ListProjectTasksRequest::getOrgId()const +{ + return orgId_; +} + +void ListProjectTasksRequest::setOrgId(const std::string& orgId) +{ + orgId_ = orgId; + setBodyParameter("OrgId", orgId); +} + diff --git a/teambition-aliyun/src/model/ListProjectTasksResult.cc b/teambition-aliyun/src/model/ListProjectTasksResult.cc new file mode 100644 index 000000000..7878592f5 --- /dev/null +++ b/teambition-aliyun/src/model/ListProjectTasksResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Teambition_aliyun; +using namespace AlibabaCloud::Teambition_aliyun::Model; + +ListProjectTasksResult::ListProjectTasksResult() : + ServiceResult() +{} + +ListProjectTasksResult::ListProjectTasksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListProjectTasksResult::~ListProjectTasksResult() +{} + +void ListProjectTasksResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allObjectNode = value["Object"]["Task"]; + for (auto valueObjectTask : allObjectNode) + { + Task objectObject; + if(!valueObjectTask["TasklistId"].isNull()) + objectObject.tasklistId = valueObjectTask["TasklistId"].asString(); + if(!valueObjectTask["ProjectId"].isNull()) + objectObject.projectId = valueObjectTask["ProjectId"].asString(); + if(!valueObjectTask["TaskgroupId"].isNull()) + objectObject.taskgroupId = valueObjectTask["TaskgroupId"].asString(); + if(!valueObjectTask["Name"].isNull()) + objectObject.name = valueObjectTask["Name"].asString(); + if(!valueObjectTask["CreatorId"].isNull()) + objectObject.creatorId = valueObjectTask["CreatorId"].asString(); + if(!valueObjectTask["Created"].isNull()) + objectObject.created = valueObjectTask["Created"].asString(); + if(!valueObjectTask["ModifierId"].isNull()) + objectObject.modifierId = valueObjectTask["ModifierId"].asString(); + if(!valueObjectTask["Updated"].isNull()) + objectObject.updated = valueObjectTask["Updated"].asString(); + if(!valueObjectTask["Id"].isNull()) + objectObject.id = valueObjectTask["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 ListProjectTasksResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::vector ListProjectTasksResult::getObject()const +{ + return object_; +} + +std::string ListProjectTasksResult::getErrorCode()const +{ + return errorCode_; +} + +bool ListProjectTasksResult::getSuccessful()const +{ + return successful_; +} + diff --git a/teambition-aliyun/src/model/ListScenarioFieldConfigRequest.cc b/teambition-aliyun/src/model/ListScenarioFieldConfigRequest.cc new file mode 100644 index 000000000..85a278ac5 --- /dev/null +++ b/teambition-aliyun/src/model/ListScenarioFieldConfigRequest.cc @@ -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 + +using AlibabaCloud::Teambition_aliyun::Model::ListScenarioFieldConfigRequest; + +ListScenarioFieldConfigRequest::ListScenarioFieldConfigRequest() : + RpcServiceRequest("teambition-aliyun", "2020-02-26", "ListScenarioFieldConfig") +{ + setMethod(HttpRequest::Method::Post); +} + +ListScenarioFieldConfigRequest::~ListScenarioFieldConfigRequest() +{} + +std::string ListScenarioFieldConfigRequest::getProjectId()const +{ + return projectId_; +} + +void ListScenarioFieldConfigRequest::setProjectId(const std::string& projectId) +{ + projectId_ = projectId; + setBodyParameter("ProjectId", projectId); +} + +std::string ListScenarioFieldConfigRequest::getOrgId()const +{ + return orgId_; +} + +void ListScenarioFieldConfigRequest::setOrgId(const std::string& orgId) +{ + orgId_ = orgId; + setBodyParameter("OrgId", orgId); +} + diff --git a/teambition-aliyun/src/model/ListScenarioFieldConfigResult.cc b/teambition-aliyun/src/model/ListScenarioFieldConfigResult.cc new file mode 100644 index 000000000..2c037ba9f --- /dev/null +++ b/teambition-aliyun/src/model/ListScenarioFieldConfigResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Teambition_aliyun; +using namespace AlibabaCloud::Teambition_aliyun::Model; + +ListScenarioFieldConfigResult::ListScenarioFieldConfigResult() : + ServiceResult() +{} + +ListScenarioFieldConfigResult::ListScenarioFieldConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListScenarioFieldConfigResult::~ListScenarioFieldConfigResult() +{} + +void ListScenarioFieldConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allObjectNode = value["Object"]["scenarioFieldConfig"]; + for (auto valueObjectscenarioFieldConfig : allObjectNode) + { + ScenarioFieldConfig objectObject; + if(!valueObjectscenarioFieldConfig["Id"].isNull()) + objectObject.id = valueObjectscenarioFieldConfig["Id"].asString(); + if(!valueObjectscenarioFieldConfig["Type"].isNull()) + objectObject.type = valueObjectscenarioFieldConfig["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 ListScenarioFieldConfigResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::vector ListScenarioFieldConfigResult::getObject()const +{ + return object_; +} + +std::string ListScenarioFieldConfigResult::getErrorCode()const +{ + return errorCode_; +} + +bool ListScenarioFieldConfigResult::getSuccessful()const +{ + return successful_; +} + diff --git a/teambition-aliyun/src/model/UpdateProjectRequest.cc b/teambition-aliyun/src/model/UpdateProjectRequest.cc new file mode 100644 index 000000000..39276ef77 --- /dev/null +++ b/teambition-aliyun/src/model/UpdateProjectRequest.cc @@ -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 + +using AlibabaCloud::Teambition_aliyun::Model::UpdateProjectRequest; + +UpdateProjectRequest::UpdateProjectRequest() : + RpcServiceRequest("teambition-aliyun", "2020-02-26", "UpdateProject") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateProjectRequest::~UpdateProjectRequest() +{} + +std::string UpdateProjectRequest::getName()const +{ + return name_; +} + +void UpdateProjectRequest::setName(const std::string& name) +{ + name_ = name; + setBodyParameter("Name", name); +} + +std::string UpdateProjectRequest::getDescription()const +{ + return description_; +} + +void UpdateProjectRequest::setDescription(const std::string& description) +{ + description_ = description; + setBodyParameter("Description", description); +} + +std::string UpdateProjectRequest::getProjectId()const +{ + return projectId_; +} + +void UpdateProjectRequest::setProjectId(const std::string& projectId) +{ + projectId_ = projectId; + setBodyParameter("ProjectId", projectId); +} + +std::string UpdateProjectRequest::getOrgId()const +{ + return orgId_; +} + +void UpdateProjectRequest::setOrgId(const std::string& orgId) +{ + orgId_ = orgId; + setBodyParameter("OrgId", orgId); +} + diff --git a/teambition-aliyun/src/model/UpdateProjectResult.cc b/teambition-aliyun/src/model/UpdateProjectResult.cc new file mode 100644 index 000000000..d4209dd39 --- /dev/null +++ b/teambition-aliyun/src/model/UpdateProjectResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Teambition_aliyun; +using namespace AlibabaCloud::Teambition_aliyun::Model; + +UpdateProjectResult::UpdateProjectResult() : + ServiceResult() +{} + +UpdateProjectResult::UpdateProjectResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateProjectResult::~UpdateProjectResult() +{} + +void UpdateProjectResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Object"].isNull()) + object_ = value["Object"].asString(); + +} + +std::string UpdateProjectResult::getObject()const +{ + return object_; +} + +std::string UpdateProjectResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UpdateProjectResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool UpdateProjectResult::getSuccess()const +{ + return success_; +} + diff --git a/teambition-aliyun/src/model/UpdateProjectSprintRequest.cc b/teambition-aliyun/src/model/UpdateProjectSprintRequest.cc new file mode 100644 index 000000000..9b6e8586f --- /dev/null +++ b/teambition-aliyun/src/model/UpdateProjectSprintRequest.cc @@ -0,0 +1,117 @@ +/* + * 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 + +using AlibabaCloud::Teambition_aliyun::Model::UpdateProjectSprintRequest; + +UpdateProjectSprintRequest::UpdateProjectSprintRequest() : + RpcServiceRequest("teambition-aliyun", "2020-02-26", "UpdateProjectSprint") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateProjectSprintRequest::~UpdateProjectSprintRequest() +{} + +std::string UpdateProjectSprintRequest::getExecutorId()const +{ + return executorId_; +} + +void UpdateProjectSprintRequest::setExecutorId(const std::string& executorId) +{ + executorId_ = executorId; + setBodyParameter("ExecutorId", executorId); +} + +std::string UpdateProjectSprintRequest::getDescription()const +{ + return description_; +} + +void UpdateProjectSprintRequest::setDescription(const std::string& description) +{ + description_ = description; + setBodyParameter("Description", description); +} + +std::string UpdateProjectSprintRequest::getStartDate()const +{ + return startDate_; +} + +void UpdateProjectSprintRequest::setStartDate(const std::string& startDate) +{ + startDate_ = startDate; + setBodyParameter("StartDate", startDate); +} + +std::string UpdateProjectSprintRequest::getOrgId()const +{ + return orgId_; +} + +void UpdateProjectSprintRequest::setOrgId(const std::string& orgId) +{ + orgId_ = orgId; + setBodyParameter("OrgId", orgId); +} + +std::string UpdateProjectSprintRequest::getSprintId()const +{ + return sprintId_; +} + +void UpdateProjectSprintRequest::setSprintId(const std::string& sprintId) +{ + sprintId_ = sprintId; + setBodyParameter("SprintId", sprintId); +} + +std::string UpdateProjectSprintRequest::getDueDate()const +{ + return dueDate_; +} + +void UpdateProjectSprintRequest::setDueDate(const std::string& dueDate) +{ + dueDate_ = dueDate; + setBodyParameter("DueDate", dueDate); +} + +std::string UpdateProjectSprintRequest::getName()const +{ + return name_; +} + +void UpdateProjectSprintRequest::setName(const std::string& name) +{ + name_ = name; + setBodyParameter("Name", name); +} + +std::string UpdateProjectSprintRequest::getProjectId()const +{ + return projectId_; +} + +void UpdateProjectSprintRequest::setProjectId(const std::string& projectId) +{ + projectId_ = projectId; + setBodyParameter("ProjectId", projectId); +} + diff --git a/teambition-aliyun/src/model/UpdateProjectSprintResult.cc b/teambition-aliyun/src/model/UpdateProjectSprintResult.cc new file mode 100644 index 000000000..9dcf32a8f --- /dev/null +++ b/teambition-aliyun/src/model/UpdateProjectSprintResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Teambition_aliyun; +using namespace AlibabaCloud::Teambition_aliyun::Model; + +UpdateProjectSprintResult::UpdateProjectSprintResult() : + ServiceResult() +{} + +UpdateProjectSprintResult::UpdateProjectSprintResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateProjectSprintResult::~UpdateProjectSprintResult() +{} + +void UpdateProjectSprintResult::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() == "true"; + +} + +std::string UpdateProjectSprintResult::getErrorMsg()const +{ + return errorMsg_; +} + +bool UpdateProjectSprintResult::getObject()const +{ + return object_; +} + +std::string UpdateProjectSprintResult::getErrorCode()const +{ + return errorCode_; +} + +bool UpdateProjectSprintResult::getSuccessful()const +{ + return successful_; +} + diff --git a/teambition-aliyun/src/model/UpdateProjectTaskRequest.cc b/teambition-aliyun/src/model/UpdateProjectTaskRequest.cc new file mode 100644 index 000000000..73928e9ee --- /dev/null +++ b/teambition-aliyun/src/model/UpdateProjectTaskRequest.cc @@ -0,0 +1,183 @@ +/* + * 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 + +using AlibabaCloud::Teambition_aliyun::Model::UpdateProjectTaskRequest; + +UpdateProjectTaskRequest::UpdateProjectTaskRequest() : + RpcServiceRequest("teambition-aliyun", "2020-02-26", "UpdateProjectTask") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateProjectTaskRequest::~UpdateProjectTaskRequest() +{} + +std::string UpdateProjectTaskRequest::getNote()const +{ + return note_; +} + +void UpdateProjectTaskRequest::setNote(const std::string& note) +{ + note_ = note; + setBodyParameter("Note", note); +} + +std::string UpdateProjectTaskRequest::getVisible()const +{ + return visible_; +} + +void UpdateProjectTaskRequest::setVisible(const std::string& visible) +{ + visible_ = visible; + setBodyParameter("Visible", visible); +} + +std::string UpdateProjectTaskRequest::getExecutorId()const +{ + return executorId_; +} + +void UpdateProjectTaskRequest::setExecutorId(const std::string& executorId) +{ + executorId_ = executorId; + setBodyParameter("ExecutorId", executorId); +} + +std::string UpdateProjectTaskRequest::getTaskFlowStatusId()const +{ + return taskFlowStatusId_; +} + +void UpdateProjectTaskRequest::setTaskFlowStatusId(const std::string& taskFlowStatusId) +{ + taskFlowStatusId_ = taskFlowStatusId; + setBodyParameter("TaskFlowStatusId", taskFlowStatusId); +} + +std::string UpdateProjectTaskRequest::getScenarioFiieldConfigId()const +{ + return scenarioFiieldConfigId_; +} + +void UpdateProjectTaskRequest::setScenarioFiieldConfigId(const std::string& scenarioFiieldConfigId) +{ + scenarioFiieldConfigId_ = scenarioFiieldConfigId; + setBodyParameter("ScenarioFiieldConfigId", scenarioFiieldConfigId); +} + +std::string UpdateProjectTaskRequest::getStartDate()const +{ + return startDate_; +} + +void UpdateProjectTaskRequest::setStartDate(const std::string& startDate) +{ + startDate_ = startDate; + setBodyParameter("StartDate", startDate); +} + +int UpdateProjectTaskRequest::getPriority()const +{ + return priority_; +} + +void UpdateProjectTaskRequest::setPriority(int priority) +{ + priority_ = priority; + setBodyParameter("Priority", std::to_string(priority)); +} + +std::string UpdateProjectTaskRequest::getParentTaskId()const +{ + return parentTaskId_; +} + +void UpdateProjectTaskRequest::setParentTaskId(const std::string& parentTaskId) +{ + parentTaskId_ = parentTaskId; + setBodyParameter("ParentTaskId", parentTaskId); +} + +std::string UpdateProjectTaskRequest::getOrgId()const +{ + return orgId_; +} + +void UpdateProjectTaskRequest::setOrgId(const std::string& orgId) +{ + orgId_ = orgId; + setBodyParameter("OrgId", orgId); +} + +std::string UpdateProjectTaskRequest::getContent()const +{ + return content_; +} + +void UpdateProjectTaskRequest::setContent(const std::string& content) +{ + content_ = content; + setBodyParameter("Content", content); +} + +std::string UpdateProjectTaskRequest::getSprintId()const +{ + return sprintId_; +} + +void UpdateProjectTaskRequest::setSprintId(const std::string& sprintId) +{ + sprintId_ = sprintId; + setBodyParameter("SprintId", sprintId); +} + +std::string UpdateProjectTaskRequest::getDueDate()const +{ + return dueDate_; +} + +void UpdateProjectTaskRequest::setDueDate(const std::string& dueDate) +{ + dueDate_ = dueDate; + setBodyParameter("DueDate", dueDate); +} + +std::string UpdateProjectTaskRequest::getProjectId()const +{ + return projectId_; +} + +void UpdateProjectTaskRequest::setProjectId(const std::string& projectId) +{ + projectId_ = projectId; + setBodyParameter("ProjectId", projectId); +} + +std::string UpdateProjectTaskRequest::getTaskId()const +{ + return taskId_; +} + +void UpdateProjectTaskRequest::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; + setBodyParameter("TaskId", taskId); +} + diff --git a/teambition-aliyun/src/model/UpdateProjectTaskResult.cc b/teambition-aliyun/src/model/UpdateProjectTaskResult.cc new file mode 100644 index 000000000..6b9d4e2f9 --- /dev/null +++ b/teambition-aliyun/src/model/UpdateProjectTaskResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Teambition_aliyun; +using namespace AlibabaCloud::Teambition_aliyun::Model; + +UpdateProjectTaskResult::UpdateProjectTaskResult() : + ServiceResult() +{} + +UpdateProjectTaskResult::UpdateProjectTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateProjectTaskResult::~UpdateProjectTaskResult() +{} + +void UpdateProjectTaskResult::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() == "true"; + +} + +std::string UpdateProjectTaskResult::getErrorMsg()const +{ + return errorMsg_; +} + +bool UpdateProjectTaskResult::getObject()const +{ + return object_; +} + +std::string UpdateProjectTaskResult::getErrorCode()const +{ + return errorCode_; +} + +bool UpdateProjectTaskResult::getSuccessful()const +{ + return successful_; +} +