From 3300b8de846ec7ab1f76bfc09d2de2be236e1ab0 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Wed, 28 Dec 2022 05:59:52 +0000 Subject: [PATCH] Added ElasticSearch Serverless SDK. --- VERSION | 2 +- es-serverless/CMakeLists.txt | 150 ++++ .../es-serverless/Es_serverlessClient.h | 182 +++++ .../es-serverless/Es_serverlessExport.h | 32 + .../es-serverless/model/CreateAppRequest.h | 42 ++ .../es-serverless/model/CreateAppResult.h | 51 ++ .../model/CreateDataStreamRequest.h | 45 ++ .../model/CreateDataStreamResult.h | 51 ++ .../model/DeleteAccessTokenRequest.h | 42 ++ .../model/DeleteAccessTokenResult.h | 51 ++ .../es-serverless/model/DeleteAppRequest.h | 42 ++ .../es-serverless/model/DeleteAppResult.h | 57 ++ .../model/DeleteDataStreamRequest.h | 45 ++ .../model/DeleteDataStreamResult.h | 53 ++ .../model/DescibeRegionsRequest.h | 39 + .../model/DescibeRegionsResult.h | 59 ++ .../model/DisableAccessTokenRequest.h | 42 ++ .../model/DisableAccessTokenResult.h | 51 ++ .../model/EnableAccessTokenRequest.h | 42 ++ .../model/EnableAccessTokenResult.h | 51 ++ .../model/GenerateAcccessTokenRequest.h | 39 + .../model/GenerateAcccessTokenResult.h | 51 ++ .../es-serverless/model/GetAppRequest.h | 42 ++ .../es-serverless/model/GetAppResult.h | 64 ++ .../model/GetDataStreamRequest.h | 45 ++ .../es-serverless/model/GetDataStreamResult.h | 79 +++ .../model/GetRegionInfoRequest.h | 39 + .../es-serverless/model/GetRegionInfoResult.h | 51 ++ .../model/ListAccessTokensRequest.h | 42 ++ .../model/ListAccessTokensResult.h | 51 ++ .../es-serverless/model/ListAppsRequest.h | 51 ++ .../es-serverless/model/ListAppsResult.h | 66 ++ .../model/ListDataStreamsRequest.h | 51 ++ .../model/ListDataStreamsResult.h | 81 +++ .../es-serverless/model/UpdateAppRequest.h | 45 ++ .../es-serverless/model/UpdateAppResult.h | 51 ++ .../model/UpdateDataStreamRequest.h | 48 ++ .../model/UpdateDataStreamResult.h | 57 ++ es-serverless/src/Es-serverlessClient.cc | 665 ++++++++++++++++++ es-serverless/src/model/CreateAppRequest.cc | 37 + es-serverless/src/model/CreateAppResult.cc | 51 ++ .../src/model/CreateDataStreamRequest.cc | 46 ++ .../src/model/CreateDataStreamResult.cc | 51 ++ .../src/model/DeleteAccessTokenRequest.cc | 37 + .../src/model/DeleteAccessTokenResult.cc | 51 ++ es-serverless/src/model/DeleteAppRequest.cc | 37 + es-serverless/src/model/DeleteAppResult.cc | 59 ++ .../src/model/DeleteDataStreamRequest.cc | 46 ++ .../src/model/DeleteDataStreamResult.cc | 58 ++ .../src/model/DescibeRegionsRequest.cc | 28 + .../src/model/DescibeRegionsResult.cc | 68 ++ .../src/model/DisableAccessTokenRequest.cc | 37 + .../src/model/DisableAccessTokenResult.cc | 51 ++ .../src/model/EnableAccessTokenRequest.cc | 37 + .../src/model/EnableAccessTokenResult.cc | 51 ++ .../src/model/GenerateAcccessTokenRequest.cc | 28 + .../src/model/GenerateAcccessTokenResult.cc | 51 ++ es-serverless/src/model/GetAppRequest.cc | 37 + es-serverless/src/model/GetAppResult.cc | 73 ++ .../src/model/GetDataStreamRequest.cc | 46 ++ .../src/model/GetDataStreamResult.cc | 96 +++ .../src/model/GetRegionInfoRequest.cc | 28 + .../src/model/GetRegionInfoResult.cc | 51 ++ .../src/model/ListAccessTokensRequest.cc | 37 + .../src/model/ListAccessTokensResult.cc | 51 ++ es-serverless/src/model/ListAppsRequest.cc | 64 ++ es-serverless/src/model/ListAppsResult.cc | 85 +++ .../src/model/ListDataStreamsRequest.cc | 64 ++ .../src/model/ListDataStreamsResult.cc | 108 +++ es-serverless/src/model/UpdateAppRequest.cc | 46 ++ es-serverless/src/model/UpdateAppResult.cc | 51 ++ .../src/model/UpdateDataStreamRequest.cc | 55 ++ .../src/model/UpdateDataStreamResult.cc | 59 ++ 73 files changed, 4521 insertions(+), 1 deletion(-) create mode 100644 es-serverless/CMakeLists.txt create mode 100644 es-serverless/include/alibabacloud/es-serverless/Es_serverlessClient.h create mode 100644 es-serverless/include/alibabacloud/es-serverless/Es_serverlessExport.h create mode 100644 es-serverless/include/alibabacloud/es-serverless/model/CreateAppRequest.h create mode 100644 es-serverless/include/alibabacloud/es-serverless/model/CreateAppResult.h create mode 100644 es-serverless/include/alibabacloud/es-serverless/model/CreateDataStreamRequest.h create mode 100644 es-serverless/include/alibabacloud/es-serverless/model/CreateDataStreamResult.h create mode 100644 es-serverless/include/alibabacloud/es-serverless/model/DeleteAccessTokenRequest.h create mode 100644 es-serverless/include/alibabacloud/es-serverless/model/DeleteAccessTokenResult.h create mode 100644 es-serverless/include/alibabacloud/es-serverless/model/DeleteAppRequest.h create mode 100644 es-serverless/include/alibabacloud/es-serverless/model/DeleteAppResult.h create mode 100644 es-serverless/include/alibabacloud/es-serverless/model/DeleteDataStreamRequest.h create mode 100644 es-serverless/include/alibabacloud/es-serverless/model/DeleteDataStreamResult.h create mode 100644 es-serverless/include/alibabacloud/es-serverless/model/DescibeRegionsRequest.h create mode 100644 es-serverless/include/alibabacloud/es-serverless/model/DescibeRegionsResult.h create mode 100644 es-serverless/include/alibabacloud/es-serverless/model/DisableAccessTokenRequest.h create mode 100644 es-serverless/include/alibabacloud/es-serverless/model/DisableAccessTokenResult.h create mode 100644 es-serverless/include/alibabacloud/es-serverless/model/EnableAccessTokenRequest.h create mode 100644 es-serverless/include/alibabacloud/es-serverless/model/EnableAccessTokenResult.h create mode 100644 es-serverless/include/alibabacloud/es-serverless/model/GenerateAcccessTokenRequest.h create mode 100644 es-serverless/include/alibabacloud/es-serverless/model/GenerateAcccessTokenResult.h create mode 100644 es-serverless/include/alibabacloud/es-serverless/model/GetAppRequest.h create mode 100644 es-serverless/include/alibabacloud/es-serverless/model/GetAppResult.h create mode 100644 es-serverless/include/alibabacloud/es-serverless/model/GetDataStreamRequest.h create mode 100644 es-serverless/include/alibabacloud/es-serverless/model/GetDataStreamResult.h create mode 100644 es-serverless/include/alibabacloud/es-serverless/model/GetRegionInfoRequest.h create mode 100644 es-serverless/include/alibabacloud/es-serverless/model/GetRegionInfoResult.h create mode 100644 es-serverless/include/alibabacloud/es-serverless/model/ListAccessTokensRequest.h create mode 100644 es-serverless/include/alibabacloud/es-serverless/model/ListAccessTokensResult.h create mode 100644 es-serverless/include/alibabacloud/es-serverless/model/ListAppsRequest.h create mode 100644 es-serverless/include/alibabacloud/es-serverless/model/ListAppsResult.h create mode 100644 es-serverless/include/alibabacloud/es-serverless/model/ListDataStreamsRequest.h create mode 100644 es-serverless/include/alibabacloud/es-serverless/model/ListDataStreamsResult.h create mode 100644 es-serverless/include/alibabacloud/es-serverless/model/UpdateAppRequest.h create mode 100644 es-serverless/include/alibabacloud/es-serverless/model/UpdateAppResult.h create mode 100644 es-serverless/include/alibabacloud/es-serverless/model/UpdateDataStreamRequest.h create mode 100644 es-serverless/include/alibabacloud/es-serverless/model/UpdateDataStreamResult.h create mode 100644 es-serverless/src/Es-serverlessClient.cc create mode 100644 es-serverless/src/model/CreateAppRequest.cc create mode 100644 es-serverless/src/model/CreateAppResult.cc create mode 100644 es-serverless/src/model/CreateDataStreamRequest.cc create mode 100644 es-serverless/src/model/CreateDataStreamResult.cc create mode 100644 es-serverless/src/model/DeleteAccessTokenRequest.cc create mode 100644 es-serverless/src/model/DeleteAccessTokenResult.cc create mode 100644 es-serverless/src/model/DeleteAppRequest.cc create mode 100644 es-serverless/src/model/DeleteAppResult.cc create mode 100644 es-serverless/src/model/DeleteDataStreamRequest.cc create mode 100644 es-serverless/src/model/DeleteDataStreamResult.cc create mode 100644 es-serverless/src/model/DescibeRegionsRequest.cc create mode 100644 es-serverless/src/model/DescibeRegionsResult.cc create mode 100644 es-serverless/src/model/DisableAccessTokenRequest.cc create mode 100644 es-serverless/src/model/DisableAccessTokenResult.cc create mode 100644 es-serverless/src/model/EnableAccessTokenRequest.cc create mode 100644 es-serverless/src/model/EnableAccessTokenResult.cc create mode 100644 es-serverless/src/model/GenerateAcccessTokenRequest.cc create mode 100644 es-serverless/src/model/GenerateAcccessTokenResult.cc create mode 100644 es-serverless/src/model/GetAppRequest.cc create mode 100644 es-serverless/src/model/GetAppResult.cc create mode 100644 es-serverless/src/model/GetDataStreamRequest.cc create mode 100644 es-serverless/src/model/GetDataStreamResult.cc create mode 100644 es-serverless/src/model/GetRegionInfoRequest.cc create mode 100644 es-serverless/src/model/GetRegionInfoResult.cc create mode 100644 es-serverless/src/model/ListAccessTokensRequest.cc create mode 100644 es-serverless/src/model/ListAccessTokensResult.cc create mode 100644 es-serverless/src/model/ListAppsRequest.cc create mode 100644 es-serverless/src/model/ListAppsResult.cc create mode 100644 es-serverless/src/model/ListDataStreamsRequest.cc create mode 100644 es-serverless/src/model/ListDataStreamsResult.cc create mode 100644 es-serverless/src/model/UpdateAppRequest.cc create mode 100644 es-serverless/src/model/UpdateAppResult.cc create mode 100644 es-serverless/src/model/UpdateDataStreamRequest.cc create mode 100644 es-serverless/src/model/UpdateDataStreamResult.cc diff --git a/VERSION b/VERSION index a0a4a6f9e..6ec0cd4e7 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1403 \ No newline at end of file +1.36.1404 \ No newline at end of file diff --git a/es-serverless/CMakeLists.txt b/es-serverless/CMakeLists.txt new file mode 100644 index 000000000..b10f92a6a --- /dev/null +++ b/es-serverless/CMakeLists.txt @@ -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. +# + +set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include) + +set(es-serverless_public_header + include/alibabacloud/es-serverless/Es_serverlessClient.h + include/alibabacloud/es-serverless/Es_serverlessExport.h ) + +set(es-serverless_public_header_model + include/alibabacloud/es-serverless/model/CreateAppRequest.h + include/alibabacloud/es-serverless/model/CreateAppResult.h + include/alibabacloud/es-serverless/model/CreateDataStreamRequest.h + include/alibabacloud/es-serverless/model/CreateDataStreamResult.h + include/alibabacloud/es-serverless/model/DeleteAccessTokenRequest.h + include/alibabacloud/es-serverless/model/DeleteAccessTokenResult.h + include/alibabacloud/es-serverless/model/DeleteAppRequest.h + include/alibabacloud/es-serverless/model/DeleteAppResult.h + include/alibabacloud/es-serverless/model/DeleteDataStreamRequest.h + include/alibabacloud/es-serverless/model/DeleteDataStreamResult.h + include/alibabacloud/es-serverless/model/DescibeRegionsRequest.h + include/alibabacloud/es-serverless/model/DescibeRegionsResult.h + include/alibabacloud/es-serverless/model/DisableAccessTokenRequest.h + include/alibabacloud/es-serverless/model/DisableAccessTokenResult.h + include/alibabacloud/es-serverless/model/EnableAccessTokenRequest.h + include/alibabacloud/es-serverless/model/EnableAccessTokenResult.h + include/alibabacloud/es-serverless/model/GenerateAcccessTokenRequest.h + include/alibabacloud/es-serverless/model/GenerateAcccessTokenResult.h + include/alibabacloud/es-serverless/model/GetAppRequest.h + include/alibabacloud/es-serverless/model/GetAppResult.h + include/alibabacloud/es-serverless/model/GetDataStreamRequest.h + include/alibabacloud/es-serverless/model/GetDataStreamResult.h + include/alibabacloud/es-serverless/model/GetRegionInfoRequest.h + include/alibabacloud/es-serverless/model/GetRegionInfoResult.h + include/alibabacloud/es-serverless/model/ListAccessTokensRequest.h + include/alibabacloud/es-serverless/model/ListAccessTokensResult.h + include/alibabacloud/es-serverless/model/ListAppsRequest.h + include/alibabacloud/es-serverless/model/ListAppsResult.h + include/alibabacloud/es-serverless/model/ListDataStreamsRequest.h + include/alibabacloud/es-serverless/model/ListDataStreamsResult.h + include/alibabacloud/es-serverless/model/UpdateAppRequest.h + include/alibabacloud/es-serverless/model/UpdateAppResult.h + include/alibabacloud/es-serverless/model/UpdateDataStreamRequest.h + include/alibabacloud/es-serverless/model/UpdateDataStreamResult.h ) + +set(es-serverless_src + src/Es-serverlessClient.cc + src/model/CreateAppRequest.cc + src/model/CreateAppResult.cc + src/model/CreateDataStreamRequest.cc + src/model/CreateDataStreamResult.cc + src/model/DeleteAccessTokenRequest.cc + src/model/DeleteAccessTokenResult.cc + src/model/DeleteAppRequest.cc + src/model/DeleteAppResult.cc + src/model/DeleteDataStreamRequest.cc + src/model/DeleteDataStreamResult.cc + src/model/DescibeRegionsRequest.cc + src/model/DescibeRegionsResult.cc + src/model/DisableAccessTokenRequest.cc + src/model/DisableAccessTokenResult.cc + src/model/EnableAccessTokenRequest.cc + src/model/EnableAccessTokenResult.cc + src/model/GenerateAcccessTokenRequest.cc + src/model/GenerateAcccessTokenResult.cc + src/model/GetAppRequest.cc + src/model/GetAppResult.cc + src/model/GetDataStreamRequest.cc + src/model/GetDataStreamResult.cc + src/model/GetRegionInfoRequest.cc + src/model/GetRegionInfoResult.cc + src/model/ListAccessTokensRequest.cc + src/model/ListAccessTokensResult.cc + src/model/ListAppsRequest.cc + src/model/ListAppsResult.cc + src/model/ListDataStreamsRequest.cc + src/model/ListDataStreamsResult.cc + src/model/UpdateAppRequest.cc + src/model/UpdateAppResult.cc + src/model/UpdateDataStreamRequest.cc + src/model/UpdateDataStreamResult.cc ) + +add_library(es-serverless ${LIB_TYPE} + ${es-serverless_public_header} + ${es-serverless_public_header_model} + ${es-serverless_src}) + +set_target_properties(es-serverless + 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}es-serverless + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(es-serverless + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_ES_SERVERLESS_LIBRARY) +endif() + +target_include_directories(es-serverless + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(es-serverless + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(es-serverless + jsoncpp) + target_include_directories(es-serverless + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(es-serverless + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(es-serverless + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(es-serverless + PRIVATE /usr/include/jsoncpp) + target_link_libraries(es-serverless + jsoncpp) +endif() + +install(FILES ${es-serverless_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/es-serverless) +install(FILES ${es-serverless_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/es-serverless/model) +install(TARGETS es-serverless + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/es-serverless/include/alibabacloud/es-serverless/Es_serverlessClient.h b/es-serverless/include/alibabacloud/es-serverless/Es_serverlessClient.h new file mode 100644 index 000000000..f6ed2a690 --- /dev/null +++ b/es-serverless/include/alibabacloud/es-serverless/Es_serverlessClient.h @@ -0,0 +1,182 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ES_SERVERLESS_ES_SERVERLESSCLIENT_H_ +#define ALIBABACLOUD_ES_SERVERLESS_ES_SERVERLESSCLIENT_H_ + +#include +#include +#include +#include +#include "Es_serverlessExport.h" +#include "model/CreateAppRequest.h" +#include "model/CreateAppResult.h" +#include "model/CreateDataStreamRequest.h" +#include "model/CreateDataStreamResult.h" +#include "model/DeleteAccessTokenRequest.h" +#include "model/DeleteAccessTokenResult.h" +#include "model/DeleteAppRequest.h" +#include "model/DeleteAppResult.h" +#include "model/DeleteDataStreamRequest.h" +#include "model/DeleteDataStreamResult.h" +#include "model/DescibeRegionsRequest.h" +#include "model/DescibeRegionsResult.h" +#include "model/DisableAccessTokenRequest.h" +#include "model/DisableAccessTokenResult.h" +#include "model/EnableAccessTokenRequest.h" +#include "model/EnableAccessTokenResult.h" +#include "model/GenerateAcccessTokenRequest.h" +#include "model/GenerateAcccessTokenResult.h" +#include "model/GetAppRequest.h" +#include "model/GetAppResult.h" +#include "model/GetDataStreamRequest.h" +#include "model/GetDataStreamResult.h" +#include "model/GetRegionInfoRequest.h" +#include "model/GetRegionInfoResult.h" +#include "model/ListAccessTokensRequest.h" +#include "model/ListAccessTokensResult.h" +#include "model/ListAppsRequest.h" +#include "model/ListAppsResult.h" +#include "model/ListDataStreamsRequest.h" +#include "model/ListDataStreamsResult.h" +#include "model/UpdateAppRequest.h" +#include "model/UpdateAppResult.h" +#include "model/UpdateDataStreamRequest.h" +#include "model/UpdateDataStreamResult.h" + + +namespace AlibabaCloud +{ + namespace Es_serverless + { + class ALIBABACLOUD_ES_SERVERLESS_EXPORT Es_serverlessClient : public RoaServiceClient + { + public: + typedef Outcome CreateAppOutcome; + typedef std::future CreateAppOutcomeCallable; + typedef std::function&)> CreateAppAsyncHandler; + typedef Outcome CreateDataStreamOutcome; + typedef std::future CreateDataStreamOutcomeCallable; + typedef std::function&)> CreateDataStreamAsyncHandler; + typedef Outcome DeleteAccessTokenOutcome; + typedef std::future DeleteAccessTokenOutcomeCallable; + typedef std::function&)> DeleteAccessTokenAsyncHandler; + typedef Outcome DeleteAppOutcome; + typedef std::future DeleteAppOutcomeCallable; + typedef std::function&)> DeleteAppAsyncHandler; + typedef Outcome DeleteDataStreamOutcome; + typedef std::future DeleteDataStreamOutcomeCallable; + typedef std::function&)> DeleteDataStreamAsyncHandler; + typedef Outcome DescibeRegionsOutcome; + typedef std::future DescibeRegionsOutcomeCallable; + typedef std::function&)> DescibeRegionsAsyncHandler; + typedef Outcome DisableAccessTokenOutcome; + typedef std::future DisableAccessTokenOutcomeCallable; + typedef std::function&)> DisableAccessTokenAsyncHandler; + typedef Outcome EnableAccessTokenOutcome; + typedef std::future EnableAccessTokenOutcomeCallable; + typedef std::function&)> EnableAccessTokenAsyncHandler; + typedef Outcome GenerateAcccessTokenOutcome; + typedef std::future GenerateAcccessTokenOutcomeCallable; + typedef std::function&)> GenerateAcccessTokenAsyncHandler; + typedef Outcome GetAppOutcome; + typedef std::future GetAppOutcomeCallable; + typedef std::function&)> GetAppAsyncHandler; + typedef Outcome GetDataStreamOutcome; + typedef std::future GetDataStreamOutcomeCallable; + typedef std::function&)> GetDataStreamAsyncHandler; + typedef Outcome GetRegionInfoOutcome; + typedef std::future GetRegionInfoOutcomeCallable; + typedef std::function&)> GetRegionInfoAsyncHandler; + typedef Outcome ListAccessTokensOutcome; + typedef std::future ListAccessTokensOutcomeCallable; + typedef std::function&)> ListAccessTokensAsyncHandler; + typedef Outcome ListAppsOutcome; + typedef std::future ListAppsOutcomeCallable; + typedef std::function&)> ListAppsAsyncHandler; + typedef Outcome ListDataStreamsOutcome; + typedef std::future ListDataStreamsOutcomeCallable; + typedef std::function&)> ListDataStreamsAsyncHandler; + typedef Outcome UpdateAppOutcome; + typedef std::future UpdateAppOutcomeCallable; + typedef std::function&)> UpdateAppAsyncHandler; + typedef Outcome UpdateDataStreamOutcome; + typedef std::future UpdateDataStreamOutcomeCallable; + typedef std::function&)> UpdateDataStreamAsyncHandler; + + Es_serverlessClient(const Credentials &credentials, const ClientConfiguration &configuration); + Es_serverlessClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + Es_serverlessClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~Es_serverlessClient(); + CreateAppOutcome createApp(const Model::CreateAppRequest &request)const; + void createAppAsync(const Model::CreateAppRequest& request, const CreateAppAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAppOutcomeCallable createAppCallable(const Model::CreateAppRequest& request) const; + CreateDataStreamOutcome createDataStream(const Model::CreateDataStreamRequest &request)const; + void createDataStreamAsync(const Model::CreateDataStreamRequest& request, const CreateDataStreamAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDataStreamOutcomeCallable createDataStreamCallable(const Model::CreateDataStreamRequest& request) const; + DeleteAccessTokenOutcome deleteAccessToken(const Model::DeleteAccessTokenRequest &request)const; + void deleteAccessTokenAsync(const Model::DeleteAccessTokenRequest& request, const DeleteAccessTokenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteAccessTokenOutcomeCallable deleteAccessTokenCallable(const Model::DeleteAccessTokenRequest& request) const; + DeleteAppOutcome deleteApp(const Model::DeleteAppRequest &request)const; + void deleteAppAsync(const Model::DeleteAppRequest& request, const DeleteAppAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteAppOutcomeCallable deleteAppCallable(const Model::DeleteAppRequest& request) const; + DeleteDataStreamOutcome deleteDataStream(const Model::DeleteDataStreamRequest &request)const; + void deleteDataStreamAsync(const Model::DeleteDataStreamRequest& request, const DeleteDataStreamAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDataStreamOutcomeCallable deleteDataStreamCallable(const Model::DeleteDataStreamRequest& request) const; + DescibeRegionsOutcome descibeRegions(const Model::DescibeRegionsRequest &request)const; + void descibeRegionsAsync(const Model::DescibeRegionsRequest& request, const DescibeRegionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescibeRegionsOutcomeCallable descibeRegionsCallable(const Model::DescibeRegionsRequest& request) const; + DisableAccessTokenOutcome disableAccessToken(const Model::DisableAccessTokenRequest &request)const; + void disableAccessTokenAsync(const Model::DisableAccessTokenRequest& request, const DisableAccessTokenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DisableAccessTokenOutcomeCallable disableAccessTokenCallable(const Model::DisableAccessTokenRequest& request) const; + EnableAccessTokenOutcome enableAccessToken(const Model::EnableAccessTokenRequest &request)const; + void enableAccessTokenAsync(const Model::EnableAccessTokenRequest& request, const EnableAccessTokenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + EnableAccessTokenOutcomeCallable enableAccessTokenCallable(const Model::EnableAccessTokenRequest& request) const; + GenerateAcccessTokenOutcome generateAcccessToken(const Model::GenerateAcccessTokenRequest &request)const; + void generateAcccessTokenAsync(const Model::GenerateAcccessTokenRequest& request, const GenerateAcccessTokenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GenerateAcccessTokenOutcomeCallable generateAcccessTokenCallable(const Model::GenerateAcccessTokenRequest& request) const; + GetAppOutcome getApp(const Model::GetAppRequest &request)const; + void getAppAsync(const Model::GetAppRequest& request, const GetAppAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAppOutcomeCallable getAppCallable(const Model::GetAppRequest& request) const; + GetDataStreamOutcome getDataStream(const Model::GetDataStreamRequest &request)const; + void getDataStreamAsync(const Model::GetDataStreamRequest& request, const GetDataStreamAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetDataStreamOutcomeCallable getDataStreamCallable(const Model::GetDataStreamRequest& request) const; + GetRegionInfoOutcome getRegionInfo(const Model::GetRegionInfoRequest &request)const; + void getRegionInfoAsync(const Model::GetRegionInfoRequest& request, const GetRegionInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetRegionInfoOutcomeCallable getRegionInfoCallable(const Model::GetRegionInfoRequest& request) const; + ListAccessTokensOutcome listAccessTokens(const Model::ListAccessTokensRequest &request)const; + void listAccessTokensAsync(const Model::ListAccessTokensRequest& request, const ListAccessTokensAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAccessTokensOutcomeCallable listAccessTokensCallable(const Model::ListAccessTokensRequest& request) const; + ListAppsOutcome listApps(const Model::ListAppsRequest &request)const; + void listAppsAsync(const Model::ListAppsRequest& request, const ListAppsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAppsOutcomeCallable listAppsCallable(const Model::ListAppsRequest& request) const; + ListDataStreamsOutcome listDataStreams(const Model::ListDataStreamsRequest &request)const; + void listDataStreamsAsync(const Model::ListDataStreamsRequest& request, const ListDataStreamsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListDataStreamsOutcomeCallable listDataStreamsCallable(const Model::ListDataStreamsRequest& request) const; + UpdateAppOutcome updateApp(const Model::UpdateAppRequest &request)const; + void updateAppAsync(const Model::UpdateAppRequest& request, const UpdateAppAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateAppOutcomeCallable updateAppCallable(const Model::UpdateAppRequest& request) const; + UpdateDataStreamOutcome updateDataStream(const Model::UpdateDataStreamRequest &request)const; + void updateDataStreamAsync(const Model::UpdateDataStreamRequest& request, const UpdateDataStreamAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateDataStreamOutcomeCallable updateDataStreamCallable(const Model::UpdateDataStreamRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_ES_SERVERLESS_ES_SERVERLESSCLIENT_H_ diff --git a/es-serverless/include/alibabacloud/es-serverless/Es_serverlessExport.h b/es-serverless/include/alibabacloud/es-serverless/Es_serverlessExport.h new file mode 100644 index 000000000..7f57cefb3 --- /dev/null +++ b/es-serverless/include/alibabacloud/es-serverless/Es_serverlessExport.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_ES_SERVERLESS_ES_SERVERLESSEXPORT_H_ +#define ALIBABACLOUD_ES_SERVERLESS_ES_SERVERLESSEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_ES_SERVERLESS_LIBRARY) +# define ALIBABACLOUD_ES_SERVERLESS_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_ES_SERVERLESS_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_ES_SERVERLESS_EXPORT +#endif + +#endif // !ALIBABACLOUD_ES_SERVERLESS_ES_SERVERLESSEXPORT_H_ \ No newline at end of file diff --git a/es-serverless/include/alibabacloud/es-serverless/model/CreateAppRequest.h b/es-serverless/include/alibabacloud/es-serverless/model/CreateAppRequest.h new file mode 100644 index 000000000..6a04e7364 --- /dev/null +++ b/es-serverless/include/alibabacloud/es-serverless/model/CreateAppRequest.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_ES_SERVERLESS_MODEL_CREATEAPPREQUEST_H_ +#define ALIBABACLOUD_ES_SERVERLESS_MODEL_CREATEAPPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Es_serverless { +namespace Model { +class ALIBABACLOUD_ES_SERVERLESS_EXPORT CreateAppRequest : public RoaServiceRequest { +public: + CreateAppRequest(); + ~CreateAppRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Es_serverless +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ES_SERVERLESS_MODEL_CREATEAPPREQUEST_H_ diff --git a/es-serverless/include/alibabacloud/es-serverless/model/CreateAppResult.h b/es-serverless/include/alibabacloud/es-serverless/model/CreateAppResult.h new file mode 100644 index 000000000..c96bf71dc --- /dev/null +++ b/es-serverless/include/alibabacloud/es-serverless/model/CreateAppResult.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_ES_SERVERLESS_MODEL_CREATEAPPRESULT_H_ +#define ALIBABACLOUD_ES_SERVERLESS_MODEL_CREATEAPPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Es_serverless + { + namespace Model + { + class ALIBABACLOUD_ES_SERVERLESS_EXPORT CreateAppResult : public ServiceResult + { + public: + + + CreateAppResult(); + explicit CreateAppResult(const std::string &payload); + ~CreateAppResult(); + std::string getRequestId()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ES_SERVERLESS_MODEL_CREATEAPPRESULT_H_ \ No newline at end of file diff --git a/es-serverless/include/alibabacloud/es-serverless/model/CreateDataStreamRequest.h b/es-serverless/include/alibabacloud/es-serverless/model/CreateDataStreamRequest.h new file mode 100644 index 000000000..6e7a55882 --- /dev/null +++ b/es-serverless/include/alibabacloud/es-serverless/model/CreateDataStreamRequest.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_ES_SERVERLESS_MODEL_CREATEDATASTREAMREQUEST_H_ +#define ALIBABACLOUD_ES_SERVERLESS_MODEL_CREATEDATASTREAMREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Es_serverless { +namespace Model { +class ALIBABACLOUD_ES_SERVERLESS_EXPORT CreateDataStreamRequest : public RoaServiceRequest { +public: + CreateDataStreamRequest(); + ~CreateDataStreamRequest(); + std::string getAppName() const; + void setAppName(const std::string &appName); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string appName_; + std::string body_; +}; +} // namespace Model +} // namespace Es_serverless +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ES_SERVERLESS_MODEL_CREATEDATASTREAMREQUEST_H_ diff --git a/es-serverless/include/alibabacloud/es-serverless/model/CreateDataStreamResult.h b/es-serverless/include/alibabacloud/es-serverless/model/CreateDataStreamResult.h new file mode 100644 index 000000000..e6c071f8b --- /dev/null +++ b/es-serverless/include/alibabacloud/es-serverless/model/CreateDataStreamResult.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_ES_SERVERLESS_MODEL_CREATEDATASTREAMRESULT_H_ +#define ALIBABACLOUD_ES_SERVERLESS_MODEL_CREATEDATASTREAMRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Es_serverless + { + namespace Model + { + class ALIBABACLOUD_ES_SERVERLESS_EXPORT CreateDataStreamResult : public ServiceResult + { + public: + + + CreateDataStreamResult(); + explicit CreateDataStreamResult(const std::string &payload); + ~CreateDataStreamResult(); + std::string getRequestId()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ES_SERVERLESS_MODEL_CREATEDATASTREAMRESULT_H_ \ No newline at end of file diff --git a/es-serverless/include/alibabacloud/es-serverless/model/DeleteAccessTokenRequest.h b/es-serverless/include/alibabacloud/es-serverless/model/DeleteAccessTokenRequest.h new file mode 100644 index 000000000..cc0068192 --- /dev/null +++ b/es-serverless/include/alibabacloud/es-serverless/model/DeleteAccessTokenRequest.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_ES_SERVERLESS_MODEL_DELETEACCESSTOKENREQUEST_H_ +#define ALIBABACLOUD_ES_SERVERLESS_MODEL_DELETEACCESSTOKENREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Es_serverless { +namespace Model { +class ALIBABACLOUD_ES_SERVERLESS_EXPORT DeleteAccessTokenRequest : public RoaServiceRequest { +public: + DeleteAccessTokenRequest(); + ~DeleteAccessTokenRequest(); + std::string getTokenId() const; + void setTokenId(const std::string &tokenId); + +private: + std::string tokenId_; +}; +} // namespace Model +} // namespace Es_serverless +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ES_SERVERLESS_MODEL_DELETEACCESSTOKENREQUEST_H_ diff --git a/es-serverless/include/alibabacloud/es-serverless/model/DeleteAccessTokenResult.h b/es-serverless/include/alibabacloud/es-serverless/model/DeleteAccessTokenResult.h new file mode 100644 index 000000000..f004bd786 --- /dev/null +++ b/es-serverless/include/alibabacloud/es-serverless/model/DeleteAccessTokenResult.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_ES_SERVERLESS_MODEL_DELETEACCESSTOKENRESULT_H_ +#define ALIBABACLOUD_ES_SERVERLESS_MODEL_DELETEACCESSTOKENRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Es_serverless + { + namespace Model + { + class ALIBABACLOUD_ES_SERVERLESS_EXPORT DeleteAccessTokenResult : public ServiceResult + { + public: + + + DeleteAccessTokenResult(); + explicit DeleteAccessTokenResult(const std::string &payload); + ~DeleteAccessTokenResult(); + std::string getRequestId()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ES_SERVERLESS_MODEL_DELETEACCESSTOKENRESULT_H_ \ No newline at end of file diff --git a/es-serverless/include/alibabacloud/es-serverless/model/DeleteAppRequest.h b/es-serverless/include/alibabacloud/es-serverless/model/DeleteAppRequest.h new file mode 100644 index 000000000..2e9539195 --- /dev/null +++ b/es-serverless/include/alibabacloud/es-serverless/model/DeleteAppRequest.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_ES_SERVERLESS_MODEL_DELETEAPPREQUEST_H_ +#define ALIBABACLOUD_ES_SERVERLESS_MODEL_DELETEAPPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Es_serverless { +namespace Model { +class ALIBABACLOUD_ES_SERVERLESS_EXPORT DeleteAppRequest : public RoaServiceRequest { +public: + DeleteAppRequest(); + ~DeleteAppRequest(); + std::string getAppName() const; + void setAppName(const std::string &appName); + +private: + std::string appName_; +}; +} // namespace Model +} // namespace Es_serverless +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ES_SERVERLESS_MODEL_DELETEAPPREQUEST_H_ diff --git a/es-serverless/include/alibabacloud/es-serverless/model/DeleteAppResult.h b/es-serverless/include/alibabacloud/es-serverless/model/DeleteAppResult.h new file mode 100644 index 000000000..4769f20ee --- /dev/null +++ b/es-serverless/include/alibabacloud/es-serverless/model/DeleteAppResult.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_ES_SERVERLESS_MODEL_DELETEAPPRESULT_H_ +#define ALIBABACLOUD_ES_SERVERLESS_MODEL_DELETEAPPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Es_serverless + { + namespace Model + { + class ALIBABACLOUD_ES_SERVERLESS_EXPORT DeleteAppResult : public ServiceResult + { + public: + struct Result + { + std::string instanceId; + }; + + + DeleteAppResult(); + explicit DeleteAppResult(const std::string &payload); + ~DeleteAppResult(); + std::string getRequestId()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ES_SERVERLESS_MODEL_DELETEAPPRESULT_H_ \ No newline at end of file diff --git a/es-serverless/include/alibabacloud/es-serverless/model/DeleteDataStreamRequest.h b/es-serverless/include/alibabacloud/es-serverless/model/DeleteDataStreamRequest.h new file mode 100644 index 000000000..7c1a8c696 --- /dev/null +++ b/es-serverless/include/alibabacloud/es-serverless/model/DeleteDataStreamRequest.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_ES_SERVERLESS_MODEL_DELETEDATASTREAMREQUEST_H_ +#define ALIBABACLOUD_ES_SERVERLESS_MODEL_DELETEDATASTREAMREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Es_serverless { +namespace Model { +class ALIBABACLOUD_ES_SERVERLESS_EXPORT DeleteDataStreamRequest : public RoaServiceRequest { +public: + DeleteDataStreamRequest(); + ~DeleteDataStreamRequest(); + std::string getAppName() const; + void setAppName(const std::string &appName); + std::string getDataStreamName() const; + void setDataStreamName(const std::string &dataStreamName); + +private: + std::string appName_; + std::string dataStreamName_; +}; +} // namespace Model +} // namespace Es_serverless +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ES_SERVERLESS_MODEL_DELETEDATASTREAMREQUEST_H_ diff --git a/es-serverless/include/alibabacloud/es-serverless/model/DeleteDataStreamResult.h b/es-serverless/include/alibabacloud/es-serverless/model/DeleteDataStreamResult.h new file mode 100644 index 000000000..f87a8a445 --- /dev/null +++ b/es-serverless/include/alibabacloud/es-serverless/model/DeleteDataStreamResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ES_SERVERLESS_MODEL_DELETEDATASTREAMRESULT_H_ +#define ALIBABACLOUD_ES_SERVERLESS_MODEL_DELETEDATASTREAMRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Es_serverless + { + namespace Model + { + class ALIBABACLOUD_ES_SERVERLESS_EXPORT DeleteDataStreamResult : public ServiceResult + { + public: + + + DeleteDataStreamResult(); + explicit DeleteDataStreamResult(const std::string &payload); + ~DeleteDataStreamResult(); + std::string getRequestId()const; + bool getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + bool result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ES_SERVERLESS_MODEL_DELETEDATASTREAMRESULT_H_ \ No newline at end of file diff --git a/es-serverless/include/alibabacloud/es-serverless/model/DescibeRegionsRequest.h b/es-serverless/include/alibabacloud/es-serverless/model/DescibeRegionsRequest.h new file mode 100644 index 000000000..824021e0d --- /dev/null +++ b/es-serverless/include/alibabacloud/es-serverless/model/DescibeRegionsRequest.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_ES_SERVERLESS_MODEL_DESCIBEREGIONSREQUEST_H_ +#define ALIBABACLOUD_ES_SERVERLESS_MODEL_DESCIBEREGIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Es_serverless { +namespace Model { +class ALIBABACLOUD_ES_SERVERLESS_EXPORT DescibeRegionsRequest : public RoaServiceRequest { +public: + DescibeRegionsRequest(); + ~DescibeRegionsRequest(); + +private: +}; +} // namespace Model +} // namespace Es_serverless +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ES_SERVERLESS_MODEL_DESCIBEREGIONSREQUEST_H_ diff --git a/es-serverless/include/alibabacloud/es-serverless/model/DescibeRegionsResult.h b/es-serverless/include/alibabacloud/es-serverless/model/DescibeRegionsResult.h new file mode 100644 index 000000000..5ba9da47c --- /dev/null +++ b/es-serverless/include/alibabacloud/es-serverless/model/DescibeRegionsResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ES_SERVERLESS_MODEL_DESCIBEREGIONSRESULT_H_ +#define ALIBABACLOUD_ES_SERVERLESS_MODEL_DESCIBEREGIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Es_serverless + { + namespace Model + { + class ALIBABACLOUD_ES_SERVERLESS_EXPORT DescibeRegionsResult : public ServiceResult + { + public: + struct RegionInfo + { + std::string endpoint; + std::string regionId; + std::string localName; + }; + + + DescibeRegionsResult(); + explicit DescibeRegionsResult(const std::string &payload); + ~DescibeRegionsResult(); + std::vector getresult()const; + std::string getRequestId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ES_SERVERLESS_MODEL_DESCIBEREGIONSRESULT_H_ \ No newline at end of file diff --git a/es-serverless/include/alibabacloud/es-serverless/model/DisableAccessTokenRequest.h b/es-serverless/include/alibabacloud/es-serverless/model/DisableAccessTokenRequest.h new file mode 100644 index 000000000..52a9c15b4 --- /dev/null +++ b/es-serverless/include/alibabacloud/es-serverless/model/DisableAccessTokenRequest.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_ES_SERVERLESS_MODEL_DISABLEACCESSTOKENREQUEST_H_ +#define ALIBABACLOUD_ES_SERVERLESS_MODEL_DISABLEACCESSTOKENREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Es_serverless { +namespace Model { +class ALIBABACLOUD_ES_SERVERLESS_EXPORT DisableAccessTokenRequest : public RoaServiceRequest { +public: + DisableAccessTokenRequest(); + ~DisableAccessTokenRequest(); + std::string getTokenId() const; + void setTokenId(const std::string &tokenId); + +private: + std::string tokenId_; +}; +} // namespace Model +} // namespace Es_serverless +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ES_SERVERLESS_MODEL_DISABLEACCESSTOKENREQUEST_H_ diff --git a/es-serverless/include/alibabacloud/es-serverless/model/DisableAccessTokenResult.h b/es-serverless/include/alibabacloud/es-serverless/model/DisableAccessTokenResult.h new file mode 100644 index 000000000..d1ec2f86f --- /dev/null +++ b/es-serverless/include/alibabacloud/es-serverless/model/DisableAccessTokenResult.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_ES_SERVERLESS_MODEL_DISABLEACCESSTOKENRESULT_H_ +#define ALIBABACLOUD_ES_SERVERLESS_MODEL_DISABLEACCESSTOKENRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Es_serverless + { + namespace Model + { + class ALIBABACLOUD_ES_SERVERLESS_EXPORT DisableAccessTokenResult : public ServiceResult + { + public: + + + DisableAccessTokenResult(); + explicit DisableAccessTokenResult(const std::string &payload); + ~DisableAccessTokenResult(); + std::string getRequestId()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ES_SERVERLESS_MODEL_DISABLEACCESSTOKENRESULT_H_ \ No newline at end of file diff --git a/es-serverless/include/alibabacloud/es-serverless/model/EnableAccessTokenRequest.h b/es-serverless/include/alibabacloud/es-serverless/model/EnableAccessTokenRequest.h new file mode 100644 index 000000000..f030b434d --- /dev/null +++ b/es-serverless/include/alibabacloud/es-serverless/model/EnableAccessTokenRequest.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_ES_SERVERLESS_MODEL_ENABLEACCESSTOKENREQUEST_H_ +#define ALIBABACLOUD_ES_SERVERLESS_MODEL_ENABLEACCESSTOKENREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Es_serverless { +namespace Model { +class ALIBABACLOUD_ES_SERVERLESS_EXPORT EnableAccessTokenRequest : public RoaServiceRequest { +public: + EnableAccessTokenRequest(); + ~EnableAccessTokenRequest(); + std::string getTokenId() const; + void setTokenId(const std::string &tokenId); + +private: + std::string tokenId_; +}; +} // namespace Model +} // namespace Es_serverless +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ES_SERVERLESS_MODEL_ENABLEACCESSTOKENREQUEST_H_ diff --git a/es-serverless/include/alibabacloud/es-serverless/model/EnableAccessTokenResult.h b/es-serverless/include/alibabacloud/es-serverless/model/EnableAccessTokenResult.h new file mode 100644 index 000000000..69e045b5c --- /dev/null +++ b/es-serverless/include/alibabacloud/es-serverless/model/EnableAccessTokenResult.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_ES_SERVERLESS_MODEL_ENABLEACCESSTOKENRESULT_H_ +#define ALIBABACLOUD_ES_SERVERLESS_MODEL_ENABLEACCESSTOKENRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Es_serverless + { + namespace Model + { + class ALIBABACLOUD_ES_SERVERLESS_EXPORT EnableAccessTokenResult : public ServiceResult + { + public: + + + EnableAccessTokenResult(); + explicit EnableAccessTokenResult(const std::string &payload); + ~EnableAccessTokenResult(); + std::string getRequestId()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ES_SERVERLESS_MODEL_ENABLEACCESSTOKENRESULT_H_ \ No newline at end of file diff --git a/es-serverless/include/alibabacloud/es-serverless/model/GenerateAcccessTokenRequest.h b/es-serverless/include/alibabacloud/es-serverless/model/GenerateAcccessTokenRequest.h new file mode 100644 index 000000000..8720ce910 --- /dev/null +++ b/es-serverless/include/alibabacloud/es-serverless/model/GenerateAcccessTokenRequest.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_ES_SERVERLESS_MODEL_GENERATEACCCESSTOKENREQUEST_H_ +#define ALIBABACLOUD_ES_SERVERLESS_MODEL_GENERATEACCCESSTOKENREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Es_serverless { +namespace Model { +class ALIBABACLOUD_ES_SERVERLESS_EXPORT GenerateAcccessTokenRequest : public RoaServiceRequest { +public: + GenerateAcccessTokenRequest(); + ~GenerateAcccessTokenRequest(); + +private: +}; +} // namespace Model +} // namespace Es_serverless +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ES_SERVERLESS_MODEL_GENERATEACCCESSTOKENREQUEST_H_ diff --git a/es-serverless/include/alibabacloud/es-serverless/model/GenerateAcccessTokenResult.h b/es-serverless/include/alibabacloud/es-serverless/model/GenerateAcccessTokenResult.h new file mode 100644 index 000000000..0b0704224 --- /dev/null +++ b/es-serverless/include/alibabacloud/es-serverless/model/GenerateAcccessTokenResult.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_ES_SERVERLESS_MODEL_GENERATEACCCESSTOKENRESULT_H_ +#define ALIBABACLOUD_ES_SERVERLESS_MODEL_GENERATEACCCESSTOKENRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Es_serverless + { + namespace Model + { + class ALIBABACLOUD_ES_SERVERLESS_EXPORT GenerateAcccessTokenResult : public ServiceResult + { + public: + + + GenerateAcccessTokenResult(); + explicit GenerateAcccessTokenResult(const std::string &payload); + ~GenerateAcccessTokenResult(); + std::string getRequestId()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ES_SERVERLESS_MODEL_GENERATEACCCESSTOKENRESULT_H_ \ No newline at end of file diff --git a/es-serverless/include/alibabacloud/es-serverless/model/GetAppRequest.h b/es-serverless/include/alibabacloud/es-serverless/model/GetAppRequest.h new file mode 100644 index 000000000..d7ffafe67 --- /dev/null +++ b/es-serverless/include/alibabacloud/es-serverless/model/GetAppRequest.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_ES_SERVERLESS_MODEL_GETAPPREQUEST_H_ +#define ALIBABACLOUD_ES_SERVERLESS_MODEL_GETAPPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Es_serverless { +namespace Model { +class ALIBABACLOUD_ES_SERVERLESS_EXPORT GetAppRequest : public RoaServiceRequest { +public: + GetAppRequest(); + ~GetAppRequest(); + std::string getAppName() const; + void setAppName(const std::string &appName); + +private: + std::string appName_; +}; +} // namespace Model +} // namespace Es_serverless +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ES_SERVERLESS_MODEL_GETAPPREQUEST_H_ diff --git a/es-serverless/include/alibabacloud/es-serverless/model/GetAppResult.h b/es-serverless/include/alibabacloud/es-serverless/model/GetAppResult.h new file mode 100644 index 000000000..9870a09eb --- /dev/null +++ b/es-serverless/include/alibabacloud/es-serverless/model/GetAppResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ES_SERVERLESS_MODEL_GETAPPRESULT_H_ +#define ALIBABACLOUD_ES_SERVERLESS_MODEL_GETAPPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Es_serverless + { + namespace Model + { + class ALIBABACLOUD_ES_SERVERLESS_EXPORT GetAppResult : public ServiceResult + { + public: + struct Result + { + std::string status; + std::string description; + std::string ownerId; + std::string createTime; + std::string storageQuota; + std::string regionId; + std::string appName; + std::string flowQuota; + }; + + + GetAppResult(); + explicit GetAppResult(const std::string &payload); + ~GetAppResult(); + std::string getRequestId()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ES_SERVERLESS_MODEL_GETAPPRESULT_H_ \ No newline at end of file diff --git a/es-serverless/include/alibabacloud/es-serverless/model/GetDataStreamRequest.h b/es-serverless/include/alibabacloud/es-serverless/model/GetDataStreamRequest.h new file mode 100644 index 000000000..8e050dea6 --- /dev/null +++ b/es-serverless/include/alibabacloud/es-serverless/model/GetDataStreamRequest.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_ES_SERVERLESS_MODEL_GETDATASTREAMREQUEST_H_ +#define ALIBABACLOUD_ES_SERVERLESS_MODEL_GETDATASTREAMREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Es_serverless { +namespace Model { +class ALIBABACLOUD_ES_SERVERLESS_EXPORT GetDataStreamRequest : public RoaServiceRequest { +public: + GetDataStreamRequest(); + ~GetDataStreamRequest(); + std::string getAppName() const; + void setAppName(const std::string &appName); + std::string getDataStreamName() const; + void setDataStreamName(const std::string &dataStreamName); + +private: + std::string appName_; + std::string dataStreamName_; +}; +} // namespace Model +} // namespace Es_serverless +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ES_SERVERLESS_MODEL_GETDATASTREAMREQUEST_H_ diff --git a/es-serverless/include/alibabacloud/es-serverless/model/GetDataStreamResult.h b/es-serverless/include/alibabacloud/es-serverless/model/GetDataStreamResult.h new file mode 100644 index 000000000..b487e5080 --- /dev/null +++ b/es-serverless/include/alibabacloud/es-serverless/model/GetDataStreamResult.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_ES_SERVERLESS_MODEL_GETDATASTREAMRESULT_H_ +#define ALIBABACLOUD_ES_SERVERLESS_MODEL_GETDATASTREAMRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Es_serverless + { + namespace Model + { + class ALIBABACLOUD_ES_SERVERLESS_EXPORT GetDataStreamResult : public ServiceResult + { + public: + struct Result + { + struct _Template + { + struct MappingsItem + { + std::string type; + bool caseSensitive; + bool docValues; + bool index; + std::vector properties; + std::string key; + std::vector tokenizeOnChars; + }; + std::vector mappings; + }; + std::string type; + std::string timeStampKey; + _Template _template; + std::string deletePhase; + std::string dataStreamId; + std::string createTime; + std::string regionId; + std::string dataStreamName; + std::string appName; + }; + + + GetDataStreamResult(); + explicit GetDataStreamResult(const std::string &payload); + ~GetDataStreamResult(); + std::string getRequestId()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ES_SERVERLESS_MODEL_GETDATASTREAMRESULT_H_ \ No newline at end of file diff --git a/es-serverless/include/alibabacloud/es-serverless/model/GetRegionInfoRequest.h b/es-serverless/include/alibabacloud/es-serverless/model/GetRegionInfoRequest.h new file mode 100644 index 000000000..e837eda6d --- /dev/null +++ b/es-serverless/include/alibabacloud/es-serverless/model/GetRegionInfoRequest.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_ES_SERVERLESS_MODEL_GETREGIONINFOREQUEST_H_ +#define ALIBABACLOUD_ES_SERVERLESS_MODEL_GETREGIONINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Es_serverless { +namespace Model { +class ALIBABACLOUD_ES_SERVERLESS_EXPORT GetRegionInfoRequest : public RoaServiceRequest { +public: + GetRegionInfoRequest(); + ~GetRegionInfoRequest(); + +private: +}; +} // namespace Model +} // namespace Es_serverless +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ES_SERVERLESS_MODEL_GETREGIONINFOREQUEST_H_ diff --git a/es-serverless/include/alibabacloud/es-serverless/model/GetRegionInfoResult.h b/es-serverless/include/alibabacloud/es-serverless/model/GetRegionInfoResult.h new file mode 100644 index 000000000..534742516 --- /dev/null +++ b/es-serverless/include/alibabacloud/es-serverless/model/GetRegionInfoResult.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_ES_SERVERLESS_MODEL_GETREGIONINFORESULT_H_ +#define ALIBABACLOUD_ES_SERVERLESS_MODEL_GETREGIONINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Es_serverless + { + namespace Model + { + class ALIBABACLOUD_ES_SERVERLESS_EXPORT GetRegionInfoResult : public ServiceResult + { + public: + + + GetRegionInfoResult(); + explicit GetRegionInfoResult(const std::string &payload); + ~GetRegionInfoResult(); + std::string getRequestId()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ES_SERVERLESS_MODEL_GETREGIONINFORESULT_H_ \ No newline at end of file diff --git a/es-serverless/include/alibabacloud/es-serverless/model/ListAccessTokensRequest.h b/es-serverless/include/alibabacloud/es-serverless/model/ListAccessTokensRequest.h new file mode 100644 index 000000000..cdba8fcce --- /dev/null +++ b/es-serverless/include/alibabacloud/es-serverless/model/ListAccessTokensRequest.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_ES_SERVERLESS_MODEL_LISTACCESSTOKENSREQUEST_H_ +#define ALIBABACLOUD_ES_SERVERLESS_MODEL_LISTACCESSTOKENSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Es_serverless { +namespace Model { +class ALIBABACLOUD_ES_SERVERLESS_EXPORT ListAccessTokensRequest : public RoaServiceRequest { +public: + ListAccessTokensRequest(); + ~ListAccessTokensRequest(); + std::string getTokenId() const; + void setTokenId(const std::string &tokenId); + +private: + std::string tokenId_; +}; +} // namespace Model +} // namespace Es_serverless +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ES_SERVERLESS_MODEL_LISTACCESSTOKENSREQUEST_H_ diff --git a/es-serverless/include/alibabacloud/es-serverless/model/ListAccessTokensResult.h b/es-serverless/include/alibabacloud/es-serverless/model/ListAccessTokensResult.h new file mode 100644 index 000000000..be2db1db5 --- /dev/null +++ b/es-serverless/include/alibabacloud/es-serverless/model/ListAccessTokensResult.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_ES_SERVERLESS_MODEL_LISTACCESSTOKENSRESULT_H_ +#define ALIBABACLOUD_ES_SERVERLESS_MODEL_LISTACCESSTOKENSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Es_serverless + { + namespace Model + { + class ALIBABACLOUD_ES_SERVERLESS_EXPORT ListAccessTokensResult : public ServiceResult + { + public: + + + ListAccessTokensResult(); + explicit ListAccessTokensResult(const std::string &payload); + ~ListAccessTokensResult(); + std::string getRequestId()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ES_SERVERLESS_MODEL_LISTACCESSTOKENSRESULT_H_ \ No newline at end of file diff --git a/es-serverless/include/alibabacloud/es-serverless/model/ListAppsRequest.h b/es-serverless/include/alibabacloud/es-serverless/model/ListAppsRequest.h new file mode 100644 index 000000000..0f8f28364 --- /dev/null +++ b/es-serverless/include/alibabacloud/es-serverless/model/ListAppsRequest.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_ES_SERVERLESS_MODEL_LISTAPPSREQUEST_H_ +#define ALIBABACLOUD_ES_SERVERLESS_MODEL_LISTAPPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Es_serverless { +namespace Model { +class ALIBABACLOUD_ES_SERVERLESS_EXPORT ListAppsRequest : public RoaServiceRequest { +public: + ListAppsRequest(); + ~ListAppsRequest(); + std::string getAppName() const; + void setAppName(const std::string &appName); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getDescription() const; + void setDescription(const std::string &description); + int getPageNumber() const; + void setPageNumber(int pageNumber); + +private: + std::string appName_; + int pageSize_; + std::string description_; + int pageNumber_; +}; +} // namespace Model +} // namespace Es_serverless +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ES_SERVERLESS_MODEL_LISTAPPSREQUEST_H_ diff --git a/es-serverless/include/alibabacloud/es-serverless/model/ListAppsResult.h b/es-serverless/include/alibabacloud/es-serverless/model/ListAppsResult.h new file mode 100644 index 000000000..47fe57e1d --- /dev/null +++ b/es-serverless/include/alibabacloud/es-serverless/model/ListAppsResult.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_ES_SERVERLESS_MODEL_LISTAPPSRESULT_H_ +#define ALIBABACLOUD_ES_SERVERLESS_MODEL_LISTAPPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Es_serverless + { + namespace Model + { + class ALIBABACLOUD_ES_SERVERLESS_EXPORT ListAppsResult : public ServiceResult + { + public: + struct App + { + std::string status; + std::string description; + std::string ownerId; + std::string createTime; + std::string storageQuota; + std::string regionId; + std::string appName; + std::string flowQuota; + }; + + + ListAppsResult(); + explicit ListAppsResult(const std::string &payload); + ~ListAppsResult(); + std::vector getresult()const; + int getTotalCount()const; + std::string getRequestId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + int totalCount_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ES_SERVERLESS_MODEL_LISTAPPSRESULT_H_ \ No newline at end of file diff --git a/es-serverless/include/alibabacloud/es-serverless/model/ListDataStreamsRequest.h b/es-serverless/include/alibabacloud/es-serverless/model/ListDataStreamsRequest.h new file mode 100644 index 000000000..c2593215c --- /dev/null +++ b/es-serverless/include/alibabacloud/es-serverless/model/ListDataStreamsRequest.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_ES_SERVERLESS_MODEL_LISTDATASTREAMSREQUEST_H_ +#define ALIBABACLOUD_ES_SERVERLESS_MODEL_LISTDATASTREAMSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Es_serverless { +namespace Model { +class ALIBABACLOUD_ES_SERVERLESS_EXPORT ListDataStreamsRequest : public RoaServiceRequest { +public: + ListDataStreamsRequest(); + ~ListDataStreamsRequest(); + std::string getAppName() const; + void setAppName(const std::string &appName); + std::string getDataStreamName() const; + void setDataStreamName(const std::string &dataStreamName); + int getPageSize() const; + void setPageSize(int pageSize); + int getPageNumber() const; + void setPageNumber(int pageNumber); + +private: + std::string appName_; + std::string dataStreamName_; + int pageSize_; + int pageNumber_; +}; +} // namespace Model +} // namespace Es_serverless +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ES_SERVERLESS_MODEL_LISTDATASTREAMSREQUEST_H_ diff --git a/es-serverless/include/alibabacloud/es-serverless/model/ListDataStreamsResult.h b/es-serverless/include/alibabacloud/es-serverless/model/ListDataStreamsResult.h new file mode 100644 index 000000000..3041aa96d --- /dev/null +++ b/es-serverless/include/alibabacloud/es-serverless/model/ListDataStreamsResult.h @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ES_SERVERLESS_MODEL_LISTDATASTREAMSRESULT_H_ +#define ALIBABACLOUD_ES_SERVERLESS_MODEL_LISTDATASTREAMSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Es_serverless + { + namespace Model + { + class ALIBABACLOUD_ES_SERVERLESS_EXPORT ListDataStreamsResult : public ServiceResult + { + public: + struct DataStream + { + struct _Template + { + struct MappingsItem + { + std::string type; + bool caseSensitive; + bool docValues; + bool index; + std::vector properties; + std::string key; + std::vector tokenizeOnChars; + }; + std::vector mappings; + }; + std::string type; + std::string timeStampKey; + _Template _template; + std::string deletePhase; + std::string dataStreamId; + std::string createTime; + std::string regionId; + std::string dataStreamName; + std::string appName; + }; + + + ListDataStreamsResult(); + explicit ListDataStreamsResult(const std::string &payload); + ~ListDataStreamsResult(); + std::vector getresult()const; + int getTotalCount()const; + std::string getRequestId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + int totalCount_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ES_SERVERLESS_MODEL_LISTDATASTREAMSRESULT_H_ \ No newline at end of file diff --git a/es-serverless/include/alibabacloud/es-serverless/model/UpdateAppRequest.h b/es-serverless/include/alibabacloud/es-serverless/model/UpdateAppRequest.h new file mode 100644 index 000000000..fdceeb4b0 --- /dev/null +++ b/es-serverless/include/alibabacloud/es-serverless/model/UpdateAppRequest.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_ES_SERVERLESS_MODEL_UPDATEAPPREQUEST_H_ +#define ALIBABACLOUD_ES_SERVERLESS_MODEL_UPDATEAPPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Es_serverless { +namespace Model { +class ALIBABACLOUD_ES_SERVERLESS_EXPORT UpdateAppRequest : public RoaServiceRequest { +public: + UpdateAppRequest(); + ~UpdateAppRequest(); + std::string getAppName() const; + void setAppName(const std::string &appName); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string appName_; + std::string body_; +}; +} // namespace Model +} // namespace Es_serverless +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ES_SERVERLESS_MODEL_UPDATEAPPREQUEST_H_ diff --git a/es-serverless/include/alibabacloud/es-serverless/model/UpdateAppResult.h b/es-serverless/include/alibabacloud/es-serverless/model/UpdateAppResult.h new file mode 100644 index 000000000..99baea2ce --- /dev/null +++ b/es-serverless/include/alibabacloud/es-serverless/model/UpdateAppResult.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_ES_SERVERLESS_MODEL_UPDATEAPPRESULT_H_ +#define ALIBABACLOUD_ES_SERVERLESS_MODEL_UPDATEAPPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Es_serverless + { + namespace Model + { + class ALIBABACLOUD_ES_SERVERLESS_EXPORT UpdateAppResult : public ServiceResult + { + public: + + + UpdateAppResult(); + explicit UpdateAppResult(const std::string &payload); + ~UpdateAppResult(); + std::string getRequestId()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ES_SERVERLESS_MODEL_UPDATEAPPRESULT_H_ \ No newline at end of file diff --git a/es-serverless/include/alibabacloud/es-serverless/model/UpdateDataStreamRequest.h b/es-serverless/include/alibabacloud/es-serverless/model/UpdateDataStreamRequest.h new file mode 100644 index 000000000..32305d60d --- /dev/null +++ b/es-serverless/include/alibabacloud/es-serverless/model/UpdateDataStreamRequest.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_ES_SERVERLESS_MODEL_UPDATEDATASTREAMREQUEST_H_ +#define ALIBABACLOUD_ES_SERVERLESS_MODEL_UPDATEDATASTREAMREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Es_serverless { +namespace Model { +class ALIBABACLOUD_ES_SERVERLESS_EXPORT UpdateDataStreamRequest : public RoaServiceRequest { +public: + UpdateDataStreamRequest(); + ~UpdateDataStreamRequest(); + std::string getAppName() const; + void setAppName(const std::string &appName); + std::string getDataStreamName() const; + void setDataStreamName(const std::string &dataStreamName); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string appName_; + std::string dataStreamName_; + std::string body_; +}; +} // namespace Model +} // namespace Es_serverless +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ES_SERVERLESS_MODEL_UPDATEDATASTREAMREQUEST_H_ diff --git a/es-serverless/include/alibabacloud/es-serverless/model/UpdateDataStreamResult.h b/es-serverless/include/alibabacloud/es-serverless/model/UpdateDataStreamResult.h new file mode 100644 index 000000000..3ac5282e0 --- /dev/null +++ b/es-serverless/include/alibabacloud/es-serverless/model/UpdateDataStreamResult.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_ES_SERVERLESS_MODEL_UPDATEDATASTREAMRESULT_H_ +#define ALIBABACLOUD_ES_SERVERLESS_MODEL_UPDATEDATASTREAMRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Es_serverless + { + namespace Model + { + class ALIBABACLOUD_ES_SERVERLESS_EXPORT UpdateDataStreamResult : public ServiceResult + { + public: + struct Result + { + std::string appName; + }; + + + UpdateDataStreamResult(); + explicit UpdateDataStreamResult(const std::string &payload); + ~UpdateDataStreamResult(); + std::string getRequestId()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ES_SERVERLESS_MODEL_UPDATEDATASTREAMRESULT_H_ \ No newline at end of file diff --git a/es-serverless/src/Es-serverlessClient.cc b/es-serverless/src/Es-serverlessClient.cc new file mode 100644 index 000000000..ba5af275e --- /dev/null +++ b/es-serverless/src/Es-serverlessClient.cc @@ -0,0 +1,665 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Es_serverless; +using namespace AlibabaCloud::Es_serverless::Model; + +namespace +{ + const std::string SERVICE_NAME = "es-serverless"; +} + +Es_serverlessClient::Es_serverlessClient(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, "elkxops"); +} + +Es_serverlessClient::Es_serverlessClient(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, "elkxops"); +} + +Es_serverlessClient::Es_serverlessClient(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, "elkxops"); +} + +Es_serverlessClient::~Es_serverlessClient() +{} + +Es_serverlessClient::CreateAppOutcome Es_serverlessClient::createApp(const CreateAppRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateAppOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateAppOutcome(CreateAppResult(outcome.result())); + else + return CreateAppOutcome(outcome.error()); +} + +void Es_serverlessClient::createAppAsync(const CreateAppRequest& request, const CreateAppAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createApp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Es_serverlessClient::CreateAppOutcomeCallable Es_serverlessClient::createAppCallable(const CreateAppRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createApp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Es_serverlessClient::CreateDataStreamOutcome Es_serverlessClient::createDataStream(const CreateDataStreamRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDataStreamOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDataStreamOutcome(CreateDataStreamResult(outcome.result())); + else + return CreateDataStreamOutcome(outcome.error()); +} + +void Es_serverlessClient::createDataStreamAsync(const CreateDataStreamRequest& request, const CreateDataStreamAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDataStream(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Es_serverlessClient::CreateDataStreamOutcomeCallable Es_serverlessClient::createDataStreamCallable(const CreateDataStreamRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDataStream(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Es_serverlessClient::DeleteAccessTokenOutcome Es_serverlessClient::deleteAccessToken(const DeleteAccessTokenRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteAccessTokenOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteAccessTokenOutcome(DeleteAccessTokenResult(outcome.result())); + else + return DeleteAccessTokenOutcome(outcome.error()); +} + +void Es_serverlessClient::deleteAccessTokenAsync(const DeleteAccessTokenRequest& request, const DeleteAccessTokenAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteAccessToken(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Es_serverlessClient::DeleteAccessTokenOutcomeCallable Es_serverlessClient::deleteAccessTokenCallable(const DeleteAccessTokenRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteAccessToken(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Es_serverlessClient::DeleteAppOutcome Es_serverlessClient::deleteApp(const DeleteAppRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteAppOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteAppOutcome(DeleteAppResult(outcome.result())); + else + return DeleteAppOutcome(outcome.error()); +} + +void Es_serverlessClient::deleteAppAsync(const DeleteAppRequest& request, const DeleteAppAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteApp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Es_serverlessClient::DeleteAppOutcomeCallable Es_serverlessClient::deleteAppCallable(const DeleteAppRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteApp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Es_serverlessClient::DeleteDataStreamOutcome Es_serverlessClient::deleteDataStream(const DeleteDataStreamRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDataStreamOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDataStreamOutcome(DeleteDataStreamResult(outcome.result())); + else + return DeleteDataStreamOutcome(outcome.error()); +} + +void Es_serverlessClient::deleteDataStreamAsync(const DeleteDataStreamRequest& request, const DeleteDataStreamAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDataStream(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Es_serverlessClient::DeleteDataStreamOutcomeCallable Es_serverlessClient::deleteDataStreamCallable(const DeleteDataStreamRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDataStream(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Es_serverlessClient::DescibeRegionsOutcome Es_serverlessClient::descibeRegions(const DescibeRegionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescibeRegionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescibeRegionsOutcome(DescibeRegionsResult(outcome.result())); + else + return DescibeRegionsOutcome(outcome.error()); +} + +void Es_serverlessClient::descibeRegionsAsync(const DescibeRegionsRequest& request, const DescibeRegionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, descibeRegions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Es_serverlessClient::DescibeRegionsOutcomeCallable Es_serverlessClient::descibeRegionsCallable(const DescibeRegionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->descibeRegions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Es_serverlessClient::DisableAccessTokenOutcome Es_serverlessClient::disableAccessToken(const DisableAccessTokenRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DisableAccessTokenOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DisableAccessTokenOutcome(DisableAccessTokenResult(outcome.result())); + else + return DisableAccessTokenOutcome(outcome.error()); +} + +void Es_serverlessClient::disableAccessTokenAsync(const DisableAccessTokenRequest& request, const DisableAccessTokenAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, disableAccessToken(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Es_serverlessClient::DisableAccessTokenOutcomeCallable Es_serverlessClient::disableAccessTokenCallable(const DisableAccessTokenRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->disableAccessToken(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Es_serverlessClient::EnableAccessTokenOutcome Es_serverlessClient::enableAccessToken(const EnableAccessTokenRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return EnableAccessTokenOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return EnableAccessTokenOutcome(EnableAccessTokenResult(outcome.result())); + else + return EnableAccessTokenOutcome(outcome.error()); +} + +void Es_serverlessClient::enableAccessTokenAsync(const EnableAccessTokenRequest& request, const EnableAccessTokenAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, enableAccessToken(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Es_serverlessClient::EnableAccessTokenOutcomeCallable Es_serverlessClient::enableAccessTokenCallable(const EnableAccessTokenRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->enableAccessToken(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Es_serverlessClient::GenerateAcccessTokenOutcome Es_serverlessClient::generateAcccessToken(const GenerateAcccessTokenRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GenerateAcccessTokenOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GenerateAcccessTokenOutcome(GenerateAcccessTokenResult(outcome.result())); + else + return GenerateAcccessTokenOutcome(outcome.error()); +} + +void Es_serverlessClient::generateAcccessTokenAsync(const GenerateAcccessTokenRequest& request, const GenerateAcccessTokenAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, generateAcccessToken(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Es_serverlessClient::GenerateAcccessTokenOutcomeCallable Es_serverlessClient::generateAcccessTokenCallable(const GenerateAcccessTokenRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->generateAcccessToken(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Es_serverlessClient::GetAppOutcome Es_serverlessClient::getApp(const GetAppRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAppOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAppOutcome(GetAppResult(outcome.result())); + else + return GetAppOutcome(outcome.error()); +} + +void Es_serverlessClient::getAppAsync(const GetAppRequest& request, const GetAppAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getApp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Es_serverlessClient::GetAppOutcomeCallable Es_serverlessClient::getAppCallable(const GetAppRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getApp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Es_serverlessClient::GetDataStreamOutcome Es_serverlessClient::getDataStream(const GetDataStreamRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetDataStreamOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetDataStreamOutcome(GetDataStreamResult(outcome.result())); + else + return GetDataStreamOutcome(outcome.error()); +} + +void Es_serverlessClient::getDataStreamAsync(const GetDataStreamRequest& request, const GetDataStreamAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getDataStream(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Es_serverlessClient::GetDataStreamOutcomeCallable Es_serverlessClient::getDataStreamCallable(const GetDataStreamRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getDataStream(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Es_serverlessClient::GetRegionInfoOutcome Es_serverlessClient::getRegionInfo(const GetRegionInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetRegionInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetRegionInfoOutcome(GetRegionInfoResult(outcome.result())); + else + return GetRegionInfoOutcome(outcome.error()); +} + +void Es_serverlessClient::getRegionInfoAsync(const GetRegionInfoRequest& request, const GetRegionInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getRegionInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Es_serverlessClient::GetRegionInfoOutcomeCallable Es_serverlessClient::getRegionInfoCallable(const GetRegionInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getRegionInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Es_serverlessClient::ListAccessTokensOutcome Es_serverlessClient::listAccessTokens(const ListAccessTokensRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAccessTokensOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAccessTokensOutcome(ListAccessTokensResult(outcome.result())); + else + return ListAccessTokensOutcome(outcome.error()); +} + +void Es_serverlessClient::listAccessTokensAsync(const ListAccessTokensRequest& request, const ListAccessTokensAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAccessTokens(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Es_serverlessClient::ListAccessTokensOutcomeCallable Es_serverlessClient::listAccessTokensCallable(const ListAccessTokensRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAccessTokens(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Es_serverlessClient::ListAppsOutcome Es_serverlessClient::listApps(const ListAppsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAppsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAppsOutcome(ListAppsResult(outcome.result())); + else + return ListAppsOutcome(outcome.error()); +} + +void Es_serverlessClient::listAppsAsync(const ListAppsRequest& request, const ListAppsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listApps(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Es_serverlessClient::ListAppsOutcomeCallable Es_serverlessClient::listAppsCallable(const ListAppsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listApps(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Es_serverlessClient::ListDataStreamsOutcome Es_serverlessClient::listDataStreams(const ListDataStreamsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListDataStreamsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListDataStreamsOutcome(ListDataStreamsResult(outcome.result())); + else + return ListDataStreamsOutcome(outcome.error()); +} + +void Es_serverlessClient::listDataStreamsAsync(const ListDataStreamsRequest& request, const ListDataStreamsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listDataStreams(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Es_serverlessClient::ListDataStreamsOutcomeCallable Es_serverlessClient::listDataStreamsCallable(const ListDataStreamsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listDataStreams(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Es_serverlessClient::UpdateAppOutcome Es_serverlessClient::updateApp(const UpdateAppRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateAppOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateAppOutcome(UpdateAppResult(outcome.result())); + else + return UpdateAppOutcome(outcome.error()); +} + +void Es_serverlessClient::updateAppAsync(const UpdateAppRequest& request, const UpdateAppAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateApp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Es_serverlessClient::UpdateAppOutcomeCallable Es_serverlessClient::updateAppCallable(const UpdateAppRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateApp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Es_serverlessClient::UpdateDataStreamOutcome Es_serverlessClient::updateDataStream(const UpdateDataStreamRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateDataStreamOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateDataStreamOutcome(UpdateDataStreamResult(outcome.result())); + else + return UpdateDataStreamOutcome(outcome.error()); +} + +void Es_serverlessClient::updateDataStreamAsync(const UpdateDataStreamRequest& request, const UpdateDataStreamAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateDataStream(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Es_serverlessClient::UpdateDataStreamOutcomeCallable Es_serverlessClient::updateDataStreamCallable(const UpdateDataStreamRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateDataStream(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/es-serverless/src/model/CreateAppRequest.cc b/es-serverless/src/model/CreateAppRequest.cc new file mode 100644 index 000000000..65929aa5c --- /dev/null +++ b/es-serverless/src/model/CreateAppRequest.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::Es_serverless::Model::CreateAppRequest; + +CreateAppRequest::CreateAppRequest() + : RoaServiceRequest("es-serverless", "2022-08-22") { + setResourcePath("/openapi/xops/instances"}; + setMethod(HttpRequest::Method::Post); +} + +CreateAppRequest::~CreateAppRequest() {} + +std::string CreateAppRequest::getBody() const { + return body_; +} + +void CreateAppRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("Body"), body); +} + diff --git a/es-serverless/src/model/CreateAppResult.cc b/es-serverless/src/model/CreateAppResult.cc new file mode 100644 index 000000000..38f6592e6 --- /dev/null +++ b/es-serverless/src/model/CreateAppResult.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::Es_serverless; +using namespace AlibabaCloud::Es_serverless::Model; + +CreateAppResult::CreateAppResult() : + ServiceResult() +{} + +CreateAppResult::CreateAppResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateAppResult::~CreateAppResult() +{} + +void CreateAppResult::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 CreateAppResult::getRequestId()const +{ + return requestId_; +} + diff --git a/es-serverless/src/model/CreateDataStreamRequest.cc b/es-serverless/src/model/CreateDataStreamRequest.cc new file mode 100644 index 000000000..43f594ff2 --- /dev/null +++ b/es-serverless/src/model/CreateDataStreamRequest.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::Es_serverless::Model::CreateDataStreamRequest; + +CreateDataStreamRequest::CreateDataStreamRequest() + : RoaServiceRequest("es-serverless", "2022-08-22") { + setResourcePath("/openapi/xops/instances/[appName]/data-streams"}; + setMethod(HttpRequest::Method::Post); +} + +CreateDataStreamRequest::~CreateDataStreamRequest() {} + +std::string CreateDataStreamRequest::getAppName() const { + return appName_; +} + +void CreateDataStreamRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("appName"), appName); +} + +std::string CreateDataStreamRequest::getBody() const { + return body_; +} + +void CreateDataStreamRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("Body"), body); +} + diff --git a/es-serverless/src/model/CreateDataStreamResult.cc b/es-serverless/src/model/CreateDataStreamResult.cc new file mode 100644 index 000000000..12acee67d --- /dev/null +++ b/es-serverless/src/model/CreateDataStreamResult.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::Es_serverless; +using namespace AlibabaCloud::Es_serverless::Model; + +CreateDataStreamResult::CreateDataStreamResult() : + ServiceResult() +{} + +CreateDataStreamResult::CreateDataStreamResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDataStreamResult::~CreateDataStreamResult() +{} + +void CreateDataStreamResult::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 CreateDataStreamResult::getRequestId()const +{ + return requestId_; +} + diff --git a/es-serverless/src/model/DeleteAccessTokenRequest.cc b/es-serverless/src/model/DeleteAccessTokenRequest.cc new file mode 100644 index 000000000..4a8560fc4 --- /dev/null +++ b/es-serverless/src/model/DeleteAccessTokenRequest.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::Es_serverless::Model::DeleteAccessTokenRequest; + +DeleteAccessTokenRequest::DeleteAccessTokenRequest() + : RoaServiceRequest("es-serverless", "2022-08-22") { + setResourcePath("/openapi/xops/tokens/[tokenId]"}; + setMethod(HttpRequest::Method::Delete); +} + +DeleteAccessTokenRequest::~DeleteAccessTokenRequest() {} + +std::string DeleteAccessTokenRequest::getTokenId() const { + return tokenId_; +} + +void DeleteAccessTokenRequest::setTokenId(const std::string &tokenId) { + tokenId_ = tokenId; + setParameter(std::string("tokenId"), tokenId); +} + diff --git a/es-serverless/src/model/DeleteAccessTokenResult.cc b/es-serverless/src/model/DeleteAccessTokenResult.cc new file mode 100644 index 000000000..145197836 --- /dev/null +++ b/es-serverless/src/model/DeleteAccessTokenResult.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::Es_serverless; +using namespace AlibabaCloud::Es_serverless::Model; + +DeleteAccessTokenResult::DeleteAccessTokenResult() : + ServiceResult() +{} + +DeleteAccessTokenResult::DeleteAccessTokenResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteAccessTokenResult::~DeleteAccessTokenResult() +{} + +void DeleteAccessTokenResult::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 DeleteAccessTokenResult::getRequestId()const +{ + return requestId_; +} + diff --git a/es-serverless/src/model/DeleteAppRequest.cc b/es-serverless/src/model/DeleteAppRequest.cc new file mode 100644 index 000000000..baf2a81ef --- /dev/null +++ b/es-serverless/src/model/DeleteAppRequest.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::Es_serverless::Model::DeleteAppRequest; + +DeleteAppRequest::DeleteAppRequest() + : RoaServiceRequest("es-serverless", "2022-08-22") { + setResourcePath("/openapi/xops/instances/[appName]"}; + setMethod(HttpRequest::Method::Delete); +} + +DeleteAppRequest::~DeleteAppRequest() {} + +std::string DeleteAppRequest::getAppName() const { + return appName_; +} + +void DeleteAppRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("appName"), appName); +} + diff --git a/es-serverless/src/model/DeleteAppResult.cc b/es-serverless/src/model/DeleteAppResult.cc new file mode 100644 index 000000000..3fc908efc --- /dev/null +++ b/es-serverless/src/model/DeleteAppResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Es_serverless; +using namespace AlibabaCloud::Es_serverless::Model; + +DeleteAppResult::DeleteAppResult() : + ServiceResult() +{} + +DeleteAppResult::DeleteAppResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteAppResult::~DeleteAppResult() +{} + +void DeleteAppResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["instanceId"].isNull()) + result_.instanceId = resultNode["instanceId"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string DeleteAppResult::getRequestId()const +{ + return requestId_; +} + +DeleteAppResult::Result DeleteAppResult::getResult()const +{ + return result_; +} + diff --git a/es-serverless/src/model/DeleteDataStreamRequest.cc b/es-serverless/src/model/DeleteDataStreamRequest.cc new file mode 100644 index 000000000..2b8c89249 --- /dev/null +++ b/es-serverless/src/model/DeleteDataStreamRequest.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::Es_serverless::Model::DeleteDataStreamRequest; + +DeleteDataStreamRequest::DeleteDataStreamRequest() + : RoaServiceRequest("es-serverless", "2022-08-22") { + setResourcePath("/openapi/xops/instances/[appName]/data-streams/[dataStreamName]"}; + setMethod(HttpRequest::Method::Delete); +} + +DeleteDataStreamRequest::~DeleteDataStreamRequest() {} + +std::string DeleteDataStreamRequest::getAppName() const { + return appName_; +} + +void DeleteDataStreamRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("appName"), appName); +} + +std::string DeleteDataStreamRequest::getDataStreamName() const { + return dataStreamName_; +} + +void DeleteDataStreamRequest::setDataStreamName(const std::string &dataStreamName) { + dataStreamName_ = dataStreamName; + setParameter(std::string("dataStreamName"), dataStreamName); +} + diff --git a/es-serverless/src/model/DeleteDataStreamResult.cc b/es-serverless/src/model/DeleteDataStreamResult.cc new file mode 100644 index 000000000..7c54ecbf1 --- /dev/null +++ b/es-serverless/src/model/DeleteDataStreamResult.cc @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Es_serverless; +using namespace AlibabaCloud::Es_serverless::Model; + +DeleteDataStreamResult::DeleteDataStreamResult() : + ServiceResult() +{} + +DeleteDataStreamResult::DeleteDataStreamResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteDataStreamResult::~DeleteDataStreamResult() +{} + +void DeleteDataStreamResult::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["result"].isNull()) + result_ = value["result"].asString() == "true"; + +} + +std::string DeleteDataStreamResult::getRequestId()const +{ + return requestId_; +} + +bool DeleteDataStreamResult::getResult()const +{ + return result_; +} + diff --git a/es-serverless/src/model/DescibeRegionsRequest.cc b/es-serverless/src/model/DescibeRegionsRequest.cc new file mode 100644 index 000000000..3468fee01 --- /dev/null +++ b/es-serverless/src/model/DescibeRegionsRequest.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::Es_serverless::Model::DescibeRegionsRequest; + +DescibeRegionsRequest::DescibeRegionsRequest() + : RoaServiceRequest("es-serverless", "2022-08-22") { + setResourcePath("/openapi/xops/regions"}; + setMethod(HttpRequest::Method::Get); +} + +DescibeRegionsRequest::~DescibeRegionsRequest() {} + diff --git a/es-serverless/src/model/DescibeRegionsResult.cc b/es-serverless/src/model/DescibeRegionsResult.cc new file mode 100644 index 000000000..9ba9745be --- /dev/null +++ b/es-serverless/src/model/DescibeRegionsResult.cc @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Es_serverless; +using namespace AlibabaCloud::Es_serverless::Model; + +DescibeRegionsResult::DescibeRegionsResult() : + ServiceResult() +{} + +DescibeRegionsResult::DescibeRegionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescibeRegionsResult::~DescibeRegionsResult() +{} + +void DescibeRegionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresultNode = value["result"]["RegionInfo"]; + for (auto valueresultRegionInfo : allresultNode) + { + RegionInfo resultObject; + if(!valueresultRegionInfo["regionId"].isNull()) + resultObject.regionId = valueresultRegionInfo["regionId"].asString(); + if(!valueresultRegionInfo["localName"].isNull()) + resultObject.localName = valueresultRegionInfo["localName"].asString(); + if(!valueresultRegionInfo["endpoint"].isNull()) + resultObject.endpoint = valueresultRegionInfo["endpoint"].asString(); + result_.push_back(resultObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::vector DescibeRegionsResult::getresult()const +{ + return result_; +} + +std::string DescibeRegionsResult::getRequestId()const +{ + return requestId_; +} + diff --git a/es-serverless/src/model/DisableAccessTokenRequest.cc b/es-serverless/src/model/DisableAccessTokenRequest.cc new file mode 100644 index 000000000..35628978e --- /dev/null +++ b/es-serverless/src/model/DisableAccessTokenRequest.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::Es_serverless::Model::DisableAccessTokenRequest; + +DisableAccessTokenRequest::DisableAccessTokenRequest() + : RoaServiceRequest("es-serverless", "2022-08-22") { + setResourcePath("/openapi/xops/tokens/[tokenId]/actions/disable"}; + setMethod(HttpRequest::Method::Post); +} + +DisableAccessTokenRequest::~DisableAccessTokenRequest() {} + +std::string DisableAccessTokenRequest::getTokenId() const { + return tokenId_; +} + +void DisableAccessTokenRequest::setTokenId(const std::string &tokenId) { + tokenId_ = tokenId; + setParameter(std::string("tokenId"), tokenId); +} + diff --git a/es-serverless/src/model/DisableAccessTokenResult.cc b/es-serverless/src/model/DisableAccessTokenResult.cc new file mode 100644 index 000000000..682596d8a --- /dev/null +++ b/es-serverless/src/model/DisableAccessTokenResult.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::Es_serverless; +using namespace AlibabaCloud::Es_serverless::Model; + +DisableAccessTokenResult::DisableAccessTokenResult() : + ServiceResult() +{} + +DisableAccessTokenResult::DisableAccessTokenResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DisableAccessTokenResult::~DisableAccessTokenResult() +{} + +void DisableAccessTokenResult::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 DisableAccessTokenResult::getRequestId()const +{ + return requestId_; +} + diff --git a/es-serverless/src/model/EnableAccessTokenRequest.cc b/es-serverless/src/model/EnableAccessTokenRequest.cc new file mode 100644 index 000000000..f0b7501fc --- /dev/null +++ b/es-serverless/src/model/EnableAccessTokenRequest.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::Es_serverless::Model::EnableAccessTokenRequest; + +EnableAccessTokenRequest::EnableAccessTokenRequest() + : RoaServiceRequest("es-serverless", "2022-08-22") { + setResourcePath("/openapi/xops/tokens/[tokenId]/actions/enable"}; + setMethod(HttpRequest::Method::Post); +} + +EnableAccessTokenRequest::~EnableAccessTokenRequest() {} + +std::string EnableAccessTokenRequest::getTokenId() const { + return tokenId_; +} + +void EnableAccessTokenRequest::setTokenId(const std::string &tokenId) { + tokenId_ = tokenId; + setParameter(std::string("tokenId"), tokenId); +} + diff --git a/es-serverless/src/model/EnableAccessTokenResult.cc b/es-serverless/src/model/EnableAccessTokenResult.cc new file mode 100644 index 000000000..370f6ade5 --- /dev/null +++ b/es-serverless/src/model/EnableAccessTokenResult.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::Es_serverless; +using namespace AlibabaCloud::Es_serverless::Model; + +EnableAccessTokenResult::EnableAccessTokenResult() : + ServiceResult() +{} + +EnableAccessTokenResult::EnableAccessTokenResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +EnableAccessTokenResult::~EnableAccessTokenResult() +{} + +void EnableAccessTokenResult::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 EnableAccessTokenResult::getRequestId()const +{ + return requestId_; +} + diff --git a/es-serverless/src/model/GenerateAcccessTokenRequest.cc b/es-serverless/src/model/GenerateAcccessTokenRequest.cc new file mode 100644 index 000000000..44b9299a4 --- /dev/null +++ b/es-serverless/src/model/GenerateAcccessTokenRequest.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::Es_serverless::Model::GenerateAcccessTokenRequest; + +GenerateAcccessTokenRequest::GenerateAcccessTokenRequest() + : RoaServiceRequest("es-serverless", "2022-08-22") { + setResourcePath("/openapi/xops/tokens"}; + setMethod(HttpRequest::Method::Post); +} + +GenerateAcccessTokenRequest::~GenerateAcccessTokenRequest() {} + diff --git a/es-serverless/src/model/GenerateAcccessTokenResult.cc b/es-serverless/src/model/GenerateAcccessTokenResult.cc new file mode 100644 index 000000000..f04d7e859 --- /dev/null +++ b/es-serverless/src/model/GenerateAcccessTokenResult.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::Es_serverless; +using namespace AlibabaCloud::Es_serverless::Model; + +GenerateAcccessTokenResult::GenerateAcccessTokenResult() : + ServiceResult() +{} + +GenerateAcccessTokenResult::GenerateAcccessTokenResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GenerateAcccessTokenResult::~GenerateAcccessTokenResult() +{} + +void GenerateAcccessTokenResult::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 GenerateAcccessTokenResult::getRequestId()const +{ + return requestId_; +} + diff --git a/es-serverless/src/model/GetAppRequest.cc b/es-serverless/src/model/GetAppRequest.cc new file mode 100644 index 000000000..6b47ba169 --- /dev/null +++ b/es-serverless/src/model/GetAppRequest.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::Es_serverless::Model::GetAppRequest; + +GetAppRequest::GetAppRequest() + : RoaServiceRequest("es-serverless", "2022-08-22") { + setResourcePath("/openapi/xops/instances/[appName]"}; + setMethod(HttpRequest::Method::Get); +} + +GetAppRequest::~GetAppRequest() {} + +std::string GetAppRequest::getAppName() const { + return appName_; +} + +void GetAppRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("appName"), appName); +} + diff --git a/es-serverless/src/model/GetAppResult.cc b/es-serverless/src/model/GetAppResult.cc new file mode 100644 index 000000000..eec94226f --- /dev/null +++ b/es-serverless/src/model/GetAppResult.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Es_serverless; +using namespace AlibabaCloud::Es_serverless::Model; + +GetAppResult::GetAppResult() : + ServiceResult() +{} + +GetAppResult::GetAppResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAppResult::~GetAppResult() +{} + +void GetAppResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["appName"].isNull()) + result_.appName = resultNode["appName"].asString(); + if(!resultNode["storageQuota"].isNull()) + result_.storageQuota = resultNode["storageQuota"].asString(); + if(!resultNode["ownerId"].isNull()) + result_.ownerId = resultNode["ownerId"].asString(); + if(!resultNode["regionId"].isNull()) + result_.regionId = resultNode["regionId"].asString(); + if(!resultNode["status"].isNull()) + result_.status = resultNode["status"].asString(); + if(!resultNode["createTime"].isNull()) + result_.createTime = resultNode["createTime"].asString(); + if(!resultNode["flowQuota"].isNull()) + result_.flowQuota = resultNode["flowQuota"].asString(); + if(!resultNode["description"].isNull()) + result_.description = resultNode["description"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string GetAppResult::getRequestId()const +{ + return requestId_; +} + +GetAppResult::Result GetAppResult::getResult()const +{ + return result_; +} + diff --git a/es-serverless/src/model/GetDataStreamRequest.cc b/es-serverless/src/model/GetDataStreamRequest.cc new file mode 100644 index 000000000..d3cd71ae9 --- /dev/null +++ b/es-serverless/src/model/GetDataStreamRequest.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::Es_serverless::Model::GetDataStreamRequest; + +GetDataStreamRequest::GetDataStreamRequest() + : RoaServiceRequest("es-serverless", "2022-08-22") { + setResourcePath("/openapi/xops/instances/[appName]/data-streams/[dataStreamName]"}; + setMethod(HttpRequest::Method::Get); +} + +GetDataStreamRequest::~GetDataStreamRequest() {} + +std::string GetDataStreamRequest::getAppName() const { + return appName_; +} + +void GetDataStreamRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("appName"), appName); +} + +std::string GetDataStreamRequest::getDataStreamName() const { + return dataStreamName_; +} + +void GetDataStreamRequest::setDataStreamName(const std::string &dataStreamName) { + dataStreamName_ = dataStreamName; + setParameter(std::string("dataStreamName"), dataStreamName); +} + diff --git a/es-serverless/src/model/GetDataStreamResult.cc b/es-serverless/src/model/GetDataStreamResult.cc new file mode 100644 index 000000000..d64a7cb6a --- /dev/null +++ b/es-serverless/src/model/GetDataStreamResult.cc @@ -0,0 +1,96 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Es_serverless; +using namespace AlibabaCloud::Es_serverless::Model; + +GetDataStreamResult::GetDataStreamResult() : + ServiceResult() +{} + +GetDataStreamResult::GetDataStreamResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetDataStreamResult::~GetDataStreamResult() +{} + +void GetDataStreamResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["appName"].isNull()) + result_.appName = resultNode["appName"].asString(); + if(!resultNode["regionId"].isNull()) + result_.regionId = resultNode["regionId"].asString(); + if(!resultNode["deletePhase"].isNull()) + result_.deletePhase = resultNode["deletePhase"].asString(); + if(!resultNode["dataStreamId"].isNull()) + result_.dataStreamId = resultNode["dataStreamId"].asString(); + if(!resultNode["dataStreamName"].isNull()) + result_.dataStreamName = resultNode["dataStreamName"].asString(); + if(!resultNode["type"].isNull()) + result_.type = resultNode["type"].asString(); + if(!resultNode["createTime"].isNull()) + result_.createTime = resultNode["createTime"].asString(); + if(!resultNode["timeStampKey"].isNull()) + result_.timeStampKey = resultNode["timeStampKey"].asString(); + auto _templateNode = resultNode["template"]; + auto allmappingsNode = _templateNode["mappings"]["mappingsItem"]; + for (auto _templateNodemappingsmappingsItem : allmappingsNode) + { + Result::_Template::MappingsItem mappingsItemObject; + if(!_templateNodemappingsmappingsItem["type"].isNull()) + mappingsItemObject.type = _templateNodemappingsmappingsItem["type"].asString(); + if(!_templateNodemappingsmappingsItem["caseSensitive"].isNull()) + mappingsItemObject.caseSensitive = _templateNodemappingsmappingsItem["caseSensitive"].asString() == "true"; + if(!_templateNodemappingsmappingsItem["docValues"].isNull()) + mappingsItemObject.docValues = _templateNodemappingsmappingsItem["docValues"].asString() == "true"; + if(!_templateNodemappingsmappingsItem["index"].isNull()) + mappingsItemObject.index = _templateNodemappingsmappingsItem["index"].asString() == "true"; + if(!_templateNodemappingsmappingsItem["key"].isNull()) + mappingsItemObject.key = _templateNodemappingsmappingsItem["key"].asString(); + auto allTokenizeOnChars = value["tokenizeOnChars"]["null"]; + for (auto value : allTokenizeOnChars) + mappingsItemObject.tokenizeOnChars.push_back(value.asString()); + auto allProperties = value["properties"]["null"]; + for (auto value : allProperties) + mappingsItemObject.properties.push_back(value.asString()); + result_._template.mappings.push_back(mappingsItemObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string GetDataStreamResult::getRequestId()const +{ + return requestId_; +} + +GetDataStreamResult::Result GetDataStreamResult::getResult()const +{ + return result_; +} + diff --git a/es-serverless/src/model/GetRegionInfoRequest.cc b/es-serverless/src/model/GetRegionInfoRequest.cc new file mode 100644 index 000000000..7d2fc7d79 --- /dev/null +++ b/es-serverless/src/model/GetRegionInfoRequest.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::Es_serverless::Model::GetRegionInfoRequest; + +GetRegionInfoRequest::GetRegionInfoRequest() + : RoaServiceRequest("es-serverless", "2022-08-22") { + setResourcePath("/openapi/xops/regions/info"}; + setMethod(HttpRequest::Method::Get); +} + +GetRegionInfoRequest::~GetRegionInfoRequest() {} + diff --git a/es-serverless/src/model/GetRegionInfoResult.cc b/es-serverless/src/model/GetRegionInfoResult.cc new file mode 100644 index 000000000..b8a933d79 --- /dev/null +++ b/es-serverless/src/model/GetRegionInfoResult.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::Es_serverless; +using namespace AlibabaCloud::Es_serverless::Model; + +GetRegionInfoResult::GetRegionInfoResult() : + ServiceResult() +{} + +GetRegionInfoResult::GetRegionInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetRegionInfoResult::~GetRegionInfoResult() +{} + +void GetRegionInfoResult::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 GetRegionInfoResult::getRequestId()const +{ + return requestId_; +} + diff --git a/es-serverless/src/model/ListAccessTokensRequest.cc b/es-serverless/src/model/ListAccessTokensRequest.cc new file mode 100644 index 000000000..77eca81fd --- /dev/null +++ b/es-serverless/src/model/ListAccessTokensRequest.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::Es_serverless::Model::ListAccessTokensRequest; + +ListAccessTokensRequest::ListAccessTokensRequest() + : RoaServiceRequest("es-serverless", "2022-08-22") { + setResourcePath("/openapi/xops/tokens"}; + setMethod(HttpRequest::Method::Get); +} + +ListAccessTokensRequest::~ListAccessTokensRequest() {} + +std::string ListAccessTokensRequest::getTokenId() const { + return tokenId_; +} + +void ListAccessTokensRequest::setTokenId(const std::string &tokenId) { + tokenId_ = tokenId; + setParameter(std::string("tokenId"), tokenId); +} + diff --git a/es-serverless/src/model/ListAccessTokensResult.cc b/es-serverless/src/model/ListAccessTokensResult.cc new file mode 100644 index 000000000..be92f789a --- /dev/null +++ b/es-serverless/src/model/ListAccessTokensResult.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::Es_serverless; +using namespace AlibabaCloud::Es_serverless::Model; + +ListAccessTokensResult::ListAccessTokensResult() : + ServiceResult() +{} + +ListAccessTokensResult::ListAccessTokensResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAccessTokensResult::~ListAccessTokensResult() +{} + +void ListAccessTokensResult::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 ListAccessTokensResult::getRequestId()const +{ + return requestId_; +} + diff --git a/es-serverless/src/model/ListAppsRequest.cc b/es-serverless/src/model/ListAppsRequest.cc new file mode 100644 index 000000000..d6a303041 --- /dev/null +++ b/es-serverless/src/model/ListAppsRequest.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::Es_serverless::Model::ListAppsRequest; + +ListAppsRequest::ListAppsRequest() + : RoaServiceRequest("es-serverless", "2022-08-22") { + setResourcePath("/openapi/xops/instances"}; + setMethod(HttpRequest::Method::Get); +} + +ListAppsRequest::~ListAppsRequest() {} + +std::string ListAppsRequest::getAppName() const { + return appName_; +} + +void ListAppsRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("appName"), appName); +} + +int ListAppsRequest::getPageSize() const { + return pageSize_; +} + +void ListAppsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("pageSize"), std::to_string(pageSize)); +} + +std::string ListAppsRequest::getDescription() const { + return description_; +} + +void ListAppsRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("description"), description); +} + +int ListAppsRequest::getPageNumber() const { + return pageNumber_; +} + +void ListAppsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("pageNumber"), std::to_string(pageNumber)); +} + diff --git a/es-serverless/src/model/ListAppsResult.cc b/es-serverless/src/model/ListAppsResult.cc new file mode 100644 index 000000000..1a7292c64 --- /dev/null +++ b/es-serverless/src/model/ListAppsResult.cc @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Es_serverless; +using namespace AlibabaCloud::Es_serverless::Model; + +ListAppsResult::ListAppsResult() : + ServiceResult() +{} + +ListAppsResult::ListAppsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAppsResult::~ListAppsResult() +{} + +void ListAppsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresultNode = value["result"]["app"]; + for (auto valueresultapp : allresultNode) + { + App resultObject; + if(!valueresultapp["appName"].isNull()) + resultObject.appName = valueresultapp["appName"].asString(); + if(!valueresultapp["ownerId"].isNull()) + resultObject.ownerId = valueresultapp["ownerId"].asString(); + if(!valueresultapp["storageQuota"].isNull()) + resultObject.storageQuota = valueresultapp["storageQuota"].asString(); + if(!valueresultapp["regionId"].isNull()) + resultObject.regionId = valueresultapp["regionId"].asString(); + if(!valueresultapp["status"].isNull()) + resultObject.status = valueresultapp["status"].asString(); + if(!valueresultapp["createTime"].isNull()) + resultObject.createTime = valueresultapp["createTime"].asString(); + if(!valueresultapp["flowQuota"].isNull()) + resultObject.flowQuota = valueresultapp["flowQuota"].asString(); + if(!valueresultapp["description"].isNull()) + resultObject.description = valueresultapp["description"].asString(); + result_.push_back(resultObject); + } + if(!value["totalCount"].isNull()) + totalCount_ = std::stoi(value["totalCount"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::vector ListAppsResult::getresult()const +{ + return result_; +} + +int ListAppsResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListAppsResult::getRequestId()const +{ + return requestId_; +} + diff --git a/es-serverless/src/model/ListDataStreamsRequest.cc b/es-serverless/src/model/ListDataStreamsRequest.cc new file mode 100644 index 000000000..e32af9376 --- /dev/null +++ b/es-serverless/src/model/ListDataStreamsRequest.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::Es_serverless::Model::ListDataStreamsRequest; + +ListDataStreamsRequest::ListDataStreamsRequest() + : RoaServiceRequest("es-serverless", "2022-08-22") { + setResourcePath("/openapi/xops/instances/[appName]/data-streams"}; + setMethod(HttpRequest::Method::Get); +} + +ListDataStreamsRequest::~ListDataStreamsRequest() {} + +std::string ListDataStreamsRequest::getAppName() const { + return appName_; +} + +void ListDataStreamsRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("appName"), appName); +} + +std::string ListDataStreamsRequest::getDataStreamName() const { + return dataStreamName_; +} + +void ListDataStreamsRequest::setDataStreamName(const std::string &dataStreamName) { + dataStreamName_ = dataStreamName; + setParameter(std::string("dataStreamName"), dataStreamName); +} + +int ListDataStreamsRequest::getPageSize() const { + return pageSize_; +} + +void ListDataStreamsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("pageSize"), std::to_string(pageSize)); +} + +int ListDataStreamsRequest::getPageNumber() const { + return pageNumber_; +} + +void ListDataStreamsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("pageNumber"), std::to_string(pageNumber)); +} + diff --git a/es-serverless/src/model/ListDataStreamsResult.cc b/es-serverless/src/model/ListDataStreamsResult.cc new file mode 100644 index 000000000..6980b3ab4 --- /dev/null +++ b/es-serverless/src/model/ListDataStreamsResult.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Es_serverless; +using namespace AlibabaCloud::Es_serverless::Model; + +ListDataStreamsResult::ListDataStreamsResult() : + ServiceResult() +{} + +ListDataStreamsResult::ListDataStreamsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListDataStreamsResult::~ListDataStreamsResult() +{} + +void ListDataStreamsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresultNode = value["result"]["dataStream"]; + for (auto valueresultdataStream : allresultNode) + { + DataStream resultObject; + if(!valueresultdataStream["appName"].isNull()) + resultObject.appName = valueresultdataStream["appName"].asString(); + if(!valueresultdataStream["regionId"].isNull()) + resultObject.regionId = valueresultdataStream["regionId"].asString(); + if(!valueresultdataStream["deletePhase"].isNull()) + resultObject.deletePhase = valueresultdataStream["deletePhase"].asString(); + if(!valueresultdataStream["dataStreamName"].isNull()) + resultObject.dataStreamName = valueresultdataStream["dataStreamName"].asString(); + if(!valueresultdataStream["dataStreamId"].isNull()) + resultObject.dataStreamId = valueresultdataStream["dataStreamId"].asString(); + if(!valueresultdataStream["type"].isNull()) + resultObject.type = valueresultdataStream["type"].asString(); + if(!valueresultdataStream["createTime"].isNull()) + resultObject.createTime = valueresultdataStream["createTime"].asString(); + if(!valueresultdataStream["timeStampKey"].isNull()) + resultObject.timeStampKey = valueresultdataStream["timeStampKey"].asString(); + auto _templateNode = value["template"]; + auto allmappingsNode = _templateNode["mappings"]["mappingsItem"]; + for (auto _templateNodemappingsmappingsItem : allmappingsNode) + { + DataStream::_Template::MappingsItem mappingsItemObject; + if(!_templateNodemappingsmappingsItem["type"].isNull()) + mappingsItemObject.type = _templateNodemappingsmappingsItem["type"].asString(); + if(!_templateNodemappingsmappingsItem["caseSensitive"].isNull()) + mappingsItemObject.caseSensitive = _templateNodemappingsmappingsItem["caseSensitive"].asString() == "true"; + if(!_templateNodemappingsmappingsItem["docValues"].isNull()) + mappingsItemObject.docValues = _templateNodemappingsmappingsItem["docValues"].asString() == "true"; + if(!_templateNodemappingsmappingsItem["index"].isNull()) + mappingsItemObject.index = _templateNodemappingsmappingsItem["index"].asString() == "true"; + if(!_templateNodemappingsmappingsItem["key"].isNull()) + mappingsItemObject.key = _templateNodemappingsmappingsItem["key"].asString(); + auto allTokenizeOnChars = value["tokenizeOnChars"]["null"]; + for (auto value : allTokenizeOnChars) + mappingsItemObject.tokenizeOnChars.push_back(value.asString()); + auto allProperties = value["properties"]["null"]; + for (auto value : allProperties) + mappingsItemObject.properties.push_back(value.asString()); + resultObject._template.mappings.push_back(mappingsItemObject); + } + result_.push_back(resultObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["totalCount"].isNull()) + totalCount_ = std::stoi(value["totalCount"].asString()); + +} + +std::vector ListDataStreamsResult::getresult()const +{ + return result_; +} + +int ListDataStreamsResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListDataStreamsResult::getRequestId()const +{ + return requestId_; +} + diff --git a/es-serverless/src/model/UpdateAppRequest.cc b/es-serverless/src/model/UpdateAppRequest.cc new file mode 100644 index 000000000..f9b3ede26 --- /dev/null +++ b/es-serverless/src/model/UpdateAppRequest.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::Es_serverless::Model::UpdateAppRequest; + +UpdateAppRequest::UpdateAppRequest() + : RoaServiceRequest("es-serverless", "2022-08-22") { + setResourcePath("/openapi/xops/instances/[appName]"}; + setMethod(HttpRequest::Method::Put); +} + +UpdateAppRequest::~UpdateAppRequest() {} + +std::string UpdateAppRequest::getAppName() const { + return appName_; +} + +void UpdateAppRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("appName"), appName); +} + +std::string UpdateAppRequest::getBody() const { + return body_; +} + +void UpdateAppRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("Body"), body); +} + diff --git a/es-serverless/src/model/UpdateAppResult.cc b/es-serverless/src/model/UpdateAppResult.cc new file mode 100644 index 000000000..8bb799e86 --- /dev/null +++ b/es-serverless/src/model/UpdateAppResult.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::Es_serverless; +using namespace AlibabaCloud::Es_serverless::Model; + +UpdateAppResult::UpdateAppResult() : + ServiceResult() +{} + +UpdateAppResult::UpdateAppResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateAppResult::~UpdateAppResult() +{} + +void UpdateAppResult::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 UpdateAppResult::getRequestId()const +{ + return requestId_; +} + diff --git a/es-serverless/src/model/UpdateDataStreamRequest.cc b/es-serverless/src/model/UpdateDataStreamRequest.cc new file mode 100644 index 000000000..fa8b57e37 --- /dev/null +++ b/es-serverless/src/model/UpdateDataStreamRequest.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::Es_serverless::Model::UpdateDataStreamRequest; + +UpdateDataStreamRequest::UpdateDataStreamRequest() + : RoaServiceRequest("es-serverless", "2022-08-22") { + setResourcePath("/openapi/xops/instances/[appName]/data-streams/[dataStreamName]"}; + setMethod(HttpRequest::Method::Put); +} + +UpdateDataStreamRequest::~UpdateDataStreamRequest() {} + +std::string UpdateDataStreamRequest::getAppName() const { + return appName_; +} + +void UpdateDataStreamRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("appName"), appName); +} + +std::string UpdateDataStreamRequest::getDataStreamName() const { + return dataStreamName_; +} + +void UpdateDataStreamRequest::setDataStreamName(const std::string &dataStreamName) { + dataStreamName_ = dataStreamName; + setParameter(std::string("dataStreamName"), dataStreamName); +} + +std::string UpdateDataStreamRequest::getBody() const { + return body_; +} + +void UpdateDataStreamRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("Body"), body); +} + diff --git a/es-serverless/src/model/UpdateDataStreamResult.cc b/es-serverless/src/model/UpdateDataStreamResult.cc new file mode 100644 index 000000000..a75bf73b2 --- /dev/null +++ b/es-serverless/src/model/UpdateDataStreamResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Es_serverless; +using namespace AlibabaCloud::Es_serverless::Model; + +UpdateDataStreamResult::UpdateDataStreamResult() : + ServiceResult() +{} + +UpdateDataStreamResult::UpdateDataStreamResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateDataStreamResult::~UpdateDataStreamResult() +{} + +void UpdateDataStreamResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["appName"].isNull()) + result_.appName = resultNode["appName"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string UpdateDataStreamResult::getRequestId()const +{ + return requestId_; +} + +UpdateDataStreamResult::Result UpdateDataStreamResult::getResult()const +{ + return result_; +} +