From d5a286f460d831b3a161d81a609cdc970dd50dc1 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Fri, 22 Nov 2024 09:45:23 +0000 Subject: [PATCH] Generated 2021-11-11 for qianzhou. --- VERSION | 2 +- qianzhou/CMakeLists.txt | 134 +++++ .../alibabacloud/qianzhou/QianzhouClient.h | 150 +++++ .../alibabacloud/qianzhou/QianzhouExport.h | 32 ++ .../model/AICreateSessionMessageRequest.h | 60 ++ .../model/AICreateSessionMessageResult.h | 61 ++ .../qianzhou/model/CreateDiagnosisRequest.h | 48 ++ .../qianzhou/model/CreateDiagnosisResult.h | 55 ++ .../qianzhou/model/GetClusterRequest.h | 42 ++ .../qianzhou/model/GetClusterResult.h | 66 +++ .../qianzhou/model/GetClusterWarningRequest.h | 42 ++ .../qianzhou/model/GetClusterWarningResult.h | 51 ++ .../model/GetDiagnosisResultRequest.h | 45 ++ .../qianzhou/model/GetDiagnosisResultResult.h | 57 ++ .../model/GetUserClusterWarningRequest.h | 42 ++ .../model/GetUserClusterWarningResult.h | 51 ++ .../qianzhou/model/GetWebshellTokenRequest.h | 39 ++ .../qianzhou/model/GetWebshellTokenResult.h | 51 ++ .../qianzhou/model/HelloRequest.h | 42 ++ .../alibabacloud/qianzhou/model/HelloResult.h | 63 +++ .../model/ListClusterDeprecatedAPIRequest.h | 51 ++ .../model/ListClusterDeprecatedAPIResult.h | 79 +++ .../qianzhou/model/ListClusterImagesRequest.h | 57 ++ .../qianzhou/model/ListClusterImagesResult.h | 76 +++ .../qianzhou/model/ListUserClustersRequest.h | 48 ++ .../qianzhou/model/ListUserClustersResult.h | 57 ++ .../model/QueryByInstanceInfoRequest.h | 42 ++ .../model/QueryByInstanceInfoResult.h | 65 +++ .../qianzhou/model/QueryNodeInfoRequest.h | 45 ++ .../qianzhou/model/QueryNodeInfoResult.h | 65 +++ qianzhou/src/QianzhouClient.cc | 521 ++++++++++++++++++ .../model/AICreateSessionMessageRequest.cc | 55 ++ .../src/model/AICreateSessionMessageResult.cc | 86 +++ qianzhou/src/model/CreateDiagnosisRequest.cc | 55 ++ qianzhou/src/model/CreateDiagnosisResult.cc | 65 +++ qianzhou/src/model/GetClusterRequest.cc | 37 ++ qianzhou/src/model/GetClusterResult.cc | 77 +++ .../src/model/GetClusterWarningRequest.cc | 37 ++ qianzhou/src/model/GetClusterWarningResult.cc | 51 ++ .../src/model/GetDiagnosisResultRequest.cc | 46 ++ .../src/model/GetDiagnosisResultResult.cc | 72 +++ .../src/model/GetUserClusterWarningRequest.cc | 37 ++ .../src/model/GetUserClusterWarningResult.cc | 51 ++ qianzhou/src/model/GetWebshellTokenRequest.cc | 28 + qianzhou/src/model/GetWebshellTokenResult.cc | 51 ++ qianzhou/src/model/HelloRequest.cc | 37 ++ qianzhou/src/model/HelloResult.cc | 77 +++ .../model/ListClusterDeprecatedAPIRequest.cc | 64 +++ .../model/ListClusterDeprecatedAPIResult.cc | 107 ++++ .../src/model/ListClusterImagesRequest.cc | 82 +++ qianzhou/src/model/ListClusterImagesResult.cc | 101 ++++ qianzhou/src/model/ListUserClustersRequest.cc | 55 ++ qianzhou/src/model/ListUserClustersResult.cc | 72 +++ .../src/model/QueryByInstanceInfoRequest.cc | 37 ++ .../src/model/QueryByInstanceInfoResult.cc | 86 +++ qianzhou/src/model/QueryNodeInfoRequest.cc | 46 ++ qianzhou/src/model/QueryNodeInfoResult.cc | 86 +++ 57 files changed, 3836 insertions(+), 1 deletion(-) create mode 100644 qianzhou/CMakeLists.txt create mode 100644 qianzhou/include/alibabacloud/qianzhou/QianzhouClient.h create mode 100644 qianzhou/include/alibabacloud/qianzhou/QianzhouExport.h create mode 100644 qianzhou/include/alibabacloud/qianzhou/model/AICreateSessionMessageRequest.h create mode 100644 qianzhou/include/alibabacloud/qianzhou/model/AICreateSessionMessageResult.h create mode 100644 qianzhou/include/alibabacloud/qianzhou/model/CreateDiagnosisRequest.h create mode 100644 qianzhou/include/alibabacloud/qianzhou/model/CreateDiagnosisResult.h create mode 100644 qianzhou/include/alibabacloud/qianzhou/model/GetClusterRequest.h create mode 100644 qianzhou/include/alibabacloud/qianzhou/model/GetClusterResult.h create mode 100644 qianzhou/include/alibabacloud/qianzhou/model/GetClusterWarningRequest.h create mode 100644 qianzhou/include/alibabacloud/qianzhou/model/GetClusterWarningResult.h create mode 100644 qianzhou/include/alibabacloud/qianzhou/model/GetDiagnosisResultRequest.h create mode 100644 qianzhou/include/alibabacloud/qianzhou/model/GetDiagnosisResultResult.h create mode 100644 qianzhou/include/alibabacloud/qianzhou/model/GetUserClusterWarningRequest.h create mode 100644 qianzhou/include/alibabacloud/qianzhou/model/GetUserClusterWarningResult.h create mode 100644 qianzhou/include/alibabacloud/qianzhou/model/GetWebshellTokenRequest.h create mode 100644 qianzhou/include/alibabacloud/qianzhou/model/GetWebshellTokenResult.h create mode 100644 qianzhou/include/alibabacloud/qianzhou/model/HelloRequest.h create mode 100644 qianzhou/include/alibabacloud/qianzhou/model/HelloResult.h create mode 100644 qianzhou/include/alibabacloud/qianzhou/model/ListClusterDeprecatedAPIRequest.h create mode 100644 qianzhou/include/alibabacloud/qianzhou/model/ListClusterDeprecatedAPIResult.h create mode 100644 qianzhou/include/alibabacloud/qianzhou/model/ListClusterImagesRequest.h create mode 100644 qianzhou/include/alibabacloud/qianzhou/model/ListClusterImagesResult.h create mode 100644 qianzhou/include/alibabacloud/qianzhou/model/ListUserClustersRequest.h create mode 100644 qianzhou/include/alibabacloud/qianzhou/model/ListUserClustersResult.h create mode 100644 qianzhou/include/alibabacloud/qianzhou/model/QueryByInstanceInfoRequest.h create mode 100644 qianzhou/include/alibabacloud/qianzhou/model/QueryByInstanceInfoResult.h create mode 100644 qianzhou/include/alibabacloud/qianzhou/model/QueryNodeInfoRequest.h create mode 100644 qianzhou/include/alibabacloud/qianzhou/model/QueryNodeInfoResult.h create mode 100644 qianzhou/src/QianzhouClient.cc create mode 100644 qianzhou/src/model/AICreateSessionMessageRequest.cc create mode 100644 qianzhou/src/model/AICreateSessionMessageResult.cc create mode 100644 qianzhou/src/model/CreateDiagnosisRequest.cc create mode 100644 qianzhou/src/model/CreateDiagnosisResult.cc create mode 100644 qianzhou/src/model/GetClusterRequest.cc create mode 100644 qianzhou/src/model/GetClusterResult.cc create mode 100644 qianzhou/src/model/GetClusterWarningRequest.cc create mode 100644 qianzhou/src/model/GetClusterWarningResult.cc create mode 100644 qianzhou/src/model/GetDiagnosisResultRequest.cc create mode 100644 qianzhou/src/model/GetDiagnosisResultResult.cc create mode 100644 qianzhou/src/model/GetUserClusterWarningRequest.cc create mode 100644 qianzhou/src/model/GetUserClusterWarningResult.cc create mode 100644 qianzhou/src/model/GetWebshellTokenRequest.cc create mode 100644 qianzhou/src/model/GetWebshellTokenResult.cc create mode 100644 qianzhou/src/model/HelloRequest.cc create mode 100644 qianzhou/src/model/HelloResult.cc create mode 100644 qianzhou/src/model/ListClusterDeprecatedAPIRequest.cc create mode 100644 qianzhou/src/model/ListClusterDeprecatedAPIResult.cc create mode 100644 qianzhou/src/model/ListClusterImagesRequest.cc create mode 100644 qianzhou/src/model/ListClusterImagesResult.cc create mode 100644 qianzhou/src/model/ListUserClustersRequest.cc create mode 100644 qianzhou/src/model/ListUserClustersResult.cc create mode 100644 qianzhou/src/model/QueryByInstanceInfoRequest.cc create mode 100644 qianzhou/src/model/QueryByInstanceInfoResult.cc create mode 100644 qianzhou/src/model/QueryNodeInfoRequest.cc create mode 100644 qianzhou/src/model/QueryNodeInfoResult.cc diff --git a/VERSION b/VERSION index 4db419c1c..6e83ad1de 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.2018 \ No newline at end of file +1.36.2019 \ No newline at end of file diff --git a/qianzhou/CMakeLists.txt b/qianzhou/CMakeLists.txt new file mode 100644 index 000000000..9a48fb904 --- /dev/null +++ b/qianzhou/CMakeLists.txt @@ -0,0 +1,134 @@ +# +# Copyright 2009-2017 Alibaba Cloud All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT 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(qianzhou_public_header + include/alibabacloud/qianzhou/QianzhouClient.h + include/alibabacloud/qianzhou/QianzhouExport.h ) + +set(qianzhou_public_header_model + include/alibabacloud/qianzhou/model/AICreateSessionMessageRequest.h + include/alibabacloud/qianzhou/model/AICreateSessionMessageResult.h + include/alibabacloud/qianzhou/model/CreateDiagnosisRequest.h + include/alibabacloud/qianzhou/model/CreateDiagnosisResult.h + include/alibabacloud/qianzhou/model/GetClusterRequest.h + include/alibabacloud/qianzhou/model/GetClusterResult.h + include/alibabacloud/qianzhou/model/GetClusterWarningRequest.h + include/alibabacloud/qianzhou/model/GetClusterWarningResult.h + include/alibabacloud/qianzhou/model/GetDiagnosisResultRequest.h + include/alibabacloud/qianzhou/model/GetDiagnosisResultResult.h + include/alibabacloud/qianzhou/model/GetUserClusterWarningRequest.h + include/alibabacloud/qianzhou/model/GetUserClusterWarningResult.h + include/alibabacloud/qianzhou/model/GetWebshellTokenRequest.h + include/alibabacloud/qianzhou/model/GetWebshellTokenResult.h + include/alibabacloud/qianzhou/model/HelloRequest.h + include/alibabacloud/qianzhou/model/HelloResult.h + include/alibabacloud/qianzhou/model/ListClusterDeprecatedAPIRequest.h + include/alibabacloud/qianzhou/model/ListClusterDeprecatedAPIResult.h + include/alibabacloud/qianzhou/model/ListClusterImagesRequest.h + include/alibabacloud/qianzhou/model/ListClusterImagesResult.h + include/alibabacloud/qianzhou/model/ListUserClustersRequest.h + include/alibabacloud/qianzhou/model/ListUserClustersResult.h + include/alibabacloud/qianzhou/model/QueryByInstanceInfoRequest.h + include/alibabacloud/qianzhou/model/QueryByInstanceInfoResult.h + include/alibabacloud/qianzhou/model/QueryNodeInfoRequest.h + include/alibabacloud/qianzhou/model/QueryNodeInfoResult.h ) + +set(qianzhou_src + src/QianzhouClient.cc + src/model/AICreateSessionMessageRequest.cc + src/model/AICreateSessionMessageResult.cc + src/model/CreateDiagnosisRequest.cc + src/model/CreateDiagnosisResult.cc + src/model/GetClusterRequest.cc + src/model/GetClusterResult.cc + src/model/GetClusterWarningRequest.cc + src/model/GetClusterWarningResult.cc + src/model/GetDiagnosisResultRequest.cc + src/model/GetDiagnosisResultResult.cc + src/model/GetUserClusterWarningRequest.cc + src/model/GetUserClusterWarningResult.cc + src/model/GetWebshellTokenRequest.cc + src/model/GetWebshellTokenResult.cc + src/model/HelloRequest.cc + src/model/HelloResult.cc + src/model/ListClusterDeprecatedAPIRequest.cc + src/model/ListClusterDeprecatedAPIResult.cc + src/model/ListClusterImagesRequest.cc + src/model/ListClusterImagesResult.cc + src/model/ListUserClustersRequest.cc + src/model/ListUserClustersResult.cc + src/model/QueryByInstanceInfoRequest.cc + src/model/QueryByInstanceInfoResult.cc + src/model/QueryNodeInfoRequest.cc + src/model/QueryNodeInfoResult.cc ) + +add_library(qianzhou ${LIB_TYPE} + ${qianzhou_public_header} + ${qianzhou_public_header_model} + ${qianzhou_src}) + +set_target_properties(qianzhou + 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}qianzhou + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(qianzhou + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_QIANZHOU_LIBRARY) +endif() + +target_include_directories(qianzhou + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(qianzhou + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(qianzhou + jsoncpp) + target_include_directories(qianzhou + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(qianzhou + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(qianzhou + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(qianzhou + PRIVATE /usr/include/jsoncpp) + target_link_libraries(qianzhou + jsoncpp) +endif() + +install(FILES ${qianzhou_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/qianzhou) +install(FILES ${qianzhou_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/qianzhou/model) +install(TARGETS qianzhou + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/qianzhou/include/alibabacloud/qianzhou/QianzhouClient.h b/qianzhou/include/alibabacloud/qianzhou/QianzhouClient.h new file mode 100644 index 000000000..504efd8c5 --- /dev/null +++ b/qianzhou/include/alibabacloud/qianzhou/QianzhouClient.h @@ -0,0 +1,150 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_QIANZHOU_QIANZHOUCLIENT_H_ +#define ALIBABACLOUD_QIANZHOU_QIANZHOUCLIENT_H_ + +#include +#include +#include +#include +#include "QianzhouExport.h" +#include "model/AICreateSessionMessageRequest.h" +#include "model/AICreateSessionMessageResult.h" +#include "model/CreateDiagnosisRequest.h" +#include "model/CreateDiagnosisResult.h" +#include "model/GetClusterRequest.h" +#include "model/GetClusterResult.h" +#include "model/GetClusterWarningRequest.h" +#include "model/GetClusterWarningResult.h" +#include "model/GetDiagnosisResultRequest.h" +#include "model/GetDiagnosisResultResult.h" +#include "model/GetUserClusterWarningRequest.h" +#include "model/GetUserClusterWarningResult.h" +#include "model/GetWebshellTokenRequest.h" +#include "model/GetWebshellTokenResult.h" +#include "model/HelloRequest.h" +#include "model/HelloResult.h" +#include "model/ListClusterDeprecatedAPIRequest.h" +#include "model/ListClusterDeprecatedAPIResult.h" +#include "model/ListClusterImagesRequest.h" +#include "model/ListClusterImagesResult.h" +#include "model/ListUserClustersRequest.h" +#include "model/ListUserClustersResult.h" +#include "model/QueryByInstanceInfoRequest.h" +#include "model/QueryByInstanceInfoResult.h" +#include "model/QueryNodeInfoRequest.h" +#include "model/QueryNodeInfoResult.h" + + +namespace AlibabaCloud +{ + namespace Qianzhou + { + class ALIBABACLOUD_QIANZHOU_EXPORT QianzhouClient : public RoaServiceClient + { + public: + typedef Outcome AICreateSessionMessageOutcome; + typedef std::future AICreateSessionMessageOutcomeCallable; + typedef std::function&)> AICreateSessionMessageAsyncHandler; + typedef Outcome CreateDiagnosisOutcome; + typedef std::future CreateDiagnosisOutcomeCallable; + typedef std::function&)> CreateDiagnosisAsyncHandler; + typedef Outcome GetClusterOutcome; + typedef std::future GetClusterOutcomeCallable; + typedef std::function&)> GetClusterAsyncHandler; + typedef Outcome GetClusterWarningOutcome; + typedef std::future GetClusterWarningOutcomeCallable; + typedef std::function&)> GetClusterWarningAsyncHandler; + typedef Outcome GetDiagnosisResultOutcome; + typedef std::future GetDiagnosisResultOutcomeCallable; + typedef std::function&)> GetDiagnosisResultAsyncHandler; + typedef Outcome GetUserClusterWarningOutcome; + typedef std::future GetUserClusterWarningOutcomeCallable; + typedef std::function&)> GetUserClusterWarningAsyncHandler; + typedef Outcome GetWebshellTokenOutcome; + typedef std::future GetWebshellTokenOutcomeCallable; + typedef std::function&)> GetWebshellTokenAsyncHandler; + typedef Outcome HelloOutcome; + typedef std::future HelloOutcomeCallable; + typedef std::function&)> HelloAsyncHandler; + typedef Outcome ListClusterDeprecatedAPIOutcome; + typedef std::future ListClusterDeprecatedAPIOutcomeCallable; + typedef std::function&)> ListClusterDeprecatedAPIAsyncHandler; + typedef Outcome ListClusterImagesOutcome; + typedef std::future ListClusterImagesOutcomeCallable; + typedef std::function&)> ListClusterImagesAsyncHandler; + typedef Outcome ListUserClustersOutcome; + typedef std::future ListUserClustersOutcomeCallable; + typedef std::function&)> ListUserClustersAsyncHandler; + typedef Outcome QueryByInstanceInfoOutcome; + typedef std::future QueryByInstanceInfoOutcomeCallable; + typedef std::function&)> QueryByInstanceInfoAsyncHandler; + typedef Outcome QueryNodeInfoOutcome; + typedef std::future QueryNodeInfoOutcomeCallable; + typedef std::function&)> QueryNodeInfoAsyncHandler; + + QianzhouClient(const Credentials &credentials, const ClientConfiguration &configuration); + QianzhouClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + QianzhouClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~QianzhouClient(); + AICreateSessionMessageOutcome aICreateSessionMessage(const Model::AICreateSessionMessageRequest &request)const; + void aICreateSessionMessageAsync(const Model::AICreateSessionMessageRequest& request, const AICreateSessionMessageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AICreateSessionMessageOutcomeCallable aICreateSessionMessageCallable(const Model::AICreateSessionMessageRequest& request) const; + CreateDiagnosisOutcome createDiagnosis(const Model::CreateDiagnosisRequest &request)const; + void createDiagnosisAsync(const Model::CreateDiagnosisRequest& request, const CreateDiagnosisAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDiagnosisOutcomeCallable createDiagnosisCallable(const Model::CreateDiagnosisRequest& request) const; + GetClusterOutcome getCluster(const Model::GetClusterRequest &request)const; + void getClusterAsync(const Model::GetClusterRequest& request, const GetClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetClusterOutcomeCallable getClusterCallable(const Model::GetClusterRequest& request) const; + GetClusterWarningOutcome getClusterWarning(const Model::GetClusterWarningRequest &request)const; + void getClusterWarningAsync(const Model::GetClusterWarningRequest& request, const GetClusterWarningAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetClusterWarningOutcomeCallable getClusterWarningCallable(const Model::GetClusterWarningRequest& request) const; + GetDiagnosisResultOutcome getDiagnosisResult(const Model::GetDiagnosisResultRequest &request)const; + void getDiagnosisResultAsync(const Model::GetDiagnosisResultRequest& request, const GetDiagnosisResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetDiagnosisResultOutcomeCallable getDiagnosisResultCallable(const Model::GetDiagnosisResultRequest& request) const; + GetUserClusterWarningOutcome getUserClusterWarning(const Model::GetUserClusterWarningRequest &request)const; + void getUserClusterWarningAsync(const Model::GetUserClusterWarningRequest& request, const GetUserClusterWarningAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetUserClusterWarningOutcomeCallable getUserClusterWarningCallable(const Model::GetUserClusterWarningRequest& request) const; + GetWebshellTokenOutcome getWebshellToken(const Model::GetWebshellTokenRequest &request)const; + void getWebshellTokenAsync(const Model::GetWebshellTokenRequest& request, const GetWebshellTokenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetWebshellTokenOutcomeCallable getWebshellTokenCallable(const Model::GetWebshellTokenRequest& request) const; + HelloOutcome hello(const Model::HelloRequest &request)const; + void helloAsync(const Model::HelloRequest& request, const HelloAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + HelloOutcomeCallable helloCallable(const Model::HelloRequest& request) const; + ListClusterDeprecatedAPIOutcome listClusterDeprecatedAPI(const Model::ListClusterDeprecatedAPIRequest &request)const; + void listClusterDeprecatedAPIAsync(const Model::ListClusterDeprecatedAPIRequest& request, const ListClusterDeprecatedAPIAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListClusterDeprecatedAPIOutcomeCallable listClusterDeprecatedAPICallable(const Model::ListClusterDeprecatedAPIRequest& request) const; + ListClusterImagesOutcome listClusterImages(const Model::ListClusterImagesRequest &request)const; + void listClusterImagesAsync(const Model::ListClusterImagesRequest& request, const ListClusterImagesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListClusterImagesOutcomeCallable listClusterImagesCallable(const Model::ListClusterImagesRequest& request) const; + ListUserClustersOutcome listUserClusters(const Model::ListUserClustersRequest &request)const; + void listUserClustersAsync(const Model::ListUserClustersRequest& request, const ListUserClustersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListUserClustersOutcomeCallable listUserClustersCallable(const Model::ListUserClustersRequest& request) const; + QueryByInstanceInfoOutcome queryByInstanceInfo(const Model::QueryByInstanceInfoRequest &request)const; + void queryByInstanceInfoAsync(const Model::QueryByInstanceInfoRequest& request, const QueryByInstanceInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryByInstanceInfoOutcomeCallable queryByInstanceInfoCallable(const Model::QueryByInstanceInfoRequest& request) const; + QueryNodeInfoOutcome queryNodeInfo(const Model::QueryNodeInfoRequest &request)const; + void queryNodeInfoAsync(const Model::QueryNodeInfoRequest& request, const QueryNodeInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryNodeInfoOutcomeCallable queryNodeInfoCallable(const Model::QueryNodeInfoRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_QIANZHOU_QIANZHOUCLIENT_H_ diff --git a/qianzhou/include/alibabacloud/qianzhou/QianzhouExport.h b/qianzhou/include/alibabacloud/qianzhou/QianzhouExport.h new file mode 100644 index 000000000..e8a8caad6 --- /dev/null +++ b/qianzhou/include/alibabacloud/qianzhou/QianzhouExport.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_QIANZHOU_QIANZHOUEXPORT_H_ +#define ALIBABACLOUD_QIANZHOU_QIANZHOUEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_QIANZHOU_LIBRARY) +# define ALIBABACLOUD_QIANZHOU_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_QIANZHOU_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_QIANZHOU_EXPORT +#endif + +#endif // !ALIBABACLOUD_QIANZHOU_QIANZHOUEXPORT_H_ \ No newline at end of file diff --git a/qianzhou/include/alibabacloud/qianzhou/model/AICreateSessionMessageRequest.h b/qianzhou/include/alibabacloud/qianzhou/model/AICreateSessionMessageRequest.h new file mode 100644 index 000000000..263c5641a --- /dev/null +++ b/qianzhou/include/alibabacloud/qianzhou/model/AICreateSessionMessageRequest.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_QIANZHOU_MODEL_AICREATESESSIONMESSAGEREQUEST_H_ +#define ALIBABACLOUD_QIANZHOU_MODEL_AICREATESESSIONMESSAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qianzhou { +namespace Model { +class ALIBABACLOUD_QIANZHOU_EXPORT AICreateSessionMessageRequest : public RoaServiceRequest { +public: + struct Body { + struct Context { + std::string cluster_id; + std::string kind; + std::string _namespace; + std::string name; + std::string error; + std::string uuid; + }; + context context; + std::string session_id; + std::string language; + std::string type; + std::string message; + }; + AICreateSessionMessageRequest(); + ~AICreateSessionMessageRequest(); + std::string getEmployee_id() const; + void setEmployee_id(const std::string &employee_id); + body getBody() const; + void setBody(const body &body); + +private: + std::string employee_id_; + body body_; +}; +} // namespace Model +} // namespace Qianzhou +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_QIANZHOU_MODEL_AICREATESESSIONMESSAGEREQUEST_H_ diff --git a/qianzhou/include/alibabacloud/qianzhou/model/AICreateSessionMessageResult.h b/qianzhou/include/alibabacloud/qianzhou/model/AICreateSessionMessageResult.h new file mode 100644 index 000000000..74fb28314 --- /dev/null +++ b/qianzhou/include/alibabacloud/qianzhou/model/AICreateSessionMessageResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_QIANZHOU_MODEL_AICREATESESSIONMESSAGERESULT_H_ +#define ALIBABACLOUD_QIANZHOU_MODEL_AICREATESESSIONMESSAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Qianzhou + { + namespace Model + { + class ALIBABACLOUD_QIANZHOU_EXPORT AICreateSessionMessageResult : public ServiceResult + { + public: + + + AICreateSessionMessageResult(); + explicit AICreateSessionMessageResult(const std::string &payload); + ~AICreateSessionMessageResult(); + std::string getMsg()const; + std::string getAnswer()const; + std::string getRequestId()const; + std::string getData()const; + std::string getSession_id()const; + long getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + std::string answer_; + std::string requestId_; + std::string data_; + std::string session_id_; + long code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_QIANZHOU_MODEL_AICREATESESSIONMESSAGERESULT_H_ \ No newline at end of file diff --git a/qianzhou/include/alibabacloud/qianzhou/model/CreateDiagnosisRequest.h b/qianzhou/include/alibabacloud/qianzhou/model/CreateDiagnosisRequest.h new file mode 100644 index 000000000..f9ae706b9 --- /dev/null +++ b/qianzhou/include/alibabacloud/qianzhou/model/CreateDiagnosisRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_QIANZHOU_MODEL_CREATEDIAGNOSISREQUEST_H_ +#define ALIBABACLOUD_QIANZHOU_MODEL_CREATEDIAGNOSISREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qianzhou { +namespace Model { +class ALIBABACLOUD_QIANZHOU_EXPORT CreateDiagnosisRequest : public RoaServiceRequest { +public: + CreateDiagnosisRequest(); + ~CreateDiagnosisRequest(); + std::string getDiagnosisType() const; + void setDiagnosisType(const std::string &diagnosisType); + std::string getClusterID() const; + void setClusterID(const std::string &clusterID); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string diagnosisType_; + std::string clusterID_; + std::string body_; +}; +} // namespace Model +} // namespace Qianzhou +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_QIANZHOU_MODEL_CREATEDIAGNOSISREQUEST_H_ diff --git a/qianzhou/include/alibabacloud/qianzhou/model/CreateDiagnosisResult.h b/qianzhou/include/alibabacloud/qianzhou/model/CreateDiagnosisResult.h new file mode 100644 index 000000000..612011f94 --- /dev/null +++ b/qianzhou/include/alibabacloud/qianzhou/model/CreateDiagnosisResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_QIANZHOU_MODEL_CREATEDIAGNOSISRESULT_H_ +#define ALIBABACLOUD_QIANZHOU_MODEL_CREATEDIAGNOSISRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Qianzhou + { + namespace Model + { + class ALIBABACLOUD_QIANZHOU_EXPORT CreateDiagnosisResult : public ServiceResult + { + public: + + + CreateDiagnosisResult(); + explicit CreateDiagnosisResult(const std::string &payload); + ~CreateDiagnosisResult(); + std::string getRequestId()const; + ObjectOfAny getData()const; + long getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + ObjectOfAny data_; + long code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_QIANZHOU_MODEL_CREATEDIAGNOSISRESULT_H_ \ No newline at end of file diff --git a/qianzhou/include/alibabacloud/qianzhou/model/GetClusterRequest.h b/qianzhou/include/alibabacloud/qianzhou/model/GetClusterRequest.h new file mode 100644 index 000000000..3df5ac070 --- /dev/null +++ b/qianzhou/include/alibabacloud/qianzhou/model/GetClusterRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_QIANZHOU_MODEL_GETCLUSTERREQUEST_H_ +#define ALIBABACLOUD_QIANZHOU_MODEL_GETCLUSTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qianzhou { +namespace Model { +class ALIBABACLOUD_QIANZHOU_EXPORT GetClusterRequest : public RoaServiceRequest { +public: + GetClusterRequest(); + ~GetClusterRequest(); + std::string getClusterID() const; + void setClusterID(const std::string &clusterID); + +private: + std::string clusterID_; +}; +} // namespace Model +} // namespace Qianzhou +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_QIANZHOU_MODEL_GETCLUSTERREQUEST_H_ diff --git a/qianzhou/include/alibabacloud/qianzhou/model/GetClusterResult.h b/qianzhou/include/alibabacloud/qianzhou/model/GetClusterResult.h new file mode 100644 index 000000000..c2e2016ee --- /dev/null +++ b/qianzhou/include/alibabacloud/qianzhou/model/GetClusterResult.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_QIANZHOU_MODEL_GETCLUSTERRESULT_H_ +#define ALIBABACLOUD_QIANZHOU_MODEL_GETCLUSTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Qianzhou + { + namespace Model + { + class ALIBABACLOUD_QIANZHOU_EXPORT GetClusterResult : public ServiceResult + { + public: + struct Data + { + std::string clusterID; + std::string state; + std::string userID; + std::string currentVersion; + std::string securityGroupId; + std::string regionID; + std::string clusterType; + std::string spec; + std::string profile; + std::string name; + }; + + + GetClusterResult(); + explicit GetClusterResult(const std::string &payload); + ~GetClusterResult(); + std::string getRequestId()const; + Data getData()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + Data data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_QIANZHOU_MODEL_GETCLUSTERRESULT_H_ \ No newline at end of file diff --git a/qianzhou/include/alibabacloud/qianzhou/model/GetClusterWarningRequest.h b/qianzhou/include/alibabacloud/qianzhou/model/GetClusterWarningRequest.h new file mode 100644 index 000000000..eda62c046 --- /dev/null +++ b/qianzhou/include/alibabacloud/qianzhou/model/GetClusterWarningRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_QIANZHOU_MODEL_GETCLUSTERWARNINGREQUEST_H_ +#define ALIBABACLOUD_QIANZHOU_MODEL_GETCLUSTERWARNINGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qianzhou { +namespace Model { +class ALIBABACLOUD_QIANZHOU_EXPORT GetClusterWarningRequest : public RoaServiceRequest { +public: + GetClusterWarningRequest(); + ~GetClusterWarningRequest(); + std::string getClusterID() const; + void setClusterID(const std::string &clusterID); + +private: + std::string clusterID_; +}; +} // namespace Model +} // namespace Qianzhou +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_QIANZHOU_MODEL_GETCLUSTERWARNINGREQUEST_H_ diff --git a/qianzhou/include/alibabacloud/qianzhou/model/GetClusterWarningResult.h b/qianzhou/include/alibabacloud/qianzhou/model/GetClusterWarningResult.h new file mode 100644 index 000000000..e68506071 --- /dev/null +++ b/qianzhou/include/alibabacloud/qianzhou/model/GetClusterWarningResult.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_QIANZHOU_MODEL_GETCLUSTERWARNINGRESULT_H_ +#define ALIBABACLOUD_QIANZHOU_MODEL_GETCLUSTERWARNINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Qianzhou + { + namespace Model + { + class ALIBABACLOUD_QIANZHOU_EXPORT GetClusterWarningResult : public ServiceResult + { + public: + + + GetClusterWarningResult(); + explicit GetClusterWarningResult(const std::string &payload); + ~GetClusterWarningResult(); + std::string getRequestId()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_QIANZHOU_MODEL_GETCLUSTERWARNINGRESULT_H_ \ No newline at end of file diff --git a/qianzhou/include/alibabacloud/qianzhou/model/GetDiagnosisResultRequest.h b/qianzhou/include/alibabacloud/qianzhou/model/GetDiagnosisResultRequest.h new file mode 100644 index 000000000..13c49a5cc --- /dev/null +++ b/qianzhou/include/alibabacloud/qianzhou/model/GetDiagnosisResultRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_QIANZHOU_MODEL_GETDIAGNOSISRESULTREQUEST_H_ +#define ALIBABACLOUD_QIANZHOU_MODEL_GETDIAGNOSISRESULTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qianzhou { +namespace Model { +class ALIBABACLOUD_QIANZHOU_EXPORT GetDiagnosisResultRequest : public RoaServiceRequest { +public: + GetDiagnosisResultRequest(); + ~GetDiagnosisResultRequest(); + std::string getDiagnosisId() const; + void setDiagnosisId(const std::string &diagnosisId); + std::string getOwnerUid() const; + void setOwnerUid(const std::string &ownerUid); + +private: + std::string diagnosisId_; + std::string ownerUid_; +}; +} // namespace Model +} // namespace Qianzhou +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_QIANZHOU_MODEL_GETDIAGNOSISRESULTREQUEST_H_ diff --git a/qianzhou/include/alibabacloud/qianzhou/model/GetDiagnosisResultResult.h b/qianzhou/include/alibabacloud/qianzhou/model/GetDiagnosisResultResult.h new file mode 100644 index 000000000..b50326537 --- /dev/null +++ b/qianzhou/include/alibabacloud/qianzhou/model/GetDiagnosisResultResult.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_QIANZHOU_MODEL_GETDIAGNOSISRESULTRESULT_H_ +#define ALIBABACLOUD_QIANZHOU_MODEL_GETDIAGNOSISRESULTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Qianzhou + { + namespace Model + { + class ALIBABACLOUD_QIANZHOU_EXPORT GetDiagnosisResultResult : public ServiceResult + { + public: + + + GetDiagnosisResultResult(); + explicit GetDiagnosisResultResult(const std::string &payload); + ~GetDiagnosisResultResult(); + std::string getMsg()const; + std::string getRequestId()const; + ObjectOfAny getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + std::string requestId_; + ObjectOfAny data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_QIANZHOU_MODEL_GETDIAGNOSISRESULTRESULT_H_ \ No newline at end of file diff --git a/qianzhou/include/alibabacloud/qianzhou/model/GetUserClusterWarningRequest.h b/qianzhou/include/alibabacloud/qianzhou/model/GetUserClusterWarningRequest.h new file mode 100644 index 000000000..c7770d747 --- /dev/null +++ b/qianzhou/include/alibabacloud/qianzhou/model/GetUserClusterWarningRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_QIANZHOU_MODEL_GETUSERCLUSTERWARNINGREQUEST_H_ +#define ALIBABACLOUD_QIANZHOU_MODEL_GETUSERCLUSTERWARNINGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qianzhou { +namespace Model { +class ALIBABACLOUD_QIANZHOU_EXPORT GetUserClusterWarningRequest : public RoaServiceRequest { +public: + GetUserClusterWarningRequest(); + ~GetUserClusterWarningRequest(); + std::string getUserID() const; + void setUserID(const std::string &userID); + +private: + std::string userID_; +}; +} // namespace Model +} // namespace Qianzhou +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_QIANZHOU_MODEL_GETUSERCLUSTERWARNINGREQUEST_H_ diff --git a/qianzhou/include/alibabacloud/qianzhou/model/GetUserClusterWarningResult.h b/qianzhou/include/alibabacloud/qianzhou/model/GetUserClusterWarningResult.h new file mode 100644 index 000000000..f465d1ba6 --- /dev/null +++ b/qianzhou/include/alibabacloud/qianzhou/model/GetUserClusterWarningResult.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_QIANZHOU_MODEL_GETUSERCLUSTERWARNINGRESULT_H_ +#define ALIBABACLOUD_QIANZHOU_MODEL_GETUSERCLUSTERWARNINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Qianzhou + { + namespace Model + { + class ALIBABACLOUD_QIANZHOU_EXPORT GetUserClusterWarningResult : public ServiceResult + { + public: + + + GetUserClusterWarningResult(); + explicit GetUserClusterWarningResult(const std::string &payload); + ~GetUserClusterWarningResult(); + std::string getRequestId()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_QIANZHOU_MODEL_GETUSERCLUSTERWARNINGRESULT_H_ \ No newline at end of file diff --git a/qianzhou/include/alibabacloud/qianzhou/model/GetWebshellTokenRequest.h b/qianzhou/include/alibabacloud/qianzhou/model/GetWebshellTokenRequest.h new file mode 100644 index 000000000..536865532 --- /dev/null +++ b/qianzhou/include/alibabacloud/qianzhou/model/GetWebshellTokenRequest.h @@ -0,0 +1,39 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_QIANZHOU_MODEL_GETWEBSHELLTOKENREQUEST_H_ +#define ALIBABACLOUD_QIANZHOU_MODEL_GETWEBSHELLTOKENREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qianzhou { +namespace Model { +class ALIBABACLOUD_QIANZHOU_EXPORT GetWebshellTokenRequest : public RoaServiceRequest { +public: + GetWebshellTokenRequest(); + ~GetWebshellTokenRequest(); + +private: +}; +} // namespace Model +} // namespace Qianzhou +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_QIANZHOU_MODEL_GETWEBSHELLTOKENREQUEST_H_ diff --git a/qianzhou/include/alibabacloud/qianzhou/model/GetWebshellTokenResult.h b/qianzhou/include/alibabacloud/qianzhou/model/GetWebshellTokenResult.h new file mode 100644 index 000000000..0abd23936 --- /dev/null +++ b/qianzhou/include/alibabacloud/qianzhou/model/GetWebshellTokenResult.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_QIANZHOU_MODEL_GETWEBSHELLTOKENRESULT_H_ +#define ALIBABACLOUD_QIANZHOU_MODEL_GETWEBSHELLTOKENRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Qianzhou + { + namespace Model + { + class ALIBABACLOUD_QIANZHOU_EXPORT GetWebshellTokenResult : public ServiceResult + { + public: + + + GetWebshellTokenResult(); + explicit GetWebshellTokenResult(const std::string &payload); + ~GetWebshellTokenResult(); + std::string getRequestId()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_QIANZHOU_MODEL_GETWEBSHELLTOKENRESULT_H_ \ No newline at end of file diff --git a/qianzhou/include/alibabacloud/qianzhou/model/HelloRequest.h b/qianzhou/include/alibabacloud/qianzhou/model/HelloRequest.h new file mode 100644 index 000000000..c48c62ad9 --- /dev/null +++ b/qianzhou/include/alibabacloud/qianzhou/model/HelloRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_QIANZHOU_MODEL_HELLOREQUEST_H_ +#define ALIBABACLOUD_QIANZHOU_MODEL_HELLOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qianzhou { +namespace Model { +class ALIBABACLOUD_QIANZHOU_EXPORT HelloRequest : public RoaServiceRequest { +public: + HelloRequest(); + ~HelloRequest(); + std::string getUser() const; + void setUser(const std::string &user); + +private: + std::string user_; +}; +} // namespace Model +} // namespace Qianzhou +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_QIANZHOU_MODEL_HELLOREQUEST_H_ diff --git a/qianzhou/include/alibabacloud/qianzhou/model/HelloResult.h b/qianzhou/include/alibabacloud/qianzhou/model/HelloResult.h new file mode 100644 index 000000000..459b3474b --- /dev/null +++ b/qianzhou/include/alibabacloud/qianzhou/model/HelloResult.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_QIANZHOU_MODEL_HELLORESULT_H_ +#define ALIBABACLOUD_QIANZHOU_MODEL_HELLORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Qianzhou + { + namespace Model + { + class ALIBABACLOUD_QIANZHOU_EXPORT HelloResult : public ServiceResult + { + public: + struct Data + { + std::string date; + bool success; + std::string name; + }; + + + HelloResult(); + explicit HelloResult(const std::string &payload); + ~HelloResult(); + std::string getMsg()const; + std::string getRequestId()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + std::string requestId_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_QIANZHOU_MODEL_HELLORESULT_H_ \ No newline at end of file diff --git a/qianzhou/include/alibabacloud/qianzhou/model/ListClusterDeprecatedAPIRequest.h b/qianzhou/include/alibabacloud/qianzhou/model/ListClusterDeprecatedAPIRequest.h new file mode 100644 index 000000000..f163dd14a --- /dev/null +++ b/qianzhou/include/alibabacloud/qianzhou/model/ListClusterDeprecatedAPIRequest.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_QIANZHOU_MODEL_LISTCLUSTERDEPRECATEDAPIREQUEST_H_ +#define ALIBABACLOUD_QIANZHOU_MODEL_LISTCLUSTERDEPRECATEDAPIREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qianzhou { +namespace Model { +class ALIBABACLOUD_QIANZHOU_EXPORT ListClusterDeprecatedAPIRequest : public RoaServiceRequest { +public: + ListClusterDeprecatedAPIRequest(); + ~ListClusterDeprecatedAPIRequest(); + std::string getCluster_id() const; + void setCluster_id(const std::string &cluster_id); + int getPage_no() const; + void setPage_no(int page_no); + std::string getTarget_version() const; + void setTarget_version(const std::string &target_version); + int getPage_size() const; + void setPage_size(int page_size); + +private: + std::string cluster_id_; + int page_no_; + std::string target_version_; + int page_size_; +}; +} // namespace Model +} // namespace Qianzhou +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_QIANZHOU_MODEL_LISTCLUSTERDEPRECATEDAPIREQUEST_H_ diff --git a/qianzhou/include/alibabacloud/qianzhou/model/ListClusterDeprecatedAPIResult.h b/qianzhou/include/alibabacloud/qianzhou/model/ListClusterDeprecatedAPIResult.h new file mode 100644 index 000000000..40548fa71 --- /dev/null +++ b/qianzhou/include/alibabacloud/qianzhou/model/ListClusterDeprecatedAPIResult.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_QIANZHOU_MODEL_LISTCLUSTERDEPRECATEDAPIRESULT_H_ +#define ALIBABACLOUD_QIANZHOU_MODEL_LISTCLUSTERDEPRECATEDAPIRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Qianzhou + { + namespace Model + { + class ALIBABACLOUD_QIANZHOU_EXPORT ListClusterDeprecatedAPIResult : public ServiceResult + { + public: + struct Datas + { + struct DataItem + { + std::string user_agent; + std::string target_version; + std::string deprecated_k8s_version; + std::string cluster_id; + std::string last_time; + std::string content; + std::string request_uri; + std::string label; + int count; + std::string current_version; + std::string source_ips; + std::string ds; + }; + std::vector data; + int pageSize; + int total; + int current; + }; + + + ListClusterDeprecatedAPIResult(); + explicit ListClusterDeprecatedAPIResult(const std::string &payload); + ~ListClusterDeprecatedAPIResult(); + std::string getMsg()const; + std::string getRequestId()const; + Datas getDatas()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + std::string requestId_; + Datas datas_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_QIANZHOU_MODEL_LISTCLUSTERDEPRECATEDAPIRESULT_H_ \ No newline at end of file diff --git a/qianzhou/include/alibabacloud/qianzhou/model/ListClusterImagesRequest.h b/qianzhou/include/alibabacloud/qianzhou/model/ListClusterImagesRequest.h new file mode 100644 index 000000000..1d929c159 --- /dev/null +++ b/qianzhou/include/alibabacloud/qianzhou/model/ListClusterImagesRequest.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_QIANZHOU_MODEL_LISTCLUSTERIMAGESREQUEST_H_ +#define ALIBABACLOUD_QIANZHOU_MODEL_LISTCLUSTERIMAGESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qianzhou { +namespace Model { +class ALIBABACLOUD_QIANZHOU_EXPORT ListClusterImagesRequest : public RoaServiceRequest { +public: + ListClusterImagesRequest(); + ~ListClusterImagesRequest(); + std::string getImage_name() const; + void setImage_name(const std::string &image_name); + std::string getUid() const; + void setUid(const std::string &uid); + std::string getCluster_id() const; + void setCluster_id(const std::string &cluster_id); + std::string getImage_hash() const; + void setImage_hash(const std::string &image_hash); + int getPage_no() const; + void setPage_no(int page_no); + int getPage_size() const; + void setPage_size(int page_size); + +private: + std::string image_name_; + std::string uid_; + std::string cluster_id_; + std::string image_hash_; + int page_no_; + int page_size_; +}; +} // namespace Model +} // namespace Qianzhou +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_QIANZHOU_MODEL_LISTCLUSTERIMAGESREQUEST_H_ diff --git a/qianzhou/include/alibabacloud/qianzhou/model/ListClusterImagesResult.h b/qianzhou/include/alibabacloud/qianzhou/model/ListClusterImagesResult.h new file mode 100644 index 000000000..b34298efa --- /dev/null +++ b/qianzhou/include/alibabacloud/qianzhou/model/ListClusterImagesResult.h @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_QIANZHOU_MODEL_LISTCLUSTERIMAGESRESULT_H_ +#define ALIBABACLOUD_QIANZHOU_MODEL_LISTCLUSTERIMAGESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Qianzhou + { + namespace Model + { + class ALIBABACLOUD_QIANZHOU_EXPORT ListClusterImagesResult : public ServiceResult + { + public: + struct Datas + { + struct DataItem + { + std::string uid; + std::string controller_type; + std::string controller_name; + std::string cluster_id; + std::string updated; + std::string _namespace; + std::string image_name; + std::string image_hash; + std::string created; + }; + std::vector data; + int pageSize; + int total; + int current; + }; + + + ListClusterImagesResult(); + explicit ListClusterImagesResult(const std::string &payload); + ~ListClusterImagesResult(); + std::string getMsg()const; + std::string getRequestId()const; + Datas getDatas()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + std::string requestId_; + Datas datas_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_QIANZHOU_MODEL_LISTCLUSTERIMAGESRESULT_H_ \ No newline at end of file diff --git a/qianzhou/include/alibabacloud/qianzhou/model/ListUserClustersRequest.h b/qianzhou/include/alibabacloud/qianzhou/model/ListUserClustersRequest.h new file mode 100644 index 000000000..793227d4c --- /dev/null +++ b/qianzhou/include/alibabacloud/qianzhou/model/ListUserClustersRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_QIANZHOU_MODEL_LISTUSERCLUSTERSREQUEST_H_ +#define ALIBABACLOUD_QIANZHOU_MODEL_LISTUSERCLUSTERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qianzhou { +namespace Model { +class ALIBABACLOUD_QIANZHOU_EXPORT ListUserClustersRequest : public RoaServiceRequest { +public: + ListUserClustersRequest(); + ~ListUserClustersRequest(); + std::string getCurrent() const; + void setCurrent(const std::string ¤t); + std::string getPageSize() const; + void setPageSize(const std::string &pageSize); + std::string getUserID() const; + void setUserID(const std::string &userID); + +private: + std::string current_; + std::string pageSize_; + std::string userID_; +}; +} // namespace Model +} // namespace Qianzhou +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_QIANZHOU_MODEL_LISTUSERCLUSTERSREQUEST_H_ diff --git a/qianzhou/include/alibabacloud/qianzhou/model/ListUserClustersResult.h b/qianzhou/include/alibabacloud/qianzhou/model/ListUserClustersResult.h new file mode 100644 index 000000000..8da73c0f8 --- /dev/null +++ b/qianzhou/include/alibabacloud/qianzhou/model/ListUserClustersResult.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_QIANZHOU_MODEL_LISTUSERCLUSTERSRESULT_H_ +#define ALIBABACLOUD_QIANZHOU_MODEL_LISTUSERCLUSTERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Qianzhou + { + namespace Model + { + class ALIBABACLOUD_QIANZHOU_EXPORT ListUserClustersResult : public ServiceResult + { + public: + + + ListUserClustersResult(); + explicit ListUserClustersResult(const std::string &payload); + ~ListUserClustersResult(); + std::string getMsg()const; + std::string getRequestId()const; + std::string getData()const; + long getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + std::string requestId_; + std::string data_; + long code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_QIANZHOU_MODEL_LISTUSERCLUSTERSRESULT_H_ \ No newline at end of file diff --git a/qianzhou/include/alibabacloud/qianzhou/model/QueryByInstanceInfoRequest.h b/qianzhou/include/alibabacloud/qianzhou/model/QueryByInstanceInfoRequest.h new file mode 100644 index 000000000..d13cc1f7e --- /dev/null +++ b/qianzhou/include/alibabacloud/qianzhou/model/QueryByInstanceInfoRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_QIANZHOU_MODEL_QUERYBYINSTANCEINFOREQUEST_H_ +#define ALIBABACLOUD_QIANZHOU_MODEL_QUERYBYINSTANCEINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qianzhou { +namespace Model { +class ALIBABACLOUD_QIANZHOU_EXPORT QueryByInstanceInfoRequest : public RoaServiceRequest { +public: + QueryByInstanceInfoRequest(); + ~QueryByInstanceInfoRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Qianzhou +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_QIANZHOU_MODEL_QUERYBYINSTANCEINFOREQUEST_H_ diff --git a/qianzhou/include/alibabacloud/qianzhou/model/QueryByInstanceInfoResult.h b/qianzhou/include/alibabacloud/qianzhou/model/QueryByInstanceInfoResult.h new file mode 100644 index 000000000..261d59703 --- /dev/null +++ b/qianzhou/include/alibabacloud/qianzhou/model/QueryByInstanceInfoResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_QIANZHOU_MODEL_QUERYBYINSTANCEINFORESULT_H_ +#define ALIBABACLOUD_QIANZHOU_MODEL_QUERYBYINSTANCEINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Qianzhou + { + namespace Model + { + class ALIBABACLOUD_QIANZHOU_EXPORT QueryByInstanceInfoResult : public ServiceResult + { + public: + struct DataItem + { + std::string uid; + std::string clusterId; + std::string instanceId; + std::string clusterName; + std::string regionId; + }; + + + QueryByInstanceInfoResult(); + explicit QueryByInstanceInfoResult(const std::string &payload); + ~QueryByInstanceInfoResult(); + std::string getMsg()const; + std::vector getdata()const; + std::string getRequestId()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + std::vector data_; + std::string requestId_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_QIANZHOU_MODEL_QUERYBYINSTANCEINFORESULT_H_ \ No newline at end of file diff --git a/qianzhou/include/alibabacloud/qianzhou/model/QueryNodeInfoRequest.h b/qianzhou/include/alibabacloud/qianzhou/model/QueryNodeInfoRequest.h new file mode 100644 index 000000000..6356abf52 --- /dev/null +++ b/qianzhou/include/alibabacloud/qianzhou/model/QueryNodeInfoRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_QIANZHOU_MODEL_QUERYNODEINFOREQUEST_H_ +#define ALIBABACLOUD_QIANZHOU_MODEL_QUERYNODEINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qianzhou { +namespace Model { +class ALIBABACLOUD_QIANZHOU_EXPORT QueryNodeInfoRequest : public RoaServiceRequest { +public: + QueryNodeInfoRequest(); + ~QueryNodeInfoRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string instanceId_; + std::string regionId_; +}; +} // namespace Model +} // namespace Qianzhou +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_QIANZHOU_MODEL_QUERYNODEINFOREQUEST_H_ diff --git a/qianzhou/include/alibabacloud/qianzhou/model/QueryNodeInfoResult.h b/qianzhou/include/alibabacloud/qianzhou/model/QueryNodeInfoResult.h new file mode 100644 index 000000000..030167fc8 --- /dev/null +++ b/qianzhou/include/alibabacloud/qianzhou/model/QueryNodeInfoResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_QIANZHOU_MODEL_QUERYNODEINFORESULT_H_ +#define ALIBABACLOUD_QIANZHOU_MODEL_QUERYNODEINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Qianzhou + { + namespace Model + { + class ALIBABACLOUD_QIANZHOU_EXPORT QueryNodeInfoResult : public ServiceResult + { + public: + struct DataItem + { + std::string uid; + std::string clusterId; + std::string instanceId; + std::string region; + std::string cluserName; + }; + + + QueryNodeInfoResult(); + explicit QueryNodeInfoResult(const std::string &payload); + ~QueryNodeInfoResult(); + std::string getMsg()const; + std::vector getdata()const; + std::string getRequestId()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + std::vector data_; + std::string requestId_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_QIANZHOU_MODEL_QUERYNODEINFORESULT_H_ \ No newline at end of file diff --git a/qianzhou/src/QianzhouClient.cc b/qianzhou/src/QianzhouClient.cc new file mode 100644 index 000000000..daf07d157 --- /dev/null +++ b/qianzhou/src/QianzhouClient.cc @@ -0,0 +1,521 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Qianzhou; +using namespace AlibabaCloud::Qianzhou::Model; + +namespace +{ + const std::string SERVICE_NAME = "qianzhou"; +} + +QianzhouClient::QianzhouClient(const Credentials &credentials, const ClientConfiguration &configuration) : + RoaServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) +{ + auto locationClient = std::make_shared(credentials, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); +} + +QianzhouClient::QianzhouClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : + RoaServiceClient(SERVICE_NAME, credentialsProvider, configuration) +{ + auto locationClient = std::make_shared(credentialsProvider, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); +} + +QianzhouClient::QianzhouClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : + RoaServiceClient(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, ""); +} + +QianzhouClient::~QianzhouClient() +{} + +QianzhouClient::AICreateSessionMessageOutcome QianzhouClient::aICreateSessionMessage(const AICreateSessionMessageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AICreateSessionMessageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AICreateSessionMessageOutcome(AICreateSessionMessageResult(outcome.result())); + else + return AICreateSessionMessageOutcome(outcome.error()); +} + +void QianzhouClient::aICreateSessionMessageAsync(const AICreateSessionMessageRequest& request, const AICreateSessionMessageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, aICreateSessionMessage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +QianzhouClient::AICreateSessionMessageOutcomeCallable QianzhouClient::aICreateSessionMessageCallable(const AICreateSessionMessageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->aICreateSessionMessage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +QianzhouClient::CreateDiagnosisOutcome QianzhouClient::createDiagnosis(const CreateDiagnosisRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDiagnosisOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDiagnosisOutcome(CreateDiagnosisResult(outcome.result())); + else + return CreateDiagnosisOutcome(outcome.error()); +} + +void QianzhouClient::createDiagnosisAsync(const CreateDiagnosisRequest& request, const CreateDiagnosisAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDiagnosis(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +QianzhouClient::CreateDiagnosisOutcomeCallable QianzhouClient::createDiagnosisCallable(const CreateDiagnosisRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDiagnosis(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +QianzhouClient::GetClusterOutcome QianzhouClient::getCluster(const GetClusterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetClusterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetClusterOutcome(GetClusterResult(outcome.result())); + else + return GetClusterOutcome(outcome.error()); +} + +void QianzhouClient::getClusterAsync(const GetClusterRequest& request, const GetClusterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getCluster(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +QianzhouClient::GetClusterOutcomeCallable QianzhouClient::getClusterCallable(const GetClusterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getCluster(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +QianzhouClient::GetClusterWarningOutcome QianzhouClient::getClusterWarning(const GetClusterWarningRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetClusterWarningOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetClusterWarningOutcome(GetClusterWarningResult(outcome.result())); + else + return GetClusterWarningOutcome(outcome.error()); +} + +void QianzhouClient::getClusterWarningAsync(const GetClusterWarningRequest& request, const GetClusterWarningAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getClusterWarning(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +QianzhouClient::GetClusterWarningOutcomeCallable QianzhouClient::getClusterWarningCallable(const GetClusterWarningRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getClusterWarning(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +QianzhouClient::GetDiagnosisResultOutcome QianzhouClient::getDiagnosisResult(const GetDiagnosisResultRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetDiagnosisResultOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetDiagnosisResultOutcome(GetDiagnosisResultResult(outcome.result())); + else + return GetDiagnosisResultOutcome(outcome.error()); +} + +void QianzhouClient::getDiagnosisResultAsync(const GetDiagnosisResultRequest& request, const GetDiagnosisResultAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getDiagnosisResult(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +QianzhouClient::GetDiagnosisResultOutcomeCallable QianzhouClient::getDiagnosisResultCallable(const GetDiagnosisResultRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getDiagnosisResult(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +QianzhouClient::GetUserClusterWarningOutcome QianzhouClient::getUserClusterWarning(const GetUserClusterWarningRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetUserClusterWarningOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetUserClusterWarningOutcome(GetUserClusterWarningResult(outcome.result())); + else + return GetUserClusterWarningOutcome(outcome.error()); +} + +void QianzhouClient::getUserClusterWarningAsync(const GetUserClusterWarningRequest& request, const GetUserClusterWarningAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getUserClusterWarning(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +QianzhouClient::GetUserClusterWarningOutcomeCallable QianzhouClient::getUserClusterWarningCallable(const GetUserClusterWarningRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getUserClusterWarning(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +QianzhouClient::GetWebshellTokenOutcome QianzhouClient::getWebshellToken(const GetWebshellTokenRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetWebshellTokenOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetWebshellTokenOutcome(GetWebshellTokenResult(outcome.result())); + else + return GetWebshellTokenOutcome(outcome.error()); +} + +void QianzhouClient::getWebshellTokenAsync(const GetWebshellTokenRequest& request, const GetWebshellTokenAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getWebshellToken(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +QianzhouClient::GetWebshellTokenOutcomeCallable QianzhouClient::getWebshellTokenCallable(const GetWebshellTokenRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getWebshellToken(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +QianzhouClient::HelloOutcome QianzhouClient::hello(const HelloRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return HelloOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return HelloOutcome(HelloResult(outcome.result())); + else + return HelloOutcome(outcome.error()); +} + +void QianzhouClient::helloAsync(const HelloRequest& request, const HelloAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, hello(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +QianzhouClient::HelloOutcomeCallable QianzhouClient::helloCallable(const HelloRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->hello(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +QianzhouClient::ListClusterDeprecatedAPIOutcome QianzhouClient::listClusterDeprecatedAPI(const ListClusterDeprecatedAPIRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListClusterDeprecatedAPIOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListClusterDeprecatedAPIOutcome(ListClusterDeprecatedAPIResult(outcome.result())); + else + return ListClusterDeprecatedAPIOutcome(outcome.error()); +} + +void QianzhouClient::listClusterDeprecatedAPIAsync(const ListClusterDeprecatedAPIRequest& request, const ListClusterDeprecatedAPIAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listClusterDeprecatedAPI(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +QianzhouClient::ListClusterDeprecatedAPIOutcomeCallable QianzhouClient::listClusterDeprecatedAPICallable(const ListClusterDeprecatedAPIRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listClusterDeprecatedAPI(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +QianzhouClient::ListClusterImagesOutcome QianzhouClient::listClusterImages(const ListClusterImagesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListClusterImagesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListClusterImagesOutcome(ListClusterImagesResult(outcome.result())); + else + return ListClusterImagesOutcome(outcome.error()); +} + +void QianzhouClient::listClusterImagesAsync(const ListClusterImagesRequest& request, const ListClusterImagesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listClusterImages(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +QianzhouClient::ListClusterImagesOutcomeCallable QianzhouClient::listClusterImagesCallable(const ListClusterImagesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listClusterImages(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +QianzhouClient::ListUserClustersOutcome QianzhouClient::listUserClusters(const ListUserClustersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListUserClustersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListUserClustersOutcome(ListUserClustersResult(outcome.result())); + else + return ListUserClustersOutcome(outcome.error()); +} + +void QianzhouClient::listUserClustersAsync(const ListUserClustersRequest& request, const ListUserClustersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listUserClusters(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +QianzhouClient::ListUserClustersOutcomeCallable QianzhouClient::listUserClustersCallable(const ListUserClustersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listUserClusters(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +QianzhouClient::QueryByInstanceInfoOutcome QianzhouClient::queryByInstanceInfo(const QueryByInstanceInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryByInstanceInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryByInstanceInfoOutcome(QueryByInstanceInfoResult(outcome.result())); + else + return QueryByInstanceInfoOutcome(outcome.error()); +} + +void QianzhouClient::queryByInstanceInfoAsync(const QueryByInstanceInfoRequest& request, const QueryByInstanceInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryByInstanceInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +QianzhouClient::QueryByInstanceInfoOutcomeCallable QianzhouClient::queryByInstanceInfoCallable(const QueryByInstanceInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryByInstanceInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +QianzhouClient::QueryNodeInfoOutcome QianzhouClient::queryNodeInfo(const QueryNodeInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryNodeInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryNodeInfoOutcome(QueryNodeInfoResult(outcome.result())); + else + return QueryNodeInfoOutcome(outcome.error()); +} + +void QianzhouClient::queryNodeInfoAsync(const QueryNodeInfoRequest& request, const QueryNodeInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryNodeInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +QianzhouClient::QueryNodeInfoOutcomeCallable QianzhouClient::queryNodeInfoCallable(const QueryNodeInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryNodeInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/qianzhou/src/model/AICreateSessionMessageRequest.cc b/qianzhou/src/model/AICreateSessionMessageRequest.cc new file mode 100644 index 000000000..207ff0a02 --- /dev/null +++ b/qianzhou/src/model/AICreateSessionMessageRequest.cc @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Qianzhou::Model::AICreateSessionMessageRequest; + +AICreateSessionMessageRequest::AICreateSessionMessageRequest() + : RoaServiceRequest("qianzhou", "2021-11-11") { + setResourcePath("/popapi/AICreateSessionMessage"}; + setMethod(HttpRequest::Method::Post); +} + +AICreateSessionMessageRequest::~AICreateSessionMessageRequest() {} + +std::string AICreateSessionMessageRequest::getEmployee_id() const { + return employee_id_; +} + +void AICreateSessionMessageRequest::setEmployee_id(const std::string &employee_id) { + employee_id_ = employee_id; + setParameter(std::string("employee_id"), employee_id); +} + +AICreateSessionMessageRequest::body AICreateSessionMessageRequest::getBody() const { + return body_; +} + +void AICreateSessionMessageRequest::setBody(const AICreateSessionMessageRequest::body &body) { + body_ = body; + setBodyParameter(std::string("body") + ".context.cluster_id", body.context.cluster_id); + setBodyParameter(std::string("body") + ".context.kind", body.context.kind); + setBodyParameter(std::string("body") + ".context.namespace", body.context._namespace); + setBodyParameter(std::string("body") + ".context.name", body.context.name); + setBodyParameter(std::string("body") + ".context.error", body.context.error); + setBodyParameter(std::string("body") + ".context.uuid", body.context.uuid); + setBodyParameter(std::string("body") + ".session_id", body.session_id); + setBodyParameter(std::string("body") + ".language", body.language); + setBodyParameter(std::string("body") + ".type", body.type); + setBodyParameter(std::string("body") + ".message", body.message); +} + diff --git a/qianzhou/src/model/AICreateSessionMessageResult.cc b/qianzhou/src/model/AICreateSessionMessageResult.cc new file mode 100644 index 000000000..e337e1ea1 --- /dev/null +++ b/qianzhou/src/model/AICreateSessionMessageResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Qianzhou; +using namespace AlibabaCloud::Qianzhou::Model; + +AICreateSessionMessageResult::AICreateSessionMessageResult() : + ServiceResult() +{} + +AICreateSessionMessageResult::AICreateSessionMessageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AICreateSessionMessageResult::~AICreateSessionMessageResult() +{} + +void AICreateSessionMessageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["answer"].isNull()) + answer_ = value["answer"].asString(); + if(!value["session_id"].isNull()) + session_id_ = value["session_id"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["code"].isNull()) + code_ = std::stol(value["code"].asString()); + if(!value["data"].isNull()) + data_ = value["data"].asString(); + if(!value["msg"].isNull()) + msg_ = value["msg"].asString(); + +} + +std::string AICreateSessionMessageResult::getMsg()const +{ + return msg_; +} + +std::string AICreateSessionMessageResult::getAnswer()const +{ + return answer_; +} + +std::string AICreateSessionMessageResult::getRequestId()const +{ + return requestId_; +} + +std::string AICreateSessionMessageResult::getData()const +{ + return data_; +} + +std::string AICreateSessionMessageResult::getSession_id()const +{ + return session_id_; +} + +long AICreateSessionMessageResult::getCode()const +{ + return code_; +} + diff --git a/qianzhou/src/model/CreateDiagnosisRequest.cc b/qianzhou/src/model/CreateDiagnosisRequest.cc new file mode 100644 index 000000000..1e432dbfa --- /dev/null +++ b/qianzhou/src/model/CreateDiagnosisRequest.cc @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Qianzhou::Model::CreateDiagnosisRequest; + +CreateDiagnosisRequest::CreateDiagnosisRequest() + : RoaServiceRequest("qianzhou", "2021-11-11") { + setResourcePath("/popapi/createDiagnosis"}; + setMethod(HttpRequest::Method::Post); +} + +CreateDiagnosisRequest::~CreateDiagnosisRequest() {} + +std::string CreateDiagnosisRequest::getDiagnosisType() const { + return diagnosisType_; +} + +void CreateDiagnosisRequest::setDiagnosisType(const std::string &diagnosisType) { + diagnosisType_ = diagnosisType; + setParameter(std::string("diagnosisType"), diagnosisType); +} + +std::string CreateDiagnosisRequest::getClusterID() const { + return clusterID_; +} + +void CreateDiagnosisRequest::setClusterID(const std::string &clusterID) { + clusterID_ = clusterID; + setParameter(std::string("clusterID"), clusterID); +} + +std::string CreateDiagnosisRequest::getBody() const { + return body_; +} + +void CreateDiagnosisRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/qianzhou/src/model/CreateDiagnosisResult.cc b/qianzhou/src/model/CreateDiagnosisResult.cc new file mode 100644 index 000000000..b1e8167ec --- /dev/null +++ b/qianzhou/src/model/CreateDiagnosisResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Qianzhou; +using namespace AlibabaCloud::Qianzhou::Model; + +CreateDiagnosisResult::CreateDiagnosisResult() : + ServiceResult() +{} + +CreateDiagnosisResult::CreateDiagnosisResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDiagnosisResult::~CreateDiagnosisResult() +{} + +void CreateDiagnosisResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["code"].isNull()) + code_ = std::stol(value["code"].asString()); + if(!value["data"].isNull()) + data_ = value["data"].asString(); + +} + +std::string CreateDiagnosisResult::getRequestId()const +{ + return requestId_; +} + +ObjectOfAny CreateDiagnosisResult::getData()const +{ + return data_; +} + +long CreateDiagnosisResult::getCode()const +{ + return code_; +} + diff --git a/qianzhou/src/model/GetClusterRequest.cc b/qianzhou/src/model/GetClusterRequest.cc new file mode 100644 index 000000000..bd4721e89 --- /dev/null +++ b/qianzhou/src/model/GetClusterRequest.cc @@ -0,0 +1,37 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Qianzhou::Model::GetClusterRequest; + +GetClusterRequest::GetClusterRequest() + : RoaServiceRequest("qianzhou", "2021-11-11") { + setResourcePath("/popapi/getCluster"}; + setMethod(HttpRequest::Method::Get); +} + +GetClusterRequest::~GetClusterRequest() {} + +std::string GetClusterRequest::getClusterID() const { + return clusterID_; +} + +void GetClusterRequest::setClusterID(const std::string &clusterID) { + clusterID_ = clusterID; + setParameter(std::string("clusterID"), clusterID); +} + diff --git a/qianzhou/src/model/GetClusterResult.cc b/qianzhou/src/model/GetClusterResult.cc new file mode 100644 index 000000000..0f05fb358 --- /dev/null +++ b/qianzhou/src/model/GetClusterResult.cc @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Qianzhou; +using namespace AlibabaCloud::Qianzhou::Model; + +GetClusterResult::GetClusterResult() : + ServiceResult() +{} + +GetClusterResult::GetClusterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetClusterResult::~GetClusterResult() +{} + +void GetClusterResult::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["clusterID"].isNull()) + data_.clusterID = dataNode["clusterID"].asString(); + if(!dataNode["name"].isNull()) + data_.name = dataNode["name"].asString(); + if(!dataNode["regionID"].isNull()) + data_.regionID = dataNode["regionID"].asString(); + if(!dataNode["state"].isNull()) + data_.state = dataNode["state"].asString(); + if(!dataNode["userID"].isNull()) + data_.userID = dataNode["userID"].asString(); + if(!dataNode["clusterType"].isNull()) + data_.clusterType = dataNode["clusterType"].asString(); + if(!dataNode["currentVersion"].isNull()) + data_.currentVersion = dataNode["currentVersion"].asString(); + if(!dataNode["securityGroupId"].isNull()) + data_.securityGroupId = dataNode["securityGroupId"].asString(); + if(!dataNode["profile"].isNull()) + data_.profile = dataNode["profile"].asString(); + if(!dataNode["spec"].isNull()) + data_.spec = dataNode["spec"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string GetClusterResult::getRequestId()const +{ + return requestId_; +} + +GetClusterResult::Data GetClusterResult::getData()const +{ + return data_; +} + diff --git a/qianzhou/src/model/GetClusterWarningRequest.cc b/qianzhou/src/model/GetClusterWarningRequest.cc new file mode 100644 index 000000000..32e96b639 --- /dev/null +++ b/qianzhou/src/model/GetClusterWarningRequest.cc @@ -0,0 +1,37 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Qianzhou::Model::GetClusterWarningRequest; + +GetClusterWarningRequest::GetClusterWarningRequest() + : RoaServiceRequest("qianzhou", "2021-11-11") { + setResourcePath("/popapi/getKeyClusterWarningList"}; + setMethod(HttpRequest::Method::Get); +} + +GetClusterWarningRequest::~GetClusterWarningRequest() {} + +std::string GetClusterWarningRequest::getClusterID() const { + return clusterID_; +} + +void GetClusterWarningRequest::setClusterID(const std::string &clusterID) { + clusterID_ = clusterID; + setParameter(std::string("clusterID"), clusterID); +} + diff --git a/qianzhou/src/model/GetClusterWarningResult.cc b/qianzhou/src/model/GetClusterWarningResult.cc new file mode 100644 index 000000000..a7b540069 --- /dev/null +++ b/qianzhou/src/model/GetClusterWarningResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Qianzhou; +using namespace AlibabaCloud::Qianzhou::Model; + +GetClusterWarningResult::GetClusterWarningResult() : + ServiceResult() +{} + +GetClusterWarningResult::GetClusterWarningResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetClusterWarningResult::~GetClusterWarningResult() +{} + +void GetClusterWarningResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string GetClusterWarningResult::getRequestId()const +{ + return requestId_; +} + diff --git a/qianzhou/src/model/GetDiagnosisResultRequest.cc b/qianzhou/src/model/GetDiagnosisResultRequest.cc new file mode 100644 index 000000000..ed5cb03d1 --- /dev/null +++ b/qianzhou/src/model/GetDiagnosisResultRequest.cc @@ -0,0 +1,46 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Qianzhou::Model::GetDiagnosisResultRequest; + +GetDiagnosisResultRequest::GetDiagnosisResultRequest() + : RoaServiceRequest("qianzhou", "2021-11-11") { + setResourcePath("/popapi/GetDiagnosisResult"}; + setMethod(HttpRequest::Method::Get); +} + +GetDiagnosisResultRequest::~GetDiagnosisResultRequest() {} + +std::string GetDiagnosisResultRequest::getDiagnosisId() const { + return diagnosisId_; +} + +void GetDiagnosisResultRequest::setDiagnosisId(const std::string &diagnosisId) { + diagnosisId_ = diagnosisId; + setParameter(std::string("diagnosisId"), diagnosisId); +} + +std::string GetDiagnosisResultRequest::getOwnerUid() const { + return ownerUid_; +} + +void GetDiagnosisResultRequest::setOwnerUid(const std::string &ownerUid) { + ownerUid_ = ownerUid; + setParameter(std::string("ownerUid"), ownerUid); +} + diff --git a/qianzhou/src/model/GetDiagnosisResultResult.cc b/qianzhou/src/model/GetDiagnosisResultResult.cc new file mode 100644 index 000000000..8f31eecc0 --- /dev/null +++ b/qianzhou/src/model/GetDiagnosisResultResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Qianzhou; +using namespace AlibabaCloud::Qianzhou::Model; + +GetDiagnosisResultResult::GetDiagnosisResultResult() : + ServiceResult() +{} + +GetDiagnosisResultResult::GetDiagnosisResultResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetDiagnosisResultResult::~GetDiagnosisResultResult() +{} + +void GetDiagnosisResultResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["data"].isNull()) + data_ = value["data"].asString(); + if(!value["code"].isNull()) + code_ = value["code"].asString(); + if(!value["msg"].isNull()) + msg_ = value["msg"].asString(); + +} + +std::string GetDiagnosisResultResult::getMsg()const +{ + return msg_; +} + +std::string GetDiagnosisResultResult::getRequestId()const +{ + return requestId_; +} + +ObjectOfAny GetDiagnosisResultResult::getData()const +{ + return data_; +} + +std::string GetDiagnosisResultResult::getCode()const +{ + return code_; +} + diff --git a/qianzhou/src/model/GetUserClusterWarningRequest.cc b/qianzhou/src/model/GetUserClusterWarningRequest.cc new file mode 100644 index 000000000..fb61cfe7d --- /dev/null +++ b/qianzhou/src/model/GetUserClusterWarningRequest.cc @@ -0,0 +1,37 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Qianzhou::Model::GetUserClusterWarningRequest; + +GetUserClusterWarningRequest::GetUserClusterWarningRequest() + : RoaServiceRequest("qianzhou", "2021-11-11") { + setResourcePath("/popapi/listUserKeyClusters"}; + setMethod(HttpRequest::Method::Get); +} + +GetUserClusterWarningRequest::~GetUserClusterWarningRequest() {} + +std::string GetUserClusterWarningRequest::getUserID() const { + return userID_; +} + +void GetUserClusterWarningRequest::setUserID(const std::string &userID) { + userID_ = userID; + setParameter(std::string("userID"), userID); +} + diff --git a/qianzhou/src/model/GetUserClusterWarningResult.cc b/qianzhou/src/model/GetUserClusterWarningResult.cc new file mode 100644 index 000000000..d08d902f1 --- /dev/null +++ b/qianzhou/src/model/GetUserClusterWarningResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Qianzhou; +using namespace AlibabaCloud::Qianzhou::Model; + +GetUserClusterWarningResult::GetUserClusterWarningResult() : + ServiceResult() +{} + +GetUserClusterWarningResult::GetUserClusterWarningResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetUserClusterWarningResult::~GetUserClusterWarningResult() +{} + +void GetUserClusterWarningResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string GetUserClusterWarningResult::getRequestId()const +{ + return requestId_; +} + diff --git a/qianzhou/src/model/GetWebshellTokenRequest.cc b/qianzhou/src/model/GetWebshellTokenRequest.cc new file mode 100644 index 000000000..fa8e65639 --- /dev/null +++ b/qianzhou/src/model/GetWebshellTokenRequest.cc @@ -0,0 +1,28 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Qianzhou::Model::GetWebshellTokenRequest; + +GetWebshellTokenRequest::GetWebshellTokenRequest() + : RoaServiceRequest("qianzhou", "2021-11-11") { + setResourcePath("/popapi/getChorusToken"}; + setMethod(HttpRequest::Method::Get); +} + +GetWebshellTokenRequest::~GetWebshellTokenRequest() {} + diff --git a/qianzhou/src/model/GetWebshellTokenResult.cc b/qianzhou/src/model/GetWebshellTokenResult.cc new file mode 100644 index 000000000..d4d02939a --- /dev/null +++ b/qianzhou/src/model/GetWebshellTokenResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Qianzhou; +using namespace AlibabaCloud::Qianzhou::Model; + +GetWebshellTokenResult::GetWebshellTokenResult() : + ServiceResult() +{} + +GetWebshellTokenResult::GetWebshellTokenResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetWebshellTokenResult::~GetWebshellTokenResult() +{} + +void GetWebshellTokenResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string GetWebshellTokenResult::getRequestId()const +{ + return requestId_; +} + diff --git a/qianzhou/src/model/HelloRequest.cc b/qianzhou/src/model/HelloRequest.cc new file mode 100644 index 000000000..acf97ece7 --- /dev/null +++ b/qianzhou/src/model/HelloRequest.cc @@ -0,0 +1,37 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Qianzhou::Model::HelloRequest; + +HelloRequest::HelloRequest() + : RoaServiceRequest("qianzhou", "2021-11-11") { + setResourcePath("/popapi/hello"}; + setMethod(HttpRequest::Method::Get); +} + +HelloRequest::~HelloRequest() {} + +std::string HelloRequest::getUser() const { + return user_; +} + +void HelloRequest::setUser(const std::string &user) { + user_ = user; + setParameter(std::string("user"), user); +} + diff --git a/qianzhou/src/model/HelloResult.cc b/qianzhou/src/model/HelloResult.cc new file mode 100644 index 000000000..2c8b76f43 --- /dev/null +++ b/qianzhou/src/model/HelloResult.cc @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Qianzhou; +using namespace AlibabaCloud::Qianzhou::Model; + +HelloResult::HelloResult() : + ServiceResult() +{} + +HelloResult::HelloResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +HelloResult::~HelloResult() +{} + +void HelloResult::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["date"].isNull()) + data_.date = dataNode["date"].asString(); + if(!dataNode["name"].isNull()) + data_.name = dataNode["name"].asString(); + if(!dataNode["success"].isNull()) + data_.success = dataNode["success"].asString() == "true"; + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["code"].isNull()) + code_ = value["code"].asString(); + if(!value["msg"].isNull()) + msg_ = value["msg"].asString(); + +} + +std::string HelloResult::getMsg()const +{ + return msg_; +} + +std::string HelloResult::getRequestId()const +{ + return requestId_; +} + +HelloResult::Data HelloResult::getData()const +{ + return data_; +} + +std::string HelloResult::getCode()const +{ + return code_; +} + diff --git a/qianzhou/src/model/ListClusterDeprecatedAPIRequest.cc b/qianzhou/src/model/ListClusterDeprecatedAPIRequest.cc new file mode 100644 index 000000000..cca34b2ea --- /dev/null +++ b/qianzhou/src/model/ListClusterDeprecatedAPIRequest.cc @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Qianzhou::Model::ListClusterDeprecatedAPIRequest; + +ListClusterDeprecatedAPIRequest::ListClusterDeprecatedAPIRequest() + : RoaServiceRequest("qianzhou", "2021-11-11") { + setResourcePath("/popapi/listDeprecatedK8sAPI"}; + setMethod(HttpRequest::Method::Post); +} + +ListClusterDeprecatedAPIRequest::~ListClusterDeprecatedAPIRequest() {} + +std::string ListClusterDeprecatedAPIRequest::getCluster_id() const { + return cluster_id_; +} + +void ListClusterDeprecatedAPIRequest::setCluster_id(const std::string &cluster_id) { + cluster_id_ = cluster_id; + setParameter(std::string("cluster_id"), cluster_id); +} + +int ListClusterDeprecatedAPIRequest::getPage_no() const { + return page_no_; +} + +void ListClusterDeprecatedAPIRequest::setPage_no(int page_no) { + page_no_ = page_no; + setParameter(std::string("page_no"), std::to_string(page_no)); +} + +std::string ListClusterDeprecatedAPIRequest::getTarget_version() const { + return target_version_; +} + +void ListClusterDeprecatedAPIRequest::setTarget_version(const std::string &target_version) { + target_version_ = target_version; + setParameter(std::string("target_version"), target_version); +} + +int ListClusterDeprecatedAPIRequest::getPage_size() const { + return page_size_; +} + +void ListClusterDeprecatedAPIRequest::setPage_size(int page_size) { + page_size_ = page_size; + setParameter(std::string("page_size"), std::to_string(page_size)); +} + diff --git a/qianzhou/src/model/ListClusterDeprecatedAPIResult.cc b/qianzhou/src/model/ListClusterDeprecatedAPIResult.cc new file mode 100644 index 000000000..eb0a24269 --- /dev/null +++ b/qianzhou/src/model/ListClusterDeprecatedAPIResult.cc @@ -0,0 +1,107 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Qianzhou; +using namespace AlibabaCloud::Qianzhou::Model; + +ListClusterDeprecatedAPIResult::ListClusterDeprecatedAPIResult() : + ServiceResult() +{} + +ListClusterDeprecatedAPIResult::ListClusterDeprecatedAPIResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListClusterDeprecatedAPIResult::~ListClusterDeprecatedAPIResult() +{} + +void ListClusterDeprecatedAPIResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto datasNode = value["datas"]; + if(!datasNode["total"].isNull()) + datas_.total = std::stoi(datasNode["total"].asString()); + if(!datasNode["pageSize"].isNull()) + datas_.pageSize = std::stoi(datasNode["pageSize"].asString()); + if(!datasNode["current"].isNull()) + datas_.current = std::stoi(datasNode["current"].asString()); + auto alldataNode = datasNode["data"]["dataItem"]; + for (auto datasNodedatadataItem : alldataNode) + { + Datas::DataItem dataItemObject; + if(!datasNodedatadataItem["cluster_id"].isNull()) + dataItemObject.cluster_id = datasNodedatadataItem["cluster_id"].asString(); + if(!datasNodedatadataItem["current_version"].isNull()) + dataItemObject.current_version = datasNodedatadataItem["current_version"].asString(); + if(!datasNodedatadataItem["target_version"].isNull()) + dataItemObject.target_version = datasNodedatadataItem["target_version"].asString(); + if(!datasNodedatadataItem["request_uri"].isNull()) + dataItemObject.request_uri = datasNodedatadataItem["request_uri"].asString(); + if(!datasNodedatadataItem["user_agent"].isNull()) + dataItemObject.user_agent = datasNodedatadataItem["user_agent"].asString(); + if(!datasNodedatadataItem["label"].isNull()) + dataItemObject.label = datasNodedatadataItem["label"].asString(); + if(!datasNodedatadataItem["count"].isNull()) + dataItemObject.count = std::stoi(datasNodedatadataItem["count"].asString()); + if(!datasNodedatadataItem["content"].isNull()) + dataItemObject.content = datasNodedatadataItem["content"].asString(); + if(!datasNodedatadataItem["deprecated_k8s_version"].isNull()) + dataItemObject.deprecated_k8s_version = datasNodedatadataItem["deprecated_k8s_version"].asString(); + if(!datasNodedatadataItem["source_ips"].isNull()) + dataItemObject.source_ips = datasNodedatadataItem["source_ips"].asString(); + if(!datasNodedatadataItem["last_time"].isNull()) + dataItemObject.last_time = datasNodedatadataItem["last_time"].asString(); + if(!datasNodedatadataItem["ds"].isNull()) + dataItemObject.ds = datasNodedatadataItem["ds"].asString(); + datas_.data.push_back(dataItemObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["code"].isNull()) + code_ = std::stoi(value["code"].asString()); + if(!value["msg"].isNull()) + msg_ = value["msg"].asString(); + +} + +std::string ListClusterDeprecatedAPIResult::getMsg()const +{ + return msg_; +} + +std::string ListClusterDeprecatedAPIResult::getRequestId()const +{ + return requestId_; +} + +ListClusterDeprecatedAPIResult::Datas ListClusterDeprecatedAPIResult::getDatas()const +{ + return datas_; +} + +int ListClusterDeprecatedAPIResult::getCode()const +{ + return code_; +} + diff --git a/qianzhou/src/model/ListClusterImagesRequest.cc b/qianzhou/src/model/ListClusterImagesRequest.cc new file mode 100644 index 000000000..45069e069 --- /dev/null +++ b/qianzhou/src/model/ListClusterImagesRequest.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::Qianzhou::Model::ListClusterImagesRequest; + +ListClusterImagesRequest::ListClusterImagesRequest() + : RoaServiceRequest("qianzhou", "2021-11-11") { + setResourcePath("/popapi/listClusterPodImages"}; + setMethod(HttpRequest::Method::Post); +} + +ListClusterImagesRequest::~ListClusterImagesRequest() {} + +std::string ListClusterImagesRequest::getImage_name() const { + return image_name_; +} + +void ListClusterImagesRequest::setImage_name(const std::string &image_name) { + image_name_ = image_name; + setParameter(std::string("image_name"), image_name); +} + +std::string ListClusterImagesRequest::getUid() const { + return uid_; +} + +void ListClusterImagesRequest::setUid(const std::string &uid) { + uid_ = uid; + setParameter(std::string("uid"), uid); +} + +std::string ListClusterImagesRequest::getCluster_id() const { + return cluster_id_; +} + +void ListClusterImagesRequest::setCluster_id(const std::string &cluster_id) { + cluster_id_ = cluster_id; + setParameter(std::string("cluster_id"), cluster_id); +} + +std::string ListClusterImagesRequest::getImage_hash() const { + return image_hash_; +} + +void ListClusterImagesRequest::setImage_hash(const std::string &image_hash) { + image_hash_ = image_hash; + setParameter(std::string("image_hash"), image_hash); +} + +int ListClusterImagesRequest::getPage_no() const { + return page_no_; +} + +void ListClusterImagesRequest::setPage_no(int page_no) { + page_no_ = page_no; + setParameter(std::string("page_no"), std::to_string(page_no)); +} + +int ListClusterImagesRequest::getPage_size() const { + return page_size_; +} + +void ListClusterImagesRequest::setPage_size(int page_size) { + page_size_ = page_size; + setParameter(std::string("page_size"), std::to_string(page_size)); +} + diff --git a/qianzhou/src/model/ListClusterImagesResult.cc b/qianzhou/src/model/ListClusterImagesResult.cc new file mode 100644 index 000000000..61bc02dd2 --- /dev/null +++ b/qianzhou/src/model/ListClusterImagesResult.cc @@ -0,0 +1,101 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Qianzhou; +using namespace AlibabaCloud::Qianzhou::Model; + +ListClusterImagesResult::ListClusterImagesResult() : + ServiceResult() +{} + +ListClusterImagesResult::ListClusterImagesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListClusterImagesResult::~ListClusterImagesResult() +{} + +void ListClusterImagesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto datasNode = value["datas"]; + if(!datasNode["total"].isNull()) + datas_.total = std::stoi(datasNode["total"].asString()); + if(!datasNode["pageSize"].isNull()) + datas_.pageSize = std::stoi(datasNode["pageSize"].asString()); + if(!datasNode["current"].isNull()) + datas_.current = std::stoi(datasNode["current"].asString()); + auto alldataNode = datasNode["data"]["dataItem"]; + for (auto datasNodedatadataItem : alldataNode) + { + Datas::DataItem dataItemObject; + if(!datasNodedatadataItem["cluster_id"].isNull()) + dataItemObject.cluster_id = datasNodedatadataItem["cluster_id"].asString(); + if(!datasNodedatadataItem["namespace"].isNull()) + dataItemObject._namespace = datasNodedatadataItem["namespace"].asString(); + if(!datasNodedatadataItem["image_name"].isNull()) + dataItemObject.image_name = datasNodedatadataItem["image_name"].asString(); + if(!datasNodedatadataItem["image_hash"].isNull()) + dataItemObject.image_hash = datasNodedatadataItem["image_hash"].asString(); + if(!datasNodedatadataItem["controller_type"].isNull()) + dataItemObject.controller_type = datasNodedatadataItem["controller_type"].asString(); + if(!datasNodedatadataItem["controller_name"].isNull()) + dataItemObject.controller_name = datasNodedatadataItem["controller_name"].asString(); + if(!datasNodedatadataItem["created"].isNull()) + dataItemObject.created = datasNodedatadataItem["created"].asString(); + if(!datasNodedatadataItem["updated"].isNull()) + dataItemObject.updated = datasNodedatadataItem["updated"].asString(); + if(!datasNodedatadataItem["uid"].isNull()) + dataItemObject.uid = datasNodedatadataItem["uid"].asString(); + datas_.data.push_back(dataItemObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["code"].isNull()) + code_ = std::stoi(value["code"].asString()); + if(!value["msg"].isNull()) + msg_ = value["msg"].asString(); + +} + +std::string ListClusterImagesResult::getMsg()const +{ + return msg_; +} + +std::string ListClusterImagesResult::getRequestId()const +{ + return requestId_; +} + +ListClusterImagesResult::Datas ListClusterImagesResult::getDatas()const +{ + return datas_; +} + +int ListClusterImagesResult::getCode()const +{ + return code_; +} + diff --git a/qianzhou/src/model/ListUserClustersRequest.cc b/qianzhou/src/model/ListUserClustersRequest.cc new file mode 100644 index 000000000..a7c9cf635 --- /dev/null +++ b/qianzhou/src/model/ListUserClustersRequest.cc @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Qianzhou::Model::ListUserClustersRequest; + +ListUserClustersRequest::ListUserClustersRequest() + : RoaServiceRequest("qianzhou", "2021-11-11") { + setResourcePath("/popapi/listUserClusters"}; + setMethod(HttpRequest::Method::Get); +} + +ListUserClustersRequest::~ListUserClustersRequest() {} + +std::string ListUserClustersRequest::getCurrent() const { + return current_; +} + +void ListUserClustersRequest::setCurrent(const std::string ¤t) { + current_ = current; + setParameter(std::string("current"), current); +} + +std::string ListUserClustersRequest::getPageSize() const { + return pageSize_; +} + +void ListUserClustersRequest::setPageSize(const std::string &pageSize) { + pageSize_ = pageSize; + setParameter(std::string("pageSize"), pageSize); +} + +std::string ListUserClustersRequest::getUserID() const { + return userID_; +} + +void ListUserClustersRequest::setUserID(const std::string &userID) { + userID_ = userID; + setParameter(std::string("userID"), userID); +} + diff --git a/qianzhou/src/model/ListUserClustersResult.cc b/qianzhou/src/model/ListUserClustersResult.cc new file mode 100644 index 000000000..6654f9cfe --- /dev/null +++ b/qianzhou/src/model/ListUserClustersResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Qianzhou; +using namespace AlibabaCloud::Qianzhou::Model; + +ListUserClustersResult::ListUserClustersResult() : + ServiceResult() +{} + +ListUserClustersResult::ListUserClustersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListUserClustersResult::~ListUserClustersResult() +{} + +void ListUserClustersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["msg"].isNull()) + msg_ = value["msg"].asString(); + if(!value["data"].isNull()) + data_ = value["data"].asString(); + if(!value["code"].isNull()) + code_ = std::stol(value["code"].asString()); + +} + +std::string ListUserClustersResult::getMsg()const +{ + return msg_; +} + +std::string ListUserClustersResult::getRequestId()const +{ + return requestId_; +} + +std::string ListUserClustersResult::getData()const +{ + return data_; +} + +long ListUserClustersResult::getCode()const +{ + return code_; +} + diff --git a/qianzhou/src/model/QueryByInstanceInfoRequest.cc b/qianzhou/src/model/QueryByInstanceInfoRequest.cc new file mode 100644 index 000000000..b8916efcc --- /dev/null +++ b/qianzhou/src/model/QueryByInstanceInfoRequest.cc @@ -0,0 +1,37 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Qianzhou::Model::QueryByInstanceInfoRequest; + +QueryByInstanceInfoRequest::QueryByInstanceInfoRequest() + : RoaServiceRequest("qianzhou", "2021-11-11") { + setResourcePath("/popapi/queryByInstanceInfo"}; + setMethod(HttpRequest::Method::Post); +} + +QueryByInstanceInfoRequest::~QueryByInstanceInfoRequest() {} + +std::string QueryByInstanceInfoRequest::getBody() const { + return body_; +} + +void QueryByInstanceInfoRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/qianzhou/src/model/QueryByInstanceInfoResult.cc b/qianzhou/src/model/QueryByInstanceInfoResult.cc new file mode 100644 index 000000000..b33020f32 --- /dev/null +++ b/qianzhou/src/model/QueryByInstanceInfoResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Qianzhou; +using namespace AlibabaCloud::Qianzhou::Model; + +QueryByInstanceInfoResult::QueryByInstanceInfoResult() : + ServiceResult() +{} + +QueryByInstanceInfoResult::QueryByInstanceInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryByInstanceInfoResult::~QueryByInstanceInfoResult() +{} + +void QueryByInstanceInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto alldataNode = value["data"]["dataItem"]; + for (auto valuedatadataItem : alldataNode) + { + DataItem dataObject; + if(!valuedatadataItem["clusterId"].isNull()) + dataObject.clusterId = valuedatadataItem["clusterId"].asString(); + if(!valuedatadataItem["clusterName"].isNull()) + dataObject.clusterName = valuedatadataItem["clusterName"].asString(); + if(!valuedatadataItem["instanceId"].isNull()) + dataObject.instanceId = valuedatadataItem["instanceId"].asString(); + if(!valuedatadataItem["regionId"].isNull()) + dataObject.regionId = valuedatadataItem["regionId"].asString(); + if(!valuedatadataItem["uid"].isNull()) + dataObject.uid = valuedatadataItem["uid"].asString(); + data_.push_back(dataObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["code"].isNull()) + code_ = std::stoi(value["code"].asString()); + if(!value["msg"].isNull()) + msg_ = value["msg"].asString(); + +} + +std::string QueryByInstanceInfoResult::getMsg()const +{ + return msg_; +} + +std::vector QueryByInstanceInfoResult::getdata()const +{ + return data_; +} + +std::string QueryByInstanceInfoResult::getRequestId()const +{ + return requestId_; +} + +int QueryByInstanceInfoResult::getCode()const +{ + return code_; +} + diff --git a/qianzhou/src/model/QueryNodeInfoRequest.cc b/qianzhou/src/model/QueryNodeInfoRequest.cc new file mode 100644 index 000000000..c75c86821 --- /dev/null +++ b/qianzhou/src/model/QueryNodeInfoRequest.cc @@ -0,0 +1,46 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Qianzhou::Model::QueryNodeInfoRequest; + +QueryNodeInfoRequest::QueryNodeInfoRequest() + : RoaServiceRequest("qianzhou", "2021-11-11") { + setResourcePath("/popapi/queryByInstanceId"}; + setMethod(HttpRequest::Method::Get); +} + +QueryNodeInfoRequest::~QueryNodeInfoRequest() {} + +std::string QueryNodeInfoRequest::getInstanceId() const { + return instanceId_; +} + +void QueryNodeInfoRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("instanceId"), instanceId); +} + +std::string QueryNodeInfoRequest::getRegionId() const { + return regionId_; +} + +void QueryNodeInfoRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("regionId"), regionId); +} + diff --git a/qianzhou/src/model/QueryNodeInfoResult.cc b/qianzhou/src/model/QueryNodeInfoResult.cc new file mode 100644 index 000000000..f13066987 --- /dev/null +++ b/qianzhou/src/model/QueryNodeInfoResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Qianzhou; +using namespace AlibabaCloud::Qianzhou::Model; + +QueryNodeInfoResult::QueryNodeInfoResult() : + ServiceResult() +{} + +QueryNodeInfoResult::QueryNodeInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryNodeInfoResult::~QueryNodeInfoResult() +{} + +void QueryNodeInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto alldataNode = value["data"]["dataItem"]; + for (auto valuedatadataItem : alldataNode) + { + DataItem dataObject; + if(!valuedatadataItem["clusterId"].isNull()) + dataObject.clusterId = valuedatadataItem["clusterId"].asString(); + if(!valuedatadataItem["cluserName"].isNull()) + dataObject.cluserName = valuedatadataItem["cluserName"].asString(); + if(!valuedatadataItem["instanceId"].isNull()) + dataObject.instanceId = valuedatadataItem["instanceId"].asString(); + if(!valuedatadataItem["region"].isNull()) + dataObject.region = valuedatadataItem["region"].asString(); + if(!valuedatadataItem["uid"].isNull()) + dataObject.uid = valuedatadataItem["uid"].asString(); + data_.push_back(dataObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["code"].isNull()) + code_ = std::stoi(value["code"].asString()); + if(!value["msg"].isNull()) + msg_ = value["msg"].asString(); + +} + +std::string QueryNodeInfoResult::getMsg()const +{ + return msg_; +} + +std::vector QueryNodeInfoResult::getdata()const +{ + return data_; +} + +std::string QueryNodeInfoResult::getRequestId()const +{ + return requestId_; +} + +int QueryNodeInfoResult::getCode()const +{ + return code_; +} +