diff --git a/CHANGELOG b/CHANGELOG index a6a5a4e13..e12c03c8f 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,10 @@ +2018-03-27 Version: 1.3.5 +1, publish Project API. +2, publish Service API. +3, publish Service order API. +4, publish Credential API. +5, publish CAS API. + 2018-03-27 Version: 1.3.4 1, add interface FetchLibraries diff --git a/CMakeLists.txt b/CMakeLists.txt index 85622b287..08ad53a0f 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -65,4 +65,5 @@ add_subdirectory(ehpc) add_subdirectory(cs) add_subdirectory(ccc) add_subdirectory(teslamaxcompute) -add_subdirectory(push) \ No newline at end of file +add_subdirectory(push) +add_subdirectory(csb) \ No newline at end of file diff --git a/VERSION b/VERSION index 8c9698aaf..aaf8be715 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.3.4 \ No newline at end of file +1.3.5 \ No newline at end of file diff --git a/csb/CMakeLists.txt b/csb/CMakeLists.txt new file mode 100644 index 000000000..49da34e70 --- /dev/null +++ b/csb/CMakeLists.txt @@ -0,0 +1,238 @@ +# +# Copyright 2009-2017 Alibaba Cloud All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT 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(csb_public_header + include/alibabacloud/csb/CSBClient.h + include/alibabacloud/csb/CSBExport.h ) + +set(csb_public_header_model + include/alibabacloud/csb/model/DeleteServiceRequest.h + include/alibabacloud/csb/model/DeleteServiceResult.h + include/alibabacloud/csb/model/FindServiceListRequest.h + include/alibabacloud/csb/model/FindServiceListResult.h + include/alibabacloud/csb/model/PublishUnionCasServiceRequest.h + include/alibabacloud/csb/model/PublishUnionCasServiceResult.h + include/alibabacloud/csb/model/UpdateServiceListStatusRequest.h + include/alibabacloud/csb/model/UpdateServiceListStatusResult.h + include/alibabacloud/csb/model/CreateOrderRequest.h + include/alibabacloud/csb/model/CreateOrderResult.h + include/alibabacloud/csb/model/CreateProjectRequest.h + include/alibabacloud/csb/model/CreateProjectResult.h + include/alibabacloud/csb/model/DeleteServiceListRequest.h + include/alibabacloud/csb/model/DeleteServiceListResult.h + include/alibabacloud/csb/model/CommitSuccessedServicesRequest.h + include/alibabacloud/csb/model/CommitSuccessedServicesResult.h + include/alibabacloud/csb/model/FindOrderedListRequest.h + include/alibabacloud/csb/model/FindOrderedListResult.h + include/alibabacloud/csb/model/DeleteOrderListRequest.h + include/alibabacloud/csb/model/DeleteOrderListResult.h + include/alibabacloud/csb/model/CreateCredentialsRequest.h + include/alibabacloud/csb/model/CreateCredentialsResult.h + include/alibabacloud/csb/model/DeleteCasServiceRequest.h + include/alibabacloud/csb/model/DeleteCasServiceResult.h + include/alibabacloud/csb/model/DeleteProjectListRequest.h + include/alibabacloud/csb/model/DeleteProjectListResult.h + include/alibabacloud/csb/model/FindInstanceListRequest.h + include/alibabacloud/csb/model/FindInstanceListResult.h + include/alibabacloud/csb/model/PublishCasServiceRequest.h + include/alibabacloud/csb/model/PublishCasServiceResult.h + include/alibabacloud/csb/model/UpdateProjectListStatusRequest.h + include/alibabacloud/csb/model/UpdateProjectListStatusResult.h + include/alibabacloud/csb/model/FindProjectsNameListRequest.h + include/alibabacloud/csb/model/FindProjectsNameListResult.h + include/alibabacloud/csb/model/ReplaceCredentialRequest.h + include/alibabacloud/csb/model/ReplaceCredentialResult.h + include/alibabacloud/csb/model/GetProjectRequest.h + include/alibabacloud/csb/model/GetProjectResult.h + include/alibabacloud/csb/model/DeleteUnionCasServiceRequest.h + include/alibabacloud/csb/model/DeleteUnionCasServiceResult.h + include/alibabacloud/csb/model/CheckServiceExistRequest.h + include/alibabacloud/csb/model/CheckServiceExistResult.h + include/alibabacloud/csb/model/GetInstanceRequest.h + include/alibabacloud/csb/model/GetInstanceResult.h + include/alibabacloud/csb/model/RenewCredentialsRequest.h + include/alibabacloud/csb/model/RenewCredentialsResult.h + include/alibabacloud/csb/model/GetOrderRequest.h + include/alibabacloud/csb/model/GetOrderResult.h + include/alibabacloud/csb/model/UpdateOrderListRequest.h + include/alibabacloud/csb/model/UpdateOrderListResult.h + include/alibabacloud/csb/model/DeleteCredentialsListRequest.h + include/alibabacloud/csb/model/DeleteCredentialsListResult.h + include/alibabacloud/csb/model/CreateServiceRequest.h + include/alibabacloud/csb/model/CreateServiceResult.h + include/alibabacloud/csb/model/FindCredentialsListRequest.h + include/alibabacloud/csb/model/FindCredentialsListResult.h + include/alibabacloud/csb/model/ApproveOrderListRequest.h + include/alibabacloud/csb/model/ApproveOrderListResult.h + include/alibabacloud/csb/model/UpdateServiceRequest.h + include/alibabacloud/csb/model/UpdateServiceResult.h + include/alibabacloud/csb/model/DeleteProjectRequest.h + include/alibabacloud/csb/model/DeleteProjectResult.h + include/alibabacloud/csb/model/UpdateProjectRequest.h + include/alibabacloud/csb/model/UpdateProjectResult.h + include/alibabacloud/csb/model/FindOrderableListRequest.h + include/alibabacloud/csb/model/FindOrderableListResult.h + include/alibabacloud/csb/model/FindProjectListRequest.h + include/alibabacloud/csb/model/FindProjectListResult.h + include/alibabacloud/csb/model/FindApprovalOrderListRequest.h + include/alibabacloud/csb/model/FindApprovalOrderListResult.h + include/alibabacloud/csb/model/UpdateServiceQPSRequest.h + include/alibabacloud/csb/model/UpdateServiceQPSResult.h + include/alibabacloud/csb/model/UpdateOrderRequest.h + include/alibabacloud/csb/model/UpdateOrderResult.h + include/alibabacloud/csb/model/FindApproveServiceListRequest.h + include/alibabacloud/csb/model/FindApproveServiceListResult.h + include/alibabacloud/csb/model/GetServiceRequest.h + include/alibabacloud/csb/model/GetServiceResult.h ) + +set(csb_src + src/CSBClient.cc + src/model/DeleteServiceRequest.cc + src/model/DeleteServiceResult.cc + src/model/FindServiceListRequest.cc + src/model/FindServiceListResult.cc + src/model/PublishUnionCasServiceRequest.cc + src/model/PublishUnionCasServiceResult.cc + src/model/UpdateServiceListStatusRequest.cc + src/model/UpdateServiceListStatusResult.cc + src/model/CreateOrderRequest.cc + src/model/CreateOrderResult.cc + src/model/CreateProjectRequest.cc + src/model/CreateProjectResult.cc + src/model/DeleteServiceListRequest.cc + src/model/DeleteServiceListResult.cc + src/model/CommitSuccessedServicesRequest.cc + src/model/CommitSuccessedServicesResult.cc + src/model/FindOrderedListRequest.cc + src/model/FindOrderedListResult.cc + src/model/DeleteOrderListRequest.cc + src/model/DeleteOrderListResult.cc + src/model/CreateCredentialsRequest.cc + src/model/CreateCredentialsResult.cc + src/model/DeleteCasServiceRequest.cc + src/model/DeleteCasServiceResult.cc + src/model/DeleteProjectListRequest.cc + src/model/DeleteProjectListResult.cc + src/model/FindInstanceListRequest.cc + src/model/FindInstanceListResult.cc + src/model/PublishCasServiceRequest.cc + src/model/PublishCasServiceResult.cc + src/model/UpdateProjectListStatusRequest.cc + src/model/UpdateProjectListStatusResult.cc + src/model/FindProjectsNameListRequest.cc + src/model/FindProjectsNameListResult.cc + src/model/ReplaceCredentialRequest.cc + src/model/ReplaceCredentialResult.cc + src/model/GetProjectRequest.cc + src/model/GetProjectResult.cc + src/model/DeleteUnionCasServiceRequest.cc + src/model/DeleteUnionCasServiceResult.cc + src/model/CheckServiceExistRequest.cc + src/model/CheckServiceExistResult.cc + src/model/GetInstanceRequest.cc + src/model/GetInstanceResult.cc + src/model/RenewCredentialsRequest.cc + src/model/RenewCredentialsResult.cc + src/model/GetOrderRequest.cc + src/model/GetOrderResult.cc + src/model/UpdateOrderListRequest.cc + src/model/UpdateOrderListResult.cc + src/model/DeleteCredentialsListRequest.cc + src/model/DeleteCredentialsListResult.cc + src/model/CreateServiceRequest.cc + src/model/CreateServiceResult.cc + src/model/FindCredentialsListRequest.cc + src/model/FindCredentialsListResult.cc + src/model/ApproveOrderListRequest.cc + src/model/ApproveOrderListResult.cc + src/model/UpdateServiceRequest.cc + src/model/UpdateServiceResult.cc + src/model/DeleteProjectRequest.cc + src/model/DeleteProjectResult.cc + src/model/UpdateProjectRequest.cc + src/model/UpdateProjectResult.cc + src/model/FindOrderableListRequest.cc + src/model/FindOrderableListResult.cc + src/model/FindProjectListRequest.cc + src/model/FindProjectListResult.cc + src/model/FindApprovalOrderListRequest.cc + src/model/FindApprovalOrderListResult.cc + src/model/UpdateServiceQPSRequest.cc + src/model/UpdateServiceQPSResult.cc + src/model/UpdateOrderRequest.cc + src/model/UpdateOrderResult.cc + src/model/FindApproveServiceListRequest.cc + src/model/FindApproveServiceListResult.cc + src/model/GetServiceRequest.cc + src/model/GetServiceResult.cc ) + +add_library(csb ${LIB_TYPE} + ${csb_public_header} + ${csb_public_header_model} + ${csb_src}) + +set_target_properties(csb + 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}csb + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(csb + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_CSB_LIBRARY) +endif() + +target_include_directories(csb + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(csb + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(csb + jsoncpp) + target_include_directories(csb + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(csb + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(csb + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(csb + PRIVATE /usr/include/jsoncpp) + target_link_libraries(csb + jsoncpp) +endif() + +install(FILES ${csb_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/csb) +install(FILES ${csb_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/csb/model) +install(TARGETS csb + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/CSBClient.h b/csb/include/alibabacloud/csb/CSBClient.h new file mode 100644 index 000000000..3a7cbb41e --- /dev/null +++ b/csb/include/alibabacloud/csb/CSBClient.h @@ -0,0 +1,358 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_CSB_CSBCLIENT_H_ +#define ALIBABACLOUD_CSB_CSBCLIENT_H_ + +#include +#include +#include +#include +#include "CSBExport.h" +#include "model/DeleteServiceRequest.h" +#include "model/DeleteServiceResult.h" +#include "model/FindServiceListRequest.h" +#include "model/FindServiceListResult.h" +#include "model/PublishUnionCasServiceRequest.h" +#include "model/PublishUnionCasServiceResult.h" +#include "model/UpdateServiceListStatusRequest.h" +#include "model/UpdateServiceListStatusResult.h" +#include "model/CreateOrderRequest.h" +#include "model/CreateOrderResult.h" +#include "model/CreateProjectRequest.h" +#include "model/CreateProjectResult.h" +#include "model/DeleteServiceListRequest.h" +#include "model/DeleteServiceListResult.h" +#include "model/CommitSuccessedServicesRequest.h" +#include "model/CommitSuccessedServicesResult.h" +#include "model/FindOrderedListRequest.h" +#include "model/FindOrderedListResult.h" +#include "model/DeleteOrderListRequest.h" +#include "model/DeleteOrderListResult.h" +#include "model/CreateCredentialsRequest.h" +#include "model/CreateCredentialsResult.h" +#include "model/DeleteCasServiceRequest.h" +#include "model/DeleteCasServiceResult.h" +#include "model/DeleteProjectListRequest.h" +#include "model/DeleteProjectListResult.h" +#include "model/FindInstanceListRequest.h" +#include "model/FindInstanceListResult.h" +#include "model/PublishCasServiceRequest.h" +#include "model/PublishCasServiceResult.h" +#include "model/UpdateProjectListStatusRequest.h" +#include "model/UpdateProjectListStatusResult.h" +#include "model/FindProjectsNameListRequest.h" +#include "model/FindProjectsNameListResult.h" +#include "model/ReplaceCredentialRequest.h" +#include "model/ReplaceCredentialResult.h" +#include "model/GetProjectRequest.h" +#include "model/GetProjectResult.h" +#include "model/DeleteUnionCasServiceRequest.h" +#include "model/DeleteUnionCasServiceResult.h" +#include "model/CheckServiceExistRequest.h" +#include "model/CheckServiceExistResult.h" +#include "model/GetInstanceRequest.h" +#include "model/GetInstanceResult.h" +#include "model/RenewCredentialsRequest.h" +#include "model/RenewCredentialsResult.h" +#include "model/GetOrderRequest.h" +#include "model/GetOrderResult.h" +#include "model/UpdateOrderListRequest.h" +#include "model/UpdateOrderListResult.h" +#include "model/DeleteCredentialsListRequest.h" +#include "model/DeleteCredentialsListResult.h" +#include "model/CreateServiceRequest.h" +#include "model/CreateServiceResult.h" +#include "model/FindCredentialsListRequest.h" +#include "model/FindCredentialsListResult.h" +#include "model/ApproveOrderListRequest.h" +#include "model/ApproveOrderListResult.h" +#include "model/UpdateServiceRequest.h" +#include "model/UpdateServiceResult.h" +#include "model/DeleteProjectRequest.h" +#include "model/DeleteProjectResult.h" +#include "model/UpdateProjectRequest.h" +#include "model/UpdateProjectResult.h" +#include "model/FindOrderableListRequest.h" +#include "model/FindOrderableListResult.h" +#include "model/FindProjectListRequest.h" +#include "model/FindProjectListResult.h" +#include "model/FindApprovalOrderListRequest.h" +#include "model/FindApprovalOrderListResult.h" +#include "model/UpdateServiceQPSRequest.h" +#include "model/UpdateServiceQPSResult.h" +#include "model/UpdateOrderRequest.h" +#include "model/UpdateOrderResult.h" +#include "model/FindApproveServiceListRequest.h" +#include "model/FindApproveServiceListResult.h" +#include "model/GetServiceRequest.h" +#include "model/GetServiceResult.h" + + +namespace AlibabaCloud +{ + namespace CSB + { + class ALIBABACLOUD_CSB_EXPORT CSBClient : public RpcServiceClient + { + public: + typedef Outcome DeleteServiceOutcome; + typedef std::future DeleteServiceOutcomeCallable; + typedef std::function&)> DeleteServiceAsyncHandler; + typedef Outcome FindServiceListOutcome; + typedef std::future FindServiceListOutcomeCallable; + typedef std::function&)> FindServiceListAsyncHandler; + typedef Outcome PublishUnionCasServiceOutcome; + typedef std::future PublishUnionCasServiceOutcomeCallable; + typedef std::function&)> PublishUnionCasServiceAsyncHandler; + typedef Outcome UpdateServiceListStatusOutcome; + typedef std::future UpdateServiceListStatusOutcomeCallable; + typedef std::function&)> UpdateServiceListStatusAsyncHandler; + typedef Outcome CreateOrderOutcome; + typedef std::future CreateOrderOutcomeCallable; + typedef std::function&)> CreateOrderAsyncHandler; + typedef Outcome CreateProjectOutcome; + typedef std::future CreateProjectOutcomeCallable; + typedef std::function&)> CreateProjectAsyncHandler; + typedef Outcome DeleteServiceListOutcome; + typedef std::future DeleteServiceListOutcomeCallable; + typedef std::function&)> DeleteServiceListAsyncHandler; + typedef Outcome CommitSuccessedServicesOutcome; + typedef std::future CommitSuccessedServicesOutcomeCallable; + typedef std::function&)> CommitSuccessedServicesAsyncHandler; + typedef Outcome FindOrderedListOutcome; + typedef std::future FindOrderedListOutcomeCallable; + typedef std::function&)> FindOrderedListAsyncHandler; + typedef Outcome DeleteOrderListOutcome; + typedef std::future DeleteOrderListOutcomeCallable; + typedef std::function&)> DeleteOrderListAsyncHandler; + typedef Outcome CreateCredentialsOutcome; + typedef std::future CreateCredentialsOutcomeCallable; + typedef std::function&)> CreateCredentialsAsyncHandler; + typedef Outcome DeleteCasServiceOutcome; + typedef std::future DeleteCasServiceOutcomeCallable; + typedef std::function&)> DeleteCasServiceAsyncHandler; + typedef Outcome DeleteProjectListOutcome; + typedef std::future DeleteProjectListOutcomeCallable; + typedef std::function&)> DeleteProjectListAsyncHandler; + typedef Outcome FindInstanceListOutcome; + typedef std::future FindInstanceListOutcomeCallable; + typedef std::function&)> FindInstanceListAsyncHandler; + typedef Outcome PublishCasServiceOutcome; + typedef std::future PublishCasServiceOutcomeCallable; + typedef std::function&)> PublishCasServiceAsyncHandler; + typedef Outcome UpdateProjectListStatusOutcome; + typedef std::future UpdateProjectListStatusOutcomeCallable; + typedef std::function&)> UpdateProjectListStatusAsyncHandler; + typedef Outcome FindProjectsNameListOutcome; + typedef std::future FindProjectsNameListOutcomeCallable; + typedef std::function&)> FindProjectsNameListAsyncHandler; + typedef Outcome ReplaceCredentialOutcome; + typedef std::future ReplaceCredentialOutcomeCallable; + typedef std::function&)> ReplaceCredentialAsyncHandler; + typedef Outcome GetProjectOutcome; + typedef std::future GetProjectOutcomeCallable; + typedef std::function&)> GetProjectAsyncHandler; + typedef Outcome DeleteUnionCasServiceOutcome; + typedef std::future DeleteUnionCasServiceOutcomeCallable; + typedef std::function&)> DeleteUnionCasServiceAsyncHandler; + typedef Outcome CheckServiceExistOutcome; + typedef std::future CheckServiceExistOutcomeCallable; + typedef std::function&)> CheckServiceExistAsyncHandler; + typedef Outcome GetInstanceOutcome; + typedef std::future GetInstanceOutcomeCallable; + typedef std::function&)> GetInstanceAsyncHandler; + typedef Outcome RenewCredentialsOutcome; + typedef std::future RenewCredentialsOutcomeCallable; + typedef std::function&)> RenewCredentialsAsyncHandler; + typedef Outcome GetOrderOutcome; + typedef std::future GetOrderOutcomeCallable; + typedef std::function&)> GetOrderAsyncHandler; + typedef Outcome UpdateOrderListOutcome; + typedef std::future UpdateOrderListOutcomeCallable; + typedef std::function&)> UpdateOrderListAsyncHandler; + typedef Outcome DeleteCredentialsListOutcome; + typedef std::future DeleteCredentialsListOutcomeCallable; + typedef std::function&)> DeleteCredentialsListAsyncHandler; + typedef Outcome CreateServiceOutcome; + typedef std::future CreateServiceOutcomeCallable; + typedef std::function&)> CreateServiceAsyncHandler; + typedef Outcome FindCredentialsListOutcome; + typedef std::future FindCredentialsListOutcomeCallable; + typedef std::function&)> FindCredentialsListAsyncHandler; + typedef Outcome ApproveOrderListOutcome; + typedef std::future ApproveOrderListOutcomeCallable; + typedef std::function&)> ApproveOrderListAsyncHandler; + typedef Outcome UpdateServiceOutcome; + typedef std::future UpdateServiceOutcomeCallable; + typedef std::function&)> UpdateServiceAsyncHandler; + typedef Outcome DeleteProjectOutcome; + typedef std::future DeleteProjectOutcomeCallable; + typedef std::function&)> DeleteProjectAsyncHandler; + typedef Outcome UpdateProjectOutcome; + typedef std::future UpdateProjectOutcomeCallable; + typedef std::function&)> UpdateProjectAsyncHandler; + typedef Outcome FindOrderableListOutcome; + typedef std::future FindOrderableListOutcomeCallable; + typedef std::function&)> FindOrderableListAsyncHandler; + typedef Outcome FindProjectListOutcome; + typedef std::future FindProjectListOutcomeCallable; + typedef std::function&)> FindProjectListAsyncHandler; + typedef Outcome FindApprovalOrderListOutcome; + typedef std::future FindApprovalOrderListOutcomeCallable; + typedef std::function&)> FindApprovalOrderListAsyncHandler; + typedef Outcome UpdateServiceQPSOutcome; + typedef std::future UpdateServiceQPSOutcomeCallable; + typedef std::function&)> UpdateServiceQPSAsyncHandler; + typedef Outcome UpdateOrderOutcome; + typedef std::future UpdateOrderOutcomeCallable; + typedef std::function&)> UpdateOrderAsyncHandler; + typedef Outcome FindApproveServiceListOutcome; + typedef std::future FindApproveServiceListOutcomeCallable; + typedef std::function&)> FindApproveServiceListAsyncHandler; + typedef Outcome GetServiceOutcome; + typedef std::future GetServiceOutcomeCallable; + typedef std::function&)> GetServiceAsyncHandler; + + CSBClient(const Credentials &credentials, const ClientConfiguration &configuration); + CSBClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + CSBClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~CSBClient(); + DeleteServiceOutcome deleteService(const Model::DeleteServiceRequest &request)const; + void deleteServiceAsync(const Model::DeleteServiceRequest& request, const DeleteServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteServiceOutcomeCallable deleteServiceCallable(const Model::DeleteServiceRequest& request) const; + FindServiceListOutcome findServiceList(const Model::FindServiceListRequest &request)const; + void findServiceListAsync(const Model::FindServiceListRequest& request, const FindServiceListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + FindServiceListOutcomeCallable findServiceListCallable(const Model::FindServiceListRequest& request) const; + PublishUnionCasServiceOutcome publishUnionCasService(const Model::PublishUnionCasServiceRequest &request)const; + void publishUnionCasServiceAsync(const Model::PublishUnionCasServiceRequest& request, const PublishUnionCasServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PublishUnionCasServiceOutcomeCallable publishUnionCasServiceCallable(const Model::PublishUnionCasServiceRequest& request) const; + UpdateServiceListStatusOutcome updateServiceListStatus(const Model::UpdateServiceListStatusRequest &request)const; + void updateServiceListStatusAsync(const Model::UpdateServiceListStatusRequest& request, const UpdateServiceListStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateServiceListStatusOutcomeCallable updateServiceListStatusCallable(const Model::UpdateServiceListStatusRequest& request) const; + CreateOrderOutcome createOrder(const Model::CreateOrderRequest &request)const; + void createOrderAsync(const Model::CreateOrderRequest& request, const CreateOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateOrderOutcomeCallable createOrderCallable(const Model::CreateOrderRequest& request) const; + CreateProjectOutcome createProject(const Model::CreateProjectRequest &request)const; + void createProjectAsync(const Model::CreateProjectRequest& request, const CreateProjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateProjectOutcomeCallable createProjectCallable(const Model::CreateProjectRequest& request) const; + DeleteServiceListOutcome deleteServiceList(const Model::DeleteServiceListRequest &request)const; + void deleteServiceListAsync(const Model::DeleteServiceListRequest& request, const DeleteServiceListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteServiceListOutcomeCallable deleteServiceListCallable(const Model::DeleteServiceListRequest& request) const; + CommitSuccessedServicesOutcome commitSuccessedServices(const Model::CommitSuccessedServicesRequest &request)const; + void commitSuccessedServicesAsync(const Model::CommitSuccessedServicesRequest& request, const CommitSuccessedServicesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CommitSuccessedServicesOutcomeCallable commitSuccessedServicesCallable(const Model::CommitSuccessedServicesRequest& request) const; + FindOrderedListOutcome findOrderedList(const Model::FindOrderedListRequest &request)const; + void findOrderedListAsync(const Model::FindOrderedListRequest& request, const FindOrderedListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + FindOrderedListOutcomeCallable findOrderedListCallable(const Model::FindOrderedListRequest& request) const; + DeleteOrderListOutcome deleteOrderList(const Model::DeleteOrderListRequest &request)const; + void deleteOrderListAsync(const Model::DeleteOrderListRequest& request, const DeleteOrderListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteOrderListOutcomeCallable deleteOrderListCallable(const Model::DeleteOrderListRequest& request) const; + CreateCredentialsOutcome createCredentials(const Model::CreateCredentialsRequest &request)const; + void createCredentialsAsync(const Model::CreateCredentialsRequest& request, const CreateCredentialsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateCredentialsOutcomeCallable createCredentialsCallable(const Model::CreateCredentialsRequest& request) const; + DeleteCasServiceOutcome deleteCasService(const Model::DeleteCasServiceRequest &request)const; + void deleteCasServiceAsync(const Model::DeleteCasServiceRequest& request, const DeleteCasServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteCasServiceOutcomeCallable deleteCasServiceCallable(const Model::DeleteCasServiceRequest& request) const; + DeleteProjectListOutcome deleteProjectList(const Model::DeleteProjectListRequest &request)const; + void deleteProjectListAsync(const Model::DeleteProjectListRequest& request, const DeleteProjectListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteProjectListOutcomeCallable deleteProjectListCallable(const Model::DeleteProjectListRequest& request) const; + FindInstanceListOutcome findInstanceList(const Model::FindInstanceListRequest &request)const; + void findInstanceListAsync(const Model::FindInstanceListRequest& request, const FindInstanceListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + FindInstanceListOutcomeCallable findInstanceListCallable(const Model::FindInstanceListRequest& request) const; + PublishCasServiceOutcome publishCasService(const Model::PublishCasServiceRequest &request)const; + void publishCasServiceAsync(const Model::PublishCasServiceRequest& request, const PublishCasServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PublishCasServiceOutcomeCallable publishCasServiceCallable(const Model::PublishCasServiceRequest& request) const; + UpdateProjectListStatusOutcome updateProjectListStatus(const Model::UpdateProjectListStatusRequest &request)const; + void updateProjectListStatusAsync(const Model::UpdateProjectListStatusRequest& request, const UpdateProjectListStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateProjectListStatusOutcomeCallable updateProjectListStatusCallable(const Model::UpdateProjectListStatusRequest& request) const; + FindProjectsNameListOutcome findProjectsNameList(const Model::FindProjectsNameListRequest &request)const; + void findProjectsNameListAsync(const Model::FindProjectsNameListRequest& request, const FindProjectsNameListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + FindProjectsNameListOutcomeCallable findProjectsNameListCallable(const Model::FindProjectsNameListRequest& request) const; + ReplaceCredentialOutcome replaceCredential(const Model::ReplaceCredentialRequest &request)const; + void replaceCredentialAsync(const Model::ReplaceCredentialRequest& request, const ReplaceCredentialAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ReplaceCredentialOutcomeCallable replaceCredentialCallable(const Model::ReplaceCredentialRequest& request) const; + GetProjectOutcome getProject(const Model::GetProjectRequest &request)const; + void getProjectAsync(const Model::GetProjectRequest& request, const GetProjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetProjectOutcomeCallable getProjectCallable(const Model::GetProjectRequest& request) const; + DeleteUnionCasServiceOutcome deleteUnionCasService(const Model::DeleteUnionCasServiceRequest &request)const; + void deleteUnionCasServiceAsync(const Model::DeleteUnionCasServiceRequest& request, const DeleteUnionCasServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteUnionCasServiceOutcomeCallable deleteUnionCasServiceCallable(const Model::DeleteUnionCasServiceRequest& request) const; + CheckServiceExistOutcome checkServiceExist(const Model::CheckServiceExistRequest &request)const; + void checkServiceExistAsync(const Model::CheckServiceExistRequest& request, const CheckServiceExistAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CheckServiceExistOutcomeCallable checkServiceExistCallable(const Model::CheckServiceExistRequest& request) const; + GetInstanceOutcome getInstance(const Model::GetInstanceRequest &request)const; + void getInstanceAsync(const Model::GetInstanceRequest& request, const GetInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetInstanceOutcomeCallable getInstanceCallable(const Model::GetInstanceRequest& request) const; + RenewCredentialsOutcome renewCredentials(const Model::RenewCredentialsRequest &request)const; + void renewCredentialsAsync(const Model::RenewCredentialsRequest& request, const RenewCredentialsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RenewCredentialsOutcomeCallable renewCredentialsCallable(const Model::RenewCredentialsRequest& request) const; + GetOrderOutcome getOrder(const Model::GetOrderRequest &request)const; + void getOrderAsync(const Model::GetOrderRequest& request, const GetOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetOrderOutcomeCallable getOrderCallable(const Model::GetOrderRequest& request) const; + UpdateOrderListOutcome updateOrderList(const Model::UpdateOrderListRequest &request)const; + void updateOrderListAsync(const Model::UpdateOrderListRequest& request, const UpdateOrderListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateOrderListOutcomeCallable updateOrderListCallable(const Model::UpdateOrderListRequest& request) const; + DeleteCredentialsListOutcome deleteCredentialsList(const Model::DeleteCredentialsListRequest &request)const; + void deleteCredentialsListAsync(const Model::DeleteCredentialsListRequest& request, const DeleteCredentialsListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteCredentialsListOutcomeCallable deleteCredentialsListCallable(const Model::DeleteCredentialsListRequest& request) const; + CreateServiceOutcome createService(const Model::CreateServiceRequest &request)const; + void createServiceAsync(const Model::CreateServiceRequest& request, const CreateServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateServiceOutcomeCallable createServiceCallable(const Model::CreateServiceRequest& request) const; + FindCredentialsListOutcome findCredentialsList(const Model::FindCredentialsListRequest &request)const; + void findCredentialsListAsync(const Model::FindCredentialsListRequest& request, const FindCredentialsListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + FindCredentialsListOutcomeCallable findCredentialsListCallable(const Model::FindCredentialsListRequest& request) const; + ApproveOrderListOutcome approveOrderList(const Model::ApproveOrderListRequest &request)const; + void approveOrderListAsync(const Model::ApproveOrderListRequest& request, const ApproveOrderListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ApproveOrderListOutcomeCallable approveOrderListCallable(const Model::ApproveOrderListRequest& request) const; + UpdateServiceOutcome updateService(const Model::UpdateServiceRequest &request)const; + void updateServiceAsync(const Model::UpdateServiceRequest& request, const UpdateServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateServiceOutcomeCallable updateServiceCallable(const Model::UpdateServiceRequest& request) const; + DeleteProjectOutcome deleteProject(const Model::DeleteProjectRequest &request)const; + void deleteProjectAsync(const Model::DeleteProjectRequest& request, const DeleteProjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteProjectOutcomeCallable deleteProjectCallable(const Model::DeleteProjectRequest& request) const; + UpdateProjectOutcome updateProject(const Model::UpdateProjectRequest &request)const; + void updateProjectAsync(const Model::UpdateProjectRequest& request, const UpdateProjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateProjectOutcomeCallable updateProjectCallable(const Model::UpdateProjectRequest& request) const; + FindOrderableListOutcome findOrderableList(const Model::FindOrderableListRequest &request)const; + void findOrderableListAsync(const Model::FindOrderableListRequest& request, const FindOrderableListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + FindOrderableListOutcomeCallable findOrderableListCallable(const Model::FindOrderableListRequest& request) const; + FindProjectListOutcome findProjectList(const Model::FindProjectListRequest &request)const; + void findProjectListAsync(const Model::FindProjectListRequest& request, const FindProjectListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + FindProjectListOutcomeCallable findProjectListCallable(const Model::FindProjectListRequest& request) const; + FindApprovalOrderListOutcome findApprovalOrderList(const Model::FindApprovalOrderListRequest &request)const; + void findApprovalOrderListAsync(const Model::FindApprovalOrderListRequest& request, const FindApprovalOrderListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + FindApprovalOrderListOutcomeCallable findApprovalOrderListCallable(const Model::FindApprovalOrderListRequest& request) const; + UpdateServiceQPSOutcome updateServiceQPS(const Model::UpdateServiceQPSRequest &request)const; + void updateServiceQPSAsync(const Model::UpdateServiceQPSRequest& request, const UpdateServiceQPSAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateServiceQPSOutcomeCallable updateServiceQPSCallable(const Model::UpdateServiceQPSRequest& request) const; + UpdateOrderOutcome updateOrder(const Model::UpdateOrderRequest &request)const; + void updateOrderAsync(const Model::UpdateOrderRequest& request, const UpdateOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateOrderOutcomeCallable updateOrderCallable(const Model::UpdateOrderRequest& request) const; + FindApproveServiceListOutcome findApproveServiceList(const Model::FindApproveServiceListRequest &request)const; + void findApproveServiceListAsync(const Model::FindApproveServiceListRequest& request, const FindApproveServiceListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + FindApproveServiceListOutcomeCallable findApproveServiceListCallable(const Model::FindApproveServiceListRequest& request) const; + GetServiceOutcome getService(const Model::GetServiceRequest &request)const; + void getServiceAsync(const Model::GetServiceRequest& request, const GetServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetServiceOutcomeCallable getServiceCallable(const Model::GetServiceRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_CSB_CSBCLIENT_H_ diff --git a/csb/include/alibabacloud/csb/CSBExport.h b/csb/include/alibabacloud/csb/CSBExport.h new file mode 100644 index 000000000..37171a9f3 --- /dev/null +++ b/csb/include/alibabacloud/csb/CSBExport.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_CSB_CSBEXPORT_H_ +#define ALIBABACLOUD_CSB_CSBEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_CSB_LIBRARY) +# define ALIBABACLOUD_CSB_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_CSB_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_CSB_EXPORT +#endif + +#endif // !ALIBABACLOUD_CSB_CSBEXPORT_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/ApproveOrderListRequest.h b/csb/include/alibabacloud/csb/model/ApproveOrderListRequest.h new file mode 100644 index 000000000..149db2f73 --- /dev/null +++ b/csb/include/alibabacloud/csb/model/ApproveOrderListRequest.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_CSB_MODEL_APPROVEORDERLISTREQUEST_H_ +#define ALIBABACLOUD_CSB_MODEL_APPROVEORDERLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT ApproveOrderListRequest : public RpcServiceRequest + { + + public: + ApproveOrderListRequest(); + ~ApproveOrderListRequest(); + + std::string getData()const; + void setData(const std::string& data); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + private: + std::string data_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_APPROVEORDERLISTREQUEST_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/ApproveOrderListResult.h b/csb/include/alibabacloud/csb/model/ApproveOrderListResult.h new file mode 100644 index 000000000..6d8ff899b --- /dev/null +++ b/csb/include/alibabacloud/csb/model/ApproveOrderListResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_CSB_MODEL_APPROVEORDERLISTRESULT_H_ +#define ALIBABACLOUD_CSB_MODEL_APPROVEORDERLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT ApproveOrderListResult : public ServiceResult + { + public: + + + ApproveOrderListResult(); + explicit ApproveOrderListResult(const std::string &payload); + ~ApproveOrderListResult(); + std::string getMessage()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_APPROVEORDERLISTRESULT_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/CheckServiceExistRequest.h b/csb/include/alibabacloud/csb/model/CheckServiceExistRequest.h new file mode 100644 index 000000000..c304139dc --- /dev/null +++ b/csb/include/alibabacloud/csb/model/CheckServiceExistRequest.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_CSB_MODEL_CHECKSERVICEEXISTREQUEST_H_ +#define ALIBABACLOUD_CSB_MODEL_CHECKSERVICEEXISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT CheckServiceExistRequest : public RpcServiceRequest + { + + public: + CheckServiceExistRequest(); + ~CheckServiceExistRequest(); + + long getCsbId()const; + void setCsbId(long csbId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getServiceName()const; + void setServiceName(const std::string& serviceName); + + private: + long csbId_; + std::string regionId_; + std::string serviceName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_CHECKSERVICEEXISTREQUEST_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/CheckServiceExistResult.h b/csb/include/alibabacloud/csb/model/CheckServiceExistResult.h new file mode 100644 index 000000000..e5262c63d --- /dev/null +++ b/csb/include/alibabacloud/csb/model/CheckServiceExistResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSB_MODEL_CHECKSERVICEEXISTRESULT_H_ +#define ALIBABACLOUD_CSB_MODEL_CHECKSERVICEEXISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT CheckServiceExistResult : public ServiceResult + { + public: + struct Data + { + bool exist; + }; + + + CheckServiceExistResult(); + explicit CheckServiceExistResult(const std::string &payload); + ~CheckServiceExistResult(); + std::string getMessage()const; + Data getData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_CHECKSERVICEEXISTRESULT_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/CommitSuccessedServicesRequest.h b/csb/include/alibabacloud/csb/model/CommitSuccessedServicesRequest.h new file mode 100644 index 000000000..5f90def19 --- /dev/null +++ b/csb/include/alibabacloud/csb/model/CommitSuccessedServicesRequest.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_CSB_MODEL_COMMITSUCCESSEDSERVICESREQUEST_H_ +#define ALIBABACLOUD_CSB_MODEL_COMMITSUCCESSEDSERVICESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT CommitSuccessedServicesRequest : public RpcServiceRequest + { + + public: + CommitSuccessedServicesRequest(); + ~CommitSuccessedServicesRequest(); + + std::string getCsbName()const; + void setCsbName(const std::string& csbName); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getServices()const; + void setServices(const std::string& services); + + private: + std::string csbName_; + std::string regionId_; + std::string services_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_COMMITSUCCESSEDSERVICESREQUEST_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/CommitSuccessedServicesResult.h b/csb/include/alibabacloud/csb/model/CommitSuccessedServicesResult.h new file mode 100644 index 000000000..051ad97c9 --- /dev/null +++ b/csb/include/alibabacloud/csb/model/CommitSuccessedServicesResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_CSB_MODEL_COMMITSUCCESSEDSERVICESRESULT_H_ +#define ALIBABACLOUD_CSB_MODEL_COMMITSUCCESSEDSERVICESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT CommitSuccessedServicesResult : public ServiceResult + { + public: + + + CommitSuccessedServicesResult(); + explicit CommitSuccessedServicesResult(const std::string &payload); + ~CommitSuccessedServicesResult(); + std::string getMessage()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_COMMITSUCCESSEDSERVICESRESULT_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/CreateCredentialsRequest.h b/csb/include/alibabacloud/csb/model/CreateCredentialsRequest.h new file mode 100644 index 000000000..e39530576 --- /dev/null +++ b/csb/include/alibabacloud/csb/model/CreateCredentialsRequest.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_CSB_MODEL_CREATECREDENTIALSREQUEST_H_ +#define ALIBABACLOUD_CSB_MODEL_CREATECREDENTIALSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT CreateCredentialsRequest : public RpcServiceRequest + { + + public: + CreateCredentialsRequest(); + ~CreateCredentialsRequest(); + + std::string getData()const; + void setData(const std::string& data); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + long getCsbId()const; + void setCsbId(long csbId); + + private: + std::string data_; + std::string regionId_; + long csbId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_CREATECREDENTIALSREQUEST_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/CreateCredentialsResult.h b/csb/include/alibabacloud/csb/model/CreateCredentialsResult.h new file mode 100644 index 000000000..5b714407c --- /dev/null +++ b/csb/include/alibabacloud/csb/model/CreateCredentialsResult.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSB_MODEL_CREATECREDENTIALSRESULT_H_ +#define ALIBABACLOUD_CSB_MODEL_CREATECREDENTIALSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT CreateCredentialsResult : public ServiceResult + { + public: + struct Data + { + struct Credentials + { + struct CurrentCredential + { + std::string secretKey; + std::string accessKey; + }; + CurrentCredential currentCredential; + long id; + }; + Credentials credentials; + }; + + + CreateCredentialsResult(); + explicit CreateCredentialsResult(const std::string &payload); + ~CreateCredentialsResult(); + std::string getMessage()const; + Data getData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_CREATECREDENTIALSRESULT_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/CreateOrderRequest.h b/csb/include/alibabacloud/csb/model/CreateOrderRequest.h new file mode 100644 index 000000000..d5d242e8f --- /dev/null +++ b/csb/include/alibabacloud/csb/model/CreateOrderRequest.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_CSB_MODEL_CREATEORDERREQUEST_H_ +#define ALIBABACLOUD_CSB_MODEL_CREATEORDERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT CreateOrderRequest : public RpcServiceRequest + { + + public: + CreateOrderRequest(); + ~CreateOrderRequest(); + + std::string getData()const; + void setData(const std::string& data); + long getCsbId()const; + void setCsbId(long csbId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + private: + std::string data_; + long csbId_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_CREATEORDERREQUEST_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/CreateOrderResult.h b/csb/include/alibabacloud/csb/model/CreateOrderResult.h new file mode 100644 index 000000000..121473490 --- /dev/null +++ b/csb/include/alibabacloud/csb/model/CreateOrderResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSB_MODEL_CREATEORDERRESULT_H_ +#define ALIBABACLOUD_CSB_MODEL_CREATEORDERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT CreateOrderResult : public ServiceResult + { + public: + struct Data + { + long id; + }; + + + CreateOrderResult(); + explicit CreateOrderResult(const std::string &payload); + ~CreateOrderResult(); + std::string getMessage()const; + Data getData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_CREATEORDERRESULT_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/CreateProjectRequest.h b/csb/include/alibabacloud/csb/model/CreateProjectRequest.h new file mode 100644 index 000000000..d3f793306 --- /dev/null +++ b/csb/include/alibabacloud/csb/model/CreateProjectRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSB_MODEL_CREATEPROJECTREQUEST_H_ +#define ALIBABACLOUD_CSB_MODEL_CREATEPROJECTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT CreateProjectRequest : public RpcServiceRequest + { + + public: + CreateProjectRequest(); + ~CreateProjectRequest(); + + std::string getData()const; + void setData(const std::string& data); + long getCsbId()const; + void setCsbId(long csbId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + private: + std::string data_; + long csbId_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_CREATEPROJECTREQUEST_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/CreateProjectResult.h b/csb/include/alibabacloud/csb/model/CreateProjectResult.h new file mode 100644 index 000000000..4cde8e306 --- /dev/null +++ b/csb/include/alibabacloud/csb/model/CreateProjectResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSB_MODEL_CREATEPROJECTRESULT_H_ +#define ALIBABACLOUD_CSB_MODEL_CREATEPROJECTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT CreateProjectResult : public ServiceResult + { + public: + struct Data + { + long id; + }; + + + CreateProjectResult(); + explicit CreateProjectResult(const std::string &payload); + ~CreateProjectResult(); + std::string getMessage()const; + Data getData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_CREATEPROJECTRESULT_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/CreateServiceRequest.h b/csb/include/alibabacloud/csb/model/CreateServiceRequest.h new file mode 100644 index 000000000..9b1c072fa --- /dev/null +++ b/csb/include/alibabacloud/csb/model/CreateServiceRequest.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_CSB_MODEL_CREATESERVICEREQUEST_H_ +#define ALIBABACLOUD_CSB_MODEL_CREATESERVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT CreateServiceRequest : public RpcServiceRequest + { + + public: + CreateServiceRequest(); + ~CreateServiceRequest(); + + std::string getData()const; + void setData(const std::string& data); + long getCsbId()const; + void setCsbId(long csbId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + private: + std::string data_; + long csbId_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_CREATESERVICEREQUEST_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/CreateServiceResult.h b/csb/include/alibabacloud/csb/model/CreateServiceResult.h new file mode 100644 index 000000000..920c41870 --- /dev/null +++ b/csb/include/alibabacloud/csb/model/CreateServiceResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSB_MODEL_CREATESERVICERESULT_H_ +#define ALIBABACLOUD_CSB_MODEL_CREATESERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT CreateServiceResult : public ServiceResult + { + public: + struct Data + { + long id; + }; + + + CreateServiceResult(); + explicit CreateServiceResult(const std::string &payload); + ~CreateServiceResult(); + std::string getMessage()const; + Data getData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_CREATESERVICERESULT_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/DeleteCasServiceRequest.h b/csb/include/alibabacloud/csb/model/DeleteCasServiceRequest.h new file mode 100644 index 000000000..bcd703178 --- /dev/null +++ b/csb/include/alibabacloud/csb/model/DeleteCasServiceRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSB_MODEL_DELETECASSERVICEREQUEST_H_ +#define ALIBABACLOUD_CSB_MODEL_DELETECASSERVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT DeleteCasServiceRequest : public RpcServiceRequest + { + + public: + DeleteCasServiceRequest(); + ~DeleteCasServiceRequest(); + + bool getLeafOnly()const; + void setLeafOnly(bool leafOnly); + std::string getCasCsbName()const; + void setCasCsbName(const std::string& casCsbName); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getSrcUserId()const; + void setSrcUserId(const std::string& srcUserId); + std::string getCasServiceId()const; + void setCasServiceId(const std::string& casServiceId); + + private: + bool leafOnly_; + std::string casCsbName_; + std::string regionId_; + std::string srcUserId_; + std::string casServiceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_DELETECASSERVICEREQUEST_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/DeleteCasServiceResult.h b/csb/include/alibabacloud/csb/model/DeleteCasServiceResult.h new file mode 100644 index 000000000..178557bf1 --- /dev/null +++ b/csb/include/alibabacloud/csb/model/DeleteCasServiceResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_CSB_MODEL_DELETECASSERVICERESULT_H_ +#define ALIBABACLOUD_CSB_MODEL_DELETECASSERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT DeleteCasServiceResult : public ServiceResult + { + public: + + + DeleteCasServiceResult(); + explicit DeleteCasServiceResult(const std::string &payload); + ~DeleteCasServiceResult(); + std::string getMessage()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_DELETECASSERVICERESULT_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/DeleteCredentialsListRequest.h b/csb/include/alibabacloud/csb/model/DeleteCredentialsListRequest.h new file mode 100644 index 000000000..c754c6b31 --- /dev/null +++ b/csb/include/alibabacloud/csb/model/DeleteCredentialsListRequest.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_CSB_MODEL_DELETECREDENTIALSLISTREQUEST_H_ +#define ALIBABACLOUD_CSB_MODEL_DELETECREDENTIALSLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT DeleteCredentialsListRequest : public RpcServiceRequest + { + + public: + DeleteCredentialsListRequest(); + ~DeleteCredentialsListRequest(); + + std::string getData()const; + void setData(const std::string& data); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getIgnoreDauth()const; + void setIgnoreDauth(bool ignoreDauth); + bool getForce()const; + void setForce(bool force); + + private: + std::string data_; + std::string regionId_; + bool ignoreDauth_; + bool force_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_DELETECREDENTIALSLISTREQUEST_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/DeleteCredentialsListResult.h b/csb/include/alibabacloud/csb/model/DeleteCredentialsListResult.h new file mode 100644 index 000000000..80ff087be --- /dev/null +++ b/csb/include/alibabacloud/csb/model/DeleteCredentialsListResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_CSB_MODEL_DELETECREDENTIALSLISTRESULT_H_ +#define ALIBABACLOUD_CSB_MODEL_DELETECREDENTIALSLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT DeleteCredentialsListResult : public ServiceResult + { + public: + + + DeleteCredentialsListResult(); + explicit DeleteCredentialsListResult(const std::string &payload); + ~DeleteCredentialsListResult(); + std::string getMessage()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_DELETECREDENTIALSLISTRESULT_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/DeleteOrderListRequest.h b/csb/include/alibabacloud/csb/model/DeleteOrderListRequest.h new file mode 100644 index 000000000..d5635dd6e --- /dev/null +++ b/csb/include/alibabacloud/csb/model/DeleteOrderListRequest.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_CSB_MODEL_DELETEORDERLISTREQUEST_H_ +#define ALIBABACLOUD_CSB_MODEL_DELETEORDERLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT DeleteOrderListRequest : public RpcServiceRequest + { + + public: + DeleteOrderListRequest(); + ~DeleteOrderListRequest(); + + std::string getData()const; + void setData(const std::string& data); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + private: + std::string data_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_DELETEORDERLISTREQUEST_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/DeleteOrderListResult.h b/csb/include/alibabacloud/csb/model/DeleteOrderListResult.h new file mode 100644 index 000000000..4b3522aca --- /dev/null +++ b/csb/include/alibabacloud/csb/model/DeleteOrderListResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_CSB_MODEL_DELETEORDERLISTRESULT_H_ +#define ALIBABACLOUD_CSB_MODEL_DELETEORDERLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT DeleteOrderListResult : public ServiceResult + { + public: + + + DeleteOrderListResult(); + explicit DeleteOrderListResult(const std::string &payload); + ~DeleteOrderListResult(); + std::string getMessage()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_DELETEORDERLISTRESULT_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/DeleteProjectListRequest.h b/csb/include/alibabacloud/csb/model/DeleteProjectListRequest.h new file mode 100644 index 000000000..af3cbfbc5 --- /dev/null +++ b/csb/include/alibabacloud/csb/model/DeleteProjectListRequest.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_CSB_MODEL_DELETEPROJECTLISTREQUEST_H_ +#define ALIBABACLOUD_CSB_MODEL_DELETEPROJECTLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT DeleteProjectListRequest : public RpcServiceRequest + { + + public: + DeleteProjectListRequest(); + ~DeleteProjectListRequest(); + + std::string getData()const; + void setData(const std::string& data); + long getCsbId()const; + void setCsbId(long csbId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + private: + std::string data_; + long csbId_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_DELETEPROJECTLISTREQUEST_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/DeleteProjectListResult.h b/csb/include/alibabacloud/csb/model/DeleteProjectListResult.h new file mode 100644 index 000000000..ded5f0790 --- /dev/null +++ b/csb/include/alibabacloud/csb/model/DeleteProjectListResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_CSB_MODEL_DELETEPROJECTLISTRESULT_H_ +#define ALIBABACLOUD_CSB_MODEL_DELETEPROJECTLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT DeleteProjectListResult : public ServiceResult + { + public: + + + DeleteProjectListResult(); + explicit DeleteProjectListResult(const std::string &payload); + ~DeleteProjectListResult(); + std::string getMessage()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_DELETEPROJECTLISTRESULT_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/DeleteProjectRequest.h b/csb/include/alibabacloud/csb/model/DeleteProjectRequest.h new file mode 100644 index 000000000..e9273da19 --- /dev/null +++ b/csb/include/alibabacloud/csb/model/DeleteProjectRequest.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_CSB_MODEL_DELETEPROJECTREQUEST_H_ +#define ALIBABACLOUD_CSB_MODEL_DELETEPROJECTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT DeleteProjectRequest : public RpcServiceRequest + { + + public: + DeleteProjectRequest(); + ~DeleteProjectRequest(); + + long getCsbId()const; + void setCsbId(long csbId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + long getProjectId()const; + void setProjectId(long projectId); + + private: + long csbId_; + std::string regionId_; + long projectId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_DELETEPROJECTREQUEST_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/DeleteProjectResult.h b/csb/include/alibabacloud/csb/model/DeleteProjectResult.h new file mode 100644 index 000000000..3ad227a30 --- /dev/null +++ b/csb/include/alibabacloud/csb/model/DeleteProjectResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_CSB_MODEL_DELETEPROJECTRESULT_H_ +#define ALIBABACLOUD_CSB_MODEL_DELETEPROJECTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT DeleteProjectResult : public ServiceResult + { + public: + + + DeleteProjectResult(); + explicit DeleteProjectResult(const std::string &payload); + ~DeleteProjectResult(); + std::string getMessage()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_DELETEPROJECTRESULT_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/DeleteServiceListRequest.h b/csb/include/alibabacloud/csb/model/DeleteServiceListRequest.h new file mode 100644 index 000000000..1c53d719a --- /dev/null +++ b/csb/include/alibabacloud/csb/model/DeleteServiceListRequest.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_CSB_MODEL_DELETESERVICELISTREQUEST_H_ +#define ALIBABACLOUD_CSB_MODEL_DELETESERVICELISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT DeleteServiceListRequest : public RpcServiceRequest + { + + public: + DeleteServiceListRequest(); + ~DeleteServiceListRequest(); + + std::string getData()const; + void setData(const std::string& data); + long getCsbId()const; + void setCsbId(long csbId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + private: + std::string data_; + long csbId_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_DELETESERVICELISTREQUEST_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/DeleteServiceListResult.h b/csb/include/alibabacloud/csb/model/DeleteServiceListResult.h new file mode 100644 index 000000000..1a21505d2 --- /dev/null +++ b/csb/include/alibabacloud/csb/model/DeleteServiceListResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_CSB_MODEL_DELETESERVICELISTRESULT_H_ +#define ALIBABACLOUD_CSB_MODEL_DELETESERVICELISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT DeleteServiceListResult : public ServiceResult + { + public: + + + DeleteServiceListResult(); + explicit DeleteServiceListResult(const std::string &payload); + ~DeleteServiceListResult(); + std::string getMessage()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_DELETESERVICELISTRESULT_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/DeleteServiceRequest.h b/csb/include/alibabacloud/csb/model/DeleteServiceRequest.h new file mode 100644 index 000000000..308abc147 --- /dev/null +++ b/csb/include/alibabacloud/csb/model/DeleteServiceRequest.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_CSB_MODEL_DELETESERVICEREQUEST_H_ +#define ALIBABACLOUD_CSB_MODEL_DELETESERVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT DeleteServiceRequest : public RpcServiceRequest + { + + public: + DeleteServiceRequest(); + ~DeleteServiceRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getServiceName()const; + void setServiceName(const std::string& serviceName); + long getServiceId()const; + void setServiceId(long serviceId); + + private: + std::string regionId_; + std::string serviceName_; + long serviceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_DELETESERVICEREQUEST_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/DeleteServiceResult.h b/csb/include/alibabacloud/csb/model/DeleteServiceResult.h new file mode 100644 index 000000000..4597f55b6 --- /dev/null +++ b/csb/include/alibabacloud/csb/model/DeleteServiceResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_CSB_MODEL_DELETESERVICERESULT_H_ +#define ALIBABACLOUD_CSB_MODEL_DELETESERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT DeleteServiceResult : public ServiceResult + { + public: + + + DeleteServiceResult(); + explicit DeleteServiceResult(const std::string &payload); + ~DeleteServiceResult(); + std::string getMessage()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_DELETESERVICERESULT_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/DeleteUnionCasServiceRequest.h b/csb/include/alibabacloud/csb/model/DeleteUnionCasServiceRequest.h new file mode 100644 index 000000000..7d071cd5c --- /dev/null +++ b/csb/include/alibabacloud/csb/model/DeleteUnionCasServiceRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSB_MODEL_DELETEUNIONCASSERVICEREQUEST_H_ +#define ALIBABACLOUD_CSB_MODEL_DELETEUNIONCASSERVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT DeleteUnionCasServiceRequest : public RpcServiceRequest + { + + public: + DeleteUnionCasServiceRequest(); + ~DeleteUnionCasServiceRequest(); + + bool getLeafOnly()const; + void setLeafOnly(bool leafOnly); + std::string getCasCsbName()const; + void setCasCsbName(const std::string& casCsbName); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getSrcUserId()const; + void setSrcUserId(const std::string& srcUserId); + std::string getCasServiceId()const; + void setCasServiceId(const std::string& casServiceId); + + private: + bool leafOnly_; + std::string casCsbName_; + std::string regionId_; + std::string srcUserId_; + std::string casServiceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_DELETEUNIONCASSERVICEREQUEST_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/DeleteUnionCasServiceResult.h b/csb/include/alibabacloud/csb/model/DeleteUnionCasServiceResult.h new file mode 100644 index 000000000..0d67efc20 --- /dev/null +++ b/csb/include/alibabacloud/csb/model/DeleteUnionCasServiceResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_CSB_MODEL_DELETEUNIONCASSERVICERESULT_H_ +#define ALIBABACLOUD_CSB_MODEL_DELETEUNIONCASSERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT DeleteUnionCasServiceResult : public ServiceResult + { + public: + + + DeleteUnionCasServiceResult(); + explicit DeleteUnionCasServiceResult(const std::string &payload); + ~DeleteUnionCasServiceResult(); + std::string getMessage()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_DELETEUNIONCASSERVICERESULT_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/FindApprovalOrderListRequest.h b/csb/include/alibabacloud/csb/model/FindApprovalOrderListRequest.h new file mode 100644 index 000000000..28777b9ef --- /dev/null +++ b/csb/include/alibabacloud/csb/model/FindApprovalOrderListRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSB_MODEL_FINDAPPROVALORDERLISTREQUEST_H_ +#define ALIBABACLOUD_CSB_MODEL_FINDAPPROVALORDERLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT FindApprovalOrderListRequest : public RpcServiceRequest + { + + public: + FindApprovalOrderListRequest(); + ~FindApprovalOrderListRequest(); + + std::string getProjectName()const; + void setProjectName(const std::string& projectName); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getAlias()const; + void setAlias(const std::string& alias); + std::string getServiceName()const; + void setServiceName(const std::string& serviceName); + int getPageNum()const; + void setPageNum(int pageNum); + long getServiceId()const; + void setServiceId(long serviceId); + bool getOnlyPending()const; + void setOnlyPending(bool onlyPending); + + private: + std::string projectName_; + std::string regionId_; + std::string alias_; + std::string serviceName_; + int pageNum_; + long serviceId_; + bool onlyPending_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_FINDAPPROVALORDERLISTREQUEST_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/FindApprovalOrderListResult.h b/csb/include/alibabacloud/csb/model/FindApprovalOrderListResult.h new file mode 100644 index 000000000..ec2d3e6f0 --- /dev/null +++ b/csb/include/alibabacloud/csb/model/FindApprovalOrderListResult.h @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSB_MODEL_FINDAPPROVALORDERLISTRESULT_H_ +#define ALIBABACLOUD_CSB_MODEL_FINDAPPROVALORDERLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT FindApprovalOrderListResult : public ServiceResult + { + public: + struct Data + { + struct Order + { + struct SlaInfo + { + int qps; + int qph; + }; + struct Total + { + int total; + int errorNum; + }; + std::string groupName; + int status; + std::string statisticName; + std::string userName; + long credentialGroupId; + std::string projectName; + long csbId; + long gmtModified; + long serviceId; + long gmtCreate; + std::string serviceName; + std::string alias; + int serviceStatus; + std::string userId; + Total total; + std::string serviceVersion; + std::string strictWhiteListJson; + long id; + SlaInfo slaInfo; + }; + int currentPage; + int pageNumber; + std::vector orderList; + }; + + + FindApprovalOrderListResult(); + explicit FindApprovalOrderListResult(const std::string &payload); + ~FindApprovalOrderListResult(); + std::string getMessage()const; + Data getData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_FINDAPPROVALORDERLISTRESULT_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/FindApproveServiceListRequest.h b/csb/include/alibabacloud/csb/model/FindApproveServiceListRequest.h new file mode 100644 index 000000000..2303be457 --- /dev/null +++ b/csb/include/alibabacloud/csb/model/FindApproveServiceListRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSB_MODEL_FINDAPPROVESERVICELISTREQUEST_H_ +#define ALIBABACLOUD_CSB_MODEL_FINDAPPROVESERVICELISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT FindApproveServiceListRequest : public RpcServiceRequest + { + + public: + FindApproveServiceListRequest(); + ~FindApproveServiceListRequest(); + + std::string getProjectName()const; + void setProjectName(const std::string& projectName); + std::string getApproveLevel()const; + void setApproveLevel(const std::string& approveLevel); + bool getShowDelService()const; + void setShowDelService(bool showDelService); + long getCsbId()const; + void setCsbId(long csbId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getAlias()const; + void setAlias(const std::string& alias); + std::string getServiceName()const; + void setServiceName(const std::string& serviceName); + + private: + std::string projectName_; + std::string approveLevel_; + bool showDelService_; + long csbId_; + std::string regionId_; + std::string alias_; + std::string serviceName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_FINDAPPROVESERVICELISTREQUEST_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/FindApproveServiceListResult.h b/csb/include/alibabacloud/csb/model/FindApproveServiceListResult.h new file mode 100644 index 000000000..a2ebb33d9 --- /dev/null +++ b/csb/include/alibabacloud/csb/model/FindApproveServiceListResult.h @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSB_MODEL_FINDAPPROVESERVICELISTRESULT_H_ +#define ALIBABACLOUD_CSB_MODEL_FINDAPPROVESERVICELISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT FindApproveServiceListResult : public ServiceResult + { + public: + struct Data + { + struct Service + { + int status; + std::string statisticName; + std::string projectName; + long createTime; + long csbId; + long projectId; + std::string principalName; + long modifiedTime; + std::string ownerId; + std::string scope; + bool allVisiable; + int qps; + std::string serviceName; + bool skipAuth; + std::string userId; + std::string serviceVersion; + std::string interfaceName; + std::string casTargets; + long id; + }; + int pageNumber; + int currentPage; + std::vector serviceList; + int total; + }; + + + FindApproveServiceListResult(); + explicit FindApproveServiceListResult(const std::string &payload); + ~FindApproveServiceListResult(); + std::string getMessage()const; + Data getData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_FINDAPPROVESERVICELISTRESULT_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/FindCredentialsListRequest.h b/csb/include/alibabacloud/csb/model/FindCredentialsListRequest.h new file mode 100644 index 000000000..e34045aca --- /dev/null +++ b/csb/include/alibabacloud/csb/model/FindCredentialsListRequest.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_CSB_MODEL_FINDCREDENTIALSLISTREQUEST_H_ +#define ALIBABACLOUD_CSB_MODEL_FINDCREDENTIALSLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT FindCredentialsListRequest : public RpcServiceRequest + { + + public: + FindCredentialsListRequest(); + ~FindCredentialsListRequest(); + + long getCsbId()const; + void setCsbId(long csbId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getPageNum()const; + void setPageNum(int pageNum); + std::string getGroupName()const; + void setGroupName(const std::string& groupName); + + private: + long csbId_; + std::string regionId_; + int pageNum_; + std::string groupName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_FINDCREDENTIALSLISTREQUEST_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/FindCredentialsListResult.h b/csb/include/alibabacloud/csb/model/FindCredentialsListResult.h new file mode 100644 index 000000000..fe03f2d04 --- /dev/null +++ b/csb/include/alibabacloud/csb/model/FindCredentialsListResult.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_CSB_MODEL_FINDCREDENTIALSLISTRESULT_H_ +#define ALIBABACLOUD_CSB_MODEL_FINDCREDENTIALSLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT FindCredentialsListResult : public ServiceResult + { + public: + struct Data + { + struct Credential + { + struct CurrentCredential + { + std::string secretKey; + std::string accessKey; + }; + struct NewCredential + { + std::string secretKey; + std::string accessKey; + }; + NewCredential newCredential; + long gmtCreate; + std::string ownerAttr; + CurrentCredential currentCredential; + std::string userId; + long id; + std::string name; + }; + std::vector credentialList; + int currentPage; + int pageNumber; + }; + + + FindCredentialsListResult(); + explicit FindCredentialsListResult(const std::string &payload); + ~FindCredentialsListResult(); + std::string getMessage()const; + Data getData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_FINDCREDENTIALSLISTRESULT_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/FindInstanceListRequest.h b/csb/include/alibabacloud/csb/model/FindInstanceListRequest.h new file mode 100644 index 000000000..2969b0bd0 --- /dev/null +++ b/csb/include/alibabacloud/csb/model/FindInstanceListRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSB_MODEL_FINDINSTANCELISTREQUEST_H_ +#define ALIBABACLOUD_CSB_MODEL_FINDINSTANCELISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT FindInstanceListRequest : public RpcServiceRequest + { + + public: + FindInstanceListRequest(); + ~FindInstanceListRequest(); + + std::string getSearchTxt()const; + void setSearchTxt(const std::string& searchTxt); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + long getCsbId()const; + void setCsbId(long csbId); + int getPageNum()const; + void setPageNum(int pageNum); + int getStatus()const; + void setStatus(int status); + + private: + std::string searchTxt_; + std::string regionId_; + long csbId_; + int pageNum_; + int status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_FINDINSTANCELISTREQUEST_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/FindInstanceListResult.h b/csb/include/alibabacloud/csb/model/FindInstanceListResult.h new file mode 100644 index 000000000..59bfc8cfc --- /dev/null +++ b/csb/include/alibabacloud/csb/model/FindInstanceListResult.h @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSB_MODEL_FINDINSTANCELISTRESULT_H_ +#define ALIBABACLOUD_CSB_MODEL_FINDINSTANCELISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT FindInstanceListResult : public ServiceResult + { + public: + struct Data + { + struct Item + { + long gmtCreate; + std::string description; + long gmtModified; + bool visible; + std::string vpcName; + std::string frontStatus; + long id; + int instanceCategory; + int statusCode; + std::string name; + }; + int currentPage; + int pageNumber; + std::vector itemList; + }; + + + FindInstanceListResult(); + explicit FindInstanceListResult(const std::string &payload); + ~FindInstanceListResult(); + std::string getMessage()const; + Data getData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_FINDINSTANCELISTRESULT_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/FindOrderableListRequest.h b/csb/include/alibabacloud/csb/model/FindOrderableListRequest.h new file mode 100644 index 000000000..94626bcb3 --- /dev/null +++ b/csb/include/alibabacloud/csb/model/FindOrderableListRequest.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_CSB_MODEL_FINDORDERABLELISTREQUEST_H_ +#define ALIBABACLOUD_CSB_MODEL_FINDORDERABLELISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT FindOrderableListRequest : public RpcServiceRequest + { + + public: + FindOrderableListRequest(); + ~FindOrderableListRequest(); + + std::string getProjectName()const; + void setProjectName(const std::string& projectName); + long getCsbId()const; + void setCsbId(long csbId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getAlias()const; + void setAlias(const std::string& alias); + std::string getServiceName()const; + void setServiceName(const std::string& serviceName); + int getPageNum()const; + void setPageNum(int pageNum); + + private: + std::string projectName_; + long csbId_; + std::string regionId_; + std::string alias_; + std::string serviceName_; + int pageNum_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_FINDORDERABLELISTREQUEST_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/FindOrderableListResult.h b/csb/include/alibabacloud/csb/model/FindOrderableListResult.h new file mode 100644 index 000000000..5742c7a5d --- /dev/null +++ b/csb/include/alibabacloud/csb/model/FindOrderableListResult.h @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSB_MODEL_FINDORDERABLELISTRESULT_H_ +#define ALIBABACLOUD_CSB_MODEL_FINDORDERABLELISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT FindOrderableListResult : public ServiceResult + { + public: + struct Data + { + struct Service + { + int status; + std::string statisticName; + std::string projectName; + long createTime; + std::string approveUserId; + long csbId; + std::string projectId; + std::string principalName; + long modifiedTime; + std::string ownerId; + std::string scope; + bool allVisiable; + std::string serviceName; + bool skipAuth; + std::string alias; + std::string userId; + std::string serviceVersion; + std::string interfaceName; + std::string casTargets; + long id; + }; + int currentPage; + int pageNumber; + std::vector serviceList; + }; + + + FindOrderableListResult(); + explicit FindOrderableListResult(const std::string &payload); + ~FindOrderableListResult(); + std::string getMessage()const; + Data getData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_FINDORDERABLELISTRESULT_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/FindOrderedListRequest.h b/csb/include/alibabacloud/csb/model/FindOrderedListRequest.h new file mode 100644 index 000000000..b759355b6 --- /dev/null +++ b/csb/include/alibabacloud/csb/model/FindOrderedListRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSB_MODEL_FINDORDEREDLISTREQUEST_H_ +#define ALIBABACLOUD_CSB_MODEL_FINDORDEREDLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT FindOrderedListRequest : public RpcServiceRequest + { + + public: + FindOrderedListRequest(); + ~FindOrderedListRequest(); + + std::string getProjectName()const; + void setProjectName(const std::string& projectName); + bool getShowDelOrder()const; + void setShowDelOrder(bool showDelOrder); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + long getCsbId()const; + void setCsbId(long csbId); + std::string getAlias()const; + void setAlias(const std::string& alias); + std::string getServiceName()const; + void setServiceName(const std::string& serviceName); + int getPageNum()const; + void setPageNum(int pageNum); + long getServiceId()const; + void setServiceId(long serviceId); + std::string getStatus()const; + void setStatus(const std::string& status); + + private: + std::string projectName_; + bool showDelOrder_; + std::string regionId_; + long csbId_; + std::string alias_; + std::string serviceName_; + int pageNum_; + long serviceId_; + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_FINDORDEREDLISTREQUEST_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/FindOrderedListResult.h b/csb/include/alibabacloud/csb/model/FindOrderedListResult.h new file mode 100644 index 000000000..12514303b --- /dev/null +++ b/csb/include/alibabacloud/csb/model/FindOrderedListResult.h @@ -0,0 +1,119 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_CSB_MODEL_FINDORDEREDLISTRESULT_H_ +#define ALIBABACLOUD_CSB_MODEL_FINDORDEREDLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT FindOrderedListResult : public ServiceResult + { + public: + struct Data + { + struct Order + { + struct Total + { + int total; + int errorNum; + }; + struct ErrorTypeCatagory + { + long total; + std::string name; + long errorNum; + }; + struct Order1 + { + struct SlaInfo + { + std::string qps; + std::string qph; + }; + struct Total2 + { + int total; + int errorNum; + }; + std::string groupName; + int status; + std::string statisticName; + std::string approveComments; + std::string projectName; + Total2 total2; + long csbId; + long gmtModified; + long serviceId; + long gmtCreate; + std::string serviceName; + std::string alias; + int serviceStatus; + std::string userId; + std::string serviceVersion; + long id; + SlaInfo slaInfo; + }; + std::vector errorTypeCatagoryList; + std::vector orders; + std::string projectName; + int maxRT; + std::string serviceId; + int orderStatus; + int aliveOrderCount; + long gmtCreate; + std::string serviceName; + std::string alias; + int serviceStatus; + Total total; + std::string serviceVersion; + int minRT; + }; + int currentPage; + int pageNumber; + std::vector orderList; + }; + + + FindOrderedListResult(); + explicit FindOrderedListResult(const std::string &payload); + ~FindOrderedListResult(); + std::string getMessage()const; + Data getData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_FINDORDEREDLISTRESULT_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/FindProjectListRequest.h b/csb/include/alibabacloud/csb/model/FindProjectListRequest.h new file mode 100644 index 000000000..ecb071d21 --- /dev/null +++ b/csb/include/alibabacloud/csb/model/FindProjectListRequest.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_CSB_MODEL_FINDPROJECTLISTREQUEST_H_ +#define ALIBABACLOUD_CSB_MODEL_FINDPROJECTLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT FindProjectListRequest : public RpcServiceRequest + { + + public: + FindProjectListRequest(); + ~FindProjectListRequest(); + + std::string getProjectName()const; + void setProjectName(const std::string& projectName); + long getCsbId()const; + void setCsbId(long csbId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getPageNum()const; + void setPageNum(int pageNum); + + private: + std::string projectName_; + long csbId_; + std::string regionId_; + int pageNum_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_FINDPROJECTLISTREQUEST_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/FindProjectListResult.h b/csb/include/alibabacloud/csb/model/FindProjectListResult.h new file mode 100644 index 000000000..5ebeba41c --- /dev/null +++ b/csb/include/alibabacloud/csb/model/FindProjectListResult.h @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSB_MODEL_FINDPROJECTLISTRESULT_H_ +#define ALIBABACLOUD_CSB_MODEL_FINDPROJECTLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT FindProjectListResult : public ServiceResult + { + public: + struct Data + { + struct Project + { + int status; + std::string projectOwnerEmail; + std::string description; + std::string projectName; + std::string projectOwnerName; + std::string projectOwnerPhoneNum; + std::string interfaceJarName; + long csbId; + long gmtModified; + int apiNum; + std::string interfaceJarLocation; + int deleteFlag; + long gmtCreate; + std::string ownerId; + std::string userId; + std::string jarFileKey; + long id; + }; + int currentPage; + int pageNumber; + std::vector projectList; + int total; + }; + + + FindProjectListResult(); + explicit FindProjectListResult(const std::string &payload); + ~FindProjectListResult(); + std::string getMessage()const; + Data getData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_FINDPROJECTLISTRESULT_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/FindProjectsNameListRequest.h b/csb/include/alibabacloud/csb/model/FindProjectsNameListRequest.h new file mode 100644 index 000000000..c0f35fc1f --- /dev/null +++ b/csb/include/alibabacloud/csb/model/FindProjectsNameListRequest.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_CSB_MODEL_FINDPROJECTSNAMELISTREQUEST_H_ +#define ALIBABACLOUD_CSB_MODEL_FINDPROJECTSNAMELISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT FindProjectsNameListRequest : public RpcServiceRequest + { + + public: + FindProjectsNameListRequest(); + ~FindProjectsNameListRequest(); + + std::string getOperationFlag()const; + void setOperationFlag(const std::string& operationFlag); + long getCsbId()const; + void setCsbId(long csbId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + private: + std::string operationFlag_; + long csbId_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_FINDPROJECTSNAMELISTREQUEST_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/FindProjectsNameListResult.h b/csb/include/alibabacloud/csb/model/FindProjectsNameListResult.h new file mode 100644 index 000000000..bb46dfcb8 --- /dev/null +++ b/csb/include/alibabacloud/csb/model/FindProjectsNameListResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSB_MODEL_FINDPROJECTSNAMELISTRESULT_H_ +#define ALIBABACLOUD_CSB_MODEL_FINDPROJECTSNAMELISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT FindProjectsNameListResult : public ServiceResult + { + public: + struct Data + { + std::vector projectNameList; + }; + + + FindProjectsNameListResult(); + explicit FindProjectsNameListResult(const std::string &payload); + ~FindProjectsNameListResult(); + std::string getMessage()const; + Data getData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_FINDPROJECTSNAMELISTRESULT_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/FindServiceListRequest.h b/csb/include/alibabacloud/csb/model/FindServiceListRequest.h new file mode 100644 index 000000000..29045031d --- /dev/null +++ b/csb/include/alibabacloud/csb/model/FindServiceListRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSB_MODEL_FINDSERVICELISTREQUEST_H_ +#define ALIBABACLOUD_CSB_MODEL_FINDSERVICELISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT FindServiceListRequest : public RpcServiceRequest + { + + public: + FindServiceListRequest(); + ~FindServiceListRequest(); + + std::string getProjectName()const; + void setProjectName(const std::string& projectName); + bool getShowDelService()const; + void setShowDelService(bool showDelService); + int getCasShowType()const; + void setCasShowType(int casShowType); + long getCsbId()const; + void setCsbId(long csbId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getAlias()const; + void setAlias(const std::string& alias); + std::string getServiceName()const; + void setServiceName(const std::string& serviceName); + int getPageNum()const; + void setPageNum(int pageNum); + + private: + std::string projectName_; + bool showDelService_; + int casShowType_; + long csbId_; + std::string regionId_; + std::string alias_; + std::string serviceName_; + int pageNum_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_FINDSERVICELISTREQUEST_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/FindServiceListResult.h b/csb/include/alibabacloud/csb/model/FindServiceListResult.h new file mode 100644 index 000000000..33547d854 --- /dev/null +++ b/csb/include/alibabacloud/csb/model/FindServiceListResult.h @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSB_MODEL_FINDSERVICELISTRESULT_H_ +#define ALIBABACLOUD_CSB_MODEL_FINDSERVICELISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT FindServiceListResult : public ServiceResult + { + public: + struct Data + { + struct Service + { + int status; + std::string statisticName; + std::string description; + std::string projectName; + long createTime; + long csbId; + long projectId; + std::string orderInfo; + std::string principalName; + long modifiedTime; + std::string ownerId; + std::string scope; + bool allVisiable; + std::string serviceName; + bool skipAuth; + std::string alias; + std::string userId; + std::string serviceVersion; + std::string interfaceName; + long id; + }; + int currentPage; + int pageNumber; + std::vector serviceList; + int total; + }; + + + FindServiceListResult(); + explicit FindServiceListResult(const std::string &payload); + ~FindServiceListResult(); + std::string getMessage()const; + Data getData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_FINDSERVICELISTRESULT_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/GetInstanceRequest.h b/csb/include/alibabacloud/csb/model/GetInstanceRequest.h new file mode 100644 index 000000000..36cb0eabd --- /dev/null +++ b/csb/include/alibabacloud/csb/model/GetInstanceRequest.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_CSB_MODEL_GETINSTANCEREQUEST_H_ +#define ALIBABACLOUD_CSB_MODEL_GETINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT GetInstanceRequest : public RpcServiceRequest + { + + public: + GetInstanceRequest(); + ~GetInstanceRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + long getCsbId()const; + void setCsbId(long csbId); + + private: + std::string regionId_; + long csbId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_GETINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/GetInstanceResult.h b/csb/include/alibabacloud/csb/model/GetInstanceResult.h new file mode 100644 index 000000000..0ad77d100 --- /dev/null +++ b/csb/include/alibabacloud/csb/model/GetInstanceResult.h @@ -0,0 +1,97 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_CSB_MODEL_GETINSTANCERESULT_H_ +#define ALIBABACLOUD_CSB_MODEL_GETINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT GetInstanceResult : public ServiceResult + { + public: + struct Data + { + struct Instance + { + std::string sentinelCtlStr; + int sentinelGridInterval; + std::string description; + std::string brokerVpcName; + long gmtModified; + bool testable; + int clusterMembers; + int statusCode; + std::string name; + std::string ownerId; + std::string csbAccountId; + int dbStatus; + bool isPublic; + long sentinelCtrl; + bool visible; + long credentialGroup; + int instanceType; + std::string status; + long sentinelQps; + std::string ipList; + long csbId; + std::string brokerVpcId; + std::string clientVpcName; + std::string frontStatus; + int instanceCategory; + long gmtCreate; + bool isImported; + std::string tenantId; + std::string userId; + int apprLevel; + std::string clientVpcId; + std::string vpcName; + long id; + std::string apprUser1; + std::string apprUser2; + }; + Instance instance; + }; + + + GetInstanceResult(); + explicit GetInstanceResult(const std::string &payload); + ~GetInstanceResult(); + std::string getMessage()const; + Data getData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_GETINSTANCERESULT_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/GetOrderRequest.h b/csb/include/alibabacloud/csb/model/GetOrderRequest.h new file mode 100644 index 000000000..a1e4a0906 --- /dev/null +++ b/csb/include/alibabacloud/csb/model/GetOrderRequest.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_CSB_MODEL_GETORDERREQUEST_H_ +#define ALIBABACLOUD_CSB_MODEL_GETORDERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT GetOrderRequest : public RpcServiceRequest + { + + public: + GetOrderRequest(); + ~GetOrderRequest(); + + long getOrderId()const; + void setOrderId(long orderId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getServiceName()const; + void setServiceName(const std::string& serviceName); + + private: + long orderId_; + std::string regionId_; + std::string serviceName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_GETORDERREQUEST_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/GetOrderResult.h b/csb/include/alibabacloud/csb/model/GetOrderResult.h new file mode 100644 index 000000000..10bf965d0 --- /dev/null +++ b/csb/include/alibabacloud/csb/model/GetOrderResult.h @@ -0,0 +1,131 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_CSB_MODEL_GETORDERRESULT_H_ +#define ALIBABACLOUD_CSB_MODEL_GETORDERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT GetOrderResult : public ServiceResult + { + public: + struct Data + { + struct Order + { + struct Service + { + std::string projectName; + std::string ownerId; + std::string consumeTypesJSON; + bool skipAuth; + bool ottFlag; + std::string interfaceName; + int status; + std::string statisticName; + std::string errDefJSON; + long createTime; + long csbId; + std::string projectId; + std::string principalName; + std::string accessParamsJSON; + bool sSL; + bool active; + std::string serviceProviderType; + std::string scope; + bool allVisiable; + std::string serviceName; + std::string alias; + std::string provideType; + long userId; + std::string serviceVersion; + std::string oldVersion; + bool validConsumeTypes; + long id; + bool validProvideType; + }; + struct SlaInfo + { + std::string qps; + std::string qph; + }; + struct Total + { + int total; + int errorNum; + }; + struct ErrorTypeCatagory + { + int total; + int errorNum; + std::string name; + }; + std::vector errorTypeCatagoryList; + std::string groupName; + int status; + std::string statisticName; + long credentialGroupId; + std::string projectName; + long csbId; + long gmtModified; + Service service; + long serviceId; + long gmtCreate; + std::string serviceName; + std::string alias; + int serviceStatus; + std::string userId; + Total total; + std::string serviceVersion; + std::string strictWhiteListJson; + long id; + SlaInfo slaInfo; + std::vector strictWhiteList; + std::string dauthGroupName; + }; + Order order; + }; + + + GetOrderResult(); + explicit GetOrderResult(const std::string &payload); + ~GetOrderResult(); + std::string getMessage()const; + Data getData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_GETORDERRESULT_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/GetProjectRequest.h b/csb/include/alibabacloud/csb/model/GetProjectRequest.h new file mode 100644 index 000000000..e0dbae995 --- /dev/null +++ b/csb/include/alibabacloud/csb/model/GetProjectRequest.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_CSB_MODEL_GETPROJECTREQUEST_H_ +#define ALIBABACLOUD_CSB_MODEL_GETPROJECTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT GetProjectRequest : public RpcServiceRequest + { + + public: + GetProjectRequest(); + ~GetProjectRequest(); + + std::string getProjectName()const; + void setProjectName(const std::string& projectName); + long getCsbId()const; + void setCsbId(long csbId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + private: + std::string projectName_; + long csbId_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_GETPROJECTREQUEST_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/GetProjectResult.h b/csb/include/alibabacloud/csb/model/GetProjectResult.h new file mode 100644 index 000000000..4a6aa96a5 --- /dev/null +++ b/csb/include/alibabacloud/csb/model/GetProjectResult.h @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSB_MODEL_GETPROJECTRESULT_H_ +#define ALIBABACLOUD_CSB_MODEL_GETPROJECTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT GetProjectResult : public ServiceResult + { + public: + struct Data + { + struct Project + { + int status; + std::string projectOwnerEmail; + std::string description; + std::string projectName; + std::string projectOwnerName; + std::string projectOwnerPhoneNum; + std::string interfaceJarName; + long csbId; + long gmtModified; + int apiNum; + std::string interfaceJarLocation; + int deleteFlag; + long gmtCreate; + std::string ownerId; + std::string userId; + std::string jarFileKey; + long id; + }; + std::vector projectList; + }; + + + GetProjectResult(); + explicit GetProjectResult(const std::string &payload); + ~GetProjectResult(); + std::string getMessage()const; + Data getData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_GETPROJECTRESULT_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/GetServiceRequest.h b/csb/include/alibabacloud/csb/model/GetServiceRequest.h new file mode 100644 index 000000000..847173a05 --- /dev/null +++ b/csb/include/alibabacloud/csb/model/GetServiceRequest.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_CSB_MODEL_GETSERVICEREQUEST_H_ +#define ALIBABACLOUD_CSB_MODEL_GETSERVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT GetServiceRequest : public RpcServiceRequest + { + + public: + GetServiceRequest(); + ~GetServiceRequest(); + + long getCsbId()const; + void setCsbId(long csbId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + long getServiceId()const; + void setServiceId(long serviceId); + + private: + long csbId_; + std::string regionId_; + long serviceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_GETSERVICEREQUEST_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/GetServiceResult.h b/csb/include/alibabacloud/csb/model/GetServiceResult.h new file mode 100644 index 000000000..aefc023d1 --- /dev/null +++ b/csb/include/alibabacloud/csb/model/GetServiceResult.h @@ -0,0 +1,199 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_CSB_MODEL_GETSERVICERESULT_H_ +#define ALIBABACLOUD_CSB_MODEL_GETSERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT GetServiceResult : public ServiceResult + { + public: + struct Data + { + struct Service + { + struct RouteConf + { + struct ImportConf + { + struct InputParameter + { + int catType; + bool optional; + int extType; + int mapStyle; + std::string originalName; + std::string targetName; + std::string passMethod; + int depth; + std::string paramType; + }; + struct OutputParameter + { + int catType; + bool optional; + int extType; + int mapStyle; + std::string originalName; + std::string targetName; + std::string passMethod; + int depth; + std::string paramType; + }; + std::vector outputParameterMap; + std::string accessEndpointJSON; + std::string provideType; + std::vector inputParameterMap; + }; + struct ImportConfs + { + struct InputParameter3 + { + int catType; + bool optional; + int extType; + int mapStyle; + std::string originalName; + std::string targetName; + std::string passMethod; + int depth; + std::string paramType; + }; + struct OutputParameter4 + { + int catType; + bool optional; + int extType; + int mapStyle; + std::string originalName; + std::string targetName; + std::string passMethod; + int depth; + std::string paramType; + }; + std::vector outputParameterMap2; + std::string accessEndpointJSON; + std::string provideType; + std::vector inputParameterMap1; + }; + ImportConfs importConfs; + ImportConf importConf; + std::string serviceRouteStrategy; + }; + struct ServiceVersion + { + int status; + std::string statisticName; + bool sSL; + bool active; + std::string scope; + bool allVisiable; + bool skipAuth; + bool ottFlag; + std::string serviceVersion; + std::string oldVersion; + bool validConsumeTypes; + long id; + bool validProvideType; + }; + struct VisiableGroup + { + int status; + long modifiedTime; + std::string userId; + long createTime; + long id; + long groupId; + long serviceId; + }; + std::string ipWhiteStr; + RouteConf routeConf; + std::string projectName; + std::string approveUserId; + std::string serviceOpenRestfulPath; + long modifiedTime; + std::string ownerId; + std::string consumeTypesJSON; + bool skipAuth; + std::vector serviceVersionsList; + bool ottFlag; + std::string interfaceName; + std::string casTargets; + int status; + std::string ipBlackStr; + std::string statisticName; + std::string errDefJSON; + std::string openRestfulPath; + std::string policyHandler; + long createTime; + std::vector visiableGroupList; + long csbId; + long projectId; + std::string principalName; + std::vector consumeTypes; + std::string accessParamsJSON; + bool sSL; + bool active; + std::string serviceProviderType; + std::string scope; + bool allVisiable; + std::string serviceName; + std::string alias; + std::string provideType; + std::string routeConfJson; + std::string userId; + std::string serviceVersion; + std::string oldVersion; + bool validConsumeTypes; + long id; + std::string modelVersion; + bool validProvideType; + std::vector casServTargets; + }; + Service service; + }; + + + GetServiceResult(); + explicit GetServiceResult(const std::string &payload); + ~GetServiceResult(); + std::string getMessage()const; + Data getData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_GETSERVICERESULT_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/PublishCasServiceRequest.h b/csb/include/alibabacloud/csb/model/PublishCasServiceRequest.h new file mode 100644 index 000000000..9e471586c --- /dev/null +++ b/csb/include/alibabacloud/csb/model/PublishCasServiceRequest.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_CSB_MODEL_PUBLISHCASSERVICEREQUEST_H_ +#define ALIBABACLOUD_CSB_MODEL_PUBLISHCASSERVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT PublishCasServiceRequest : public RpcServiceRequest + { + + public: + PublishCasServiceRequest(); + ~PublishCasServiceRequest(); + + std::string getCasCsbName()const; + void setCasCsbName(const std::string& casCsbName); + std::string getData()const; + void setData(const std::string& data); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + private: + std::string casCsbName_; + std::string data_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_PUBLISHCASSERVICEREQUEST_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/PublishCasServiceResult.h b/csb/include/alibabacloud/csb/model/PublishCasServiceResult.h new file mode 100644 index 000000000..39ce69499 --- /dev/null +++ b/csb/include/alibabacloud/csb/model/PublishCasServiceResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_CSB_MODEL_PUBLISHCASSERVICERESULT_H_ +#define ALIBABACLOUD_CSB_MODEL_PUBLISHCASSERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT PublishCasServiceResult : public ServiceResult + { + public: + + + PublishCasServiceResult(); + explicit PublishCasServiceResult(const std::string &payload); + ~PublishCasServiceResult(); + std::string getMessage()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_PUBLISHCASSERVICERESULT_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/PublishUnionCasServiceRequest.h b/csb/include/alibabacloud/csb/model/PublishUnionCasServiceRequest.h new file mode 100644 index 000000000..589fc3915 --- /dev/null +++ b/csb/include/alibabacloud/csb/model/PublishUnionCasServiceRequest.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_CSB_MODEL_PUBLISHUNIONCASSERVICEREQUEST_H_ +#define ALIBABACLOUD_CSB_MODEL_PUBLISHUNIONCASSERVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT PublishUnionCasServiceRequest : public RpcServiceRequest + { + + public: + PublishUnionCasServiceRequest(); + ~PublishUnionCasServiceRequest(); + + std::string getCasCsbName()const; + void setCasCsbName(const std::string& casCsbName); + std::string getData()const; + void setData(const std::string& data); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + private: + std::string casCsbName_; + std::string data_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_PUBLISHUNIONCASSERVICEREQUEST_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/PublishUnionCasServiceResult.h b/csb/include/alibabacloud/csb/model/PublishUnionCasServiceResult.h new file mode 100644 index 000000000..c83768c4c --- /dev/null +++ b/csb/include/alibabacloud/csb/model/PublishUnionCasServiceResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_CSB_MODEL_PUBLISHUNIONCASSERVICERESULT_H_ +#define ALIBABACLOUD_CSB_MODEL_PUBLISHUNIONCASSERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT PublishUnionCasServiceResult : public ServiceResult + { + public: + + + PublishUnionCasServiceResult(); + explicit PublishUnionCasServiceResult(const std::string &payload); + ~PublishUnionCasServiceResult(); + std::string getMessage()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_PUBLISHUNIONCASSERVICERESULT_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/RenewCredentialsRequest.h b/csb/include/alibabacloud/csb/model/RenewCredentialsRequest.h new file mode 100644 index 000000000..a797863f4 --- /dev/null +++ b/csb/include/alibabacloud/csb/model/RenewCredentialsRequest.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_CSB_MODEL_RENEWCREDENTIALSREQUEST_H_ +#define ALIBABACLOUD_CSB_MODEL_RENEWCREDENTIALSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT RenewCredentialsRequest : public RpcServiceRequest + { + + public: + RenewCredentialsRequest(); + ~RenewCredentialsRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + long getCredentialId()const; + void setCredentialId(long credentialId); + + private: + std::string regionId_; + long credentialId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_RENEWCREDENTIALSREQUEST_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/RenewCredentialsResult.h b/csb/include/alibabacloud/csb/model/RenewCredentialsResult.h new file mode 100644 index 000000000..dcfa10464 --- /dev/null +++ b/csb/include/alibabacloud/csb/model/RenewCredentialsResult.h @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSB_MODEL_RENEWCREDENTIALSRESULT_H_ +#define ALIBABACLOUD_CSB_MODEL_RENEWCREDENTIALSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT RenewCredentialsResult : public ServiceResult + { + public: + struct Data + { + struct Credentials + { + struct CurrentCredential + { + std::string secretKey; + std::string accessKey; + }; + struct NewCredential + { + std::string secretKey; + std::string accessKey; + }; + NewCredential newCredential; + long gmtCreate; + CurrentCredential currentCredential; + std::string userId; + long id; + std::string name; + }; + Credentials credentials; + }; + + + RenewCredentialsResult(); + explicit RenewCredentialsResult(const std::string &payload); + ~RenewCredentialsResult(); + std::string getMessage()const; + Data getData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_RENEWCREDENTIALSRESULT_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/ReplaceCredentialRequest.h b/csb/include/alibabacloud/csb/model/ReplaceCredentialRequest.h new file mode 100644 index 000000000..fa35b9921 --- /dev/null +++ b/csb/include/alibabacloud/csb/model/ReplaceCredentialRequest.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_CSB_MODEL_REPLACECREDENTIALREQUEST_H_ +#define ALIBABACLOUD_CSB_MODEL_REPLACECREDENTIALREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT ReplaceCredentialRequest : public RpcServiceRequest + { + + public: + ReplaceCredentialRequest(); + ~ReplaceCredentialRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + long getCredentialId()const; + void setCredentialId(long credentialId); + + private: + std::string regionId_; + long credentialId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_REPLACECREDENTIALREQUEST_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/ReplaceCredentialResult.h b/csb/include/alibabacloud/csb/model/ReplaceCredentialResult.h new file mode 100644 index 000000000..ace1bfe13 --- /dev/null +++ b/csb/include/alibabacloud/csb/model/ReplaceCredentialResult.h @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSB_MODEL_REPLACECREDENTIALRESULT_H_ +#define ALIBABACLOUD_CSB_MODEL_REPLACECREDENTIALRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT ReplaceCredentialResult : public ServiceResult + { + public: + struct Data + { + struct Credentials + { + struct CurrentCredential + { + std::string secretKey; + std::string accessKey; + }; + struct NewCredential + { + std::string secretKey; + std::string accessKey; + }; + NewCredential newCredential; + long gmtCreate; + CurrentCredential currentCredential; + std::string userId; + long id; + std::string name; + }; + Credentials credentials; + }; + + + ReplaceCredentialResult(); + explicit ReplaceCredentialResult(const std::string &payload); + ~ReplaceCredentialResult(); + std::string getMessage()const; + Data getData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_REPLACECREDENTIALRESULT_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/UpdateOrderListRequest.h b/csb/include/alibabacloud/csb/model/UpdateOrderListRequest.h new file mode 100644 index 000000000..c7f8f9ffa --- /dev/null +++ b/csb/include/alibabacloud/csb/model/UpdateOrderListRequest.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_CSB_MODEL_UPDATEORDERLISTREQUEST_H_ +#define ALIBABACLOUD_CSB_MODEL_UPDATEORDERLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT UpdateOrderListRequest : public RpcServiceRequest + { + + public: + UpdateOrderListRequest(); + ~UpdateOrderListRequest(); + + std::string getData()const; + void setData(const std::string& data); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + private: + std::string data_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_UPDATEORDERLISTREQUEST_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/UpdateOrderListResult.h b/csb/include/alibabacloud/csb/model/UpdateOrderListResult.h new file mode 100644 index 000000000..8a3d473c9 --- /dev/null +++ b/csb/include/alibabacloud/csb/model/UpdateOrderListResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSB_MODEL_UPDATEORDERLISTRESULT_H_ +#define ALIBABACLOUD_CSB_MODEL_UPDATEORDERLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT UpdateOrderListResult : public ServiceResult + { + public: + struct Data + { + int updateCount; + }; + + + UpdateOrderListResult(); + explicit UpdateOrderListResult(const std::string &payload); + ~UpdateOrderListResult(); + std::string getMessage()const; + Data getData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_UPDATEORDERLISTRESULT_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/UpdateOrderRequest.h b/csb/include/alibabacloud/csb/model/UpdateOrderRequest.h new file mode 100644 index 000000000..250eedaad --- /dev/null +++ b/csb/include/alibabacloud/csb/model/UpdateOrderRequest.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_CSB_MODEL_UPDATEORDERREQUEST_H_ +#define ALIBABACLOUD_CSB_MODEL_UPDATEORDERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT UpdateOrderRequest : public RpcServiceRequest + { + + public: + UpdateOrderRequest(); + ~UpdateOrderRequest(); + + std::string getData()const; + void setData(const std::string& data); + long getCsbId()const; + void setCsbId(long csbId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + private: + std::string data_; + long csbId_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_UPDATEORDERREQUEST_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/UpdateOrderResult.h b/csb/include/alibabacloud/csb/model/UpdateOrderResult.h new file mode 100644 index 000000000..a0ec390ab --- /dev/null +++ b/csb/include/alibabacloud/csb/model/UpdateOrderResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_CSB_MODEL_UPDATEORDERRESULT_H_ +#define ALIBABACLOUD_CSB_MODEL_UPDATEORDERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT UpdateOrderResult : public ServiceResult + { + public: + + + UpdateOrderResult(); + explicit UpdateOrderResult(const std::string &payload); + ~UpdateOrderResult(); + std::string getMessage()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_UPDATEORDERRESULT_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/UpdateProjectListStatusRequest.h b/csb/include/alibabacloud/csb/model/UpdateProjectListStatusRequest.h new file mode 100644 index 000000000..eff6b5a48 --- /dev/null +++ b/csb/include/alibabacloud/csb/model/UpdateProjectListStatusRequest.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_CSB_MODEL_UPDATEPROJECTLISTSTATUSREQUEST_H_ +#define ALIBABACLOUD_CSB_MODEL_UPDATEPROJECTLISTSTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT UpdateProjectListStatusRequest : public RpcServiceRequest + { + + public: + UpdateProjectListStatusRequest(); + ~UpdateProjectListStatusRequest(); + + std::string getData()const; + void setData(const std::string& data); + long getCsbId()const; + void setCsbId(long csbId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + private: + std::string data_; + long csbId_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_UPDATEPROJECTLISTSTATUSREQUEST_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/UpdateProjectListStatusResult.h b/csb/include/alibabacloud/csb/model/UpdateProjectListStatusResult.h new file mode 100644 index 000000000..21c1a51a5 --- /dev/null +++ b/csb/include/alibabacloud/csb/model/UpdateProjectListStatusResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_CSB_MODEL_UPDATEPROJECTLISTSTATUSRESULT_H_ +#define ALIBABACLOUD_CSB_MODEL_UPDATEPROJECTLISTSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT UpdateProjectListStatusResult : public ServiceResult + { + public: + + + UpdateProjectListStatusResult(); + explicit UpdateProjectListStatusResult(const std::string &payload); + ~UpdateProjectListStatusResult(); + std::string getMessage()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_UPDATEPROJECTLISTSTATUSRESULT_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/UpdateProjectRequest.h b/csb/include/alibabacloud/csb/model/UpdateProjectRequest.h new file mode 100644 index 000000000..581ecd571 --- /dev/null +++ b/csb/include/alibabacloud/csb/model/UpdateProjectRequest.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_CSB_MODEL_UPDATEPROJECTREQUEST_H_ +#define ALIBABACLOUD_CSB_MODEL_UPDATEPROJECTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT UpdateProjectRequest : public RpcServiceRequest + { + + public: + UpdateProjectRequest(); + ~UpdateProjectRequest(); + + std::string getData()const; + void setData(const std::string& data); + long getCsbId()const; + void setCsbId(long csbId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + private: + std::string data_; + long csbId_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_UPDATEPROJECTREQUEST_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/UpdateProjectResult.h b/csb/include/alibabacloud/csb/model/UpdateProjectResult.h new file mode 100644 index 000000000..3adfff5cb --- /dev/null +++ b/csb/include/alibabacloud/csb/model/UpdateProjectResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_CSB_MODEL_UPDATEPROJECTRESULT_H_ +#define ALIBABACLOUD_CSB_MODEL_UPDATEPROJECTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT UpdateProjectResult : public ServiceResult + { + public: + + + UpdateProjectResult(); + explicit UpdateProjectResult(const std::string &payload); + ~UpdateProjectResult(); + std::string getMessage()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_UPDATEPROJECTRESULT_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/UpdateServiceListStatusRequest.h b/csb/include/alibabacloud/csb/model/UpdateServiceListStatusRequest.h new file mode 100644 index 000000000..542c6a753 --- /dev/null +++ b/csb/include/alibabacloud/csb/model/UpdateServiceListStatusRequest.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_CSB_MODEL_UPDATESERVICELISTSTATUSREQUEST_H_ +#define ALIBABACLOUD_CSB_MODEL_UPDATESERVICELISTSTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT UpdateServiceListStatusRequest : public RpcServiceRequest + { + + public: + UpdateServiceListStatusRequest(); + ~UpdateServiceListStatusRequest(); + + std::string getData()const; + void setData(const std::string& data); + long getCsbId()const; + void setCsbId(long csbId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + private: + std::string data_; + long csbId_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_UPDATESERVICELISTSTATUSREQUEST_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/UpdateServiceListStatusResult.h b/csb/include/alibabacloud/csb/model/UpdateServiceListStatusResult.h new file mode 100644 index 000000000..d72532cf6 --- /dev/null +++ b/csb/include/alibabacloud/csb/model/UpdateServiceListStatusResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_CSB_MODEL_UPDATESERVICELISTSTATUSRESULT_H_ +#define ALIBABACLOUD_CSB_MODEL_UPDATESERVICELISTSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT UpdateServiceListStatusResult : public ServiceResult + { + public: + + + UpdateServiceListStatusResult(); + explicit UpdateServiceListStatusResult(const std::string &payload); + ~UpdateServiceListStatusResult(); + std::string getMessage()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_UPDATESERVICELISTSTATUSRESULT_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/UpdateServiceQPSRequest.h b/csb/include/alibabacloud/csb/model/UpdateServiceQPSRequest.h new file mode 100644 index 000000000..8d262990a --- /dev/null +++ b/csb/include/alibabacloud/csb/model/UpdateServiceQPSRequest.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_CSB_MODEL_UPDATESERVICEQPSREQUEST_H_ +#define ALIBABACLOUD_CSB_MODEL_UPDATESERVICEQPSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT UpdateServiceQPSRequest : public RpcServiceRequest + { + + public: + UpdateServiceQPSRequest(); + ~UpdateServiceQPSRequest(); + + std::string getQps()const; + void setQps(const std::string& qps); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + long getServiceId()const; + void setServiceId(long serviceId); + + private: + std::string qps_; + std::string regionId_; + long serviceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_UPDATESERVICEQPSREQUEST_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/UpdateServiceQPSResult.h b/csb/include/alibabacloud/csb/model/UpdateServiceQPSResult.h new file mode 100644 index 000000000..dc0d7f1e7 --- /dev/null +++ b/csb/include/alibabacloud/csb/model/UpdateServiceQPSResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_CSB_MODEL_UPDATESERVICEQPSRESULT_H_ +#define ALIBABACLOUD_CSB_MODEL_UPDATESERVICEQPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT UpdateServiceQPSResult : public ServiceResult + { + public: + + + UpdateServiceQPSResult(); + explicit UpdateServiceQPSResult(const std::string &payload); + ~UpdateServiceQPSResult(); + std::string getMessage()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_UPDATESERVICEQPSRESULT_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/UpdateServiceRequest.h b/csb/include/alibabacloud/csb/model/UpdateServiceRequest.h new file mode 100644 index 000000000..3166c965a --- /dev/null +++ b/csb/include/alibabacloud/csb/model/UpdateServiceRequest.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_CSB_MODEL_UPDATESERVICEREQUEST_H_ +#define ALIBABACLOUD_CSB_MODEL_UPDATESERVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT UpdateServiceRequest : public RpcServiceRequest + { + + public: + UpdateServiceRequest(); + ~UpdateServiceRequest(); + + std::string getData()const; + void setData(const std::string& data); + long getCsbId()const; + void setCsbId(long csbId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + private: + std::string data_; + long csbId_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_UPDATESERVICEREQUEST_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/UpdateServiceResult.h b/csb/include/alibabacloud/csb/model/UpdateServiceResult.h new file mode 100644 index 000000000..5b9b393bd --- /dev/null +++ b/csb/include/alibabacloud/csb/model/UpdateServiceResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_CSB_MODEL_UPDATESERVICERESULT_H_ +#define ALIBABACLOUD_CSB_MODEL_UPDATESERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT UpdateServiceResult : public ServiceResult + { + public: + + + UpdateServiceResult(); + explicit UpdateServiceResult(const std::string &payload); + ~UpdateServiceResult(); + std::string getMessage()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_UPDATESERVICERESULT_H_ \ No newline at end of file diff --git a/csb/src/CSBClient.cc b/csb/src/CSBClient.cc new file mode 100644 index 000000000..6b207b2ee --- /dev/null +++ b/csb/src/CSBClient.cc @@ -0,0 +1,1457 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::CSB; +using namespace AlibabaCloud::CSB::Model; + +namespace +{ + const std::string SERVICE_NAME = "CSB"; +} + +CSBClient::CSBClient(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, "CSB"); +} + +CSBClient::CSBClient(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, "CSB"); +} + +CSBClient::CSBClient(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, "CSB"); +} + +CSBClient::~CSBClient() +{} + +CSBClient::DeleteServiceOutcome CSBClient::deleteService(const DeleteServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteServiceOutcome(DeleteServiceResult(outcome.result())); + else + return DeleteServiceOutcome(outcome.error()); +} + +void CSBClient::deleteServiceAsync(const DeleteServiceRequest& request, const DeleteServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CSBClient::DeleteServiceOutcomeCallable CSBClient::deleteServiceCallable(const DeleteServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CSBClient::FindServiceListOutcome CSBClient::findServiceList(const FindServiceListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return FindServiceListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return FindServiceListOutcome(FindServiceListResult(outcome.result())); + else + return FindServiceListOutcome(outcome.error()); +} + +void CSBClient::findServiceListAsync(const FindServiceListRequest& request, const FindServiceListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, findServiceList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CSBClient::FindServiceListOutcomeCallable CSBClient::findServiceListCallable(const FindServiceListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->findServiceList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CSBClient::PublishUnionCasServiceOutcome CSBClient::publishUnionCasService(const PublishUnionCasServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PublishUnionCasServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PublishUnionCasServiceOutcome(PublishUnionCasServiceResult(outcome.result())); + else + return PublishUnionCasServiceOutcome(outcome.error()); +} + +void CSBClient::publishUnionCasServiceAsync(const PublishUnionCasServiceRequest& request, const PublishUnionCasServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, publishUnionCasService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CSBClient::PublishUnionCasServiceOutcomeCallable CSBClient::publishUnionCasServiceCallable(const PublishUnionCasServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->publishUnionCasService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CSBClient::UpdateServiceListStatusOutcome CSBClient::updateServiceListStatus(const UpdateServiceListStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateServiceListStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateServiceListStatusOutcome(UpdateServiceListStatusResult(outcome.result())); + else + return UpdateServiceListStatusOutcome(outcome.error()); +} + +void CSBClient::updateServiceListStatusAsync(const UpdateServiceListStatusRequest& request, const UpdateServiceListStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateServiceListStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CSBClient::UpdateServiceListStatusOutcomeCallable CSBClient::updateServiceListStatusCallable(const UpdateServiceListStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateServiceListStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CSBClient::CreateOrderOutcome CSBClient::createOrder(const CreateOrderRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateOrderOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateOrderOutcome(CreateOrderResult(outcome.result())); + else + return CreateOrderOutcome(outcome.error()); +} + +void CSBClient::createOrderAsync(const CreateOrderRequest& request, const CreateOrderAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createOrder(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CSBClient::CreateOrderOutcomeCallable CSBClient::createOrderCallable(const CreateOrderRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createOrder(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CSBClient::CreateProjectOutcome CSBClient::createProject(const CreateProjectRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateProjectOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateProjectOutcome(CreateProjectResult(outcome.result())); + else + return CreateProjectOutcome(outcome.error()); +} + +void CSBClient::createProjectAsync(const CreateProjectRequest& request, const CreateProjectAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createProject(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CSBClient::CreateProjectOutcomeCallable CSBClient::createProjectCallable(const CreateProjectRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createProject(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CSBClient::DeleteServiceListOutcome CSBClient::deleteServiceList(const DeleteServiceListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteServiceListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteServiceListOutcome(DeleteServiceListResult(outcome.result())); + else + return DeleteServiceListOutcome(outcome.error()); +} + +void CSBClient::deleteServiceListAsync(const DeleteServiceListRequest& request, const DeleteServiceListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteServiceList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CSBClient::DeleteServiceListOutcomeCallable CSBClient::deleteServiceListCallable(const DeleteServiceListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteServiceList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CSBClient::CommitSuccessedServicesOutcome CSBClient::commitSuccessedServices(const CommitSuccessedServicesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CommitSuccessedServicesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CommitSuccessedServicesOutcome(CommitSuccessedServicesResult(outcome.result())); + else + return CommitSuccessedServicesOutcome(outcome.error()); +} + +void CSBClient::commitSuccessedServicesAsync(const CommitSuccessedServicesRequest& request, const CommitSuccessedServicesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, commitSuccessedServices(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CSBClient::CommitSuccessedServicesOutcomeCallable CSBClient::commitSuccessedServicesCallable(const CommitSuccessedServicesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->commitSuccessedServices(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CSBClient::FindOrderedListOutcome CSBClient::findOrderedList(const FindOrderedListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return FindOrderedListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return FindOrderedListOutcome(FindOrderedListResult(outcome.result())); + else + return FindOrderedListOutcome(outcome.error()); +} + +void CSBClient::findOrderedListAsync(const FindOrderedListRequest& request, const FindOrderedListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, findOrderedList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CSBClient::FindOrderedListOutcomeCallable CSBClient::findOrderedListCallable(const FindOrderedListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->findOrderedList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CSBClient::DeleteOrderListOutcome CSBClient::deleteOrderList(const DeleteOrderListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteOrderListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteOrderListOutcome(DeleteOrderListResult(outcome.result())); + else + return DeleteOrderListOutcome(outcome.error()); +} + +void CSBClient::deleteOrderListAsync(const DeleteOrderListRequest& request, const DeleteOrderListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteOrderList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CSBClient::DeleteOrderListOutcomeCallable CSBClient::deleteOrderListCallable(const DeleteOrderListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteOrderList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CSBClient::CreateCredentialsOutcome CSBClient::createCredentials(const CreateCredentialsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateCredentialsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateCredentialsOutcome(CreateCredentialsResult(outcome.result())); + else + return CreateCredentialsOutcome(outcome.error()); +} + +void CSBClient::createCredentialsAsync(const CreateCredentialsRequest& request, const CreateCredentialsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createCredentials(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CSBClient::CreateCredentialsOutcomeCallable CSBClient::createCredentialsCallable(const CreateCredentialsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createCredentials(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CSBClient::DeleteCasServiceOutcome CSBClient::deleteCasService(const DeleteCasServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteCasServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteCasServiceOutcome(DeleteCasServiceResult(outcome.result())); + else + return DeleteCasServiceOutcome(outcome.error()); +} + +void CSBClient::deleteCasServiceAsync(const DeleteCasServiceRequest& request, const DeleteCasServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteCasService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CSBClient::DeleteCasServiceOutcomeCallable CSBClient::deleteCasServiceCallable(const DeleteCasServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteCasService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CSBClient::DeleteProjectListOutcome CSBClient::deleteProjectList(const DeleteProjectListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteProjectListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteProjectListOutcome(DeleteProjectListResult(outcome.result())); + else + return DeleteProjectListOutcome(outcome.error()); +} + +void CSBClient::deleteProjectListAsync(const DeleteProjectListRequest& request, const DeleteProjectListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteProjectList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CSBClient::DeleteProjectListOutcomeCallable CSBClient::deleteProjectListCallable(const DeleteProjectListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteProjectList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CSBClient::FindInstanceListOutcome CSBClient::findInstanceList(const FindInstanceListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return FindInstanceListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return FindInstanceListOutcome(FindInstanceListResult(outcome.result())); + else + return FindInstanceListOutcome(outcome.error()); +} + +void CSBClient::findInstanceListAsync(const FindInstanceListRequest& request, const FindInstanceListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, findInstanceList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CSBClient::FindInstanceListOutcomeCallable CSBClient::findInstanceListCallable(const FindInstanceListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->findInstanceList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CSBClient::PublishCasServiceOutcome CSBClient::publishCasService(const PublishCasServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PublishCasServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PublishCasServiceOutcome(PublishCasServiceResult(outcome.result())); + else + return PublishCasServiceOutcome(outcome.error()); +} + +void CSBClient::publishCasServiceAsync(const PublishCasServiceRequest& request, const PublishCasServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, publishCasService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CSBClient::PublishCasServiceOutcomeCallable CSBClient::publishCasServiceCallable(const PublishCasServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->publishCasService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CSBClient::UpdateProjectListStatusOutcome CSBClient::updateProjectListStatus(const UpdateProjectListStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateProjectListStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateProjectListStatusOutcome(UpdateProjectListStatusResult(outcome.result())); + else + return UpdateProjectListStatusOutcome(outcome.error()); +} + +void CSBClient::updateProjectListStatusAsync(const UpdateProjectListStatusRequest& request, const UpdateProjectListStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateProjectListStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CSBClient::UpdateProjectListStatusOutcomeCallable CSBClient::updateProjectListStatusCallable(const UpdateProjectListStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateProjectListStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CSBClient::FindProjectsNameListOutcome CSBClient::findProjectsNameList(const FindProjectsNameListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return FindProjectsNameListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return FindProjectsNameListOutcome(FindProjectsNameListResult(outcome.result())); + else + return FindProjectsNameListOutcome(outcome.error()); +} + +void CSBClient::findProjectsNameListAsync(const FindProjectsNameListRequest& request, const FindProjectsNameListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, findProjectsNameList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CSBClient::FindProjectsNameListOutcomeCallable CSBClient::findProjectsNameListCallable(const FindProjectsNameListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->findProjectsNameList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CSBClient::ReplaceCredentialOutcome CSBClient::replaceCredential(const ReplaceCredentialRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ReplaceCredentialOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ReplaceCredentialOutcome(ReplaceCredentialResult(outcome.result())); + else + return ReplaceCredentialOutcome(outcome.error()); +} + +void CSBClient::replaceCredentialAsync(const ReplaceCredentialRequest& request, const ReplaceCredentialAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, replaceCredential(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CSBClient::ReplaceCredentialOutcomeCallable CSBClient::replaceCredentialCallable(const ReplaceCredentialRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->replaceCredential(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CSBClient::GetProjectOutcome CSBClient::getProject(const GetProjectRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetProjectOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetProjectOutcome(GetProjectResult(outcome.result())); + else + return GetProjectOutcome(outcome.error()); +} + +void CSBClient::getProjectAsync(const GetProjectRequest& request, const GetProjectAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getProject(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CSBClient::GetProjectOutcomeCallable CSBClient::getProjectCallable(const GetProjectRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getProject(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CSBClient::DeleteUnionCasServiceOutcome CSBClient::deleteUnionCasService(const DeleteUnionCasServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteUnionCasServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteUnionCasServiceOutcome(DeleteUnionCasServiceResult(outcome.result())); + else + return DeleteUnionCasServiceOutcome(outcome.error()); +} + +void CSBClient::deleteUnionCasServiceAsync(const DeleteUnionCasServiceRequest& request, const DeleteUnionCasServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteUnionCasService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CSBClient::DeleteUnionCasServiceOutcomeCallable CSBClient::deleteUnionCasServiceCallable(const DeleteUnionCasServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteUnionCasService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CSBClient::CheckServiceExistOutcome CSBClient::checkServiceExist(const CheckServiceExistRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CheckServiceExistOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CheckServiceExistOutcome(CheckServiceExistResult(outcome.result())); + else + return CheckServiceExistOutcome(outcome.error()); +} + +void CSBClient::checkServiceExistAsync(const CheckServiceExistRequest& request, const CheckServiceExistAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, checkServiceExist(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CSBClient::CheckServiceExistOutcomeCallable CSBClient::checkServiceExistCallable(const CheckServiceExistRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->checkServiceExist(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CSBClient::GetInstanceOutcome CSBClient::getInstance(const GetInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetInstanceOutcome(GetInstanceResult(outcome.result())); + else + return GetInstanceOutcome(outcome.error()); +} + +void CSBClient::getInstanceAsync(const GetInstanceRequest& request, const GetInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CSBClient::GetInstanceOutcomeCallable CSBClient::getInstanceCallable(const GetInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CSBClient::RenewCredentialsOutcome CSBClient::renewCredentials(const RenewCredentialsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RenewCredentialsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RenewCredentialsOutcome(RenewCredentialsResult(outcome.result())); + else + return RenewCredentialsOutcome(outcome.error()); +} + +void CSBClient::renewCredentialsAsync(const RenewCredentialsRequest& request, const RenewCredentialsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, renewCredentials(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CSBClient::RenewCredentialsOutcomeCallable CSBClient::renewCredentialsCallable(const RenewCredentialsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->renewCredentials(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CSBClient::GetOrderOutcome CSBClient::getOrder(const GetOrderRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetOrderOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetOrderOutcome(GetOrderResult(outcome.result())); + else + return GetOrderOutcome(outcome.error()); +} + +void CSBClient::getOrderAsync(const GetOrderRequest& request, const GetOrderAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getOrder(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CSBClient::GetOrderOutcomeCallable CSBClient::getOrderCallable(const GetOrderRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getOrder(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CSBClient::UpdateOrderListOutcome CSBClient::updateOrderList(const UpdateOrderListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateOrderListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateOrderListOutcome(UpdateOrderListResult(outcome.result())); + else + return UpdateOrderListOutcome(outcome.error()); +} + +void CSBClient::updateOrderListAsync(const UpdateOrderListRequest& request, const UpdateOrderListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateOrderList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CSBClient::UpdateOrderListOutcomeCallable CSBClient::updateOrderListCallable(const UpdateOrderListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateOrderList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CSBClient::DeleteCredentialsListOutcome CSBClient::deleteCredentialsList(const DeleteCredentialsListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteCredentialsListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteCredentialsListOutcome(DeleteCredentialsListResult(outcome.result())); + else + return DeleteCredentialsListOutcome(outcome.error()); +} + +void CSBClient::deleteCredentialsListAsync(const DeleteCredentialsListRequest& request, const DeleteCredentialsListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteCredentialsList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CSBClient::DeleteCredentialsListOutcomeCallable CSBClient::deleteCredentialsListCallable(const DeleteCredentialsListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteCredentialsList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CSBClient::CreateServiceOutcome CSBClient::createService(const CreateServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateServiceOutcome(CreateServiceResult(outcome.result())); + else + return CreateServiceOutcome(outcome.error()); +} + +void CSBClient::createServiceAsync(const CreateServiceRequest& request, const CreateServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CSBClient::CreateServiceOutcomeCallable CSBClient::createServiceCallable(const CreateServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CSBClient::FindCredentialsListOutcome CSBClient::findCredentialsList(const FindCredentialsListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return FindCredentialsListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return FindCredentialsListOutcome(FindCredentialsListResult(outcome.result())); + else + return FindCredentialsListOutcome(outcome.error()); +} + +void CSBClient::findCredentialsListAsync(const FindCredentialsListRequest& request, const FindCredentialsListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, findCredentialsList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CSBClient::FindCredentialsListOutcomeCallable CSBClient::findCredentialsListCallable(const FindCredentialsListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->findCredentialsList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CSBClient::ApproveOrderListOutcome CSBClient::approveOrderList(const ApproveOrderListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ApproveOrderListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ApproveOrderListOutcome(ApproveOrderListResult(outcome.result())); + else + return ApproveOrderListOutcome(outcome.error()); +} + +void CSBClient::approveOrderListAsync(const ApproveOrderListRequest& request, const ApproveOrderListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, approveOrderList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CSBClient::ApproveOrderListOutcomeCallable CSBClient::approveOrderListCallable(const ApproveOrderListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->approveOrderList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CSBClient::UpdateServiceOutcome CSBClient::updateService(const UpdateServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateServiceOutcome(UpdateServiceResult(outcome.result())); + else + return UpdateServiceOutcome(outcome.error()); +} + +void CSBClient::updateServiceAsync(const UpdateServiceRequest& request, const UpdateServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CSBClient::UpdateServiceOutcomeCallable CSBClient::updateServiceCallable(const UpdateServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CSBClient::DeleteProjectOutcome CSBClient::deleteProject(const DeleteProjectRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteProjectOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteProjectOutcome(DeleteProjectResult(outcome.result())); + else + return DeleteProjectOutcome(outcome.error()); +} + +void CSBClient::deleteProjectAsync(const DeleteProjectRequest& request, const DeleteProjectAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteProject(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CSBClient::DeleteProjectOutcomeCallable CSBClient::deleteProjectCallable(const DeleteProjectRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteProject(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CSBClient::UpdateProjectOutcome CSBClient::updateProject(const UpdateProjectRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateProjectOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateProjectOutcome(UpdateProjectResult(outcome.result())); + else + return UpdateProjectOutcome(outcome.error()); +} + +void CSBClient::updateProjectAsync(const UpdateProjectRequest& request, const UpdateProjectAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateProject(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CSBClient::UpdateProjectOutcomeCallable CSBClient::updateProjectCallable(const UpdateProjectRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateProject(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CSBClient::FindOrderableListOutcome CSBClient::findOrderableList(const FindOrderableListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return FindOrderableListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return FindOrderableListOutcome(FindOrderableListResult(outcome.result())); + else + return FindOrderableListOutcome(outcome.error()); +} + +void CSBClient::findOrderableListAsync(const FindOrderableListRequest& request, const FindOrderableListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, findOrderableList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CSBClient::FindOrderableListOutcomeCallable CSBClient::findOrderableListCallable(const FindOrderableListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->findOrderableList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CSBClient::FindProjectListOutcome CSBClient::findProjectList(const FindProjectListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return FindProjectListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return FindProjectListOutcome(FindProjectListResult(outcome.result())); + else + return FindProjectListOutcome(outcome.error()); +} + +void CSBClient::findProjectListAsync(const FindProjectListRequest& request, const FindProjectListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, findProjectList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CSBClient::FindProjectListOutcomeCallable CSBClient::findProjectListCallable(const FindProjectListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->findProjectList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CSBClient::FindApprovalOrderListOutcome CSBClient::findApprovalOrderList(const FindApprovalOrderListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return FindApprovalOrderListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return FindApprovalOrderListOutcome(FindApprovalOrderListResult(outcome.result())); + else + return FindApprovalOrderListOutcome(outcome.error()); +} + +void CSBClient::findApprovalOrderListAsync(const FindApprovalOrderListRequest& request, const FindApprovalOrderListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, findApprovalOrderList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CSBClient::FindApprovalOrderListOutcomeCallable CSBClient::findApprovalOrderListCallable(const FindApprovalOrderListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->findApprovalOrderList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CSBClient::UpdateServiceQPSOutcome CSBClient::updateServiceQPS(const UpdateServiceQPSRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateServiceQPSOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateServiceQPSOutcome(UpdateServiceQPSResult(outcome.result())); + else + return UpdateServiceQPSOutcome(outcome.error()); +} + +void CSBClient::updateServiceQPSAsync(const UpdateServiceQPSRequest& request, const UpdateServiceQPSAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateServiceQPS(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CSBClient::UpdateServiceQPSOutcomeCallable CSBClient::updateServiceQPSCallable(const UpdateServiceQPSRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateServiceQPS(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CSBClient::UpdateOrderOutcome CSBClient::updateOrder(const UpdateOrderRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateOrderOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateOrderOutcome(UpdateOrderResult(outcome.result())); + else + return UpdateOrderOutcome(outcome.error()); +} + +void CSBClient::updateOrderAsync(const UpdateOrderRequest& request, const UpdateOrderAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateOrder(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CSBClient::UpdateOrderOutcomeCallable CSBClient::updateOrderCallable(const UpdateOrderRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateOrder(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CSBClient::FindApproveServiceListOutcome CSBClient::findApproveServiceList(const FindApproveServiceListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return FindApproveServiceListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return FindApproveServiceListOutcome(FindApproveServiceListResult(outcome.result())); + else + return FindApproveServiceListOutcome(outcome.error()); +} + +void CSBClient::findApproveServiceListAsync(const FindApproveServiceListRequest& request, const FindApproveServiceListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, findApproveServiceList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CSBClient::FindApproveServiceListOutcomeCallable CSBClient::findApproveServiceListCallable(const FindApproveServiceListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->findApproveServiceList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CSBClient::GetServiceOutcome CSBClient::getService(const GetServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetServiceOutcome(GetServiceResult(outcome.result())); + else + return GetServiceOutcome(outcome.error()); +} + +void CSBClient::getServiceAsync(const GetServiceRequest& request, const GetServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CSBClient::GetServiceOutcomeCallable CSBClient::getServiceCallable(const GetServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/csb/src/model/ApproveOrderListRequest.cc b/csb/src/model/ApproveOrderListRequest.cc new file mode 100644 index 000000000..a247edb61 --- /dev/null +++ b/csb/src/model/ApproveOrderListRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CSB::Model::ApproveOrderListRequest; + +ApproveOrderListRequest::ApproveOrderListRequest() : + RpcServiceRequest("csb", "2017-11-18", "ApproveOrderList") +{} + +ApproveOrderListRequest::~ApproveOrderListRequest() +{} + +std::string ApproveOrderListRequest::getData()const +{ + return data_; +} + +void ApproveOrderListRequest::setData(const std::string& data) +{ + data_ = data; + setParameter("Data", data); +} + +std::string ApproveOrderListRequest::getRegionId()const +{ + return regionId_; +} + +void ApproveOrderListRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/csb/src/model/ApproveOrderListResult.cc b/csb/src/model/ApproveOrderListResult.cc new file mode 100644 index 000000000..eb63f1de9 --- /dev/null +++ b/csb/src/model/ApproveOrderListResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CSB; +using namespace AlibabaCloud::CSB::Model; + +ApproveOrderListResult::ApproveOrderListResult() : + ServiceResult() +{} + +ApproveOrderListResult::ApproveOrderListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ApproveOrderListResult::~ApproveOrderListResult() +{} + +void ApproveOrderListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ApproveOrderListResult::getMessage()const +{ + return message_; +} + +int ApproveOrderListResult::getCode()const +{ + return code_; +} + diff --git a/csb/src/model/CheckServiceExistRequest.cc b/csb/src/model/CheckServiceExistRequest.cc new file mode 100644 index 000000000..59797a29b --- /dev/null +++ b/csb/src/model/CheckServiceExistRequest.cc @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CSB::Model::CheckServiceExistRequest; + +CheckServiceExistRequest::CheckServiceExistRequest() : + RpcServiceRequest("csb", "2017-11-18", "CheckServiceExist") +{} + +CheckServiceExistRequest::~CheckServiceExistRequest() +{} + +long CheckServiceExistRequest::getCsbId()const +{ + return csbId_; +} + +void CheckServiceExistRequest::setCsbId(long csbId) +{ + csbId_ = csbId; + setParameter("CsbId", std::to_string(csbId)); +} + +std::string CheckServiceExistRequest::getRegionId()const +{ + return regionId_; +} + +void CheckServiceExistRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CheckServiceExistRequest::getServiceName()const +{ + return serviceName_; +} + +void CheckServiceExistRequest::setServiceName(const std::string& serviceName) +{ + serviceName_ = serviceName; + setParameter("ServiceName", serviceName); +} + diff --git a/csb/src/model/CheckServiceExistResult.cc b/csb/src/model/CheckServiceExistResult.cc new file mode 100644 index 000000000..cd7f2254d --- /dev/null +++ b/csb/src/model/CheckServiceExistResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::CSB; +using namespace AlibabaCloud::CSB::Model; + +CheckServiceExistResult::CheckServiceExistResult() : + ServiceResult() +{} + +CheckServiceExistResult::CheckServiceExistResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CheckServiceExistResult::~CheckServiceExistResult() +{} + +void CheckServiceExistResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Exist"].isNull()) + data_.exist = dataNode["Exist"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CheckServiceExistResult::getMessage()const +{ + return message_; +} + +CheckServiceExistResult::Data CheckServiceExistResult::getData()const +{ + return data_; +} + +int CheckServiceExistResult::getCode()const +{ + return code_; +} + diff --git a/csb/src/model/CommitSuccessedServicesRequest.cc b/csb/src/model/CommitSuccessedServicesRequest.cc new file mode 100644 index 000000000..b062231d9 --- /dev/null +++ b/csb/src/model/CommitSuccessedServicesRequest.cc @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CSB::Model::CommitSuccessedServicesRequest; + +CommitSuccessedServicesRequest::CommitSuccessedServicesRequest() : + RpcServiceRequest("csb", "2017-11-18", "CommitSuccessedServices") +{} + +CommitSuccessedServicesRequest::~CommitSuccessedServicesRequest() +{} + +std::string CommitSuccessedServicesRequest::getCsbName()const +{ + return csbName_; +} + +void CommitSuccessedServicesRequest::setCsbName(const std::string& csbName) +{ + csbName_ = csbName; + setParameter("CsbName", csbName); +} + +std::string CommitSuccessedServicesRequest::getRegionId()const +{ + return regionId_; +} + +void CommitSuccessedServicesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CommitSuccessedServicesRequest::getServices()const +{ + return services_; +} + +void CommitSuccessedServicesRequest::setServices(const std::string& services) +{ + services_ = services; + setParameter("Services", services); +} + diff --git a/csb/src/model/CommitSuccessedServicesResult.cc b/csb/src/model/CommitSuccessedServicesResult.cc new file mode 100644 index 000000000..e402dbf63 --- /dev/null +++ b/csb/src/model/CommitSuccessedServicesResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CSB; +using namespace AlibabaCloud::CSB::Model; + +CommitSuccessedServicesResult::CommitSuccessedServicesResult() : + ServiceResult() +{} + +CommitSuccessedServicesResult::CommitSuccessedServicesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CommitSuccessedServicesResult::~CommitSuccessedServicesResult() +{} + +void CommitSuccessedServicesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CommitSuccessedServicesResult::getMessage()const +{ + return message_; +} + +int CommitSuccessedServicesResult::getCode()const +{ + return code_; +} + diff --git a/csb/src/model/CreateCredentialsRequest.cc b/csb/src/model/CreateCredentialsRequest.cc new file mode 100644 index 000000000..e81abacf1 --- /dev/null +++ b/csb/src/model/CreateCredentialsRequest.cc @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CSB::Model::CreateCredentialsRequest; + +CreateCredentialsRequest::CreateCredentialsRequest() : + RpcServiceRequest("csb", "2017-11-18", "CreateCredentials") +{} + +CreateCredentialsRequest::~CreateCredentialsRequest() +{} + +std::string CreateCredentialsRequest::getData()const +{ + return data_; +} + +void CreateCredentialsRequest::setData(const std::string& data) +{ + data_ = data; + setParameter("Data", data); +} + +std::string CreateCredentialsRequest::getRegionId()const +{ + return regionId_; +} + +void CreateCredentialsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +long CreateCredentialsRequest::getCsbId()const +{ + return csbId_; +} + +void CreateCredentialsRequest::setCsbId(long csbId) +{ + csbId_ = csbId; + setParameter("CsbId", std::to_string(csbId)); +} + diff --git a/csb/src/model/CreateCredentialsResult.cc b/csb/src/model/CreateCredentialsResult.cc new file mode 100644 index 000000000..a4d5087cb --- /dev/null +++ b/csb/src/model/CreateCredentialsResult.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::CSB; +using namespace AlibabaCloud::CSB::Model; + +CreateCredentialsResult::CreateCredentialsResult() : + ServiceResult() +{} + +CreateCredentialsResult::CreateCredentialsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateCredentialsResult::~CreateCredentialsResult() +{} + +void CreateCredentialsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto credentialsNode = dataNode["Credentials"]; + if(!credentialsNode["Id"].isNull()) + data_.credentials.id = std::stol(credentialsNode["Id"].asString()); + auto currentCredentialNode = credentialsNode["CurrentCredential"]; + if(!currentCredentialNode["SecretKey"].isNull()) + data_.credentials.currentCredential.secretKey = currentCredentialNode["SecretKey"].asString(); + if(!currentCredentialNode["AccessKey"].isNull()) + data_.credentials.currentCredential.accessKey = currentCredentialNode["AccessKey"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CreateCredentialsResult::getMessage()const +{ + return message_; +} + +CreateCredentialsResult::Data CreateCredentialsResult::getData()const +{ + return data_; +} + +int CreateCredentialsResult::getCode()const +{ + return code_; +} + diff --git a/csb/src/model/CreateOrderRequest.cc b/csb/src/model/CreateOrderRequest.cc new file mode 100644 index 000000000..ce9a866d0 --- /dev/null +++ b/csb/src/model/CreateOrderRequest.cc @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CSB::Model::CreateOrderRequest; + +CreateOrderRequest::CreateOrderRequest() : + RpcServiceRequest("csb", "2017-11-18", "CreateOrder") +{} + +CreateOrderRequest::~CreateOrderRequest() +{} + +std::string CreateOrderRequest::getData()const +{ + return data_; +} + +void CreateOrderRequest::setData(const std::string& data) +{ + data_ = data; + setParameter("Data", data); +} + +long CreateOrderRequest::getCsbId()const +{ + return csbId_; +} + +void CreateOrderRequest::setCsbId(long csbId) +{ + csbId_ = csbId; + setParameter("CsbId", std::to_string(csbId)); +} + +std::string CreateOrderRequest::getRegionId()const +{ + return regionId_; +} + +void CreateOrderRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/csb/src/model/CreateOrderResult.cc b/csb/src/model/CreateOrderResult.cc new file mode 100644 index 000000000..9d435fb24 --- /dev/null +++ b/csb/src/model/CreateOrderResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::CSB; +using namespace AlibabaCloud::CSB::Model; + +CreateOrderResult::CreateOrderResult() : + ServiceResult() +{} + +CreateOrderResult::CreateOrderResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateOrderResult::~CreateOrderResult() +{} + +void CreateOrderResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Id"].isNull()) + data_.id = std::stol(dataNode["Id"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CreateOrderResult::getMessage()const +{ + return message_; +} + +CreateOrderResult::Data CreateOrderResult::getData()const +{ + return data_; +} + +int CreateOrderResult::getCode()const +{ + return code_; +} + diff --git a/csb/src/model/CreateProjectRequest.cc b/csb/src/model/CreateProjectRequest.cc new file mode 100644 index 000000000..162c105fc --- /dev/null +++ b/csb/src/model/CreateProjectRequest.cc @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CSB::Model::CreateProjectRequest; + +CreateProjectRequest::CreateProjectRequest() : + RpcServiceRequest("csb", "2017-11-18", "CreateProject") +{} + +CreateProjectRequest::~CreateProjectRequest() +{} + +std::string CreateProjectRequest::getData()const +{ + return data_; +} + +void CreateProjectRequest::setData(const std::string& data) +{ + data_ = data; + setParameter("Data", data); +} + +long CreateProjectRequest::getCsbId()const +{ + return csbId_; +} + +void CreateProjectRequest::setCsbId(long csbId) +{ + csbId_ = csbId; + setParameter("CsbId", std::to_string(csbId)); +} + +std::string CreateProjectRequest::getRegionId()const +{ + return regionId_; +} + +void CreateProjectRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/csb/src/model/CreateProjectResult.cc b/csb/src/model/CreateProjectResult.cc new file mode 100644 index 000000000..3e55080db --- /dev/null +++ b/csb/src/model/CreateProjectResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::CSB; +using namespace AlibabaCloud::CSB::Model; + +CreateProjectResult::CreateProjectResult() : + ServiceResult() +{} + +CreateProjectResult::CreateProjectResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateProjectResult::~CreateProjectResult() +{} + +void CreateProjectResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Id"].isNull()) + data_.id = std::stol(dataNode["Id"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CreateProjectResult::getMessage()const +{ + return message_; +} + +CreateProjectResult::Data CreateProjectResult::getData()const +{ + return data_; +} + +int CreateProjectResult::getCode()const +{ + return code_; +} + diff --git a/csb/src/model/CreateServiceRequest.cc b/csb/src/model/CreateServiceRequest.cc new file mode 100644 index 000000000..b31a8584a --- /dev/null +++ b/csb/src/model/CreateServiceRequest.cc @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CSB::Model::CreateServiceRequest; + +CreateServiceRequest::CreateServiceRequest() : + RpcServiceRequest("csb", "2017-11-18", "CreateService") +{} + +CreateServiceRequest::~CreateServiceRequest() +{} + +std::string CreateServiceRequest::getData()const +{ + return data_; +} + +void CreateServiceRequest::setData(const std::string& data) +{ + data_ = data; + setParameter("Data", data); +} + +long CreateServiceRequest::getCsbId()const +{ + return csbId_; +} + +void CreateServiceRequest::setCsbId(long csbId) +{ + csbId_ = csbId; + setParameter("CsbId", std::to_string(csbId)); +} + +std::string CreateServiceRequest::getRegionId()const +{ + return regionId_; +} + +void CreateServiceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/csb/src/model/CreateServiceResult.cc b/csb/src/model/CreateServiceResult.cc new file mode 100644 index 000000000..b16b7a276 --- /dev/null +++ b/csb/src/model/CreateServiceResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::CSB; +using namespace AlibabaCloud::CSB::Model; + +CreateServiceResult::CreateServiceResult() : + ServiceResult() +{} + +CreateServiceResult::CreateServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateServiceResult::~CreateServiceResult() +{} + +void CreateServiceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Id"].isNull()) + data_.id = std::stol(dataNode["Id"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CreateServiceResult::getMessage()const +{ + return message_; +} + +CreateServiceResult::Data CreateServiceResult::getData()const +{ + return data_; +} + +int CreateServiceResult::getCode()const +{ + return code_; +} + diff --git a/csb/src/model/DeleteCasServiceRequest.cc b/csb/src/model/DeleteCasServiceRequest.cc new file mode 100644 index 000000000..10a7db634 --- /dev/null +++ b/csb/src/model/DeleteCasServiceRequest.cc @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CSB::Model::DeleteCasServiceRequest; + +DeleteCasServiceRequest::DeleteCasServiceRequest() : + RpcServiceRequest("csb", "2017-11-18", "DeleteCasService") +{} + +DeleteCasServiceRequest::~DeleteCasServiceRequest() +{} + +bool DeleteCasServiceRequest::getLeafOnly()const +{ + return leafOnly_; +} + +void DeleteCasServiceRequest::setLeafOnly(bool leafOnly) +{ + leafOnly_ = leafOnly; + setParameter("LeafOnly", std::to_string(leafOnly)); +} + +std::string DeleteCasServiceRequest::getCasCsbName()const +{ + return casCsbName_; +} + +void DeleteCasServiceRequest::setCasCsbName(const std::string& casCsbName) +{ + casCsbName_ = casCsbName; + setParameter("CasCsbName", casCsbName); +} + +std::string DeleteCasServiceRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteCasServiceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteCasServiceRequest::getSrcUserId()const +{ + return srcUserId_; +} + +void DeleteCasServiceRequest::setSrcUserId(const std::string& srcUserId) +{ + srcUserId_ = srcUserId; + setParameter("SrcUserId", srcUserId); +} + +std::string DeleteCasServiceRequest::getCasServiceId()const +{ + return casServiceId_; +} + +void DeleteCasServiceRequest::setCasServiceId(const std::string& casServiceId) +{ + casServiceId_ = casServiceId; + setParameter("CasServiceId", casServiceId); +} + diff --git a/csb/src/model/DeleteCasServiceResult.cc b/csb/src/model/DeleteCasServiceResult.cc new file mode 100644 index 000000000..499b9ebcb --- /dev/null +++ b/csb/src/model/DeleteCasServiceResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CSB; +using namespace AlibabaCloud::CSB::Model; + +DeleteCasServiceResult::DeleteCasServiceResult() : + ServiceResult() +{} + +DeleteCasServiceResult::DeleteCasServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteCasServiceResult::~DeleteCasServiceResult() +{} + +void DeleteCasServiceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DeleteCasServiceResult::getMessage()const +{ + return message_; +} + +int DeleteCasServiceResult::getCode()const +{ + return code_; +} + diff --git a/csb/src/model/DeleteCredentialsListRequest.cc b/csb/src/model/DeleteCredentialsListRequest.cc new file mode 100644 index 000000000..cdf36c13d --- /dev/null +++ b/csb/src/model/DeleteCredentialsListRequest.cc @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CSB::Model::DeleteCredentialsListRequest; + +DeleteCredentialsListRequest::DeleteCredentialsListRequest() : + RpcServiceRequest("csb", "2017-11-18", "DeleteCredentialsList") +{} + +DeleteCredentialsListRequest::~DeleteCredentialsListRequest() +{} + +std::string DeleteCredentialsListRequest::getData()const +{ + return data_; +} + +void DeleteCredentialsListRequest::setData(const std::string& data) +{ + data_ = data; + setParameter("Data", data); +} + +std::string DeleteCredentialsListRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteCredentialsListRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool DeleteCredentialsListRequest::getIgnoreDauth()const +{ + return ignoreDauth_; +} + +void DeleteCredentialsListRequest::setIgnoreDauth(bool ignoreDauth) +{ + ignoreDauth_ = ignoreDauth; + setParameter("IgnoreDauth", std::to_string(ignoreDauth)); +} + +bool DeleteCredentialsListRequest::getForce()const +{ + return force_; +} + +void DeleteCredentialsListRequest::setForce(bool force) +{ + force_ = force; + setParameter("Force", std::to_string(force)); +} + diff --git a/csb/src/model/DeleteCredentialsListResult.cc b/csb/src/model/DeleteCredentialsListResult.cc new file mode 100644 index 000000000..d2e87f6d1 --- /dev/null +++ b/csb/src/model/DeleteCredentialsListResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CSB; +using namespace AlibabaCloud::CSB::Model; + +DeleteCredentialsListResult::DeleteCredentialsListResult() : + ServiceResult() +{} + +DeleteCredentialsListResult::DeleteCredentialsListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteCredentialsListResult::~DeleteCredentialsListResult() +{} + +void DeleteCredentialsListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DeleteCredentialsListResult::getMessage()const +{ + return message_; +} + +int DeleteCredentialsListResult::getCode()const +{ + return code_; +} + diff --git a/csb/src/model/DeleteOrderListRequest.cc b/csb/src/model/DeleteOrderListRequest.cc new file mode 100644 index 000000000..bb54e9df5 --- /dev/null +++ b/csb/src/model/DeleteOrderListRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CSB::Model::DeleteOrderListRequest; + +DeleteOrderListRequest::DeleteOrderListRequest() : + RpcServiceRequest("csb", "2017-11-18", "DeleteOrderList") +{} + +DeleteOrderListRequest::~DeleteOrderListRequest() +{} + +std::string DeleteOrderListRequest::getData()const +{ + return data_; +} + +void DeleteOrderListRequest::setData(const std::string& data) +{ + data_ = data; + setParameter("Data", data); +} + +std::string DeleteOrderListRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteOrderListRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/csb/src/model/DeleteOrderListResult.cc b/csb/src/model/DeleteOrderListResult.cc new file mode 100644 index 000000000..879b6aec5 --- /dev/null +++ b/csb/src/model/DeleteOrderListResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CSB; +using namespace AlibabaCloud::CSB::Model; + +DeleteOrderListResult::DeleteOrderListResult() : + ServiceResult() +{} + +DeleteOrderListResult::DeleteOrderListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteOrderListResult::~DeleteOrderListResult() +{} + +void DeleteOrderListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DeleteOrderListResult::getMessage()const +{ + return message_; +} + +int DeleteOrderListResult::getCode()const +{ + return code_; +} + diff --git a/csb/src/model/DeleteProjectListRequest.cc b/csb/src/model/DeleteProjectListRequest.cc new file mode 100644 index 000000000..85c3fa09b --- /dev/null +++ b/csb/src/model/DeleteProjectListRequest.cc @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CSB::Model::DeleteProjectListRequest; + +DeleteProjectListRequest::DeleteProjectListRequest() : + RpcServiceRequest("csb", "2017-11-18", "DeleteProjectList") +{} + +DeleteProjectListRequest::~DeleteProjectListRequest() +{} + +std::string DeleteProjectListRequest::getData()const +{ + return data_; +} + +void DeleteProjectListRequest::setData(const std::string& data) +{ + data_ = data; + setParameter("Data", data); +} + +long DeleteProjectListRequest::getCsbId()const +{ + return csbId_; +} + +void DeleteProjectListRequest::setCsbId(long csbId) +{ + csbId_ = csbId; + setParameter("CsbId", std::to_string(csbId)); +} + +std::string DeleteProjectListRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteProjectListRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/csb/src/model/DeleteProjectListResult.cc b/csb/src/model/DeleteProjectListResult.cc new file mode 100644 index 000000000..8b84a26e3 --- /dev/null +++ b/csb/src/model/DeleteProjectListResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CSB; +using namespace AlibabaCloud::CSB::Model; + +DeleteProjectListResult::DeleteProjectListResult() : + ServiceResult() +{} + +DeleteProjectListResult::DeleteProjectListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteProjectListResult::~DeleteProjectListResult() +{} + +void DeleteProjectListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DeleteProjectListResult::getMessage()const +{ + return message_; +} + +int DeleteProjectListResult::getCode()const +{ + return code_; +} + diff --git a/csb/src/model/DeleteProjectRequest.cc b/csb/src/model/DeleteProjectRequest.cc new file mode 100644 index 000000000..6c76ad59a --- /dev/null +++ b/csb/src/model/DeleteProjectRequest.cc @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CSB::Model::DeleteProjectRequest; + +DeleteProjectRequest::DeleteProjectRequest() : + RpcServiceRequest("csb", "2017-11-18", "DeleteProject") +{} + +DeleteProjectRequest::~DeleteProjectRequest() +{} + +long DeleteProjectRequest::getCsbId()const +{ + return csbId_; +} + +void DeleteProjectRequest::setCsbId(long csbId) +{ + csbId_ = csbId; + setParameter("CsbId", std::to_string(csbId)); +} + +std::string DeleteProjectRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteProjectRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +long DeleteProjectRequest::getProjectId()const +{ + return projectId_; +} + +void DeleteProjectRequest::setProjectId(long projectId) +{ + projectId_ = projectId; + setParameter("ProjectId", std::to_string(projectId)); +} + diff --git a/csb/src/model/DeleteProjectResult.cc b/csb/src/model/DeleteProjectResult.cc new file mode 100644 index 000000000..c65f59219 --- /dev/null +++ b/csb/src/model/DeleteProjectResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CSB; +using namespace AlibabaCloud::CSB::Model; + +DeleteProjectResult::DeleteProjectResult() : + ServiceResult() +{} + +DeleteProjectResult::DeleteProjectResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteProjectResult::~DeleteProjectResult() +{} + +void DeleteProjectResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DeleteProjectResult::getMessage()const +{ + return message_; +} + +int DeleteProjectResult::getCode()const +{ + return code_; +} + diff --git a/csb/src/model/DeleteServiceListRequest.cc b/csb/src/model/DeleteServiceListRequest.cc new file mode 100644 index 000000000..290748f62 --- /dev/null +++ b/csb/src/model/DeleteServiceListRequest.cc @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CSB::Model::DeleteServiceListRequest; + +DeleteServiceListRequest::DeleteServiceListRequest() : + RpcServiceRequest("csb", "2017-11-18", "DeleteServiceList") +{} + +DeleteServiceListRequest::~DeleteServiceListRequest() +{} + +std::string DeleteServiceListRequest::getData()const +{ + return data_; +} + +void DeleteServiceListRequest::setData(const std::string& data) +{ + data_ = data; + setParameter("Data", data); +} + +long DeleteServiceListRequest::getCsbId()const +{ + return csbId_; +} + +void DeleteServiceListRequest::setCsbId(long csbId) +{ + csbId_ = csbId; + setParameter("CsbId", std::to_string(csbId)); +} + +std::string DeleteServiceListRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteServiceListRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/csb/src/model/DeleteServiceListResult.cc b/csb/src/model/DeleteServiceListResult.cc new file mode 100644 index 000000000..4a8b8d2d1 --- /dev/null +++ b/csb/src/model/DeleteServiceListResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CSB; +using namespace AlibabaCloud::CSB::Model; + +DeleteServiceListResult::DeleteServiceListResult() : + ServiceResult() +{} + +DeleteServiceListResult::DeleteServiceListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteServiceListResult::~DeleteServiceListResult() +{} + +void DeleteServiceListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DeleteServiceListResult::getMessage()const +{ + return message_; +} + +int DeleteServiceListResult::getCode()const +{ + return code_; +} + diff --git a/csb/src/model/DeleteServiceRequest.cc b/csb/src/model/DeleteServiceRequest.cc new file mode 100644 index 000000000..5c2d2da17 --- /dev/null +++ b/csb/src/model/DeleteServiceRequest.cc @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CSB::Model::DeleteServiceRequest; + +DeleteServiceRequest::DeleteServiceRequest() : + RpcServiceRequest("csb", "2017-11-18", "DeleteService") +{} + +DeleteServiceRequest::~DeleteServiceRequest() +{} + +std::string DeleteServiceRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteServiceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteServiceRequest::getServiceName()const +{ + return serviceName_; +} + +void DeleteServiceRequest::setServiceName(const std::string& serviceName) +{ + serviceName_ = serviceName; + setParameter("ServiceName", serviceName); +} + +long DeleteServiceRequest::getServiceId()const +{ + return serviceId_; +} + +void DeleteServiceRequest::setServiceId(long serviceId) +{ + serviceId_ = serviceId; + setParameter("ServiceId", std::to_string(serviceId)); +} + diff --git a/csb/src/model/DeleteServiceResult.cc b/csb/src/model/DeleteServiceResult.cc new file mode 100644 index 000000000..af1d25575 --- /dev/null +++ b/csb/src/model/DeleteServiceResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CSB; +using namespace AlibabaCloud::CSB::Model; + +DeleteServiceResult::DeleteServiceResult() : + ServiceResult() +{} + +DeleteServiceResult::DeleteServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteServiceResult::~DeleteServiceResult() +{} + +void DeleteServiceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DeleteServiceResult::getMessage()const +{ + return message_; +} + +int DeleteServiceResult::getCode()const +{ + return code_; +} + diff --git a/csb/src/model/DeleteUnionCasServiceRequest.cc b/csb/src/model/DeleteUnionCasServiceRequest.cc new file mode 100644 index 000000000..67e9346e3 --- /dev/null +++ b/csb/src/model/DeleteUnionCasServiceRequest.cc @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CSB::Model::DeleteUnionCasServiceRequest; + +DeleteUnionCasServiceRequest::DeleteUnionCasServiceRequest() : + RpcServiceRequest("csb", "2017-11-18", "DeleteUnionCasService") +{} + +DeleteUnionCasServiceRequest::~DeleteUnionCasServiceRequest() +{} + +bool DeleteUnionCasServiceRequest::getLeafOnly()const +{ + return leafOnly_; +} + +void DeleteUnionCasServiceRequest::setLeafOnly(bool leafOnly) +{ + leafOnly_ = leafOnly; + setParameter("LeafOnly", std::to_string(leafOnly)); +} + +std::string DeleteUnionCasServiceRequest::getCasCsbName()const +{ + return casCsbName_; +} + +void DeleteUnionCasServiceRequest::setCasCsbName(const std::string& casCsbName) +{ + casCsbName_ = casCsbName; + setParameter("CasCsbName", casCsbName); +} + +std::string DeleteUnionCasServiceRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteUnionCasServiceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteUnionCasServiceRequest::getSrcUserId()const +{ + return srcUserId_; +} + +void DeleteUnionCasServiceRequest::setSrcUserId(const std::string& srcUserId) +{ + srcUserId_ = srcUserId; + setParameter("SrcUserId", srcUserId); +} + +std::string DeleteUnionCasServiceRequest::getCasServiceId()const +{ + return casServiceId_; +} + +void DeleteUnionCasServiceRequest::setCasServiceId(const std::string& casServiceId) +{ + casServiceId_ = casServiceId; + setParameter("CasServiceId", casServiceId); +} + diff --git a/csb/src/model/DeleteUnionCasServiceResult.cc b/csb/src/model/DeleteUnionCasServiceResult.cc new file mode 100644 index 000000000..cf5dda839 --- /dev/null +++ b/csb/src/model/DeleteUnionCasServiceResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CSB; +using namespace AlibabaCloud::CSB::Model; + +DeleteUnionCasServiceResult::DeleteUnionCasServiceResult() : + ServiceResult() +{} + +DeleteUnionCasServiceResult::DeleteUnionCasServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteUnionCasServiceResult::~DeleteUnionCasServiceResult() +{} + +void DeleteUnionCasServiceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DeleteUnionCasServiceResult::getMessage()const +{ + return message_; +} + +int DeleteUnionCasServiceResult::getCode()const +{ + return code_; +} + diff --git a/csb/src/model/FindApprovalOrderListRequest.cc b/csb/src/model/FindApprovalOrderListRequest.cc new file mode 100644 index 000000000..0446eb204 --- /dev/null +++ b/csb/src/model/FindApprovalOrderListRequest.cc @@ -0,0 +1,104 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CSB::Model::FindApprovalOrderListRequest; + +FindApprovalOrderListRequest::FindApprovalOrderListRequest() : + RpcServiceRequest("csb", "2017-11-18", "FindApprovalOrderList") +{} + +FindApprovalOrderListRequest::~FindApprovalOrderListRequest() +{} + +std::string FindApprovalOrderListRequest::getProjectName()const +{ + return projectName_; +} + +void FindApprovalOrderListRequest::setProjectName(const std::string& projectName) +{ + projectName_ = projectName; + setParameter("ProjectName", projectName); +} + +std::string FindApprovalOrderListRequest::getRegionId()const +{ + return regionId_; +} + +void FindApprovalOrderListRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string FindApprovalOrderListRequest::getAlias()const +{ + return alias_; +} + +void FindApprovalOrderListRequest::setAlias(const std::string& alias) +{ + alias_ = alias; + setParameter("Alias", alias); +} + +std::string FindApprovalOrderListRequest::getServiceName()const +{ + return serviceName_; +} + +void FindApprovalOrderListRequest::setServiceName(const std::string& serviceName) +{ + serviceName_ = serviceName; + setParameter("ServiceName", serviceName); +} + +int FindApprovalOrderListRequest::getPageNum()const +{ + return pageNum_; +} + +void FindApprovalOrderListRequest::setPageNum(int pageNum) +{ + pageNum_ = pageNum; + setParameter("PageNum", std::to_string(pageNum)); +} + +long FindApprovalOrderListRequest::getServiceId()const +{ + return serviceId_; +} + +void FindApprovalOrderListRequest::setServiceId(long serviceId) +{ + serviceId_ = serviceId; + setParameter("ServiceId", std::to_string(serviceId)); +} + +bool FindApprovalOrderListRequest::getOnlyPending()const +{ + return onlyPending_; +} + +void FindApprovalOrderListRequest::setOnlyPending(bool onlyPending) +{ + onlyPending_ = onlyPending; + setParameter("OnlyPending", std::to_string(onlyPending)); +} + diff --git a/csb/src/model/FindApprovalOrderListResult.cc b/csb/src/model/FindApprovalOrderListResult.cc new file mode 100644 index 000000000..18585d87b --- /dev/null +++ b/csb/src/model/FindApprovalOrderListResult.cc @@ -0,0 +1,119 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::CSB; +using namespace AlibabaCloud::CSB::Model; + +FindApprovalOrderListResult::FindApprovalOrderListResult() : + ServiceResult() +{} + +FindApprovalOrderListResult::FindApprovalOrderListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +FindApprovalOrderListResult::~FindApprovalOrderListResult() +{} + +void FindApprovalOrderListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["CurrentPage"].isNull()) + data_.currentPage = std::stoi(dataNode["CurrentPage"].asString()); + if(!dataNode["PageNumber"].isNull()) + data_.pageNumber = std::stoi(dataNode["PageNumber"].asString()); + auto allOrderList = value["OrderList"]["Order"]; + for (auto value : allOrderList) + { + Data::Order orderObject; + if(!value["Alias"].isNull()) + orderObject.alias = value["Alias"].asString(); + if(!value["CredentialGroupId"].isNull()) + orderObject.credentialGroupId = std::stol(value["CredentialGroupId"].asString()); + if(!value["CsbId"].isNull()) + orderObject.csbId = std::stol(value["CsbId"].asString()); + if(!value["GmtCreate"].isNull()) + orderObject.gmtCreate = std::stol(value["GmtCreate"].asString()); + if(!value["GmtModified"].isNull()) + orderObject.gmtModified = std::stol(value["GmtModified"].asString()); + if(!value["GroupName"].isNull()) + orderObject.groupName = value["GroupName"].asString(); + if(!value["Id"].isNull()) + orderObject.id = std::stol(value["Id"].asString()); + if(!value["ProjectName"].isNull()) + orderObject.projectName = value["ProjectName"].asString(); + if(!value["ServiceId"].isNull()) + orderObject.serviceId = std::stol(value["ServiceId"].asString()); + if(!value["ServiceName"].isNull()) + orderObject.serviceName = value["ServiceName"].asString(); + if(!value["ServiceStatus"].isNull()) + orderObject.serviceStatus = std::stoi(value["ServiceStatus"].asString()); + if(!value["ServiceVersion"].isNull()) + orderObject.serviceVersion = value["ServiceVersion"].asString(); + if(!value["StatisticName"].isNull()) + orderObject.statisticName = value["StatisticName"].asString(); + if(!value["Status"].isNull()) + orderObject.status = std::stoi(value["Status"].asString()); + if(!value["StrictWhiteListJson"].isNull()) + orderObject.strictWhiteListJson = value["StrictWhiteListJson"].asString(); + if(!value["UserId"].isNull()) + orderObject.userId = value["UserId"].asString(); + if(!value["UserName"].isNull()) + orderObject.userName = value["UserName"].asString(); + auto slaInfoNode = value["SlaInfo"]; + if(!slaInfoNode["Qph"].isNull()) + orderObject.slaInfo.qph = std::stoi(slaInfoNode["Qph"].asString()); + if(!slaInfoNode["Qps"].isNull()) + orderObject.slaInfo.qps = std::stoi(slaInfoNode["Qps"].asString()); + auto totalNode = value["Total"]; + if(!totalNode["ErrorNum"].isNull()) + orderObject.total.errorNum = std::stoi(totalNode["ErrorNum"].asString()); + if(!totalNode["Total"].isNull()) + orderObject.total.total = std::stoi(totalNode["Total"].asString()); + data_.orderList.push_back(orderObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string FindApprovalOrderListResult::getMessage()const +{ + return message_; +} + +FindApprovalOrderListResult::Data FindApprovalOrderListResult::getData()const +{ + return data_; +} + +int FindApprovalOrderListResult::getCode()const +{ + return code_; +} + diff --git a/csb/src/model/FindApproveServiceListRequest.cc b/csb/src/model/FindApproveServiceListRequest.cc new file mode 100644 index 000000000..7d3593045 --- /dev/null +++ b/csb/src/model/FindApproveServiceListRequest.cc @@ -0,0 +1,104 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CSB::Model::FindApproveServiceListRequest; + +FindApproveServiceListRequest::FindApproveServiceListRequest() : + RpcServiceRequest("csb", "2017-11-18", "FindApproveServiceList") +{} + +FindApproveServiceListRequest::~FindApproveServiceListRequest() +{} + +std::string FindApproveServiceListRequest::getProjectName()const +{ + return projectName_; +} + +void FindApproveServiceListRequest::setProjectName(const std::string& projectName) +{ + projectName_ = projectName; + setParameter("ProjectName", projectName); +} + +std::string FindApproveServiceListRequest::getApproveLevel()const +{ + return approveLevel_; +} + +void FindApproveServiceListRequest::setApproveLevel(const std::string& approveLevel) +{ + approveLevel_ = approveLevel; + setParameter("ApproveLevel", approveLevel); +} + +bool FindApproveServiceListRequest::getShowDelService()const +{ + return showDelService_; +} + +void FindApproveServiceListRequest::setShowDelService(bool showDelService) +{ + showDelService_ = showDelService; + setParameter("ShowDelService", std::to_string(showDelService)); +} + +long FindApproveServiceListRequest::getCsbId()const +{ + return csbId_; +} + +void FindApproveServiceListRequest::setCsbId(long csbId) +{ + csbId_ = csbId; + setParameter("CsbId", std::to_string(csbId)); +} + +std::string FindApproveServiceListRequest::getRegionId()const +{ + return regionId_; +} + +void FindApproveServiceListRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string FindApproveServiceListRequest::getAlias()const +{ + return alias_; +} + +void FindApproveServiceListRequest::setAlias(const std::string& alias) +{ + alias_ = alias; + setParameter("Alias", alias); +} + +std::string FindApproveServiceListRequest::getServiceName()const +{ + return serviceName_; +} + +void FindApproveServiceListRequest::setServiceName(const std::string& serviceName) +{ + serviceName_ = serviceName; + setParameter("ServiceName", serviceName); +} + diff --git a/csb/src/model/FindApproveServiceListResult.cc b/csb/src/model/FindApproveServiceListResult.cc new file mode 100644 index 000000000..4e918446b --- /dev/null +++ b/csb/src/model/FindApproveServiceListResult.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::CSB; +using namespace AlibabaCloud::CSB::Model; + +FindApproveServiceListResult::FindApproveServiceListResult() : + ServiceResult() +{} + +FindApproveServiceListResult::FindApproveServiceListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +FindApproveServiceListResult::~FindApproveServiceListResult() +{} + +void FindApproveServiceListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Total"].isNull()) + data_.total = std::stoi(dataNode["Total"].asString()); + if(!dataNode["PageNumber"].isNull()) + data_.pageNumber = std::stoi(dataNode["PageNumber"].asString()); + if(!dataNode["CurrentPage"].isNull()) + data_.currentPage = std::stoi(dataNode["CurrentPage"].asString()); + auto allServiceList = value["ServiceList"]["Service"]; + for (auto value : allServiceList) + { + Data::Service serviceObject; + if(!value["AllVisiable"].isNull()) + serviceObject.allVisiable = value["AllVisiable"].asString() == "true"; + if(!value["CasTargets"].isNull()) + serviceObject.casTargets = value["CasTargets"].asString(); + if(!value["CreateTime"].isNull()) + serviceObject.createTime = std::stol(value["CreateTime"].asString()); + if(!value["CsbId"].isNull()) + serviceObject.csbId = std::stol(value["CsbId"].asString()); + if(!value["Id"].isNull()) + serviceObject.id = std::stol(value["Id"].asString()); + if(!value["InterfaceName"].isNull()) + serviceObject.interfaceName = value["InterfaceName"].asString(); + if(!value["ModifiedTime"].isNull()) + serviceObject.modifiedTime = std::stol(value["ModifiedTime"].asString()); + if(!value["OwnerId"].isNull()) + serviceObject.ownerId = value["OwnerId"].asString(); + if(!value["PrincipalName"].isNull()) + serviceObject.principalName = value["PrincipalName"].asString(); + if(!value["ProjectId"].isNull()) + serviceObject.projectId = std::stol(value["ProjectId"].asString()); + if(!value["ProjectName"].isNull()) + serviceObject.projectName = value["ProjectName"].asString(); + if(!value["Qps"].isNull()) + serviceObject.qps = std::stoi(value["Qps"].asString()); + if(!value["Scope"].isNull()) + serviceObject.scope = value["Scope"].asString(); + if(!value["ServiceName"].isNull()) + serviceObject.serviceName = value["ServiceName"].asString(); + if(!value["ServiceVersion"].isNull()) + serviceObject.serviceVersion = value["ServiceVersion"].asString(); + if(!value["SkipAuth"].isNull()) + serviceObject.skipAuth = value["SkipAuth"].asString() == "true"; + if(!value["StatisticName"].isNull()) + serviceObject.statisticName = value["StatisticName"].asString(); + if(!value["Status"].isNull()) + serviceObject.status = std::stoi(value["Status"].asString()); + if(!value["UserId"].isNull()) + serviceObject.userId = value["UserId"].asString(); + data_.serviceList.push_back(serviceObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string FindApproveServiceListResult::getMessage()const +{ + return message_; +} + +FindApproveServiceListResult::Data FindApproveServiceListResult::getData()const +{ + return data_; +} + +int FindApproveServiceListResult::getCode()const +{ + return code_; +} + diff --git a/csb/src/model/FindCredentialsListRequest.cc b/csb/src/model/FindCredentialsListRequest.cc new file mode 100644 index 000000000..7d751c419 --- /dev/null +++ b/csb/src/model/FindCredentialsListRequest.cc @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CSB::Model::FindCredentialsListRequest; + +FindCredentialsListRequest::FindCredentialsListRequest() : + RpcServiceRequest("csb", "2017-11-18", "FindCredentialsList") +{} + +FindCredentialsListRequest::~FindCredentialsListRequest() +{} + +long FindCredentialsListRequest::getCsbId()const +{ + return csbId_; +} + +void FindCredentialsListRequest::setCsbId(long csbId) +{ + csbId_ = csbId; + setParameter("CsbId", std::to_string(csbId)); +} + +std::string FindCredentialsListRequest::getRegionId()const +{ + return regionId_; +} + +void FindCredentialsListRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +int FindCredentialsListRequest::getPageNum()const +{ + return pageNum_; +} + +void FindCredentialsListRequest::setPageNum(int pageNum) +{ + pageNum_ = pageNum; + setParameter("PageNum", std::to_string(pageNum)); +} + +std::string FindCredentialsListRequest::getGroupName()const +{ + return groupName_; +} + +void FindCredentialsListRequest::setGroupName(const std::string& groupName) +{ + groupName_ = groupName; + setParameter("GroupName", groupName); +} + diff --git a/csb/src/model/FindCredentialsListResult.cc b/csb/src/model/FindCredentialsListResult.cc new file mode 100644 index 000000000..d3f64547b --- /dev/null +++ b/csb/src/model/FindCredentialsListResult.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 +#include + +using namespace AlibabaCloud::CSB; +using namespace AlibabaCloud::CSB::Model; + +FindCredentialsListResult::FindCredentialsListResult() : + ServiceResult() +{} + +FindCredentialsListResult::FindCredentialsListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +FindCredentialsListResult::~FindCredentialsListResult() +{} + +void FindCredentialsListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["CurrentPage"].isNull()) + data_.currentPage = std::stoi(dataNode["CurrentPage"].asString()); + if(!dataNode["PageNumber"].isNull()) + data_.pageNumber = std::stoi(dataNode["PageNumber"].asString()); + auto allCredentialList = value["CredentialList"]["Credential"]; + for (auto value : allCredentialList) + { + Data::Credential credentialObject; + if(!value["GmtCreate"].isNull()) + credentialObject.gmtCreate = std::stol(value["GmtCreate"].asString()); + if(!value["Id"].isNull()) + credentialObject.id = std::stol(value["Id"].asString()); + if(!value["Name"].isNull()) + credentialObject.name = value["Name"].asString(); + if(!value["OwnerAttr"].isNull()) + credentialObject.ownerAttr = value["OwnerAttr"].asString(); + if(!value["UserId"].isNull()) + credentialObject.userId = value["UserId"].asString(); + auto currentCredentialNode = value["CurrentCredential"]; + if(!currentCredentialNode["AccessKey"].isNull()) + credentialObject.currentCredential.accessKey = currentCredentialNode["AccessKey"].asString(); + if(!currentCredentialNode["SecretKey"].isNull()) + credentialObject.currentCredential.secretKey = currentCredentialNode["SecretKey"].asString(); + auto newCredentialNode = value["NewCredential"]; + if(!newCredentialNode["AccessKey"].isNull()) + credentialObject.newCredential.accessKey = newCredentialNode["AccessKey"].asString(); + if(!newCredentialNode["SecretKey"].isNull()) + credentialObject.newCredential.secretKey = newCredentialNode["SecretKey"].asString(); + data_.credentialList.push_back(credentialObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string FindCredentialsListResult::getMessage()const +{ + return message_; +} + +FindCredentialsListResult::Data FindCredentialsListResult::getData()const +{ + return data_; +} + +int FindCredentialsListResult::getCode()const +{ + return code_; +} + diff --git a/csb/src/model/FindInstanceListRequest.cc b/csb/src/model/FindInstanceListRequest.cc new file mode 100644 index 000000000..98dccc0a8 --- /dev/null +++ b/csb/src/model/FindInstanceListRequest.cc @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CSB::Model::FindInstanceListRequest; + +FindInstanceListRequest::FindInstanceListRequest() : + RpcServiceRequest("csb", "2017-11-18", "FindInstanceList") +{} + +FindInstanceListRequest::~FindInstanceListRequest() +{} + +std::string FindInstanceListRequest::getSearchTxt()const +{ + return searchTxt_; +} + +void FindInstanceListRequest::setSearchTxt(const std::string& searchTxt) +{ + searchTxt_ = searchTxt; + setParameter("SearchTxt", searchTxt); +} + +std::string FindInstanceListRequest::getRegionId()const +{ + return regionId_; +} + +void FindInstanceListRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +long FindInstanceListRequest::getCsbId()const +{ + return csbId_; +} + +void FindInstanceListRequest::setCsbId(long csbId) +{ + csbId_ = csbId; + setParameter("CsbId", std::to_string(csbId)); +} + +int FindInstanceListRequest::getPageNum()const +{ + return pageNum_; +} + +void FindInstanceListRequest::setPageNum(int pageNum) +{ + pageNum_ = pageNum; + setParameter("PageNum", std::to_string(pageNum)); +} + +int FindInstanceListRequest::getStatus()const +{ + return status_; +} + +void FindInstanceListRequest::setStatus(int status) +{ + status_ = status; + setParameter("Status", std::to_string(status)); +} + diff --git a/csb/src/model/FindInstanceListResult.cc b/csb/src/model/FindInstanceListResult.cc new file mode 100644 index 000000000..aeaa343e6 --- /dev/null +++ b/csb/src/model/FindInstanceListResult.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 +#include + +using namespace AlibabaCloud::CSB; +using namespace AlibabaCloud::CSB::Model; + +FindInstanceListResult::FindInstanceListResult() : + ServiceResult() +{} + +FindInstanceListResult::FindInstanceListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +FindInstanceListResult::~FindInstanceListResult() +{} + +void FindInstanceListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["CurrentPage"].isNull()) + data_.currentPage = std::stoi(dataNode["CurrentPage"].asString()); + if(!dataNode["PageNumber"].isNull()) + data_.pageNumber = std::stoi(dataNode["PageNumber"].asString()); + auto allItemList = value["ItemList"]["Item"]; + for (auto value : allItemList) + { + Data::Item itemObject; + if(!value["Description"].isNull()) + itemObject.description = value["Description"].asString(); + if(!value["FrontStatus"].isNull()) + itemObject.frontStatus = value["FrontStatus"].asString(); + if(!value["GmtCreate"].isNull()) + itemObject.gmtCreate = std::stol(value["GmtCreate"].asString()); + if(!value["GmtModified"].isNull()) + itemObject.gmtModified = std::stol(value["GmtModified"].asString()); + if(!value["Id"].isNull()) + itemObject.id = std::stol(value["Id"].asString()); + if(!value["InstanceCategory"].isNull()) + itemObject.instanceCategory = std::stoi(value["InstanceCategory"].asString()); + if(!value["Name"].isNull()) + itemObject.name = value["Name"].asString(); + if(!value["StatusCode"].isNull()) + itemObject.statusCode = std::stoi(value["StatusCode"].asString()); + if(!value["Visible"].isNull()) + itemObject.visible = value["Visible"].asString() == "true"; + if(!value["VpcName"].isNull()) + itemObject.vpcName = value["VpcName"].asString(); + data_.itemList.push_back(itemObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string FindInstanceListResult::getMessage()const +{ + return message_; +} + +FindInstanceListResult::Data FindInstanceListResult::getData()const +{ + return data_; +} + +int FindInstanceListResult::getCode()const +{ + return code_; +} + diff --git a/csb/src/model/FindOrderableListRequest.cc b/csb/src/model/FindOrderableListRequest.cc new file mode 100644 index 000000000..bf36e9617 --- /dev/null +++ b/csb/src/model/FindOrderableListRequest.cc @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CSB::Model::FindOrderableListRequest; + +FindOrderableListRequest::FindOrderableListRequest() : + RpcServiceRequest("csb", "2017-11-18", "FindOrderableList") +{} + +FindOrderableListRequest::~FindOrderableListRequest() +{} + +std::string FindOrderableListRequest::getProjectName()const +{ + return projectName_; +} + +void FindOrderableListRequest::setProjectName(const std::string& projectName) +{ + projectName_ = projectName; + setParameter("ProjectName", projectName); +} + +long FindOrderableListRequest::getCsbId()const +{ + return csbId_; +} + +void FindOrderableListRequest::setCsbId(long csbId) +{ + csbId_ = csbId; + setParameter("CsbId", std::to_string(csbId)); +} + +std::string FindOrderableListRequest::getRegionId()const +{ + return regionId_; +} + +void FindOrderableListRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string FindOrderableListRequest::getAlias()const +{ + return alias_; +} + +void FindOrderableListRequest::setAlias(const std::string& alias) +{ + alias_ = alias; + setParameter("Alias", alias); +} + +std::string FindOrderableListRequest::getServiceName()const +{ + return serviceName_; +} + +void FindOrderableListRequest::setServiceName(const std::string& serviceName) +{ + serviceName_ = serviceName; + setParameter("ServiceName", serviceName); +} + +int FindOrderableListRequest::getPageNum()const +{ + return pageNum_; +} + +void FindOrderableListRequest::setPageNum(int pageNum) +{ + pageNum_ = pageNum; + setParameter("PageNum", std::to_string(pageNum)); +} + diff --git a/csb/src/model/FindOrderableListResult.cc b/csb/src/model/FindOrderableListResult.cc new file mode 100644 index 000000000..e5ae955d9 --- /dev/null +++ b/csb/src/model/FindOrderableListResult.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::CSB; +using namespace AlibabaCloud::CSB::Model; + +FindOrderableListResult::FindOrderableListResult() : + ServiceResult() +{} + +FindOrderableListResult::FindOrderableListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +FindOrderableListResult::~FindOrderableListResult() +{} + +void FindOrderableListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["CurrentPage"].isNull()) + data_.currentPage = std::stoi(dataNode["CurrentPage"].asString()); + if(!dataNode["PageNumber"].isNull()) + data_.pageNumber = std::stoi(dataNode["PageNumber"].asString()); + auto allServiceList = value["ServiceList"]["Service"]; + for (auto value : allServiceList) + { + Data::Service serviceObject; + if(!value["Alias"].isNull()) + serviceObject.alias = value["Alias"].asString(); + if(!value["AllVisiable"].isNull()) + serviceObject.allVisiable = value["AllVisiable"].asString() == "true"; + if(!value["ApproveUserId"].isNull()) + serviceObject.approveUserId = value["ApproveUserId"].asString(); + if(!value["CasTargets"].isNull()) + serviceObject.casTargets = value["CasTargets"].asString(); + if(!value["CreateTime"].isNull()) + serviceObject.createTime = std::stol(value["CreateTime"].asString()); + if(!value["CsbId"].isNull()) + serviceObject.csbId = std::stol(value["CsbId"].asString()); + if(!value["Id"].isNull()) + serviceObject.id = std::stol(value["Id"].asString()); + if(!value["InterfaceName"].isNull()) + serviceObject.interfaceName = value["InterfaceName"].asString(); + if(!value["ModifiedTime"].isNull()) + serviceObject.modifiedTime = std::stol(value["ModifiedTime"].asString()); + if(!value["OwnerId"].isNull()) + serviceObject.ownerId = value["OwnerId"].asString(); + if(!value["PrincipalName"].isNull()) + serviceObject.principalName = value["PrincipalName"].asString(); + if(!value["ProjectId"].isNull()) + serviceObject.projectId = value["ProjectId"].asString(); + if(!value["ProjectName"].isNull()) + serviceObject.projectName = value["ProjectName"].asString(); + if(!value["Scope"].isNull()) + serviceObject.scope = value["Scope"].asString(); + if(!value["ServiceName"].isNull()) + serviceObject.serviceName = value["ServiceName"].asString(); + if(!value["ServiceVersion"].isNull()) + serviceObject.serviceVersion = value["ServiceVersion"].asString(); + if(!value["SkipAuth"].isNull()) + serviceObject.skipAuth = value["SkipAuth"].asString() == "true"; + if(!value["StatisticName"].isNull()) + serviceObject.statisticName = value["StatisticName"].asString(); + if(!value["Status"].isNull()) + serviceObject.status = std::stoi(value["Status"].asString()); + if(!value["UserId"].isNull()) + serviceObject.userId = value["UserId"].asString(); + data_.serviceList.push_back(serviceObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string FindOrderableListResult::getMessage()const +{ + return message_; +} + +FindOrderableListResult::Data FindOrderableListResult::getData()const +{ + return data_; +} + +int FindOrderableListResult::getCode()const +{ + return code_; +} + diff --git a/csb/src/model/FindOrderedListRequest.cc b/csb/src/model/FindOrderedListRequest.cc new file mode 100644 index 000000000..da4f66d33 --- /dev/null +++ b/csb/src/model/FindOrderedListRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::CSB::Model::FindOrderedListRequest; + +FindOrderedListRequest::FindOrderedListRequest() : + RpcServiceRequest("csb", "2017-11-18", "FindOrderedList") +{} + +FindOrderedListRequest::~FindOrderedListRequest() +{} + +std::string FindOrderedListRequest::getProjectName()const +{ + return projectName_; +} + +void FindOrderedListRequest::setProjectName(const std::string& projectName) +{ + projectName_ = projectName; + setParameter("ProjectName", projectName); +} + +bool FindOrderedListRequest::getShowDelOrder()const +{ + return showDelOrder_; +} + +void FindOrderedListRequest::setShowDelOrder(bool showDelOrder) +{ + showDelOrder_ = showDelOrder; + setParameter("ShowDelOrder", std::to_string(showDelOrder)); +} + +std::string FindOrderedListRequest::getRegionId()const +{ + return regionId_; +} + +void FindOrderedListRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +long FindOrderedListRequest::getCsbId()const +{ + return csbId_; +} + +void FindOrderedListRequest::setCsbId(long csbId) +{ + csbId_ = csbId; + setParameter("CsbId", std::to_string(csbId)); +} + +std::string FindOrderedListRequest::getAlias()const +{ + return alias_; +} + +void FindOrderedListRequest::setAlias(const std::string& alias) +{ + alias_ = alias; + setParameter("Alias", alias); +} + +std::string FindOrderedListRequest::getServiceName()const +{ + return serviceName_; +} + +void FindOrderedListRequest::setServiceName(const std::string& serviceName) +{ + serviceName_ = serviceName; + setParameter("ServiceName", serviceName); +} + +int FindOrderedListRequest::getPageNum()const +{ + return pageNum_; +} + +void FindOrderedListRequest::setPageNum(int pageNum) +{ + pageNum_ = pageNum; + setParameter("PageNum", std::to_string(pageNum)); +} + +long FindOrderedListRequest::getServiceId()const +{ + return serviceId_; +} + +void FindOrderedListRequest::setServiceId(long serviceId) +{ + serviceId_ = serviceId; + setParameter("ServiceId", std::to_string(serviceId)); +} + +std::string FindOrderedListRequest::getStatus()const +{ + return status_; +} + +void FindOrderedListRequest::setStatus(const std::string& status) +{ + status_ = status; + setParameter("Status", status); +} + diff --git a/csb/src/model/FindOrderedListResult.cc b/csb/src/model/FindOrderedListResult.cc new file mode 100644 index 000000000..2898e77e9 --- /dev/null +++ b/csb/src/model/FindOrderedListResult.cc @@ -0,0 +1,160 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::CSB; +using namespace AlibabaCloud::CSB::Model; + +FindOrderedListResult::FindOrderedListResult() : + ServiceResult() +{} + +FindOrderedListResult::FindOrderedListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +FindOrderedListResult::~FindOrderedListResult() +{} + +void FindOrderedListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["CurrentPage"].isNull()) + data_.currentPage = std::stoi(dataNode["CurrentPage"].asString()); + if(!dataNode["PageNumber"].isNull()) + data_.pageNumber = std::stoi(dataNode["PageNumber"].asString()); + auto allOrderList = value["OrderList"]["Order"]; + for (auto value : allOrderList) + { + Data::Order orderObject; + if(!value["Alias"].isNull()) + orderObject.alias = value["Alias"].asString(); + if(!value["ProjectName"].isNull()) + orderObject.projectName = value["ProjectName"].asString(); + if(!value["ServiceName"].isNull()) + orderObject.serviceName = value["ServiceName"].asString(); + if(!value["ServiceVersion"].isNull()) + orderObject.serviceVersion = value["ServiceVersion"].asString(); + if(!value["OrderStatus"].isNull()) + orderObject.orderStatus = std::stoi(value["OrderStatus"].asString()); + if(!value["AliveOrderCount"].isNull()) + orderObject.aliveOrderCount = std::stoi(value["AliveOrderCount"].asString()); + if(!value["GmtCreate"].isNull()) + orderObject.gmtCreate = std::stol(value["GmtCreate"].asString()); + if(!value["MaxRT"].isNull()) + orderObject.maxRT = std::stoi(value["MaxRT"].asString()); + if(!value["MinRT"].isNull()) + orderObject.minRT = std::stoi(value["MinRT"].asString()); + if(!value["ServiceId"].isNull()) + orderObject.serviceId = value["ServiceId"].asString(); + if(!value["ServiceStatus"].isNull()) + orderObject.serviceStatus = std::stoi(value["ServiceStatus"].asString()); + auto allErrorTypeCatagoryList = value["ErrorTypeCatagoryList"]["ErrorTypeCatagory"]; + for (auto value : allErrorTypeCatagoryList) + { + Data::Order::ErrorTypeCatagory errorTypeCatagoryListObject; + if(!value["Name"].isNull()) + errorTypeCatagoryListObject.name = value["Name"].asString(); + if(!value["Total"].isNull()) + errorTypeCatagoryListObject.total = std::stol(value["Total"].asString()); + if(!value["ErrorNum"].isNull()) + errorTypeCatagoryListObject.errorNum = std::stol(value["ErrorNum"].asString()); + orderObject.errorTypeCatagoryList.push_back(errorTypeCatagoryListObject); + } + auto allOrders = value["Orders"]["Order"]; + for (auto value : allOrders) + { + Data::Order::Order1 ordersObject; + if(!value["Alias"].isNull()) + ordersObject.alias = value["Alias"].asString(); + if(!value["ApproveComments"].isNull()) + ordersObject.approveComments = value["ApproveComments"].asString(); + if(!value["CsbId"].isNull()) + ordersObject.csbId = std::stol(value["CsbId"].asString()); + if(!value["GmtCreate"].isNull()) + ordersObject.gmtCreate = std::stol(value["GmtCreate"].asString()); + if(!value["GmtModified"].isNull()) + ordersObject.gmtModified = std::stol(value["GmtModified"].asString()); + if(!value["GroupName"].isNull()) + ordersObject.groupName = value["GroupName"].asString(); + if(!value["Id"].isNull()) + ordersObject.id = std::stol(value["Id"].asString()); + if(!value["ProjectName"].isNull()) + ordersObject.projectName = value["ProjectName"].asString(); + if(!value["ServiceId"].isNull()) + ordersObject.serviceId = std::stol(value["ServiceId"].asString()); + if(!value["ServiceName"].isNull()) + ordersObject.serviceName = value["ServiceName"].asString(); + if(!value["ServiceStatus"].isNull()) + ordersObject.serviceStatus = std::stoi(value["ServiceStatus"].asString()); + if(!value["ServiceVersion"].isNull()) + ordersObject.serviceVersion = value["ServiceVersion"].asString(); + if(!value["StatisticName"].isNull()) + ordersObject.statisticName = value["StatisticName"].asString(); + if(!value["Status"].isNull()) + ordersObject.status = std::stoi(value["Status"].asString()); + if(!value["UserId"].isNull()) + ordersObject.userId = value["UserId"].asString(); + auto slaInfoNode = value["SlaInfo"]; + if(!slaInfoNode["Qph"].isNull()) + ordersObject.slaInfo.qph = slaInfoNode["Qph"].asString(); + if(!slaInfoNode["Qps"].isNull()) + ordersObject.slaInfo.qps = slaInfoNode["Qps"].asString(); + auto total2Node = value["Total"]; + if(!total2Node["ErrorNum"].isNull()) + ordersObject.total2.errorNum = std::stoi(total2Node["ErrorNum"].asString()); + if(!total2Node["Total"].isNull()) + ordersObject.total2.total = std::stoi(total2Node["Total"].asString()); + orderObject.orders.push_back(ordersObject); + } + auto totalNode = value["Total"]; + if(!totalNode["ErrorNum"].isNull()) + orderObject.total.errorNum = std::stoi(totalNode["ErrorNum"].asString()); + if(!totalNode["Total"].isNull()) + orderObject.total.total = std::stoi(totalNode["Total"].asString()); + data_.orderList.push_back(orderObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string FindOrderedListResult::getMessage()const +{ + return message_; +} + +FindOrderedListResult::Data FindOrderedListResult::getData()const +{ + return data_; +} + +int FindOrderedListResult::getCode()const +{ + return code_; +} + diff --git a/csb/src/model/FindProjectListRequest.cc b/csb/src/model/FindProjectListRequest.cc new file mode 100644 index 000000000..152c5b4fd --- /dev/null +++ b/csb/src/model/FindProjectListRequest.cc @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CSB::Model::FindProjectListRequest; + +FindProjectListRequest::FindProjectListRequest() : + RpcServiceRequest("csb", "2017-11-18", "FindProjectList") +{} + +FindProjectListRequest::~FindProjectListRequest() +{} + +std::string FindProjectListRequest::getProjectName()const +{ + return projectName_; +} + +void FindProjectListRequest::setProjectName(const std::string& projectName) +{ + projectName_ = projectName; + setParameter("ProjectName", projectName); +} + +long FindProjectListRequest::getCsbId()const +{ + return csbId_; +} + +void FindProjectListRequest::setCsbId(long csbId) +{ + csbId_ = csbId; + setParameter("CsbId", std::to_string(csbId)); +} + +std::string FindProjectListRequest::getRegionId()const +{ + return regionId_; +} + +void FindProjectListRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +int FindProjectListRequest::getPageNum()const +{ + return pageNum_; +} + +void FindProjectListRequest::setPageNum(int pageNum) +{ + pageNum_ = pageNum; + setParameter("PageNum", std::to_string(pageNum)); +} + diff --git a/csb/src/model/FindProjectListResult.cc b/csb/src/model/FindProjectListResult.cc new file mode 100644 index 000000000..9031ee6ce --- /dev/null +++ b/csb/src/model/FindProjectListResult.cc @@ -0,0 +1,111 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::CSB; +using namespace AlibabaCloud::CSB::Model; + +FindProjectListResult::FindProjectListResult() : + ServiceResult() +{} + +FindProjectListResult::FindProjectListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +FindProjectListResult::~FindProjectListResult() +{} + +void FindProjectListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["CurrentPage"].isNull()) + data_.currentPage = std::stoi(dataNode["CurrentPage"].asString()); + if(!dataNode["PageNumber"].isNull()) + data_.pageNumber = std::stoi(dataNode["PageNumber"].asString()); + if(!dataNode["Total"].isNull()) + data_.total = std::stoi(dataNode["Total"].asString()); + auto allProjectList = value["ProjectList"]["Project"]; + for (auto value : allProjectList) + { + Data::Project projectObject; + if(!value["ApiNum"].isNull()) + projectObject.apiNum = std::stoi(value["ApiNum"].asString()); + if(!value["CsbId"].isNull()) + projectObject.csbId = std::stol(value["CsbId"].asString()); + if(!value["DeleteFlag"].isNull()) + projectObject.deleteFlag = std::stoi(value["DeleteFlag"].asString()); + if(!value["Description"].isNull()) + projectObject.description = value["Description"].asString(); + if(!value["GmtCreate"].isNull()) + projectObject.gmtCreate = std::stol(value["GmtCreate"].asString()); + if(!value["GmtModified"].isNull()) + projectObject.gmtModified = std::stol(value["GmtModified"].asString()); + if(!value["Id"].isNull()) + projectObject.id = std::stol(value["Id"].asString()); + if(!value["InterfaceJarLocation"].isNull()) + projectObject.interfaceJarLocation = value["InterfaceJarLocation"].asString(); + if(!value["InterfaceJarName"].isNull()) + projectObject.interfaceJarName = value["InterfaceJarName"].asString(); + if(!value["JarFileKey"].isNull()) + projectObject.jarFileKey = value["JarFileKey"].asString(); + if(!value["OwnerId"].isNull()) + projectObject.ownerId = value["OwnerId"].asString(); + if(!value["ProjectName"].isNull()) + projectObject.projectName = value["ProjectName"].asString(); + if(!value["ProjectOwnerEmail"].isNull()) + projectObject.projectOwnerEmail = value["ProjectOwnerEmail"].asString(); + if(!value["ProjectOwnerName"].isNull()) + projectObject.projectOwnerName = value["ProjectOwnerName"].asString(); + if(!value["ProjectOwnerPhoneNum"].isNull()) + projectObject.projectOwnerPhoneNum = value["ProjectOwnerPhoneNum"].asString(); + if(!value["Status"].isNull()) + projectObject.status = std::stoi(value["Status"].asString()); + if(!value["UserId"].isNull()) + projectObject.userId = value["UserId"].asString(); + data_.projectList.push_back(projectObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string FindProjectListResult::getMessage()const +{ + return message_; +} + +FindProjectListResult::Data FindProjectListResult::getData()const +{ + return data_; +} + +int FindProjectListResult::getCode()const +{ + return code_; +} + diff --git a/csb/src/model/FindProjectsNameListRequest.cc b/csb/src/model/FindProjectsNameListRequest.cc new file mode 100644 index 000000000..5da709cbf --- /dev/null +++ b/csb/src/model/FindProjectsNameListRequest.cc @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CSB::Model::FindProjectsNameListRequest; + +FindProjectsNameListRequest::FindProjectsNameListRequest() : + RpcServiceRequest("csb", "2017-11-18", "FindProjectsNameList") +{} + +FindProjectsNameListRequest::~FindProjectsNameListRequest() +{} + +std::string FindProjectsNameListRequest::getOperationFlag()const +{ + return operationFlag_; +} + +void FindProjectsNameListRequest::setOperationFlag(const std::string& operationFlag) +{ + operationFlag_ = operationFlag; + setParameter("OperationFlag", operationFlag); +} + +long FindProjectsNameListRequest::getCsbId()const +{ + return csbId_; +} + +void FindProjectsNameListRequest::setCsbId(long csbId) +{ + csbId_ = csbId; + setParameter("CsbId", std::to_string(csbId)); +} + +std::string FindProjectsNameListRequest::getRegionId()const +{ + return regionId_; +} + +void FindProjectsNameListRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/csb/src/model/FindProjectsNameListResult.cc b/csb/src/model/FindProjectsNameListResult.cc new file mode 100644 index 000000000..c91123f60 --- /dev/null +++ b/csb/src/model/FindProjectsNameListResult.cc @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CSB; +using namespace AlibabaCloud::CSB::Model; + +FindProjectsNameListResult::FindProjectsNameListResult() : + ServiceResult() +{} + +FindProjectsNameListResult::FindProjectsNameListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +FindProjectsNameListResult::~FindProjectsNameListResult() +{} + +void FindProjectsNameListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto allProjectNameList = dataNode["ProjectNameList"]["ProjectName"]; + for (auto value : allProjectNameList) + data_.projectNameList.push_back(value.asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string FindProjectsNameListResult::getMessage()const +{ + return message_; +} + +FindProjectsNameListResult::Data FindProjectsNameListResult::getData()const +{ + return data_; +} + +int FindProjectsNameListResult::getCode()const +{ + return code_; +} + diff --git a/csb/src/model/FindServiceListRequest.cc b/csb/src/model/FindServiceListRequest.cc new file mode 100644 index 000000000..f8b1a05bb --- /dev/null +++ b/csb/src/model/FindServiceListRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::CSB::Model::FindServiceListRequest; + +FindServiceListRequest::FindServiceListRequest() : + RpcServiceRequest("csb", "2017-11-18", "FindServiceList") +{} + +FindServiceListRequest::~FindServiceListRequest() +{} + +std::string FindServiceListRequest::getProjectName()const +{ + return projectName_; +} + +void FindServiceListRequest::setProjectName(const std::string& projectName) +{ + projectName_ = projectName; + setParameter("ProjectName", projectName); +} + +bool FindServiceListRequest::getShowDelService()const +{ + return showDelService_; +} + +void FindServiceListRequest::setShowDelService(bool showDelService) +{ + showDelService_ = showDelService; + setParameter("ShowDelService", std::to_string(showDelService)); +} + +int FindServiceListRequest::getCasShowType()const +{ + return casShowType_; +} + +void FindServiceListRequest::setCasShowType(int casShowType) +{ + casShowType_ = casShowType; + setParameter("CasShowType", std::to_string(casShowType)); +} + +long FindServiceListRequest::getCsbId()const +{ + return csbId_; +} + +void FindServiceListRequest::setCsbId(long csbId) +{ + csbId_ = csbId; + setParameter("CsbId", std::to_string(csbId)); +} + +std::string FindServiceListRequest::getRegionId()const +{ + return regionId_; +} + +void FindServiceListRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string FindServiceListRequest::getAlias()const +{ + return alias_; +} + +void FindServiceListRequest::setAlias(const std::string& alias) +{ + alias_ = alias; + setParameter("Alias", alias); +} + +std::string FindServiceListRequest::getServiceName()const +{ + return serviceName_; +} + +void FindServiceListRequest::setServiceName(const std::string& serviceName) +{ + serviceName_ = serviceName; + setParameter("ServiceName", serviceName); +} + +int FindServiceListRequest::getPageNum()const +{ + return pageNum_; +} + +void FindServiceListRequest::setPageNum(int pageNum) +{ + pageNum_ = pageNum; + setParameter("PageNum", std::to_string(pageNum)); +} + diff --git a/csb/src/model/FindServiceListResult.cc b/csb/src/model/FindServiceListResult.cc new file mode 100644 index 000000000..763adfe01 --- /dev/null +++ b/csb/src/model/FindServiceListResult.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CSB; +using namespace AlibabaCloud::CSB::Model; + +FindServiceListResult::FindServiceListResult() : + ServiceResult() +{} + +FindServiceListResult::FindServiceListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +FindServiceListResult::~FindServiceListResult() +{} + +void FindServiceListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["CurrentPage"].isNull()) + data_.currentPage = std::stoi(dataNode["CurrentPage"].asString()); + if(!dataNode["PageNumber"].isNull()) + data_.pageNumber = std::stoi(dataNode["PageNumber"].asString()); + if(!dataNode["Total"].isNull()) + data_.total = std::stoi(dataNode["Total"].asString()); + auto allServiceList = value["ServiceList"]["Service"]; + for (auto value : allServiceList) + { + Data::Service serviceObject; + if(!value["Alias"].isNull()) + serviceObject.alias = value["Alias"].asString(); + if(!value["AllVisiable"].isNull()) + serviceObject.allVisiable = value["AllVisiable"].asString() == "true"; + if(!value["CreateTime"].isNull()) + serviceObject.createTime = std::stol(value["CreateTime"].asString()); + if(!value["CsbId"].isNull()) + serviceObject.csbId = std::stol(value["CsbId"].asString()); + if(!value["Description"].isNull()) + serviceObject.description = value["Description"].asString(); + if(!value["Id"].isNull()) + serviceObject.id = std::stol(value["Id"].asString()); + if(!value["InterfaceName"].isNull()) + serviceObject.interfaceName = value["InterfaceName"].asString(); + if(!value["ModifiedTime"].isNull()) + serviceObject.modifiedTime = std::stol(value["ModifiedTime"].asString()); + if(!value["OrderInfo"].isNull()) + serviceObject.orderInfo = value["OrderInfo"].asString(); + if(!value["OwnerId"].isNull()) + serviceObject.ownerId = value["OwnerId"].asString(); + if(!value["PrincipalName"].isNull()) + serviceObject.principalName = value["PrincipalName"].asString(); + if(!value["ProjectId"].isNull()) + serviceObject.projectId = std::stol(value["ProjectId"].asString()); + if(!value["ProjectName"].isNull()) + serviceObject.projectName = value["ProjectName"].asString(); + if(!value["Scope"].isNull()) + serviceObject.scope = value["Scope"].asString(); + if(!value["ServiceName"].isNull()) + serviceObject.serviceName = value["ServiceName"].asString(); + if(!value["ServiceVersion"].isNull()) + serviceObject.serviceVersion = value["ServiceVersion"].asString(); + if(!value["SkipAuth"].isNull()) + serviceObject.skipAuth = value["SkipAuth"].asString() == "true"; + if(!value["StatisticName"].isNull()) + serviceObject.statisticName = value["StatisticName"].asString(); + if(!value["Status"].isNull()) + serviceObject.status = std::stoi(value["Status"].asString()); + if(!value["UserId"].isNull()) + serviceObject.userId = value["UserId"].asString(); + data_.serviceList.push_back(serviceObject); + } + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + +} + +std::string FindServiceListResult::getMessage()const +{ + return message_; +} + +FindServiceListResult::Data FindServiceListResult::getData()const +{ + return data_; +} + +int FindServiceListResult::getCode()const +{ + return code_; +} + diff --git a/csb/src/model/GetInstanceRequest.cc b/csb/src/model/GetInstanceRequest.cc new file mode 100644 index 000000000..89089807a --- /dev/null +++ b/csb/src/model/GetInstanceRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CSB::Model::GetInstanceRequest; + +GetInstanceRequest::GetInstanceRequest() : + RpcServiceRequest("csb", "2017-11-18", "GetInstance") +{} + +GetInstanceRequest::~GetInstanceRequest() +{} + +std::string GetInstanceRequest::getRegionId()const +{ + return regionId_; +} + +void GetInstanceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +long GetInstanceRequest::getCsbId()const +{ + return csbId_; +} + +void GetInstanceRequest::setCsbId(long csbId) +{ + csbId_ = csbId; + setParameter("CsbId", std::to_string(csbId)); +} + diff --git a/csb/src/model/GetInstanceResult.cc b/csb/src/model/GetInstanceResult.cc new file mode 100644 index 000000000..bd7febd6a --- /dev/null +++ b/csb/src/model/GetInstanceResult.cc @@ -0,0 +1,136 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CSB; +using namespace AlibabaCloud::CSB::Model; + +GetInstanceResult::GetInstanceResult() : + ServiceResult() +{} + +GetInstanceResult::GetInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetInstanceResult::~GetInstanceResult() +{} + +void GetInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto instanceNode = dataNode["Instance"]; + if(!instanceNode["ApprLevel"].isNull()) + data_.instance.apprLevel = std::stoi(instanceNode["ApprLevel"].asString()); + if(!instanceNode["ApprUser1"].isNull()) + data_.instance.apprUser1 = instanceNode["ApprUser1"].asString(); + if(!instanceNode["ApprUser2"].isNull()) + data_.instance.apprUser2 = instanceNode["ApprUser2"].asString(); + if(!instanceNode["BrokerVpcId"].isNull()) + data_.instance.brokerVpcId = instanceNode["BrokerVpcId"].asString(); + if(!instanceNode["BrokerVpcName"].isNull()) + data_.instance.brokerVpcName = instanceNode["BrokerVpcName"].asString(); + if(!instanceNode["ClientVpcId"].isNull()) + data_.instance.clientVpcId = instanceNode["ClientVpcId"].asString(); + if(!instanceNode["ClientVpcName"].isNull()) + data_.instance.clientVpcName = instanceNode["ClientVpcName"].asString(); + if(!instanceNode["ClusterMembers"].isNull()) + data_.instance.clusterMembers = std::stoi(instanceNode["ClusterMembers"].asString()); + if(!instanceNode["CredentialGroup"].isNull()) + data_.instance.credentialGroup = std::stol(instanceNode["CredentialGroup"].asString()); + if(!instanceNode["CsbAccountId"].isNull()) + data_.instance.csbAccountId = instanceNode["CsbAccountId"].asString(); + if(!instanceNode["CsbId"].isNull()) + data_.instance.csbId = std::stol(instanceNode["CsbId"].asString()); + if(!instanceNode["DbStatus"].isNull()) + data_.instance.dbStatus = std::stoi(instanceNode["DbStatus"].asString()); + if(!instanceNode["Description"].isNull()) + data_.instance.description = instanceNode["Description"].asString(); + if(!instanceNode["FrontStatus"].isNull()) + data_.instance.frontStatus = instanceNode["FrontStatus"].asString(); + if(!instanceNode["GmtCreate"].isNull()) + data_.instance.gmtCreate = std::stol(instanceNode["GmtCreate"].asString()); + if(!instanceNode["GmtModified"].isNull()) + data_.instance.gmtModified = std::stol(instanceNode["GmtModified"].asString()); + if(!instanceNode["Id"].isNull()) + data_.instance.id = std::stol(instanceNode["Id"].asString()); + if(!instanceNode["InstanceCategory"].isNull()) + data_.instance.instanceCategory = std::stoi(instanceNode["InstanceCategory"].asString()); + if(!instanceNode["InstanceType"].isNull()) + data_.instance.instanceType = std::stoi(instanceNode["InstanceType"].asString()); + if(!instanceNode["IpList"].isNull()) + data_.instance.ipList = instanceNode["IpList"].asString(); + if(!instanceNode["IsImported"].isNull()) + data_.instance.isImported = instanceNode["IsImported"].asString() == "true"; + if(!instanceNode["IsPublic"].isNull()) + data_.instance.isPublic = instanceNode["IsPublic"].asString() == "true"; + if(!instanceNode["Name"].isNull()) + data_.instance.name = instanceNode["Name"].asString(); + if(!instanceNode["OwnerId"].isNull()) + data_.instance.ownerId = instanceNode["OwnerId"].asString(); + if(!instanceNode["SentinelCtlStr"].isNull()) + data_.instance.sentinelCtlStr = instanceNode["SentinelCtlStr"].asString(); + if(!instanceNode["SentinelCtrl"].isNull()) + data_.instance.sentinelCtrl = std::stol(instanceNode["SentinelCtrl"].asString()); + if(!instanceNode["SentinelGridInterval"].isNull()) + data_.instance.sentinelGridInterval = std::stoi(instanceNode["SentinelGridInterval"].asString()); + if(!instanceNode["SentinelQps"].isNull()) + data_.instance.sentinelQps = std::stol(instanceNode["SentinelQps"].asString()); + if(!instanceNode["Status"].isNull()) + data_.instance.status = instanceNode["Status"].asString(); + if(!instanceNode["StatusCode"].isNull()) + data_.instance.statusCode = std::stoi(instanceNode["StatusCode"].asString()); + if(!instanceNode["TenantId"].isNull()) + data_.instance.tenantId = instanceNode["TenantId"].asString(); + if(!instanceNode["Testable"].isNull()) + data_.instance.testable = instanceNode["Testable"].asString() == "true"; + if(!instanceNode["UserId"].isNull()) + data_.instance.userId = instanceNode["UserId"].asString(); + if(!instanceNode["Visible"].isNull()) + data_.instance.visible = instanceNode["Visible"].asString() == "true"; + if(!instanceNode["VpcName"].isNull()) + data_.instance.vpcName = instanceNode["VpcName"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string GetInstanceResult::getMessage()const +{ + return message_; +} + +GetInstanceResult::Data GetInstanceResult::getData()const +{ + return data_; +} + +int GetInstanceResult::getCode()const +{ + return code_; +} + diff --git a/csb/src/model/GetOrderRequest.cc b/csb/src/model/GetOrderRequest.cc new file mode 100644 index 000000000..c9ee3955c --- /dev/null +++ b/csb/src/model/GetOrderRequest.cc @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CSB::Model::GetOrderRequest; + +GetOrderRequest::GetOrderRequest() : + RpcServiceRequest("csb", "2017-11-18", "GetOrder") +{} + +GetOrderRequest::~GetOrderRequest() +{} + +long GetOrderRequest::getOrderId()const +{ + return orderId_; +} + +void GetOrderRequest::setOrderId(long orderId) +{ + orderId_ = orderId; + setParameter("OrderId", std::to_string(orderId)); +} + +std::string GetOrderRequest::getRegionId()const +{ + return regionId_; +} + +void GetOrderRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string GetOrderRequest::getServiceName()const +{ + return serviceName_; +} + +void GetOrderRequest::setServiceName(const std::string& serviceName) +{ + serviceName_ = serviceName; + setParameter("ServiceName", serviceName); +} + diff --git a/csb/src/model/GetOrderResult.cc b/csb/src/model/GetOrderResult.cc new file mode 100644 index 000000000..81793e6ba --- /dev/null +++ b/csb/src/model/GetOrderResult.cc @@ -0,0 +1,182 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::CSB; +using namespace AlibabaCloud::CSB::Model; + +GetOrderResult::GetOrderResult() : + ServiceResult() +{} + +GetOrderResult::GetOrderResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetOrderResult::~GetOrderResult() +{} + +void GetOrderResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto orderNode = dataNode["Order"]; + if(!orderNode["Alias"].isNull()) + data_.order.alias = orderNode["Alias"].asString(); + if(!orderNode["CredentialGroupId"].isNull()) + data_.order.credentialGroupId = std::stol(orderNode["CredentialGroupId"].asString()); + if(!orderNode["CsbId"].isNull()) + data_.order.csbId = std::stol(orderNode["CsbId"].asString()); + if(!orderNode["DauthGroupName"].isNull()) + data_.order.dauthGroupName = orderNode["DauthGroupName"].asString(); + if(!orderNode["GmtCreate"].isNull()) + data_.order.gmtCreate = std::stol(orderNode["GmtCreate"].asString()); + if(!orderNode["GmtModified"].isNull()) + data_.order.gmtModified = std::stol(orderNode["GmtModified"].asString()); + if(!orderNode["GroupName"].isNull()) + data_.order.groupName = orderNode["GroupName"].asString(); + if(!orderNode["Id"].isNull()) + data_.order.id = std::stol(orderNode["Id"].asString()); + if(!orderNode["ProjectName"].isNull()) + data_.order.projectName = orderNode["ProjectName"].asString(); + if(!orderNode["ServiceId"].isNull()) + data_.order.serviceId = std::stol(orderNode["ServiceId"].asString()); + if(!orderNode["ServiceName"].isNull()) + data_.order.serviceName = orderNode["ServiceName"].asString(); + if(!orderNode["ServiceStatus"].isNull()) + data_.order.serviceStatus = std::stoi(orderNode["ServiceStatus"].asString()); + if(!orderNode["ServiceVersion"].isNull()) + data_.order.serviceVersion = orderNode["ServiceVersion"].asString(); + if(!orderNode["StatisticName"].isNull()) + data_.order.statisticName = orderNode["StatisticName"].asString(); + if(!orderNode["Status"].isNull()) + data_.order.status = std::stoi(orderNode["Status"].asString()); + if(!orderNode["StrictWhiteListJson"].isNull()) + data_.order.strictWhiteListJson = orderNode["StrictWhiteListJson"].asString(); + if(!orderNode["UserId"].isNull()) + data_.order.userId = orderNode["UserId"].asString(); + auto allErrorTypeCatagoryList = value["ErrorTypeCatagoryList"]["ErrorTypeCatagory"]; + for (auto value : allErrorTypeCatagoryList) + { + Data::Order::ErrorTypeCatagory errorTypeCatagoryObject; + if(!value["Total"].isNull()) + errorTypeCatagoryObject.total = std::stoi(value["Total"].asString()); + if(!value["ErrorNum"].isNull()) + errorTypeCatagoryObject.errorNum = std::stoi(value["ErrorNum"].asString()); + if(!value["Name"].isNull()) + errorTypeCatagoryObject.name = value["Name"].asString(); + data_.order.errorTypeCatagoryList.push_back(errorTypeCatagoryObject); + } + auto serviceNode = orderNode["Service"]; + if(!serviceNode["AccessParamsJSON"].isNull()) + data_.order.service.accessParamsJSON = serviceNode["AccessParamsJSON"].asString(); + if(!serviceNode["Active"].isNull()) + data_.order.service.active = serviceNode["Active"].asString() == "true"; + if(!serviceNode["Alias"].isNull()) + data_.order.service.alias = serviceNode["Alias"].asString(); + if(!serviceNode["AllVisiable"].isNull()) + data_.order.service.allVisiable = serviceNode["AllVisiable"].asString() == "true"; + if(!serviceNode["ConsumeTypesJSON"].isNull()) + data_.order.service.consumeTypesJSON = serviceNode["ConsumeTypesJSON"].asString(); + if(!serviceNode["CreateTime"].isNull()) + data_.order.service.createTime = std::stol(serviceNode["CreateTime"].asString()); + if(!serviceNode["CsbId"].isNull()) + data_.order.service.csbId = std::stol(serviceNode["CsbId"].asString()); + if(!serviceNode["ErrDefJSON"].isNull()) + data_.order.service.errDefJSON = serviceNode["ErrDefJSON"].asString(); + if(!serviceNode["Id"].isNull()) + data_.order.service.id = std::stol(serviceNode["Id"].asString()); + if(!serviceNode["InterfaceName"].isNull()) + data_.order.service.interfaceName = serviceNode["InterfaceName"].asString(); + if(!serviceNode["OldVersion"].isNull()) + data_.order.service.oldVersion = serviceNode["OldVersion"].asString(); + if(!serviceNode["OttFlag"].isNull()) + data_.order.service.ottFlag = serviceNode["OttFlag"].asString() == "true"; + if(!serviceNode["OwnerId"].isNull()) + data_.order.service.ownerId = serviceNode["OwnerId"].asString(); + if(!serviceNode["PrincipalName"].isNull()) + data_.order.service.principalName = serviceNode["PrincipalName"].asString(); + if(!serviceNode["ProjectId"].isNull()) + data_.order.service.projectId = serviceNode["ProjectId"].asString(); + if(!serviceNode["ProjectName"].isNull()) + data_.order.service.projectName = serviceNode["ProjectName"].asString(); + if(!serviceNode["ProvideType"].isNull()) + data_.order.service.provideType = serviceNode["ProvideType"].asString(); + if(!serviceNode["SSL"].isNull()) + data_.order.service.sSL = serviceNode["SSL"].asString() == "true"; + if(!serviceNode["Scope"].isNull()) + data_.order.service.scope = serviceNode["Scope"].asString(); + if(!serviceNode["ServiceName"].isNull()) + data_.order.service.serviceName = serviceNode["ServiceName"].asString(); + if(!serviceNode["ServiceProviderType"].isNull()) + data_.order.service.serviceProviderType = serviceNode["ServiceProviderType"].asString(); + if(!serviceNode["ServiceVersion"].isNull()) + data_.order.service.serviceVersion = serviceNode["ServiceVersion"].asString(); + if(!serviceNode["SkipAuth"].isNull()) + data_.order.service.skipAuth = serviceNode["SkipAuth"].asString() == "true"; + if(!serviceNode["StatisticName"].isNull()) + data_.order.service.statisticName = serviceNode["StatisticName"].asString(); + if(!serviceNode["Status"].isNull()) + data_.order.service.status = std::stoi(serviceNode["Status"].asString()); + if(!serviceNode["UserId"].isNull()) + data_.order.service.userId = std::stol(serviceNode["UserId"].asString()); + if(!serviceNode["ValidConsumeTypes"].isNull()) + data_.order.service.validConsumeTypes = serviceNode["ValidConsumeTypes"].asString() == "true"; + if(!serviceNode["ValidProvideType"].isNull()) + data_.order.service.validProvideType = serviceNode["ValidProvideType"].asString() == "true"; + auto slaInfoNode = orderNode["SlaInfo"]; + if(!slaInfoNode["Qph"].isNull()) + data_.order.slaInfo.qph = slaInfoNode["Qph"].asString(); + if(!slaInfoNode["Qps"].isNull()) + data_.order.slaInfo.qps = slaInfoNode["Qps"].asString(); + auto totalNode = orderNode["Total"]; + if(!totalNode["ErrorNum"].isNull()) + data_.order.total.errorNum = std::stoi(totalNode["ErrorNum"].asString()); + if(!totalNode["Total"].isNull()) + data_.order.total.total = std::stoi(totalNode["Total"].asString()); + auto allStrictWhiteList = orderNode["StrictWhiteList"]["StrictWhite"]; + for (auto value : allStrictWhiteList) + data_.order.strictWhiteList.push_back(value.asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string GetOrderResult::getMessage()const +{ + return message_; +} + +GetOrderResult::Data GetOrderResult::getData()const +{ + return data_; +} + +int GetOrderResult::getCode()const +{ + return code_; +} + diff --git a/csb/src/model/GetProjectRequest.cc b/csb/src/model/GetProjectRequest.cc new file mode 100644 index 000000000..e4e91a505 --- /dev/null +++ b/csb/src/model/GetProjectRequest.cc @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CSB::Model::GetProjectRequest; + +GetProjectRequest::GetProjectRequest() : + RpcServiceRequest("csb", "2017-11-18", "GetProject") +{} + +GetProjectRequest::~GetProjectRequest() +{} + +std::string GetProjectRequest::getProjectName()const +{ + return projectName_; +} + +void GetProjectRequest::setProjectName(const std::string& projectName) +{ + projectName_ = projectName; + setParameter("ProjectName", projectName); +} + +long GetProjectRequest::getCsbId()const +{ + return csbId_; +} + +void GetProjectRequest::setCsbId(long csbId) +{ + csbId_ = csbId; + setParameter("CsbId", std::to_string(csbId)); +} + +std::string GetProjectRequest::getRegionId()const +{ + return regionId_; +} + +void GetProjectRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/csb/src/model/GetProjectResult.cc b/csb/src/model/GetProjectResult.cc new file mode 100644 index 000000000..58fef9060 --- /dev/null +++ b/csb/src/model/GetProjectResult.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::CSB; +using namespace AlibabaCloud::CSB::Model; + +GetProjectResult::GetProjectResult() : + ServiceResult() +{} + +GetProjectResult::GetProjectResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetProjectResult::~GetProjectResult() +{} + +void GetProjectResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto allProjectList = value["ProjectList"]["Project"]; + for (auto value : allProjectList) + { + Data::Project projectObject; + if(!value["ApiNum"].isNull()) + projectObject.apiNum = std::stoi(value["ApiNum"].asString()); + if(!value["CsbId"].isNull()) + projectObject.csbId = std::stol(value["CsbId"].asString()); + if(!value["DeleteFlag"].isNull()) + projectObject.deleteFlag = std::stoi(value["DeleteFlag"].asString()); + if(!value["Description"].isNull()) + projectObject.description = value["Description"].asString(); + if(!value["GmtCreate"].isNull()) + projectObject.gmtCreate = std::stol(value["GmtCreate"].asString()); + if(!value["GmtModified"].isNull()) + projectObject.gmtModified = std::stol(value["GmtModified"].asString()); + if(!value["Id"].isNull()) + projectObject.id = std::stol(value["Id"].asString()); + if(!value["InterfaceJarLocation"].isNull()) + projectObject.interfaceJarLocation = value["InterfaceJarLocation"].asString(); + if(!value["InterfaceJarName"].isNull()) + projectObject.interfaceJarName = value["InterfaceJarName"].asString(); + if(!value["JarFileKey"].isNull()) + projectObject.jarFileKey = value["JarFileKey"].asString(); + if(!value["OwnerId"].isNull()) + projectObject.ownerId = value["OwnerId"].asString(); + if(!value["ProjectName"].isNull()) + projectObject.projectName = value["ProjectName"].asString(); + if(!value["ProjectOwnerEmail"].isNull()) + projectObject.projectOwnerEmail = value["ProjectOwnerEmail"].asString(); + if(!value["ProjectOwnerName"].isNull()) + projectObject.projectOwnerName = value["ProjectOwnerName"].asString(); + if(!value["ProjectOwnerPhoneNum"].isNull()) + projectObject.projectOwnerPhoneNum = value["ProjectOwnerPhoneNum"].asString(); + if(!value["Status"].isNull()) + projectObject.status = std::stoi(value["Status"].asString()); + if(!value["UserId"].isNull()) + projectObject.userId = value["UserId"].asString(); + data_.projectList.push_back(projectObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string GetProjectResult::getMessage()const +{ + return message_; +} + +GetProjectResult::Data GetProjectResult::getData()const +{ + return data_; +} + +int GetProjectResult::getCode()const +{ + return code_; +} + diff --git a/csb/src/model/GetServiceRequest.cc b/csb/src/model/GetServiceRequest.cc new file mode 100644 index 000000000..959b5656f --- /dev/null +++ b/csb/src/model/GetServiceRequest.cc @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CSB::Model::GetServiceRequest; + +GetServiceRequest::GetServiceRequest() : + RpcServiceRequest("csb", "2017-11-18", "GetService") +{} + +GetServiceRequest::~GetServiceRequest() +{} + +long GetServiceRequest::getCsbId()const +{ + return csbId_; +} + +void GetServiceRequest::setCsbId(long csbId) +{ + csbId_ = csbId; + setParameter("CsbId", std::to_string(csbId)); +} + +std::string GetServiceRequest::getRegionId()const +{ + return regionId_; +} + +void GetServiceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +long GetServiceRequest::getServiceId()const +{ + return serviceId_; +} + +void GetServiceRequest::setServiceId(long serviceId) +{ + serviceId_ = serviceId; + setParameter("ServiceId", std::to_string(serviceId)); +} + diff --git a/csb/src/model/GetServiceResult.cc b/csb/src/model/GetServiceResult.cc new file mode 100644 index 000000000..fe206a5b4 --- /dev/null +++ b/csb/src/model/GetServiceResult.cc @@ -0,0 +1,309 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::CSB; +using namespace AlibabaCloud::CSB::Model; + +GetServiceResult::GetServiceResult() : + ServiceResult() +{} + +GetServiceResult::GetServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetServiceResult::~GetServiceResult() +{} + +void GetServiceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto serviceNode = dataNode["Service"]; + if(!serviceNode["AccessParamsJSON"].isNull()) + data_.service.accessParamsJSON = serviceNode["AccessParamsJSON"].asString(); + if(!serviceNode["Active"].isNull()) + data_.service.active = serviceNode["Active"].asString() == "true"; + if(!serviceNode["Alias"].isNull()) + data_.service.alias = serviceNode["Alias"].asString(); + if(!serviceNode["AllVisiable"].isNull()) + data_.service.allVisiable = serviceNode["AllVisiable"].asString() == "true"; + if(!serviceNode["ApproveUserId"].isNull()) + data_.service.approveUserId = serviceNode["ApproveUserId"].asString(); + if(!serviceNode["CasTargets"].isNull()) + data_.service.casTargets = serviceNode["CasTargets"].asString(); + if(!serviceNode["ConsumeTypesJSON"].isNull()) + data_.service.consumeTypesJSON = serviceNode["ConsumeTypesJSON"].asString(); + if(!serviceNode["CreateTime"].isNull()) + data_.service.createTime = std::stol(serviceNode["CreateTime"].asString()); + if(!serviceNode["CsbId"].isNull()) + data_.service.csbId = std::stol(serviceNode["CsbId"].asString()); + if(!serviceNode["ErrDefJSON"].isNull()) + data_.service.errDefJSON = serviceNode["ErrDefJSON"].asString(); + if(!serviceNode["Id"].isNull()) + data_.service.id = std::stol(serviceNode["Id"].asString()); + if(!serviceNode["InterfaceName"].isNull()) + data_.service.interfaceName = serviceNode["InterfaceName"].asString(); + if(!serviceNode["IpBlackStr"].isNull()) + data_.service.ipBlackStr = serviceNode["IpBlackStr"].asString(); + if(!serviceNode["IpWhiteStr"].isNull()) + data_.service.ipWhiteStr = serviceNode["IpWhiteStr"].asString(); + if(!serviceNode["ModelVersion"].isNull()) + data_.service.modelVersion = serviceNode["ModelVersion"].asString(); + if(!serviceNode["ModifiedTime"].isNull()) + data_.service.modifiedTime = std::stol(serviceNode["ModifiedTime"].asString()); + if(!serviceNode["OldVersion"].isNull()) + data_.service.oldVersion = serviceNode["OldVersion"].asString(); + if(!serviceNode["OpenRestfulPath"].isNull()) + data_.service.openRestfulPath = serviceNode["OpenRestfulPath"].asString(); + if(!serviceNode["OttFlag"].isNull()) + data_.service.ottFlag = serviceNode["OttFlag"].asString() == "true"; + if(!serviceNode["OwnerId"].isNull()) + data_.service.ownerId = serviceNode["OwnerId"].asString(); + if(!serviceNode["PolicyHandler"].isNull()) + data_.service.policyHandler = serviceNode["PolicyHandler"].asString(); + if(!serviceNode["PrincipalName"].isNull()) + data_.service.principalName = serviceNode["PrincipalName"].asString(); + if(!serviceNode["ProjectId"].isNull()) + data_.service.projectId = std::stol(serviceNode["ProjectId"].asString()); + if(!serviceNode["ProjectName"].isNull()) + data_.service.projectName = serviceNode["ProjectName"].asString(); + if(!serviceNode["ProvideType"].isNull()) + data_.service.provideType = serviceNode["ProvideType"].asString(); + if(!serviceNode["RouteConfJson"].isNull()) + data_.service.routeConfJson = serviceNode["RouteConfJson"].asString(); + if(!serviceNode["SSL"].isNull()) + data_.service.sSL = serviceNode["SSL"].asString() == "true"; + if(!serviceNode["Scope"].isNull()) + data_.service.scope = serviceNode["Scope"].asString(); + if(!serviceNode["ServiceName"].isNull()) + data_.service.serviceName = serviceNode["ServiceName"].asString(); + if(!serviceNode["ServiceOpenRestfulPath"].isNull()) + data_.service.serviceOpenRestfulPath = serviceNode["ServiceOpenRestfulPath"].asString(); + if(!serviceNode["ServiceProviderType"].isNull()) + data_.service.serviceProviderType = serviceNode["ServiceProviderType"].asString(); + if(!serviceNode["ServiceVersion"].isNull()) + data_.service.serviceVersion = serviceNode["ServiceVersion"].asString(); + if(!serviceNode["SkipAuth"].isNull()) + data_.service.skipAuth = serviceNode["SkipAuth"].asString() == "true"; + if(!serviceNode["StatisticName"].isNull()) + data_.service.statisticName = serviceNode["StatisticName"].asString(); + if(!serviceNode["Status"].isNull()) + data_.service.status = std::stoi(serviceNode["Status"].asString()); + if(!serviceNode["UserId"].isNull()) + data_.service.userId = serviceNode["UserId"].asString(); + if(!serviceNode["ValidConsumeTypes"].isNull()) + data_.service.validConsumeTypes = serviceNode["ValidConsumeTypes"].asString() == "true"; + if(!serviceNode["ValidProvideType"].isNull()) + data_.service.validProvideType = serviceNode["ValidProvideType"].asString() == "true"; + auto allServiceVersionsList = value["ServiceVersionsList"]["ServiceVersion"]; + for (auto value : allServiceVersionsList) + { + Data::Service::ServiceVersion serviceVersionObject; + if(!value["Active"].isNull()) + serviceVersionObject.active = value["Active"].asString() == "true"; + if(!value["AllVisiable"].isNull()) + serviceVersionObject.allVisiable = value["AllVisiable"].asString() == "true"; + if(!value["Id"].isNull()) + serviceVersionObject.id = std::stol(value["Id"].asString()); + if(!value["OldVersion"].isNull()) + serviceVersionObject.oldVersion = value["OldVersion"].asString(); + if(!value["OttFlag"].isNull()) + serviceVersionObject.ottFlag = value["OttFlag"].asString() == "true"; + if(!value["SSL"].isNull()) + serviceVersionObject.sSL = value["SSL"].asString() == "true"; + if(!value["Scope"].isNull()) + serviceVersionObject.scope = value["Scope"].asString(); + if(!value["ServiceVersion"].isNull()) + serviceVersionObject.serviceVersion = value["ServiceVersion"].asString(); + if(!value["SkipAuth"].isNull()) + serviceVersionObject.skipAuth = value["SkipAuth"].asString() == "true"; + if(!value["StatisticName"].isNull()) + serviceVersionObject.statisticName = value["StatisticName"].asString(); + if(!value["Status"].isNull()) + serviceVersionObject.status = std::stoi(value["Status"].asString()); + if(!value["ValidConsumeTypes"].isNull()) + serviceVersionObject.validConsumeTypes = value["ValidConsumeTypes"].asString() == "true"; + if(!value["ValidProvideType"].isNull()) + serviceVersionObject.validProvideType = value["ValidProvideType"].asString() == "true"; + data_.service.serviceVersionsList.push_back(serviceVersionObject); + } + auto allVisiableGroupList = value["VisiableGroupList"]["VisiableGroup"]; + for (auto value : allVisiableGroupList) + { + Data::Service::VisiableGroup visiableGroupObject; + if(!value["Id"].isNull()) + visiableGroupObject.id = std::stol(value["Id"].asString()); + if(!value["GroupId"].isNull()) + visiableGroupObject.groupId = std::stol(value["GroupId"].asString()); + if(!value["UserId"].isNull()) + visiableGroupObject.userId = value["UserId"].asString(); + if(!value["ServiceId"].isNull()) + visiableGroupObject.serviceId = std::stol(value["ServiceId"].asString()); + if(!value["CreateTime"].isNull()) + visiableGroupObject.createTime = std::stol(value["CreateTime"].asString()); + if(!value["ModifiedTime"].isNull()) + visiableGroupObject.modifiedTime = std::stol(value["ModifiedTime"].asString()); + if(!value["Status"].isNull()) + visiableGroupObject.status = std::stoi(value["Status"].asString()); + data_.service.visiableGroupList.push_back(visiableGroupObject); + } + auto routeConfNode = serviceNode["RouteConf"]; + if(!routeConfNode["ServiceRouteStrategy"].isNull()) + data_.service.routeConf.serviceRouteStrategy = routeConfNode["ServiceRouteStrategy"].asString(); + auto importConfNode = routeConfNode["ImportConf"]; + if(!importConfNode["AccessEndpointJSON"].isNull()) + data_.service.routeConf.importConf.accessEndpointJSON = importConfNode["AccessEndpointJSON"].asString(); + if(!importConfNode["ProvideType"].isNull()) + data_.service.routeConf.importConf.provideType = importConfNode["ProvideType"].asString(); + auto allInputParameterMap = value["InputParameterMap"]["InputParameter"]; + for (auto value : allInputParameterMap) + { + Data::Service::RouteConf::ImportConf::InputParameter inputParameterObject; + if(!value["CatType"].isNull()) + inputParameterObject.catType = std::stoi(value["CatType"].asString()); + if(!value["Depth"].isNull()) + inputParameterObject.depth = std::stoi(value["Depth"].asString()); + if(!value["ExtType"].isNull()) + inputParameterObject.extType = std::stoi(value["ExtType"].asString()); + if(!value["MapStyle"].isNull()) + inputParameterObject.mapStyle = std::stoi(value["MapStyle"].asString()); + if(!value["Optional"].isNull()) + inputParameterObject.optional = value["Optional"].asString() == "true"; + if(!value["OriginalName"].isNull()) + inputParameterObject.originalName = value["OriginalName"].asString(); + if(!value["ParamType"].isNull()) + inputParameterObject.paramType = value["ParamType"].asString(); + if(!value["PassMethod"].isNull()) + inputParameterObject.passMethod = value["PassMethod"].asString(); + if(!value["TargetName"].isNull()) + inputParameterObject.targetName = value["TargetName"].asString(); + data_.service.routeConf.importConf.inputParameterMap.push_back(inputParameterObject); + } + auto allOutputParameterMap = value["OutputParameterMap"]["OutputParameter"]; + for (auto value : allOutputParameterMap) + { + Data::Service::RouteConf::ImportConf::OutputParameter outputParameterObject; + if(!value["CatType"].isNull()) + outputParameterObject.catType = std::stoi(value["CatType"].asString()); + if(!value["Depth"].isNull()) + outputParameterObject.depth = std::stoi(value["Depth"].asString()); + if(!value["ExtType"].isNull()) + outputParameterObject.extType = std::stoi(value["ExtType"].asString()); + if(!value["MapStyle"].isNull()) + outputParameterObject.mapStyle = std::stoi(value["MapStyle"].asString()); + if(!value["Optional"].isNull()) + outputParameterObject.optional = value["Optional"].asString() == "true"; + if(!value["OriginalName"].isNull()) + outputParameterObject.originalName = value["OriginalName"].asString(); + if(!value["ParamType"].isNull()) + outputParameterObject.paramType = value["ParamType"].asString(); + if(!value["PassMethod"].isNull()) + outputParameterObject.passMethod = value["PassMethod"].asString(); + if(!value["TargetName"].isNull()) + outputParameterObject.targetName = value["TargetName"].asString(); + data_.service.routeConf.importConf.outputParameterMap.push_back(outputParameterObject); + } + auto importConfsNode = routeConfNode["ImportConfs"]; + if(!importConfsNode["AccessEndpointJSON"].isNull()) + data_.service.routeConf.importConfs.accessEndpointJSON = importConfsNode["AccessEndpointJSON"].asString(); + if(!importConfsNode["ProvideType"].isNull()) + data_.service.routeConf.importConfs.provideType = importConfsNode["ProvideType"].asString(); + auto allInputParameterMap1 = value["InputParameterMap"]["InputParameter"]; + for (auto value : allInputParameterMap1) + { + Data::Service::RouteConf::ImportConfs::InputParameter3 inputParameter3Object; + if(!value["CatType"].isNull()) + inputParameter3Object.catType = std::stoi(value["CatType"].asString()); + if(!value["Depth"].isNull()) + inputParameter3Object.depth = std::stoi(value["Depth"].asString()); + if(!value["ExtType"].isNull()) + inputParameter3Object.extType = std::stoi(value["ExtType"].asString()); + if(!value["MapStyle"].isNull()) + inputParameter3Object.mapStyle = std::stoi(value["MapStyle"].asString()); + if(!value["Optional"].isNull()) + inputParameter3Object.optional = value["Optional"].asString() == "true"; + if(!value["OriginalName"].isNull()) + inputParameter3Object.originalName = value["OriginalName"].asString(); + if(!value["ParamType"].isNull()) + inputParameter3Object.paramType = value["ParamType"].asString(); + if(!value["PassMethod"].isNull()) + inputParameter3Object.passMethod = value["PassMethod"].asString(); + if(!value["TargetName"].isNull()) + inputParameter3Object.targetName = value["TargetName"].asString(); + data_.service.routeConf.importConfs.inputParameterMap1.push_back(inputParameter3Object); + } + auto allOutputParameterMap2 = value["OutputParameterMap"]["OutputParameter"]; + for (auto value : allOutputParameterMap2) + { + Data::Service::RouteConf::ImportConfs::OutputParameter4 outputParameter4Object; + if(!value["CatType"].isNull()) + outputParameter4Object.catType = std::stoi(value["CatType"].asString()); + if(!value["Depth"].isNull()) + outputParameter4Object.depth = std::stoi(value["Depth"].asString()); + if(!value["ExtType"].isNull()) + outputParameter4Object.extType = std::stoi(value["ExtType"].asString()); + if(!value["MapStyle"].isNull()) + outputParameter4Object.mapStyle = std::stoi(value["MapStyle"].asString()); + if(!value["Optional"].isNull()) + outputParameter4Object.optional = value["Optional"].asString() == "true"; + if(!value["OriginalName"].isNull()) + outputParameter4Object.originalName = value["OriginalName"].asString(); + if(!value["ParamType"].isNull()) + outputParameter4Object.paramType = value["ParamType"].asString(); + if(!value["PassMethod"].isNull()) + outputParameter4Object.passMethod = value["PassMethod"].asString(); + if(!value["TargetName"].isNull()) + outputParameter4Object.targetName = value["TargetName"].asString(); + data_.service.routeConf.importConfs.outputParameterMap2.push_back(outputParameter4Object); + } + auto allCasServTargets = serviceNode["CasServTargets"]["CasServTarget"]; + for (auto value : allCasServTargets) + data_.service.casServTargets.push_back(value.asString()); + auto allConsumeTypes = serviceNode["ConsumeTypes"]["ConsumeType"]; + for (auto value : allConsumeTypes) + data_.service.consumeTypes.push_back(value.asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string GetServiceResult::getMessage()const +{ + return message_; +} + +GetServiceResult::Data GetServiceResult::getData()const +{ + return data_; +} + +int GetServiceResult::getCode()const +{ + return code_; +} + diff --git a/csb/src/model/PublishCasServiceRequest.cc b/csb/src/model/PublishCasServiceRequest.cc new file mode 100644 index 000000000..c9eb8ae10 --- /dev/null +++ b/csb/src/model/PublishCasServiceRequest.cc @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CSB::Model::PublishCasServiceRequest; + +PublishCasServiceRequest::PublishCasServiceRequest() : + RpcServiceRequest("csb", "2017-11-18", "PublishCasService") +{} + +PublishCasServiceRequest::~PublishCasServiceRequest() +{} + +std::string PublishCasServiceRequest::getCasCsbName()const +{ + return casCsbName_; +} + +void PublishCasServiceRequest::setCasCsbName(const std::string& casCsbName) +{ + casCsbName_ = casCsbName; + setParameter("CasCsbName", casCsbName); +} + +std::string PublishCasServiceRequest::getData()const +{ + return data_; +} + +void PublishCasServiceRequest::setData(const std::string& data) +{ + data_ = data; + setParameter("Data", data); +} + +std::string PublishCasServiceRequest::getRegionId()const +{ + return regionId_; +} + +void PublishCasServiceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/csb/src/model/PublishCasServiceResult.cc b/csb/src/model/PublishCasServiceResult.cc new file mode 100644 index 000000000..0136d0a3e --- /dev/null +++ b/csb/src/model/PublishCasServiceResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CSB; +using namespace AlibabaCloud::CSB::Model; + +PublishCasServiceResult::PublishCasServiceResult() : + ServiceResult() +{} + +PublishCasServiceResult::PublishCasServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PublishCasServiceResult::~PublishCasServiceResult() +{} + +void PublishCasServiceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string PublishCasServiceResult::getMessage()const +{ + return message_; +} + +int PublishCasServiceResult::getCode()const +{ + return code_; +} + diff --git a/csb/src/model/PublishUnionCasServiceRequest.cc b/csb/src/model/PublishUnionCasServiceRequest.cc new file mode 100644 index 000000000..6367d1070 --- /dev/null +++ b/csb/src/model/PublishUnionCasServiceRequest.cc @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CSB::Model::PublishUnionCasServiceRequest; + +PublishUnionCasServiceRequest::PublishUnionCasServiceRequest() : + RpcServiceRequest("csb", "2017-11-18", "PublishUnionCasService") +{} + +PublishUnionCasServiceRequest::~PublishUnionCasServiceRequest() +{} + +std::string PublishUnionCasServiceRequest::getCasCsbName()const +{ + return casCsbName_; +} + +void PublishUnionCasServiceRequest::setCasCsbName(const std::string& casCsbName) +{ + casCsbName_ = casCsbName; + setParameter("CasCsbName", casCsbName); +} + +std::string PublishUnionCasServiceRequest::getData()const +{ + return data_; +} + +void PublishUnionCasServiceRequest::setData(const std::string& data) +{ + data_ = data; + setParameter("Data", data); +} + +std::string PublishUnionCasServiceRequest::getRegionId()const +{ + return regionId_; +} + +void PublishUnionCasServiceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/csb/src/model/PublishUnionCasServiceResult.cc b/csb/src/model/PublishUnionCasServiceResult.cc new file mode 100644 index 000000000..30eff45f3 --- /dev/null +++ b/csb/src/model/PublishUnionCasServiceResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CSB; +using namespace AlibabaCloud::CSB::Model; + +PublishUnionCasServiceResult::PublishUnionCasServiceResult() : + ServiceResult() +{} + +PublishUnionCasServiceResult::PublishUnionCasServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PublishUnionCasServiceResult::~PublishUnionCasServiceResult() +{} + +void PublishUnionCasServiceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string PublishUnionCasServiceResult::getMessage()const +{ + return message_; +} + +int PublishUnionCasServiceResult::getCode()const +{ + return code_; +} + diff --git a/csb/src/model/RenewCredentialsRequest.cc b/csb/src/model/RenewCredentialsRequest.cc new file mode 100644 index 000000000..564885823 --- /dev/null +++ b/csb/src/model/RenewCredentialsRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CSB::Model::RenewCredentialsRequest; + +RenewCredentialsRequest::RenewCredentialsRequest() : + RpcServiceRequest("csb", "2017-11-18", "RenewCredentials") +{} + +RenewCredentialsRequest::~RenewCredentialsRequest() +{} + +std::string RenewCredentialsRequest::getRegionId()const +{ + return regionId_; +} + +void RenewCredentialsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +long RenewCredentialsRequest::getCredentialId()const +{ + return credentialId_; +} + +void RenewCredentialsRequest::setCredentialId(long credentialId) +{ + credentialId_ = credentialId; + setParameter("CredentialId", std::to_string(credentialId)); +} + diff --git a/csb/src/model/RenewCredentialsResult.cc b/csb/src/model/RenewCredentialsResult.cc new file mode 100644 index 000000000..8cb846eb7 --- /dev/null +++ b/csb/src/model/RenewCredentialsResult.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CSB; +using namespace AlibabaCloud::CSB::Model; + +RenewCredentialsResult::RenewCredentialsResult() : + ServiceResult() +{} + +RenewCredentialsResult::RenewCredentialsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RenewCredentialsResult::~RenewCredentialsResult() +{} + +void RenewCredentialsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto credentialsNode = dataNode["Credentials"]; + if(!credentialsNode["GmtCreate"].isNull()) + data_.credentials.gmtCreate = std::stol(credentialsNode["GmtCreate"].asString()); + if(!credentialsNode["Id"].isNull()) + data_.credentials.id = std::stol(credentialsNode["Id"].asString()); + if(!credentialsNode["Name"].isNull()) + data_.credentials.name = credentialsNode["Name"].asString(); + if(!credentialsNode["UserId"].isNull()) + data_.credentials.userId = credentialsNode["UserId"].asString(); + auto currentCredentialNode = credentialsNode["CurrentCredential"]; + if(!currentCredentialNode["AccessKey"].isNull()) + data_.credentials.currentCredential.accessKey = currentCredentialNode["AccessKey"].asString(); + if(!currentCredentialNode["SecretKey"].isNull()) + data_.credentials.currentCredential.secretKey = currentCredentialNode["SecretKey"].asString(); + auto newCredentialNode = credentialsNode["NewCredential"]; + if(!newCredentialNode["AccessKey"].isNull()) + data_.credentials.newCredential.accessKey = newCredentialNode["AccessKey"].asString(); + if(!newCredentialNode["SecretKey"].isNull()) + data_.credentials.newCredential.secretKey = newCredentialNode["SecretKey"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string RenewCredentialsResult::getMessage()const +{ + return message_; +} + +RenewCredentialsResult::Data RenewCredentialsResult::getData()const +{ + return data_; +} + +int RenewCredentialsResult::getCode()const +{ + return code_; +} + diff --git a/csb/src/model/ReplaceCredentialRequest.cc b/csb/src/model/ReplaceCredentialRequest.cc new file mode 100644 index 000000000..f1f88a72f --- /dev/null +++ b/csb/src/model/ReplaceCredentialRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CSB::Model::ReplaceCredentialRequest; + +ReplaceCredentialRequest::ReplaceCredentialRequest() : + RpcServiceRequest("csb", "2017-11-18", "ReplaceCredential") +{} + +ReplaceCredentialRequest::~ReplaceCredentialRequest() +{} + +std::string ReplaceCredentialRequest::getRegionId()const +{ + return regionId_; +} + +void ReplaceCredentialRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +long ReplaceCredentialRequest::getCredentialId()const +{ + return credentialId_; +} + +void ReplaceCredentialRequest::setCredentialId(long credentialId) +{ + credentialId_ = credentialId; + setParameter("CredentialId", std::to_string(credentialId)); +} + diff --git a/csb/src/model/ReplaceCredentialResult.cc b/csb/src/model/ReplaceCredentialResult.cc new file mode 100644 index 000000000..a288add73 --- /dev/null +++ b/csb/src/model/ReplaceCredentialResult.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CSB; +using namespace AlibabaCloud::CSB::Model; + +ReplaceCredentialResult::ReplaceCredentialResult() : + ServiceResult() +{} + +ReplaceCredentialResult::ReplaceCredentialResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReplaceCredentialResult::~ReplaceCredentialResult() +{} + +void ReplaceCredentialResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto credentialsNode = dataNode["Credentials"]; + if(!credentialsNode["GmtCreate"].isNull()) + data_.credentials.gmtCreate = std::stol(credentialsNode["GmtCreate"].asString()); + if(!credentialsNode["Id"].isNull()) + data_.credentials.id = std::stol(credentialsNode["Id"].asString()); + if(!credentialsNode["Name"].isNull()) + data_.credentials.name = credentialsNode["Name"].asString(); + if(!credentialsNode["UserId"].isNull()) + data_.credentials.userId = credentialsNode["UserId"].asString(); + auto currentCredentialNode = credentialsNode["CurrentCredential"]; + if(!currentCredentialNode["AccessKey"].isNull()) + data_.credentials.currentCredential.accessKey = currentCredentialNode["AccessKey"].asString(); + if(!currentCredentialNode["SecretKey"].isNull()) + data_.credentials.currentCredential.secretKey = currentCredentialNode["SecretKey"].asString(); + auto newCredentialNode = credentialsNode["NewCredential"]; + if(!newCredentialNode["AccessKey"].isNull()) + data_.credentials.newCredential.accessKey = newCredentialNode["AccessKey"].asString(); + if(!newCredentialNode["SecretKey"].isNull()) + data_.credentials.newCredential.secretKey = newCredentialNode["SecretKey"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ReplaceCredentialResult::getMessage()const +{ + return message_; +} + +ReplaceCredentialResult::Data ReplaceCredentialResult::getData()const +{ + return data_; +} + +int ReplaceCredentialResult::getCode()const +{ + return code_; +} + diff --git a/csb/src/model/UpdateOrderListRequest.cc b/csb/src/model/UpdateOrderListRequest.cc new file mode 100644 index 000000000..4b8c8ac0b --- /dev/null +++ b/csb/src/model/UpdateOrderListRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CSB::Model::UpdateOrderListRequest; + +UpdateOrderListRequest::UpdateOrderListRequest() : + RpcServiceRequest("csb", "2017-11-18", "UpdateOrderList") +{} + +UpdateOrderListRequest::~UpdateOrderListRequest() +{} + +std::string UpdateOrderListRequest::getData()const +{ + return data_; +} + +void UpdateOrderListRequest::setData(const std::string& data) +{ + data_ = data; + setParameter("Data", data); +} + +std::string UpdateOrderListRequest::getRegionId()const +{ + return regionId_; +} + +void UpdateOrderListRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/csb/src/model/UpdateOrderListResult.cc b/csb/src/model/UpdateOrderListResult.cc new file mode 100644 index 000000000..7723cf513 --- /dev/null +++ b/csb/src/model/UpdateOrderListResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::CSB; +using namespace AlibabaCloud::CSB::Model; + +UpdateOrderListResult::UpdateOrderListResult() : + ServiceResult() +{} + +UpdateOrderListResult::UpdateOrderListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateOrderListResult::~UpdateOrderListResult() +{} + +void UpdateOrderListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["UpdateCount"].isNull()) + data_.updateCount = std::stoi(dataNode["UpdateCount"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string UpdateOrderListResult::getMessage()const +{ + return message_; +} + +UpdateOrderListResult::Data UpdateOrderListResult::getData()const +{ + return data_; +} + +int UpdateOrderListResult::getCode()const +{ + return code_; +} + diff --git a/csb/src/model/UpdateOrderRequest.cc b/csb/src/model/UpdateOrderRequest.cc new file mode 100644 index 000000000..b34e38b32 --- /dev/null +++ b/csb/src/model/UpdateOrderRequest.cc @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CSB::Model::UpdateOrderRequest; + +UpdateOrderRequest::UpdateOrderRequest() : + RpcServiceRequest("csb", "2017-11-18", "UpdateOrder") +{} + +UpdateOrderRequest::~UpdateOrderRequest() +{} + +std::string UpdateOrderRequest::getData()const +{ + return data_; +} + +void UpdateOrderRequest::setData(const std::string& data) +{ + data_ = data; + setParameter("Data", data); +} + +long UpdateOrderRequest::getCsbId()const +{ + return csbId_; +} + +void UpdateOrderRequest::setCsbId(long csbId) +{ + csbId_ = csbId; + setParameter("CsbId", std::to_string(csbId)); +} + +std::string UpdateOrderRequest::getRegionId()const +{ + return regionId_; +} + +void UpdateOrderRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/csb/src/model/UpdateOrderResult.cc b/csb/src/model/UpdateOrderResult.cc new file mode 100644 index 000000000..b9790b5df --- /dev/null +++ b/csb/src/model/UpdateOrderResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CSB; +using namespace AlibabaCloud::CSB::Model; + +UpdateOrderResult::UpdateOrderResult() : + ServiceResult() +{} + +UpdateOrderResult::UpdateOrderResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateOrderResult::~UpdateOrderResult() +{} + +void UpdateOrderResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string UpdateOrderResult::getMessage()const +{ + return message_; +} + +int UpdateOrderResult::getCode()const +{ + return code_; +} + diff --git a/csb/src/model/UpdateProjectListStatusRequest.cc b/csb/src/model/UpdateProjectListStatusRequest.cc new file mode 100644 index 000000000..134d8096c --- /dev/null +++ b/csb/src/model/UpdateProjectListStatusRequest.cc @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CSB::Model::UpdateProjectListStatusRequest; + +UpdateProjectListStatusRequest::UpdateProjectListStatusRequest() : + RpcServiceRequest("csb", "2017-11-18", "UpdateProjectListStatus") +{} + +UpdateProjectListStatusRequest::~UpdateProjectListStatusRequest() +{} + +std::string UpdateProjectListStatusRequest::getData()const +{ + return data_; +} + +void UpdateProjectListStatusRequest::setData(const std::string& data) +{ + data_ = data; + setParameter("Data", data); +} + +long UpdateProjectListStatusRequest::getCsbId()const +{ + return csbId_; +} + +void UpdateProjectListStatusRequest::setCsbId(long csbId) +{ + csbId_ = csbId; + setParameter("CsbId", std::to_string(csbId)); +} + +std::string UpdateProjectListStatusRequest::getRegionId()const +{ + return regionId_; +} + +void UpdateProjectListStatusRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/csb/src/model/UpdateProjectListStatusResult.cc b/csb/src/model/UpdateProjectListStatusResult.cc new file mode 100644 index 000000000..05365d6c9 --- /dev/null +++ b/csb/src/model/UpdateProjectListStatusResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CSB; +using namespace AlibabaCloud::CSB::Model; + +UpdateProjectListStatusResult::UpdateProjectListStatusResult() : + ServiceResult() +{} + +UpdateProjectListStatusResult::UpdateProjectListStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateProjectListStatusResult::~UpdateProjectListStatusResult() +{} + +void UpdateProjectListStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string UpdateProjectListStatusResult::getMessage()const +{ + return message_; +} + +int UpdateProjectListStatusResult::getCode()const +{ + return code_; +} + diff --git a/csb/src/model/UpdateProjectRequest.cc b/csb/src/model/UpdateProjectRequest.cc new file mode 100644 index 000000000..867c2b953 --- /dev/null +++ b/csb/src/model/UpdateProjectRequest.cc @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CSB::Model::UpdateProjectRequest; + +UpdateProjectRequest::UpdateProjectRequest() : + RpcServiceRequest("csb", "2017-11-18", "UpdateProject") +{} + +UpdateProjectRequest::~UpdateProjectRequest() +{} + +std::string UpdateProjectRequest::getData()const +{ + return data_; +} + +void UpdateProjectRequest::setData(const std::string& data) +{ + data_ = data; + setParameter("Data", data); +} + +long UpdateProjectRequest::getCsbId()const +{ + return csbId_; +} + +void UpdateProjectRequest::setCsbId(long csbId) +{ + csbId_ = csbId; + setParameter("CsbId", std::to_string(csbId)); +} + +std::string UpdateProjectRequest::getRegionId()const +{ + return regionId_; +} + +void UpdateProjectRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/csb/src/model/UpdateProjectResult.cc b/csb/src/model/UpdateProjectResult.cc new file mode 100644 index 000000000..910a8960b --- /dev/null +++ b/csb/src/model/UpdateProjectResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CSB; +using namespace AlibabaCloud::CSB::Model; + +UpdateProjectResult::UpdateProjectResult() : + ServiceResult() +{} + +UpdateProjectResult::UpdateProjectResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateProjectResult::~UpdateProjectResult() +{} + +void UpdateProjectResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string UpdateProjectResult::getMessage()const +{ + return message_; +} + +int UpdateProjectResult::getCode()const +{ + return code_; +} + diff --git a/csb/src/model/UpdateServiceListStatusRequest.cc b/csb/src/model/UpdateServiceListStatusRequest.cc new file mode 100644 index 000000000..76d521a66 --- /dev/null +++ b/csb/src/model/UpdateServiceListStatusRequest.cc @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CSB::Model::UpdateServiceListStatusRequest; + +UpdateServiceListStatusRequest::UpdateServiceListStatusRequest() : + RpcServiceRequest("csb", "2017-11-18", "UpdateServiceListStatus") +{} + +UpdateServiceListStatusRequest::~UpdateServiceListStatusRequest() +{} + +std::string UpdateServiceListStatusRequest::getData()const +{ + return data_; +} + +void UpdateServiceListStatusRequest::setData(const std::string& data) +{ + data_ = data; + setParameter("Data", data); +} + +long UpdateServiceListStatusRequest::getCsbId()const +{ + return csbId_; +} + +void UpdateServiceListStatusRequest::setCsbId(long csbId) +{ + csbId_ = csbId; + setParameter("CsbId", std::to_string(csbId)); +} + +std::string UpdateServiceListStatusRequest::getRegionId()const +{ + return regionId_; +} + +void UpdateServiceListStatusRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/csb/src/model/UpdateServiceListStatusResult.cc b/csb/src/model/UpdateServiceListStatusResult.cc new file mode 100644 index 000000000..cb810b3b0 --- /dev/null +++ b/csb/src/model/UpdateServiceListStatusResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CSB; +using namespace AlibabaCloud::CSB::Model; + +UpdateServiceListStatusResult::UpdateServiceListStatusResult() : + ServiceResult() +{} + +UpdateServiceListStatusResult::UpdateServiceListStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateServiceListStatusResult::~UpdateServiceListStatusResult() +{} + +void UpdateServiceListStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string UpdateServiceListStatusResult::getMessage()const +{ + return message_; +} + +int UpdateServiceListStatusResult::getCode()const +{ + return code_; +} + diff --git a/csb/src/model/UpdateServiceQPSRequest.cc b/csb/src/model/UpdateServiceQPSRequest.cc new file mode 100644 index 000000000..38a03ba01 --- /dev/null +++ b/csb/src/model/UpdateServiceQPSRequest.cc @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CSB::Model::UpdateServiceQPSRequest; + +UpdateServiceQPSRequest::UpdateServiceQPSRequest() : + RpcServiceRequest("csb", "2017-11-18", "UpdateServiceQPS") +{} + +UpdateServiceQPSRequest::~UpdateServiceQPSRequest() +{} + +std::string UpdateServiceQPSRequest::getQps()const +{ + return qps_; +} + +void UpdateServiceQPSRequest::setQps(const std::string& qps) +{ + qps_ = qps; + setParameter("Qps", qps); +} + +std::string UpdateServiceQPSRequest::getRegionId()const +{ + return regionId_; +} + +void UpdateServiceQPSRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +long UpdateServiceQPSRequest::getServiceId()const +{ + return serviceId_; +} + +void UpdateServiceQPSRequest::setServiceId(long serviceId) +{ + serviceId_ = serviceId; + setParameter("ServiceId", std::to_string(serviceId)); +} + diff --git a/csb/src/model/UpdateServiceQPSResult.cc b/csb/src/model/UpdateServiceQPSResult.cc new file mode 100644 index 000000000..0b3836a6a --- /dev/null +++ b/csb/src/model/UpdateServiceQPSResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CSB; +using namespace AlibabaCloud::CSB::Model; + +UpdateServiceQPSResult::UpdateServiceQPSResult() : + ServiceResult() +{} + +UpdateServiceQPSResult::UpdateServiceQPSResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateServiceQPSResult::~UpdateServiceQPSResult() +{} + +void UpdateServiceQPSResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string UpdateServiceQPSResult::getMessage()const +{ + return message_; +} + +int UpdateServiceQPSResult::getCode()const +{ + return code_; +} + diff --git a/csb/src/model/UpdateServiceRequest.cc b/csb/src/model/UpdateServiceRequest.cc new file mode 100644 index 000000000..e6becbd66 --- /dev/null +++ b/csb/src/model/UpdateServiceRequest.cc @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CSB::Model::UpdateServiceRequest; + +UpdateServiceRequest::UpdateServiceRequest() : + RpcServiceRequest("csb", "2017-11-18", "UpdateService") +{} + +UpdateServiceRequest::~UpdateServiceRequest() +{} + +std::string UpdateServiceRequest::getData()const +{ + return data_; +} + +void UpdateServiceRequest::setData(const std::string& data) +{ + data_ = data; + setParameter("Data", data); +} + +long UpdateServiceRequest::getCsbId()const +{ + return csbId_; +} + +void UpdateServiceRequest::setCsbId(long csbId) +{ + csbId_ = csbId; + setParameter("CsbId", std::to_string(csbId)); +} + +std::string UpdateServiceRequest::getRegionId()const +{ + return regionId_; +} + +void UpdateServiceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/csb/src/model/UpdateServiceResult.cc b/csb/src/model/UpdateServiceResult.cc new file mode 100644 index 000000000..a2a685eb1 --- /dev/null +++ b/csb/src/model/UpdateServiceResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CSB; +using namespace AlibabaCloud::CSB::Model; + +UpdateServiceResult::UpdateServiceResult() : + ServiceResult() +{} + +UpdateServiceResult::UpdateServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateServiceResult::~UpdateServiceResult() +{} + +void UpdateServiceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string UpdateServiceResult::getMessage()const +{ + return message_; +} + +int UpdateServiceResult::getCode()const +{ + return code_; +} +