diff --git a/CHANGELOG b/CHANGELOG index c9667743d..6faf1dd2f 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2020-03-20 Version: 1.36.327 +- Add GetNetworkInterface interface. + 2020-03-20 Version: 1.36.326 - Generated 2018-04-12 for `EHPC`. diff --git a/VERSION b/VERSION index 86fbd23cd..e5f1f276a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.326 \ No newline at end of file +1.36.327 \ No newline at end of file diff --git a/eas/CMakeLists.txt b/eas/CMakeLists.txt new file mode 100644 index 000000000..5a3b62c06 --- /dev/null +++ b/eas/CMakeLists.txt @@ -0,0 +1,214 @@ +# +# Copyright 2009-2017 Alibaba Cloud All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT 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(eas_public_header + include/alibabacloud/eas/EasClient.h + include/alibabacloud/eas/EasExport.h ) + +set(eas_public_header_model + include/alibabacloud/eas/model/CheckServiceExistsRequest.h + include/alibabacloud/eas/model/CheckServiceExistsResult.h + include/alibabacloud/eas/model/CreateNetworkInterfaceRequest.h + include/alibabacloud/eas/model/CreateNetworkInterfaceResult.h + include/alibabacloud/eas/model/CreateSLSRequest.h + include/alibabacloud/eas/model/CreateSLSResult.h + include/alibabacloud/eas/model/CreateServiceRequest.h + include/alibabacloud/eas/model/CreateServiceResult.h + include/alibabacloud/eas/model/CreateTaskRequest.h + include/alibabacloud/eas/model/CreateTaskResult.h + include/alibabacloud/eas/model/DeleteResourceRequest.h + include/alibabacloud/eas/model/DeleteResourceResult.h + include/alibabacloud/eas/model/DeleteResourceInstanceRequest.h + include/alibabacloud/eas/model/DeleteResourceInstanceResult.h + include/alibabacloud/eas/model/DeleteServiceRequest.h + include/alibabacloud/eas/model/DeleteServiceResult.h + include/alibabacloud/eas/model/DeleteTaskRequest.h + include/alibabacloud/eas/model/DeleteTaskResult.h + include/alibabacloud/eas/model/GetAvailableRegionsRequest.h + include/alibabacloud/eas/model/GetAvailableRegionsResult.h + include/alibabacloud/eas/model/GetNetworkInterfaceRequest.h + include/alibabacloud/eas/model/GetNetworkInterfaceResult.h + include/alibabacloud/eas/model/GetOrCreateResourceRequest.h + include/alibabacloud/eas/model/GetOrCreateResourceResult.h + include/alibabacloud/eas/model/GetOssAuthorizeRequest.h + include/alibabacloud/eas/model/GetOssAuthorizeResult.h + include/alibabacloud/eas/model/GetResourceInstancesRequest.h + include/alibabacloud/eas/model/GetResourceInstancesResult.h + include/alibabacloud/eas/model/GetResourcePodsRequest.h + include/alibabacloud/eas/model/GetResourcePodsResult.h + include/alibabacloud/eas/model/GetResourceServicesRequest.h + include/alibabacloud/eas/model/GetResourceServicesResult.h + include/alibabacloud/eas/model/GetResourceStatusRequest.h + include/alibabacloud/eas/model/GetResourceStatusResult.h + include/alibabacloud/eas/model/GetServiceRequest.h + include/alibabacloud/eas/model/GetServiceResult.h + include/alibabacloud/eas/model/GetServiceRegionRequest.h + include/alibabacloud/eas/model/GetServiceRegionResult.h + include/alibabacloud/eas/model/GetServiceStatisticsRequest.h + include/alibabacloud/eas/model/GetServiceStatisticsResult.h + include/alibabacloud/eas/model/GetServiceTokenRequest.h + include/alibabacloud/eas/model/GetServiceTokenResult.h + include/alibabacloud/eas/model/GetServiceVersionRequest.h + include/alibabacloud/eas/model/GetServiceVersionResult.h + include/alibabacloud/eas/model/GetServiceWorkerRequest.h + include/alibabacloud/eas/model/GetServiceWorkerResult.h + include/alibabacloud/eas/model/GetTaskRequest.h + include/alibabacloud/eas/model/GetTaskResult.h + include/alibabacloud/eas/model/ListServicesRequest.h + include/alibabacloud/eas/model/ListServicesResult.h + include/alibabacloud/eas/model/ListTasksRequest.h + include/alibabacloud/eas/model/ListTasksResult.h + include/alibabacloud/eas/model/ListVIndexRequest.h + include/alibabacloud/eas/model/ListVIndexResult.h + include/alibabacloud/eas/model/ModifyServiceRequest.h + include/alibabacloud/eas/model/ModifyServiceResult.h + include/alibabacloud/eas/model/ModifyServiceVersionRequest.h + include/alibabacloud/eas/model/ModifyServiceVersionResult.h + include/alibabacloud/eas/model/ReleaseServiceRequest.h + include/alibabacloud/eas/model/ReleaseServiceResult.h + include/alibabacloud/eas/model/StartServiceRequest.h + include/alibabacloud/eas/model/StartServiceResult.h + include/alibabacloud/eas/model/StopServiceRequest.h + include/alibabacloud/eas/model/StopServiceResult.h + include/alibabacloud/eas/model/SyncServiceRequest.h + include/alibabacloud/eas/model/SyncServiceResult.h ) + +set(eas_src + src/EasClient.cc + src/model/CheckServiceExistsRequest.cc + src/model/CheckServiceExistsResult.cc + src/model/CreateNetworkInterfaceRequest.cc + src/model/CreateNetworkInterfaceResult.cc + src/model/CreateSLSRequest.cc + src/model/CreateSLSResult.cc + src/model/CreateServiceRequest.cc + src/model/CreateServiceResult.cc + src/model/CreateTaskRequest.cc + src/model/CreateTaskResult.cc + src/model/DeleteResourceRequest.cc + src/model/DeleteResourceResult.cc + src/model/DeleteResourceInstanceRequest.cc + src/model/DeleteResourceInstanceResult.cc + src/model/DeleteServiceRequest.cc + src/model/DeleteServiceResult.cc + src/model/DeleteTaskRequest.cc + src/model/DeleteTaskResult.cc + src/model/GetAvailableRegionsRequest.cc + src/model/GetAvailableRegionsResult.cc + src/model/GetNetworkInterfaceRequest.cc + src/model/GetNetworkInterfaceResult.cc + src/model/GetOrCreateResourceRequest.cc + src/model/GetOrCreateResourceResult.cc + src/model/GetOssAuthorizeRequest.cc + src/model/GetOssAuthorizeResult.cc + src/model/GetResourceInstancesRequest.cc + src/model/GetResourceInstancesResult.cc + src/model/GetResourcePodsRequest.cc + src/model/GetResourcePodsResult.cc + src/model/GetResourceServicesRequest.cc + src/model/GetResourceServicesResult.cc + src/model/GetResourceStatusRequest.cc + src/model/GetResourceStatusResult.cc + src/model/GetServiceRequest.cc + src/model/GetServiceResult.cc + src/model/GetServiceRegionRequest.cc + src/model/GetServiceRegionResult.cc + src/model/GetServiceStatisticsRequest.cc + src/model/GetServiceStatisticsResult.cc + src/model/GetServiceTokenRequest.cc + src/model/GetServiceTokenResult.cc + src/model/GetServiceVersionRequest.cc + src/model/GetServiceVersionResult.cc + src/model/GetServiceWorkerRequest.cc + src/model/GetServiceWorkerResult.cc + src/model/GetTaskRequest.cc + src/model/GetTaskResult.cc + src/model/ListServicesRequest.cc + src/model/ListServicesResult.cc + src/model/ListTasksRequest.cc + src/model/ListTasksResult.cc + src/model/ListVIndexRequest.cc + src/model/ListVIndexResult.cc + src/model/ModifyServiceRequest.cc + src/model/ModifyServiceResult.cc + src/model/ModifyServiceVersionRequest.cc + src/model/ModifyServiceVersionResult.cc + src/model/ReleaseServiceRequest.cc + src/model/ReleaseServiceResult.cc + src/model/StartServiceRequest.cc + src/model/StartServiceResult.cc + src/model/StopServiceRequest.cc + src/model/StopServiceResult.cc + src/model/SyncServiceRequest.cc + src/model/SyncServiceResult.cc ) + +add_library(eas ${LIB_TYPE} + ${eas_public_header} + ${eas_public_header_model} + ${eas_src}) + +set_target_properties(eas + 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}eas + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(eas + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_EAS_LIBRARY) +endif() + +target_include_directories(eas + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(eas + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(eas + jsoncpp) + target_include_directories(eas + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(eas + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(eas + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(eas + PRIVATE /usr/include/jsoncpp) + target_link_libraries(eas + jsoncpp) +endif() + +install(FILES ${eas_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/eas) +install(FILES ${eas_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/eas/model) +install(TARGETS eas + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/EasClient.h b/eas/include/alibabacloud/eas/EasClient.h new file mode 100644 index 000000000..55bba28e9 --- /dev/null +++ b/eas/include/alibabacloud/eas/EasClient.h @@ -0,0 +1,310 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_EAS_EASCLIENT_H_ +#define ALIBABACLOUD_EAS_EASCLIENT_H_ + +#include +#include +#include +#include +#include "EasExport.h" +#include "model/CheckServiceExistsRequest.h" +#include "model/CheckServiceExistsResult.h" +#include "model/CreateNetworkInterfaceRequest.h" +#include "model/CreateNetworkInterfaceResult.h" +#include "model/CreateSLSRequest.h" +#include "model/CreateSLSResult.h" +#include "model/CreateServiceRequest.h" +#include "model/CreateServiceResult.h" +#include "model/CreateTaskRequest.h" +#include "model/CreateTaskResult.h" +#include "model/DeleteResourceRequest.h" +#include "model/DeleteResourceResult.h" +#include "model/DeleteResourceInstanceRequest.h" +#include "model/DeleteResourceInstanceResult.h" +#include "model/DeleteServiceRequest.h" +#include "model/DeleteServiceResult.h" +#include "model/DeleteTaskRequest.h" +#include "model/DeleteTaskResult.h" +#include "model/GetAvailableRegionsRequest.h" +#include "model/GetAvailableRegionsResult.h" +#include "model/GetNetworkInterfaceRequest.h" +#include "model/GetNetworkInterfaceResult.h" +#include "model/GetOrCreateResourceRequest.h" +#include "model/GetOrCreateResourceResult.h" +#include "model/GetOssAuthorizeRequest.h" +#include "model/GetOssAuthorizeResult.h" +#include "model/GetResourceInstancesRequest.h" +#include "model/GetResourceInstancesResult.h" +#include "model/GetResourcePodsRequest.h" +#include "model/GetResourcePodsResult.h" +#include "model/GetResourceServicesRequest.h" +#include "model/GetResourceServicesResult.h" +#include "model/GetResourceStatusRequest.h" +#include "model/GetResourceStatusResult.h" +#include "model/GetServiceRequest.h" +#include "model/GetServiceResult.h" +#include "model/GetServiceRegionRequest.h" +#include "model/GetServiceRegionResult.h" +#include "model/GetServiceStatisticsRequest.h" +#include "model/GetServiceStatisticsResult.h" +#include "model/GetServiceTokenRequest.h" +#include "model/GetServiceTokenResult.h" +#include "model/GetServiceVersionRequest.h" +#include "model/GetServiceVersionResult.h" +#include "model/GetServiceWorkerRequest.h" +#include "model/GetServiceWorkerResult.h" +#include "model/GetTaskRequest.h" +#include "model/GetTaskResult.h" +#include "model/ListServicesRequest.h" +#include "model/ListServicesResult.h" +#include "model/ListTasksRequest.h" +#include "model/ListTasksResult.h" +#include "model/ListVIndexRequest.h" +#include "model/ListVIndexResult.h" +#include "model/ModifyServiceRequest.h" +#include "model/ModifyServiceResult.h" +#include "model/ModifyServiceVersionRequest.h" +#include "model/ModifyServiceVersionResult.h" +#include "model/ReleaseServiceRequest.h" +#include "model/ReleaseServiceResult.h" +#include "model/StartServiceRequest.h" +#include "model/StartServiceResult.h" +#include "model/StopServiceRequest.h" +#include "model/StopServiceResult.h" +#include "model/SyncServiceRequest.h" +#include "model/SyncServiceResult.h" + + +namespace AlibabaCloud +{ + namespace Eas + { + class ALIBABACLOUD_EAS_EXPORT EasClient : public RoaServiceClient + { + public: + typedef Outcome CheckServiceExistsOutcome; + typedef std::future CheckServiceExistsOutcomeCallable; + typedef std::function&)> CheckServiceExistsAsyncHandler; + typedef Outcome CreateNetworkInterfaceOutcome; + typedef std::future CreateNetworkInterfaceOutcomeCallable; + typedef std::function&)> CreateNetworkInterfaceAsyncHandler; + typedef Outcome CreateSLSOutcome; + typedef std::future CreateSLSOutcomeCallable; + typedef std::function&)> CreateSLSAsyncHandler; + typedef Outcome CreateServiceOutcome; + typedef std::future CreateServiceOutcomeCallable; + typedef std::function&)> CreateServiceAsyncHandler; + typedef Outcome CreateTaskOutcome; + typedef std::future CreateTaskOutcomeCallable; + typedef std::function&)> CreateTaskAsyncHandler; + typedef Outcome DeleteResourceOutcome; + typedef std::future DeleteResourceOutcomeCallable; + typedef std::function&)> DeleteResourceAsyncHandler; + typedef Outcome DeleteResourceInstanceOutcome; + typedef std::future DeleteResourceInstanceOutcomeCallable; + typedef std::function&)> DeleteResourceInstanceAsyncHandler; + typedef Outcome DeleteServiceOutcome; + typedef std::future DeleteServiceOutcomeCallable; + typedef std::function&)> DeleteServiceAsyncHandler; + typedef Outcome DeleteTaskOutcome; + typedef std::future DeleteTaskOutcomeCallable; + typedef std::function&)> DeleteTaskAsyncHandler; + typedef Outcome GetAvailableRegionsOutcome; + typedef std::future GetAvailableRegionsOutcomeCallable; + typedef std::function&)> GetAvailableRegionsAsyncHandler; + typedef Outcome GetNetworkInterfaceOutcome; + typedef std::future GetNetworkInterfaceOutcomeCallable; + typedef std::function&)> GetNetworkInterfaceAsyncHandler; + typedef Outcome GetOrCreateResourceOutcome; + typedef std::future GetOrCreateResourceOutcomeCallable; + typedef std::function&)> GetOrCreateResourceAsyncHandler; + typedef Outcome GetOssAuthorizeOutcome; + typedef std::future GetOssAuthorizeOutcomeCallable; + typedef std::function&)> GetOssAuthorizeAsyncHandler; + typedef Outcome GetResourceInstancesOutcome; + typedef std::future GetResourceInstancesOutcomeCallable; + typedef std::function&)> GetResourceInstancesAsyncHandler; + typedef Outcome GetResourcePodsOutcome; + typedef std::future GetResourcePodsOutcomeCallable; + typedef std::function&)> GetResourcePodsAsyncHandler; + typedef Outcome GetResourceServicesOutcome; + typedef std::future GetResourceServicesOutcomeCallable; + typedef std::function&)> GetResourceServicesAsyncHandler; + typedef Outcome GetResourceStatusOutcome; + typedef std::future GetResourceStatusOutcomeCallable; + typedef std::function&)> GetResourceStatusAsyncHandler; + typedef Outcome GetServiceOutcome; + typedef std::future GetServiceOutcomeCallable; + typedef std::function&)> GetServiceAsyncHandler; + typedef Outcome GetServiceRegionOutcome; + typedef std::future GetServiceRegionOutcomeCallable; + typedef std::function&)> GetServiceRegionAsyncHandler; + typedef Outcome GetServiceStatisticsOutcome; + typedef std::future GetServiceStatisticsOutcomeCallable; + typedef std::function&)> GetServiceStatisticsAsyncHandler; + typedef Outcome GetServiceTokenOutcome; + typedef std::future GetServiceTokenOutcomeCallable; + typedef std::function&)> GetServiceTokenAsyncHandler; + typedef Outcome GetServiceVersionOutcome; + typedef std::future GetServiceVersionOutcomeCallable; + typedef std::function&)> GetServiceVersionAsyncHandler; + typedef Outcome GetServiceWorkerOutcome; + typedef std::future GetServiceWorkerOutcomeCallable; + typedef std::function&)> GetServiceWorkerAsyncHandler; + typedef Outcome GetTaskOutcome; + typedef std::future GetTaskOutcomeCallable; + typedef std::function&)> GetTaskAsyncHandler; + typedef Outcome ListServicesOutcome; + typedef std::future ListServicesOutcomeCallable; + typedef std::function&)> ListServicesAsyncHandler; + typedef Outcome ListTasksOutcome; + typedef std::future ListTasksOutcomeCallable; + typedef std::function&)> ListTasksAsyncHandler; + typedef Outcome ListVIndexOutcome; + typedef std::future ListVIndexOutcomeCallable; + typedef std::function&)> ListVIndexAsyncHandler; + typedef Outcome ModifyServiceOutcome; + typedef std::future ModifyServiceOutcomeCallable; + typedef std::function&)> ModifyServiceAsyncHandler; + typedef Outcome ModifyServiceVersionOutcome; + typedef std::future ModifyServiceVersionOutcomeCallable; + typedef std::function&)> ModifyServiceVersionAsyncHandler; + typedef Outcome ReleaseServiceOutcome; + typedef std::future ReleaseServiceOutcomeCallable; + typedef std::function&)> ReleaseServiceAsyncHandler; + typedef Outcome StartServiceOutcome; + typedef std::future StartServiceOutcomeCallable; + typedef std::function&)> StartServiceAsyncHandler; + typedef Outcome StopServiceOutcome; + typedef std::future StopServiceOutcomeCallable; + typedef std::function&)> StopServiceAsyncHandler; + typedef Outcome SyncServiceOutcome; + typedef std::future SyncServiceOutcomeCallable; + typedef std::function&)> SyncServiceAsyncHandler; + + EasClient(const Credentials &credentials, const ClientConfiguration &configuration); + EasClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + EasClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~EasClient(); + CheckServiceExistsOutcome checkServiceExists(const Model::CheckServiceExistsRequest &request)const; + void checkServiceExistsAsync(const Model::CheckServiceExistsRequest& request, const CheckServiceExistsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CheckServiceExistsOutcomeCallable checkServiceExistsCallable(const Model::CheckServiceExistsRequest& request) const; + CreateNetworkInterfaceOutcome createNetworkInterface(const Model::CreateNetworkInterfaceRequest &request)const; + void createNetworkInterfaceAsync(const Model::CreateNetworkInterfaceRequest& request, const CreateNetworkInterfaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateNetworkInterfaceOutcomeCallable createNetworkInterfaceCallable(const Model::CreateNetworkInterfaceRequest& request) const; + CreateSLSOutcome createSLS(const Model::CreateSLSRequest &request)const; + void createSLSAsync(const Model::CreateSLSRequest& request, const CreateSLSAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateSLSOutcomeCallable createSLSCallable(const Model::CreateSLSRequest& request) const; + CreateServiceOutcome createService(const Model::CreateServiceRequest &request)const; + void createServiceAsync(const Model::CreateServiceRequest& request, const CreateServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateServiceOutcomeCallable createServiceCallable(const Model::CreateServiceRequest& request) const; + CreateTaskOutcome createTask(const Model::CreateTaskRequest &request)const; + void createTaskAsync(const Model::CreateTaskRequest& request, const CreateTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateTaskOutcomeCallable createTaskCallable(const Model::CreateTaskRequest& request) const; + DeleteResourceOutcome deleteResource(const Model::DeleteResourceRequest &request)const; + void deleteResourceAsync(const Model::DeleteResourceRequest& request, const DeleteResourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteResourceOutcomeCallable deleteResourceCallable(const Model::DeleteResourceRequest& request) const; + DeleteResourceInstanceOutcome deleteResourceInstance(const Model::DeleteResourceInstanceRequest &request)const; + void deleteResourceInstanceAsync(const Model::DeleteResourceInstanceRequest& request, const DeleteResourceInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteResourceInstanceOutcomeCallable deleteResourceInstanceCallable(const Model::DeleteResourceInstanceRequest& request) const; + DeleteServiceOutcome deleteService(const Model::DeleteServiceRequest &request)const; + void deleteServiceAsync(const Model::DeleteServiceRequest& request, const DeleteServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteServiceOutcomeCallable deleteServiceCallable(const Model::DeleteServiceRequest& request) const; + DeleteTaskOutcome deleteTask(const Model::DeleteTaskRequest &request)const; + void deleteTaskAsync(const Model::DeleteTaskRequest& request, const DeleteTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteTaskOutcomeCallable deleteTaskCallable(const Model::DeleteTaskRequest& request) const; + GetAvailableRegionsOutcome getAvailableRegions(const Model::GetAvailableRegionsRequest &request)const; + void getAvailableRegionsAsync(const Model::GetAvailableRegionsRequest& request, const GetAvailableRegionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAvailableRegionsOutcomeCallable getAvailableRegionsCallable(const Model::GetAvailableRegionsRequest& request) const; + GetNetworkInterfaceOutcome getNetworkInterface(const Model::GetNetworkInterfaceRequest &request)const; + void getNetworkInterfaceAsync(const Model::GetNetworkInterfaceRequest& request, const GetNetworkInterfaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetNetworkInterfaceOutcomeCallable getNetworkInterfaceCallable(const Model::GetNetworkInterfaceRequest& request) const; + GetOrCreateResourceOutcome getOrCreateResource(const Model::GetOrCreateResourceRequest &request)const; + void getOrCreateResourceAsync(const Model::GetOrCreateResourceRequest& request, const GetOrCreateResourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetOrCreateResourceOutcomeCallable getOrCreateResourceCallable(const Model::GetOrCreateResourceRequest& request) const; + GetOssAuthorizeOutcome getOssAuthorize(const Model::GetOssAuthorizeRequest &request)const; + void getOssAuthorizeAsync(const Model::GetOssAuthorizeRequest& request, const GetOssAuthorizeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetOssAuthorizeOutcomeCallable getOssAuthorizeCallable(const Model::GetOssAuthorizeRequest& request) const; + GetResourceInstancesOutcome getResourceInstances(const Model::GetResourceInstancesRequest &request)const; + void getResourceInstancesAsync(const Model::GetResourceInstancesRequest& request, const GetResourceInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetResourceInstancesOutcomeCallable getResourceInstancesCallable(const Model::GetResourceInstancesRequest& request) const; + GetResourcePodsOutcome getResourcePods(const Model::GetResourcePodsRequest &request)const; + void getResourcePodsAsync(const Model::GetResourcePodsRequest& request, const GetResourcePodsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetResourcePodsOutcomeCallable getResourcePodsCallable(const Model::GetResourcePodsRequest& request) const; + GetResourceServicesOutcome getResourceServices(const Model::GetResourceServicesRequest &request)const; + void getResourceServicesAsync(const Model::GetResourceServicesRequest& request, const GetResourceServicesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetResourceServicesOutcomeCallable getResourceServicesCallable(const Model::GetResourceServicesRequest& request) const; + GetResourceStatusOutcome getResourceStatus(const Model::GetResourceStatusRequest &request)const; + void getResourceStatusAsync(const Model::GetResourceStatusRequest& request, const GetResourceStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetResourceStatusOutcomeCallable getResourceStatusCallable(const Model::GetResourceStatusRequest& request) const; + GetServiceOutcome getService(const Model::GetServiceRequest &request)const; + void getServiceAsync(const Model::GetServiceRequest& request, const GetServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetServiceOutcomeCallable getServiceCallable(const Model::GetServiceRequest& request) const; + GetServiceRegionOutcome getServiceRegion(const Model::GetServiceRegionRequest &request)const; + void getServiceRegionAsync(const Model::GetServiceRegionRequest& request, const GetServiceRegionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetServiceRegionOutcomeCallable getServiceRegionCallable(const Model::GetServiceRegionRequest& request) const; + GetServiceStatisticsOutcome getServiceStatistics(const Model::GetServiceStatisticsRequest &request)const; + void getServiceStatisticsAsync(const Model::GetServiceStatisticsRequest& request, const GetServiceStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetServiceStatisticsOutcomeCallable getServiceStatisticsCallable(const Model::GetServiceStatisticsRequest& request) const; + GetServiceTokenOutcome getServiceToken(const Model::GetServiceTokenRequest &request)const; + void getServiceTokenAsync(const Model::GetServiceTokenRequest& request, const GetServiceTokenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetServiceTokenOutcomeCallable getServiceTokenCallable(const Model::GetServiceTokenRequest& request) const; + GetServiceVersionOutcome getServiceVersion(const Model::GetServiceVersionRequest &request)const; + void getServiceVersionAsync(const Model::GetServiceVersionRequest& request, const GetServiceVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetServiceVersionOutcomeCallable getServiceVersionCallable(const Model::GetServiceVersionRequest& request) const; + GetServiceWorkerOutcome getServiceWorker(const Model::GetServiceWorkerRequest &request)const; + void getServiceWorkerAsync(const Model::GetServiceWorkerRequest& request, const GetServiceWorkerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetServiceWorkerOutcomeCallable getServiceWorkerCallable(const Model::GetServiceWorkerRequest& request) const; + GetTaskOutcome getTask(const Model::GetTaskRequest &request)const; + void getTaskAsync(const Model::GetTaskRequest& request, const GetTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetTaskOutcomeCallable getTaskCallable(const Model::GetTaskRequest& request) const; + ListServicesOutcome listServices(const Model::ListServicesRequest &request)const; + void listServicesAsync(const Model::ListServicesRequest& request, const ListServicesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListServicesOutcomeCallable listServicesCallable(const Model::ListServicesRequest& request) const; + ListTasksOutcome listTasks(const Model::ListTasksRequest &request)const; + void listTasksAsync(const Model::ListTasksRequest& request, const ListTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTasksOutcomeCallable listTasksCallable(const Model::ListTasksRequest& request) const; + ListVIndexOutcome listVIndex(const Model::ListVIndexRequest &request)const; + void listVIndexAsync(const Model::ListVIndexRequest& request, const ListVIndexAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListVIndexOutcomeCallable listVIndexCallable(const Model::ListVIndexRequest& request) const; + ModifyServiceOutcome modifyService(const Model::ModifyServiceRequest &request)const; + void modifyServiceAsync(const Model::ModifyServiceRequest& request, const ModifyServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyServiceOutcomeCallable modifyServiceCallable(const Model::ModifyServiceRequest& request) const; + ModifyServiceVersionOutcome modifyServiceVersion(const Model::ModifyServiceVersionRequest &request)const; + void modifyServiceVersionAsync(const Model::ModifyServiceVersionRequest& request, const ModifyServiceVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyServiceVersionOutcomeCallable modifyServiceVersionCallable(const Model::ModifyServiceVersionRequest& request) const; + ReleaseServiceOutcome releaseService(const Model::ReleaseServiceRequest &request)const; + void releaseServiceAsync(const Model::ReleaseServiceRequest& request, const ReleaseServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ReleaseServiceOutcomeCallable releaseServiceCallable(const Model::ReleaseServiceRequest& request) const; + StartServiceOutcome startService(const Model::StartServiceRequest &request)const; + void startServiceAsync(const Model::StartServiceRequest& request, const StartServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartServiceOutcomeCallable startServiceCallable(const Model::StartServiceRequest& request) const; + StopServiceOutcome stopService(const Model::StopServiceRequest &request)const; + void stopServiceAsync(const Model::StopServiceRequest& request, const StopServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StopServiceOutcomeCallable stopServiceCallable(const Model::StopServiceRequest& request) const; + SyncServiceOutcome syncService(const Model::SyncServiceRequest &request)const; + void syncServiceAsync(const Model::SyncServiceRequest& request, const SyncServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SyncServiceOutcomeCallable syncServiceCallable(const Model::SyncServiceRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_EAS_EASCLIENT_H_ diff --git a/eas/include/alibabacloud/eas/EasExport.h b/eas/include/alibabacloud/eas/EasExport.h new file mode 100644 index 000000000..d7a85972e --- /dev/null +++ b/eas/include/alibabacloud/eas/EasExport.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_EAS_EASEXPORT_H_ +#define ALIBABACLOUD_EAS_EASEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_EAS_LIBRARY) +# define ALIBABACLOUD_EAS_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_EAS_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_EAS_EXPORT +#endif + +#endif // !ALIBABACLOUD_EAS_EASEXPORT_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/CheckServiceExistsRequest.h b/eas/include/alibabacloud/eas/model/CheckServiceExistsRequest.h new file mode 100644 index 000000000..b5144aafe --- /dev/null +++ b/eas/include/alibabacloud/eas/model/CheckServiceExistsRequest.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_EAS_MODEL_CHECKSERVICEEXISTSREQUEST_H_ +#define ALIBABACLOUD_EAS_MODEL_CHECKSERVICEEXISTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT CheckServiceExistsRequest : public RoaServiceRequest + { + + public: + CheckServiceExistsRequest(); + ~CheckServiceExistsRequest(); + + std::string getService_name()const; + void setService_name(const std::string& service_name); + std::string getRegion()const; + void setRegion(const std::string& region); + + private: + std::string service_name_; + std::string region_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_CHECKSERVICEEXISTSREQUEST_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/CheckServiceExistsResult.h b/eas/include/alibabacloud/eas/model/CheckServiceExistsResult.h new file mode 100644 index 000000000..4eb05b78b --- /dev/null +++ b/eas/include/alibabacloud/eas/model/CheckServiceExistsResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EAS_MODEL_CHECKSERVICEEXISTSRESULT_H_ +#define ALIBABACLOUD_EAS_MODEL_CHECKSERVICEEXISTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT CheckServiceExistsResult : public ServiceResult + { + public: + + + CheckServiceExistsResult(); + explicit CheckServiceExistsResult(const std::string &payload); + ~CheckServiceExistsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_CHECKSERVICEEXISTSRESULT_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/CreateNetworkInterfaceRequest.h b/eas/include/alibabacloud/eas/model/CreateNetworkInterfaceRequest.h new file mode 100644 index 000000000..da710a862 --- /dev/null +++ b/eas/include/alibabacloud/eas/model/CreateNetworkInterfaceRequest.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_EAS_MODEL_CREATENETWORKINTERFACEREQUEST_H_ +#define ALIBABACLOUD_EAS_MODEL_CREATENETWORKINTERFACEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT CreateNetworkInterfaceRequest : public RoaServiceRequest + { + + public: + CreateNetworkInterfaceRequest(); + ~CreateNetworkInterfaceRequest(); + + std::string getCluster_id()const; + void setCluster_id(const std::string& cluster_id); + std::string getResource_name()const; + void setResource_name(const std::string& resource_name); + + private: + std::string cluster_id_; + std::string resource_name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_CREATENETWORKINTERFACEREQUEST_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/CreateNetworkInterfaceResult.h b/eas/include/alibabacloud/eas/model/CreateNetworkInterfaceResult.h new file mode 100644 index 000000000..aab091e4b --- /dev/null +++ b/eas/include/alibabacloud/eas/model/CreateNetworkInterfaceResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EAS_MODEL_CREATENETWORKINTERFACERESULT_H_ +#define ALIBABACLOUD_EAS_MODEL_CREATENETWORKINTERFACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT CreateNetworkInterfaceResult : public ServiceResult + { + public: + + + CreateNetworkInterfaceResult(); + explicit CreateNetworkInterfaceResult(const std::string &payload); + ~CreateNetworkInterfaceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_CREATENETWORKINTERFACERESULT_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/CreateSLSRequest.h b/eas/include/alibabacloud/eas/model/CreateSLSRequest.h new file mode 100644 index 000000000..5d1e1ac1e --- /dev/null +++ b/eas/include/alibabacloud/eas/model/CreateSLSRequest.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_EAS_MODEL_CREATESLSREQUEST_H_ +#define ALIBABACLOUD_EAS_MODEL_CREATESLSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT CreateSLSRequest : public RoaServiceRequest + { + + public: + CreateSLSRequest(); + ~CreateSLSRequest(); + + std::string getCluster_id()const; + void setCluster_id(const std::string& cluster_id); + std::string getResource_name()const; + void setResource_name(const std::string& resource_name); + + private: + std::string cluster_id_; + std::string resource_name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_CREATESLSREQUEST_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/CreateSLSResult.h b/eas/include/alibabacloud/eas/model/CreateSLSResult.h new file mode 100644 index 000000000..82953f654 --- /dev/null +++ b/eas/include/alibabacloud/eas/model/CreateSLSResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EAS_MODEL_CREATESLSRESULT_H_ +#define ALIBABACLOUD_EAS_MODEL_CREATESLSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT CreateSLSResult : public ServiceResult + { + public: + + + CreateSLSResult(); + explicit CreateSLSResult(const std::string &payload); + ~CreateSLSResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_CREATESLSRESULT_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/CreateServiceRequest.h b/eas/include/alibabacloud/eas/model/CreateServiceRequest.h new file mode 100644 index 000000000..f2458d2e3 --- /dev/null +++ b/eas/include/alibabacloud/eas/model/CreateServiceRequest.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_EAS_MODEL_CREATESERVICEREQUEST_H_ +#define ALIBABACLOUD_EAS_MODEL_CREATESERVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT CreateServiceRequest : public RoaServiceRequest + { + + public: + CreateServiceRequest(); + ~CreateServiceRequest(); + + + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_CREATESERVICEREQUEST_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/CreateServiceResult.h b/eas/include/alibabacloud/eas/model/CreateServiceResult.h new file mode 100644 index 000000000..3c8bc748f --- /dev/null +++ b/eas/include/alibabacloud/eas/model/CreateServiceResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EAS_MODEL_CREATESERVICERESULT_H_ +#define ALIBABACLOUD_EAS_MODEL_CREATESERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT CreateServiceResult : public ServiceResult + { + public: + + + CreateServiceResult(); + explicit CreateServiceResult(const std::string &payload); + ~CreateServiceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_CREATESERVICERESULT_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/CreateTaskRequest.h b/eas/include/alibabacloud/eas/model/CreateTaskRequest.h new file mode 100644 index 000000000..6aab97b3c --- /dev/null +++ b/eas/include/alibabacloud/eas/model/CreateTaskRequest.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_EAS_MODEL_CREATETASKREQUEST_H_ +#define ALIBABACLOUD_EAS_MODEL_CREATETASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT CreateTaskRequest : public RoaServiceRequest + { + + public: + CreateTaskRequest(); + ~CreateTaskRequest(); + + + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_CREATETASKREQUEST_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/CreateTaskResult.h b/eas/include/alibabacloud/eas/model/CreateTaskResult.h new file mode 100644 index 000000000..653c3b859 --- /dev/null +++ b/eas/include/alibabacloud/eas/model/CreateTaskResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EAS_MODEL_CREATETASKRESULT_H_ +#define ALIBABACLOUD_EAS_MODEL_CREATETASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT CreateTaskResult : public ServiceResult + { + public: + + + CreateTaskResult(); + explicit CreateTaskResult(const std::string &payload); + ~CreateTaskResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_CREATETASKRESULT_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/DeleteResourceInstanceRequest.h b/eas/include/alibabacloud/eas/model/DeleteResourceInstanceRequest.h new file mode 100644 index 000000000..f1592ccaf --- /dev/null +++ b/eas/include/alibabacloud/eas/model/DeleteResourceInstanceRequest.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_EAS_MODEL_DELETERESOURCEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_EAS_MODEL_DELETERESOURCEINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT DeleteResourceInstanceRequest : public RoaServiceRequest + { + + public: + DeleteResourceInstanceRequest(); + ~DeleteResourceInstanceRequest(); + + std::string getCluster_id()const; + void setCluster_id(const std::string& cluster_id); + std::string getResource_name()const; + void setResource_name(const std::string& resource_name); + + private: + std::string cluster_id_; + std::string resource_name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_DELETERESOURCEINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/DeleteResourceInstanceResult.h b/eas/include/alibabacloud/eas/model/DeleteResourceInstanceResult.h new file mode 100644 index 000000000..15d68281a --- /dev/null +++ b/eas/include/alibabacloud/eas/model/DeleteResourceInstanceResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EAS_MODEL_DELETERESOURCEINSTANCERESULT_H_ +#define ALIBABACLOUD_EAS_MODEL_DELETERESOURCEINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT DeleteResourceInstanceResult : public ServiceResult + { + public: + + + DeleteResourceInstanceResult(); + explicit DeleteResourceInstanceResult(const std::string &payload); + ~DeleteResourceInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_DELETERESOURCEINSTANCERESULT_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/DeleteResourceRequest.h b/eas/include/alibabacloud/eas/model/DeleteResourceRequest.h new file mode 100644 index 000000000..4ea6e8b15 --- /dev/null +++ b/eas/include/alibabacloud/eas/model/DeleteResourceRequest.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_EAS_MODEL_DELETERESOURCEREQUEST_H_ +#define ALIBABACLOUD_EAS_MODEL_DELETERESOURCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT DeleteResourceRequest : public RoaServiceRequest + { + + public: + DeleteResourceRequest(); + ~DeleteResourceRequest(); + + std::string getCluster_id()const; + void setCluster_id(const std::string& cluster_id); + std::string getResource_name()const; + void setResource_name(const std::string& resource_name); + + private: + std::string cluster_id_; + std::string resource_name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_DELETERESOURCEREQUEST_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/DeleteResourceResult.h b/eas/include/alibabacloud/eas/model/DeleteResourceResult.h new file mode 100644 index 000000000..829d93414 --- /dev/null +++ b/eas/include/alibabacloud/eas/model/DeleteResourceResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EAS_MODEL_DELETERESOURCERESULT_H_ +#define ALIBABACLOUD_EAS_MODEL_DELETERESOURCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT DeleteResourceResult : public ServiceResult + { + public: + + + DeleteResourceResult(); + explicit DeleteResourceResult(const std::string &payload); + ~DeleteResourceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_DELETERESOURCERESULT_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/DeleteServiceRequest.h b/eas/include/alibabacloud/eas/model/DeleteServiceRequest.h new file mode 100644 index 000000000..6dc761e1e --- /dev/null +++ b/eas/include/alibabacloud/eas/model/DeleteServiceRequest.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_EAS_MODEL_DELETESERVICEREQUEST_H_ +#define ALIBABACLOUD_EAS_MODEL_DELETESERVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT DeleteServiceRequest : public RoaServiceRequest + { + + public: + DeleteServiceRequest(); + ~DeleteServiceRequest(); + + std::string getService_name()const; + void setService_name(const std::string& service_name); + std::string getRegion()const; + void setRegion(const std::string& region); + + private: + std::string service_name_; + std::string region_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_DELETESERVICEREQUEST_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/DeleteServiceResult.h b/eas/include/alibabacloud/eas/model/DeleteServiceResult.h new file mode 100644 index 000000000..c1c1b6ff7 --- /dev/null +++ b/eas/include/alibabacloud/eas/model/DeleteServiceResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EAS_MODEL_DELETESERVICERESULT_H_ +#define ALIBABACLOUD_EAS_MODEL_DELETESERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT DeleteServiceResult : public ServiceResult + { + public: + + + DeleteServiceResult(); + explicit DeleteServiceResult(const std::string &payload); + ~DeleteServiceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_DELETESERVICERESULT_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/DeleteTaskRequest.h b/eas/include/alibabacloud/eas/model/DeleteTaskRequest.h new file mode 100644 index 000000000..22b9aeb62 --- /dev/null +++ b/eas/include/alibabacloud/eas/model/DeleteTaskRequest.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_EAS_MODEL_DELETETASKREQUEST_H_ +#define ALIBABACLOUD_EAS_MODEL_DELETETASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT DeleteTaskRequest : public RoaServiceRequest + { + + public: + DeleteTaskRequest(); + ~DeleteTaskRequest(); + + std::string getTask_name()const; + void setTask_name(const std::string& task_name); + std::string getRegion()const; + void setRegion(const std::string& region); + + private: + std::string task_name_; + std::string region_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_DELETETASKREQUEST_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/DeleteTaskResult.h b/eas/include/alibabacloud/eas/model/DeleteTaskResult.h new file mode 100644 index 000000000..4269ec04f --- /dev/null +++ b/eas/include/alibabacloud/eas/model/DeleteTaskResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EAS_MODEL_DELETETASKRESULT_H_ +#define ALIBABACLOUD_EAS_MODEL_DELETETASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT DeleteTaskResult : public ServiceResult + { + public: + + + DeleteTaskResult(); + explicit DeleteTaskResult(const std::string &payload); + ~DeleteTaskResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_DELETETASKRESULT_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/GetAvailableRegionsRequest.h b/eas/include/alibabacloud/eas/model/GetAvailableRegionsRequest.h new file mode 100644 index 000000000..ea0509089 --- /dev/null +++ b/eas/include/alibabacloud/eas/model/GetAvailableRegionsRequest.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_EAS_MODEL_GETAVAILABLEREGIONSREQUEST_H_ +#define ALIBABACLOUD_EAS_MODEL_GETAVAILABLEREGIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT GetAvailableRegionsRequest : public RoaServiceRequest + { + + public: + GetAvailableRegionsRequest(); + ~GetAvailableRegionsRequest(); + + + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_GETAVAILABLEREGIONSREQUEST_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/GetAvailableRegionsResult.h b/eas/include/alibabacloud/eas/model/GetAvailableRegionsResult.h new file mode 100644 index 000000000..f8a7de794 --- /dev/null +++ b/eas/include/alibabacloud/eas/model/GetAvailableRegionsResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EAS_MODEL_GETAVAILABLEREGIONSRESULT_H_ +#define ALIBABACLOUD_EAS_MODEL_GETAVAILABLEREGIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT GetAvailableRegionsResult : public ServiceResult + { + public: + + + GetAvailableRegionsResult(); + explicit GetAvailableRegionsResult(const std::string &payload); + ~GetAvailableRegionsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_GETAVAILABLEREGIONSRESULT_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/GetNetworkInterfaceRequest.h b/eas/include/alibabacloud/eas/model/GetNetworkInterfaceRequest.h new file mode 100644 index 000000000..794307859 --- /dev/null +++ b/eas/include/alibabacloud/eas/model/GetNetworkInterfaceRequest.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_EAS_MODEL_GETNETWORKINTERFACEREQUEST_H_ +#define ALIBABACLOUD_EAS_MODEL_GETNETWORKINTERFACEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT GetNetworkInterfaceRequest : public RoaServiceRequest + { + + public: + GetNetworkInterfaceRequest(); + ~GetNetworkInterfaceRequest(); + + std::string getCluster_id()const; + void setCluster_id(const std::string& cluster_id); + std::string getResource_name()const; + void setResource_name(const std::string& resource_name); + + private: + std::string cluster_id_; + std::string resource_name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_GETNETWORKINTERFACEREQUEST_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/GetNetworkInterfaceResult.h b/eas/include/alibabacloud/eas/model/GetNetworkInterfaceResult.h new file mode 100644 index 000000000..e901771b4 --- /dev/null +++ b/eas/include/alibabacloud/eas/model/GetNetworkInterfaceResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EAS_MODEL_GETNETWORKINTERFACERESULT_H_ +#define ALIBABACLOUD_EAS_MODEL_GETNETWORKINTERFACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT GetNetworkInterfaceResult : public ServiceResult + { + public: + + + GetNetworkInterfaceResult(); + explicit GetNetworkInterfaceResult(const std::string &payload); + ~GetNetworkInterfaceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_GETNETWORKINTERFACERESULT_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/GetOrCreateResourceRequest.h b/eas/include/alibabacloud/eas/model/GetOrCreateResourceRequest.h new file mode 100644 index 000000000..cafd11fe7 --- /dev/null +++ b/eas/include/alibabacloud/eas/model/GetOrCreateResourceRequest.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_EAS_MODEL_GETORCREATERESOURCEREQUEST_H_ +#define ALIBABACLOUD_EAS_MODEL_GETORCREATERESOURCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT GetOrCreateResourceRequest : public RoaServiceRequest + { + + public: + GetOrCreateResourceRequest(); + ~GetOrCreateResourceRequest(); + + + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_GETORCREATERESOURCEREQUEST_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/GetOrCreateResourceResult.h b/eas/include/alibabacloud/eas/model/GetOrCreateResourceResult.h new file mode 100644 index 000000000..5cbb58f31 --- /dev/null +++ b/eas/include/alibabacloud/eas/model/GetOrCreateResourceResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EAS_MODEL_GETORCREATERESOURCERESULT_H_ +#define ALIBABACLOUD_EAS_MODEL_GETORCREATERESOURCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT GetOrCreateResourceResult : public ServiceResult + { + public: + + + GetOrCreateResourceResult(); + explicit GetOrCreateResourceResult(const std::string &payload); + ~GetOrCreateResourceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_GETORCREATERESOURCERESULT_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/GetOssAuthorizeRequest.h b/eas/include/alibabacloud/eas/model/GetOssAuthorizeRequest.h new file mode 100644 index 000000000..2ad9a22fd --- /dev/null +++ b/eas/include/alibabacloud/eas/model/GetOssAuthorizeRequest.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_EAS_MODEL_GETOSSAUTHORIZEREQUEST_H_ +#define ALIBABACLOUD_EAS_MODEL_GETOSSAUTHORIZEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT GetOssAuthorizeRequest : public RoaServiceRequest + { + + public: + GetOssAuthorizeRequest(); + ~GetOssAuthorizeRequest(); + + + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_GETOSSAUTHORIZEREQUEST_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/GetOssAuthorizeResult.h b/eas/include/alibabacloud/eas/model/GetOssAuthorizeResult.h new file mode 100644 index 000000000..45ba2d091 --- /dev/null +++ b/eas/include/alibabacloud/eas/model/GetOssAuthorizeResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EAS_MODEL_GETOSSAUTHORIZERESULT_H_ +#define ALIBABACLOUD_EAS_MODEL_GETOSSAUTHORIZERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT GetOssAuthorizeResult : public ServiceResult + { + public: + + + GetOssAuthorizeResult(); + explicit GetOssAuthorizeResult(const std::string &payload); + ~GetOssAuthorizeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_GETOSSAUTHORIZERESULT_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/GetResourceInstancesRequest.h b/eas/include/alibabacloud/eas/model/GetResourceInstancesRequest.h new file mode 100644 index 000000000..59ef472b3 --- /dev/null +++ b/eas/include/alibabacloud/eas/model/GetResourceInstancesRequest.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_EAS_MODEL_GETRESOURCEINSTANCESREQUEST_H_ +#define ALIBABACLOUD_EAS_MODEL_GETRESOURCEINSTANCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT GetResourceInstancesRequest : public RoaServiceRequest + { + + public: + GetResourceInstancesRequest(); + ~GetResourceInstancesRequest(); + + std::string getCluster_id()const; + void setCluster_id(const std::string& cluster_id); + std::string getResource_name()const; + void setResource_name(const std::string& resource_name); + + private: + std::string cluster_id_; + std::string resource_name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_GETRESOURCEINSTANCESREQUEST_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/GetResourceInstancesResult.h b/eas/include/alibabacloud/eas/model/GetResourceInstancesResult.h new file mode 100644 index 000000000..8a0da512c --- /dev/null +++ b/eas/include/alibabacloud/eas/model/GetResourceInstancesResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EAS_MODEL_GETRESOURCEINSTANCESRESULT_H_ +#define ALIBABACLOUD_EAS_MODEL_GETRESOURCEINSTANCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT GetResourceInstancesResult : public ServiceResult + { + public: + + + GetResourceInstancesResult(); + explicit GetResourceInstancesResult(const std::string &payload); + ~GetResourceInstancesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_GETRESOURCEINSTANCESRESULT_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/GetResourcePodsRequest.h b/eas/include/alibabacloud/eas/model/GetResourcePodsRequest.h new file mode 100644 index 000000000..956652654 --- /dev/null +++ b/eas/include/alibabacloud/eas/model/GetResourcePodsRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EAS_MODEL_GETRESOURCEPODSREQUEST_H_ +#define ALIBABACLOUD_EAS_MODEL_GETRESOURCEPODSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT GetResourcePodsRequest : public RoaServiceRequest + { + + public: + GetResourcePodsRequest(); + ~GetResourcePodsRequest(); + + std::string getCluster_id()const; + void setCluster_id(const std::string& cluster_id); + std::string getInstance_name()const; + void setInstance_name(const std::string& instance_name); + std::string getResource_name()const; + void setResource_name(const std::string& resource_name); + + private: + std::string cluster_id_; + std::string instance_name_; + std::string resource_name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_GETRESOURCEPODSREQUEST_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/GetResourcePodsResult.h b/eas/include/alibabacloud/eas/model/GetResourcePodsResult.h new file mode 100644 index 000000000..d6d16c901 --- /dev/null +++ b/eas/include/alibabacloud/eas/model/GetResourcePodsResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EAS_MODEL_GETRESOURCEPODSRESULT_H_ +#define ALIBABACLOUD_EAS_MODEL_GETRESOURCEPODSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT GetResourcePodsResult : public ServiceResult + { + public: + + + GetResourcePodsResult(); + explicit GetResourcePodsResult(const std::string &payload); + ~GetResourcePodsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_GETRESOURCEPODSRESULT_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/GetResourceServicesRequest.h b/eas/include/alibabacloud/eas/model/GetResourceServicesRequest.h new file mode 100644 index 000000000..b9adb3f52 --- /dev/null +++ b/eas/include/alibabacloud/eas/model/GetResourceServicesRequest.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_EAS_MODEL_GETRESOURCESERVICESREQUEST_H_ +#define ALIBABACLOUD_EAS_MODEL_GETRESOURCESERVICESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT GetResourceServicesRequest : public RoaServiceRequest + { + + public: + GetResourceServicesRequest(); + ~GetResourceServicesRequest(); + + std::string getCluster_id()const; + void setCluster_id(const std::string& cluster_id); + std::string getResource_name()const; + void setResource_name(const std::string& resource_name); + + private: + std::string cluster_id_; + std::string resource_name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_GETRESOURCESERVICESREQUEST_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/GetResourceServicesResult.h b/eas/include/alibabacloud/eas/model/GetResourceServicesResult.h new file mode 100644 index 000000000..f8b55b505 --- /dev/null +++ b/eas/include/alibabacloud/eas/model/GetResourceServicesResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EAS_MODEL_GETRESOURCESERVICESRESULT_H_ +#define ALIBABACLOUD_EAS_MODEL_GETRESOURCESERVICESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT GetResourceServicesResult : public ServiceResult + { + public: + + + GetResourceServicesResult(); + explicit GetResourceServicesResult(const std::string &payload); + ~GetResourceServicesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_GETRESOURCESERVICESRESULT_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/GetResourceStatusRequest.h b/eas/include/alibabacloud/eas/model/GetResourceStatusRequest.h new file mode 100644 index 000000000..9e14c94e5 --- /dev/null +++ b/eas/include/alibabacloud/eas/model/GetResourceStatusRequest.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_EAS_MODEL_GETRESOURCESTATUSREQUEST_H_ +#define ALIBABACLOUD_EAS_MODEL_GETRESOURCESTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT GetResourceStatusRequest : public RoaServiceRequest + { + + public: + GetResourceStatusRequest(); + ~GetResourceStatusRequest(); + + std::string getCluster_id()const; + void setCluster_id(const std::string& cluster_id); + std::string getResource_name()const; + void setResource_name(const std::string& resource_name); + + private: + std::string cluster_id_; + std::string resource_name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_GETRESOURCESTATUSREQUEST_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/GetResourceStatusResult.h b/eas/include/alibabacloud/eas/model/GetResourceStatusResult.h new file mode 100644 index 000000000..5de7ee49f --- /dev/null +++ b/eas/include/alibabacloud/eas/model/GetResourceStatusResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EAS_MODEL_GETRESOURCESTATUSRESULT_H_ +#define ALIBABACLOUD_EAS_MODEL_GETRESOURCESTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT GetResourceStatusResult : public ServiceResult + { + public: + + + GetResourceStatusResult(); + explicit GetResourceStatusResult(const std::string &payload); + ~GetResourceStatusResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_GETRESOURCESTATUSRESULT_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/GetServiceRegionRequest.h b/eas/include/alibabacloud/eas/model/GetServiceRegionRequest.h new file mode 100644 index 000000000..0d4484c3f --- /dev/null +++ b/eas/include/alibabacloud/eas/model/GetServiceRegionRequest.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_EAS_MODEL_GETSERVICEREGIONREQUEST_H_ +#define ALIBABACLOUD_EAS_MODEL_GETSERVICEREGIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT GetServiceRegionRequest : public RoaServiceRequest + { + + public: + GetServiceRegionRequest(); + ~GetServiceRegionRequest(); + + + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_GETSERVICEREGIONREQUEST_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/GetServiceRegionResult.h b/eas/include/alibabacloud/eas/model/GetServiceRegionResult.h new file mode 100644 index 000000000..138afa046 --- /dev/null +++ b/eas/include/alibabacloud/eas/model/GetServiceRegionResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EAS_MODEL_GETSERVICEREGIONRESULT_H_ +#define ALIBABACLOUD_EAS_MODEL_GETSERVICEREGIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT GetServiceRegionResult : public ServiceResult + { + public: + + + GetServiceRegionResult(); + explicit GetServiceRegionResult(const std::string &payload); + ~GetServiceRegionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_GETSERVICEREGIONRESULT_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/GetServiceRequest.h b/eas/include/alibabacloud/eas/model/GetServiceRequest.h new file mode 100644 index 000000000..f7688af1c --- /dev/null +++ b/eas/include/alibabacloud/eas/model/GetServiceRequest.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_EAS_MODEL_GETSERVICEREQUEST_H_ +#define ALIBABACLOUD_EAS_MODEL_GETSERVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT GetServiceRequest : public RoaServiceRequest + { + + public: + GetServiceRequest(); + ~GetServiceRequest(); + + std::string getService_name()const; + void setService_name(const std::string& service_name); + std::string getRegion()const; + void setRegion(const std::string& region); + + private: + std::string service_name_; + std::string region_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_GETSERVICEREQUEST_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/GetServiceResult.h b/eas/include/alibabacloud/eas/model/GetServiceResult.h new file mode 100644 index 000000000..27edcdc10 --- /dev/null +++ b/eas/include/alibabacloud/eas/model/GetServiceResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EAS_MODEL_GETSERVICERESULT_H_ +#define ALIBABACLOUD_EAS_MODEL_GETSERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT GetServiceResult : public ServiceResult + { + public: + + + GetServiceResult(); + explicit GetServiceResult(const std::string &payload); + ~GetServiceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_GETSERVICERESULT_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/GetServiceStatisticsRequest.h b/eas/include/alibabacloud/eas/model/GetServiceStatisticsRequest.h new file mode 100644 index 000000000..162d836e2 --- /dev/null +++ b/eas/include/alibabacloud/eas/model/GetServiceStatisticsRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EAS_MODEL_GETSERVICESTATISTICSREQUEST_H_ +#define ALIBABACLOUD_EAS_MODEL_GETSERVICESTATISTICSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT GetServiceStatisticsRequest : public RoaServiceRequest + { + + public: + GetServiceStatisticsRequest(); + ~GetServiceStatisticsRequest(); + + std::string getMetric()const; + void setMetric(const std::string& metric); + std::string getService_name()const; + void setService_name(const std::string& service_name); + int getCount()const; + void setCount(int count); + std::string getFrom()const; + void setFrom(const std::string& from); + std::string getTo()const; + void setTo(const std::string& to); + std::string getRegion()const; + void setRegion(const std::string& region); + + private: + std::string metric_; + std::string service_name_; + int count_; + std::string from_; + std::string to_; + std::string region_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_GETSERVICESTATISTICSREQUEST_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/GetServiceStatisticsResult.h b/eas/include/alibabacloud/eas/model/GetServiceStatisticsResult.h new file mode 100644 index 000000000..4b082afe6 --- /dev/null +++ b/eas/include/alibabacloud/eas/model/GetServiceStatisticsResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EAS_MODEL_GETSERVICESTATISTICSRESULT_H_ +#define ALIBABACLOUD_EAS_MODEL_GETSERVICESTATISTICSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT GetServiceStatisticsResult : public ServiceResult + { + public: + + + GetServiceStatisticsResult(); + explicit GetServiceStatisticsResult(const std::string &payload); + ~GetServiceStatisticsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_GETSERVICESTATISTICSRESULT_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/GetServiceTokenRequest.h b/eas/include/alibabacloud/eas/model/GetServiceTokenRequest.h new file mode 100644 index 000000000..631a59fdc --- /dev/null +++ b/eas/include/alibabacloud/eas/model/GetServiceTokenRequest.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_EAS_MODEL_GETSERVICETOKENREQUEST_H_ +#define ALIBABACLOUD_EAS_MODEL_GETSERVICETOKENREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT GetServiceTokenRequest : public RoaServiceRequest + { + + public: + GetServiceTokenRequest(); + ~GetServiceTokenRequest(); + + std::string getService_name()const; + void setService_name(const std::string& service_name); + std::string getRegion()const; + void setRegion(const std::string& region); + + private: + std::string service_name_; + std::string region_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_GETSERVICETOKENREQUEST_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/GetServiceTokenResult.h b/eas/include/alibabacloud/eas/model/GetServiceTokenResult.h new file mode 100644 index 000000000..058dcf1f5 --- /dev/null +++ b/eas/include/alibabacloud/eas/model/GetServiceTokenResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EAS_MODEL_GETSERVICETOKENRESULT_H_ +#define ALIBABACLOUD_EAS_MODEL_GETSERVICETOKENRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT GetServiceTokenResult : public ServiceResult + { + public: + + + GetServiceTokenResult(); + explicit GetServiceTokenResult(const std::string &payload); + ~GetServiceTokenResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_GETSERVICETOKENRESULT_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/GetServiceVersionRequest.h b/eas/include/alibabacloud/eas/model/GetServiceVersionRequest.h new file mode 100644 index 000000000..1a323973c --- /dev/null +++ b/eas/include/alibabacloud/eas/model/GetServiceVersionRequest.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_EAS_MODEL_GETSERVICEVERSIONREQUEST_H_ +#define ALIBABACLOUD_EAS_MODEL_GETSERVICEVERSIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT GetServiceVersionRequest : public RoaServiceRequest + { + + public: + GetServiceVersionRequest(); + ~GetServiceVersionRequest(); + + std::string getService_name()const; + void setService_name(const std::string& service_name); + std::string getRegion()const; + void setRegion(const std::string& region); + + private: + std::string service_name_; + std::string region_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_GETSERVICEVERSIONREQUEST_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/GetServiceVersionResult.h b/eas/include/alibabacloud/eas/model/GetServiceVersionResult.h new file mode 100644 index 000000000..8c749ad45 --- /dev/null +++ b/eas/include/alibabacloud/eas/model/GetServiceVersionResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EAS_MODEL_GETSERVICEVERSIONRESULT_H_ +#define ALIBABACLOUD_EAS_MODEL_GETSERVICEVERSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT GetServiceVersionResult : public ServiceResult + { + public: + + + GetServiceVersionResult(); + explicit GetServiceVersionResult(const std::string &payload); + ~GetServiceVersionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_GETSERVICEVERSIONRESULT_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/GetServiceWorkerRequest.h b/eas/include/alibabacloud/eas/model/GetServiceWorkerRequest.h new file mode 100644 index 000000000..990cd6a2c --- /dev/null +++ b/eas/include/alibabacloud/eas/model/GetServiceWorkerRequest.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_EAS_MODEL_GETSERVICEWORKERREQUEST_H_ +#define ALIBABACLOUD_EAS_MODEL_GETSERVICEWORKERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT GetServiceWorkerRequest : public RoaServiceRequest + { + + public: + GetServiceWorkerRequest(); + ~GetServiceWorkerRequest(); + + std::string getService_name()const; + void setService_name(const std::string& service_name); + std::string getRegion()const; + void setRegion(const std::string& region); + + private: + std::string service_name_; + std::string region_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_GETSERVICEWORKERREQUEST_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/GetServiceWorkerResult.h b/eas/include/alibabacloud/eas/model/GetServiceWorkerResult.h new file mode 100644 index 000000000..103f5a72b --- /dev/null +++ b/eas/include/alibabacloud/eas/model/GetServiceWorkerResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EAS_MODEL_GETSERVICEWORKERRESULT_H_ +#define ALIBABACLOUD_EAS_MODEL_GETSERVICEWORKERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT GetServiceWorkerResult : public ServiceResult + { + public: + + + GetServiceWorkerResult(); + explicit GetServiceWorkerResult(const std::string &payload); + ~GetServiceWorkerResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_GETSERVICEWORKERRESULT_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/GetTaskRequest.h b/eas/include/alibabacloud/eas/model/GetTaskRequest.h new file mode 100644 index 000000000..58ba18e97 --- /dev/null +++ b/eas/include/alibabacloud/eas/model/GetTaskRequest.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_EAS_MODEL_GETTASKREQUEST_H_ +#define ALIBABACLOUD_EAS_MODEL_GETTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT GetTaskRequest : public RoaServiceRequest + { + + public: + GetTaskRequest(); + ~GetTaskRequest(); + + std::string getTask_name()const; + void setTask_name(const std::string& task_name); + std::string getRegion()const; + void setRegion(const std::string& region); + + private: + std::string task_name_; + std::string region_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_GETTASKREQUEST_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/GetTaskResult.h b/eas/include/alibabacloud/eas/model/GetTaskResult.h new file mode 100644 index 000000000..e4d8ca26b --- /dev/null +++ b/eas/include/alibabacloud/eas/model/GetTaskResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EAS_MODEL_GETTASKRESULT_H_ +#define ALIBABACLOUD_EAS_MODEL_GETTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT GetTaskResult : public ServiceResult + { + public: + + + GetTaskResult(); + explicit GetTaskResult(const std::string &payload); + ~GetTaskResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_GETTASKRESULT_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/ListServicesRequest.h b/eas/include/alibabacloud/eas/model/ListServicesRequest.h new file mode 100644 index 000000000..10531543b --- /dev/null +++ b/eas/include/alibabacloud/eas/model/ListServicesRequest.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_EAS_MODEL_LISTSERVICESREQUEST_H_ +#define ALIBABACLOUD_EAS_MODEL_LISTSERVICESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT ListServicesRequest : public RoaServiceRequest + { + + public: + ListServicesRequest(); + ~ListServicesRequest(); + + std::string getFilter()const; + void setFilter(const std::string& filter); + std::string getSort()const; + void setSort(const std::string& sort); + + private: + std::string filter_; + std::string sort_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_LISTSERVICESREQUEST_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/ListServicesResult.h b/eas/include/alibabacloud/eas/model/ListServicesResult.h new file mode 100644 index 000000000..f53992f7e --- /dev/null +++ b/eas/include/alibabacloud/eas/model/ListServicesResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EAS_MODEL_LISTSERVICESRESULT_H_ +#define ALIBABACLOUD_EAS_MODEL_LISTSERVICESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT ListServicesResult : public ServiceResult + { + public: + + + ListServicesResult(); + explicit ListServicesResult(const std::string &payload); + ~ListServicesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_LISTSERVICESRESULT_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/ListTasksRequest.h b/eas/include/alibabacloud/eas/model/ListTasksRequest.h new file mode 100644 index 000000000..9f27af40f --- /dev/null +++ b/eas/include/alibabacloud/eas/model/ListTasksRequest.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_EAS_MODEL_LISTTASKSREQUEST_H_ +#define ALIBABACLOUD_EAS_MODEL_LISTTASKSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT ListTasksRequest : public RoaServiceRequest + { + + public: + ListTasksRequest(); + ~ListTasksRequest(); + + std::string getFilter()const; + void setFilter(const std::string& filter); + std::string getPageSize()const; + void setPageSize(const std::string& pageSize); + std::string getSort()const; + void setSort(const std::string& sort); + std::string getPageNum()const; + void setPageNum(const std::string& pageNum); + + private: + std::string filter_; + std::string pageSize_; + std::string sort_; + std::string pageNum_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_LISTTASKSREQUEST_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/ListTasksResult.h b/eas/include/alibabacloud/eas/model/ListTasksResult.h new file mode 100644 index 000000000..128803b56 --- /dev/null +++ b/eas/include/alibabacloud/eas/model/ListTasksResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EAS_MODEL_LISTTASKSRESULT_H_ +#define ALIBABACLOUD_EAS_MODEL_LISTTASKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT ListTasksResult : public ServiceResult + { + public: + + + ListTasksResult(); + explicit ListTasksResult(const std::string &payload); + ~ListTasksResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_LISTTASKSRESULT_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/ListVIndexRequest.h b/eas/include/alibabacloud/eas/model/ListVIndexRequest.h new file mode 100644 index 000000000..fd4fda2d9 --- /dev/null +++ b/eas/include/alibabacloud/eas/model/ListVIndexRequest.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_EAS_MODEL_LISTVINDEXREQUEST_H_ +#define ALIBABACLOUD_EAS_MODEL_LISTVINDEXREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT ListVIndexRequest : public RoaServiceRequest + { + + public: + ListVIndexRequest(); + ~ListVIndexRequest(); + + + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_LISTVINDEXREQUEST_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/ListVIndexResult.h b/eas/include/alibabacloud/eas/model/ListVIndexResult.h new file mode 100644 index 000000000..35ab127ef --- /dev/null +++ b/eas/include/alibabacloud/eas/model/ListVIndexResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EAS_MODEL_LISTVINDEXRESULT_H_ +#define ALIBABACLOUD_EAS_MODEL_LISTVINDEXRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT ListVIndexResult : public ServiceResult + { + public: + + + ListVIndexResult(); + explicit ListVIndexResult(const std::string &payload); + ~ListVIndexResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_LISTVINDEXRESULT_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/ModifyServiceRequest.h b/eas/include/alibabacloud/eas/model/ModifyServiceRequest.h new file mode 100644 index 000000000..2404600bb --- /dev/null +++ b/eas/include/alibabacloud/eas/model/ModifyServiceRequest.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_EAS_MODEL_MODIFYSERVICEREQUEST_H_ +#define ALIBABACLOUD_EAS_MODEL_MODIFYSERVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT ModifyServiceRequest : public RoaServiceRequest + { + + public: + ModifyServiceRequest(); + ~ModifyServiceRequest(); + + std::string getService_name()const; + void setService_name(const std::string& service_name); + std::string getRegion()const; + void setRegion(const std::string& region); + + private: + std::string service_name_; + std::string region_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_MODIFYSERVICEREQUEST_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/ModifyServiceResult.h b/eas/include/alibabacloud/eas/model/ModifyServiceResult.h new file mode 100644 index 000000000..b877ecf5e --- /dev/null +++ b/eas/include/alibabacloud/eas/model/ModifyServiceResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EAS_MODEL_MODIFYSERVICERESULT_H_ +#define ALIBABACLOUD_EAS_MODEL_MODIFYSERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT ModifyServiceResult : public ServiceResult + { + public: + + + ModifyServiceResult(); + explicit ModifyServiceResult(const std::string &payload); + ~ModifyServiceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_MODIFYSERVICERESULT_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/ModifyServiceVersionRequest.h b/eas/include/alibabacloud/eas/model/ModifyServiceVersionRequest.h new file mode 100644 index 000000000..3395ddd68 --- /dev/null +++ b/eas/include/alibabacloud/eas/model/ModifyServiceVersionRequest.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_EAS_MODEL_MODIFYSERVICEVERSIONREQUEST_H_ +#define ALIBABACLOUD_EAS_MODEL_MODIFYSERVICEVERSIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT ModifyServiceVersionRequest : public RoaServiceRequest + { + + public: + ModifyServiceVersionRequest(); + ~ModifyServiceVersionRequest(); + + std::string getService_name()const; + void setService_name(const std::string& service_name); + std::string getRegion()const; + void setRegion(const std::string& region); + + private: + std::string service_name_; + std::string region_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_MODIFYSERVICEVERSIONREQUEST_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/ModifyServiceVersionResult.h b/eas/include/alibabacloud/eas/model/ModifyServiceVersionResult.h new file mode 100644 index 000000000..e6cfd584f --- /dev/null +++ b/eas/include/alibabacloud/eas/model/ModifyServiceVersionResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EAS_MODEL_MODIFYSERVICEVERSIONRESULT_H_ +#define ALIBABACLOUD_EAS_MODEL_MODIFYSERVICEVERSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT ModifyServiceVersionResult : public ServiceResult + { + public: + + + ModifyServiceVersionResult(); + explicit ModifyServiceVersionResult(const std::string &payload); + ~ModifyServiceVersionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_MODIFYSERVICEVERSIONRESULT_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/ReleaseServiceRequest.h b/eas/include/alibabacloud/eas/model/ReleaseServiceRequest.h new file mode 100644 index 000000000..11721d024 --- /dev/null +++ b/eas/include/alibabacloud/eas/model/ReleaseServiceRequest.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_EAS_MODEL_RELEASESERVICEREQUEST_H_ +#define ALIBABACLOUD_EAS_MODEL_RELEASESERVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT ReleaseServiceRequest : public RoaServiceRequest + { + + public: + ReleaseServiceRequest(); + ~ReleaseServiceRequest(); + + std::string getService_name()const; + void setService_name(const std::string& service_name); + std::string getRegion()const; + void setRegion(const std::string& region); + + private: + std::string service_name_; + std::string region_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_RELEASESERVICEREQUEST_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/ReleaseServiceResult.h b/eas/include/alibabacloud/eas/model/ReleaseServiceResult.h new file mode 100644 index 000000000..8c0f2790d --- /dev/null +++ b/eas/include/alibabacloud/eas/model/ReleaseServiceResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EAS_MODEL_RELEASESERVICERESULT_H_ +#define ALIBABACLOUD_EAS_MODEL_RELEASESERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT ReleaseServiceResult : public ServiceResult + { + public: + + + ReleaseServiceResult(); + explicit ReleaseServiceResult(const std::string &payload); + ~ReleaseServiceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_RELEASESERVICERESULT_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/StartServiceRequest.h b/eas/include/alibabacloud/eas/model/StartServiceRequest.h new file mode 100644 index 000000000..cdb0ba230 --- /dev/null +++ b/eas/include/alibabacloud/eas/model/StartServiceRequest.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_EAS_MODEL_STARTSERVICEREQUEST_H_ +#define ALIBABACLOUD_EAS_MODEL_STARTSERVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT StartServiceRequest : public RoaServiceRequest + { + + public: + StartServiceRequest(); + ~StartServiceRequest(); + + std::string getService_name()const; + void setService_name(const std::string& service_name); + std::string getRegion()const; + void setRegion(const std::string& region); + + private: + std::string service_name_; + std::string region_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_STARTSERVICEREQUEST_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/StartServiceResult.h b/eas/include/alibabacloud/eas/model/StartServiceResult.h new file mode 100644 index 000000000..07a339998 --- /dev/null +++ b/eas/include/alibabacloud/eas/model/StartServiceResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EAS_MODEL_STARTSERVICERESULT_H_ +#define ALIBABACLOUD_EAS_MODEL_STARTSERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT StartServiceResult : public ServiceResult + { + public: + + + StartServiceResult(); + explicit StartServiceResult(const std::string &payload); + ~StartServiceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_STARTSERVICERESULT_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/StopServiceRequest.h b/eas/include/alibabacloud/eas/model/StopServiceRequest.h new file mode 100644 index 000000000..12de99446 --- /dev/null +++ b/eas/include/alibabacloud/eas/model/StopServiceRequest.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_EAS_MODEL_STOPSERVICEREQUEST_H_ +#define ALIBABACLOUD_EAS_MODEL_STOPSERVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT StopServiceRequest : public RoaServiceRequest + { + + public: + StopServiceRequest(); + ~StopServiceRequest(); + + std::string getService_name()const; + void setService_name(const std::string& service_name); + std::string getRegion()const; + void setRegion(const std::string& region); + + private: + std::string service_name_; + std::string region_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_STOPSERVICEREQUEST_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/StopServiceResult.h b/eas/include/alibabacloud/eas/model/StopServiceResult.h new file mode 100644 index 000000000..9452d26fa --- /dev/null +++ b/eas/include/alibabacloud/eas/model/StopServiceResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EAS_MODEL_STOPSERVICERESULT_H_ +#define ALIBABACLOUD_EAS_MODEL_STOPSERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT StopServiceResult : public ServiceResult + { + public: + + + StopServiceResult(); + explicit StopServiceResult(const std::string &payload); + ~StopServiceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_STOPSERVICERESULT_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/SyncServiceRequest.h b/eas/include/alibabacloud/eas/model/SyncServiceRequest.h new file mode 100644 index 000000000..acee24a84 --- /dev/null +++ b/eas/include/alibabacloud/eas/model/SyncServiceRequest.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_EAS_MODEL_SYNCSERVICEREQUEST_H_ +#define ALIBABACLOUD_EAS_MODEL_SYNCSERVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT SyncServiceRequest : public RoaServiceRequest + { + + public: + SyncServiceRequest(); + ~SyncServiceRequest(); + + std::string getService_name()const; + void setService_name(const std::string& service_name); + std::string getRegion()const; + void setRegion(const std::string& region); + + private: + std::string service_name_; + std::string region_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_SYNCSERVICEREQUEST_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/SyncServiceResult.h b/eas/include/alibabacloud/eas/model/SyncServiceResult.h new file mode 100644 index 000000000..7d2f9ea3b --- /dev/null +++ b/eas/include/alibabacloud/eas/model/SyncServiceResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EAS_MODEL_SYNCSERVICERESULT_H_ +#define ALIBABACLOUD_EAS_MODEL_SYNCSERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT SyncServiceResult : public ServiceResult + { + public: + + + SyncServiceResult(); + explicit SyncServiceResult(const std::string &payload); + ~SyncServiceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_SYNCSERVICERESULT_H_ \ No newline at end of file diff --git a/eas/src/EasClient.cc b/eas/src/EasClient.cc new file mode 100644 index 000000000..42b3ed9d5 --- /dev/null +++ b/eas/src/EasClient.cc @@ -0,0 +1,1241 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas; +using namespace AlibabaCloud::Eas::Model; + +namespace +{ + const std::string SERVICE_NAME = "eas"; +} + +EasClient::EasClient(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, ""); +} + +EasClient::EasClient(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, ""); +} + +EasClient::EasClient(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, ""); +} + +EasClient::~EasClient() +{} + +EasClient::CheckServiceExistsOutcome EasClient::checkServiceExists(const CheckServiceExistsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CheckServiceExistsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CheckServiceExistsOutcome(CheckServiceExistsResult(outcome.result())); + else + return CheckServiceExistsOutcome(outcome.error()); +} + +void EasClient::checkServiceExistsAsync(const CheckServiceExistsRequest& request, const CheckServiceExistsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, checkServiceExists(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EasClient::CheckServiceExistsOutcomeCallable EasClient::checkServiceExistsCallable(const CheckServiceExistsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->checkServiceExists(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EasClient::CreateNetworkInterfaceOutcome EasClient::createNetworkInterface(const CreateNetworkInterfaceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateNetworkInterfaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateNetworkInterfaceOutcome(CreateNetworkInterfaceResult(outcome.result())); + else + return CreateNetworkInterfaceOutcome(outcome.error()); +} + +void EasClient::createNetworkInterfaceAsync(const CreateNetworkInterfaceRequest& request, const CreateNetworkInterfaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createNetworkInterface(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EasClient::CreateNetworkInterfaceOutcomeCallable EasClient::createNetworkInterfaceCallable(const CreateNetworkInterfaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createNetworkInterface(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EasClient::CreateSLSOutcome EasClient::createSLS(const CreateSLSRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateSLSOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateSLSOutcome(CreateSLSResult(outcome.result())); + else + return CreateSLSOutcome(outcome.error()); +} + +void EasClient::createSLSAsync(const CreateSLSRequest& request, const CreateSLSAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createSLS(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EasClient::CreateSLSOutcomeCallable EasClient::createSLSCallable(const CreateSLSRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createSLS(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EasClient::CreateServiceOutcome EasClient::createService(const CreateServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateServiceOutcome(CreateServiceResult(outcome.result())); + else + return CreateServiceOutcome(outcome.error()); +} + +void EasClient::createServiceAsync(const CreateServiceRequest& request, const CreateServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EasClient::CreateServiceOutcomeCallable EasClient::createServiceCallable(const CreateServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EasClient::CreateTaskOutcome EasClient::createTask(const CreateTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateTaskOutcome(CreateTaskResult(outcome.result())); + else + return CreateTaskOutcome(outcome.error()); +} + +void EasClient::createTaskAsync(const CreateTaskRequest& request, const CreateTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EasClient::CreateTaskOutcomeCallable EasClient::createTaskCallable(const CreateTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EasClient::DeleteResourceOutcome EasClient::deleteResource(const DeleteResourceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteResourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteResourceOutcome(DeleteResourceResult(outcome.result())); + else + return DeleteResourceOutcome(outcome.error()); +} + +void EasClient::deleteResourceAsync(const DeleteResourceRequest& request, const DeleteResourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteResource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EasClient::DeleteResourceOutcomeCallable EasClient::deleteResourceCallable(const DeleteResourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteResource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EasClient::DeleteResourceInstanceOutcome EasClient::deleteResourceInstance(const DeleteResourceInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteResourceInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteResourceInstanceOutcome(DeleteResourceInstanceResult(outcome.result())); + else + return DeleteResourceInstanceOutcome(outcome.error()); +} + +void EasClient::deleteResourceInstanceAsync(const DeleteResourceInstanceRequest& request, const DeleteResourceInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteResourceInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EasClient::DeleteResourceInstanceOutcomeCallable EasClient::deleteResourceInstanceCallable(const DeleteResourceInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteResourceInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EasClient::DeleteServiceOutcome EasClient::deleteService(const DeleteServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteServiceOutcome(DeleteServiceResult(outcome.result())); + else + return DeleteServiceOutcome(outcome.error()); +} + +void EasClient::deleteServiceAsync(const DeleteServiceRequest& request, const DeleteServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EasClient::DeleteServiceOutcomeCallable EasClient::deleteServiceCallable(const DeleteServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EasClient::DeleteTaskOutcome EasClient::deleteTask(const DeleteTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteTaskOutcome(DeleteTaskResult(outcome.result())); + else + return DeleteTaskOutcome(outcome.error()); +} + +void EasClient::deleteTaskAsync(const DeleteTaskRequest& request, const DeleteTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EasClient::DeleteTaskOutcomeCallable EasClient::deleteTaskCallable(const DeleteTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EasClient::GetAvailableRegionsOutcome EasClient::getAvailableRegions(const GetAvailableRegionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAvailableRegionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAvailableRegionsOutcome(GetAvailableRegionsResult(outcome.result())); + else + return GetAvailableRegionsOutcome(outcome.error()); +} + +void EasClient::getAvailableRegionsAsync(const GetAvailableRegionsRequest& request, const GetAvailableRegionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAvailableRegions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EasClient::GetAvailableRegionsOutcomeCallable EasClient::getAvailableRegionsCallable(const GetAvailableRegionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAvailableRegions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EasClient::GetNetworkInterfaceOutcome EasClient::getNetworkInterface(const GetNetworkInterfaceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetNetworkInterfaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetNetworkInterfaceOutcome(GetNetworkInterfaceResult(outcome.result())); + else + return GetNetworkInterfaceOutcome(outcome.error()); +} + +void EasClient::getNetworkInterfaceAsync(const GetNetworkInterfaceRequest& request, const GetNetworkInterfaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getNetworkInterface(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EasClient::GetNetworkInterfaceOutcomeCallable EasClient::getNetworkInterfaceCallable(const GetNetworkInterfaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getNetworkInterface(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EasClient::GetOrCreateResourceOutcome EasClient::getOrCreateResource(const GetOrCreateResourceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetOrCreateResourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetOrCreateResourceOutcome(GetOrCreateResourceResult(outcome.result())); + else + return GetOrCreateResourceOutcome(outcome.error()); +} + +void EasClient::getOrCreateResourceAsync(const GetOrCreateResourceRequest& request, const GetOrCreateResourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getOrCreateResource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EasClient::GetOrCreateResourceOutcomeCallable EasClient::getOrCreateResourceCallable(const GetOrCreateResourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getOrCreateResource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EasClient::GetOssAuthorizeOutcome EasClient::getOssAuthorize(const GetOssAuthorizeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetOssAuthorizeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetOssAuthorizeOutcome(GetOssAuthorizeResult(outcome.result())); + else + return GetOssAuthorizeOutcome(outcome.error()); +} + +void EasClient::getOssAuthorizeAsync(const GetOssAuthorizeRequest& request, const GetOssAuthorizeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getOssAuthorize(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EasClient::GetOssAuthorizeOutcomeCallable EasClient::getOssAuthorizeCallable(const GetOssAuthorizeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getOssAuthorize(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EasClient::GetResourceInstancesOutcome EasClient::getResourceInstances(const GetResourceInstancesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetResourceInstancesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetResourceInstancesOutcome(GetResourceInstancesResult(outcome.result())); + else + return GetResourceInstancesOutcome(outcome.error()); +} + +void EasClient::getResourceInstancesAsync(const GetResourceInstancesRequest& request, const GetResourceInstancesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getResourceInstances(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EasClient::GetResourceInstancesOutcomeCallable EasClient::getResourceInstancesCallable(const GetResourceInstancesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getResourceInstances(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EasClient::GetResourcePodsOutcome EasClient::getResourcePods(const GetResourcePodsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetResourcePodsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetResourcePodsOutcome(GetResourcePodsResult(outcome.result())); + else + return GetResourcePodsOutcome(outcome.error()); +} + +void EasClient::getResourcePodsAsync(const GetResourcePodsRequest& request, const GetResourcePodsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getResourcePods(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EasClient::GetResourcePodsOutcomeCallable EasClient::getResourcePodsCallable(const GetResourcePodsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getResourcePods(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EasClient::GetResourceServicesOutcome EasClient::getResourceServices(const GetResourceServicesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetResourceServicesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetResourceServicesOutcome(GetResourceServicesResult(outcome.result())); + else + return GetResourceServicesOutcome(outcome.error()); +} + +void EasClient::getResourceServicesAsync(const GetResourceServicesRequest& request, const GetResourceServicesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getResourceServices(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EasClient::GetResourceServicesOutcomeCallable EasClient::getResourceServicesCallable(const GetResourceServicesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getResourceServices(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EasClient::GetResourceStatusOutcome EasClient::getResourceStatus(const GetResourceStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetResourceStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetResourceStatusOutcome(GetResourceStatusResult(outcome.result())); + else + return GetResourceStatusOutcome(outcome.error()); +} + +void EasClient::getResourceStatusAsync(const GetResourceStatusRequest& request, const GetResourceStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getResourceStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EasClient::GetResourceStatusOutcomeCallable EasClient::getResourceStatusCallable(const GetResourceStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getResourceStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EasClient::GetServiceOutcome EasClient::getService(const GetServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetServiceOutcome(GetServiceResult(outcome.result())); + else + return GetServiceOutcome(outcome.error()); +} + +void EasClient::getServiceAsync(const GetServiceRequest& request, const GetServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EasClient::GetServiceOutcomeCallable EasClient::getServiceCallable(const GetServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EasClient::GetServiceRegionOutcome EasClient::getServiceRegion(const GetServiceRegionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetServiceRegionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetServiceRegionOutcome(GetServiceRegionResult(outcome.result())); + else + return GetServiceRegionOutcome(outcome.error()); +} + +void EasClient::getServiceRegionAsync(const GetServiceRegionRequest& request, const GetServiceRegionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getServiceRegion(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EasClient::GetServiceRegionOutcomeCallable EasClient::getServiceRegionCallable(const GetServiceRegionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getServiceRegion(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EasClient::GetServiceStatisticsOutcome EasClient::getServiceStatistics(const GetServiceStatisticsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetServiceStatisticsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetServiceStatisticsOutcome(GetServiceStatisticsResult(outcome.result())); + else + return GetServiceStatisticsOutcome(outcome.error()); +} + +void EasClient::getServiceStatisticsAsync(const GetServiceStatisticsRequest& request, const GetServiceStatisticsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getServiceStatistics(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EasClient::GetServiceStatisticsOutcomeCallable EasClient::getServiceStatisticsCallable(const GetServiceStatisticsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getServiceStatistics(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EasClient::GetServiceTokenOutcome EasClient::getServiceToken(const GetServiceTokenRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetServiceTokenOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetServiceTokenOutcome(GetServiceTokenResult(outcome.result())); + else + return GetServiceTokenOutcome(outcome.error()); +} + +void EasClient::getServiceTokenAsync(const GetServiceTokenRequest& request, const GetServiceTokenAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getServiceToken(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EasClient::GetServiceTokenOutcomeCallable EasClient::getServiceTokenCallable(const GetServiceTokenRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getServiceToken(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EasClient::GetServiceVersionOutcome EasClient::getServiceVersion(const GetServiceVersionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetServiceVersionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetServiceVersionOutcome(GetServiceVersionResult(outcome.result())); + else + return GetServiceVersionOutcome(outcome.error()); +} + +void EasClient::getServiceVersionAsync(const GetServiceVersionRequest& request, const GetServiceVersionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getServiceVersion(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EasClient::GetServiceVersionOutcomeCallable EasClient::getServiceVersionCallable(const GetServiceVersionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getServiceVersion(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EasClient::GetServiceWorkerOutcome EasClient::getServiceWorker(const GetServiceWorkerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetServiceWorkerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetServiceWorkerOutcome(GetServiceWorkerResult(outcome.result())); + else + return GetServiceWorkerOutcome(outcome.error()); +} + +void EasClient::getServiceWorkerAsync(const GetServiceWorkerRequest& request, const GetServiceWorkerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getServiceWorker(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EasClient::GetServiceWorkerOutcomeCallable EasClient::getServiceWorkerCallable(const GetServiceWorkerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getServiceWorker(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EasClient::GetTaskOutcome EasClient::getTask(const GetTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetTaskOutcome(GetTaskResult(outcome.result())); + else + return GetTaskOutcome(outcome.error()); +} + +void EasClient::getTaskAsync(const GetTaskRequest& request, const GetTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EasClient::GetTaskOutcomeCallable EasClient::getTaskCallable(const GetTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EasClient::ListServicesOutcome EasClient::listServices(const ListServicesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListServicesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListServicesOutcome(ListServicesResult(outcome.result())); + else + return ListServicesOutcome(outcome.error()); +} + +void EasClient::listServicesAsync(const ListServicesRequest& request, const ListServicesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listServices(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EasClient::ListServicesOutcomeCallable EasClient::listServicesCallable(const ListServicesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listServices(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EasClient::ListTasksOutcome EasClient::listTasks(const ListTasksRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListTasksOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListTasksOutcome(ListTasksResult(outcome.result())); + else + return ListTasksOutcome(outcome.error()); +} + +void EasClient::listTasksAsync(const ListTasksRequest& request, const ListTasksAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTasks(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EasClient::ListTasksOutcomeCallable EasClient::listTasksCallable(const ListTasksRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTasks(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EasClient::ListVIndexOutcome EasClient::listVIndex(const ListVIndexRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListVIndexOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListVIndexOutcome(ListVIndexResult(outcome.result())); + else + return ListVIndexOutcome(outcome.error()); +} + +void EasClient::listVIndexAsync(const ListVIndexRequest& request, const ListVIndexAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listVIndex(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EasClient::ListVIndexOutcomeCallable EasClient::listVIndexCallable(const ListVIndexRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listVIndex(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EasClient::ModifyServiceOutcome EasClient::modifyService(const ModifyServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyServiceOutcome(ModifyServiceResult(outcome.result())); + else + return ModifyServiceOutcome(outcome.error()); +} + +void EasClient::modifyServiceAsync(const ModifyServiceRequest& request, const ModifyServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EasClient::ModifyServiceOutcomeCallable EasClient::modifyServiceCallable(const ModifyServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EasClient::ModifyServiceVersionOutcome EasClient::modifyServiceVersion(const ModifyServiceVersionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyServiceVersionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyServiceVersionOutcome(ModifyServiceVersionResult(outcome.result())); + else + return ModifyServiceVersionOutcome(outcome.error()); +} + +void EasClient::modifyServiceVersionAsync(const ModifyServiceVersionRequest& request, const ModifyServiceVersionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyServiceVersion(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EasClient::ModifyServiceVersionOutcomeCallable EasClient::modifyServiceVersionCallable(const ModifyServiceVersionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyServiceVersion(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EasClient::ReleaseServiceOutcome EasClient::releaseService(const ReleaseServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ReleaseServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ReleaseServiceOutcome(ReleaseServiceResult(outcome.result())); + else + return ReleaseServiceOutcome(outcome.error()); +} + +void EasClient::releaseServiceAsync(const ReleaseServiceRequest& request, const ReleaseServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, releaseService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EasClient::ReleaseServiceOutcomeCallable EasClient::releaseServiceCallable(const ReleaseServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->releaseService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EasClient::StartServiceOutcome EasClient::startService(const StartServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StartServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartServiceOutcome(StartServiceResult(outcome.result())); + else + return StartServiceOutcome(outcome.error()); +} + +void EasClient::startServiceAsync(const StartServiceRequest& request, const StartServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EasClient::StartServiceOutcomeCallable EasClient::startServiceCallable(const StartServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EasClient::StopServiceOutcome EasClient::stopService(const StopServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StopServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StopServiceOutcome(StopServiceResult(outcome.result())); + else + return StopServiceOutcome(outcome.error()); +} + +void EasClient::stopServiceAsync(const StopServiceRequest& request, const StopServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, stopService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EasClient::StopServiceOutcomeCallable EasClient::stopServiceCallable(const StopServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->stopService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EasClient::SyncServiceOutcome EasClient::syncService(const SyncServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SyncServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SyncServiceOutcome(SyncServiceResult(outcome.result())); + else + return SyncServiceOutcome(outcome.error()); +} + +void EasClient::syncServiceAsync(const SyncServiceRequest& request, const SyncServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, syncService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EasClient::SyncServiceOutcomeCallable EasClient::syncServiceCallable(const SyncServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->syncService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/eas/src/model/CheckServiceExistsRequest.cc b/eas/src/model/CheckServiceExistsRequest.cc new file mode 100644 index 000000000..13acd3470 --- /dev/null +++ b/eas/src/model/CheckServiceExistsRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas::Model::CheckServiceExistsRequest; + +CheckServiceExistsRequest::CheckServiceExistsRequest() : + RoaServiceRequest("eas", "2018-05-22") +{ + setResourcePath("/api/services/[region]/[service_name]/exists"); + setMethod(HttpRequest::Method::GET); +} + +CheckServiceExistsRequest::~CheckServiceExistsRequest() +{} + +std::string CheckServiceExistsRequest::getService_name()const +{ + return service_name_; +} + +void CheckServiceExistsRequest::setService_name(const std::string& service_name) +{ + service_name_ = service_name; + setParameter("Service_name", service_name); +} + +std::string CheckServiceExistsRequest::getRegion()const +{ + return region_; +} + +void CheckServiceExistsRequest::setRegion(const std::string& region) +{ + region_ = region; + setParameter("Region", region); +} + diff --git a/eas/src/model/CheckServiceExistsResult.cc b/eas/src/model/CheckServiceExistsResult.cc new file mode 100644 index 000000000..ae0e13f9a --- /dev/null +++ b/eas/src/model/CheckServiceExistsResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas; +using namespace AlibabaCloud::Eas::Model; + +CheckServiceExistsResult::CheckServiceExistsResult() : + ServiceResult() +{} + +CheckServiceExistsResult::CheckServiceExistsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CheckServiceExistsResult::~CheckServiceExistsResult() +{} + +void CheckServiceExistsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/eas/src/model/CreateNetworkInterfaceRequest.cc b/eas/src/model/CreateNetworkInterfaceRequest.cc new file mode 100644 index 000000000..9a6dd4116 --- /dev/null +++ b/eas/src/model/CreateNetworkInterfaceRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas::Model::CreateNetworkInterfaceRequest; + +CreateNetworkInterfaceRequest::CreateNetworkInterfaceRequest() : + RoaServiceRequest("eas", "2018-05-22") +{ + setResourcePath("/api/resources/[cluster_id]/[resource_name]/network"); + setMethod(HttpRequest::Method::POST); +} + +CreateNetworkInterfaceRequest::~CreateNetworkInterfaceRequest() +{} + +std::string CreateNetworkInterfaceRequest::getCluster_id()const +{ + return cluster_id_; +} + +void CreateNetworkInterfaceRequest::setCluster_id(const std::string& cluster_id) +{ + cluster_id_ = cluster_id; + setParameter("Cluster_id", cluster_id); +} + +std::string CreateNetworkInterfaceRequest::getResource_name()const +{ + return resource_name_; +} + +void CreateNetworkInterfaceRequest::setResource_name(const std::string& resource_name) +{ + resource_name_ = resource_name; + setParameter("Resource_name", resource_name); +} + diff --git a/eas/src/model/CreateNetworkInterfaceResult.cc b/eas/src/model/CreateNetworkInterfaceResult.cc new file mode 100644 index 000000000..3dd54853c --- /dev/null +++ b/eas/src/model/CreateNetworkInterfaceResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas; +using namespace AlibabaCloud::Eas::Model; + +CreateNetworkInterfaceResult::CreateNetworkInterfaceResult() : + ServiceResult() +{} + +CreateNetworkInterfaceResult::CreateNetworkInterfaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateNetworkInterfaceResult::~CreateNetworkInterfaceResult() +{} + +void CreateNetworkInterfaceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/eas/src/model/CreateSLSRequest.cc b/eas/src/model/CreateSLSRequest.cc new file mode 100644 index 000000000..bec040ee6 --- /dev/null +++ b/eas/src/model/CreateSLSRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas::Model::CreateSLSRequest; + +CreateSLSRequest::CreateSLSRequest() : + RoaServiceRequest("eas", "2018-05-22") +{ + setResourcePath("/api/resources/[cluster_id]/[resource_name]/log"); + setMethod(HttpRequest::Method::POST); +} + +CreateSLSRequest::~CreateSLSRequest() +{} + +std::string CreateSLSRequest::getCluster_id()const +{ + return cluster_id_; +} + +void CreateSLSRequest::setCluster_id(const std::string& cluster_id) +{ + cluster_id_ = cluster_id; + setParameter("Cluster_id", cluster_id); +} + +std::string CreateSLSRequest::getResource_name()const +{ + return resource_name_; +} + +void CreateSLSRequest::setResource_name(const std::string& resource_name) +{ + resource_name_ = resource_name; + setParameter("Resource_name", resource_name); +} + diff --git a/eas/src/model/CreateSLSResult.cc b/eas/src/model/CreateSLSResult.cc new file mode 100644 index 000000000..41f76b13a --- /dev/null +++ b/eas/src/model/CreateSLSResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas; +using namespace AlibabaCloud::Eas::Model; + +CreateSLSResult::CreateSLSResult() : + ServiceResult() +{} + +CreateSLSResult::CreateSLSResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateSLSResult::~CreateSLSResult() +{} + +void CreateSLSResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/eas/src/model/CreateServiceRequest.cc b/eas/src/model/CreateServiceRequest.cc new file mode 100644 index 000000000..9276703c7 --- /dev/null +++ b/eas/src/model/CreateServiceRequest.cc @@ -0,0 +1,30 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas::Model::CreateServiceRequest; + +CreateServiceRequest::CreateServiceRequest() : + RoaServiceRequest("eas", "2018-05-22") +{ + setResourcePath("/api/services"); + setMethod(HttpRequest::Method::POST); +} + +CreateServiceRequest::~CreateServiceRequest() +{} + diff --git a/eas/src/model/CreateServiceResult.cc b/eas/src/model/CreateServiceResult.cc new file mode 100644 index 000000000..c7b9aacaa --- /dev/null +++ b/eas/src/model/CreateServiceResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas; +using namespace AlibabaCloud::Eas::Model; + +CreateServiceResult::CreateServiceResult() : + ServiceResult() +{} + +CreateServiceResult::CreateServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateServiceResult::~CreateServiceResult() +{} + +void CreateServiceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/eas/src/model/CreateTaskRequest.cc b/eas/src/model/CreateTaskRequest.cc new file mode 100644 index 000000000..bb7dc84e1 --- /dev/null +++ b/eas/src/model/CreateTaskRequest.cc @@ -0,0 +1,30 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas::Model::CreateTaskRequest; + +CreateTaskRequest::CreateTaskRequest() : + RoaServiceRequest("eas", "2018-05-22") +{ + setResourcePath("/api/tasks"); + setMethod(HttpRequest::Method::POST); +} + +CreateTaskRequest::~CreateTaskRequest() +{} + diff --git a/eas/src/model/CreateTaskResult.cc b/eas/src/model/CreateTaskResult.cc new file mode 100644 index 000000000..ca171cf56 --- /dev/null +++ b/eas/src/model/CreateTaskResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas; +using namespace AlibabaCloud::Eas::Model; + +CreateTaskResult::CreateTaskResult() : + ServiceResult() +{} + +CreateTaskResult::CreateTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateTaskResult::~CreateTaskResult() +{} + +void CreateTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/eas/src/model/DeleteResourceInstanceRequest.cc b/eas/src/model/DeleteResourceInstanceRequest.cc new file mode 100644 index 000000000..1869b725a --- /dev/null +++ b/eas/src/model/DeleteResourceInstanceRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas::Model::DeleteResourceInstanceRequest; + +DeleteResourceInstanceRequest::DeleteResourceInstanceRequest() : + RoaServiceRequest("eas", "2018-05-22") +{ + setResourcePath("/api/resources/[cluster_id]/[resource_name]/instances/delete"); + setMethod(HttpRequest::Method::POST); +} + +DeleteResourceInstanceRequest::~DeleteResourceInstanceRequest() +{} + +std::string DeleteResourceInstanceRequest::getCluster_id()const +{ + return cluster_id_; +} + +void DeleteResourceInstanceRequest::setCluster_id(const std::string& cluster_id) +{ + cluster_id_ = cluster_id; + setParameter("Cluster_id", cluster_id); +} + +std::string DeleteResourceInstanceRequest::getResource_name()const +{ + return resource_name_; +} + +void DeleteResourceInstanceRequest::setResource_name(const std::string& resource_name) +{ + resource_name_ = resource_name; + setParameter("Resource_name", resource_name); +} + diff --git a/eas/src/model/DeleteResourceInstanceResult.cc b/eas/src/model/DeleteResourceInstanceResult.cc new file mode 100644 index 000000000..2a4b85223 --- /dev/null +++ b/eas/src/model/DeleteResourceInstanceResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas; +using namespace AlibabaCloud::Eas::Model; + +DeleteResourceInstanceResult::DeleteResourceInstanceResult() : + ServiceResult() +{} + +DeleteResourceInstanceResult::DeleteResourceInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteResourceInstanceResult::~DeleteResourceInstanceResult() +{} + +void DeleteResourceInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/eas/src/model/DeleteResourceRequest.cc b/eas/src/model/DeleteResourceRequest.cc new file mode 100644 index 000000000..c956cac98 --- /dev/null +++ b/eas/src/model/DeleteResourceRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas::Model::DeleteResourceRequest; + +DeleteResourceRequest::DeleteResourceRequest() : + RoaServiceRequest("eas", "2018-05-22") +{ + setResourcePath("/api/resources/[cluster_id]/[resource_name]"); + setMethod(HttpRequest::Method::DELETE); +} + +DeleteResourceRequest::~DeleteResourceRequest() +{} + +std::string DeleteResourceRequest::getCluster_id()const +{ + return cluster_id_; +} + +void DeleteResourceRequest::setCluster_id(const std::string& cluster_id) +{ + cluster_id_ = cluster_id; + setParameter("Cluster_id", cluster_id); +} + +std::string DeleteResourceRequest::getResource_name()const +{ + return resource_name_; +} + +void DeleteResourceRequest::setResource_name(const std::string& resource_name) +{ + resource_name_ = resource_name; + setParameter("Resource_name", resource_name); +} + diff --git a/eas/src/model/DeleteResourceResult.cc b/eas/src/model/DeleteResourceResult.cc new file mode 100644 index 000000000..f21ac80da --- /dev/null +++ b/eas/src/model/DeleteResourceResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas; +using namespace AlibabaCloud::Eas::Model; + +DeleteResourceResult::DeleteResourceResult() : + ServiceResult() +{} + +DeleteResourceResult::DeleteResourceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteResourceResult::~DeleteResourceResult() +{} + +void DeleteResourceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/eas/src/model/DeleteServiceRequest.cc b/eas/src/model/DeleteServiceRequest.cc new file mode 100644 index 000000000..5e797ee86 --- /dev/null +++ b/eas/src/model/DeleteServiceRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas::Model::DeleteServiceRequest; + +DeleteServiceRequest::DeleteServiceRequest() : + RoaServiceRequest("eas", "2018-05-22") +{ + setResourcePath("/api/services/[region]/[service_name]"); + setMethod(HttpRequest::Method::DELETE); +} + +DeleteServiceRequest::~DeleteServiceRequest() +{} + +std::string DeleteServiceRequest::getService_name()const +{ + return service_name_; +} + +void DeleteServiceRequest::setService_name(const std::string& service_name) +{ + service_name_ = service_name; + setParameter("Service_name", service_name); +} + +std::string DeleteServiceRequest::getRegion()const +{ + return region_; +} + +void DeleteServiceRequest::setRegion(const std::string& region) +{ + region_ = region; + setParameter("Region", region); +} + diff --git a/eas/src/model/DeleteServiceResult.cc b/eas/src/model/DeleteServiceResult.cc new file mode 100644 index 000000000..c117a606a --- /dev/null +++ b/eas/src/model/DeleteServiceResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas; +using namespace AlibabaCloud::Eas::Model; + +DeleteServiceResult::DeleteServiceResult() : + ServiceResult() +{} + +DeleteServiceResult::DeleteServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteServiceResult::~DeleteServiceResult() +{} + +void DeleteServiceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/eas/src/model/DeleteTaskRequest.cc b/eas/src/model/DeleteTaskRequest.cc new file mode 100644 index 000000000..9d9417371 --- /dev/null +++ b/eas/src/model/DeleteTaskRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas::Model::DeleteTaskRequest; + +DeleteTaskRequest::DeleteTaskRequest() : + RoaServiceRequest("eas", "2018-05-22") +{ + setResourcePath("/api/tasks/[region]/[task_name]"); + setMethod(HttpRequest::Method::DELETE); +} + +DeleteTaskRequest::~DeleteTaskRequest() +{} + +std::string DeleteTaskRequest::getTask_name()const +{ + return task_name_; +} + +void DeleteTaskRequest::setTask_name(const std::string& task_name) +{ + task_name_ = task_name; + setParameter("Task_name", task_name); +} + +std::string DeleteTaskRequest::getRegion()const +{ + return region_; +} + +void DeleteTaskRequest::setRegion(const std::string& region) +{ + region_ = region; + setParameter("Region", region); +} + diff --git a/eas/src/model/DeleteTaskResult.cc b/eas/src/model/DeleteTaskResult.cc new file mode 100644 index 000000000..a335c6244 --- /dev/null +++ b/eas/src/model/DeleteTaskResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas; +using namespace AlibabaCloud::Eas::Model; + +DeleteTaskResult::DeleteTaskResult() : + ServiceResult() +{} + +DeleteTaskResult::DeleteTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteTaskResult::~DeleteTaskResult() +{} + +void DeleteTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/eas/src/model/GetAvailableRegionsRequest.cc b/eas/src/model/GetAvailableRegionsRequest.cc new file mode 100644 index 000000000..8836ba029 --- /dev/null +++ b/eas/src/model/GetAvailableRegionsRequest.cc @@ -0,0 +1,30 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas::Model::GetAvailableRegionsRequest; + +GetAvailableRegionsRequest::GetAvailableRegionsRequest() : + RoaServiceRequest("eas", "2018-05-22") +{ + setResourcePath("/api/services/regions"); + setMethod(HttpRequest::Method::GET); +} + +GetAvailableRegionsRequest::~GetAvailableRegionsRequest() +{} + diff --git a/eas/src/model/GetAvailableRegionsResult.cc b/eas/src/model/GetAvailableRegionsResult.cc new file mode 100644 index 000000000..a39e35d7e --- /dev/null +++ b/eas/src/model/GetAvailableRegionsResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas; +using namespace AlibabaCloud::Eas::Model; + +GetAvailableRegionsResult::GetAvailableRegionsResult() : + ServiceResult() +{} + +GetAvailableRegionsResult::GetAvailableRegionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAvailableRegionsResult::~GetAvailableRegionsResult() +{} + +void GetAvailableRegionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/eas/src/model/GetNetworkInterfaceRequest.cc b/eas/src/model/GetNetworkInterfaceRequest.cc new file mode 100644 index 000000000..d1bce8c6d --- /dev/null +++ b/eas/src/model/GetNetworkInterfaceRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas::Model::GetNetworkInterfaceRequest; + +GetNetworkInterfaceRequest::GetNetworkInterfaceRequest() : + RoaServiceRequest("eas", "2018-05-22") +{ + setResourcePath("/api/resources/[cluster_id]/[resource_name]/network"); + setMethod(HttpRequest::Method::GET); +} + +GetNetworkInterfaceRequest::~GetNetworkInterfaceRequest() +{} + +std::string GetNetworkInterfaceRequest::getCluster_id()const +{ + return cluster_id_; +} + +void GetNetworkInterfaceRequest::setCluster_id(const std::string& cluster_id) +{ + cluster_id_ = cluster_id; + setParameter("Cluster_id", cluster_id); +} + +std::string GetNetworkInterfaceRequest::getResource_name()const +{ + return resource_name_; +} + +void GetNetworkInterfaceRequest::setResource_name(const std::string& resource_name) +{ + resource_name_ = resource_name; + setParameter("Resource_name", resource_name); +} + diff --git a/eas/src/model/GetNetworkInterfaceResult.cc b/eas/src/model/GetNetworkInterfaceResult.cc new file mode 100644 index 000000000..a64f0ef95 --- /dev/null +++ b/eas/src/model/GetNetworkInterfaceResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas; +using namespace AlibabaCloud::Eas::Model; + +GetNetworkInterfaceResult::GetNetworkInterfaceResult() : + ServiceResult() +{} + +GetNetworkInterfaceResult::GetNetworkInterfaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetNetworkInterfaceResult::~GetNetworkInterfaceResult() +{} + +void GetNetworkInterfaceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/eas/src/model/GetOrCreateResourceRequest.cc b/eas/src/model/GetOrCreateResourceRequest.cc new file mode 100644 index 000000000..b826167b2 --- /dev/null +++ b/eas/src/model/GetOrCreateResourceRequest.cc @@ -0,0 +1,30 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas::Model::GetOrCreateResourceRequest; + +GetOrCreateResourceRequest::GetOrCreateResourceRequest() : + RoaServiceRequest("eas", "2018-05-22") +{ + setResourcePath("/api/resources"); + setMethod(HttpRequest::Method::POST); +} + +GetOrCreateResourceRequest::~GetOrCreateResourceRequest() +{} + diff --git a/eas/src/model/GetOrCreateResourceResult.cc b/eas/src/model/GetOrCreateResourceResult.cc new file mode 100644 index 000000000..8064993e7 --- /dev/null +++ b/eas/src/model/GetOrCreateResourceResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas; +using namespace AlibabaCloud::Eas::Model; + +GetOrCreateResourceResult::GetOrCreateResourceResult() : + ServiceResult() +{} + +GetOrCreateResourceResult::GetOrCreateResourceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetOrCreateResourceResult::~GetOrCreateResourceResult() +{} + +void GetOrCreateResourceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/eas/src/model/GetOssAuthorizeRequest.cc b/eas/src/model/GetOssAuthorizeRequest.cc new file mode 100644 index 000000000..048ede0c8 --- /dev/null +++ b/eas/src/model/GetOssAuthorizeRequest.cc @@ -0,0 +1,30 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas::Model::GetOssAuthorizeRequest; + +GetOssAuthorizeRequest::GetOssAuthorizeRequest() : + RoaServiceRequest("eas", "2018-05-22") +{ + setResourcePath("/api/services/oss_authorize"); + setMethod(HttpRequest::Method::GET); +} + +GetOssAuthorizeRequest::~GetOssAuthorizeRequest() +{} + diff --git a/eas/src/model/GetOssAuthorizeResult.cc b/eas/src/model/GetOssAuthorizeResult.cc new file mode 100644 index 000000000..047d04475 --- /dev/null +++ b/eas/src/model/GetOssAuthorizeResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas; +using namespace AlibabaCloud::Eas::Model; + +GetOssAuthorizeResult::GetOssAuthorizeResult() : + ServiceResult() +{} + +GetOssAuthorizeResult::GetOssAuthorizeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetOssAuthorizeResult::~GetOssAuthorizeResult() +{} + +void GetOssAuthorizeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/eas/src/model/GetResourceInstancesRequest.cc b/eas/src/model/GetResourceInstancesRequest.cc new file mode 100644 index 000000000..39cd856a4 --- /dev/null +++ b/eas/src/model/GetResourceInstancesRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas::Model::GetResourceInstancesRequest; + +GetResourceInstancesRequest::GetResourceInstancesRequest() : + RoaServiceRequest("eas", "2018-05-22") +{ + setResourcePath("/api/resources/[cluster_id]/[resource_name]/instances"); + setMethod(HttpRequest::Method::GET); +} + +GetResourceInstancesRequest::~GetResourceInstancesRequest() +{} + +std::string GetResourceInstancesRequest::getCluster_id()const +{ + return cluster_id_; +} + +void GetResourceInstancesRequest::setCluster_id(const std::string& cluster_id) +{ + cluster_id_ = cluster_id; + setParameter("Cluster_id", cluster_id); +} + +std::string GetResourceInstancesRequest::getResource_name()const +{ + return resource_name_; +} + +void GetResourceInstancesRequest::setResource_name(const std::string& resource_name) +{ + resource_name_ = resource_name; + setParameter("Resource_name", resource_name); +} + diff --git a/eas/src/model/GetResourceInstancesResult.cc b/eas/src/model/GetResourceInstancesResult.cc new file mode 100644 index 000000000..adfd25170 --- /dev/null +++ b/eas/src/model/GetResourceInstancesResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas; +using namespace AlibabaCloud::Eas::Model; + +GetResourceInstancesResult::GetResourceInstancesResult() : + ServiceResult() +{} + +GetResourceInstancesResult::GetResourceInstancesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetResourceInstancesResult::~GetResourceInstancesResult() +{} + +void GetResourceInstancesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/eas/src/model/GetResourcePodsRequest.cc b/eas/src/model/GetResourcePodsRequest.cc new file mode 100644 index 000000000..71d21cb83 --- /dev/null +++ b/eas/src/model/GetResourcePodsRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Eas::Model::GetResourcePodsRequest; + +GetResourcePodsRequest::GetResourcePodsRequest() : + RoaServiceRequest("eas", "2018-05-22") +{ + setResourcePath("/api/resources/[cluster_id]/[resource_name]/instances/[instance_name]/pods"); + setMethod(HttpRequest::Method::GET); +} + +GetResourcePodsRequest::~GetResourcePodsRequest() +{} + +std::string GetResourcePodsRequest::getCluster_id()const +{ + return cluster_id_; +} + +void GetResourcePodsRequest::setCluster_id(const std::string& cluster_id) +{ + cluster_id_ = cluster_id; + setParameter("Cluster_id", cluster_id); +} + +std::string GetResourcePodsRequest::getInstance_name()const +{ + return instance_name_; +} + +void GetResourcePodsRequest::setInstance_name(const std::string& instance_name) +{ + instance_name_ = instance_name; + setParameter("Instance_name", instance_name); +} + +std::string GetResourcePodsRequest::getResource_name()const +{ + return resource_name_; +} + +void GetResourcePodsRequest::setResource_name(const std::string& resource_name) +{ + resource_name_ = resource_name; + setParameter("Resource_name", resource_name); +} + diff --git a/eas/src/model/GetResourcePodsResult.cc b/eas/src/model/GetResourcePodsResult.cc new file mode 100644 index 000000000..35a518e4d --- /dev/null +++ b/eas/src/model/GetResourcePodsResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas; +using namespace AlibabaCloud::Eas::Model; + +GetResourcePodsResult::GetResourcePodsResult() : + ServiceResult() +{} + +GetResourcePodsResult::GetResourcePodsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetResourcePodsResult::~GetResourcePodsResult() +{} + +void GetResourcePodsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/eas/src/model/GetResourceServicesRequest.cc b/eas/src/model/GetResourceServicesRequest.cc new file mode 100644 index 000000000..392ed9a08 --- /dev/null +++ b/eas/src/model/GetResourceServicesRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas::Model::GetResourceServicesRequest; + +GetResourceServicesRequest::GetResourceServicesRequest() : + RoaServiceRequest("eas", "2018-05-22") +{ + setResourcePath("/api/resources/[cluster_id]/[resource_name]/services"); + setMethod(HttpRequest::Method::GET); +} + +GetResourceServicesRequest::~GetResourceServicesRequest() +{} + +std::string GetResourceServicesRequest::getCluster_id()const +{ + return cluster_id_; +} + +void GetResourceServicesRequest::setCluster_id(const std::string& cluster_id) +{ + cluster_id_ = cluster_id; + setParameter("Cluster_id", cluster_id); +} + +std::string GetResourceServicesRequest::getResource_name()const +{ + return resource_name_; +} + +void GetResourceServicesRequest::setResource_name(const std::string& resource_name) +{ + resource_name_ = resource_name; + setParameter("Resource_name", resource_name); +} + diff --git a/eas/src/model/GetResourceServicesResult.cc b/eas/src/model/GetResourceServicesResult.cc new file mode 100644 index 000000000..889e99480 --- /dev/null +++ b/eas/src/model/GetResourceServicesResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas; +using namespace AlibabaCloud::Eas::Model; + +GetResourceServicesResult::GetResourceServicesResult() : + ServiceResult() +{} + +GetResourceServicesResult::GetResourceServicesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetResourceServicesResult::~GetResourceServicesResult() +{} + +void GetResourceServicesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/eas/src/model/GetResourceStatusRequest.cc b/eas/src/model/GetResourceStatusRequest.cc new file mode 100644 index 000000000..acf745220 --- /dev/null +++ b/eas/src/model/GetResourceStatusRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas::Model::GetResourceStatusRequest; + +GetResourceStatusRequest::GetResourceStatusRequest() : + RoaServiceRequest("eas", "2018-05-22") +{ + setResourcePath("/api/resources/[cluster_id]/[resource_name]"); + setMethod(HttpRequest::Method::GET); +} + +GetResourceStatusRequest::~GetResourceStatusRequest() +{} + +std::string GetResourceStatusRequest::getCluster_id()const +{ + return cluster_id_; +} + +void GetResourceStatusRequest::setCluster_id(const std::string& cluster_id) +{ + cluster_id_ = cluster_id; + setParameter("Cluster_id", cluster_id); +} + +std::string GetResourceStatusRequest::getResource_name()const +{ + return resource_name_; +} + +void GetResourceStatusRequest::setResource_name(const std::string& resource_name) +{ + resource_name_ = resource_name; + setParameter("Resource_name", resource_name); +} + diff --git a/eas/src/model/GetResourceStatusResult.cc b/eas/src/model/GetResourceStatusResult.cc new file mode 100644 index 000000000..9e4cafc0f --- /dev/null +++ b/eas/src/model/GetResourceStatusResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas; +using namespace AlibabaCloud::Eas::Model; + +GetResourceStatusResult::GetResourceStatusResult() : + ServiceResult() +{} + +GetResourceStatusResult::GetResourceStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetResourceStatusResult::~GetResourceStatusResult() +{} + +void GetResourceStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/eas/src/model/GetServiceRegionRequest.cc b/eas/src/model/GetServiceRegionRequest.cc new file mode 100644 index 000000000..5b18055b1 --- /dev/null +++ b/eas/src/model/GetServiceRegionRequest.cc @@ -0,0 +1,30 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas::Model::GetServiceRegionRequest; + +GetServiceRegionRequest::GetServiceRegionRequest() : + RoaServiceRequest("eas", "2018-05-22") +{ + setResourcePath("/api/services/region"); + setMethod(HttpRequest::Method::GET); +} + +GetServiceRegionRequest::~GetServiceRegionRequest() +{} + diff --git a/eas/src/model/GetServiceRegionResult.cc b/eas/src/model/GetServiceRegionResult.cc new file mode 100644 index 000000000..096022845 --- /dev/null +++ b/eas/src/model/GetServiceRegionResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas; +using namespace AlibabaCloud::Eas::Model; + +GetServiceRegionResult::GetServiceRegionResult() : + ServiceResult() +{} + +GetServiceRegionResult::GetServiceRegionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetServiceRegionResult::~GetServiceRegionResult() +{} + +void GetServiceRegionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/eas/src/model/GetServiceRequest.cc b/eas/src/model/GetServiceRequest.cc new file mode 100644 index 000000000..ae1564ee6 --- /dev/null +++ b/eas/src/model/GetServiceRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas::Model::GetServiceRequest; + +GetServiceRequest::GetServiceRequest() : + RoaServiceRequest("eas", "2018-05-22") +{ + setResourcePath("/api/services/[region]/[service_name]"); + setMethod(HttpRequest::Method::GET); +} + +GetServiceRequest::~GetServiceRequest() +{} + +std::string GetServiceRequest::getService_name()const +{ + return service_name_; +} + +void GetServiceRequest::setService_name(const std::string& service_name) +{ + service_name_ = service_name; + setParameter("Service_name", service_name); +} + +std::string GetServiceRequest::getRegion()const +{ + return region_; +} + +void GetServiceRequest::setRegion(const std::string& region) +{ + region_ = region; + setParameter("Region", region); +} + diff --git a/eas/src/model/GetServiceResult.cc b/eas/src/model/GetServiceResult.cc new file mode 100644 index 000000000..07ad8aa3f --- /dev/null +++ b/eas/src/model/GetServiceResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas; +using namespace AlibabaCloud::Eas::Model; + +GetServiceResult::GetServiceResult() : + ServiceResult() +{} + +GetServiceResult::GetServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetServiceResult::~GetServiceResult() +{} + +void GetServiceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/eas/src/model/GetServiceStatisticsRequest.cc b/eas/src/model/GetServiceStatisticsRequest.cc new file mode 100644 index 000000000..6230e60ed --- /dev/null +++ b/eas/src/model/GetServiceStatisticsRequest.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 + +using AlibabaCloud::Eas::Model::GetServiceStatisticsRequest; + +GetServiceStatisticsRequest::GetServiceStatisticsRequest() : + RoaServiceRequest("eas", "2018-05-22") +{ + setResourcePath("/api/services/[region]/[service_name]/statistics"); + setMethod(HttpRequest::Method::GET); +} + +GetServiceStatisticsRequest::~GetServiceStatisticsRequest() +{} + +std::string GetServiceStatisticsRequest::getMetric()const +{ + return metric_; +} + +void GetServiceStatisticsRequest::setMetric(const std::string& metric) +{ + metric_ = metric; + setParameter("Metric", metric); +} + +std::string GetServiceStatisticsRequest::getService_name()const +{ + return service_name_; +} + +void GetServiceStatisticsRequest::setService_name(const std::string& service_name) +{ + service_name_ = service_name; + setParameter("Service_name", service_name); +} + +int GetServiceStatisticsRequest::getCount()const +{ + return count_; +} + +void GetServiceStatisticsRequest::setCount(int count) +{ + count_ = count; + setParameter("Count", std::to_string(count)); +} + +std::string GetServiceStatisticsRequest::getFrom()const +{ + return from_; +} + +void GetServiceStatisticsRequest::setFrom(const std::string& from) +{ + from_ = from; + setParameter("From", from); +} + +std::string GetServiceStatisticsRequest::getTo()const +{ + return to_; +} + +void GetServiceStatisticsRequest::setTo(const std::string& to) +{ + to_ = to; + setParameter("To", to); +} + +std::string GetServiceStatisticsRequest::getRegion()const +{ + return region_; +} + +void GetServiceStatisticsRequest::setRegion(const std::string& region) +{ + region_ = region; + setParameter("Region", region); +} + diff --git a/eas/src/model/GetServiceStatisticsResult.cc b/eas/src/model/GetServiceStatisticsResult.cc new file mode 100644 index 000000000..2951a430b --- /dev/null +++ b/eas/src/model/GetServiceStatisticsResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas; +using namespace AlibabaCloud::Eas::Model; + +GetServiceStatisticsResult::GetServiceStatisticsResult() : + ServiceResult() +{} + +GetServiceStatisticsResult::GetServiceStatisticsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetServiceStatisticsResult::~GetServiceStatisticsResult() +{} + +void GetServiceStatisticsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/eas/src/model/GetServiceTokenRequest.cc b/eas/src/model/GetServiceTokenRequest.cc new file mode 100644 index 000000000..b91fbd882 --- /dev/null +++ b/eas/src/model/GetServiceTokenRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas::Model::GetServiceTokenRequest; + +GetServiceTokenRequest::GetServiceTokenRequest() : + RoaServiceRequest("eas", "2018-05-22") +{ + setResourcePath("/api/services/[region]/[service_name]/token"); + setMethod(HttpRequest::Method::GET); +} + +GetServiceTokenRequest::~GetServiceTokenRequest() +{} + +std::string GetServiceTokenRequest::getService_name()const +{ + return service_name_; +} + +void GetServiceTokenRequest::setService_name(const std::string& service_name) +{ + service_name_ = service_name; + setParameter("Service_name", service_name); +} + +std::string GetServiceTokenRequest::getRegion()const +{ + return region_; +} + +void GetServiceTokenRequest::setRegion(const std::string& region) +{ + region_ = region; + setParameter("Region", region); +} + diff --git a/eas/src/model/GetServiceTokenResult.cc b/eas/src/model/GetServiceTokenResult.cc new file mode 100644 index 000000000..37cab1ab9 --- /dev/null +++ b/eas/src/model/GetServiceTokenResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas; +using namespace AlibabaCloud::Eas::Model; + +GetServiceTokenResult::GetServiceTokenResult() : + ServiceResult() +{} + +GetServiceTokenResult::GetServiceTokenResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetServiceTokenResult::~GetServiceTokenResult() +{} + +void GetServiceTokenResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/eas/src/model/GetServiceVersionRequest.cc b/eas/src/model/GetServiceVersionRequest.cc new file mode 100644 index 000000000..c7f715c7a --- /dev/null +++ b/eas/src/model/GetServiceVersionRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas::Model::GetServiceVersionRequest; + +GetServiceVersionRequest::GetServiceVersionRequest() : + RoaServiceRequest("eas", "2018-05-22") +{ + setResourcePath("/api/services/[region]/[service_name]/version"); + setMethod(HttpRequest::Method::GET); +} + +GetServiceVersionRequest::~GetServiceVersionRequest() +{} + +std::string GetServiceVersionRequest::getService_name()const +{ + return service_name_; +} + +void GetServiceVersionRequest::setService_name(const std::string& service_name) +{ + service_name_ = service_name; + setParameter("Service_name", service_name); +} + +std::string GetServiceVersionRequest::getRegion()const +{ + return region_; +} + +void GetServiceVersionRequest::setRegion(const std::string& region) +{ + region_ = region; + setParameter("Region", region); +} + diff --git a/eas/src/model/GetServiceVersionResult.cc b/eas/src/model/GetServiceVersionResult.cc new file mode 100644 index 000000000..836c530a1 --- /dev/null +++ b/eas/src/model/GetServiceVersionResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas; +using namespace AlibabaCloud::Eas::Model; + +GetServiceVersionResult::GetServiceVersionResult() : + ServiceResult() +{} + +GetServiceVersionResult::GetServiceVersionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetServiceVersionResult::~GetServiceVersionResult() +{} + +void GetServiceVersionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/eas/src/model/GetServiceWorkerRequest.cc b/eas/src/model/GetServiceWorkerRequest.cc new file mode 100644 index 000000000..0d4ac022e --- /dev/null +++ b/eas/src/model/GetServiceWorkerRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas::Model::GetServiceWorkerRequest; + +GetServiceWorkerRequest::GetServiceWorkerRequest() : + RoaServiceRequest("eas", "2018-05-22") +{ + setResourcePath("/api/services/[region]/[service_name]/worker"); + setMethod(HttpRequest::Method::GET); +} + +GetServiceWorkerRequest::~GetServiceWorkerRequest() +{} + +std::string GetServiceWorkerRequest::getService_name()const +{ + return service_name_; +} + +void GetServiceWorkerRequest::setService_name(const std::string& service_name) +{ + service_name_ = service_name; + setParameter("Service_name", service_name); +} + +std::string GetServiceWorkerRequest::getRegion()const +{ + return region_; +} + +void GetServiceWorkerRequest::setRegion(const std::string& region) +{ + region_ = region; + setParameter("Region", region); +} + diff --git a/eas/src/model/GetServiceWorkerResult.cc b/eas/src/model/GetServiceWorkerResult.cc new file mode 100644 index 000000000..392cf1af3 --- /dev/null +++ b/eas/src/model/GetServiceWorkerResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas; +using namespace AlibabaCloud::Eas::Model; + +GetServiceWorkerResult::GetServiceWorkerResult() : + ServiceResult() +{} + +GetServiceWorkerResult::GetServiceWorkerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetServiceWorkerResult::~GetServiceWorkerResult() +{} + +void GetServiceWorkerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/eas/src/model/GetTaskRequest.cc b/eas/src/model/GetTaskRequest.cc new file mode 100644 index 000000000..20ffd5d59 --- /dev/null +++ b/eas/src/model/GetTaskRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas::Model::GetTaskRequest; + +GetTaskRequest::GetTaskRequest() : + RoaServiceRequest("eas", "2018-05-22") +{ + setResourcePath("/api/tasks/[region]/[task_name]"); + setMethod(HttpRequest::Method::GET); +} + +GetTaskRequest::~GetTaskRequest() +{} + +std::string GetTaskRequest::getTask_name()const +{ + return task_name_; +} + +void GetTaskRequest::setTask_name(const std::string& task_name) +{ + task_name_ = task_name; + setParameter("Task_name", task_name); +} + +std::string GetTaskRequest::getRegion()const +{ + return region_; +} + +void GetTaskRequest::setRegion(const std::string& region) +{ + region_ = region; + setParameter("Region", region); +} + diff --git a/eas/src/model/GetTaskResult.cc b/eas/src/model/GetTaskResult.cc new file mode 100644 index 000000000..d947f396b --- /dev/null +++ b/eas/src/model/GetTaskResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas; +using namespace AlibabaCloud::Eas::Model; + +GetTaskResult::GetTaskResult() : + ServiceResult() +{} + +GetTaskResult::GetTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetTaskResult::~GetTaskResult() +{} + +void GetTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/eas/src/model/ListServicesRequest.cc b/eas/src/model/ListServicesRequest.cc new file mode 100644 index 000000000..5b38514c2 --- /dev/null +++ b/eas/src/model/ListServicesRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas::Model::ListServicesRequest; + +ListServicesRequest::ListServicesRequest() : + RoaServiceRequest("eas", "2018-05-22") +{ + setResourcePath("/api/services"); + setMethod(HttpRequest::Method::GET); +} + +ListServicesRequest::~ListServicesRequest() +{} + +std::string ListServicesRequest::getFilter()const +{ + return filter_; +} + +void ListServicesRequest::setFilter(const std::string& filter) +{ + filter_ = filter; + setParameter("Filter", filter); +} + +std::string ListServicesRequest::getSort()const +{ + return sort_; +} + +void ListServicesRequest::setSort(const std::string& sort) +{ + sort_ = sort; + setParameter("Sort", sort); +} + diff --git a/eas/src/model/ListServicesResult.cc b/eas/src/model/ListServicesResult.cc new file mode 100644 index 000000000..59ffe3f96 --- /dev/null +++ b/eas/src/model/ListServicesResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas; +using namespace AlibabaCloud::Eas::Model; + +ListServicesResult::ListServicesResult() : + ServiceResult() +{} + +ListServicesResult::ListServicesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListServicesResult::~ListServicesResult() +{} + +void ListServicesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/eas/src/model/ListTasksRequest.cc b/eas/src/model/ListTasksRequest.cc new file mode 100644 index 000000000..04f834742 --- /dev/null +++ b/eas/src/model/ListTasksRequest.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Eas::Model::ListTasksRequest; + +ListTasksRequest::ListTasksRequest() : + RoaServiceRequest("eas", "2018-05-22") +{ + setResourcePath("/api/tasks"); + setMethod(HttpRequest::Method::GET); +} + +ListTasksRequest::~ListTasksRequest() +{} + +std::string ListTasksRequest::getFilter()const +{ + return filter_; +} + +void ListTasksRequest::setFilter(const std::string& filter) +{ + filter_ = filter; + setParameter("Filter", filter); +} + +std::string ListTasksRequest::getPageSize()const +{ + return pageSize_; +} + +void ListTasksRequest::setPageSize(const std::string& pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", pageSize); +} + +std::string ListTasksRequest::getSort()const +{ + return sort_; +} + +void ListTasksRequest::setSort(const std::string& sort) +{ + sort_ = sort; + setParameter("Sort", sort); +} + +std::string ListTasksRequest::getPageNum()const +{ + return pageNum_; +} + +void ListTasksRequest::setPageNum(const std::string& pageNum) +{ + pageNum_ = pageNum; + setParameter("PageNum", pageNum); +} + diff --git a/eas/src/model/ListTasksResult.cc b/eas/src/model/ListTasksResult.cc new file mode 100644 index 000000000..433437a59 --- /dev/null +++ b/eas/src/model/ListTasksResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas; +using namespace AlibabaCloud::Eas::Model; + +ListTasksResult::ListTasksResult() : + ServiceResult() +{} + +ListTasksResult::ListTasksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTasksResult::~ListTasksResult() +{} + +void ListTasksResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/eas/src/model/ListVIndexRequest.cc b/eas/src/model/ListVIndexRequest.cc new file mode 100644 index 000000000..29d8c6227 --- /dev/null +++ b/eas/src/model/ListVIndexRequest.cc @@ -0,0 +1,30 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas::Model::ListVIndexRequest; + +ListVIndexRequest::ListVIndexRequest() : + RoaServiceRequest("eas", "2018-05-22") +{ + setResourcePath("/api/vindex"); + setMethod(HttpRequest::Method::GET); +} + +ListVIndexRequest::~ListVIndexRequest() +{} + diff --git a/eas/src/model/ListVIndexResult.cc b/eas/src/model/ListVIndexResult.cc new file mode 100644 index 000000000..48a4f620d --- /dev/null +++ b/eas/src/model/ListVIndexResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas; +using namespace AlibabaCloud::Eas::Model; + +ListVIndexResult::ListVIndexResult() : + ServiceResult() +{} + +ListVIndexResult::ListVIndexResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListVIndexResult::~ListVIndexResult() +{} + +void ListVIndexResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/eas/src/model/ModifyServiceRequest.cc b/eas/src/model/ModifyServiceRequest.cc new file mode 100644 index 000000000..a27af0607 --- /dev/null +++ b/eas/src/model/ModifyServiceRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas::Model::ModifyServiceRequest; + +ModifyServiceRequest::ModifyServiceRequest() : + RoaServiceRequest("eas", "2018-05-22") +{ + setResourcePath("/api/services/[region]/[service_name]"); + setMethod(HttpRequest::Method::POST); +} + +ModifyServiceRequest::~ModifyServiceRequest() +{} + +std::string ModifyServiceRequest::getService_name()const +{ + return service_name_; +} + +void ModifyServiceRequest::setService_name(const std::string& service_name) +{ + service_name_ = service_name; + setParameter("Service_name", service_name); +} + +std::string ModifyServiceRequest::getRegion()const +{ + return region_; +} + +void ModifyServiceRequest::setRegion(const std::string& region) +{ + region_ = region; + setParameter("Region", region); +} + diff --git a/eas/src/model/ModifyServiceResult.cc b/eas/src/model/ModifyServiceResult.cc new file mode 100644 index 000000000..020b96118 --- /dev/null +++ b/eas/src/model/ModifyServiceResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas; +using namespace AlibabaCloud::Eas::Model; + +ModifyServiceResult::ModifyServiceResult() : + ServiceResult() +{} + +ModifyServiceResult::ModifyServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyServiceResult::~ModifyServiceResult() +{} + +void ModifyServiceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/eas/src/model/ModifyServiceVersionRequest.cc b/eas/src/model/ModifyServiceVersionRequest.cc new file mode 100644 index 000000000..29123d9ef --- /dev/null +++ b/eas/src/model/ModifyServiceVersionRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas::Model::ModifyServiceVersionRequest; + +ModifyServiceVersionRequest::ModifyServiceVersionRequest() : + RoaServiceRequest("eas", "2018-05-22") +{ + setResourcePath("/api/services/[region]/[service_name]/version"); + setMethod(HttpRequest::Method::POST); +} + +ModifyServiceVersionRequest::~ModifyServiceVersionRequest() +{} + +std::string ModifyServiceVersionRequest::getService_name()const +{ + return service_name_; +} + +void ModifyServiceVersionRequest::setService_name(const std::string& service_name) +{ + service_name_ = service_name; + setParameter("Service_name", service_name); +} + +std::string ModifyServiceVersionRequest::getRegion()const +{ + return region_; +} + +void ModifyServiceVersionRequest::setRegion(const std::string& region) +{ + region_ = region; + setParameter("Region", region); +} + diff --git a/eas/src/model/ModifyServiceVersionResult.cc b/eas/src/model/ModifyServiceVersionResult.cc new file mode 100644 index 000000000..5e48d388d --- /dev/null +++ b/eas/src/model/ModifyServiceVersionResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas; +using namespace AlibabaCloud::Eas::Model; + +ModifyServiceVersionResult::ModifyServiceVersionResult() : + ServiceResult() +{} + +ModifyServiceVersionResult::ModifyServiceVersionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyServiceVersionResult::~ModifyServiceVersionResult() +{} + +void ModifyServiceVersionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/eas/src/model/ReleaseServiceRequest.cc b/eas/src/model/ReleaseServiceRequest.cc new file mode 100644 index 000000000..c8fc13da4 --- /dev/null +++ b/eas/src/model/ReleaseServiceRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas::Model::ReleaseServiceRequest; + +ReleaseServiceRequest::ReleaseServiceRequest() : + RoaServiceRequest("eas", "2018-05-22") +{ + setResourcePath("/api/services/[region]/[service_name]/release"); + setMethod(HttpRequest::Method::PUT); +} + +ReleaseServiceRequest::~ReleaseServiceRequest() +{} + +std::string ReleaseServiceRequest::getService_name()const +{ + return service_name_; +} + +void ReleaseServiceRequest::setService_name(const std::string& service_name) +{ + service_name_ = service_name; + setParameter("Service_name", service_name); +} + +std::string ReleaseServiceRequest::getRegion()const +{ + return region_; +} + +void ReleaseServiceRequest::setRegion(const std::string& region) +{ + region_ = region; + setParameter("Region", region); +} + diff --git a/eas/src/model/ReleaseServiceResult.cc b/eas/src/model/ReleaseServiceResult.cc new file mode 100644 index 000000000..998b6c360 --- /dev/null +++ b/eas/src/model/ReleaseServiceResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas; +using namespace AlibabaCloud::Eas::Model; + +ReleaseServiceResult::ReleaseServiceResult() : + ServiceResult() +{} + +ReleaseServiceResult::ReleaseServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReleaseServiceResult::~ReleaseServiceResult() +{} + +void ReleaseServiceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/eas/src/model/StartServiceRequest.cc b/eas/src/model/StartServiceRequest.cc new file mode 100644 index 000000000..343d48205 --- /dev/null +++ b/eas/src/model/StartServiceRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas::Model::StartServiceRequest; + +StartServiceRequest::StartServiceRequest() : + RoaServiceRequest("eas", "2018-05-22") +{ + setResourcePath("/api/services/[region]/[service_name]/start"); + setMethod(HttpRequest::Method::PUT); +} + +StartServiceRequest::~StartServiceRequest() +{} + +std::string StartServiceRequest::getService_name()const +{ + return service_name_; +} + +void StartServiceRequest::setService_name(const std::string& service_name) +{ + service_name_ = service_name; + setParameter("Service_name", service_name); +} + +std::string StartServiceRequest::getRegion()const +{ + return region_; +} + +void StartServiceRequest::setRegion(const std::string& region) +{ + region_ = region; + setParameter("Region", region); +} + diff --git a/eas/src/model/StartServiceResult.cc b/eas/src/model/StartServiceResult.cc new file mode 100644 index 000000000..fef57fc7b --- /dev/null +++ b/eas/src/model/StartServiceResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas; +using namespace AlibabaCloud::Eas::Model; + +StartServiceResult::StartServiceResult() : + ServiceResult() +{} + +StartServiceResult::StartServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartServiceResult::~StartServiceResult() +{} + +void StartServiceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/eas/src/model/StopServiceRequest.cc b/eas/src/model/StopServiceRequest.cc new file mode 100644 index 000000000..8c98f042f --- /dev/null +++ b/eas/src/model/StopServiceRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas::Model::StopServiceRequest; + +StopServiceRequest::StopServiceRequest() : + RoaServiceRequest("eas", "2018-05-22") +{ + setResourcePath("/api/services/[region]/[service_name]/stop"); + setMethod(HttpRequest::Method::PUT); +} + +StopServiceRequest::~StopServiceRequest() +{} + +std::string StopServiceRequest::getService_name()const +{ + return service_name_; +} + +void StopServiceRequest::setService_name(const std::string& service_name) +{ + service_name_ = service_name; + setParameter("Service_name", service_name); +} + +std::string StopServiceRequest::getRegion()const +{ + return region_; +} + +void StopServiceRequest::setRegion(const std::string& region) +{ + region_ = region; + setParameter("Region", region); +} + diff --git a/eas/src/model/StopServiceResult.cc b/eas/src/model/StopServiceResult.cc new file mode 100644 index 000000000..574366570 --- /dev/null +++ b/eas/src/model/StopServiceResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas; +using namespace AlibabaCloud::Eas::Model; + +StopServiceResult::StopServiceResult() : + ServiceResult() +{} + +StopServiceResult::StopServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StopServiceResult::~StopServiceResult() +{} + +void StopServiceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/eas/src/model/SyncServiceRequest.cc b/eas/src/model/SyncServiceRequest.cc new file mode 100644 index 000000000..583fb7093 --- /dev/null +++ b/eas/src/model/SyncServiceRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas::Model::SyncServiceRequest; + +SyncServiceRequest::SyncServiceRequest() : + RoaServiceRequest("eas", "2018-05-22") +{ + setResourcePath("/api/services/[region]/[service_name]/sync"); + setMethod(HttpRequest::Method::GET); +} + +SyncServiceRequest::~SyncServiceRequest() +{} + +std::string SyncServiceRequest::getService_name()const +{ + return service_name_; +} + +void SyncServiceRequest::setService_name(const std::string& service_name) +{ + service_name_ = service_name; + setParameter("Service_name", service_name); +} + +std::string SyncServiceRequest::getRegion()const +{ + return region_; +} + +void SyncServiceRequest::setRegion(const std::string& region) +{ + region_ = region; + setParameter("Region", region); +} + diff --git a/eas/src/model/SyncServiceResult.cc b/eas/src/model/SyncServiceResult.cc new file mode 100644 index 000000000..c91fc83d7 --- /dev/null +++ b/eas/src/model/SyncServiceResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eas; +using namespace AlibabaCloud::Eas::Model; + +SyncServiceResult::SyncServiceResult() : + ServiceResult() +{} + +SyncServiceResult::SyncServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SyncServiceResult::~SyncServiceResult() +{} + +void SyncServiceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} +