From faf9b3fb11bd6f6f88296f12db96ea60e207a87a Mon Sep 17 00:00:00 2001 From: sdk-team Date: Wed, 12 Aug 2020 18:00:12 +0800 Subject: [PATCH] Add pipeline status api. --- CHANGELOG | 3 + VERSION | 2 +- devops-rdc/CMakeLists.txt | 138 +++++ .../devops-rdc/Devops_rdcClient.h | 158 +++++ .../devops-rdc/Devops_rdcExport.h | 32 + .../devops-rdc/model/CancelPipelineRequest.h | 57 ++ .../devops-rdc/model/CancelPipelineResult.h | 57 ++ .../model/CreateCredentialRequest.h | 63 ++ .../devops-rdc/model/CreateCredentialResult.h | 57 ++ .../devops-rdc/model/CreatePipelineRequest.h | 54 ++ .../devops-rdc/model/CreatePipelineResult.h | 57 ++ .../model/CreateServiceConnectionRequest.h | 54 ++ .../model/CreateServiceConnectionResult.h | 57 ++ .../devops-rdc/model/ExecutePipelineRequest.h | 57 ++ .../devops-rdc/model/ExecutePipelineResult.h | 57 ++ ...PipelineInstanceBuildNumberStatusRequest.h | 57 ++ ...tPipelineInstanceBuildNumberStatusResult.h | 80 +++ .../GetPipelineInstanceGroupStatusRequest.h | 57 ++ .../GetPipelineInstanceGroupStatusResult.h | 80 +++ .../model/GetPipelineInstanceInfoRequest.h | 57 ++ .../model/GetPipelineInstanceInfoResult.h | 67 +++ .../model/GetPipelineInstanceStatusRequest.h | 57 ++ .../model/GetPipelineInstanceStatusResult.h | 57 ++ .../devops-rdc/model/GetPipelineLogRequest.h | 57 ++ .../devops-rdc/model/GetPipelineLogResult.h | 70 +++ .../GetPipleineLatestInstanceStatusRequest.h | 54 ++ .../GetPipleineLatestInstanceStatusResult.h | 80 +++ .../devops-rdc/model/ListCredentialsRequest.h | 51 ++ .../devops-rdc/model/ListCredentialsResult.h | 57 ++ .../devops-rdc/model/ListPipelinesRequest.h | 81 +++ .../devops-rdc/model/ListPipelinesResult.h | 57 ++ .../model/ListServiceConnectionsRequest.h | 54 ++ .../model/ListServiceConnectionsResult.h | 57 ++ devops-rdc/src/Devops-rdcClient.cc | 557 ++++++++++++++++++ devops-rdc/src/model/CancelPipelineRequest.cc | 73 +++ devops-rdc/src/model/CancelPipelineResult.cc | 72 +++ .../src/model/CreateCredentialRequest.cc | 95 +++ .../src/model/CreateCredentialResult.cc | 72 +++ devops-rdc/src/model/CreatePipelineRequest.cc | 62 ++ devops-rdc/src/model/CreatePipelineResult.cc | 72 +++ .../model/CreateServiceConnectionRequest.cc | 62 ++ .../model/CreateServiceConnectionResult.cc | 72 +++ .../src/model/ExecutePipelineRequest.cc | 73 +++ devops-rdc/src/model/ExecutePipelineResult.cc | 72 +++ ...ipelineInstanceBuildNumberStatusRequest.cc | 73 +++ ...PipelineInstanceBuildNumberStatusResult.cc | 105 ++++ .../GetPipelineInstanceGroupStatusRequest.cc | 73 +++ .../GetPipelineInstanceGroupStatusResult.cc | 105 ++++ .../model/GetPipelineInstanceInfoRequest.cc | 73 +++ .../model/GetPipelineInstanceInfoResult.cc | 87 +++ .../model/GetPipelineInstanceStatusRequest.cc | 73 +++ .../model/GetPipelineInstanceStatusResult.cc | 72 +++ devops-rdc/src/model/GetPipelineLogRequest.cc | 73 +++ devops-rdc/src/model/GetPipelineLogResult.cc | 94 +++ .../GetPipleineLatestInstanceStatusRequest.cc | 62 ++ .../GetPipleineLatestInstanceStatusResult.cc | 105 ++++ .../src/model/ListCredentialsRequest.cc | 51 ++ devops-rdc/src/model/ListCredentialsResult.cc | 73 +++ devops-rdc/src/model/ListPipelinesRequest.cc | 161 +++++ devops-rdc/src/model/ListPipelinesResult.cc | 72 +++ .../model/ListServiceConnectionsRequest.cc | 62 ++ .../src/model/ListServiceConnectionsResult.cc | 73 +++ 62 files changed, 4801 insertions(+), 1 deletion(-) create mode 100644 devops-rdc/CMakeLists.txt create mode 100644 devops-rdc/include/alibabacloud/devops-rdc/Devops_rdcClient.h create mode 100644 devops-rdc/include/alibabacloud/devops-rdc/Devops_rdcExport.h create mode 100644 devops-rdc/include/alibabacloud/devops-rdc/model/CancelPipelineRequest.h create mode 100644 devops-rdc/include/alibabacloud/devops-rdc/model/CancelPipelineResult.h create mode 100644 devops-rdc/include/alibabacloud/devops-rdc/model/CreateCredentialRequest.h create mode 100644 devops-rdc/include/alibabacloud/devops-rdc/model/CreateCredentialResult.h create mode 100644 devops-rdc/include/alibabacloud/devops-rdc/model/CreatePipelineRequest.h create mode 100644 devops-rdc/include/alibabacloud/devops-rdc/model/CreatePipelineResult.h create mode 100644 devops-rdc/include/alibabacloud/devops-rdc/model/CreateServiceConnectionRequest.h create mode 100644 devops-rdc/include/alibabacloud/devops-rdc/model/CreateServiceConnectionResult.h create mode 100644 devops-rdc/include/alibabacloud/devops-rdc/model/ExecutePipelineRequest.h create mode 100644 devops-rdc/include/alibabacloud/devops-rdc/model/ExecutePipelineResult.h create mode 100644 devops-rdc/include/alibabacloud/devops-rdc/model/GetPipelineInstanceBuildNumberStatusRequest.h create mode 100644 devops-rdc/include/alibabacloud/devops-rdc/model/GetPipelineInstanceBuildNumberStatusResult.h create mode 100644 devops-rdc/include/alibabacloud/devops-rdc/model/GetPipelineInstanceGroupStatusRequest.h create mode 100644 devops-rdc/include/alibabacloud/devops-rdc/model/GetPipelineInstanceGroupStatusResult.h create mode 100644 devops-rdc/include/alibabacloud/devops-rdc/model/GetPipelineInstanceInfoRequest.h create mode 100644 devops-rdc/include/alibabacloud/devops-rdc/model/GetPipelineInstanceInfoResult.h create mode 100644 devops-rdc/include/alibabacloud/devops-rdc/model/GetPipelineInstanceStatusRequest.h create mode 100644 devops-rdc/include/alibabacloud/devops-rdc/model/GetPipelineInstanceStatusResult.h create mode 100644 devops-rdc/include/alibabacloud/devops-rdc/model/GetPipelineLogRequest.h create mode 100644 devops-rdc/include/alibabacloud/devops-rdc/model/GetPipelineLogResult.h create mode 100644 devops-rdc/include/alibabacloud/devops-rdc/model/GetPipleineLatestInstanceStatusRequest.h create mode 100644 devops-rdc/include/alibabacloud/devops-rdc/model/GetPipleineLatestInstanceStatusResult.h create mode 100644 devops-rdc/include/alibabacloud/devops-rdc/model/ListCredentialsRequest.h create mode 100644 devops-rdc/include/alibabacloud/devops-rdc/model/ListCredentialsResult.h create mode 100644 devops-rdc/include/alibabacloud/devops-rdc/model/ListPipelinesRequest.h create mode 100644 devops-rdc/include/alibabacloud/devops-rdc/model/ListPipelinesResult.h create mode 100644 devops-rdc/include/alibabacloud/devops-rdc/model/ListServiceConnectionsRequest.h create mode 100644 devops-rdc/include/alibabacloud/devops-rdc/model/ListServiceConnectionsResult.h create mode 100644 devops-rdc/src/Devops-rdcClient.cc create mode 100644 devops-rdc/src/model/CancelPipelineRequest.cc create mode 100644 devops-rdc/src/model/CancelPipelineResult.cc create mode 100644 devops-rdc/src/model/CreateCredentialRequest.cc create mode 100644 devops-rdc/src/model/CreateCredentialResult.cc create mode 100644 devops-rdc/src/model/CreatePipelineRequest.cc create mode 100644 devops-rdc/src/model/CreatePipelineResult.cc create mode 100644 devops-rdc/src/model/CreateServiceConnectionRequest.cc create mode 100644 devops-rdc/src/model/CreateServiceConnectionResult.cc create mode 100644 devops-rdc/src/model/ExecutePipelineRequest.cc create mode 100644 devops-rdc/src/model/ExecutePipelineResult.cc create mode 100644 devops-rdc/src/model/GetPipelineInstanceBuildNumberStatusRequest.cc create mode 100644 devops-rdc/src/model/GetPipelineInstanceBuildNumberStatusResult.cc create mode 100644 devops-rdc/src/model/GetPipelineInstanceGroupStatusRequest.cc create mode 100644 devops-rdc/src/model/GetPipelineInstanceGroupStatusResult.cc create mode 100644 devops-rdc/src/model/GetPipelineInstanceInfoRequest.cc create mode 100644 devops-rdc/src/model/GetPipelineInstanceInfoResult.cc create mode 100644 devops-rdc/src/model/GetPipelineInstanceStatusRequest.cc create mode 100644 devops-rdc/src/model/GetPipelineInstanceStatusResult.cc create mode 100644 devops-rdc/src/model/GetPipelineLogRequest.cc create mode 100644 devops-rdc/src/model/GetPipelineLogResult.cc create mode 100644 devops-rdc/src/model/GetPipleineLatestInstanceStatusRequest.cc create mode 100644 devops-rdc/src/model/GetPipleineLatestInstanceStatusResult.cc create mode 100644 devops-rdc/src/model/ListCredentialsRequest.cc create mode 100644 devops-rdc/src/model/ListCredentialsResult.cc create mode 100644 devops-rdc/src/model/ListPipelinesRequest.cc create mode 100644 devops-rdc/src/model/ListPipelinesResult.cc create mode 100644 devops-rdc/src/model/ListServiceConnectionsRequest.cc create mode 100644 devops-rdc/src/model/ListServiceConnectionsResult.cc diff --git a/CHANGELOG b/CHANGELOG index 9420d963b..f8ff9c0bd 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2020-08-12 Version: 1.36.571 +- Add pipeline status api. + 2020-08-12 Version: 1.36.570 - Generated 2015-01-01 for `R-kvstore`. - SyncDtsStatus API add TaskId parameter. diff --git a/VERSION b/VERSION index 0be087b88..099d0a307 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.570 \ No newline at end of file +1.36.571 \ No newline at end of file diff --git a/devops-rdc/CMakeLists.txt b/devops-rdc/CMakeLists.txt new file mode 100644 index 000000000..df2a81b91 --- /dev/null +++ b/devops-rdc/CMakeLists.txt @@ -0,0 +1,138 @@ +# +# Copyright 2009-2017 Alibaba Cloud All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT 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(devops-rdc_public_header + include/alibabacloud/devops-rdc/Devops_rdcClient.h + include/alibabacloud/devops-rdc/Devops_rdcExport.h ) + +set(devops-rdc_public_header_model + include/alibabacloud/devops-rdc/model/CancelPipelineRequest.h + include/alibabacloud/devops-rdc/model/CancelPipelineResult.h + include/alibabacloud/devops-rdc/model/CreateCredentialRequest.h + include/alibabacloud/devops-rdc/model/CreateCredentialResult.h + include/alibabacloud/devops-rdc/model/CreatePipelineRequest.h + include/alibabacloud/devops-rdc/model/CreatePipelineResult.h + include/alibabacloud/devops-rdc/model/CreateServiceConnectionRequest.h + include/alibabacloud/devops-rdc/model/CreateServiceConnectionResult.h + include/alibabacloud/devops-rdc/model/ExecutePipelineRequest.h + include/alibabacloud/devops-rdc/model/ExecutePipelineResult.h + include/alibabacloud/devops-rdc/model/GetPipelineInstanceBuildNumberStatusRequest.h + include/alibabacloud/devops-rdc/model/GetPipelineInstanceBuildNumberStatusResult.h + include/alibabacloud/devops-rdc/model/GetPipelineInstanceGroupStatusRequest.h + include/alibabacloud/devops-rdc/model/GetPipelineInstanceGroupStatusResult.h + include/alibabacloud/devops-rdc/model/GetPipelineInstanceInfoRequest.h + include/alibabacloud/devops-rdc/model/GetPipelineInstanceInfoResult.h + include/alibabacloud/devops-rdc/model/GetPipelineInstanceStatusRequest.h + include/alibabacloud/devops-rdc/model/GetPipelineInstanceStatusResult.h + include/alibabacloud/devops-rdc/model/GetPipelineLogRequest.h + include/alibabacloud/devops-rdc/model/GetPipelineLogResult.h + include/alibabacloud/devops-rdc/model/GetPipleineLatestInstanceStatusRequest.h + include/alibabacloud/devops-rdc/model/GetPipleineLatestInstanceStatusResult.h + include/alibabacloud/devops-rdc/model/ListCredentialsRequest.h + include/alibabacloud/devops-rdc/model/ListCredentialsResult.h + include/alibabacloud/devops-rdc/model/ListPipelinesRequest.h + include/alibabacloud/devops-rdc/model/ListPipelinesResult.h + include/alibabacloud/devops-rdc/model/ListServiceConnectionsRequest.h + include/alibabacloud/devops-rdc/model/ListServiceConnectionsResult.h ) + +set(devops-rdc_src + src/Devops-rdcClient.cc + src/model/CancelPipelineRequest.cc + src/model/CancelPipelineResult.cc + src/model/CreateCredentialRequest.cc + src/model/CreateCredentialResult.cc + src/model/CreatePipelineRequest.cc + src/model/CreatePipelineResult.cc + src/model/CreateServiceConnectionRequest.cc + src/model/CreateServiceConnectionResult.cc + src/model/ExecutePipelineRequest.cc + src/model/ExecutePipelineResult.cc + src/model/GetPipelineInstanceBuildNumberStatusRequest.cc + src/model/GetPipelineInstanceBuildNumberStatusResult.cc + src/model/GetPipelineInstanceGroupStatusRequest.cc + src/model/GetPipelineInstanceGroupStatusResult.cc + src/model/GetPipelineInstanceInfoRequest.cc + src/model/GetPipelineInstanceInfoResult.cc + src/model/GetPipelineInstanceStatusRequest.cc + src/model/GetPipelineInstanceStatusResult.cc + src/model/GetPipelineLogRequest.cc + src/model/GetPipelineLogResult.cc + src/model/GetPipleineLatestInstanceStatusRequest.cc + src/model/GetPipleineLatestInstanceStatusResult.cc + src/model/ListCredentialsRequest.cc + src/model/ListCredentialsResult.cc + src/model/ListPipelinesRequest.cc + src/model/ListPipelinesResult.cc + src/model/ListServiceConnectionsRequest.cc + src/model/ListServiceConnectionsResult.cc ) + +add_library(devops-rdc ${LIB_TYPE} + ${devops-rdc_public_header} + ${devops-rdc_public_header_model} + ${devops-rdc_src}) + +set_target_properties(devops-rdc + 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}devops-rdc + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(devops-rdc + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_DEVOPS_RDC_LIBRARY) +endif() + +target_include_directories(devops-rdc + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(devops-rdc + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(devops-rdc + jsoncpp) + target_include_directories(devops-rdc + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(devops-rdc + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(devops-rdc + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(devops-rdc + PRIVATE /usr/include/jsoncpp) + target_link_libraries(devops-rdc + jsoncpp) +endif() + +install(FILES ${devops-rdc_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/devops-rdc) +install(FILES ${devops-rdc_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/devops-rdc/model) +install(TARGETS devops-rdc + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/devops-rdc/include/alibabacloud/devops-rdc/Devops_rdcClient.h b/devops-rdc/include/alibabacloud/devops-rdc/Devops_rdcClient.h new file mode 100644 index 000000000..810b168a8 --- /dev/null +++ b/devops-rdc/include/alibabacloud/devops-rdc/Devops_rdcClient.h @@ -0,0 +1,158 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DEVOPS_RDC_DEVOPS_RDCCLIENT_H_ +#define ALIBABACLOUD_DEVOPS_RDC_DEVOPS_RDCCLIENT_H_ + +#include +#include +#include +#include +#include "Devops_rdcExport.h" +#include "model/CancelPipelineRequest.h" +#include "model/CancelPipelineResult.h" +#include "model/CreateCredentialRequest.h" +#include "model/CreateCredentialResult.h" +#include "model/CreatePipelineRequest.h" +#include "model/CreatePipelineResult.h" +#include "model/CreateServiceConnectionRequest.h" +#include "model/CreateServiceConnectionResult.h" +#include "model/ExecutePipelineRequest.h" +#include "model/ExecutePipelineResult.h" +#include "model/GetPipelineInstanceBuildNumberStatusRequest.h" +#include "model/GetPipelineInstanceBuildNumberStatusResult.h" +#include "model/GetPipelineInstanceGroupStatusRequest.h" +#include "model/GetPipelineInstanceGroupStatusResult.h" +#include "model/GetPipelineInstanceInfoRequest.h" +#include "model/GetPipelineInstanceInfoResult.h" +#include "model/GetPipelineInstanceStatusRequest.h" +#include "model/GetPipelineInstanceStatusResult.h" +#include "model/GetPipelineLogRequest.h" +#include "model/GetPipelineLogResult.h" +#include "model/GetPipleineLatestInstanceStatusRequest.h" +#include "model/GetPipleineLatestInstanceStatusResult.h" +#include "model/ListCredentialsRequest.h" +#include "model/ListCredentialsResult.h" +#include "model/ListPipelinesRequest.h" +#include "model/ListPipelinesResult.h" +#include "model/ListServiceConnectionsRequest.h" +#include "model/ListServiceConnectionsResult.h" + + +namespace AlibabaCloud +{ + namespace Devops_rdc + { + class ALIBABACLOUD_DEVOPS_RDC_EXPORT Devops_rdcClient : public RpcServiceClient + { + public: + typedef Outcome CancelPipelineOutcome; + typedef std::future CancelPipelineOutcomeCallable; + typedef std::function&)> CancelPipelineAsyncHandler; + typedef Outcome CreateCredentialOutcome; + typedef std::future CreateCredentialOutcomeCallable; + typedef std::function&)> CreateCredentialAsyncHandler; + typedef Outcome CreatePipelineOutcome; + typedef std::future CreatePipelineOutcomeCallable; + typedef std::function&)> CreatePipelineAsyncHandler; + typedef Outcome CreateServiceConnectionOutcome; + typedef std::future CreateServiceConnectionOutcomeCallable; + typedef std::function&)> CreateServiceConnectionAsyncHandler; + typedef Outcome ExecutePipelineOutcome; + typedef std::future ExecutePipelineOutcomeCallable; + typedef std::function&)> ExecutePipelineAsyncHandler; + typedef Outcome GetPipelineInstanceBuildNumberStatusOutcome; + typedef std::future GetPipelineInstanceBuildNumberStatusOutcomeCallable; + typedef std::function&)> GetPipelineInstanceBuildNumberStatusAsyncHandler; + typedef Outcome GetPipelineInstanceGroupStatusOutcome; + typedef std::future GetPipelineInstanceGroupStatusOutcomeCallable; + typedef std::function&)> GetPipelineInstanceGroupStatusAsyncHandler; + typedef Outcome GetPipelineInstanceInfoOutcome; + typedef std::future GetPipelineInstanceInfoOutcomeCallable; + typedef std::function&)> GetPipelineInstanceInfoAsyncHandler; + typedef Outcome GetPipelineInstanceStatusOutcome; + typedef std::future GetPipelineInstanceStatusOutcomeCallable; + typedef std::function&)> GetPipelineInstanceStatusAsyncHandler; + typedef Outcome GetPipelineLogOutcome; + typedef std::future GetPipelineLogOutcomeCallable; + typedef std::function&)> GetPipelineLogAsyncHandler; + typedef Outcome GetPipleineLatestInstanceStatusOutcome; + typedef std::future GetPipleineLatestInstanceStatusOutcomeCallable; + typedef std::function&)> GetPipleineLatestInstanceStatusAsyncHandler; + typedef Outcome ListCredentialsOutcome; + typedef std::future ListCredentialsOutcomeCallable; + typedef std::function&)> ListCredentialsAsyncHandler; + typedef Outcome ListPipelinesOutcome; + typedef std::future ListPipelinesOutcomeCallable; + typedef std::function&)> ListPipelinesAsyncHandler; + typedef Outcome ListServiceConnectionsOutcome; + typedef std::future ListServiceConnectionsOutcomeCallable; + typedef std::function&)> ListServiceConnectionsAsyncHandler; + + Devops_rdcClient(const Credentials &credentials, const ClientConfiguration &configuration); + Devops_rdcClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + Devops_rdcClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~Devops_rdcClient(); + CancelPipelineOutcome cancelPipeline(const Model::CancelPipelineRequest &request)const; + void cancelPipelineAsync(const Model::CancelPipelineRequest& request, const CancelPipelineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CancelPipelineOutcomeCallable cancelPipelineCallable(const Model::CancelPipelineRequest& request) const; + CreateCredentialOutcome createCredential(const Model::CreateCredentialRequest &request)const; + void createCredentialAsync(const Model::CreateCredentialRequest& request, const CreateCredentialAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateCredentialOutcomeCallable createCredentialCallable(const Model::CreateCredentialRequest& request) const; + CreatePipelineOutcome createPipeline(const Model::CreatePipelineRequest &request)const; + void createPipelineAsync(const Model::CreatePipelineRequest& request, const CreatePipelineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreatePipelineOutcomeCallable createPipelineCallable(const Model::CreatePipelineRequest& request) const; + CreateServiceConnectionOutcome createServiceConnection(const Model::CreateServiceConnectionRequest &request)const; + void createServiceConnectionAsync(const Model::CreateServiceConnectionRequest& request, const CreateServiceConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateServiceConnectionOutcomeCallable createServiceConnectionCallable(const Model::CreateServiceConnectionRequest& request) const; + ExecutePipelineOutcome executePipeline(const Model::ExecutePipelineRequest &request)const; + void executePipelineAsync(const Model::ExecutePipelineRequest& request, const ExecutePipelineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ExecutePipelineOutcomeCallable executePipelineCallable(const Model::ExecutePipelineRequest& request) const; + GetPipelineInstanceBuildNumberStatusOutcome getPipelineInstanceBuildNumberStatus(const Model::GetPipelineInstanceBuildNumberStatusRequest &request)const; + void getPipelineInstanceBuildNumberStatusAsync(const Model::GetPipelineInstanceBuildNumberStatusRequest& request, const GetPipelineInstanceBuildNumberStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetPipelineInstanceBuildNumberStatusOutcomeCallable getPipelineInstanceBuildNumberStatusCallable(const Model::GetPipelineInstanceBuildNumberStatusRequest& request) const; + GetPipelineInstanceGroupStatusOutcome getPipelineInstanceGroupStatus(const Model::GetPipelineInstanceGroupStatusRequest &request)const; + void getPipelineInstanceGroupStatusAsync(const Model::GetPipelineInstanceGroupStatusRequest& request, const GetPipelineInstanceGroupStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetPipelineInstanceGroupStatusOutcomeCallable getPipelineInstanceGroupStatusCallable(const Model::GetPipelineInstanceGroupStatusRequest& request) const; + GetPipelineInstanceInfoOutcome getPipelineInstanceInfo(const Model::GetPipelineInstanceInfoRequest &request)const; + void getPipelineInstanceInfoAsync(const Model::GetPipelineInstanceInfoRequest& request, const GetPipelineInstanceInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetPipelineInstanceInfoOutcomeCallable getPipelineInstanceInfoCallable(const Model::GetPipelineInstanceInfoRequest& request) const; + GetPipelineInstanceStatusOutcome getPipelineInstanceStatus(const Model::GetPipelineInstanceStatusRequest &request)const; + void getPipelineInstanceStatusAsync(const Model::GetPipelineInstanceStatusRequest& request, const GetPipelineInstanceStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetPipelineInstanceStatusOutcomeCallable getPipelineInstanceStatusCallable(const Model::GetPipelineInstanceStatusRequest& request) const; + GetPipelineLogOutcome getPipelineLog(const Model::GetPipelineLogRequest &request)const; + void getPipelineLogAsync(const Model::GetPipelineLogRequest& request, const GetPipelineLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetPipelineLogOutcomeCallable getPipelineLogCallable(const Model::GetPipelineLogRequest& request) const; + GetPipleineLatestInstanceStatusOutcome getPipleineLatestInstanceStatus(const Model::GetPipleineLatestInstanceStatusRequest &request)const; + void getPipleineLatestInstanceStatusAsync(const Model::GetPipleineLatestInstanceStatusRequest& request, const GetPipleineLatestInstanceStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetPipleineLatestInstanceStatusOutcomeCallable getPipleineLatestInstanceStatusCallable(const Model::GetPipleineLatestInstanceStatusRequest& request) const; + ListCredentialsOutcome listCredentials(const Model::ListCredentialsRequest &request)const; + void listCredentialsAsync(const Model::ListCredentialsRequest& request, const ListCredentialsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListCredentialsOutcomeCallable listCredentialsCallable(const Model::ListCredentialsRequest& request) const; + ListPipelinesOutcome listPipelines(const Model::ListPipelinesRequest &request)const; + void listPipelinesAsync(const Model::ListPipelinesRequest& request, const ListPipelinesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListPipelinesOutcomeCallable listPipelinesCallable(const Model::ListPipelinesRequest& request) const; + ListServiceConnectionsOutcome listServiceConnections(const Model::ListServiceConnectionsRequest &request)const; + void listServiceConnectionsAsync(const Model::ListServiceConnectionsRequest& request, const ListServiceConnectionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListServiceConnectionsOutcomeCallable listServiceConnectionsCallable(const Model::ListServiceConnectionsRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_DEVOPS_RDC_DEVOPS_RDCCLIENT_H_ diff --git a/devops-rdc/include/alibabacloud/devops-rdc/Devops_rdcExport.h b/devops-rdc/include/alibabacloud/devops-rdc/Devops_rdcExport.h new file mode 100644 index 000000000..f5dab7895 --- /dev/null +++ b/devops-rdc/include/alibabacloud/devops-rdc/Devops_rdcExport.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_DEVOPS_RDC_DEVOPS_RDCEXPORT_H_ +#define ALIBABACLOUD_DEVOPS_RDC_DEVOPS_RDCEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_DEVOPS_RDC_LIBRARY) +# define ALIBABACLOUD_DEVOPS_RDC_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_DEVOPS_RDC_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_DEVOPS_RDC_EXPORT +#endif + +#endif // !ALIBABACLOUD_DEVOPS_RDC_DEVOPS_RDCEXPORT_H_ \ No newline at end of file diff --git a/devops-rdc/include/alibabacloud/devops-rdc/model/CancelPipelineRequest.h b/devops-rdc/include/alibabacloud/devops-rdc/model/CancelPipelineRequest.h new file mode 100644 index 000000000..5b4170489 --- /dev/null +++ b/devops-rdc/include/alibabacloud/devops-rdc/model/CancelPipelineRequest.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_DEVOPS_RDC_MODEL_CANCELPIPELINEREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_RDC_MODEL_CANCELPIPELINEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops_rdc + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_RDC_EXPORT CancelPipelineRequest : public RpcServiceRequest + { + + public: + CancelPipelineRequest(); + ~CancelPipelineRequest(); + + long getFlowInstanceId()const; + void setFlowInstanceId(long flowInstanceId); + std::string getUserPk()const; + void setUserPk(const std::string& userPk); + std::string getOrgId()const; + void setOrgId(const std::string& orgId); + long getPipelineId()const; + void setPipelineId(long pipelineId); + + private: + long flowInstanceId_; + std::string userPk_; + std::string orgId_; + long pipelineId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_CANCELPIPELINEREQUEST_H_ \ No newline at end of file diff --git a/devops-rdc/include/alibabacloud/devops-rdc/model/CancelPipelineResult.h b/devops-rdc/include/alibabacloud/devops-rdc/model/CancelPipelineResult.h new file mode 100644 index 000000000..cbee597d5 --- /dev/null +++ b/devops-rdc/include/alibabacloud/devops-rdc/model/CancelPipelineResult.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_DEVOPS_RDC_MODEL_CANCELPIPELINERESULT_H_ +#define ALIBABACLOUD_DEVOPS_RDC_MODEL_CANCELPIPELINERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops_rdc + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_RDC_EXPORT CancelPipelineResult : public ServiceResult + { + public: + + + CancelPipelineResult(); + explicit CancelPipelineResult(const std::string &payload); + ~CancelPipelineResult(); + 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_DEVOPS_RDC_MODEL_CANCELPIPELINERESULT_H_ \ No newline at end of file diff --git a/devops-rdc/include/alibabacloud/devops-rdc/model/CreateCredentialRequest.h b/devops-rdc/include/alibabacloud/devops-rdc/model/CreateCredentialRequest.h new file mode 100644 index 000000000..94609f4fb --- /dev/null +++ b/devops-rdc/include/alibabacloud/devops-rdc/model/CreateCredentialRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DEVOPS_RDC_MODEL_CREATECREDENTIALREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_RDC_MODEL_CREATECREDENTIALREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops_rdc + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_RDC_EXPORT CreateCredentialRequest : public RpcServiceRequest + { + + public: + CreateCredentialRequest(); + ~CreateCredentialRequest(); + + std::string getType()const; + void setType(const std::string& type); + std::string getUserPk()const; + void setUserPk(const std::string& userPk); + std::string getOrgId()const; + void setOrgId(const std::string& orgId); + std::string getPassword()const; + void setPassword(const std::string& password); + std::string getName()const; + void setName(const std::string& name); + std::string getUserName()const; + void setUserName(const std::string& userName); + + private: + std::string type_; + std::string userPk_; + std::string orgId_; + std::string password_; + std::string name_; + std::string userName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_CREATECREDENTIALREQUEST_H_ \ No newline at end of file diff --git a/devops-rdc/include/alibabacloud/devops-rdc/model/CreateCredentialResult.h b/devops-rdc/include/alibabacloud/devops-rdc/model/CreateCredentialResult.h new file mode 100644 index 000000000..f477ea239 --- /dev/null +++ b/devops-rdc/include/alibabacloud/devops-rdc/model/CreateCredentialResult.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_DEVOPS_RDC_MODEL_CREATECREDENTIALRESULT_H_ +#define ALIBABACLOUD_DEVOPS_RDC_MODEL_CREATECREDENTIALRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops_rdc + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_RDC_EXPORT CreateCredentialResult : public ServiceResult + { + public: + + + CreateCredentialResult(); + explicit CreateCredentialResult(const std::string &payload); + ~CreateCredentialResult(); + long getObject()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + long object_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_CREATECREDENTIALRESULT_H_ \ No newline at end of file diff --git a/devops-rdc/include/alibabacloud/devops-rdc/model/CreatePipelineRequest.h b/devops-rdc/include/alibabacloud/devops-rdc/model/CreatePipelineRequest.h new file mode 100644 index 000000000..c42e40448 --- /dev/null +++ b/devops-rdc/include/alibabacloud/devops-rdc/model/CreatePipelineRequest.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_DEVOPS_RDC_MODEL_CREATEPIPELINEREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_RDC_MODEL_CREATEPIPELINEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops_rdc + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_RDC_EXPORT CreatePipelineRequest : public RpcServiceRequest + { + + public: + CreatePipelineRequest(); + ~CreatePipelineRequest(); + + std::string getPipeline()const; + void setPipeline(const std::string& pipeline); + std::string getUserPk()const; + void setUserPk(const std::string& userPk); + std::string getOrgId()const; + void setOrgId(const std::string& orgId); + + private: + std::string pipeline_; + std::string userPk_; + std::string orgId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_CREATEPIPELINEREQUEST_H_ \ No newline at end of file diff --git a/devops-rdc/include/alibabacloud/devops-rdc/model/CreatePipelineResult.h b/devops-rdc/include/alibabacloud/devops-rdc/model/CreatePipelineResult.h new file mode 100644 index 000000000..55ff764f4 --- /dev/null +++ b/devops-rdc/include/alibabacloud/devops-rdc/model/CreatePipelineResult.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_DEVOPS_RDC_MODEL_CREATEPIPELINERESULT_H_ +#define ALIBABACLOUD_DEVOPS_RDC_MODEL_CREATEPIPELINERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops_rdc + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_RDC_EXPORT CreatePipelineResult : public ServiceResult + { + public: + + + CreatePipelineResult(); + explicit CreatePipelineResult(const std::string &payload); + ~CreatePipelineResult(); + long getObject()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + long object_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_CREATEPIPELINERESULT_H_ \ No newline at end of file diff --git a/devops-rdc/include/alibabacloud/devops-rdc/model/CreateServiceConnectionRequest.h b/devops-rdc/include/alibabacloud/devops-rdc/model/CreateServiceConnectionRequest.h new file mode 100644 index 000000000..4d32564e8 --- /dev/null +++ b/devops-rdc/include/alibabacloud/devops-rdc/model/CreateServiceConnectionRequest.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_DEVOPS_RDC_MODEL_CREATESERVICECONNECTIONREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_RDC_MODEL_CREATESERVICECONNECTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops_rdc + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_RDC_EXPORT CreateServiceConnectionRequest : public RpcServiceRequest + { + + public: + CreateServiceConnectionRequest(); + ~CreateServiceConnectionRequest(); + + std::string getServiceConnectionType()const; + void setServiceConnectionType(const std::string& serviceConnectionType); + std::string getUserPk()const; + void setUserPk(const std::string& userPk); + std::string getOrgId()const; + void setOrgId(const std::string& orgId); + + private: + std::string serviceConnectionType_; + std::string userPk_; + std::string orgId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_CREATESERVICECONNECTIONREQUEST_H_ \ No newline at end of file diff --git a/devops-rdc/include/alibabacloud/devops-rdc/model/CreateServiceConnectionResult.h b/devops-rdc/include/alibabacloud/devops-rdc/model/CreateServiceConnectionResult.h new file mode 100644 index 000000000..424c5b27b --- /dev/null +++ b/devops-rdc/include/alibabacloud/devops-rdc/model/CreateServiceConnectionResult.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_DEVOPS_RDC_MODEL_CREATESERVICECONNECTIONRESULT_H_ +#define ALIBABACLOUD_DEVOPS_RDC_MODEL_CREATESERVICECONNECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops_rdc + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_RDC_EXPORT CreateServiceConnectionResult : public ServiceResult + { + public: + + + CreateServiceConnectionResult(); + explicit CreateServiceConnectionResult(const std::string &payload); + ~CreateServiceConnectionResult(); + long getObject()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + long object_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_CREATESERVICECONNECTIONRESULT_H_ \ No newline at end of file diff --git a/devops-rdc/include/alibabacloud/devops-rdc/model/ExecutePipelineRequest.h b/devops-rdc/include/alibabacloud/devops-rdc/model/ExecutePipelineRequest.h new file mode 100644 index 000000000..bdb36df1d --- /dev/null +++ b/devops-rdc/include/alibabacloud/devops-rdc/model/ExecutePipelineRequest.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_DEVOPS_RDC_MODEL_EXECUTEPIPELINEREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_RDC_MODEL_EXECUTEPIPELINEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops_rdc + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_RDC_EXPORT ExecutePipelineRequest : public RpcServiceRequest + { + + public: + ExecutePipelineRequest(); + ~ExecutePipelineRequest(); + + std::string getParameters()const; + void setParameters(const std::string& parameters); + std::string getUserPk()const; + void setUserPk(const std::string& userPk); + std::string getOrgId()const; + void setOrgId(const std::string& orgId); + long getPipelineId()const; + void setPipelineId(long pipelineId); + + private: + std::string parameters_; + std::string userPk_; + std::string orgId_; + long pipelineId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_EXECUTEPIPELINEREQUEST_H_ \ No newline at end of file diff --git a/devops-rdc/include/alibabacloud/devops-rdc/model/ExecutePipelineResult.h b/devops-rdc/include/alibabacloud/devops-rdc/model/ExecutePipelineResult.h new file mode 100644 index 000000000..fc6bad351 --- /dev/null +++ b/devops-rdc/include/alibabacloud/devops-rdc/model/ExecutePipelineResult.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_DEVOPS_RDC_MODEL_EXECUTEPIPELINERESULT_H_ +#define ALIBABACLOUD_DEVOPS_RDC_MODEL_EXECUTEPIPELINERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops_rdc + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_RDC_EXPORT ExecutePipelineResult : public ServiceResult + { + public: + + + ExecutePipelineResult(); + explicit ExecutePipelineResult(const std::string &payload); + ~ExecutePipelineResult(); + long getObject()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + long object_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_EXECUTEPIPELINERESULT_H_ \ No newline at end of file diff --git a/devops-rdc/include/alibabacloud/devops-rdc/model/GetPipelineInstanceBuildNumberStatusRequest.h b/devops-rdc/include/alibabacloud/devops-rdc/model/GetPipelineInstanceBuildNumberStatusRequest.h new file mode 100644 index 000000000..fb61190c3 --- /dev/null +++ b/devops-rdc/include/alibabacloud/devops-rdc/model/GetPipelineInstanceBuildNumberStatusRequest.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_DEVOPS_RDC_MODEL_GETPIPELINEINSTANCEBUILDNUMBERSTATUSREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_RDC_MODEL_GETPIPELINEINSTANCEBUILDNUMBERSTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops_rdc + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_RDC_EXPORT GetPipelineInstanceBuildNumberStatusRequest : public RpcServiceRequest + { + + public: + GetPipelineInstanceBuildNumberStatusRequest(); + ~GetPipelineInstanceBuildNumberStatusRequest(); + + long getBuildNum()const; + void setBuildNum(long buildNum); + std::string getUserPk()const; + void setUserPk(const std::string& userPk); + std::string getOrgId()const; + void setOrgId(const std::string& orgId); + long getPipelineId()const; + void setPipelineId(long pipelineId); + + private: + long buildNum_; + std::string userPk_; + std::string orgId_; + long pipelineId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_GETPIPELINEINSTANCEBUILDNUMBERSTATUSREQUEST_H_ \ No newline at end of file diff --git a/devops-rdc/include/alibabacloud/devops-rdc/model/GetPipelineInstanceBuildNumberStatusResult.h b/devops-rdc/include/alibabacloud/devops-rdc/model/GetPipelineInstanceBuildNumberStatusResult.h new file mode 100644 index 000000000..b751f087d --- /dev/null +++ b/devops-rdc/include/alibabacloud/devops-rdc/model/GetPipelineInstanceBuildNumberStatusResult.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_DEVOPS_RDC_MODEL_GETPIPELINEINSTANCEBUILDNUMBERSTATUSRESULT_H_ +#define ALIBABACLOUD_DEVOPS_RDC_MODEL_GETPIPELINEINSTANCEBUILDNUMBERSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops_rdc + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_RDC_EXPORT GetPipelineInstanceBuildNumberStatusResult : public ServiceResult + { + public: + struct Object + { + struct Group + { + struct Stage + { + struct Component + { + std::string status; + long jobId; + std::string name; + }; + std::vector components; + std::string status; + std::string sign; + }; + std::string status; + std::vector stages; + std::string name; + }; + std::string status; + std::vector groups; + }; + + + GetPipelineInstanceBuildNumberStatusResult(); + explicit GetPipelineInstanceBuildNumberStatusResult(const std::string &payload); + ~GetPipelineInstanceBuildNumberStatusResult(); + Object getObject()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + Object object_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_GETPIPELINEINSTANCEBUILDNUMBERSTATUSRESULT_H_ \ No newline at end of file diff --git a/devops-rdc/include/alibabacloud/devops-rdc/model/GetPipelineInstanceGroupStatusRequest.h b/devops-rdc/include/alibabacloud/devops-rdc/model/GetPipelineInstanceGroupStatusRequest.h new file mode 100644 index 000000000..0ea110acd --- /dev/null +++ b/devops-rdc/include/alibabacloud/devops-rdc/model/GetPipelineInstanceGroupStatusRequest.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_DEVOPS_RDC_MODEL_GETPIPELINEINSTANCEGROUPSTATUSREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_RDC_MODEL_GETPIPELINEINSTANCEGROUPSTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops_rdc + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_RDC_EXPORT GetPipelineInstanceGroupStatusRequest : public RpcServiceRequest + { + + public: + GetPipelineInstanceGroupStatusRequest(); + ~GetPipelineInstanceGroupStatusRequest(); + + long getFlowInstanceId()const; + void setFlowInstanceId(long flowInstanceId); + std::string getUserPk()const; + void setUserPk(const std::string& userPk); + std::string getOrgId()const; + void setOrgId(const std::string& orgId); + long getPipelineId()const; + void setPipelineId(long pipelineId); + + private: + long flowInstanceId_; + std::string userPk_; + std::string orgId_; + long pipelineId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_GETPIPELINEINSTANCEGROUPSTATUSREQUEST_H_ \ No newline at end of file diff --git a/devops-rdc/include/alibabacloud/devops-rdc/model/GetPipelineInstanceGroupStatusResult.h b/devops-rdc/include/alibabacloud/devops-rdc/model/GetPipelineInstanceGroupStatusResult.h new file mode 100644 index 000000000..c7f02f5fe --- /dev/null +++ b/devops-rdc/include/alibabacloud/devops-rdc/model/GetPipelineInstanceGroupStatusResult.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_DEVOPS_RDC_MODEL_GETPIPELINEINSTANCEGROUPSTATUSRESULT_H_ +#define ALIBABACLOUD_DEVOPS_RDC_MODEL_GETPIPELINEINSTANCEGROUPSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops_rdc + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_RDC_EXPORT GetPipelineInstanceGroupStatusResult : public ServiceResult + { + public: + struct Object + { + struct Group + { + struct Stage + { + struct Component + { + std::string status; + std::string jobId; + std::string name; + }; + std::vector components; + std::string status; + std::string sign; + }; + std::string status; + std::vector stages; + std::string name; + }; + std::string status; + std::vector groups; + }; + + + GetPipelineInstanceGroupStatusResult(); + explicit GetPipelineInstanceGroupStatusResult(const std::string &payload); + ~GetPipelineInstanceGroupStatusResult(); + Object getObject()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + Object object_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_GETPIPELINEINSTANCEGROUPSTATUSRESULT_H_ \ No newline at end of file diff --git a/devops-rdc/include/alibabacloud/devops-rdc/model/GetPipelineInstanceInfoRequest.h b/devops-rdc/include/alibabacloud/devops-rdc/model/GetPipelineInstanceInfoRequest.h new file mode 100644 index 000000000..ce1359312 --- /dev/null +++ b/devops-rdc/include/alibabacloud/devops-rdc/model/GetPipelineInstanceInfoRequest.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_DEVOPS_RDC_MODEL_GETPIPELINEINSTANCEINFOREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_RDC_MODEL_GETPIPELINEINSTANCEINFOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops_rdc + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_RDC_EXPORT GetPipelineInstanceInfoRequest : public RpcServiceRequest + { + + public: + GetPipelineInstanceInfoRequest(); + ~GetPipelineInstanceInfoRequest(); + + std::string getFlowInstanceId()const; + void setFlowInstanceId(const std::string& flowInstanceId); + std::string getUserPk()const; + void setUserPk(const std::string& userPk); + std::string getOrgId()const; + void setOrgId(const std::string& orgId); + long getPipelineId()const; + void setPipelineId(long pipelineId); + + private: + std::string flowInstanceId_; + std::string userPk_; + std::string orgId_; + long pipelineId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_GETPIPELINEINSTANCEINFOREQUEST_H_ \ No newline at end of file diff --git a/devops-rdc/include/alibabacloud/devops-rdc/model/GetPipelineInstanceInfoResult.h b/devops-rdc/include/alibabacloud/devops-rdc/model/GetPipelineInstanceInfoResult.h new file mode 100644 index 000000000..73be5d7e4 --- /dev/null +++ b/devops-rdc/include/alibabacloud/devops-rdc/model/GetPipelineInstanceInfoResult.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_DEVOPS_RDC_MODEL_GETPIPELINEINSTANCEINFORESULT_H_ +#define ALIBABACLOUD_DEVOPS_RDC_MODEL_GETPIPELINEINSTANCEINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops_rdc + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_RDC_EXPORT GetPipelineInstanceInfoResult : public ServiceResult + { + public: + struct Object + { + std::string status; + long endTime; + std::vector packageDownloadUrls; + long startTime; + std::string employeeId; + std::string sources; + std::vector dockerImages; + }; + + + GetPipelineInstanceInfoResult(); + explicit GetPipelineInstanceInfoResult(const std::string &payload); + ~GetPipelineInstanceInfoResult(); + Object getObject()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + Object object_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_GETPIPELINEINSTANCEINFORESULT_H_ \ No newline at end of file diff --git a/devops-rdc/include/alibabacloud/devops-rdc/model/GetPipelineInstanceStatusRequest.h b/devops-rdc/include/alibabacloud/devops-rdc/model/GetPipelineInstanceStatusRequest.h new file mode 100644 index 000000000..06a23eeb5 --- /dev/null +++ b/devops-rdc/include/alibabacloud/devops-rdc/model/GetPipelineInstanceStatusRequest.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_DEVOPS_RDC_MODEL_GETPIPELINEINSTANCESTATUSREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_RDC_MODEL_GETPIPELINEINSTANCESTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops_rdc + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_RDC_EXPORT GetPipelineInstanceStatusRequest : public RpcServiceRequest + { + + public: + GetPipelineInstanceStatusRequest(); + ~GetPipelineInstanceStatusRequest(); + + long getFlowInstanceId()const; + void setFlowInstanceId(long flowInstanceId); + std::string getUserPk()const; + void setUserPk(const std::string& userPk); + std::string getOrgId()const; + void setOrgId(const std::string& orgId); + long getPipelineId()const; + void setPipelineId(long pipelineId); + + private: + long flowInstanceId_; + std::string userPk_; + std::string orgId_; + long pipelineId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_GETPIPELINEINSTANCESTATUSREQUEST_H_ \ No newline at end of file diff --git a/devops-rdc/include/alibabacloud/devops-rdc/model/GetPipelineInstanceStatusResult.h b/devops-rdc/include/alibabacloud/devops-rdc/model/GetPipelineInstanceStatusResult.h new file mode 100644 index 000000000..57980d66a --- /dev/null +++ b/devops-rdc/include/alibabacloud/devops-rdc/model/GetPipelineInstanceStatusResult.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_DEVOPS_RDC_MODEL_GETPIPELINEINSTANCESTATUSRESULT_H_ +#define ALIBABACLOUD_DEVOPS_RDC_MODEL_GETPIPELINEINSTANCESTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops_rdc + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_RDC_EXPORT GetPipelineInstanceStatusResult : public ServiceResult + { + public: + + + GetPipelineInstanceStatusResult(); + explicit GetPipelineInstanceStatusResult(const std::string &payload); + ~GetPipelineInstanceStatusResult(); + 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_DEVOPS_RDC_MODEL_GETPIPELINEINSTANCESTATUSRESULT_H_ \ No newline at end of file diff --git a/devops-rdc/include/alibabacloud/devops-rdc/model/GetPipelineLogRequest.h b/devops-rdc/include/alibabacloud/devops-rdc/model/GetPipelineLogRequest.h new file mode 100644 index 000000000..d5426ce0c --- /dev/null +++ b/devops-rdc/include/alibabacloud/devops-rdc/model/GetPipelineLogRequest.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_DEVOPS_RDC_MODEL_GETPIPELINELOGREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_RDC_MODEL_GETPIPELINELOGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops_rdc + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_RDC_EXPORT GetPipelineLogRequest : public RpcServiceRequest + { + + public: + GetPipelineLogRequest(); + ~GetPipelineLogRequest(); + + std::string getUserPk()const; + void setUserPk(const std::string& userPk); + std::string getOrgId()const; + void setOrgId(const std::string& orgId); + long getPipelineId()const; + void setPipelineId(long pipelineId); + long getJobId()const; + void setJobId(long jobId); + + private: + std::string userPk_; + std::string orgId_; + long pipelineId_; + long jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_GETPIPELINELOGREQUEST_H_ \ No newline at end of file diff --git a/devops-rdc/include/alibabacloud/devops-rdc/model/GetPipelineLogResult.h b/devops-rdc/include/alibabacloud/devops-rdc/model/GetPipelineLogResult.h new file mode 100644 index 000000000..730f2fed9 --- /dev/null +++ b/devops-rdc/include/alibabacloud/devops-rdc/model/GetPipelineLogResult.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_DEVOPS_RDC_MODEL_GETPIPELINELOGRESULT_H_ +#define ALIBABACLOUD_DEVOPS_RDC_MODEL_GETPIPELINELOGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops_rdc + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_RDC_EXPORT GetPipelineLogResult : public ServiceResult + { + public: + struct Job + { + struct BuildProcessNode + { + std::string status; + std::string nodeName; + int nodeIndex; + }; + std::string actionName; + std::string startTime; + std::vector buildProcessNodes; + long jobId; + }; + + + GetPipelineLogResult(); + explicit GetPipelineLogResult(const std::string &payload); + ~GetPipelineLogResult(); + std::vector getObject()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector object_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_GETPIPELINELOGRESULT_H_ \ No newline at end of file diff --git a/devops-rdc/include/alibabacloud/devops-rdc/model/GetPipleineLatestInstanceStatusRequest.h b/devops-rdc/include/alibabacloud/devops-rdc/model/GetPipleineLatestInstanceStatusRequest.h new file mode 100644 index 000000000..f6d23aae9 --- /dev/null +++ b/devops-rdc/include/alibabacloud/devops-rdc/model/GetPipleineLatestInstanceStatusRequest.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_DEVOPS_RDC_MODEL_GETPIPLEINELATESTINSTANCESTATUSREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_RDC_MODEL_GETPIPLEINELATESTINSTANCESTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops_rdc + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_RDC_EXPORT GetPipleineLatestInstanceStatusRequest : public RpcServiceRequest + { + + public: + GetPipleineLatestInstanceStatusRequest(); + ~GetPipleineLatestInstanceStatusRequest(); + + std::string getUserPk()const; + void setUserPk(const std::string& userPk); + std::string getOrgId()const; + void setOrgId(const std::string& orgId); + long getPipelineId()const; + void setPipelineId(long pipelineId); + + private: + std::string userPk_; + std::string orgId_; + long pipelineId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_GETPIPLEINELATESTINSTANCESTATUSREQUEST_H_ \ No newline at end of file diff --git a/devops-rdc/include/alibabacloud/devops-rdc/model/GetPipleineLatestInstanceStatusResult.h b/devops-rdc/include/alibabacloud/devops-rdc/model/GetPipleineLatestInstanceStatusResult.h new file mode 100644 index 000000000..aa8a89d0f --- /dev/null +++ b/devops-rdc/include/alibabacloud/devops-rdc/model/GetPipleineLatestInstanceStatusResult.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_DEVOPS_RDC_MODEL_GETPIPLEINELATESTINSTANCESTATUSRESULT_H_ +#define ALIBABACLOUD_DEVOPS_RDC_MODEL_GETPIPLEINELATESTINSTANCESTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops_rdc + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_RDC_EXPORT GetPipleineLatestInstanceStatusResult : public ServiceResult + { + public: + struct Object + { + struct Group + { + struct Stage + { + struct Component + { + std::string status; + long jobId; + std::string name; + }; + std::vector components; + std::string status; + std::string sign; + }; + std::string status; + std::vector stages; + std::string name; + }; + std::string status; + std::vector groups; + }; + + + GetPipleineLatestInstanceStatusResult(); + explicit GetPipleineLatestInstanceStatusResult(const std::string &payload); + ~GetPipleineLatestInstanceStatusResult(); + Object getObject()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + Object object_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_GETPIPLEINELATESTINSTANCESTATUSRESULT_H_ \ No newline at end of file diff --git a/devops-rdc/include/alibabacloud/devops-rdc/model/ListCredentialsRequest.h b/devops-rdc/include/alibabacloud/devops-rdc/model/ListCredentialsRequest.h new file mode 100644 index 000000000..8c8222f48 --- /dev/null +++ b/devops-rdc/include/alibabacloud/devops-rdc/model/ListCredentialsRequest.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_DEVOPS_RDC_MODEL_LISTCREDENTIALSREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_RDC_MODEL_LISTCREDENTIALSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops_rdc + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_RDC_EXPORT ListCredentialsRequest : public RpcServiceRequest + { + + public: + ListCredentialsRequest(); + ~ListCredentialsRequest(); + + 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_DEVOPS_RDC_MODEL_LISTCREDENTIALSREQUEST_H_ \ No newline at end of file diff --git a/devops-rdc/include/alibabacloud/devops-rdc/model/ListCredentialsResult.h b/devops-rdc/include/alibabacloud/devops-rdc/model/ListCredentialsResult.h new file mode 100644 index 000000000..4b0def494 --- /dev/null +++ b/devops-rdc/include/alibabacloud/devops-rdc/model/ListCredentialsResult.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_DEVOPS_RDC_MODEL_LISTCREDENTIALSRESULT_H_ +#define ALIBABACLOUD_DEVOPS_RDC_MODEL_LISTCREDENTIALSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops_rdc + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_RDC_EXPORT ListCredentialsResult : public ServiceResult + { + public: + + + ListCredentialsResult(); + explicit ListCredentialsResult(const std::string &payload); + ~ListCredentialsResult(); + std::vector getObject()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector object_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_LISTCREDENTIALSRESULT_H_ \ No newline at end of file diff --git a/devops-rdc/include/alibabacloud/devops-rdc/model/ListPipelinesRequest.h b/devops-rdc/include/alibabacloud/devops-rdc/model/ListPipelinesRequest.h new file mode 100644 index 000000000..6df8e538c --- /dev/null +++ b/devops-rdc/include/alibabacloud/devops-rdc/model/ListPipelinesRequest.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_DEVOPS_RDC_MODEL_LISTPIPELINESREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_RDC_MODEL_LISTPIPELINESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops_rdc + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_RDC_EXPORT ListPipelinesRequest : public RpcServiceRequest + { + + public: + ListPipelinesRequest(); + ~ListPipelinesRequest(); + + std::string getPipelineName()const; + void setPipelineName(const std::string& pipelineName); + std::string getResultStatusList()const; + void setResultStatusList(const std::string& resultStatusList); + std::string getCreators()const; + void setCreators(const std::string& creators); + std::string getExecuteEndTime()const; + void setExecuteEndTime(const std::string& executeEndTime); + std::string getUserPk()const; + void setUserPk(const std::string& userPk); + std::string getOrgId()const; + void setOrgId(const std::string& orgId); + std::string getCreateStartTime()const; + void setCreateStartTime(const std::string& createStartTime); + std::string getOperators()const; + void setOperators(const std::string& operators); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getExecuteStartTime()const; + void setExecuteStartTime(const std::string& executeStartTime); + int getPageStart()const; + void setPageStart(int pageStart); + std::string getCreateEndTime()const; + void setCreateEndTime(const std::string& createEndTime); + + private: + std::string pipelineName_; + std::string resultStatusList_; + std::string creators_; + std::string executeEndTime_; + std::string userPk_; + std::string orgId_; + std::string createStartTime_; + std::string operators_; + int pageSize_; + std::string executeStartTime_; + int pageStart_; + std::string createEndTime_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_LISTPIPELINESREQUEST_H_ \ No newline at end of file diff --git a/devops-rdc/include/alibabacloud/devops-rdc/model/ListPipelinesResult.h b/devops-rdc/include/alibabacloud/devops-rdc/model/ListPipelinesResult.h new file mode 100644 index 000000000..c3d544b6d --- /dev/null +++ b/devops-rdc/include/alibabacloud/devops-rdc/model/ListPipelinesResult.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_DEVOPS_RDC_MODEL_LISTPIPELINESRESULT_H_ +#define ALIBABACLOUD_DEVOPS_RDC_MODEL_LISTPIPELINESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops_rdc + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_RDC_EXPORT ListPipelinesResult : public ServiceResult + { + public: + + + ListPipelinesResult(); + explicit ListPipelinesResult(const std::string &payload); + ~ListPipelinesResult(); + 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_DEVOPS_RDC_MODEL_LISTPIPELINESRESULT_H_ \ No newline at end of file diff --git a/devops-rdc/include/alibabacloud/devops-rdc/model/ListServiceConnectionsRequest.h b/devops-rdc/include/alibabacloud/devops-rdc/model/ListServiceConnectionsRequest.h new file mode 100644 index 000000000..2cdaa07e4 --- /dev/null +++ b/devops-rdc/include/alibabacloud/devops-rdc/model/ListServiceConnectionsRequest.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_DEVOPS_RDC_MODEL_LISTSERVICECONNECTIONSREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_RDC_MODEL_LISTSERVICECONNECTIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops_rdc + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_RDC_EXPORT ListServiceConnectionsRequest : public RpcServiceRequest + { + + public: + ListServiceConnectionsRequest(); + ~ListServiceConnectionsRequest(); + + std::string getScType()const; + void setScType(const std::string& scType); + std::string getUserPk()const; + void setUserPk(const std::string& userPk); + std::string getOrgId()const; + void setOrgId(const std::string& orgId); + + private: + std::string scType_; + std::string userPk_; + std::string orgId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_LISTSERVICECONNECTIONSREQUEST_H_ \ No newline at end of file diff --git a/devops-rdc/include/alibabacloud/devops-rdc/model/ListServiceConnectionsResult.h b/devops-rdc/include/alibabacloud/devops-rdc/model/ListServiceConnectionsResult.h new file mode 100644 index 000000000..38bd476db --- /dev/null +++ b/devops-rdc/include/alibabacloud/devops-rdc/model/ListServiceConnectionsResult.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_DEVOPS_RDC_MODEL_LISTSERVICECONNECTIONSRESULT_H_ +#define ALIBABACLOUD_DEVOPS_RDC_MODEL_LISTSERVICECONNECTIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops_rdc + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_RDC_EXPORT ListServiceConnectionsResult : public ServiceResult + { + public: + + + ListServiceConnectionsResult(); + explicit ListServiceConnectionsResult(const std::string &payload); + ~ListServiceConnectionsResult(); + std::vector getObject()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector object_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_LISTSERVICECONNECTIONSRESULT_H_ \ No newline at end of file diff --git a/devops-rdc/src/Devops-rdcClient.cc b/devops-rdc/src/Devops-rdcClient.cc new file mode 100644 index 000000000..44729664b --- /dev/null +++ b/devops-rdc/src/Devops-rdcClient.cc @@ -0,0 +1,557 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Devops_rdc; +using namespace AlibabaCloud::Devops_rdc::Model; + +namespace +{ + const std::string SERVICE_NAME = "devops-rdc"; +} + +Devops_rdcClient::Devops_rdcClient(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, ""); +} + +Devops_rdcClient::Devops_rdcClient(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, ""); +} + +Devops_rdcClient::Devops_rdcClient(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, ""); +} + +Devops_rdcClient::~Devops_rdcClient() +{} + +Devops_rdcClient::CancelPipelineOutcome Devops_rdcClient::cancelPipeline(const CancelPipelineRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CancelPipelineOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CancelPipelineOutcome(CancelPipelineResult(outcome.result())); + else + return CancelPipelineOutcome(outcome.error()); +} + +void Devops_rdcClient::cancelPipelineAsync(const CancelPipelineRequest& request, const CancelPipelineAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, cancelPipeline(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Devops_rdcClient::CancelPipelineOutcomeCallable Devops_rdcClient::cancelPipelineCallable(const CancelPipelineRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->cancelPipeline(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Devops_rdcClient::CreateCredentialOutcome Devops_rdcClient::createCredential(const CreateCredentialRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateCredentialOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateCredentialOutcome(CreateCredentialResult(outcome.result())); + else + return CreateCredentialOutcome(outcome.error()); +} + +void Devops_rdcClient::createCredentialAsync(const CreateCredentialRequest& request, const CreateCredentialAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createCredential(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Devops_rdcClient::CreateCredentialOutcomeCallable Devops_rdcClient::createCredentialCallable(const CreateCredentialRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createCredential(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Devops_rdcClient::CreatePipelineOutcome Devops_rdcClient::createPipeline(const CreatePipelineRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreatePipelineOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreatePipelineOutcome(CreatePipelineResult(outcome.result())); + else + return CreatePipelineOutcome(outcome.error()); +} + +void Devops_rdcClient::createPipelineAsync(const CreatePipelineRequest& request, const CreatePipelineAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createPipeline(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Devops_rdcClient::CreatePipelineOutcomeCallable Devops_rdcClient::createPipelineCallable(const CreatePipelineRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createPipeline(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Devops_rdcClient::CreateServiceConnectionOutcome Devops_rdcClient::createServiceConnection(const CreateServiceConnectionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateServiceConnectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateServiceConnectionOutcome(CreateServiceConnectionResult(outcome.result())); + else + return CreateServiceConnectionOutcome(outcome.error()); +} + +void Devops_rdcClient::createServiceConnectionAsync(const CreateServiceConnectionRequest& request, const CreateServiceConnectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createServiceConnection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Devops_rdcClient::CreateServiceConnectionOutcomeCallable Devops_rdcClient::createServiceConnectionCallable(const CreateServiceConnectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createServiceConnection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Devops_rdcClient::ExecutePipelineOutcome Devops_rdcClient::executePipeline(const ExecutePipelineRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ExecutePipelineOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ExecutePipelineOutcome(ExecutePipelineResult(outcome.result())); + else + return ExecutePipelineOutcome(outcome.error()); +} + +void Devops_rdcClient::executePipelineAsync(const ExecutePipelineRequest& request, const ExecutePipelineAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, executePipeline(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Devops_rdcClient::ExecutePipelineOutcomeCallable Devops_rdcClient::executePipelineCallable(const ExecutePipelineRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->executePipeline(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Devops_rdcClient::GetPipelineInstanceBuildNumberStatusOutcome Devops_rdcClient::getPipelineInstanceBuildNumberStatus(const GetPipelineInstanceBuildNumberStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetPipelineInstanceBuildNumberStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetPipelineInstanceBuildNumberStatusOutcome(GetPipelineInstanceBuildNumberStatusResult(outcome.result())); + else + return GetPipelineInstanceBuildNumberStatusOutcome(outcome.error()); +} + +void Devops_rdcClient::getPipelineInstanceBuildNumberStatusAsync(const GetPipelineInstanceBuildNumberStatusRequest& request, const GetPipelineInstanceBuildNumberStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getPipelineInstanceBuildNumberStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Devops_rdcClient::GetPipelineInstanceBuildNumberStatusOutcomeCallable Devops_rdcClient::getPipelineInstanceBuildNumberStatusCallable(const GetPipelineInstanceBuildNumberStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getPipelineInstanceBuildNumberStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Devops_rdcClient::GetPipelineInstanceGroupStatusOutcome Devops_rdcClient::getPipelineInstanceGroupStatus(const GetPipelineInstanceGroupStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetPipelineInstanceGroupStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetPipelineInstanceGroupStatusOutcome(GetPipelineInstanceGroupStatusResult(outcome.result())); + else + return GetPipelineInstanceGroupStatusOutcome(outcome.error()); +} + +void Devops_rdcClient::getPipelineInstanceGroupStatusAsync(const GetPipelineInstanceGroupStatusRequest& request, const GetPipelineInstanceGroupStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getPipelineInstanceGroupStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Devops_rdcClient::GetPipelineInstanceGroupStatusOutcomeCallable Devops_rdcClient::getPipelineInstanceGroupStatusCallable(const GetPipelineInstanceGroupStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getPipelineInstanceGroupStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Devops_rdcClient::GetPipelineInstanceInfoOutcome Devops_rdcClient::getPipelineInstanceInfo(const GetPipelineInstanceInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetPipelineInstanceInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetPipelineInstanceInfoOutcome(GetPipelineInstanceInfoResult(outcome.result())); + else + return GetPipelineInstanceInfoOutcome(outcome.error()); +} + +void Devops_rdcClient::getPipelineInstanceInfoAsync(const GetPipelineInstanceInfoRequest& request, const GetPipelineInstanceInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getPipelineInstanceInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Devops_rdcClient::GetPipelineInstanceInfoOutcomeCallable Devops_rdcClient::getPipelineInstanceInfoCallable(const GetPipelineInstanceInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getPipelineInstanceInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Devops_rdcClient::GetPipelineInstanceStatusOutcome Devops_rdcClient::getPipelineInstanceStatus(const GetPipelineInstanceStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetPipelineInstanceStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetPipelineInstanceStatusOutcome(GetPipelineInstanceStatusResult(outcome.result())); + else + return GetPipelineInstanceStatusOutcome(outcome.error()); +} + +void Devops_rdcClient::getPipelineInstanceStatusAsync(const GetPipelineInstanceStatusRequest& request, const GetPipelineInstanceStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getPipelineInstanceStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Devops_rdcClient::GetPipelineInstanceStatusOutcomeCallable Devops_rdcClient::getPipelineInstanceStatusCallable(const GetPipelineInstanceStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getPipelineInstanceStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Devops_rdcClient::GetPipelineLogOutcome Devops_rdcClient::getPipelineLog(const GetPipelineLogRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetPipelineLogOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetPipelineLogOutcome(GetPipelineLogResult(outcome.result())); + else + return GetPipelineLogOutcome(outcome.error()); +} + +void Devops_rdcClient::getPipelineLogAsync(const GetPipelineLogRequest& request, const GetPipelineLogAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getPipelineLog(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Devops_rdcClient::GetPipelineLogOutcomeCallable Devops_rdcClient::getPipelineLogCallable(const GetPipelineLogRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getPipelineLog(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Devops_rdcClient::GetPipleineLatestInstanceStatusOutcome Devops_rdcClient::getPipleineLatestInstanceStatus(const GetPipleineLatestInstanceStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetPipleineLatestInstanceStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetPipleineLatestInstanceStatusOutcome(GetPipleineLatestInstanceStatusResult(outcome.result())); + else + return GetPipleineLatestInstanceStatusOutcome(outcome.error()); +} + +void Devops_rdcClient::getPipleineLatestInstanceStatusAsync(const GetPipleineLatestInstanceStatusRequest& request, const GetPipleineLatestInstanceStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getPipleineLatestInstanceStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Devops_rdcClient::GetPipleineLatestInstanceStatusOutcomeCallable Devops_rdcClient::getPipleineLatestInstanceStatusCallable(const GetPipleineLatestInstanceStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getPipleineLatestInstanceStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Devops_rdcClient::ListCredentialsOutcome Devops_rdcClient::listCredentials(const ListCredentialsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListCredentialsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListCredentialsOutcome(ListCredentialsResult(outcome.result())); + else + return ListCredentialsOutcome(outcome.error()); +} + +void Devops_rdcClient::listCredentialsAsync(const ListCredentialsRequest& request, const ListCredentialsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listCredentials(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Devops_rdcClient::ListCredentialsOutcomeCallable Devops_rdcClient::listCredentialsCallable(const ListCredentialsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listCredentials(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Devops_rdcClient::ListPipelinesOutcome Devops_rdcClient::listPipelines(const ListPipelinesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListPipelinesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListPipelinesOutcome(ListPipelinesResult(outcome.result())); + else + return ListPipelinesOutcome(outcome.error()); +} + +void Devops_rdcClient::listPipelinesAsync(const ListPipelinesRequest& request, const ListPipelinesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listPipelines(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Devops_rdcClient::ListPipelinesOutcomeCallable Devops_rdcClient::listPipelinesCallable(const ListPipelinesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listPipelines(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Devops_rdcClient::ListServiceConnectionsOutcome Devops_rdcClient::listServiceConnections(const ListServiceConnectionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListServiceConnectionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListServiceConnectionsOutcome(ListServiceConnectionsResult(outcome.result())); + else + return ListServiceConnectionsOutcome(outcome.error()); +} + +void Devops_rdcClient::listServiceConnectionsAsync(const ListServiceConnectionsRequest& request, const ListServiceConnectionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listServiceConnections(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Devops_rdcClient::ListServiceConnectionsOutcomeCallable Devops_rdcClient::listServiceConnectionsCallable(const ListServiceConnectionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listServiceConnections(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/devops-rdc/src/model/CancelPipelineRequest.cc b/devops-rdc/src/model/CancelPipelineRequest.cc new file mode 100644 index 000000000..fec12b81e --- /dev/null +++ b/devops-rdc/src/model/CancelPipelineRequest.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::Devops_rdc::Model::CancelPipelineRequest; + +CancelPipelineRequest::CancelPipelineRequest() : + RpcServiceRequest("devops-rdc", "2020-03-03", "CancelPipeline") +{ + setMethod(HttpRequest::Method::Post); +} + +CancelPipelineRequest::~CancelPipelineRequest() +{} + +long CancelPipelineRequest::getFlowInstanceId()const +{ + return flowInstanceId_; +} + +void CancelPipelineRequest::setFlowInstanceId(long flowInstanceId) +{ + flowInstanceId_ = flowInstanceId; + setBodyParameter("FlowInstanceId", std::to_string(flowInstanceId)); +} + +std::string CancelPipelineRequest::getUserPk()const +{ + return userPk_; +} + +void CancelPipelineRequest::setUserPk(const std::string& userPk) +{ + userPk_ = userPk; + setBodyParameter("UserPk", userPk); +} + +std::string CancelPipelineRequest::getOrgId()const +{ + return orgId_; +} + +void CancelPipelineRequest::setOrgId(const std::string& orgId) +{ + orgId_ = orgId; + setBodyParameter("OrgId", orgId); +} + +long CancelPipelineRequest::getPipelineId()const +{ + return pipelineId_; +} + +void CancelPipelineRequest::setPipelineId(long pipelineId) +{ + pipelineId_ = pipelineId; + setBodyParameter("PipelineId", std::to_string(pipelineId)); +} + diff --git a/devops-rdc/src/model/CancelPipelineResult.cc b/devops-rdc/src/model/CancelPipelineResult.cc new file mode 100644 index 000000000..6b778ec77 --- /dev/null +++ b/devops-rdc/src/model/CancelPipelineResult.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::Devops_rdc; +using namespace AlibabaCloud::Devops_rdc::Model; + +CancelPipelineResult::CancelPipelineResult() : + ServiceResult() +{} + +CancelPipelineResult::CancelPipelineResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CancelPipelineResult::~CancelPipelineResult() +{} + +void CancelPipelineResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Object"].isNull()) + object_ = value["Object"].asString() == "true"; + +} + +bool CancelPipelineResult::getObject()const +{ + return object_; +} + +std::string CancelPipelineResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CancelPipelineResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool CancelPipelineResult::getSuccess()const +{ + return success_; +} + diff --git a/devops-rdc/src/model/CreateCredentialRequest.cc b/devops-rdc/src/model/CreateCredentialRequest.cc new file mode 100644 index 000000000..67bc73e60 --- /dev/null +++ b/devops-rdc/src/model/CreateCredentialRequest.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Devops_rdc::Model::CreateCredentialRequest; + +CreateCredentialRequest::CreateCredentialRequest() : + RpcServiceRequest("devops-rdc", "2020-03-03", "CreateCredential") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateCredentialRequest::~CreateCredentialRequest() +{} + +std::string CreateCredentialRequest::getType()const +{ + return type_; +} + +void CreateCredentialRequest::setType(const std::string& type) +{ + type_ = type; + setBodyParameter("Type", type); +} + +std::string CreateCredentialRequest::getUserPk()const +{ + return userPk_; +} + +void CreateCredentialRequest::setUserPk(const std::string& userPk) +{ + userPk_ = userPk; + setBodyParameter("UserPk", userPk); +} + +std::string CreateCredentialRequest::getOrgId()const +{ + return orgId_; +} + +void CreateCredentialRequest::setOrgId(const std::string& orgId) +{ + orgId_ = orgId; + setBodyParameter("OrgId", orgId); +} + +std::string CreateCredentialRequest::getPassword()const +{ + return password_; +} + +void CreateCredentialRequest::setPassword(const std::string& password) +{ + password_ = password; + setBodyParameter("Password", password); +} + +std::string CreateCredentialRequest::getName()const +{ + return name_; +} + +void CreateCredentialRequest::setName(const std::string& name) +{ + name_ = name; + setBodyParameter("Name", name); +} + +std::string CreateCredentialRequest::getUserName()const +{ + return userName_; +} + +void CreateCredentialRequest::setUserName(const std::string& userName) +{ + userName_ = userName; + setBodyParameter("UserName", userName); +} + diff --git a/devops-rdc/src/model/CreateCredentialResult.cc b/devops-rdc/src/model/CreateCredentialResult.cc new file mode 100644 index 000000000..3c29433a0 --- /dev/null +++ b/devops-rdc/src/model/CreateCredentialResult.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::Devops_rdc; +using namespace AlibabaCloud::Devops_rdc::Model; + +CreateCredentialResult::CreateCredentialResult() : + ServiceResult() +{} + +CreateCredentialResult::CreateCredentialResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateCredentialResult::~CreateCredentialResult() +{} + +void CreateCredentialResult::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_ = std::stol(value["Object"].asString()); + +} + +long CreateCredentialResult::getObject()const +{ + return object_; +} + +std::string CreateCredentialResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CreateCredentialResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool CreateCredentialResult::getSuccess()const +{ + return success_; +} + diff --git a/devops-rdc/src/model/CreatePipelineRequest.cc b/devops-rdc/src/model/CreatePipelineRequest.cc new file mode 100644 index 000000000..fa496f15d --- /dev/null +++ b/devops-rdc/src/model/CreatePipelineRequest.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::Devops_rdc::Model::CreatePipelineRequest; + +CreatePipelineRequest::CreatePipelineRequest() : + RpcServiceRequest("devops-rdc", "2020-03-03", "CreatePipeline") +{ + setMethod(HttpRequest::Method::Post); +} + +CreatePipelineRequest::~CreatePipelineRequest() +{} + +std::string CreatePipelineRequest::getPipeline()const +{ + return pipeline_; +} + +void CreatePipelineRequest::setPipeline(const std::string& pipeline) +{ + pipeline_ = pipeline; + setBodyParameter("Pipeline", pipeline); +} + +std::string CreatePipelineRequest::getUserPk()const +{ + return userPk_; +} + +void CreatePipelineRequest::setUserPk(const std::string& userPk) +{ + userPk_ = userPk; + setBodyParameter("UserPk", userPk); +} + +std::string CreatePipelineRequest::getOrgId()const +{ + return orgId_; +} + +void CreatePipelineRequest::setOrgId(const std::string& orgId) +{ + orgId_ = orgId; + setBodyParameter("OrgId", orgId); +} + diff --git a/devops-rdc/src/model/CreatePipelineResult.cc b/devops-rdc/src/model/CreatePipelineResult.cc new file mode 100644 index 000000000..9ac94dd81 --- /dev/null +++ b/devops-rdc/src/model/CreatePipelineResult.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::Devops_rdc; +using namespace AlibabaCloud::Devops_rdc::Model; + +CreatePipelineResult::CreatePipelineResult() : + ServiceResult() +{} + +CreatePipelineResult::CreatePipelineResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreatePipelineResult::~CreatePipelineResult() +{} + +void CreatePipelineResult::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_ = std::stol(value["Object"].asString()); + +} + +long CreatePipelineResult::getObject()const +{ + return object_; +} + +std::string CreatePipelineResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CreatePipelineResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool CreatePipelineResult::getSuccess()const +{ + return success_; +} + diff --git a/devops-rdc/src/model/CreateServiceConnectionRequest.cc b/devops-rdc/src/model/CreateServiceConnectionRequest.cc new file mode 100644 index 000000000..b0a09aaa2 --- /dev/null +++ b/devops-rdc/src/model/CreateServiceConnectionRequest.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::Devops_rdc::Model::CreateServiceConnectionRequest; + +CreateServiceConnectionRequest::CreateServiceConnectionRequest() : + RpcServiceRequest("devops-rdc", "2020-03-03", "CreateServiceConnection") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateServiceConnectionRequest::~CreateServiceConnectionRequest() +{} + +std::string CreateServiceConnectionRequest::getServiceConnectionType()const +{ + return serviceConnectionType_; +} + +void CreateServiceConnectionRequest::setServiceConnectionType(const std::string& serviceConnectionType) +{ + serviceConnectionType_ = serviceConnectionType; + setBodyParameter("ServiceConnectionType", serviceConnectionType); +} + +std::string CreateServiceConnectionRequest::getUserPk()const +{ + return userPk_; +} + +void CreateServiceConnectionRequest::setUserPk(const std::string& userPk) +{ + userPk_ = userPk; + setBodyParameter("UserPk", userPk); +} + +std::string CreateServiceConnectionRequest::getOrgId()const +{ + return orgId_; +} + +void CreateServiceConnectionRequest::setOrgId(const std::string& orgId) +{ + orgId_ = orgId; + setBodyParameter("OrgId", orgId); +} + diff --git a/devops-rdc/src/model/CreateServiceConnectionResult.cc b/devops-rdc/src/model/CreateServiceConnectionResult.cc new file mode 100644 index 000000000..88f099cb3 --- /dev/null +++ b/devops-rdc/src/model/CreateServiceConnectionResult.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::Devops_rdc; +using namespace AlibabaCloud::Devops_rdc::Model; + +CreateServiceConnectionResult::CreateServiceConnectionResult() : + ServiceResult() +{} + +CreateServiceConnectionResult::CreateServiceConnectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateServiceConnectionResult::~CreateServiceConnectionResult() +{} + +void CreateServiceConnectionResult::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_ = std::stol(value["Object"].asString()); + +} + +long CreateServiceConnectionResult::getObject()const +{ + return object_; +} + +std::string CreateServiceConnectionResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CreateServiceConnectionResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool CreateServiceConnectionResult::getSuccess()const +{ + return success_; +} + diff --git a/devops-rdc/src/model/ExecutePipelineRequest.cc b/devops-rdc/src/model/ExecutePipelineRequest.cc new file mode 100644 index 000000000..59c94994c --- /dev/null +++ b/devops-rdc/src/model/ExecutePipelineRequest.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::Devops_rdc::Model::ExecutePipelineRequest; + +ExecutePipelineRequest::ExecutePipelineRequest() : + RpcServiceRequest("devops-rdc", "2020-03-03", "ExecutePipeline") +{ + setMethod(HttpRequest::Method::Post); +} + +ExecutePipelineRequest::~ExecutePipelineRequest() +{} + +std::string ExecutePipelineRequest::getParameters()const +{ + return parameters_; +} + +void ExecutePipelineRequest::setParameters(const std::string& parameters) +{ + parameters_ = parameters; + setBodyParameter("Parameters", parameters); +} + +std::string ExecutePipelineRequest::getUserPk()const +{ + return userPk_; +} + +void ExecutePipelineRequest::setUserPk(const std::string& userPk) +{ + userPk_ = userPk; + setBodyParameter("UserPk", userPk); +} + +std::string ExecutePipelineRequest::getOrgId()const +{ + return orgId_; +} + +void ExecutePipelineRequest::setOrgId(const std::string& orgId) +{ + orgId_ = orgId; + setBodyParameter("OrgId", orgId); +} + +long ExecutePipelineRequest::getPipelineId()const +{ + return pipelineId_; +} + +void ExecutePipelineRequest::setPipelineId(long pipelineId) +{ + pipelineId_ = pipelineId; + setBodyParameter("PipelineId", std::to_string(pipelineId)); +} + diff --git a/devops-rdc/src/model/ExecutePipelineResult.cc b/devops-rdc/src/model/ExecutePipelineResult.cc new file mode 100644 index 000000000..bc7eef473 --- /dev/null +++ b/devops-rdc/src/model/ExecutePipelineResult.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::Devops_rdc; +using namespace AlibabaCloud::Devops_rdc::Model; + +ExecutePipelineResult::ExecutePipelineResult() : + ServiceResult() +{} + +ExecutePipelineResult::ExecutePipelineResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ExecutePipelineResult::~ExecutePipelineResult() +{} + +void ExecutePipelineResult::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_ = std::stol(value["Object"].asString()); + +} + +long ExecutePipelineResult::getObject()const +{ + return object_; +} + +std::string ExecutePipelineResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ExecutePipelineResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ExecutePipelineResult::getSuccess()const +{ + return success_; +} + diff --git a/devops-rdc/src/model/GetPipelineInstanceBuildNumberStatusRequest.cc b/devops-rdc/src/model/GetPipelineInstanceBuildNumberStatusRequest.cc new file mode 100644 index 000000000..ccd5c1023 --- /dev/null +++ b/devops-rdc/src/model/GetPipelineInstanceBuildNumberStatusRequest.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::Devops_rdc::Model::GetPipelineInstanceBuildNumberStatusRequest; + +GetPipelineInstanceBuildNumberStatusRequest::GetPipelineInstanceBuildNumberStatusRequest() : + RpcServiceRequest("devops-rdc", "2020-03-03", "GetPipelineInstanceBuildNumberStatus") +{ + setMethod(HttpRequest::Method::Post); +} + +GetPipelineInstanceBuildNumberStatusRequest::~GetPipelineInstanceBuildNumberStatusRequest() +{} + +long GetPipelineInstanceBuildNumberStatusRequest::getBuildNum()const +{ + return buildNum_; +} + +void GetPipelineInstanceBuildNumberStatusRequest::setBuildNum(long buildNum) +{ + buildNum_ = buildNum; + setBodyParameter("BuildNum", std::to_string(buildNum)); +} + +std::string GetPipelineInstanceBuildNumberStatusRequest::getUserPk()const +{ + return userPk_; +} + +void GetPipelineInstanceBuildNumberStatusRequest::setUserPk(const std::string& userPk) +{ + userPk_ = userPk; + setBodyParameter("UserPk", userPk); +} + +std::string GetPipelineInstanceBuildNumberStatusRequest::getOrgId()const +{ + return orgId_; +} + +void GetPipelineInstanceBuildNumberStatusRequest::setOrgId(const std::string& orgId) +{ + orgId_ = orgId; + setParameter("OrgId", orgId); +} + +long GetPipelineInstanceBuildNumberStatusRequest::getPipelineId()const +{ + return pipelineId_; +} + +void GetPipelineInstanceBuildNumberStatusRequest::setPipelineId(long pipelineId) +{ + pipelineId_ = pipelineId; + setParameter("PipelineId", std::to_string(pipelineId)); +} + diff --git a/devops-rdc/src/model/GetPipelineInstanceBuildNumberStatusResult.cc b/devops-rdc/src/model/GetPipelineInstanceBuildNumberStatusResult.cc new file mode 100644 index 000000000..e195cec95 --- /dev/null +++ b/devops-rdc/src/model/GetPipelineInstanceBuildNumberStatusResult.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::Devops_rdc; +using namespace AlibabaCloud::Devops_rdc::Model; + +GetPipelineInstanceBuildNumberStatusResult::GetPipelineInstanceBuildNumberStatusResult() : + ServiceResult() +{} + +GetPipelineInstanceBuildNumberStatusResult::GetPipelineInstanceBuildNumberStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetPipelineInstanceBuildNumberStatusResult::~GetPipelineInstanceBuildNumberStatusResult() +{} + +void GetPipelineInstanceBuildNumberStatusResult::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["Status"].isNull()) + object_.status = objectNode["Status"].asString(); + auto allGroupsNode = objectNode["Groups"]["group"]; + for (auto objectNodeGroupsgroup : allGroupsNode) + { + Object::Group groupObject; + if(!objectNodeGroupsgroup["Name"].isNull()) + groupObject.name = objectNodeGroupsgroup["Name"].asString(); + if(!objectNodeGroupsgroup["Status"].isNull()) + groupObject.status = objectNodeGroupsgroup["Status"].asString(); + auto allStagesNode = allGroupsNode["Stages"]["stage"]; + for (auto allGroupsNodeStagesstage : allStagesNode) + { + Object::Group::Stage stagesObject; + if(!allGroupsNodeStagesstage["Status"].isNull()) + stagesObject.status = allGroupsNodeStagesstage["Status"].asString(); + if(!allGroupsNodeStagesstage["Sign"].isNull()) + stagesObject.sign = allGroupsNodeStagesstage["Sign"].asString(); + auto allComponentsNode = allStagesNode["Components"]["component"]; + for (auto allStagesNodeComponentscomponent : allComponentsNode) + { + Object::Group::Stage::Component componentsObject; + if(!allStagesNodeComponentscomponent["Name"].isNull()) + componentsObject.name = allStagesNodeComponentscomponent["Name"].asString(); + if(!allStagesNodeComponentscomponent["Status"].isNull()) + componentsObject.status = allStagesNodeComponentscomponent["Status"].asString(); + if(!allStagesNodeComponentscomponent["JobId"].isNull()) + componentsObject.jobId = std::stol(allStagesNodeComponentscomponent["JobId"].asString()); + stagesObject.components.push_back(componentsObject); + } + groupObject.stages.push_back(stagesObject); + } + object_.groups.push_back(groupObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + +} + +GetPipelineInstanceBuildNumberStatusResult::Object GetPipelineInstanceBuildNumberStatusResult::getObject()const +{ + return object_; +} + +std::string GetPipelineInstanceBuildNumberStatusResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetPipelineInstanceBuildNumberStatusResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetPipelineInstanceBuildNumberStatusResult::getSuccess()const +{ + return success_; +} + diff --git a/devops-rdc/src/model/GetPipelineInstanceGroupStatusRequest.cc b/devops-rdc/src/model/GetPipelineInstanceGroupStatusRequest.cc new file mode 100644 index 000000000..611a3e074 --- /dev/null +++ b/devops-rdc/src/model/GetPipelineInstanceGroupStatusRequest.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::Devops_rdc::Model::GetPipelineInstanceGroupStatusRequest; + +GetPipelineInstanceGroupStatusRequest::GetPipelineInstanceGroupStatusRequest() : + RpcServiceRequest("devops-rdc", "2020-03-03", "GetPipelineInstanceGroupStatus") +{ + setMethod(HttpRequest::Method::Post); +} + +GetPipelineInstanceGroupStatusRequest::~GetPipelineInstanceGroupStatusRequest() +{} + +long GetPipelineInstanceGroupStatusRequest::getFlowInstanceId()const +{ + return flowInstanceId_; +} + +void GetPipelineInstanceGroupStatusRequest::setFlowInstanceId(long flowInstanceId) +{ + flowInstanceId_ = flowInstanceId; + setBodyParameter("FlowInstanceId", std::to_string(flowInstanceId)); +} + +std::string GetPipelineInstanceGroupStatusRequest::getUserPk()const +{ + return userPk_; +} + +void GetPipelineInstanceGroupStatusRequest::setUserPk(const std::string& userPk) +{ + userPk_ = userPk; + setBodyParameter("UserPk", userPk); +} + +std::string GetPipelineInstanceGroupStatusRequest::getOrgId()const +{ + return orgId_; +} + +void GetPipelineInstanceGroupStatusRequest::setOrgId(const std::string& orgId) +{ + orgId_ = orgId; + setParameter("OrgId", orgId); +} + +long GetPipelineInstanceGroupStatusRequest::getPipelineId()const +{ + return pipelineId_; +} + +void GetPipelineInstanceGroupStatusRequest::setPipelineId(long pipelineId) +{ + pipelineId_ = pipelineId; + setParameter("PipelineId", std::to_string(pipelineId)); +} + diff --git a/devops-rdc/src/model/GetPipelineInstanceGroupStatusResult.cc b/devops-rdc/src/model/GetPipelineInstanceGroupStatusResult.cc new file mode 100644 index 000000000..edad817aa --- /dev/null +++ b/devops-rdc/src/model/GetPipelineInstanceGroupStatusResult.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::Devops_rdc; +using namespace AlibabaCloud::Devops_rdc::Model; + +GetPipelineInstanceGroupStatusResult::GetPipelineInstanceGroupStatusResult() : + ServiceResult() +{} + +GetPipelineInstanceGroupStatusResult::GetPipelineInstanceGroupStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetPipelineInstanceGroupStatusResult::~GetPipelineInstanceGroupStatusResult() +{} + +void GetPipelineInstanceGroupStatusResult::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["Status"].isNull()) + object_.status = objectNode["Status"].asString(); + auto allGroupsNode = objectNode["Groups"]["group"]; + for (auto objectNodeGroupsgroup : allGroupsNode) + { + Object::Group groupObject; + if(!objectNodeGroupsgroup["Name"].isNull()) + groupObject.name = objectNodeGroupsgroup["Name"].asString(); + if(!objectNodeGroupsgroup["Status"].isNull()) + groupObject.status = objectNodeGroupsgroup["Status"].asString(); + auto allStagesNode = allGroupsNode["Stages"]["stage"]; + for (auto allGroupsNodeStagesstage : allStagesNode) + { + Object::Group::Stage stagesObject; + if(!allGroupsNodeStagesstage["Status"].isNull()) + stagesObject.status = allGroupsNodeStagesstage["Status"].asString(); + if(!allGroupsNodeStagesstage["Sign"].isNull()) + stagesObject.sign = allGroupsNodeStagesstage["Sign"].asString(); + auto allComponentsNode = allStagesNode["Components"]["component"]; + for (auto allStagesNodeComponentscomponent : allComponentsNode) + { + Object::Group::Stage::Component componentsObject; + if(!allStagesNodeComponentscomponent["Name"].isNull()) + componentsObject.name = allStagesNodeComponentscomponent["Name"].asString(); + if(!allStagesNodeComponentscomponent["Status"].isNull()) + componentsObject.status = allStagesNodeComponentscomponent["Status"].asString(); + if(!allStagesNodeComponentscomponent["JobId"].isNull()) + componentsObject.jobId = allStagesNodeComponentscomponent["JobId"].asString(); + stagesObject.components.push_back(componentsObject); + } + groupObject.stages.push_back(stagesObject); + } + object_.groups.push_back(groupObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + +} + +GetPipelineInstanceGroupStatusResult::Object GetPipelineInstanceGroupStatusResult::getObject()const +{ + return object_; +} + +std::string GetPipelineInstanceGroupStatusResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetPipelineInstanceGroupStatusResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetPipelineInstanceGroupStatusResult::getSuccess()const +{ + return success_; +} + diff --git a/devops-rdc/src/model/GetPipelineInstanceInfoRequest.cc b/devops-rdc/src/model/GetPipelineInstanceInfoRequest.cc new file mode 100644 index 000000000..32569c2f2 --- /dev/null +++ b/devops-rdc/src/model/GetPipelineInstanceInfoRequest.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::Devops_rdc::Model::GetPipelineInstanceInfoRequest; + +GetPipelineInstanceInfoRequest::GetPipelineInstanceInfoRequest() : + RpcServiceRequest("devops-rdc", "2020-03-03", "GetPipelineInstanceInfo") +{ + setMethod(HttpRequest::Method::Post); +} + +GetPipelineInstanceInfoRequest::~GetPipelineInstanceInfoRequest() +{} + +std::string GetPipelineInstanceInfoRequest::getFlowInstanceId()const +{ + return flowInstanceId_; +} + +void GetPipelineInstanceInfoRequest::setFlowInstanceId(const std::string& flowInstanceId) +{ + flowInstanceId_ = flowInstanceId; + setBodyParameter("FlowInstanceId", flowInstanceId); +} + +std::string GetPipelineInstanceInfoRequest::getUserPk()const +{ + return userPk_; +} + +void GetPipelineInstanceInfoRequest::setUserPk(const std::string& userPk) +{ + userPk_ = userPk; + setBodyParameter("UserPk", userPk); +} + +std::string GetPipelineInstanceInfoRequest::getOrgId()const +{ + return orgId_; +} + +void GetPipelineInstanceInfoRequest::setOrgId(const std::string& orgId) +{ + orgId_ = orgId; + setBodyParameter("OrgId", orgId); +} + +long GetPipelineInstanceInfoRequest::getPipelineId()const +{ + return pipelineId_; +} + +void GetPipelineInstanceInfoRequest::setPipelineId(long pipelineId) +{ + pipelineId_ = pipelineId; + setBodyParameter("PipelineId", std::to_string(pipelineId)); +} + diff --git a/devops-rdc/src/model/GetPipelineInstanceInfoResult.cc b/devops-rdc/src/model/GetPipelineInstanceInfoResult.cc new file mode 100644 index 000000000..a247369b5 --- /dev/null +++ b/devops-rdc/src/model/GetPipelineInstanceInfoResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops_rdc; +using namespace AlibabaCloud::Devops_rdc::Model; + +GetPipelineInstanceInfoResult::GetPipelineInstanceInfoResult() : + ServiceResult() +{} + +GetPipelineInstanceInfoResult::GetPipelineInstanceInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetPipelineInstanceInfoResult::~GetPipelineInstanceInfoResult() +{} + +void GetPipelineInstanceInfoResult::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["Status"].isNull()) + object_.status = objectNode["Status"].asString(); + if(!objectNode["StartTime"].isNull()) + object_.startTime = std::stol(objectNode["StartTime"].asString()); + if(!objectNode["EndTime"].isNull()) + object_.endTime = std::stol(objectNode["EndTime"].asString()); + if(!objectNode["Sources"].isNull()) + object_.sources = objectNode["Sources"].asString(); + if(!objectNode["EmployeeId"].isNull()) + object_.employeeId = objectNode["EmployeeId"].asString(); + auto allPackageDownloadUrls = objectNode["PackageDownloadUrls"]["PackageDownloadUrls"]; + for (auto value : allPackageDownloadUrls) + object_.packageDownloadUrls.push_back(value.asString()); + auto allDockerImages = objectNode["DockerImages"]["DockerImages"]; + for (auto value : allDockerImages) + object_.dockerImages.push_back(value.asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +GetPipelineInstanceInfoResult::Object GetPipelineInstanceInfoResult::getObject()const +{ + return object_; +} + +std::string GetPipelineInstanceInfoResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetPipelineInstanceInfoResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetPipelineInstanceInfoResult::getSuccess()const +{ + return success_; +} + diff --git a/devops-rdc/src/model/GetPipelineInstanceStatusRequest.cc b/devops-rdc/src/model/GetPipelineInstanceStatusRequest.cc new file mode 100644 index 000000000..8c165bbb1 --- /dev/null +++ b/devops-rdc/src/model/GetPipelineInstanceStatusRequest.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::Devops_rdc::Model::GetPipelineInstanceStatusRequest; + +GetPipelineInstanceStatusRequest::GetPipelineInstanceStatusRequest() : + RpcServiceRequest("devops-rdc", "2020-03-03", "GetPipelineInstanceStatus") +{ + setMethod(HttpRequest::Method::Post); +} + +GetPipelineInstanceStatusRequest::~GetPipelineInstanceStatusRequest() +{} + +long GetPipelineInstanceStatusRequest::getFlowInstanceId()const +{ + return flowInstanceId_; +} + +void GetPipelineInstanceStatusRequest::setFlowInstanceId(long flowInstanceId) +{ + flowInstanceId_ = flowInstanceId; + setParameter("FlowInstanceId", std::to_string(flowInstanceId)); +} + +std::string GetPipelineInstanceStatusRequest::getUserPk()const +{ + return userPk_; +} + +void GetPipelineInstanceStatusRequest::setUserPk(const std::string& userPk) +{ + userPk_ = userPk; + setBodyParameter("UserPk", userPk); +} + +std::string GetPipelineInstanceStatusRequest::getOrgId()const +{ + return orgId_; +} + +void GetPipelineInstanceStatusRequest::setOrgId(const std::string& orgId) +{ + orgId_ = orgId; + setParameter("OrgId", orgId); +} + +long GetPipelineInstanceStatusRequest::getPipelineId()const +{ + return pipelineId_; +} + +void GetPipelineInstanceStatusRequest::setPipelineId(long pipelineId) +{ + pipelineId_ = pipelineId; + setParameter("PipelineId", std::to_string(pipelineId)); +} + diff --git a/devops-rdc/src/model/GetPipelineInstanceStatusResult.cc b/devops-rdc/src/model/GetPipelineInstanceStatusResult.cc new file mode 100644 index 000000000..4cd3d6665 --- /dev/null +++ b/devops-rdc/src/model/GetPipelineInstanceStatusResult.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::Devops_rdc; +using namespace AlibabaCloud::Devops_rdc::Model; + +GetPipelineInstanceStatusResult::GetPipelineInstanceStatusResult() : + ServiceResult() +{} + +GetPipelineInstanceStatusResult::GetPipelineInstanceStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetPipelineInstanceStatusResult::~GetPipelineInstanceStatusResult() +{} + +void GetPipelineInstanceStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Object"].isNull()) + object_ = value["Object"].asString(); + +} + +std::string GetPipelineInstanceStatusResult::getObject()const +{ + return object_; +} + +std::string GetPipelineInstanceStatusResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetPipelineInstanceStatusResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetPipelineInstanceStatusResult::getSuccess()const +{ + return success_; +} + diff --git a/devops-rdc/src/model/GetPipelineLogRequest.cc b/devops-rdc/src/model/GetPipelineLogRequest.cc new file mode 100644 index 000000000..511b38d2e --- /dev/null +++ b/devops-rdc/src/model/GetPipelineLogRequest.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::Devops_rdc::Model::GetPipelineLogRequest; + +GetPipelineLogRequest::GetPipelineLogRequest() : + RpcServiceRequest("devops-rdc", "2020-03-03", "GetPipelineLog") +{ + setMethod(HttpRequest::Method::Post); +} + +GetPipelineLogRequest::~GetPipelineLogRequest() +{} + +std::string GetPipelineLogRequest::getUserPk()const +{ + return userPk_; +} + +void GetPipelineLogRequest::setUserPk(const std::string& userPk) +{ + userPk_ = userPk; + setBodyParameter("UserPk", userPk); +} + +std::string GetPipelineLogRequest::getOrgId()const +{ + return orgId_; +} + +void GetPipelineLogRequest::setOrgId(const std::string& orgId) +{ + orgId_ = orgId; + setBodyParameter("OrgId", orgId); +} + +long GetPipelineLogRequest::getPipelineId()const +{ + return pipelineId_; +} + +void GetPipelineLogRequest::setPipelineId(long pipelineId) +{ + pipelineId_ = pipelineId; + setBodyParameter("PipelineId", std::to_string(pipelineId)); +} + +long GetPipelineLogRequest::getJobId()const +{ + return jobId_; +} + +void GetPipelineLogRequest::setJobId(long jobId) +{ + jobId_ = jobId; + setBodyParameter("JobId", std::to_string(jobId)); +} + diff --git a/devops-rdc/src/model/GetPipelineLogResult.cc b/devops-rdc/src/model/GetPipelineLogResult.cc new file mode 100644 index 000000000..483a5aacf --- /dev/null +++ b/devops-rdc/src/model/GetPipelineLogResult.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::Devops_rdc; +using namespace AlibabaCloud::Devops_rdc::Model; + +GetPipelineLogResult::GetPipelineLogResult() : + ServiceResult() +{} + +GetPipelineLogResult::GetPipelineLogResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetPipelineLogResult::~GetPipelineLogResult() +{} + +void GetPipelineLogResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allObjectNode = value["Object"]["job"]; + for (auto valueObjectjob : allObjectNode) + { + Job objectObject; + if(!valueObjectjob["JobId"].isNull()) + objectObject.jobId = std::stol(valueObjectjob["JobId"].asString()); + if(!valueObjectjob["ActionName"].isNull()) + objectObject.actionName = valueObjectjob["ActionName"].asString(); + if(!valueObjectjob["StartTime"].isNull()) + objectObject.startTime = valueObjectjob["StartTime"].asString(); + auto allBuildProcessNodesNode = allObjectNode["BuildProcessNodes"]["buildProcessNode"]; + for (auto allObjectNodeBuildProcessNodesbuildProcessNode : allBuildProcessNodesNode) + { + Job::BuildProcessNode buildProcessNodesObject; + if(!allObjectNodeBuildProcessNodesbuildProcessNode["NodeName"].isNull()) + buildProcessNodesObject.nodeName = allObjectNodeBuildProcessNodesbuildProcessNode["NodeName"].asString(); + if(!allObjectNodeBuildProcessNodesbuildProcessNode["NodeIndex"].isNull()) + buildProcessNodesObject.nodeIndex = std::stoi(allObjectNodeBuildProcessNodesbuildProcessNode["NodeIndex"].asString()); + if(!allObjectNodeBuildProcessNodesbuildProcessNode["Status"].isNull()) + buildProcessNodesObject.status = allObjectNodeBuildProcessNodesbuildProcessNode["Status"].asString(); + objectObject.buildProcessNodes.push_back(buildProcessNodesObject); + } + object_.push_back(objectObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + +} + +std::vector GetPipelineLogResult::getObject()const +{ + return object_; +} + +std::string GetPipelineLogResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetPipelineLogResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetPipelineLogResult::getSuccess()const +{ + return success_; +} + diff --git a/devops-rdc/src/model/GetPipleineLatestInstanceStatusRequest.cc b/devops-rdc/src/model/GetPipleineLatestInstanceStatusRequest.cc new file mode 100644 index 000000000..2f99fd10a --- /dev/null +++ b/devops-rdc/src/model/GetPipleineLatestInstanceStatusRequest.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::Devops_rdc::Model::GetPipleineLatestInstanceStatusRequest; + +GetPipleineLatestInstanceStatusRequest::GetPipleineLatestInstanceStatusRequest() : + RpcServiceRequest("devops-rdc", "2020-03-03", "GetPipleineLatestInstanceStatus") +{ + setMethod(HttpRequest::Method::Post); +} + +GetPipleineLatestInstanceStatusRequest::~GetPipleineLatestInstanceStatusRequest() +{} + +std::string GetPipleineLatestInstanceStatusRequest::getUserPk()const +{ + return userPk_; +} + +void GetPipleineLatestInstanceStatusRequest::setUserPk(const std::string& userPk) +{ + userPk_ = userPk; + setBodyParameter("UserPk", userPk); +} + +std::string GetPipleineLatestInstanceStatusRequest::getOrgId()const +{ + return orgId_; +} + +void GetPipleineLatestInstanceStatusRequest::setOrgId(const std::string& orgId) +{ + orgId_ = orgId; + setParameter("OrgId", orgId); +} + +long GetPipleineLatestInstanceStatusRequest::getPipelineId()const +{ + return pipelineId_; +} + +void GetPipleineLatestInstanceStatusRequest::setPipelineId(long pipelineId) +{ + pipelineId_ = pipelineId; + setParameter("PipelineId", std::to_string(pipelineId)); +} + diff --git a/devops-rdc/src/model/GetPipleineLatestInstanceStatusResult.cc b/devops-rdc/src/model/GetPipleineLatestInstanceStatusResult.cc new file mode 100644 index 000000000..2417527b4 --- /dev/null +++ b/devops-rdc/src/model/GetPipleineLatestInstanceStatusResult.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::Devops_rdc; +using namespace AlibabaCloud::Devops_rdc::Model; + +GetPipleineLatestInstanceStatusResult::GetPipleineLatestInstanceStatusResult() : + ServiceResult() +{} + +GetPipleineLatestInstanceStatusResult::GetPipleineLatestInstanceStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetPipleineLatestInstanceStatusResult::~GetPipleineLatestInstanceStatusResult() +{} + +void GetPipleineLatestInstanceStatusResult::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["Status"].isNull()) + object_.status = objectNode["Status"].asString(); + auto allGroupsNode = objectNode["Groups"]["group"]; + for (auto objectNodeGroupsgroup : allGroupsNode) + { + Object::Group groupObject; + if(!objectNodeGroupsgroup["Name"].isNull()) + groupObject.name = objectNodeGroupsgroup["Name"].asString(); + if(!objectNodeGroupsgroup["Status"].isNull()) + groupObject.status = objectNodeGroupsgroup["Status"].asString(); + auto allStagesNode = allGroupsNode["Stages"]["stage"]; + for (auto allGroupsNodeStagesstage : allStagesNode) + { + Object::Group::Stage stagesObject; + if(!allGroupsNodeStagesstage["Status"].isNull()) + stagesObject.status = allGroupsNodeStagesstage["Status"].asString(); + if(!allGroupsNodeStagesstage["Sign"].isNull()) + stagesObject.sign = allGroupsNodeStagesstage["Sign"].asString(); + auto allComponentsNode = allStagesNode["Components"]["component"]; + for (auto allStagesNodeComponentscomponent : allComponentsNode) + { + Object::Group::Stage::Component componentsObject; + if(!allStagesNodeComponentscomponent["Name"].isNull()) + componentsObject.name = allStagesNodeComponentscomponent["Name"].asString(); + if(!allStagesNodeComponentscomponent["Status"].isNull()) + componentsObject.status = allStagesNodeComponentscomponent["Status"].asString(); + if(!allStagesNodeComponentscomponent["JobId"].isNull()) + componentsObject.jobId = std::stol(allStagesNodeComponentscomponent["JobId"].asString()); + stagesObject.components.push_back(componentsObject); + } + groupObject.stages.push_back(stagesObject); + } + object_.groups.push_back(groupObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + +} + +GetPipleineLatestInstanceStatusResult::Object GetPipleineLatestInstanceStatusResult::getObject()const +{ + return object_; +} + +std::string GetPipleineLatestInstanceStatusResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetPipleineLatestInstanceStatusResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetPipleineLatestInstanceStatusResult::getSuccess()const +{ + return success_; +} + diff --git a/devops-rdc/src/model/ListCredentialsRequest.cc b/devops-rdc/src/model/ListCredentialsRequest.cc new file mode 100644 index 000000000..9bc409671 --- /dev/null +++ b/devops-rdc/src/model/ListCredentialsRequest.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::Devops_rdc::Model::ListCredentialsRequest; + +ListCredentialsRequest::ListCredentialsRequest() : + RpcServiceRequest("devops-rdc", "2020-03-03", "ListCredentials") +{ + setMethod(HttpRequest::Method::Post); +} + +ListCredentialsRequest::~ListCredentialsRequest() +{} + +std::string ListCredentialsRequest::getUserPk()const +{ + return userPk_; +} + +void ListCredentialsRequest::setUserPk(const std::string& userPk) +{ + userPk_ = userPk; + setBodyParameter("UserPk", userPk); +} + +std::string ListCredentialsRequest::getOrgId()const +{ + return orgId_; +} + +void ListCredentialsRequest::setOrgId(const std::string& orgId) +{ + orgId_ = orgId; + setBodyParameter("OrgId", orgId); +} + diff --git a/devops-rdc/src/model/ListCredentialsResult.cc b/devops-rdc/src/model/ListCredentialsResult.cc new file mode 100644 index 000000000..8fa774309 --- /dev/null +++ b/devops-rdc/src/model/ListCredentialsResult.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 +#include + +using namespace AlibabaCloud::Devops_rdc; +using namespace AlibabaCloud::Devops_rdc::Model; + +ListCredentialsResult::ListCredentialsResult() : + ServiceResult() +{} + +ListCredentialsResult::ListCredentialsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListCredentialsResult::~ListCredentialsResult() +{} + +void ListCredentialsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allObject = value["Object"]["Object"]; + for (const auto &item : allObject) + object_.push_back(item.asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::vector ListCredentialsResult::getObject()const +{ + return object_; +} + +std::string ListCredentialsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListCredentialsResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListCredentialsResult::getSuccess()const +{ + return success_; +} + diff --git a/devops-rdc/src/model/ListPipelinesRequest.cc b/devops-rdc/src/model/ListPipelinesRequest.cc new file mode 100644 index 000000000..d52cd2e83 --- /dev/null +++ b/devops-rdc/src/model/ListPipelinesRequest.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::Devops_rdc::Model::ListPipelinesRequest; + +ListPipelinesRequest::ListPipelinesRequest() : + RpcServiceRequest("devops-rdc", "2020-03-03", "ListPipelines") +{ + setMethod(HttpRequest::Method::Post); +} + +ListPipelinesRequest::~ListPipelinesRequest() +{} + +std::string ListPipelinesRequest::getPipelineName()const +{ + return pipelineName_; +} + +void ListPipelinesRequest::setPipelineName(const std::string& pipelineName) +{ + pipelineName_ = pipelineName; + setBodyParameter("PipelineName", pipelineName); +} + +std::string ListPipelinesRequest::getResultStatusList()const +{ + return resultStatusList_; +} + +void ListPipelinesRequest::setResultStatusList(const std::string& resultStatusList) +{ + resultStatusList_ = resultStatusList; + setBodyParameter("ResultStatusList", resultStatusList); +} + +std::string ListPipelinesRequest::getCreators()const +{ + return creators_; +} + +void ListPipelinesRequest::setCreators(const std::string& creators) +{ + creators_ = creators; + setBodyParameter("Creators", creators); +} + +std::string ListPipelinesRequest::getExecuteEndTime()const +{ + return executeEndTime_; +} + +void ListPipelinesRequest::setExecuteEndTime(const std::string& executeEndTime) +{ + executeEndTime_ = executeEndTime; + setBodyParameter("ExecuteEndTime", executeEndTime); +} + +std::string ListPipelinesRequest::getUserPk()const +{ + return userPk_; +} + +void ListPipelinesRequest::setUserPk(const std::string& userPk) +{ + userPk_ = userPk; + setBodyParameter("UserPk", userPk); +} + +std::string ListPipelinesRequest::getOrgId()const +{ + return orgId_; +} + +void ListPipelinesRequest::setOrgId(const std::string& orgId) +{ + orgId_ = orgId; + setParameter("OrgId", orgId); +} + +std::string ListPipelinesRequest::getCreateStartTime()const +{ + return createStartTime_; +} + +void ListPipelinesRequest::setCreateStartTime(const std::string& createStartTime) +{ + createStartTime_ = createStartTime; + setBodyParameter("CreateStartTime", createStartTime); +} + +std::string ListPipelinesRequest::getOperators()const +{ + return operators_; +} + +void ListPipelinesRequest::setOperators(const std::string& operators) +{ + operators_ = operators; + setBodyParameter("Operators", operators); +} + +int ListPipelinesRequest::getPageSize()const +{ + return pageSize_; +} + +void ListPipelinesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setBodyParameter("PageSize", std::to_string(pageSize)); +} + +std::string ListPipelinesRequest::getExecuteStartTime()const +{ + return executeStartTime_; +} + +void ListPipelinesRequest::setExecuteStartTime(const std::string& executeStartTime) +{ + executeStartTime_ = executeStartTime; + setBodyParameter("ExecuteStartTime", executeStartTime); +} + +int ListPipelinesRequest::getPageStart()const +{ + return pageStart_; +} + +void ListPipelinesRequest::setPageStart(int pageStart) +{ + pageStart_ = pageStart; + setBodyParameter("PageStart", std::to_string(pageStart)); +} + +std::string ListPipelinesRequest::getCreateEndTime()const +{ + return createEndTime_; +} + +void ListPipelinesRequest::setCreateEndTime(const std::string& createEndTime) +{ + createEndTime_ = createEndTime; + setBodyParameter("CreateEndTime", createEndTime); +} + diff --git a/devops-rdc/src/model/ListPipelinesResult.cc b/devops-rdc/src/model/ListPipelinesResult.cc new file mode 100644 index 000000000..38a9ee33a --- /dev/null +++ b/devops-rdc/src/model/ListPipelinesResult.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::Devops_rdc; +using namespace AlibabaCloud::Devops_rdc::Model; + +ListPipelinesResult::ListPipelinesResult() : + ServiceResult() +{} + +ListPipelinesResult::ListPipelinesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListPipelinesResult::~ListPipelinesResult() +{} + +void ListPipelinesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Object"].isNull()) + object_ = value["Object"].asString(); + +} + +std::string ListPipelinesResult::getObject()const +{ + return object_; +} + +std::string ListPipelinesResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListPipelinesResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListPipelinesResult::getSuccess()const +{ + return success_; +} + diff --git a/devops-rdc/src/model/ListServiceConnectionsRequest.cc b/devops-rdc/src/model/ListServiceConnectionsRequest.cc new file mode 100644 index 000000000..1c44ad608 --- /dev/null +++ b/devops-rdc/src/model/ListServiceConnectionsRequest.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::Devops_rdc::Model::ListServiceConnectionsRequest; + +ListServiceConnectionsRequest::ListServiceConnectionsRequest() : + RpcServiceRequest("devops-rdc", "2020-03-03", "ListServiceConnections") +{ + setMethod(HttpRequest::Method::Post); +} + +ListServiceConnectionsRequest::~ListServiceConnectionsRequest() +{} + +std::string ListServiceConnectionsRequest::getScType()const +{ + return scType_; +} + +void ListServiceConnectionsRequest::setScType(const std::string& scType) +{ + scType_ = scType; + setBodyParameter("ScType", scType); +} + +std::string ListServiceConnectionsRequest::getUserPk()const +{ + return userPk_; +} + +void ListServiceConnectionsRequest::setUserPk(const std::string& userPk) +{ + userPk_ = userPk; + setBodyParameter("UserPk", userPk); +} + +std::string ListServiceConnectionsRequest::getOrgId()const +{ + return orgId_; +} + +void ListServiceConnectionsRequest::setOrgId(const std::string& orgId) +{ + orgId_ = orgId; + setBodyParameter("OrgId", orgId); +} + diff --git a/devops-rdc/src/model/ListServiceConnectionsResult.cc b/devops-rdc/src/model/ListServiceConnectionsResult.cc new file mode 100644 index 000000000..cbec23e5f --- /dev/null +++ b/devops-rdc/src/model/ListServiceConnectionsResult.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 +#include + +using namespace AlibabaCloud::Devops_rdc; +using namespace AlibabaCloud::Devops_rdc::Model; + +ListServiceConnectionsResult::ListServiceConnectionsResult() : + ServiceResult() +{} + +ListServiceConnectionsResult::ListServiceConnectionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListServiceConnectionsResult::~ListServiceConnectionsResult() +{} + +void ListServiceConnectionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allObject = value["Object"]["Object"]; + for (const auto &item : allObject) + object_.push_back(item.asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::vector ListServiceConnectionsResult::getObject()const +{ + return object_; +} + +std::string ListServiceConnectionsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListServiceConnectionsResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListServiceConnectionsResult::getSuccess()const +{ + return success_; +} +