diff --git a/CHANGELOG b/CHANGELOG index 08c69bcd9..32ea0f0a1 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2020-02-25 Version: 1.36.288 +- Fix ListWorkFlowTemplates, ListWorkFlowNodes API Go SDK build error. + 2020-02-25 Version: 1.36.287 - Update backupsetDownloadset fun. diff --git a/VERSION b/VERSION index ec97e47db..6511d76ed 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.287 \ No newline at end of file +1.36.288 \ No newline at end of file diff --git a/dms-enterprise/CMakeLists.txt b/dms-enterprise/CMakeLists.txt new file mode 100644 index 000000000..75fa309b1 --- /dev/null +++ b/dms-enterprise/CMakeLists.txt @@ -0,0 +1,266 @@ +# +# Copyright 2009-2017 Alibaba Cloud All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT 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(dms-enterprise_public_header + include/alibabacloud/dms-enterprise/Dms_enterpriseClient.h + include/alibabacloud/dms-enterprise/Dms_enterpriseExport.h ) + +set(dms-enterprise_public_header_model + include/alibabacloud/dms-enterprise/model/ApproveOrderRequest.h + include/alibabacloud/dms-enterprise/model/ApproveOrderResult.h + include/alibabacloud/dms-enterprise/model/CloseOrderRequest.h + include/alibabacloud/dms-enterprise/model/CloseOrderResult.h + include/alibabacloud/dms-enterprise/model/CreateOrderRequest.h + include/alibabacloud/dms-enterprise/model/CreateOrderResult.h + include/alibabacloud/dms-enterprise/model/CreatePublishGroupTaskRequest.h + include/alibabacloud/dms-enterprise/model/CreatePublishGroupTaskResult.h + include/alibabacloud/dms-enterprise/model/DeleteInstanceRequest.h + include/alibabacloud/dms-enterprise/model/DeleteInstanceResult.h + include/alibabacloud/dms-enterprise/model/DeleteUserRequest.h + include/alibabacloud/dms-enterprise/model/DeleteUserResult.h + include/alibabacloud/dms-enterprise/model/DisableUserRequest.h + include/alibabacloud/dms-enterprise/model/DisableUserResult.h + include/alibabacloud/dms-enterprise/model/EnableUserRequest.h + include/alibabacloud/dms-enterprise/model/EnableUserResult.h + include/alibabacloud/dms-enterprise/model/ExecuteDataCorrectRequest.h + include/alibabacloud/dms-enterprise/model/ExecuteDataCorrectResult.h + include/alibabacloud/dms-enterprise/model/ExecuteDataExportRequest.h + include/alibabacloud/dms-enterprise/model/ExecuteDataExportResult.h + include/alibabacloud/dms-enterprise/model/GetApprovalDetailRequest.h + include/alibabacloud/dms-enterprise/model/GetApprovalDetailResult.h + include/alibabacloud/dms-enterprise/model/GetDataCorrectBackupFilesRequest.h + include/alibabacloud/dms-enterprise/model/GetDataCorrectBackupFilesResult.h + include/alibabacloud/dms-enterprise/model/GetDataCorrectOrderDetailRequest.h + include/alibabacloud/dms-enterprise/model/GetDataCorrectOrderDetailResult.h + include/alibabacloud/dms-enterprise/model/GetDataExportDownloadURLRequest.h + include/alibabacloud/dms-enterprise/model/GetDataExportDownloadURLResult.h + include/alibabacloud/dms-enterprise/model/GetDataExportOrderDetailRequest.h + include/alibabacloud/dms-enterprise/model/GetDataExportOrderDetailResult.h + include/alibabacloud/dms-enterprise/model/GetDatabaseRequest.h + include/alibabacloud/dms-enterprise/model/GetDatabaseResult.h + include/alibabacloud/dms-enterprise/model/GetInstanceRequest.h + include/alibabacloud/dms-enterprise/model/GetInstanceResult.h + include/alibabacloud/dms-enterprise/model/GetLogicDatabaseRequest.h + include/alibabacloud/dms-enterprise/model/GetLogicDatabaseResult.h + include/alibabacloud/dms-enterprise/model/GetOpLogRequest.h + include/alibabacloud/dms-enterprise/model/GetOpLogResult.h + include/alibabacloud/dms-enterprise/model/GetOrderBaseInfoRequest.h + include/alibabacloud/dms-enterprise/model/GetOrderBaseInfoResult.h + include/alibabacloud/dms-enterprise/model/GetUserRequest.h + include/alibabacloud/dms-enterprise/model/GetUserResult.h + include/alibabacloud/dms-enterprise/model/GrantUserPermissionRequest.h + include/alibabacloud/dms-enterprise/model/GrantUserPermissionResult.h + include/alibabacloud/dms-enterprise/model/ListColumnsRequest.h + include/alibabacloud/dms-enterprise/model/ListColumnsResult.h + include/alibabacloud/dms-enterprise/model/ListDatabaseUserPermssionsRequest.h + include/alibabacloud/dms-enterprise/model/ListDatabaseUserPermssionsResult.h + include/alibabacloud/dms-enterprise/model/ListDatabasesRequest.h + include/alibabacloud/dms-enterprise/model/ListDatabasesResult.h + include/alibabacloud/dms-enterprise/model/ListIndexesRequest.h + include/alibabacloud/dms-enterprise/model/ListIndexesResult.h + include/alibabacloud/dms-enterprise/model/ListInstancesRequest.h + include/alibabacloud/dms-enterprise/model/ListInstancesResult.h + include/alibabacloud/dms-enterprise/model/ListLogicDatabasesRequest.h + include/alibabacloud/dms-enterprise/model/ListLogicDatabasesResult.h + include/alibabacloud/dms-enterprise/model/ListLogicTablesRequest.h + include/alibabacloud/dms-enterprise/model/ListLogicTablesResult.h + include/alibabacloud/dms-enterprise/model/ListOrdersRequest.h + include/alibabacloud/dms-enterprise/model/ListOrdersResult.h + include/alibabacloud/dms-enterprise/model/ListTablesRequest.h + include/alibabacloud/dms-enterprise/model/ListTablesResult.h + include/alibabacloud/dms-enterprise/model/ListUserPermissionsRequest.h + include/alibabacloud/dms-enterprise/model/ListUserPermissionsResult.h + include/alibabacloud/dms-enterprise/model/ListUsersRequest.h + include/alibabacloud/dms-enterprise/model/ListUsersResult.h + include/alibabacloud/dms-enterprise/model/ListWorkFlowNodesRequest.h + include/alibabacloud/dms-enterprise/model/ListWorkFlowNodesResult.h + include/alibabacloud/dms-enterprise/model/ListWorkFlowTemplatesRequest.h + include/alibabacloud/dms-enterprise/model/ListWorkFlowTemplatesResult.h + include/alibabacloud/dms-enterprise/model/RegisterInstanceRequest.h + include/alibabacloud/dms-enterprise/model/RegisterInstanceResult.h + include/alibabacloud/dms-enterprise/model/RegisterUserRequest.h + include/alibabacloud/dms-enterprise/model/RegisterUserResult.h + include/alibabacloud/dms-enterprise/model/RevokeUserPermissionRequest.h + include/alibabacloud/dms-enterprise/model/RevokeUserPermissionResult.h + include/alibabacloud/dms-enterprise/model/SearchDatabaseRequest.h + include/alibabacloud/dms-enterprise/model/SearchDatabaseResult.h + include/alibabacloud/dms-enterprise/model/SearchTableRequest.h + include/alibabacloud/dms-enterprise/model/SearchTableResult.h + include/alibabacloud/dms-enterprise/model/SetOwnersRequest.h + include/alibabacloud/dms-enterprise/model/SetOwnersResult.h + include/alibabacloud/dms-enterprise/model/SubmitOrderApprovalRequest.h + include/alibabacloud/dms-enterprise/model/SubmitOrderApprovalResult.h + include/alibabacloud/dms-enterprise/model/SyncDatabaseMetaRequest.h + include/alibabacloud/dms-enterprise/model/SyncDatabaseMetaResult.h + include/alibabacloud/dms-enterprise/model/SyncInstanceMetaRequest.h + include/alibabacloud/dms-enterprise/model/SyncInstanceMetaResult.h + include/alibabacloud/dms-enterprise/model/UpdateInstanceRequest.h + include/alibabacloud/dms-enterprise/model/UpdateInstanceResult.h + include/alibabacloud/dms-enterprise/model/UpdateUserRequest.h + include/alibabacloud/dms-enterprise/model/UpdateUserResult.h ) + +set(dms-enterprise_src + src/Dms-enterpriseClient.cc + src/model/ApproveOrderRequest.cc + src/model/ApproveOrderResult.cc + src/model/CloseOrderRequest.cc + src/model/CloseOrderResult.cc + src/model/CreateOrderRequest.cc + src/model/CreateOrderResult.cc + src/model/CreatePublishGroupTaskRequest.cc + src/model/CreatePublishGroupTaskResult.cc + src/model/DeleteInstanceRequest.cc + src/model/DeleteInstanceResult.cc + src/model/DeleteUserRequest.cc + src/model/DeleteUserResult.cc + src/model/DisableUserRequest.cc + src/model/DisableUserResult.cc + src/model/EnableUserRequest.cc + src/model/EnableUserResult.cc + src/model/ExecuteDataCorrectRequest.cc + src/model/ExecuteDataCorrectResult.cc + src/model/ExecuteDataExportRequest.cc + src/model/ExecuteDataExportResult.cc + src/model/GetApprovalDetailRequest.cc + src/model/GetApprovalDetailResult.cc + src/model/GetDataCorrectBackupFilesRequest.cc + src/model/GetDataCorrectBackupFilesResult.cc + src/model/GetDataCorrectOrderDetailRequest.cc + src/model/GetDataCorrectOrderDetailResult.cc + src/model/GetDataExportDownloadURLRequest.cc + src/model/GetDataExportDownloadURLResult.cc + src/model/GetDataExportOrderDetailRequest.cc + src/model/GetDataExportOrderDetailResult.cc + src/model/GetDatabaseRequest.cc + src/model/GetDatabaseResult.cc + src/model/GetInstanceRequest.cc + src/model/GetInstanceResult.cc + src/model/GetLogicDatabaseRequest.cc + src/model/GetLogicDatabaseResult.cc + src/model/GetOpLogRequest.cc + src/model/GetOpLogResult.cc + src/model/GetOrderBaseInfoRequest.cc + src/model/GetOrderBaseInfoResult.cc + src/model/GetUserRequest.cc + src/model/GetUserResult.cc + src/model/GrantUserPermissionRequest.cc + src/model/GrantUserPermissionResult.cc + src/model/ListColumnsRequest.cc + src/model/ListColumnsResult.cc + src/model/ListDatabaseUserPermssionsRequest.cc + src/model/ListDatabaseUserPermssionsResult.cc + src/model/ListDatabasesRequest.cc + src/model/ListDatabasesResult.cc + src/model/ListIndexesRequest.cc + src/model/ListIndexesResult.cc + src/model/ListInstancesRequest.cc + src/model/ListInstancesResult.cc + src/model/ListLogicDatabasesRequest.cc + src/model/ListLogicDatabasesResult.cc + src/model/ListLogicTablesRequest.cc + src/model/ListLogicTablesResult.cc + src/model/ListOrdersRequest.cc + src/model/ListOrdersResult.cc + src/model/ListTablesRequest.cc + src/model/ListTablesResult.cc + src/model/ListUserPermissionsRequest.cc + src/model/ListUserPermissionsResult.cc + src/model/ListUsersRequest.cc + src/model/ListUsersResult.cc + src/model/ListWorkFlowNodesRequest.cc + src/model/ListWorkFlowNodesResult.cc + src/model/ListWorkFlowTemplatesRequest.cc + src/model/ListWorkFlowTemplatesResult.cc + src/model/RegisterInstanceRequest.cc + src/model/RegisterInstanceResult.cc + src/model/RegisterUserRequest.cc + src/model/RegisterUserResult.cc + src/model/RevokeUserPermissionRequest.cc + src/model/RevokeUserPermissionResult.cc + src/model/SearchDatabaseRequest.cc + src/model/SearchDatabaseResult.cc + src/model/SearchTableRequest.cc + src/model/SearchTableResult.cc + src/model/SetOwnersRequest.cc + src/model/SetOwnersResult.cc + src/model/SubmitOrderApprovalRequest.cc + src/model/SubmitOrderApprovalResult.cc + src/model/SyncDatabaseMetaRequest.cc + src/model/SyncDatabaseMetaResult.cc + src/model/SyncInstanceMetaRequest.cc + src/model/SyncInstanceMetaResult.cc + src/model/UpdateInstanceRequest.cc + src/model/UpdateInstanceResult.cc + src/model/UpdateUserRequest.cc + src/model/UpdateUserResult.cc ) + +add_library(dms-enterprise ${LIB_TYPE} + ${dms-enterprise_public_header} + ${dms-enterprise_public_header_model} + ${dms-enterprise_src}) + +set_target_properties(dms-enterprise + 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}dms-enterprise + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(dms-enterprise + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_DMS_ENTERPRISE_LIBRARY) +endif() + +target_include_directories(dms-enterprise + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(dms-enterprise + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(dms-enterprise + jsoncpp) + target_include_directories(dms-enterprise + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(dms-enterprise + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(dms-enterprise + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(dms-enterprise + PRIVATE /usr/include/jsoncpp) + target_link_libraries(dms-enterprise + jsoncpp) +endif() + +install(FILES ${dms-enterprise_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/dms-enterprise) +install(FILES ${dms-enterprise_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/dms-enterprise/model) +install(TARGETS dms-enterprise + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/Dms_enterpriseClient.h b/dms-enterprise/include/alibabacloud/dms-enterprise/Dms_enterpriseClient.h new file mode 100644 index 000000000..f2c93b2f3 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/Dms_enterpriseClient.h @@ -0,0 +1,414 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_DMS_ENTERPRISE_DMS_ENTERPRISECLIENT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_DMS_ENTERPRISECLIENT_H_ + +#include +#include +#include +#include +#include "Dms_enterpriseExport.h" +#include "model/ApproveOrderRequest.h" +#include "model/ApproveOrderResult.h" +#include "model/CloseOrderRequest.h" +#include "model/CloseOrderResult.h" +#include "model/CreateOrderRequest.h" +#include "model/CreateOrderResult.h" +#include "model/CreatePublishGroupTaskRequest.h" +#include "model/CreatePublishGroupTaskResult.h" +#include "model/DeleteInstanceRequest.h" +#include "model/DeleteInstanceResult.h" +#include "model/DeleteUserRequest.h" +#include "model/DeleteUserResult.h" +#include "model/DisableUserRequest.h" +#include "model/DisableUserResult.h" +#include "model/EnableUserRequest.h" +#include "model/EnableUserResult.h" +#include "model/ExecuteDataCorrectRequest.h" +#include "model/ExecuteDataCorrectResult.h" +#include "model/ExecuteDataExportRequest.h" +#include "model/ExecuteDataExportResult.h" +#include "model/GetApprovalDetailRequest.h" +#include "model/GetApprovalDetailResult.h" +#include "model/GetDataCorrectBackupFilesRequest.h" +#include "model/GetDataCorrectBackupFilesResult.h" +#include "model/GetDataCorrectOrderDetailRequest.h" +#include "model/GetDataCorrectOrderDetailResult.h" +#include "model/GetDataExportDownloadURLRequest.h" +#include "model/GetDataExportDownloadURLResult.h" +#include "model/GetDataExportOrderDetailRequest.h" +#include "model/GetDataExportOrderDetailResult.h" +#include "model/GetDatabaseRequest.h" +#include "model/GetDatabaseResult.h" +#include "model/GetInstanceRequest.h" +#include "model/GetInstanceResult.h" +#include "model/GetLogicDatabaseRequest.h" +#include "model/GetLogicDatabaseResult.h" +#include "model/GetOpLogRequest.h" +#include "model/GetOpLogResult.h" +#include "model/GetOrderBaseInfoRequest.h" +#include "model/GetOrderBaseInfoResult.h" +#include "model/GetUserRequest.h" +#include "model/GetUserResult.h" +#include "model/GrantUserPermissionRequest.h" +#include "model/GrantUserPermissionResult.h" +#include "model/ListColumnsRequest.h" +#include "model/ListColumnsResult.h" +#include "model/ListDatabaseUserPermssionsRequest.h" +#include "model/ListDatabaseUserPermssionsResult.h" +#include "model/ListDatabasesRequest.h" +#include "model/ListDatabasesResult.h" +#include "model/ListIndexesRequest.h" +#include "model/ListIndexesResult.h" +#include "model/ListInstancesRequest.h" +#include "model/ListInstancesResult.h" +#include "model/ListLogicDatabasesRequest.h" +#include "model/ListLogicDatabasesResult.h" +#include "model/ListLogicTablesRequest.h" +#include "model/ListLogicTablesResult.h" +#include "model/ListOrdersRequest.h" +#include "model/ListOrdersResult.h" +#include "model/ListTablesRequest.h" +#include "model/ListTablesResult.h" +#include "model/ListUserPermissionsRequest.h" +#include "model/ListUserPermissionsResult.h" +#include "model/ListUsersRequest.h" +#include "model/ListUsersResult.h" +#include "model/ListWorkFlowNodesRequest.h" +#include "model/ListWorkFlowNodesResult.h" +#include "model/ListWorkFlowTemplatesRequest.h" +#include "model/ListWorkFlowTemplatesResult.h" +#include "model/RegisterInstanceRequest.h" +#include "model/RegisterInstanceResult.h" +#include "model/RegisterUserRequest.h" +#include "model/RegisterUserResult.h" +#include "model/RevokeUserPermissionRequest.h" +#include "model/RevokeUserPermissionResult.h" +#include "model/SearchDatabaseRequest.h" +#include "model/SearchDatabaseResult.h" +#include "model/SearchTableRequest.h" +#include "model/SearchTableResult.h" +#include "model/SetOwnersRequest.h" +#include "model/SetOwnersResult.h" +#include "model/SubmitOrderApprovalRequest.h" +#include "model/SubmitOrderApprovalResult.h" +#include "model/SyncDatabaseMetaRequest.h" +#include "model/SyncDatabaseMetaResult.h" +#include "model/SyncInstanceMetaRequest.h" +#include "model/SyncInstanceMetaResult.h" +#include "model/UpdateInstanceRequest.h" +#include "model/UpdateInstanceResult.h" +#include "model/UpdateUserRequest.h" +#include "model/UpdateUserResult.h" + + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT Dms_enterpriseClient : public RpcServiceClient + { + public: + typedef Outcome ApproveOrderOutcome; + typedef std::future ApproveOrderOutcomeCallable; + typedef std::function&)> ApproveOrderAsyncHandler; + typedef Outcome CloseOrderOutcome; + typedef std::future CloseOrderOutcomeCallable; + typedef std::function&)> CloseOrderAsyncHandler; + typedef Outcome CreateOrderOutcome; + typedef std::future CreateOrderOutcomeCallable; + typedef std::function&)> CreateOrderAsyncHandler; + typedef Outcome CreatePublishGroupTaskOutcome; + typedef std::future CreatePublishGroupTaskOutcomeCallable; + typedef std::function&)> CreatePublishGroupTaskAsyncHandler; + typedef Outcome DeleteInstanceOutcome; + typedef std::future DeleteInstanceOutcomeCallable; + typedef std::function&)> DeleteInstanceAsyncHandler; + typedef Outcome DeleteUserOutcome; + typedef std::future DeleteUserOutcomeCallable; + typedef std::function&)> DeleteUserAsyncHandler; + typedef Outcome DisableUserOutcome; + typedef std::future DisableUserOutcomeCallable; + typedef std::function&)> DisableUserAsyncHandler; + typedef Outcome EnableUserOutcome; + typedef std::future EnableUserOutcomeCallable; + typedef std::function&)> EnableUserAsyncHandler; + typedef Outcome ExecuteDataCorrectOutcome; + typedef std::future ExecuteDataCorrectOutcomeCallable; + typedef std::function&)> ExecuteDataCorrectAsyncHandler; + typedef Outcome ExecuteDataExportOutcome; + typedef std::future ExecuteDataExportOutcomeCallable; + typedef std::function&)> ExecuteDataExportAsyncHandler; + typedef Outcome GetApprovalDetailOutcome; + typedef std::future GetApprovalDetailOutcomeCallable; + typedef std::function&)> GetApprovalDetailAsyncHandler; + typedef Outcome GetDataCorrectBackupFilesOutcome; + typedef std::future GetDataCorrectBackupFilesOutcomeCallable; + typedef std::function&)> GetDataCorrectBackupFilesAsyncHandler; + typedef Outcome GetDataCorrectOrderDetailOutcome; + typedef std::future GetDataCorrectOrderDetailOutcomeCallable; + typedef std::function&)> GetDataCorrectOrderDetailAsyncHandler; + typedef Outcome GetDataExportDownloadURLOutcome; + typedef std::future GetDataExportDownloadURLOutcomeCallable; + typedef std::function&)> GetDataExportDownloadURLAsyncHandler; + typedef Outcome GetDataExportOrderDetailOutcome; + typedef std::future GetDataExportOrderDetailOutcomeCallable; + typedef std::function&)> GetDataExportOrderDetailAsyncHandler; + typedef Outcome GetDatabaseOutcome; + typedef std::future GetDatabaseOutcomeCallable; + typedef std::function&)> GetDatabaseAsyncHandler; + typedef Outcome GetInstanceOutcome; + typedef std::future GetInstanceOutcomeCallable; + typedef std::function&)> GetInstanceAsyncHandler; + typedef Outcome GetLogicDatabaseOutcome; + typedef std::future GetLogicDatabaseOutcomeCallable; + typedef std::function&)> GetLogicDatabaseAsyncHandler; + typedef Outcome GetOpLogOutcome; + typedef std::future GetOpLogOutcomeCallable; + typedef std::function&)> GetOpLogAsyncHandler; + typedef Outcome GetOrderBaseInfoOutcome; + typedef std::future GetOrderBaseInfoOutcomeCallable; + typedef std::function&)> GetOrderBaseInfoAsyncHandler; + typedef Outcome GetUserOutcome; + typedef std::future GetUserOutcomeCallable; + typedef std::function&)> GetUserAsyncHandler; + typedef Outcome GrantUserPermissionOutcome; + typedef std::future GrantUserPermissionOutcomeCallable; + typedef std::function&)> GrantUserPermissionAsyncHandler; + typedef Outcome ListColumnsOutcome; + typedef std::future ListColumnsOutcomeCallable; + typedef std::function&)> ListColumnsAsyncHandler; + typedef Outcome ListDatabaseUserPermssionsOutcome; + typedef std::future ListDatabaseUserPermssionsOutcomeCallable; + typedef std::function&)> ListDatabaseUserPermssionsAsyncHandler; + typedef Outcome ListDatabasesOutcome; + typedef std::future ListDatabasesOutcomeCallable; + typedef std::function&)> ListDatabasesAsyncHandler; + typedef Outcome ListIndexesOutcome; + typedef std::future ListIndexesOutcomeCallable; + typedef std::function&)> ListIndexesAsyncHandler; + typedef Outcome ListInstancesOutcome; + typedef std::future ListInstancesOutcomeCallable; + typedef std::function&)> ListInstancesAsyncHandler; + typedef Outcome ListLogicDatabasesOutcome; + typedef std::future ListLogicDatabasesOutcomeCallable; + typedef std::function&)> ListLogicDatabasesAsyncHandler; + typedef Outcome ListLogicTablesOutcome; + typedef std::future ListLogicTablesOutcomeCallable; + typedef std::function&)> ListLogicTablesAsyncHandler; + typedef Outcome ListOrdersOutcome; + typedef std::future ListOrdersOutcomeCallable; + typedef std::function&)> ListOrdersAsyncHandler; + typedef Outcome ListTablesOutcome; + typedef std::future ListTablesOutcomeCallable; + typedef std::function&)> ListTablesAsyncHandler; + typedef Outcome ListUserPermissionsOutcome; + typedef std::future ListUserPermissionsOutcomeCallable; + typedef std::function&)> ListUserPermissionsAsyncHandler; + typedef Outcome ListUsersOutcome; + typedef std::future ListUsersOutcomeCallable; + typedef std::function&)> ListUsersAsyncHandler; + typedef Outcome ListWorkFlowNodesOutcome; + typedef std::future ListWorkFlowNodesOutcomeCallable; + typedef std::function&)> ListWorkFlowNodesAsyncHandler; + typedef Outcome ListWorkFlowTemplatesOutcome; + typedef std::future ListWorkFlowTemplatesOutcomeCallable; + typedef std::function&)> ListWorkFlowTemplatesAsyncHandler; + typedef Outcome RegisterInstanceOutcome; + typedef std::future RegisterInstanceOutcomeCallable; + typedef std::function&)> RegisterInstanceAsyncHandler; + typedef Outcome RegisterUserOutcome; + typedef std::future RegisterUserOutcomeCallable; + typedef std::function&)> RegisterUserAsyncHandler; + typedef Outcome RevokeUserPermissionOutcome; + typedef std::future RevokeUserPermissionOutcomeCallable; + typedef std::function&)> RevokeUserPermissionAsyncHandler; + typedef Outcome SearchDatabaseOutcome; + typedef std::future SearchDatabaseOutcomeCallable; + typedef std::function&)> SearchDatabaseAsyncHandler; + typedef Outcome SearchTableOutcome; + typedef std::future SearchTableOutcomeCallable; + typedef std::function&)> SearchTableAsyncHandler; + typedef Outcome SetOwnersOutcome; + typedef std::future SetOwnersOutcomeCallable; + typedef std::function&)> SetOwnersAsyncHandler; + typedef Outcome SubmitOrderApprovalOutcome; + typedef std::future SubmitOrderApprovalOutcomeCallable; + typedef std::function&)> SubmitOrderApprovalAsyncHandler; + typedef Outcome SyncDatabaseMetaOutcome; + typedef std::future SyncDatabaseMetaOutcomeCallable; + typedef std::function&)> SyncDatabaseMetaAsyncHandler; + typedef Outcome SyncInstanceMetaOutcome; + typedef std::future SyncInstanceMetaOutcomeCallable; + typedef std::function&)> SyncInstanceMetaAsyncHandler; + typedef Outcome UpdateInstanceOutcome; + typedef std::future UpdateInstanceOutcomeCallable; + typedef std::function&)> UpdateInstanceAsyncHandler; + typedef Outcome UpdateUserOutcome; + typedef std::future UpdateUserOutcomeCallable; + typedef std::function&)> UpdateUserAsyncHandler; + + Dms_enterpriseClient(const Credentials &credentials, const ClientConfiguration &configuration); + Dms_enterpriseClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + Dms_enterpriseClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~Dms_enterpriseClient(); + ApproveOrderOutcome approveOrder(const Model::ApproveOrderRequest &request)const; + void approveOrderAsync(const Model::ApproveOrderRequest& request, const ApproveOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ApproveOrderOutcomeCallable approveOrderCallable(const Model::ApproveOrderRequest& request) const; + CloseOrderOutcome closeOrder(const Model::CloseOrderRequest &request)const; + void closeOrderAsync(const Model::CloseOrderRequest& request, const CloseOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CloseOrderOutcomeCallable closeOrderCallable(const Model::CloseOrderRequest& request) const; + CreateOrderOutcome createOrder(const Model::CreateOrderRequest &request)const; + void createOrderAsync(const Model::CreateOrderRequest& request, const CreateOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateOrderOutcomeCallable createOrderCallable(const Model::CreateOrderRequest& request) const; + CreatePublishGroupTaskOutcome createPublishGroupTask(const Model::CreatePublishGroupTaskRequest &request)const; + void createPublishGroupTaskAsync(const Model::CreatePublishGroupTaskRequest& request, const CreatePublishGroupTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreatePublishGroupTaskOutcomeCallable createPublishGroupTaskCallable(const Model::CreatePublishGroupTaskRequest& request) const; + DeleteInstanceOutcome deleteInstance(const Model::DeleteInstanceRequest &request)const; + void deleteInstanceAsync(const Model::DeleteInstanceRequest& request, const DeleteInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteInstanceOutcomeCallable deleteInstanceCallable(const Model::DeleteInstanceRequest& request) const; + DeleteUserOutcome deleteUser(const Model::DeleteUserRequest &request)const; + void deleteUserAsync(const Model::DeleteUserRequest& request, const DeleteUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteUserOutcomeCallable deleteUserCallable(const Model::DeleteUserRequest& request) const; + DisableUserOutcome disableUser(const Model::DisableUserRequest &request)const; + void disableUserAsync(const Model::DisableUserRequest& request, const DisableUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DisableUserOutcomeCallable disableUserCallable(const Model::DisableUserRequest& request) const; + EnableUserOutcome enableUser(const Model::EnableUserRequest &request)const; + void enableUserAsync(const Model::EnableUserRequest& request, const EnableUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + EnableUserOutcomeCallable enableUserCallable(const Model::EnableUserRequest& request) const; + ExecuteDataCorrectOutcome executeDataCorrect(const Model::ExecuteDataCorrectRequest &request)const; + void executeDataCorrectAsync(const Model::ExecuteDataCorrectRequest& request, const ExecuteDataCorrectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ExecuteDataCorrectOutcomeCallable executeDataCorrectCallable(const Model::ExecuteDataCorrectRequest& request) const; + ExecuteDataExportOutcome executeDataExport(const Model::ExecuteDataExportRequest &request)const; + void executeDataExportAsync(const Model::ExecuteDataExportRequest& request, const ExecuteDataExportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ExecuteDataExportOutcomeCallable executeDataExportCallable(const Model::ExecuteDataExportRequest& request) const; + GetApprovalDetailOutcome getApprovalDetail(const Model::GetApprovalDetailRequest &request)const; + void getApprovalDetailAsync(const Model::GetApprovalDetailRequest& request, const GetApprovalDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetApprovalDetailOutcomeCallable getApprovalDetailCallable(const Model::GetApprovalDetailRequest& request) const; + GetDataCorrectBackupFilesOutcome getDataCorrectBackupFiles(const Model::GetDataCorrectBackupFilesRequest &request)const; + void getDataCorrectBackupFilesAsync(const Model::GetDataCorrectBackupFilesRequest& request, const GetDataCorrectBackupFilesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetDataCorrectBackupFilesOutcomeCallable getDataCorrectBackupFilesCallable(const Model::GetDataCorrectBackupFilesRequest& request) const; + GetDataCorrectOrderDetailOutcome getDataCorrectOrderDetail(const Model::GetDataCorrectOrderDetailRequest &request)const; + void getDataCorrectOrderDetailAsync(const Model::GetDataCorrectOrderDetailRequest& request, const GetDataCorrectOrderDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetDataCorrectOrderDetailOutcomeCallable getDataCorrectOrderDetailCallable(const Model::GetDataCorrectOrderDetailRequest& request) const; + GetDataExportDownloadURLOutcome getDataExportDownloadURL(const Model::GetDataExportDownloadURLRequest &request)const; + void getDataExportDownloadURLAsync(const Model::GetDataExportDownloadURLRequest& request, const GetDataExportDownloadURLAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetDataExportDownloadURLOutcomeCallable getDataExportDownloadURLCallable(const Model::GetDataExportDownloadURLRequest& request) const; + GetDataExportOrderDetailOutcome getDataExportOrderDetail(const Model::GetDataExportOrderDetailRequest &request)const; + void getDataExportOrderDetailAsync(const Model::GetDataExportOrderDetailRequest& request, const GetDataExportOrderDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetDataExportOrderDetailOutcomeCallable getDataExportOrderDetailCallable(const Model::GetDataExportOrderDetailRequest& request) const; + GetDatabaseOutcome getDatabase(const Model::GetDatabaseRequest &request)const; + void getDatabaseAsync(const Model::GetDatabaseRequest& request, const GetDatabaseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetDatabaseOutcomeCallable getDatabaseCallable(const Model::GetDatabaseRequest& request) const; + GetInstanceOutcome getInstance(const Model::GetInstanceRequest &request)const; + void getInstanceAsync(const Model::GetInstanceRequest& request, const GetInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetInstanceOutcomeCallable getInstanceCallable(const Model::GetInstanceRequest& request) const; + GetLogicDatabaseOutcome getLogicDatabase(const Model::GetLogicDatabaseRequest &request)const; + void getLogicDatabaseAsync(const Model::GetLogicDatabaseRequest& request, const GetLogicDatabaseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetLogicDatabaseOutcomeCallable getLogicDatabaseCallable(const Model::GetLogicDatabaseRequest& request) const; + GetOpLogOutcome getOpLog(const Model::GetOpLogRequest &request)const; + void getOpLogAsync(const Model::GetOpLogRequest& request, const GetOpLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetOpLogOutcomeCallable getOpLogCallable(const Model::GetOpLogRequest& request) const; + GetOrderBaseInfoOutcome getOrderBaseInfo(const Model::GetOrderBaseInfoRequest &request)const; + void getOrderBaseInfoAsync(const Model::GetOrderBaseInfoRequest& request, const GetOrderBaseInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetOrderBaseInfoOutcomeCallable getOrderBaseInfoCallable(const Model::GetOrderBaseInfoRequest& request) const; + GetUserOutcome getUser(const Model::GetUserRequest &request)const; + void getUserAsync(const Model::GetUserRequest& request, const GetUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetUserOutcomeCallable getUserCallable(const Model::GetUserRequest& request) const; + GrantUserPermissionOutcome grantUserPermission(const Model::GrantUserPermissionRequest &request)const; + void grantUserPermissionAsync(const Model::GrantUserPermissionRequest& request, const GrantUserPermissionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GrantUserPermissionOutcomeCallable grantUserPermissionCallable(const Model::GrantUserPermissionRequest& request) const; + ListColumnsOutcome listColumns(const Model::ListColumnsRequest &request)const; + void listColumnsAsync(const Model::ListColumnsRequest& request, const ListColumnsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListColumnsOutcomeCallable listColumnsCallable(const Model::ListColumnsRequest& request) const; + ListDatabaseUserPermssionsOutcome listDatabaseUserPermssions(const Model::ListDatabaseUserPermssionsRequest &request)const; + void listDatabaseUserPermssionsAsync(const Model::ListDatabaseUserPermssionsRequest& request, const ListDatabaseUserPermssionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListDatabaseUserPermssionsOutcomeCallable listDatabaseUserPermssionsCallable(const Model::ListDatabaseUserPermssionsRequest& request) const; + ListDatabasesOutcome listDatabases(const Model::ListDatabasesRequest &request)const; + void listDatabasesAsync(const Model::ListDatabasesRequest& request, const ListDatabasesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListDatabasesOutcomeCallable listDatabasesCallable(const Model::ListDatabasesRequest& request) const; + ListIndexesOutcome listIndexes(const Model::ListIndexesRequest &request)const; + void listIndexesAsync(const Model::ListIndexesRequest& request, const ListIndexesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListIndexesOutcomeCallable listIndexesCallable(const Model::ListIndexesRequest& request) const; + ListInstancesOutcome listInstances(const Model::ListInstancesRequest &request)const; + void listInstancesAsync(const Model::ListInstancesRequest& request, const ListInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListInstancesOutcomeCallable listInstancesCallable(const Model::ListInstancesRequest& request) const; + ListLogicDatabasesOutcome listLogicDatabases(const Model::ListLogicDatabasesRequest &request)const; + void listLogicDatabasesAsync(const Model::ListLogicDatabasesRequest& request, const ListLogicDatabasesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListLogicDatabasesOutcomeCallable listLogicDatabasesCallable(const Model::ListLogicDatabasesRequest& request) const; + ListLogicTablesOutcome listLogicTables(const Model::ListLogicTablesRequest &request)const; + void listLogicTablesAsync(const Model::ListLogicTablesRequest& request, const ListLogicTablesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListLogicTablesOutcomeCallable listLogicTablesCallable(const Model::ListLogicTablesRequest& request) const; + ListOrdersOutcome listOrders(const Model::ListOrdersRequest &request)const; + void listOrdersAsync(const Model::ListOrdersRequest& request, const ListOrdersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListOrdersOutcomeCallable listOrdersCallable(const Model::ListOrdersRequest& request) const; + ListTablesOutcome listTables(const Model::ListTablesRequest &request)const; + void listTablesAsync(const Model::ListTablesRequest& request, const ListTablesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTablesOutcomeCallable listTablesCallable(const Model::ListTablesRequest& request) const; + ListUserPermissionsOutcome listUserPermissions(const Model::ListUserPermissionsRequest &request)const; + void listUserPermissionsAsync(const Model::ListUserPermissionsRequest& request, const ListUserPermissionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListUserPermissionsOutcomeCallable listUserPermissionsCallable(const Model::ListUserPermissionsRequest& request) const; + ListUsersOutcome listUsers(const Model::ListUsersRequest &request)const; + void listUsersAsync(const Model::ListUsersRequest& request, const ListUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListUsersOutcomeCallable listUsersCallable(const Model::ListUsersRequest& request) const; + ListWorkFlowNodesOutcome listWorkFlowNodes(const Model::ListWorkFlowNodesRequest &request)const; + void listWorkFlowNodesAsync(const Model::ListWorkFlowNodesRequest& request, const ListWorkFlowNodesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListWorkFlowNodesOutcomeCallable listWorkFlowNodesCallable(const Model::ListWorkFlowNodesRequest& request) const; + ListWorkFlowTemplatesOutcome listWorkFlowTemplates(const Model::ListWorkFlowTemplatesRequest &request)const; + void listWorkFlowTemplatesAsync(const Model::ListWorkFlowTemplatesRequest& request, const ListWorkFlowTemplatesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListWorkFlowTemplatesOutcomeCallable listWorkFlowTemplatesCallable(const Model::ListWorkFlowTemplatesRequest& request) const; + RegisterInstanceOutcome registerInstance(const Model::RegisterInstanceRequest &request)const; + void registerInstanceAsync(const Model::RegisterInstanceRequest& request, const RegisterInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RegisterInstanceOutcomeCallable registerInstanceCallable(const Model::RegisterInstanceRequest& request) const; + RegisterUserOutcome registerUser(const Model::RegisterUserRequest &request)const; + void registerUserAsync(const Model::RegisterUserRequest& request, const RegisterUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RegisterUserOutcomeCallable registerUserCallable(const Model::RegisterUserRequest& request) const; + RevokeUserPermissionOutcome revokeUserPermission(const Model::RevokeUserPermissionRequest &request)const; + void revokeUserPermissionAsync(const Model::RevokeUserPermissionRequest& request, const RevokeUserPermissionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RevokeUserPermissionOutcomeCallable revokeUserPermissionCallable(const Model::RevokeUserPermissionRequest& request) const; + SearchDatabaseOutcome searchDatabase(const Model::SearchDatabaseRequest &request)const; + void searchDatabaseAsync(const Model::SearchDatabaseRequest& request, const SearchDatabaseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SearchDatabaseOutcomeCallable searchDatabaseCallable(const Model::SearchDatabaseRequest& request) const; + SearchTableOutcome searchTable(const Model::SearchTableRequest &request)const; + void searchTableAsync(const Model::SearchTableRequest& request, const SearchTableAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SearchTableOutcomeCallable searchTableCallable(const Model::SearchTableRequest& request) const; + SetOwnersOutcome setOwners(const Model::SetOwnersRequest &request)const; + void setOwnersAsync(const Model::SetOwnersRequest& request, const SetOwnersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetOwnersOutcomeCallable setOwnersCallable(const Model::SetOwnersRequest& request) const; + SubmitOrderApprovalOutcome submitOrderApproval(const Model::SubmitOrderApprovalRequest &request)const; + void submitOrderApprovalAsync(const Model::SubmitOrderApprovalRequest& request, const SubmitOrderApprovalAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SubmitOrderApprovalOutcomeCallable submitOrderApprovalCallable(const Model::SubmitOrderApprovalRequest& request) const; + SyncDatabaseMetaOutcome syncDatabaseMeta(const Model::SyncDatabaseMetaRequest &request)const; + void syncDatabaseMetaAsync(const Model::SyncDatabaseMetaRequest& request, const SyncDatabaseMetaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SyncDatabaseMetaOutcomeCallable syncDatabaseMetaCallable(const Model::SyncDatabaseMetaRequest& request) const; + SyncInstanceMetaOutcome syncInstanceMeta(const Model::SyncInstanceMetaRequest &request)const; + void syncInstanceMetaAsync(const Model::SyncInstanceMetaRequest& request, const SyncInstanceMetaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SyncInstanceMetaOutcomeCallable syncInstanceMetaCallable(const Model::SyncInstanceMetaRequest& request) const; + UpdateInstanceOutcome updateInstance(const Model::UpdateInstanceRequest &request)const; + void updateInstanceAsync(const Model::UpdateInstanceRequest& request, const UpdateInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateInstanceOutcomeCallable updateInstanceCallable(const Model::UpdateInstanceRequest& request) const; + UpdateUserOutcome updateUser(const Model::UpdateUserRequest &request)const; + void updateUserAsync(const Model::UpdateUserRequest& request, const UpdateUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateUserOutcomeCallable updateUserCallable(const Model::UpdateUserRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_DMS_ENTERPRISECLIENT_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/Dms_enterpriseExport.h b/dms-enterprise/include/alibabacloud/dms-enterprise/Dms_enterpriseExport.h new file mode 100644 index 000000000..985b3645c --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/Dms_enterpriseExport.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_DMS_ENTERPRISE_DMS_ENTERPRISEEXPORT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_DMS_ENTERPRISEEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_DMS_ENTERPRISE_LIBRARY) +# define ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_DMS_ENTERPRISE_EXPORT +#endif + +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_DMS_ENTERPRISEEXPORT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ApproveOrderRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ApproveOrderRequest.h new file mode 100644 index 000000000..59ed84329 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ApproveOrderRequest.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_DMS_ENTERPRISE_MODEL_APPROVEORDERREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_APPROVEORDERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ApproveOrderRequest : public RpcServiceRequest + { + + public: + ApproveOrderRequest(); + ~ApproveOrderRequest(); + + std::string getApprovalType()const; + void setApprovalType(const std::string& approvalType); + long getTid()const; + void setTid(long tid); + long getWorkflowInstanceId()const; + void setWorkflowInstanceId(long workflowInstanceId); + + private: + std::string approvalType_; + long tid_; + long workflowInstanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_APPROVEORDERREQUEST_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ApproveOrderResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ApproveOrderResult.h new file mode 100644 index 000000000..093ce3cd1 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ApproveOrderResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_APPROVEORDERRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_APPROVEORDERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ApproveOrderResult : public ServiceResult + { + public: + + + ApproveOrderResult(); + explicit ApproveOrderResult(const std::string &payload); + ~ApproveOrderResult(); + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_APPROVEORDERRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/CloseOrderRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/CloseOrderRequest.h new file mode 100644 index 000000000..edec1789d --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/CloseOrderRequest.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_DMS_ENTERPRISE_MODEL_CLOSEORDERREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CLOSEORDERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT CloseOrderRequest : public RpcServiceRequest + { + + public: + CloseOrderRequest(); + ~CloseOrderRequest(); + + long getOrderId()const; + void setOrderId(long orderId); + std::string getCloseReason()const; + void setCloseReason(const std::string& closeReason); + long getTid()const; + void setTid(long tid); + + private: + long orderId_; + std::string closeReason_; + long tid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CLOSEORDERREQUEST_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/CloseOrderResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/CloseOrderResult.h new file mode 100644 index 000000000..16eaf8012 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/CloseOrderResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CLOSEORDERRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CLOSEORDERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT CloseOrderResult : public ServiceResult + { + public: + + + CloseOrderResult(); + explicit CloseOrderResult(const std::string &payload); + ~CloseOrderResult(); + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CLOSEORDERRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateOrderRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateOrderRequest.h new file mode 100644 index 000000000..2d9868a08 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateOrderRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEORDERREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEORDERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT CreateOrderRequest : public RpcServiceRequest + { + + public: + CreateOrderRequest(); + ~CreateOrderRequest(); + + std::string getPluginType()const; + void setPluginType(const std::string& pluginType); + std::string getComment()const; + void setComment(const std::string& comment); + long getTid()const; + void setTid(long tid); + std::map getPluginParam()const; + void setPluginParam(const std::map& pluginParam); + std::string getRelatedUserList()const; + void setRelatedUserList(const std::string& relatedUserList); + + private: + std::string pluginType_; + std::string comment_; + long tid_; + std::map pluginParam_; + std::string relatedUserList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEORDERREQUEST_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateOrderResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateOrderResult.h new file mode 100644 index 000000000..a150baba0 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateOrderResult.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_DMS_ENTERPRISE_MODEL_CREATEORDERRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEORDERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT CreateOrderResult : public ServiceResult + { + public: + + + CreateOrderResult(); + explicit CreateOrderResult(const std::string &payload); + ~CreateOrderResult(); + std::vector getCreateOrderResult()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector createOrderResult_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEORDERRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreatePublishGroupTaskRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreatePublishGroupTaskRequest.h new file mode 100644 index 000000000..9386c5c73 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreatePublishGroupTaskRequest.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_DMS_ENTERPRISE_MODEL_CREATEPUBLISHGROUPTASKREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEPUBLISHGROUPTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT CreatePublishGroupTaskRequest : public RpcServiceRequest + { + + public: + CreatePublishGroupTaskRequest(); + ~CreatePublishGroupTaskRequest(); + + long getOrderId()const; + void setOrderId(long orderId); + int getDbId()const; + void setDbId(int dbId); + std::string getPlanTime()const; + void setPlanTime(const std::string& planTime); + bool getLogic()const; + void setLogic(bool logic); + long getTid()const; + void setTid(long tid); + std::string getPublishStrategy()const; + void setPublishStrategy(const std::string& publishStrategy); + + private: + long orderId_; + int dbId_; + std::string planTime_; + bool logic_; + long tid_; + std::string publishStrategy_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEPUBLISHGROUPTASKREQUEST_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreatePublishGroupTaskResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreatePublishGroupTaskResult.h new file mode 100644 index 000000000..102c56c80 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreatePublishGroupTaskResult.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_DMS_ENTERPRISE_MODEL_CREATEPUBLISHGROUPTASKRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEPUBLISHGROUPTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT CreatePublishGroupTaskResult : public ServiceResult + { + public: + + + CreatePublishGroupTaskResult(); + explicit CreatePublishGroupTaskResult(const std::string &payload); + ~CreatePublishGroupTaskResult(); + long getTaskId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + long taskId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEPUBLISHGROUPTASKRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/DeleteInstanceRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/DeleteInstanceRequest.h new file mode 100644 index 000000000..c416e15ae --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/DeleteInstanceRequest.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_DMS_ENTERPRISE_MODEL_DELETEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETEINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT DeleteInstanceRequest : public RpcServiceRequest + { + + public: + DeleteInstanceRequest(); + ~DeleteInstanceRequest(); + + int getPort()const; + void setPort(int port); + std::string getHost()const; + void setHost(const std::string& host); + long getTid()const; + void setTid(long tid); + std::string getSid()const; + void setSid(const std::string& sid); + + private: + int port_; + std::string host_; + long tid_; + std::string sid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETEINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/DeleteInstanceResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/DeleteInstanceResult.h new file mode 100644 index 000000000..7045676b2 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/DeleteInstanceResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETEINSTANCERESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETEINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT DeleteInstanceResult : public ServiceResult + { + public: + + + DeleteInstanceResult(); + explicit DeleteInstanceResult(const std::string &payload); + ~DeleteInstanceResult(); + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETEINSTANCERESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/DeleteUserRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/DeleteUserRequest.h new file mode 100644 index 000000000..bb6226404 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/DeleteUserRequest.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_DMS_ENTERPRISE_MODEL_DELETEUSERREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETEUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT DeleteUserRequest : public RpcServiceRequest + { + + public: + DeleteUserRequest(); + ~DeleteUserRequest(); + + long getUid()const; + void setUid(long uid); + long getTid()const; + void setTid(long tid); + + private: + long uid_; + long tid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETEUSERREQUEST_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/DeleteUserResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/DeleteUserResult.h new file mode 100644 index 000000000..04e04c35c --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/DeleteUserResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETEUSERRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETEUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT DeleteUserResult : public ServiceResult + { + public: + + + DeleteUserResult(); + explicit DeleteUserResult(const std::string &payload); + ~DeleteUserResult(); + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETEUSERRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/DisableUserRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/DisableUserRequest.h new file mode 100644 index 000000000..1b4251164 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/DisableUserRequest.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_DMS_ENTERPRISE_MODEL_DISABLEUSERREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DISABLEUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT DisableUserRequest : public RpcServiceRequest + { + + public: + DisableUserRequest(); + ~DisableUserRequest(); + + long getUid()const; + void setUid(long uid); + long getTid()const; + void setTid(long tid); + + private: + long uid_; + long tid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DISABLEUSERREQUEST_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/DisableUserResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/DisableUserResult.h new file mode 100644 index 000000000..5bc13bd0a --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/DisableUserResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DISABLEUSERRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DISABLEUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT DisableUserResult : public ServiceResult + { + public: + + + DisableUserResult(); + explicit DisableUserResult(const std::string &payload); + ~DisableUserResult(); + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DISABLEUSERRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/EnableUserRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/EnableUserRequest.h new file mode 100644 index 000000000..a86fe2b8b --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/EnableUserRequest.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_DMS_ENTERPRISE_MODEL_ENABLEUSERREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_ENABLEUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT EnableUserRequest : public RpcServiceRequest + { + + public: + EnableUserRequest(); + ~EnableUserRequest(); + + long getUid()const; + void setUid(long uid); + long getTid()const; + void setTid(long tid); + + private: + long uid_; + long tid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_ENABLEUSERREQUEST_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/EnableUserResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/EnableUserResult.h new file mode 100644 index 000000000..7abcebbef --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/EnableUserResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_ENABLEUSERRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_ENABLEUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT EnableUserResult : public ServiceResult + { + public: + + + EnableUserResult(); + explicit EnableUserResult(const std::string &payload); + ~EnableUserResult(); + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_ENABLEUSERRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ExecuteDataCorrectRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ExecuteDataCorrectRequest.h new file mode 100644 index 000000000..230d31720 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ExecuteDataCorrectRequest.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_DMS_ENTERPRISE_MODEL_EXECUTEDATACORRECTREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_EXECUTEDATACORRECTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ExecuteDataCorrectRequest : public RpcServiceRequest + { + + public: + ExecuteDataCorrectRequest(); + ~ExecuteDataCorrectRequest(); + + std::map getActionDetail()const; + void setActionDetail(const std::map& actionDetail); + long getOrderId()const; + void setOrderId(long orderId); + std::string getActionName()const; + void setActionName(const std::string& actionName); + std::string getTid()const; + void setTid(const std::string& tid); + + private: + std::map actionDetail_; + long orderId_; + std::string actionName_; + std::string tid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_EXECUTEDATACORRECTREQUEST_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ExecuteDataCorrectResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ExecuteDataCorrectResult.h new file mode 100644 index 000000000..4e906e3d4 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ExecuteDataCorrectResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_EXECUTEDATACORRECTRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_EXECUTEDATACORRECTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ExecuteDataCorrectResult : public ServiceResult + { + public: + + + ExecuteDataCorrectResult(); + explicit ExecuteDataCorrectResult(const std::string &payload); + ~ExecuteDataCorrectResult(); + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_EXECUTEDATACORRECTRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ExecuteDataExportRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ExecuteDataExportRequest.h new file mode 100644 index 000000000..c2ad772b1 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ExecuteDataExportRequest.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_DMS_ENTERPRISE_MODEL_EXECUTEDATAEXPORTREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_EXECUTEDATAEXPORTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ExecuteDataExportRequest : public RpcServiceRequest + { + + public: + ExecuteDataExportRequest(); + ~ExecuteDataExportRequest(); + + std::map getActionDetail()const; + void setActionDetail(const std::map& actionDetail); + long getOrderId()const; + void setOrderId(long orderId); + std::string getActionName()const; + void setActionName(const std::string& actionName); + long getTid()const; + void setTid(long tid); + + private: + std::map actionDetail_; + long orderId_; + std::string actionName_; + long tid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_EXECUTEDATAEXPORTREQUEST_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ExecuteDataExportResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ExecuteDataExportResult.h new file mode 100644 index 000000000..ff691db7c --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ExecuteDataExportResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_EXECUTEDATAEXPORTRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_EXECUTEDATAEXPORTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ExecuteDataExportResult : public ServiceResult + { + public: + + + ExecuteDataExportResult(); + explicit ExecuteDataExportResult(const std::string &payload); + ~ExecuteDataExportResult(); + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_EXECUTEDATAEXPORTRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetApprovalDetailRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetApprovalDetailRequest.h new file mode 100644 index 000000000..49c8f9aef --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetApprovalDetailRequest.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_DMS_ENTERPRISE_MODEL_GETAPPROVALDETAILREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETAPPROVALDETAILREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetApprovalDetailRequest : public RpcServiceRequest + { + + public: + GetApprovalDetailRequest(); + ~GetApprovalDetailRequest(); + + long getTid()const; + void setTid(long tid); + long getWorkflowInstanceId()const; + void setWorkflowInstanceId(long workflowInstanceId); + + private: + long tid_; + long workflowInstanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETAPPROVALDETAILREQUEST_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetApprovalDetailResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetApprovalDetailResult.h new file mode 100644 index 000000000..13df802d8 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetApprovalDetailResult.h @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_DMS_ENTERPRISE_MODEL_GETAPPROVALDETAILRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETAPPROVALDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetApprovalDetailResult : public ServiceResult + { + public: + struct ApprovalDetail + { + struct WorkflowNode + { + std::string operateTime; + std::string workflowInsCode; + std::string nodeName; + std::string operateComment; + long operatorId; + std::vector auditUserIdList; + }; + struct CurrentHandler + { + long id; + std::string nickName; + }; + std::vector currentHandlers; + std::vector reasonList; + std::string orderType; + std::string description; + std::string workflowInsCode; + long auditId; + std::string title; + std::vector workflowNodes; + long orderId; + }; + + + GetApprovalDetailResult(); + explicit GetApprovalDetailResult(const std::string &payload); + ~GetApprovalDetailResult(); + std::string getErrorCode()const; + ApprovalDetail getApprovalDetail()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorCode_; + ApprovalDetail approvalDetail_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETAPPROVALDETAILRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataCorrectBackupFilesRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataCorrectBackupFilesRequest.h new file mode 100644 index 000000000..1f15b92f9 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataCorrectBackupFilesRequest.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_DMS_ENTERPRISE_MODEL_GETDATACORRECTBACKUPFILESREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATACORRECTBACKUPFILESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetDataCorrectBackupFilesRequest : public RpcServiceRequest + { + + public: + GetDataCorrectBackupFilesRequest(); + ~GetDataCorrectBackupFilesRequest(); + + std::map getActionDetail()const; + void setActionDetail(const std::map& actionDetail); + long getOrderId()const; + void setOrderId(long orderId); + std::string getActionName()const; + void setActionName(const std::string& actionName); + long getTid()const; + void setTid(long tid); + + private: + std::map actionDetail_; + long orderId_; + std::string actionName_; + long tid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATACORRECTBACKUPFILESREQUEST_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataCorrectBackupFilesResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataCorrectBackupFilesResult.h new file mode 100644 index 000000000..c1527174b --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataCorrectBackupFilesResult.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_DMS_ENTERPRISE_MODEL_GETDATACORRECTBACKUPFILESRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATACORRECTBACKUPFILESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetDataCorrectBackupFilesResult : public ServiceResult + { + public: + + + GetDataCorrectBackupFilesResult(); + explicit GetDataCorrectBackupFilesResult(const std::string &payload); + ~GetDataCorrectBackupFilesResult(); + std::string getErrorCode()const; + std::string getErrorMessage()const; + std::vector getDataCorrectBackupFiles()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorCode_; + std::string errorMessage_; + std::vector dataCorrectBackupFiles_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATACORRECTBACKUPFILESRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataCorrectOrderDetailRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataCorrectOrderDetailRequest.h new file mode 100644 index 000000000..42a3ffc98 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataCorrectOrderDetailRequest.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_DMS_ENTERPRISE_MODEL_GETDATACORRECTORDERDETAILREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATACORRECTORDERDETAILREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetDataCorrectOrderDetailRequest : public RpcServiceRequest + { + + public: + GetDataCorrectOrderDetailRequest(); + ~GetDataCorrectOrderDetailRequest(); + + long getOrderId()const; + void setOrderId(long orderId); + long getTid()const; + void setTid(long tid); + + private: + long orderId_; + long tid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATACORRECTORDERDETAILREQUEST_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataCorrectOrderDetailResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataCorrectOrderDetailResult.h new file mode 100644 index 000000000..037fae5d7 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataCorrectOrderDetailResult.h @@ -0,0 +1,91 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_DMS_ENTERPRISE_MODEL_GETDATACORRECTORDERDETAILRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATACORRECTORDERDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetDataCorrectOrderDetailResult : public ServiceResult + { + public: + struct DataCorrectOrderDetail + { + struct OrderDetail + { + long estimateAffectRows; + bool ignoreAffectRows; + std::string classify; + std::string exeSQL; + std::string ignoreAffectRowsReason; + std::string attachmentName; + std::string sqlType; + std::string rbSQLType; + long actualAffectRows; + std::string rbAttachmentName; + std::string rbSQL; + }; + struct TaskCheckDO + { + std::string userTip; + std::string checkStep; + std::string checkStatus; + }; + struct Database + { + std::string searchName; + int dbId; + bool logic; + std::string envType; + std::string dbType; + }; + OrderDetail orderDetail; + std::vector databaseList; + std::vector preCheckDetail; + }; + + + GetDataCorrectOrderDetailResult(); + explicit GetDataCorrectOrderDetailResult(const std::string &payload); + ~GetDataCorrectOrderDetailResult(); + DataCorrectOrderDetail getDataCorrectOrderDetail()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + DataCorrectOrderDetail dataCorrectOrderDetail_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATACORRECTORDERDETAILRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataExportDownloadURLRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataExportDownloadURLRequest.h new file mode 100644 index 000000000..8bb54d288 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataExportDownloadURLRequest.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_DMS_ENTERPRISE_MODEL_GETDATAEXPORTDOWNLOADURLREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATAEXPORTDOWNLOADURLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetDataExportDownloadURLRequest : public RpcServiceRequest + { + + public: + GetDataExportDownloadURLRequest(); + ~GetDataExportDownloadURLRequest(); + + long getOrderId()const; + void setOrderId(long orderId); + std::string getActionName()const; + void setActionName(const std::string& actionName); + long getTid()const; + void setTid(long tid); + + private: + long orderId_; + std::string actionName_; + long tid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATAEXPORTDOWNLOADURLREQUEST_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataExportDownloadURLResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataExportDownloadURLResult.h new file mode 100644 index 000000000..4a9b1a02a --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataExportDownloadURLResult.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_DMS_ENTERPRISE_MODEL_GETDATAEXPORTDOWNLOADURLRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATAEXPORTDOWNLOADURLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetDataExportDownloadURLResult : public ServiceResult + { + public: + struct DownloadURLResult + { + bool hasResult; + std::string tipMessage; + std::string uRL; + }; + + + GetDataExportDownloadURLResult(); + explicit GetDataExportDownloadURLResult(const std::string &payload); + ~GetDataExportDownloadURLResult(); + DownloadURLResult getDownloadURLResult()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + DownloadURLResult downloadURLResult_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATAEXPORTDOWNLOADURLRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataExportOrderDetailRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataExportOrderDetailRequest.h new file mode 100644 index 000000000..5fa366cc6 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataExportOrderDetailRequest.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_DMS_ENTERPRISE_MODEL_GETDATAEXPORTORDERDETAILREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATAEXPORTORDERDETAILREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetDataExportOrderDetailRequest : public RpcServiceRequest + { + + public: + GetDataExportOrderDetailRequest(); + ~GetDataExportOrderDetailRequest(); + + long getOrderId()const; + void setOrderId(long orderId); + long getTid()const; + void setTid(long tid); + + private: + long orderId_; + long tid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATAEXPORTORDERDETAILREQUEST_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataExportOrderDetailResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataExportOrderDetailResult.h new file mode 100644 index 000000000..54a8ec0f1 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataExportOrderDetailResult.h @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATAEXPORTORDERDETAILRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATAEXPORTORDERDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetDataExportOrderDetailResult : public ServiceResult + { + public: + struct DataExportOrderDetail + { + struct OrderDetail + { + bool ignoreAffectRows; + std::string classify; + std::string exeSQL; + std::string ignoreAffectRowsReason; + std::string database; + int dbId; + long actualAffectRows; + bool logic; + std::string envType; + }; + struct KeyInfo + { + std::string jobStatus; + long preCheckId; + }; + OrderDetail orderDetail; + KeyInfo keyInfo; + }; + + + GetDataExportOrderDetailResult(); + explicit GetDataExportOrderDetailResult(const std::string &payload); + ~GetDataExportOrderDetailResult(); + DataExportOrderDetail getDataExportOrderDetail()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + DataExportOrderDetail dataExportOrderDetail_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATAEXPORTORDERDETAILRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDatabaseRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDatabaseRequest.h new file mode 100644 index 000000000..a20e36358 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDatabaseRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATABASEREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATABASEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetDatabaseRequest : public RpcServiceRequest + { + + public: + GetDatabaseRequest(); + ~GetDatabaseRequest(); + + std::string getSchemaName()const; + void setSchemaName(const std::string& schemaName); + int getPort()const; + void setPort(int port); + std::string getHost()const; + void setHost(const std::string& host); + long getTid()const; + void setTid(long tid); + std::string getSid()const; + void setSid(const std::string& sid); + + private: + std::string schemaName_; + int port_; + std::string host_; + long tid_; + std::string sid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATABASEREQUEST_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDatabaseResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDatabaseResult.h new file mode 100644 index 000000000..2796484ce --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDatabaseResult.h @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATABASERESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATABASERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetDatabaseResult : public ServiceResult + { + public: + struct Database + { + std::string instanceId; + std::string searchName; + int port; + std::string databaseId; + std::string encoding; + std::string host; + std::string envType; + std::string dbType; + std::string sid; + std::string dbaName; + std::string dbaId; + std::string state; + std::string catalogName; + std::vector ownerNameList; + std::string schemaName; + std::vector ownerIdList; + }; + + + GetDatabaseResult(); + explicit GetDatabaseResult(const std::string &payload); + ~GetDatabaseResult(); + Database getDatabase()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + Database database_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATABASERESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetInstanceRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetInstanceRequest.h new file mode 100644 index 000000000..808cafbb9 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetInstanceRequest.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_DMS_ENTERPRISE_MODEL_GETINSTANCEREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetInstanceRequest : public RpcServiceRequest + { + + public: + GetInstanceRequest(); + ~GetInstanceRequest(); + + int getPort()const; + void setPort(int port); + std::string getHost()const; + void setHost(const std::string& host); + long getTid()const; + void setTid(long tid); + std::string getSid()const; + void setSid(const std::string& sid); + + private: + int port_; + std::string host_; + long tid_; + std::string sid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetInstanceResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetInstanceResult.h new file mode 100644 index 000000000..ced881dca --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetInstanceResult.h @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETINSTANCERESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetInstanceResult : public ServiceResult + { + public: + struct Instance + { + std::string instanceSource; + std::string instanceId; + int port; + std::string databasePassword; + std::string host; + int exportTimeout; + int ddlOnline; + std::string envType; + std::string sid; + int useDsql; + std::string ecsInstanceId; + std::string dbaId; + std::string vpcId; + std::string instanceAlias; + std::string state; + std::string ecsRegion; + std::string databaseUser; + std::string instanceType; + std::string dbaNickName; + std::string dataLinkName; + int queryTimeout; + std::string safeRuleId; + }; + + + GetInstanceResult(); + explicit GetInstanceResult(const std::string &payload); + ~GetInstanceResult(); + Instance getInstance()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + Instance instance_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETINSTANCERESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetLogicDatabaseRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetLogicDatabaseRequest.h new file mode 100644 index 000000000..075a1e8d4 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetLogicDatabaseRequest.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_DMS_ENTERPRISE_MODEL_GETLOGICDATABASEREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETLOGICDATABASEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetLogicDatabaseRequest : public RpcServiceRequest + { + + public: + GetLogicDatabaseRequest(); + ~GetLogicDatabaseRequest(); + + std::string getDbId()const; + void setDbId(const std::string& dbId); + long getTid()const; + void setTid(long tid); + + private: + std::string dbId_; + long tid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETLOGICDATABASEREQUEST_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetLogicDatabaseResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetLogicDatabaseResult.h new file mode 100644 index 000000000..0577c7467 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetLogicDatabaseResult.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETLOGICDATABASERESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETLOGICDATABASERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetLogicDatabaseResult : public ServiceResult + { + public: + struct LogicDatabase + { + std::string searchName; + std::string databaseId; + std::vector ownerNameList; + bool logic; + std::string envType; + std::string schemaName; + std::string dbType; + std::vector ownerIdList; + }; + + + GetLogicDatabaseResult(); + explicit GetLogicDatabaseResult(const std::string &payload); + ~GetLogicDatabaseResult(); + LogicDatabase getLogicDatabase()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + LogicDatabase logicDatabase_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETLOGICDATABASERESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetOpLogRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetOpLogRequest.h new file mode 100644 index 000000000..9e2e0825e --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetOpLogRequest.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_DMS_ENTERPRISE_MODEL_GETOPLOGREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETOPLOGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetOpLogRequest : public RpcServiceRequest + { + + public: + GetOpLogRequest(); + ~GetOpLogRequest(); + + std::string getModule()const; + void setModule(const std::string& module); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + long getTid()const; + void setTid(long tid); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + std::string module_; + int pageSize_; + std::string endTime_; + std::string startTime_; + long tid_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETOPLOGREQUEST_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetOpLogResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetOpLogResult.h new file mode 100644 index 000000000..99084aa16 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetOpLogResult.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETOPLOGRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETOPLOGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetOpLogResult : public ServiceResult + { + public: + struct OpLogDetail + { + long userId; + std::string database; + std::string opContent; + std::string userNick; + std::string module; + long orderId; + std::string opTime; + }; + + + GetOpLogResult(); + explicit GetOpLogResult(const std::string &payload); + ~GetOpLogResult(); + long getTotalCount()const; + std::vector getOpLogDetails()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + std::vector opLogDetails_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETOPLOGRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetOrderBaseInfoRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetOrderBaseInfoRequest.h new file mode 100644 index 000000000..d062a2198 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetOrderBaseInfoRequest.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_DMS_ENTERPRISE_MODEL_GETORDERBASEINFOREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETORDERBASEINFOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetOrderBaseInfoRequest : public RpcServiceRequest + { + + public: + GetOrderBaseInfoRequest(); + ~GetOrderBaseInfoRequest(); + + long getOrderId()const; + void setOrderId(long orderId); + long getTid()const; + void setTid(long tid); + + private: + long orderId_; + long tid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETORDERBASEINFOREQUEST_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetOrderBaseInfoResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetOrderBaseInfoResult.h new file mode 100644 index 000000000..0e2581d6c --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetOrderBaseInfoResult.h @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETORDERBASEINFORESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETORDERBASEINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetOrderBaseInfoResult : public ServiceResult + { + public: + struct OrderBaseInfo + { + std::string comment; + std::string createTime; + std::string lastModifyTime; + long orderId; + long committerId; + std::string pluginType; + std::string statusCode; + std::vector relatedUserNickList; + std::string statusDesc; + std::string workflowStatusDesc; + long workflowInstanceId; + std::string committer; + std::vector relatedUserList; + }; + + + GetOrderBaseInfoResult(); + explicit GetOrderBaseInfoResult(const std::string &payload); + ~GetOrderBaseInfoResult(); + OrderBaseInfo getOrderBaseInfo()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + OrderBaseInfo orderBaseInfo_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETORDERBASEINFORESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetUserRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetUserRequest.h new file mode 100644 index 000000000..76e75ae71 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetUserRequest.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_DMS_ENTERPRISE_MODEL_GETUSERREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetUserRequest : public RpcServiceRequest + { + + public: + GetUserRequest(); + ~GetUserRequest(); + + long getUid()const; + void setUid(long uid); + std::string getUserId()const; + void setUserId(const std::string& userId); + long getTid()const; + void setTid(long tid); + + private: + long uid_; + std::string userId_; + long tid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETUSERREQUEST_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetUserResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetUserResult.h new file mode 100644 index 000000000..4f7c25866 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetUserResult.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETUSERRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetUserResult : public ServiceResult + { + public: + struct User + { + long uid; + std::vector roleIdList; + std::string userId; + std::string state; + std::vector roleNameList; + std::string nickName; + std::string mobile; + long parentUid; + }; + + + GetUserResult(); + explicit GetUserResult(const std::string &payload); + ~GetUserResult(); + User getUser()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + User user_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETUSERRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GrantUserPermissionRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GrantUserPermissionRequest.h new file mode 100644 index 000000000..76de96fc1 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GrantUserPermissionRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GRANTUSERPERMISSIONREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GRANTUSERPERMISSIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GrantUserPermissionRequest : public RpcServiceRequest + { + + public: + GrantUserPermissionRequest(); + ~GrantUserPermissionRequest(); + + std::string getPermTypes()const; + void setPermTypes(const std::string& permTypes); + std::string getDsType()const; + void setDsType(const std::string& dsType); + std::string getExpireDate()const; + void setExpireDate(const std::string& expireDate); + std::string getUserId()const; + void setUserId(const std::string& userId); + long getTid()const; + void setTid(long tid); + std::string getDbId()const; + void setDbId(const std::string& dbId); + std::string getTableId()const; + void setTableId(const std::string& tableId); + bool getLogic()const; + void setLogic(bool logic); + std::string getTableName()const; + void setTableName(const std::string& tableName); + + private: + std::string permTypes_; + std::string dsType_; + std::string expireDate_; + std::string userId_; + long tid_; + std::string dbId_; + std::string tableId_; + bool logic_; + std::string tableName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GRANTUSERPERMISSIONREQUEST_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GrantUserPermissionResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GrantUserPermissionResult.h new file mode 100644 index 000000000..1477bf5b3 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GrantUserPermissionResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GRANTUSERPERMISSIONRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GRANTUSERPERMISSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GrantUserPermissionResult : public ServiceResult + { + public: + + + GrantUserPermissionResult(); + explicit GrantUserPermissionResult(const std::string &payload); + ~GrantUserPermissionResult(); + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GRANTUSERPERMISSIONRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListColumnsRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListColumnsRequest.h new file mode 100644 index 000000000..1e55290b1 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListColumnsRequest.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_DMS_ENTERPRISE_MODEL_LISTCOLUMNSREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTCOLUMNSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListColumnsRequest : public RpcServiceRequest + { + + public: + ListColumnsRequest(); + ~ListColumnsRequest(); + + std::string getTableId()const; + void setTableId(const std::string& tableId); + bool getLogic()const; + void setLogic(bool logic); + long getTid()const; + void setTid(long tid); + + private: + std::string tableId_; + bool logic_; + long tid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTCOLUMNSREQUEST_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListColumnsResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListColumnsResult.h new file mode 100644 index 000000000..e85553c6a --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListColumnsResult.h @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTCOLUMNSRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTCOLUMNSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListColumnsResult : public ServiceResult + { + public: + struct Column + { + std::string columnId; + std::string columnType; + std::string description; + bool autoIncrement; + std::string functionType; + int dataPrecision; + std::string columnName; + std::string defaultValue; + std::string securityLevel; + long dataLength; + int dataScale; + bool sensitive; + bool nullable; + }; + + + ListColumnsResult(); + explicit ListColumnsResult(const std::string &payload); + ~ListColumnsResult(); + std::vector getColumnList()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector columnList_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTCOLUMNSRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDatabaseUserPermssionsRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDatabaseUserPermssionsRequest.h new file mode 100644 index 000000000..bde5e0920 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDatabaseUserPermssionsRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDATABASEUSERPERMSSIONSREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDATABASEUSERPERMSSIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListDatabaseUserPermssionsRequest : public RpcServiceRequest + { + + public: + ListDatabaseUserPermssionsRequest(); + ~ListDatabaseUserPermssionsRequest(); + + std::string getPermType()const; + void setPermType(const std::string& permType); + std::string getDbId()const; + void setDbId(const std::string& dbId); + int getPageSize()const; + void setPageSize(int pageSize); + bool getLogic()const; + void setLogic(bool logic); + long getTid()const; + void setTid(long tid); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getUserName()const; + void setUserName(const std::string& userName); + + private: + std::string permType_; + std::string dbId_; + int pageSize_; + bool logic_; + long tid_; + int pageNumber_; + std::string userName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDATABASEUSERPERMSSIONSREQUEST_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDatabaseUserPermssionsResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDatabaseUserPermssionsResult.h new file mode 100644 index 000000000..23b55b284 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDatabaseUserPermssionsResult.h @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDATABASEUSERPERMSSIONSRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDATABASEUSERPERMSSIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListDatabaseUserPermssionsResult : public ServiceResult + { + public: + struct UserPermission + { + struct PermDetail + { + std::string expireDate; + std::string permType; + std::string extraData; + std::string createDate; + std::string originFrom; + std::string userAccessId; + }; + std::string tableId; + std::string searchName; + std::string instanceId; + std::vector permDetails; + std::string envType; + std::string dbType; + std::string dsType; + std::string tableName; + std::string columnName; + std::string userNickName; + std::string userId; + std::string alias; + std::string dbId; + bool logic; + std::string schemaName; + }; + + + ListDatabaseUserPermssionsResult(); + explicit ListDatabaseUserPermssionsResult(const std::string &payload); + ~ListDatabaseUserPermssionsResult(); + long getTotalCount()const; + std::string getErrorCode()const; + std::vector getUserPermissions()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + std::string errorCode_; + std::vector userPermissions_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDATABASEUSERPERMSSIONSRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDatabasesRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDatabasesRequest.h new file mode 100644 index 000000000..416e35111 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDatabasesRequest.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_DMS_ENTERPRISE_MODEL_LISTDATABASESREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDATABASESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListDatabasesRequest : public RpcServiceRequest + { + + public: + ListDatabasesRequest(); + ~ListDatabasesRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + int getPageSize()const; + void setPageSize(int pageSize); + long getTid()const; + void setTid(long tid); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + std::string instanceId_; + int pageSize_; + long tid_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDATABASESREQUEST_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDatabasesResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDatabasesResult.h new file mode 100644 index 000000000..78fcce338 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDatabasesResult.h @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDATABASESRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDATABASESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListDatabasesResult : public ServiceResult + { + public: + struct Database + { + std::string instanceId; + std::string searchName; + int port; + std::string databaseId; + std::string encoding; + std::string host; + std::string envType; + std::string dbType; + std::string sid; + std::string dbaName; + std::string dbaId; + std::string state; + std::string catalogName; + std::vector ownerNameList; + std::string schemaName; + std::vector ownerIdList; + }; + + + ListDatabasesResult(); + explicit ListDatabasesResult(const std::string &payload); + ~ListDatabasesResult(); + long getTotalCount()const; + std::vector getDatabaseList()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + std::vector databaseList_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDATABASESRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListIndexesRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListIndexesRequest.h new file mode 100644 index 000000000..414b25408 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListIndexesRequest.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_DMS_ENTERPRISE_MODEL_LISTINDEXESREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTINDEXESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListIndexesRequest : public RpcServiceRequest + { + + public: + ListIndexesRequest(); + ~ListIndexesRequest(); + + std::string getTableId()const; + void setTableId(const std::string& tableId); + bool getLogic()const; + void setLogic(bool logic); + long getTid()const; + void setTid(long tid); + + private: + std::string tableId_; + bool logic_; + long tid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTINDEXESREQUEST_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListIndexesResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListIndexesResult.h new file mode 100644 index 000000000..a8c8be647 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListIndexesResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTINDEXESRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTINDEXESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListIndexesResult : public ServiceResult + { + public: + struct Index + { + std::string tableId; + std::string indexName; + std::string indexId; + std::string indexComment; + std::string indexType; + }; + + + ListIndexesResult(); + explicit ListIndexesResult(const std::string &payload); + ~ListIndexesResult(); + std::string getErrorCode()const; + std::vector getIndexList()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorCode_; + std::vector indexList_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTINDEXESRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListInstancesRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListInstancesRequest.h new file mode 100644 index 000000000..006e1154e --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListInstancesRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTINSTANCESREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTINSTANCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListInstancesRequest : public RpcServiceRequest + { + + public: + ListInstancesRequest(); + ~ListInstancesRequest(); + + std::string getSearchKey()const; + void setSearchKey(const std::string& searchKey); + long getTid()const; + void setTid(long tid); + std::string getInstanceState()const; + void setInstanceState(const std::string& instanceState); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getNetType()const; + void setNetType(const std::string& netType); + std::string getDbType()const; + void setDbType(const std::string& dbType); + std::string getEnvType()const; + void setEnvType(const std::string& envType); + std::string getInstanceSource()const; + void setInstanceSource(const std::string& instanceSource); + int getPageSize()const; + void setPageSize(int pageSize); + + private: + std::string searchKey_; + long tid_; + std::string instanceState_; + int pageNumber_; + std::string netType_; + std::string dbType_; + std::string envType_; + std::string instanceSource_; + int pageSize_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTINSTANCESREQUEST_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListInstancesResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListInstancesResult.h new file mode 100644 index 000000000..f809c1d04 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListInstancesResult.h @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTINSTANCESRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTINSTANCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListInstancesResult : public ServiceResult + { + public: + struct Instance + { + std::string instanceSource; + std::string instanceId; + int port; + std::string databasePassword; + std::string host; + int exportTimeout; + int ddlOnline; + std::string envType; + std::string sid; + int useDsql; + std::string ecsInstanceId; + std::string dbaId; + std::string vpcId; + std::string instanceAlias; + std::string state; + std::string ecsRegion; + std::string databaseUser; + std::string instanceType; + std::string dbaNickName; + std::string dataLinkName; + int queryTimeout; + std::string safeRuleId; + }; + + + ListInstancesResult(); + explicit ListInstancesResult(const std::string &payload); + ~ListInstancesResult(); + long getTotalCount()const; + std::string getErrorCode()const; + std::vector getInstanceList()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + std::string errorCode_; + std::vector instanceList_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTINSTANCESRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListLogicDatabasesRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListLogicDatabasesRequest.h new file mode 100644 index 000000000..fa70f48bc --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListLogicDatabasesRequest.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_DMS_ENTERPRISE_MODEL_LISTLOGICDATABASESREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTLOGICDATABASESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListLogicDatabasesRequest : public RpcServiceRequest + { + + public: + ListLogicDatabasesRequest(); + ~ListLogicDatabasesRequest(); + + int getPageSize()const; + void setPageSize(int pageSize); + long getTid()const; + void setTid(long tid); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + int pageSize_; + long tid_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTLOGICDATABASESREQUEST_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListLogicDatabasesResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListLogicDatabasesResult.h new file mode 100644 index 000000000..e63fbcfb1 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListLogicDatabasesResult.h @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTLOGICDATABASESRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTLOGICDATABASESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListLogicDatabasesResult : public ServiceResult + { + public: + struct LogicDatabase + { + std::string searchName; + std::string databaseId; + std::vector ownerNameList; + bool logic; + std::string envType; + std::string schemaName; + std::string dbType; + std::vector ownerIdList; + }; + + + ListLogicDatabasesResult(); + explicit ListLogicDatabasesResult(const std::string &payload); + ~ListLogicDatabasesResult(); + std::vector getLogicDatabaseList()const; + long getTotalCount()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector logicDatabaseList_; + long totalCount_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTLOGICDATABASESRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListLogicTablesRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListLogicTablesRequest.h new file mode 100644 index 000000000..4076ad682 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListLogicTablesRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTLOGICTABLESREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTLOGICTABLESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListLogicTablesRequest : public RpcServiceRequest + { + + public: + ListLogicTablesRequest(); + ~ListLogicTablesRequest(); + + std::string getSearchName()const; + void setSearchName(const std::string& searchName); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getDatabaseId()const; + void setDatabaseId(const std::string& databaseId); + long getTid()const; + void setTid(long tid); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + std::string searchName_; + int pageSize_; + std::string databaseId_; + long tid_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTLOGICTABLESREQUEST_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListLogicTablesResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListLogicTablesResult.h new file mode 100644 index 000000000..37e4b7e59 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListLogicTablesResult.h @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTLOGICTABLESRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTLOGICTABLESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListLogicTablesResult : public ServiceResult + { + public: + struct LogicTable + { + std::string tableId; + std::string tableName; + std::string tableExpr; + std::string tableCount; + std::string databaseId; + std::vector ownerNameList; + bool logic; + std::vector ownerIdList; + }; + + + ListLogicTablesResult(); + explicit ListLogicTablesResult(const std::string &payload); + ~ListLogicTablesResult(); + long getTotalCount()const; + std::vector getLogicTableList()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + std::vector logicTableList_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTLOGICTABLESRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListOrdersRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListOrdersRequest.h new file mode 100644 index 000000000..839a55eea --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListOrdersRequest.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_DMS_ENTERPRISE_MODEL_LISTORDERSREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTORDERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListOrdersRequest : public RpcServiceRequest + { + + public: + ListOrdersRequest(); + ~ListOrdersRequest(); + + std::string getOrderStatus()const; + void setOrderStatus(const std::string& orderStatus); + std::string getSearchContent()const; + void setSearchContent(const std::string& searchContent); + std::string getSearchDateType()const; + void setSearchDateType(const std::string& searchDateType); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + long getTid()const; + void setTid(long tid); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getPluginType()const; + void setPluginType(const std::string& pluginType); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getOrderResultType()const; + void setOrderResultType(const std::string& orderResultType); + + private: + std::string orderStatus_; + std::string searchContent_; + std::string searchDateType_; + std::string endTime_; + std::string startTime_; + long tid_; + int pageNumber_; + std::string pluginType_; + int pageSize_; + std::string orderResultType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTORDERSREQUEST_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListOrdersResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListOrdersResult.h new file mode 100644 index 000000000..897bc76bf --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListOrdersResult.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTORDERSRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTORDERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListOrdersResult : public ServiceResult + { + public: + struct Order + { + std::string comment; + std::string statusDesc; + std::string createTime; + std::string committer; + long orderId; + std::string lastModifyTime; + long committerId; + std::string pluginType; + std::string statusCode; + }; + + + ListOrdersResult(); + explicit ListOrdersResult(const std::string &payload); + ~ListOrdersResult(); + std::vector getOrders()const; + long getTotalCount()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector orders_; + long totalCount_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTORDERSRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListTablesRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListTablesRequest.h new file mode 100644 index 000000000..b6bc8ed25 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListTablesRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTTABLESREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTTABLESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListTablesRequest : public RpcServiceRequest + { + + public: + ListTablesRequest(); + ~ListTablesRequest(); + + std::string getSearchName()const; + void setSearchName(const std::string& searchName); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getDatabaseId()const; + void setDatabaseId(const std::string& databaseId); + long getTid()const; + void setTid(long tid); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + std::string searchName_; + int pageSize_; + std::string databaseId_; + long tid_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTTABLESREQUEST_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListTablesResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListTablesResult.h new file mode 100644 index 000000000..9f6a0972c --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListTablesResult.h @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTTABLESRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTTABLESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListTablesResult : public ServiceResult + { + public: + struct Table + { + std::string tableId; + std::string tableName; + std::string tableType; + std::string tableSchemaName; + std::string databaseId; + std::string encoding; + std::vector ownerNameList; + long numRows; + long storeCapacity; + std::string engine; + std::vector ownerIdList; + }; + + + ListTablesResult(); + explicit ListTablesResult(const std::string &payload); + ~ListTablesResult(); + long getTotalCount()const; + std::vector getTableList()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + std::vector
tableList_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTTABLESRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListUserPermissionsRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListUserPermissionsRequest.h new file mode 100644 index 000000000..d31ed4af0 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListUserPermissionsRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTUSERPERMISSIONSREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTUSERPERMISSIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListUserPermissionsRequest : public RpcServiceRequest + { + + public: + ListUserPermissionsRequest(); + ~ListUserPermissionsRequest(); + + std::string getUserId()const; + void setUserId(const std::string& userId); + long getTid()const; + void setTid(long tid); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getPermType()const; + void setPermType(const std::string& permType); + std::string getDatabaseName()const; + void setDatabaseName(const std::string& databaseName); + std::string getEnvType()const; + void setEnvType(const std::string& envType); + std::string getDbType()const; + void setDbType(const std::string& dbType); + int getPageSize()const; + void setPageSize(int pageSize); + bool getLogic()const; + void setLogic(bool logic); + + private: + std::string userId_; + long tid_; + int pageNumber_; + std::string permType_; + std::string databaseName_; + std::string envType_; + std::string dbType_; + int pageSize_; + bool logic_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTUSERPERMISSIONSREQUEST_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListUserPermissionsResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListUserPermissionsResult.h new file mode 100644 index 000000000..8fcdeb102 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListUserPermissionsResult.h @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTUSERPERMISSIONSRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTUSERPERMISSIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListUserPermissionsResult : public ServiceResult + { + public: + struct UserPermission + { + struct PermDetail + { + std::string expireDate; + std::string permType; + std::string extraData; + std::string createDate; + std::string originFrom; + std::string userAccessId; + }; + std::string tableId; + std::string searchName; + std::string instanceId; + std::vector permDetails; + std::string envType; + std::string dbType; + std::string dsType; + std::string tableName; + std::string columnName; + std::string userNickName; + std::string userId; + std::string alias; + std::string dbId; + bool logic; + std::string schemaName; + }; + + + ListUserPermissionsResult(); + explicit ListUserPermissionsResult(const std::string &payload); + ~ListUserPermissionsResult(); + long getTotalCount()const; + std::string getErrorCode()const; + std::vector getUserPermissions()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + std::string errorCode_; + std::vector userPermissions_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTUSERPERMISSIONSRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListUsersRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListUsersRequest.h new file mode 100644 index 000000000..dc916357f --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListUsersRequest.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_DMS_ENTERPRISE_MODEL_LISTUSERSREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTUSERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListUsersRequest : public RpcServiceRequest + { + + public: + ListUsersRequest(); + ~ListUsersRequest(); + + std::string getUserState()const; + void setUserState(const std::string& userState); + std::string getRole()const; + void setRole(const std::string& role); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getSearchKey()const; + void setSearchKey(const std::string& searchKey); + long getTid()const; + void setTid(long tid); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + std::string userState_; + std::string role_; + int pageSize_; + std::string searchKey_; + long tid_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTUSERSREQUEST_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListUsersResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListUsersResult.h new file mode 100644 index 000000000..e93e272cf --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListUsersResult.h @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTUSERSRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTUSERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListUsersResult : public ServiceResult + { + public: + struct User + { + long uid; + std::vector roleIdList; + std::string userId; + std::string state; + std::vector roleNameList; + std::string nickName; + std::string mobile; + long parentUid; + }; + + + ListUsersResult(); + explicit ListUsersResult(const std::string &payload); + ~ListUsersResult(); + long getTotalCount()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + std::vector getUserList()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + std::string errorCode_; + std::string errorMessage_; + std::vector userList_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTUSERSRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListWorkFlowNodesRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListWorkFlowNodesRequest.h new file mode 100644 index 000000000..ac0e42e98 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListWorkFlowNodesRequest.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_DMS_ENTERPRISE_MODEL_LISTWORKFLOWNODESREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTWORKFLOWNODESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListWorkFlowNodesRequest : public RpcServiceRequest + { + + public: + ListWorkFlowNodesRequest(); + ~ListWorkFlowNodesRequest(); + + std::string getSearchName()const; + void setSearchName(const std::string& searchName); + long getTid()const; + void setTid(long tid); + + private: + std::string searchName_; + long tid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTWORKFLOWNODESREQUEST_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListWorkFlowNodesResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListWorkFlowNodesResult.h new file mode 100644 index 000000000..952026e12 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListWorkFlowNodesResult.h @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTWORKFLOWNODESRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTWORKFLOWNODESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListWorkFlowNodesResult : public ServiceResult + { + public: + struct WorkflowNode + { + struct AuditUser + { + long userId; + std::string realName; + std::string nickName; + }; + std::string comment; + std::string createUserNickName; + std::string nodeName; + std::string nodeType; + long nodeId; + long createUserId; + std::vector auditUsers; + }; + + + ListWorkFlowNodesResult(); + explicit ListWorkFlowNodesResult(const std::string &payload); + ~ListWorkFlowNodesResult(); + std::string getErrorCode()const; + std::vector getWorkflowNodes()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorCode_; + std::vector workflowNodes_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTWORKFLOWNODESRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListWorkFlowTemplatesRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListWorkFlowTemplatesRequest.h new file mode 100644 index 000000000..bcfaf71eb --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListWorkFlowTemplatesRequest.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_DMS_ENTERPRISE_MODEL_LISTWORKFLOWTEMPLATESREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTWORKFLOWTEMPLATESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListWorkFlowTemplatesRequest : public RpcServiceRequest + { + + public: + ListWorkFlowTemplatesRequest(); + ~ListWorkFlowTemplatesRequest(); + + std::string getSearchName()const; + void setSearchName(const std::string& searchName); + long getTid()const; + void setTid(long tid); + + private: + std::string searchName_; + long tid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTWORKFLOWTEMPLATESREQUEST_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListWorkFlowTemplatesResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListWorkFlowTemplatesResult.h new file mode 100644 index 000000000..c0eaf69c3 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListWorkFlowTemplatesResult.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_DMS_ENTERPRISE_MODEL_LISTWORKFLOWTEMPLATESRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTWORKFLOWTEMPLATESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListWorkFlowTemplatesResult : public ServiceResult + { + public: + struct WorkFlowTemplate + { + struct WorkflowNode + { + std::string comment; + std::string nodeName; + int position; + std::string nodeType; + long nodeId; + long templateId; + }; + std::string comment; + std::string templateName; + std::string enabled; + int isSystem; + std::vector workflowNodes; + long templateId; + }; + + + ListWorkFlowTemplatesResult(); + explicit ListWorkFlowTemplatesResult(const std::string &payload); + ~ListWorkFlowTemplatesResult(); + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + std::vector getWorkFlowTemplates()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorCode_; + std::string errorMessage_; + bool success_; + std::vector workFlowTemplates_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTWORKFLOWTEMPLATESRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/RegisterInstanceRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/RegisterInstanceRequest.h new file mode 100644 index 000000000..2d8790b5c --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/RegisterInstanceRequest.h @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_REGISTERINSTANCEREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_REGISTERINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT RegisterInstanceRequest : public RpcServiceRequest + { + + public: + RegisterInstanceRequest(); + ~RegisterInstanceRequest(); + + std::string getEcsRegion()const; + void setEcsRegion(const std::string& ecsRegion); + int getDdlOnline()const; + void setDdlOnline(int ddlOnline); + int getUseDsql()const; + void setUseDsql(int useDsql); + std::string getNetworkType()const; + void setNetworkType(const std::string& networkType); + long getTid()const; + void setTid(long tid); + std::string getSid()const; + void setSid(const std::string& sid); + std::string getDataLinkName()const; + void setDataLinkName(const std::string& dataLinkName); + std::string getInstanceSource()const; + void setInstanceSource(const std::string& instanceSource); + std::string getEnvType()const; + void setEnvType(const std::string& envType); + std::string getHost()const; + void setHost(const std::string& host); + std::string getInstanceType()const; + void setInstanceType(const std::string& instanceType); + int getQueryTimeout()const; + void setQueryTimeout(int queryTimeout); + std::string getEcsInstanceId()const; + void setEcsInstanceId(const std::string& ecsInstanceId); + int getExportTimeout()const; + void setExportTimeout(int exportTimeout); + std::string getDatabasePassword()const; + void setDatabasePassword(const std::string& databasePassword); + std::string getInstanceAlias()const; + void setInstanceAlias(const std::string& instanceAlias); + std::string getDatabaseUser()const; + void setDatabaseUser(const std::string& databaseUser); + int getPort()const; + void setPort(int port); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); + long getDbaUid()const; + void setDbaUid(long dbaUid); + std::string getSafeRule()const; + void setSafeRule(const std::string& safeRule); + + private: + std::string ecsRegion_; + int ddlOnline_; + int useDsql_; + std::string networkType_; + long tid_; + std::string sid_; + std::string dataLinkName_; + std::string instanceSource_; + std::string envType_; + std::string host_; + std::string instanceType_; + int queryTimeout_; + std::string ecsInstanceId_; + int exportTimeout_; + std::string databasePassword_; + std::string instanceAlias_; + std::string databaseUser_; + int port_; + std::string vpcId_; + long dbaUid_; + std::string safeRule_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_REGISTERINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/RegisterInstanceResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/RegisterInstanceResult.h new file mode 100644 index 000000000..d8190b6f4 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/RegisterInstanceResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_REGISTERINSTANCERESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_REGISTERINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT RegisterInstanceResult : public ServiceResult + { + public: + + + RegisterInstanceResult(); + explicit RegisterInstanceResult(const std::string &payload); + ~RegisterInstanceResult(); + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_REGISTERINSTANCERESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/RegisterUserRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/RegisterUserRequest.h new file mode 100644 index 000000000..496376539 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/RegisterUserRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_REGISTERUSERREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_REGISTERUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT RegisterUserRequest : public RpcServiceRequest + { + + public: + RegisterUserRequest(); + ~RegisterUserRequest(); + + std::string getRoleNames()const; + void setRoleNames(const std::string& roleNames); + long getUid()const; + void setUid(long uid); + std::string getUserNick()const; + void setUserNick(const std::string& userNick); + std::string getMobile()const; + void setMobile(const std::string& mobile); + long getTid()const; + void setTid(long tid); + + private: + std::string roleNames_; + long uid_; + std::string userNick_; + std::string mobile_; + long tid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_REGISTERUSERREQUEST_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/RegisterUserResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/RegisterUserResult.h new file mode 100644 index 000000000..a24535732 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/RegisterUserResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_REGISTERUSERRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_REGISTERUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT RegisterUserResult : public ServiceResult + { + public: + + + RegisterUserResult(); + explicit RegisterUserResult(const std::string &payload); + ~RegisterUserResult(); + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_REGISTERUSERRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/RevokeUserPermissionRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/RevokeUserPermissionRequest.h new file mode 100644 index 000000000..d09333186 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/RevokeUserPermissionRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_REVOKEUSERPERMISSIONREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_REVOKEUSERPERMISSIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT RevokeUserPermissionRequest : public RpcServiceRequest + { + + public: + RevokeUserPermissionRequest(); + ~RevokeUserPermissionRequest(); + + std::string getPermTypes()const; + void setPermTypes(const std::string& permTypes); + std::string getUserAccessId()const; + void setUserAccessId(const std::string& userAccessId); + std::string getDsType()const; + void setDsType(const std::string& dsType); + std::string getUserId()const; + void setUserId(const std::string& userId); + long getTid()const; + void setTid(long tid); + std::string getDbId()const; + void setDbId(const std::string& dbId); + std::string getTableId()const; + void setTableId(const std::string& tableId); + bool getLogic()const; + void setLogic(bool logic); + std::string getTableName()const; + void setTableName(const std::string& tableName); + + private: + std::string permTypes_; + std::string userAccessId_; + std::string dsType_; + std::string userId_; + long tid_; + std::string dbId_; + std::string tableId_; + bool logic_; + std::string tableName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_REVOKEUSERPERMISSIONREQUEST_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/RevokeUserPermissionResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/RevokeUserPermissionResult.h new file mode 100644 index 000000000..d60eda450 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/RevokeUserPermissionResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_REVOKEUSERPERMISSIONRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_REVOKEUSERPERMISSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT RevokeUserPermissionResult : public ServiceResult + { + public: + + + RevokeUserPermissionResult(); + explicit RevokeUserPermissionResult(const std::string &payload); + ~RevokeUserPermissionResult(); + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_REVOKEUSERPERMISSIONRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/SearchDatabaseRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/SearchDatabaseRequest.h new file mode 100644 index 000000000..6d7630243 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/SearchDatabaseRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SEARCHDATABASEREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SEARCHDATABASEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT SearchDatabaseRequest : public RpcServiceRequest + { + + public: + SearchDatabaseRequest(); + ~SearchDatabaseRequest(); + + std::string getSearchKey()const; + void setSearchKey(const std::string& searchKey); + std::string getSearchRange()const; + void setSearchRange(const std::string& searchRange); + long getTid()const; + void setTid(long tid); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getSearchTarget()const; + void setSearchTarget(const std::string& searchTarget); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getEnvType()const; + void setEnvType(const std::string& envType); + std::string getDbType()const; + void setDbType(const std::string& dbType); + + private: + std::string searchKey_; + std::string searchRange_; + long tid_; + int pageNumber_; + std::string searchTarget_; + int pageSize_; + std::string envType_; + std::string dbType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SEARCHDATABASEREQUEST_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/SearchDatabaseResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/SearchDatabaseResult.h new file mode 100644 index 000000000..42375c379 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/SearchDatabaseResult.h @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SEARCHDATABASERESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SEARCHDATABASERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT SearchDatabaseResult : public ServiceResult + { + public: + struct SearchDatabase + { + std::string searchName; + int port; + std::string databaseId; + std::string host; + std::string encoding; + std::string envType; + std::string dbType; + std::string sid; + std::string dbaId; + std::string alias; + std::string datalinkName; + std::vector ownerNameList; + bool logic; + std::string schemaName; + std::vector ownerIdList; + }; + + + SearchDatabaseResult(); + explicit SearchDatabaseResult(const std::string &payload); + ~SearchDatabaseResult(); + long getTotalCount()const; + std::vector getSearchDatabaseList()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + std::vector searchDatabaseList_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SEARCHDATABASERESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/SearchTableRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/SearchTableRequest.h new file mode 100644 index 000000000..ab7305d25 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/SearchTableRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SEARCHTABLEREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SEARCHTABLEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT SearchTableRequest : public RpcServiceRequest + { + + public: + SearchTableRequest(); + ~SearchTableRequest(); + + std::string getSearchTarget()const; + void setSearchTarget(const std::string& searchTarget); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getEnvType()const; + void setEnvType(const std::string& envType); + std::string getSearchKey()const; + void setSearchKey(const std::string& searchKey); + std::string getSearchRange()const; + void setSearchRange(const std::string& searchRange); + long getTid()const; + void setTid(long tid); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + std::string searchTarget_; + int pageSize_; + std::string envType_; + std::string searchKey_; + std::string searchRange_; + long tid_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SEARCHTABLEREQUEST_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/SearchTableResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/SearchTableResult.h new file mode 100644 index 000000000..d18b53215 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/SearchTableResult.h @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SEARCHTABLERESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SEARCHTABLERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT SearchTableResult : public ServiceResult + { + public: + struct SearchTable + { + std::string tableId; + std::string tableName; + std::string tableSchemaName; + std::string databaseId; + std::string encoding; + std::vector ownerNameList; + bool logic; + std::string dBSearchName; + std::string engine; + std::string envType; + std::vector ownerIdList; + }; + + + SearchTableResult(); + explicit SearchTableResult(const std::string &payload); + ~SearchTableResult(); + std::vector getSearchTableList()const; + long getTotalCount()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector searchTableList_; + long totalCount_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SEARCHTABLERESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/SetOwnersRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/SetOwnersRequest.h new file mode 100644 index 000000000..4ff982793 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/SetOwnersRequest.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_DMS_ENTERPRISE_MODEL_SETOWNERSREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SETOWNERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT SetOwnersRequest : public RpcServiceRequest + { + + public: + SetOwnersRequest(); + ~SetOwnersRequest(); + + std::string getResourceId()const; + void setResourceId(const std::string& resourceId); + std::string getOwnerIds()const; + void setOwnerIds(const std::string& ownerIds); + std::string getOwnerType()const; + void setOwnerType(const std::string& ownerType); + long getTid()const; + void setTid(long tid); + + private: + std::string resourceId_; + std::string ownerIds_; + std::string ownerType_; + long tid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SETOWNERSREQUEST_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/SetOwnersResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/SetOwnersResult.h new file mode 100644 index 000000000..71925c68d --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/SetOwnersResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SETOWNERSRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SETOWNERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT SetOwnersResult : public ServiceResult + { + public: + + + SetOwnersResult(); + explicit SetOwnersResult(const std::string &payload); + ~SetOwnersResult(); + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SETOWNERSRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/SubmitOrderApprovalRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/SubmitOrderApprovalRequest.h new file mode 100644 index 000000000..015c49159 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/SubmitOrderApprovalRequest.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_DMS_ENTERPRISE_MODEL_SUBMITORDERAPPROVALREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SUBMITORDERAPPROVALREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT SubmitOrderApprovalRequest : public RpcServiceRequest + { + + public: + SubmitOrderApprovalRequest(); + ~SubmitOrderApprovalRequest(); + + long getOrderId()const; + void setOrderId(long orderId); + long getTid()const; + void setTid(long tid); + + private: + long orderId_; + long tid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SUBMITORDERAPPROVALREQUEST_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/SubmitOrderApprovalResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/SubmitOrderApprovalResult.h new file mode 100644 index 000000000..3d3008d56 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/SubmitOrderApprovalResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SUBMITORDERAPPROVALRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SUBMITORDERAPPROVALRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT SubmitOrderApprovalResult : public ServiceResult + { + public: + + + SubmitOrderApprovalResult(); + explicit SubmitOrderApprovalResult(const std::string &payload); + ~SubmitOrderApprovalResult(); + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SUBMITORDERAPPROVALRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/SyncDatabaseMetaRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/SyncDatabaseMetaRequest.h new file mode 100644 index 000000000..e1718faca --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/SyncDatabaseMetaRequest.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_DMS_ENTERPRISE_MODEL_SYNCDATABASEMETAREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SYNCDATABASEMETAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT SyncDatabaseMetaRequest : public RpcServiceRequest + { + + public: + SyncDatabaseMetaRequest(); + ~SyncDatabaseMetaRequest(); + + std::string getDbId()const; + void setDbId(const std::string& dbId); + bool getLogic()const; + void setLogic(bool logic); + long getTid()const; + void setTid(long tid); + + private: + std::string dbId_; + bool logic_; + long tid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SYNCDATABASEMETAREQUEST_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/SyncDatabaseMetaResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/SyncDatabaseMetaResult.h new file mode 100644 index 000000000..e4fe9424b --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/SyncDatabaseMetaResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SYNCDATABASEMETARESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SYNCDATABASEMETARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT SyncDatabaseMetaResult : public ServiceResult + { + public: + + + SyncDatabaseMetaResult(); + explicit SyncDatabaseMetaResult(const std::string &payload); + ~SyncDatabaseMetaResult(); + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SYNCDATABASEMETARESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/SyncInstanceMetaRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/SyncInstanceMetaRequest.h new file mode 100644 index 000000000..f06f2f15a --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/SyncInstanceMetaRequest.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_DMS_ENTERPRISE_MODEL_SYNCINSTANCEMETAREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SYNCINSTANCEMETAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT SyncInstanceMetaRequest : public RpcServiceRequest + { + + public: + SyncInstanceMetaRequest(); + ~SyncInstanceMetaRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + bool getIgnoreTable()const; + void setIgnoreTable(bool ignoreTable); + long getTid()const; + void setTid(long tid); + + private: + std::string instanceId_; + bool ignoreTable_; + long tid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SYNCINSTANCEMETAREQUEST_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/SyncInstanceMetaResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/SyncInstanceMetaResult.h new file mode 100644 index 000000000..743ac1604 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/SyncInstanceMetaResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SYNCINSTANCEMETARESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SYNCINSTANCEMETARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT SyncInstanceMetaResult : public ServiceResult + { + public: + + + SyncInstanceMetaResult(); + explicit SyncInstanceMetaResult(const std::string &payload); + ~SyncInstanceMetaResult(); + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SYNCINSTANCEMETARESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/UpdateInstanceRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/UpdateInstanceRequest.h new file mode 100644 index 000000000..ac3783689 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/UpdateInstanceRequest.h @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_UPDATEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_UPDATEINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT UpdateInstanceRequest : public RpcServiceRequest + { + + public: + UpdateInstanceRequest(); + ~UpdateInstanceRequest(); + + std::string getSafeRuleId()const; + void setSafeRuleId(const std::string& safeRuleId); + std::string getEcsRegion()const; + void setEcsRegion(const std::string& ecsRegion); + int getDdlOnline()const; + void setDdlOnline(int ddlOnline); + int getUseDsql()const; + void setUseDsql(int useDsql); + long getTid()const; + void setTid(long tid); + std::string getSid()const; + void setSid(const std::string& sid); + std::string getDbaId()const; + void setDbaId(const std::string& dbaId); + std::string getDataLinkName()const; + void setDataLinkName(const std::string& dataLinkName); + std::string getInstanceSource()const; + void setInstanceSource(const std::string& instanceSource); + std::string getEnvType()const; + void setEnvType(const std::string& envType); + std::string getHost()const; + void setHost(const std::string& host); + std::string getInstanceType()const; + void setInstanceType(const std::string& instanceType); + int getQueryTimeout()const; + void setQueryTimeout(int queryTimeout); + std::string getEcsInstanceId()const; + void setEcsInstanceId(const std::string& ecsInstanceId); + int getExportTimeout()const; + void setExportTimeout(int exportTimeout); + std::string getDatabasePassword()const; + void setDatabasePassword(const std::string& databasePassword); + std::string getInstanceAlias()const; + void setInstanceAlias(const std::string& instanceAlias); + std::string getDatabaseUser()const; + void setDatabaseUser(const std::string& databaseUser); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + int getPort()const; + void setPort(int port); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); + + private: + std::string safeRuleId_; + std::string ecsRegion_; + int ddlOnline_; + int useDsql_; + long tid_; + std::string sid_; + std::string dbaId_; + std::string dataLinkName_; + std::string instanceSource_; + std::string envType_; + std::string host_; + std::string instanceType_; + int queryTimeout_; + std::string ecsInstanceId_; + int exportTimeout_; + std::string databasePassword_; + std::string instanceAlias_; + std::string databaseUser_; + std::string instanceId_; + int port_; + std::string vpcId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_UPDATEINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/UpdateInstanceResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/UpdateInstanceResult.h new file mode 100644 index 000000000..956c726bd --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/UpdateInstanceResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_UPDATEINSTANCERESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_UPDATEINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT UpdateInstanceResult : public ServiceResult + { + public: + + + UpdateInstanceResult(); + explicit UpdateInstanceResult(const std::string &payload); + ~UpdateInstanceResult(); + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_UPDATEINSTANCERESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/UpdateUserRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/UpdateUserRequest.h new file mode 100644 index 000000000..153882414 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/UpdateUserRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_UPDATEUSERREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_UPDATEUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT UpdateUserRequest : public RpcServiceRequest + { + + public: + UpdateUserRequest(); + ~UpdateUserRequest(); + + std::string getRoleNames()const; + void setRoleNames(const std::string& roleNames); + long getUid()const; + void setUid(long uid); + std::string getUserNick()const; + void setUserNick(const std::string& userNick); + std::string getMobile()const; + void setMobile(const std::string& mobile); + long getTid()const; + void setTid(long tid); + + private: + std::string roleNames_; + long uid_; + std::string userNick_; + std::string mobile_; + long tid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_UPDATEUSERREQUEST_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/UpdateUserResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/UpdateUserResult.h new file mode 100644 index 000000000..8441e4604 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/UpdateUserResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_UPDATEUSERRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_UPDATEUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT UpdateUserResult : public ServiceResult + { + public: + + + UpdateUserResult(); + explicit UpdateUserResult(const std::string &payload); + ~UpdateUserResult(); + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_UPDATEUSERRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/src/Dms-enterpriseClient.cc b/dms-enterprise/src/Dms-enterpriseClient.cc new file mode 100644 index 000000000..7d5b7826a --- /dev/null +++ b/dms-enterprise/src/Dms-enterpriseClient.cc @@ -0,0 +1,1709 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +namespace +{ + const std::string SERVICE_NAME = "dms-enterprise"; +} + +Dms_enterpriseClient::Dms_enterpriseClient(const Credentials &credentials, const ClientConfiguration &configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) +{ + auto locationClient = std::make_shared(credentials, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); +} + +Dms_enterpriseClient::Dms_enterpriseClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) +{ + auto locationClient = std::make_shared(credentialsProvider, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); +} + +Dms_enterpriseClient::Dms_enterpriseClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) +{ + auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); +} + +Dms_enterpriseClient::~Dms_enterpriseClient() +{} + +Dms_enterpriseClient::ApproveOrderOutcome Dms_enterpriseClient::approveOrder(const ApproveOrderRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ApproveOrderOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ApproveOrderOutcome(ApproveOrderResult(outcome.result())); + else + return ApproveOrderOutcome(outcome.error()); +} + +void Dms_enterpriseClient::approveOrderAsync(const ApproveOrderRequest& request, const ApproveOrderAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, approveOrder(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::ApproveOrderOutcomeCallable Dms_enterpriseClient::approveOrderCallable(const ApproveOrderRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->approveOrder(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::CloseOrderOutcome Dms_enterpriseClient::closeOrder(const CloseOrderRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CloseOrderOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CloseOrderOutcome(CloseOrderResult(outcome.result())); + else + return CloseOrderOutcome(outcome.error()); +} + +void Dms_enterpriseClient::closeOrderAsync(const CloseOrderRequest& request, const CloseOrderAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, closeOrder(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::CloseOrderOutcomeCallable Dms_enterpriseClient::closeOrderCallable(const CloseOrderRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->closeOrder(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::CreateOrderOutcome Dms_enterpriseClient::createOrder(const CreateOrderRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateOrderOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateOrderOutcome(CreateOrderResult(outcome.result())); + else + return CreateOrderOutcome(outcome.error()); +} + +void Dms_enterpriseClient::createOrderAsync(const CreateOrderRequest& request, const CreateOrderAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createOrder(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::CreateOrderOutcomeCallable Dms_enterpriseClient::createOrderCallable(const CreateOrderRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createOrder(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::CreatePublishGroupTaskOutcome Dms_enterpriseClient::createPublishGroupTask(const CreatePublishGroupTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreatePublishGroupTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreatePublishGroupTaskOutcome(CreatePublishGroupTaskResult(outcome.result())); + else + return CreatePublishGroupTaskOutcome(outcome.error()); +} + +void Dms_enterpriseClient::createPublishGroupTaskAsync(const CreatePublishGroupTaskRequest& request, const CreatePublishGroupTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createPublishGroupTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::CreatePublishGroupTaskOutcomeCallable Dms_enterpriseClient::createPublishGroupTaskCallable(const CreatePublishGroupTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createPublishGroupTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::DeleteInstanceOutcome Dms_enterpriseClient::deleteInstance(const DeleteInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteInstanceOutcome(DeleteInstanceResult(outcome.result())); + else + return DeleteInstanceOutcome(outcome.error()); +} + +void Dms_enterpriseClient::deleteInstanceAsync(const DeleteInstanceRequest& request, const DeleteInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::DeleteInstanceOutcomeCallable Dms_enterpriseClient::deleteInstanceCallable(const DeleteInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::DeleteUserOutcome Dms_enterpriseClient::deleteUser(const DeleteUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteUserOutcome(DeleteUserResult(outcome.result())); + else + return DeleteUserOutcome(outcome.error()); +} + +void Dms_enterpriseClient::deleteUserAsync(const DeleteUserRequest& request, const DeleteUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::DeleteUserOutcomeCallable Dms_enterpriseClient::deleteUserCallable(const DeleteUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::DisableUserOutcome Dms_enterpriseClient::disableUser(const DisableUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DisableUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DisableUserOutcome(DisableUserResult(outcome.result())); + else + return DisableUserOutcome(outcome.error()); +} + +void Dms_enterpriseClient::disableUserAsync(const DisableUserRequest& request, const DisableUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, disableUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::DisableUserOutcomeCallable Dms_enterpriseClient::disableUserCallable(const DisableUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->disableUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::EnableUserOutcome Dms_enterpriseClient::enableUser(const EnableUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return EnableUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return EnableUserOutcome(EnableUserResult(outcome.result())); + else + return EnableUserOutcome(outcome.error()); +} + +void Dms_enterpriseClient::enableUserAsync(const EnableUserRequest& request, const EnableUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, enableUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::EnableUserOutcomeCallable Dms_enterpriseClient::enableUserCallable(const EnableUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->enableUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::ExecuteDataCorrectOutcome Dms_enterpriseClient::executeDataCorrect(const ExecuteDataCorrectRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ExecuteDataCorrectOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ExecuteDataCorrectOutcome(ExecuteDataCorrectResult(outcome.result())); + else + return ExecuteDataCorrectOutcome(outcome.error()); +} + +void Dms_enterpriseClient::executeDataCorrectAsync(const ExecuteDataCorrectRequest& request, const ExecuteDataCorrectAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, executeDataCorrect(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::ExecuteDataCorrectOutcomeCallable Dms_enterpriseClient::executeDataCorrectCallable(const ExecuteDataCorrectRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->executeDataCorrect(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::ExecuteDataExportOutcome Dms_enterpriseClient::executeDataExport(const ExecuteDataExportRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ExecuteDataExportOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ExecuteDataExportOutcome(ExecuteDataExportResult(outcome.result())); + else + return ExecuteDataExportOutcome(outcome.error()); +} + +void Dms_enterpriseClient::executeDataExportAsync(const ExecuteDataExportRequest& request, const ExecuteDataExportAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, executeDataExport(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::ExecuteDataExportOutcomeCallable Dms_enterpriseClient::executeDataExportCallable(const ExecuteDataExportRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->executeDataExport(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::GetApprovalDetailOutcome Dms_enterpriseClient::getApprovalDetail(const GetApprovalDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetApprovalDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetApprovalDetailOutcome(GetApprovalDetailResult(outcome.result())); + else + return GetApprovalDetailOutcome(outcome.error()); +} + +void Dms_enterpriseClient::getApprovalDetailAsync(const GetApprovalDetailRequest& request, const GetApprovalDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getApprovalDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::GetApprovalDetailOutcomeCallable Dms_enterpriseClient::getApprovalDetailCallable(const GetApprovalDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getApprovalDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::GetDataCorrectBackupFilesOutcome Dms_enterpriseClient::getDataCorrectBackupFiles(const GetDataCorrectBackupFilesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetDataCorrectBackupFilesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetDataCorrectBackupFilesOutcome(GetDataCorrectBackupFilesResult(outcome.result())); + else + return GetDataCorrectBackupFilesOutcome(outcome.error()); +} + +void Dms_enterpriseClient::getDataCorrectBackupFilesAsync(const GetDataCorrectBackupFilesRequest& request, const GetDataCorrectBackupFilesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getDataCorrectBackupFiles(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::GetDataCorrectBackupFilesOutcomeCallable Dms_enterpriseClient::getDataCorrectBackupFilesCallable(const GetDataCorrectBackupFilesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getDataCorrectBackupFiles(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::GetDataCorrectOrderDetailOutcome Dms_enterpriseClient::getDataCorrectOrderDetail(const GetDataCorrectOrderDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetDataCorrectOrderDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetDataCorrectOrderDetailOutcome(GetDataCorrectOrderDetailResult(outcome.result())); + else + return GetDataCorrectOrderDetailOutcome(outcome.error()); +} + +void Dms_enterpriseClient::getDataCorrectOrderDetailAsync(const GetDataCorrectOrderDetailRequest& request, const GetDataCorrectOrderDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getDataCorrectOrderDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::GetDataCorrectOrderDetailOutcomeCallable Dms_enterpriseClient::getDataCorrectOrderDetailCallable(const GetDataCorrectOrderDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getDataCorrectOrderDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::GetDataExportDownloadURLOutcome Dms_enterpriseClient::getDataExportDownloadURL(const GetDataExportDownloadURLRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetDataExportDownloadURLOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetDataExportDownloadURLOutcome(GetDataExportDownloadURLResult(outcome.result())); + else + return GetDataExportDownloadURLOutcome(outcome.error()); +} + +void Dms_enterpriseClient::getDataExportDownloadURLAsync(const GetDataExportDownloadURLRequest& request, const GetDataExportDownloadURLAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getDataExportDownloadURL(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::GetDataExportDownloadURLOutcomeCallable Dms_enterpriseClient::getDataExportDownloadURLCallable(const GetDataExportDownloadURLRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getDataExportDownloadURL(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::GetDataExportOrderDetailOutcome Dms_enterpriseClient::getDataExportOrderDetail(const GetDataExportOrderDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetDataExportOrderDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetDataExportOrderDetailOutcome(GetDataExportOrderDetailResult(outcome.result())); + else + return GetDataExportOrderDetailOutcome(outcome.error()); +} + +void Dms_enterpriseClient::getDataExportOrderDetailAsync(const GetDataExportOrderDetailRequest& request, const GetDataExportOrderDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getDataExportOrderDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::GetDataExportOrderDetailOutcomeCallable Dms_enterpriseClient::getDataExportOrderDetailCallable(const GetDataExportOrderDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getDataExportOrderDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::GetDatabaseOutcome Dms_enterpriseClient::getDatabase(const GetDatabaseRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetDatabaseOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetDatabaseOutcome(GetDatabaseResult(outcome.result())); + else + return GetDatabaseOutcome(outcome.error()); +} + +void Dms_enterpriseClient::getDatabaseAsync(const GetDatabaseRequest& request, const GetDatabaseAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getDatabase(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::GetDatabaseOutcomeCallable Dms_enterpriseClient::getDatabaseCallable(const GetDatabaseRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getDatabase(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::GetInstanceOutcome Dms_enterpriseClient::getInstance(const GetInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetInstanceOutcome(GetInstanceResult(outcome.result())); + else + return GetInstanceOutcome(outcome.error()); +} + +void Dms_enterpriseClient::getInstanceAsync(const GetInstanceRequest& request, const GetInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::GetInstanceOutcomeCallable Dms_enterpriseClient::getInstanceCallable(const GetInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::GetLogicDatabaseOutcome Dms_enterpriseClient::getLogicDatabase(const GetLogicDatabaseRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetLogicDatabaseOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetLogicDatabaseOutcome(GetLogicDatabaseResult(outcome.result())); + else + return GetLogicDatabaseOutcome(outcome.error()); +} + +void Dms_enterpriseClient::getLogicDatabaseAsync(const GetLogicDatabaseRequest& request, const GetLogicDatabaseAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getLogicDatabase(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::GetLogicDatabaseOutcomeCallable Dms_enterpriseClient::getLogicDatabaseCallable(const GetLogicDatabaseRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getLogicDatabase(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::GetOpLogOutcome Dms_enterpriseClient::getOpLog(const GetOpLogRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetOpLogOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetOpLogOutcome(GetOpLogResult(outcome.result())); + else + return GetOpLogOutcome(outcome.error()); +} + +void Dms_enterpriseClient::getOpLogAsync(const GetOpLogRequest& request, const GetOpLogAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getOpLog(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::GetOpLogOutcomeCallable Dms_enterpriseClient::getOpLogCallable(const GetOpLogRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getOpLog(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::GetOrderBaseInfoOutcome Dms_enterpriseClient::getOrderBaseInfo(const GetOrderBaseInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetOrderBaseInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetOrderBaseInfoOutcome(GetOrderBaseInfoResult(outcome.result())); + else + return GetOrderBaseInfoOutcome(outcome.error()); +} + +void Dms_enterpriseClient::getOrderBaseInfoAsync(const GetOrderBaseInfoRequest& request, const GetOrderBaseInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getOrderBaseInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::GetOrderBaseInfoOutcomeCallable Dms_enterpriseClient::getOrderBaseInfoCallable(const GetOrderBaseInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getOrderBaseInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::GetUserOutcome Dms_enterpriseClient::getUser(const GetUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetUserOutcome(GetUserResult(outcome.result())); + else + return GetUserOutcome(outcome.error()); +} + +void Dms_enterpriseClient::getUserAsync(const GetUserRequest& request, const GetUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::GetUserOutcomeCallable Dms_enterpriseClient::getUserCallable(const GetUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::GrantUserPermissionOutcome Dms_enterpriseClient::grantUserPermission(const GrantUserPermissionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GrantUserPermissionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GrantUserPermissionOutcome(GrantUserPermissionResult(outcome.result())); + else + return GrantUserPermissionOutcome(outcome.error()); +} + +void Dms_enterpriseClient::grantUserPermissionAsync(const GrantUserPermissionRequest& request, const GrantUserPermissionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, grantUserPermission(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::GrantUserPermissionOutcomeCallable Dms_enterpriseClient::grantUserPermissionCallable(const GrantUserPermissionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->grantUserPermission(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::ListColumnsOutcome Dms_enterpriseClient::listColumns(const ListColumnsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListColumnsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListColumnsOutcome(ListColumnsResult(outcome.result())); + else + return ListColumnsOutcome(outcome.error()); +} + +void Dms_enterpriseClient::listColumnsAsync(const ListColumnsRequest& request, const ListColumnsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listColumns(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::ListColumnsOutcomeCallable Dms_enterpriseClient::listColumnsCallable(const ListColumnsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listColumns(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::ListDatabaseUserPermssionsOutcome Dms_enterpriseClient::listDatabaseUserPermssions(const ListDatabaseUserPermssionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListDatabaseUserPermssionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListDatabaseUserPermssionsOutcome(ListDatabaseUserPermssionsResult(outcome.result())); + else + return ListDatabaseUserPermssionsOutcome(outcome.error()); +} + +void Dms_enterpriseClient::listDatabaseUserPermssionsAsync(const ListDatabaseUserPermssionsRequest& request, const ListDatabaseUserPermssionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listDatabaseUserPermssions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::ListDatabaseUserPermssionsOutcomeCallable Dms_enterpriseClient::listDatabaseUserPermssionsCallable(const ListDatabaseUserPermssionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listDatabaseUserPermssions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::ListDatabasesOutcome Dms_enterpriseClient::listDatabases(const ListDatabasesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListDatabasesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListDatabasesOutcome(ListDatabasesResult(outcome.result())); + else + return ListDatabasesOutcome(outcome.error()); +} + +void Dms_enterpriseClient::listDatabasesAsync(const ListDatabasesRequest& request, const ListDatabasesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listDatabases(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::ListDatabasesOutcomeCallable Dms_enterpriseClient::listDatabasesCallable(const ListDatabasesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listDatabases(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::ListIndexesOutcome Dms_enterpriseClient::listIndexes(const ListIndexesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListIndexesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListIndexesOutcome(ListIndexesResult(outcome.result())); + else + return ListIndexesOutcome(outcome.error()); +} + +void Dms_enterpriseClient::listIndexesAsync(const ListIndexesRequest& request, const ListIndexesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listIndexes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::ListIndexesOutcomeCallable Dms_enterpriseClient::listIndexesCallable(const ListIndexesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listIndexes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::ListInstancesOutcome Dms_enterpriseClient::listInstances(const ListInstancesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListInstancesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListInstancesOutcome(ListInstancesResult(outcome.result())); + else + return ListInstancesOutcome(outcome.error()); +} + +void Dms_enterpriseClient::listInstancesAsync(const ListInstancesRequest& request, const ListInstancesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listInstances(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::ListInstancesOutcomeCallable Dms_enterpriseClient::listInstancesCallable(const ListInstancesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listInstances(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::ListLogicDatabasesOutcome Dms_enterpriseClient::listLogicDatabases(const ListLogicDatabasesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListLogicDatabasesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListLogicDatabasesOutcome(ListLogicDatabasesResult(outcome.result())); + else + return ListLogicDatabasesOutcome(outcome.error()); +} + +void Dms_enterpriseClient::listLogicDatabasesAsync(const ListLogicDatabasesRequest& request, const ListLogicDatabasesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listLogicDatabases(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::ListLogicDatabasesOutcomeCallable Dms_enterpriseClient::listLogicDatabasesCallable(const ListLogicDatabasesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listLogicDatabases(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::ListLogicTablesOutcome Dms_enterpriseClient::listLogicTables(const ListLogicTablesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListLogicTablesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListLogicTablesOutcome(ListLogicTablesResult(outcome.result())); + else + return ListLogicTablesOutcome(outcome.error()); +} + +void Dms_enterpriseClient::listLogicTablesAsync(const ListLogicTablesRequest& request, const ListLogicTablesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listLogicTables(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::ListLogicTablesOutcomeCallable Dms_enterpriseClient::listLogicTablesCallable(const ListLogicTablesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listLogicTables(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::ListOrdersOutcome Dms_enterpriseClient::listOrders(const ListOrdersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListOrdersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListOrdersOutcome(ListOrdersResult(outcome.result())); + else + return ListOrdersOutcome(outcome.error()); +} + +void Dms_enterpriseClient::listOrdersAsync(const ListOrdersRequest& request, const ListOrdersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listOrders(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::ListOrdersOutcomeCallable Dms_enterpriseClient::listOrdersCallable(const ListOrdersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listOrders(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::ListTablesOutcome Dms_enterpriseClient::listTables(const ListTablesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListTablesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListTablesOutcome(ListTablesResult(outcome.result())); + else + return ListTablesOutcome(outcome.error()); +} + +void Dms_enterpriseClient::listTablesAsync(const ListTablesRequest& request, const ListTablesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTables(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::ListTablesOutcomeCallable Dms_enterpriseClient::listTablesCallable(const ListTablesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTables(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::ListUserPermissionsOutcome Dms_enterpriseClient::listUserPermissions(const ListUserPermissionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListUserPermissionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListUserPermissionsOutcome(ListUserPermissionsResult(outcome.result())); + else + return ListUserPermissionsOutcome(outcome.error()); +} + +void Dms_enterpriseClient::listUserPermissionsAsync(const ListUserPermissionsRequest& request, const ListUserPermissionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listUserPermissions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::ListUserPermissionsOutcomeCallable Dms_enterpriseClient::listUserPermissionsCallable(const ListUserPermissionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listUserPermissions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::ListUsersOutcome Dms_enterpriseClient::listUsers(const ListUsersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListUsersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListUsersOutcome(ListUsersResult(outcome.result())); + else + return ListUsersOutcome(outcome.error()); +} + +void Dms_enterpriseClient::listUsersAsync(const ListUsersRequest& request, const ListUsersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listUsers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::ListUsersOutcomeCallable Dms_enterpriseClient::listUsersCallable(const ListUsersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listUsers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::ListWorkFlowNodesOutcome Dms_enterpriseClient::listWorkFlowNodes(const ListWorkFlowNodesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListWorkFlowNodesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListWorkFlowNodesOutcome(ListWorkFlowNodesResult(outcome.result())); + else + return ListWorkFlowNodesOutcome(outcome.error()); +} + +void Dms_enterpriseClient::listWorkFlowNodesAsync(const ListWorkFlowNodesRequest& request, const ListWorkFlowNodesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listWorkFlowNodes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::ListWorkFlowNodesOutcomeCallable Dms_enterpriseClient::listWorkFlowNodesCallable(const ListWorkFlowNodesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listWorkFlowNodes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::ListWorkFlowTemplatesOutcome Dms_enterpriseClient::listWorkFlowTemplates(const ListWorkFlowTemplatesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListWorkFlowTemplatesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListWorkFlowTemplatesOutcome(ListWorkFlowTemplatesResult(outcome.result())); + else + return ListWorkFlowTemplatesOutcome(outcome.error()); +} + +void Dms_enterpriseClient::listWorkFlowTemplatesAsync(const ListWorkFlowTemplatesRequest& request, const ListWorkFlowTemplatesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listWorkFlowTemplates(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::ListWorkFlowTemplatesOutcomeCallable Dms_enterpriseClient::listWorkFlowTemplatesCallable(const ListWorkFlowTemplatesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listWorkFlowTemplates(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::RegisterInstanceOutcome Dms_enterpriseClient::registerInstance(const RegisterInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RegisterInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RegisterInstanceOutcome(RegisterInstanceResult(outcome.result())); + else + return RegisterInstanceOutcome(outcome.error()); +} + +void Dms_enterpriseClient::registerInstanceAsync(const RegisterInstanceRequest& request, const RegisterInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, registerInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::RegisterInstanceOutcomeCallable Dms_enterpriseClient::registerInstanceCallable(const RegisterInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->registerInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::RegisterUserOutcome Dms_enterpriseClient::registerUser(const RegisterUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RegisterUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RegisterUserOutcome(RegisterUserResult(outcome.result())); + else + return RegisterUserOutcome(outcome.error()); +} + +void Dms_enterpriseClient::registerUserAsync(const RegisterUserRequest& request, const RegisterUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, registerUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::RegisterUserOutcomeCallable Dms_enterpriseClient::registerUserCallable(const RegisterUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->registerUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::RevokeUserPermissionOutcome Dms_enterpriseClient::revokeUserPermission(const RevokeUserPermissionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RevokeUserPermissionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RevokeUserPermissionOutcome(RevokeUserPermissionResult(outcome.result())); + else + return RevokeUserPermissionOutcome(outcome.error()); +} + +void Dms_enterpriseClient::revokeUserPermissionAsync(const RevokeUserPermissionRequest& request, const RevokeUserPermissionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, revokeUserPermission(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::RevokeUserPermissionOutcomeCallable Dms_enterpriseClient::revokeUserPermissionCallable(const RevokeUserPermissionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->revokeUserPermission(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::SearchDatabaseOutcome Dms_enterpriseClient::searchDatabase(const SearchDatabaseRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SearchDatabaseOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SearchDatabaseOutcome(SearchDatabaseResult(outcome.result())); + else + return SearchDatabaseOutcome(outcome.error()); +} + +void Dms_enterpriseClient::searchDatabaseAsync(const SearchDatabaseRequest& request, const SearchDatabaseAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, searchDatabase(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::SearchDatabaseOutcomeCallable Dms_enterpriseClient::searchDatabaseCallable(const SearchDatabaseRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->searchDatabase(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::SearchTableOutcome Dms_enterpriseClient::searchTable(const SearchTableRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SearchTableOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SearchTableOutcome(SearchTableResult(outcome.result())); + else + return SearchTableOutcome(outcome.error()); +} + +void Dms_enterpriseClient::searchTableAsync(const SearchTableRequest& request, const SearchTableAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, searchTable(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::SearchTableOutcomeCallable Dms_enterpriseClient::searchTableCallable(const SearchTableRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->searchTable(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::SetOwnersOutcome Dms_enterpriseClient::setOwners(const SetOwnersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetOwnersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetOwnersOutcome(SetOwnersResult(outcome.result())); + else + return SetOwnersOutcome(outcome.error()); +} + +void Dms_enterpriseClient::setOwnersAsync(const SetOwnersRequest& request, const SetOwnersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setOwners(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::SetOwnersOutcomeCallable Dms_enterpriseClient::setOwnersCallable(const SetOwnersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setOwners(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::SubmitOrderApprovalOutcome Dms_enterpriseClient::submitOrderApproval(const SubmitOrderApprovalRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SubmitOrderApprovalOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SubmitOrderApprovalOutcome(SubmitOrderApprovalResult(outcome.result())); + else + return SubmitOrderApprovalOutcome(outcome.error()); +} + +void Dms_enterpriseClient::submitOrderApprovalAsync(const SubmitOrderApprovalRequest& request, const SubmitOrderApprovalAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, submitOrderApproval(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::SubmitOrderApprovalOutcomeCallable Dms_enterpriseClient::submitOrderApprovalCallable(const SubmitOrderApprovalRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->submitOrderApproval(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::SyncDatabaseMetaOutcome Dms_enterpriseClient::syncDatabaseMeta(const SyncDatabaseMetaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SyncDatabaseMetaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SyncDatabaseMetaOutcome(SyncDatabaseMetaResult(outcome.result())); + else + return SyncDatabaseMetaOutcome(outcome.error()); +} + +void Dms_enterpriseClient::syncDatabaseMetaAsync(const SyncDatabaseMetaRequest& request, const SyncDatabaseMetaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, syncDatabaseMeta(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::SyncDatabaseMetaOutcomeCallable Dms_enterpriseClient::syncDatabaseMetaCallable(const SyncDatabaseMetaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->syncDatabaseMeta(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::SyncInstanceMetaOutcome Dms_enterpriseClient::syncInstanceMeta(const SyncInstanceMetaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SyncInstanceMetaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SyncInstanceMetaOutcome(SyncInstanceMetaResult(outcome.result())); + else + return SyncInstanceMetaOutcome(outcome.error()); +} + +void Dms_enterpriseClient::syncInstanceMetaAsync(const SyncInstanceMetaRequest& request, const SyncInstanceMetaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, syncInstanceMeta(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::SyncInstanceMetaOutcomeCallable Dms_enterpriseClient::syncInstanceMetaCallable(const SyncInstanceMetaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->syncInstanceMeta(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::UpdateInstanceOutcome Dms_enterpriseClient::updateInstance(const UpdateInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateInstanceOutcome(UpdateInstanceResult(outcome.result())); + else + return UpdateInstanceOutcome(outcome.error()); +} + +void Dms_enterpriseClient::updateInstanceAsync(const UpdateInstanceRequest& request, const UpdateInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::UpdateInstanceOutcomeCallable Dms_enterpriseClient::updateInstanceCallable(const UpdateInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::UpdateUserOutcome Dms_enterpriseClient::updateUser(const UpdateUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateUserOutcome(UpdateUserResult(outcome.result())); + else + return UpdateUserOutcome(outcome.error()); +} + +void Dms_enterpriseClient::updateUserAsync(const UpdateUserRequest& request, const UpdateUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::UpdateUserOutcomeCallable Dms_enterpriseClient::updateUserCallable(const UpdateUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/dms-enterprise/src/model/ApproveOrderRequest.cc b/dms-enterprise/src/model/ApproveOrderRequest.cc new file mode 100644 index 000000000..6f4e3fa57 --- /dev/null +++ b/dms-enterprise/src/model/ApproveOrderRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::ApproveOrderRequest; + +ApproveOrderRequest::ApproveOrderRequest() : + RpcServiceRequest("dms-enterprise", "2018-11-01", "ApproveOrder") +{ + setMethod(HttpRequest::Method::Post); +} + +ApproveOrderRequest::~ApproveOrderRequest() +{} + +std::string ApproveOrderRequest::getApprovalType()const +{ + return approvalType_; +} + +void ApproveOrderRequest::setApprovalType(const std::string& approvalType) +{ + approvalType_ = approvalType; + setParameter("ApprovalType", approvalType); +} + +long ApproveOrderRequest::getTid()const +{ + return tid_; +} + +void ApproveOrderRequest::setTid(long tid) +{ + tid_ = tid; + setParameter("Tid", std::to_string(tid)); +} + +long ApproveOrderRequest::getWorkflowInstanceId()const +{ + return workflowInstanceId_; +} + +void ApproveOrderRequest::setWorkflowInstanceId(long workflowInstanceId) +{ + workflowInstanceId_ = workflowInstanceId; + setParameter("WorkflowInstanceId", std::to_string(workflowInstanceId)); +} + diff --git a/dms-enterprise/src/model/ApproveOrderResult.cc b/dms-enterprise/src/model/ApproveOrderResult.cc new file mode 100644 index 000000000..b2cf19402 --- /dev/null +++ b/dms-enterprise/src/model/ApproveOrderResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +ApproveOrderResult::ApproveOrderResult() : + ServiceResult() +{} + +ApproveOrderResult::ApproveOrderResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ApproveOrderResult::~ApproveOrderResult() +{} + +void ApproveOrderResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string ApproveOrderResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ApproveOrderResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ApproveOrderResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/CloseOrderRequest.cc b/dms-enterprise/src/model/CloseOrderRequest.cc new file mode 100644 index 000000000..d4966b447 --- /dev/null +++ b/dms-enterprise/src/model/CloseOrderRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::CloseOrderRequest; + +CloseOrderRequest::CloseOrderRequest() : + RpcServiceRequest("dms-enterprise", "2018-11-01", "CloseOrder") +{ + setMethod(HttpRequest::Method::Post); +} + +CloseOrderRequest::~CloseOrderRequest() +{} + +long CloseOrderRequest::getOrderId()const +{ + return orderId_; +} + +void CloseOrderRequest::setOrderId(long orderId) +{ + orderId_ = orderId; + setParameter("OrderId", std::to_string(orderId)); +} + +std::string CloseOrderRequest::getCloseReason()const +{ + return closeReason_; +} + +void CloseOrderRequest::setCloseReason(const std::string& closeReason) +{ + closeReason_ = closeReason; + setParameter("CloseReason", closeReason); +} + +long CloseOrderRequest::getTid()const +{ + return tid_; +} + +void CloseOrderRequest::setTid(long tid) +{ + tid_ = tid; + setParameter("Tid", std::to_string(tid)); +} + diff --git a/dms-enterprise/src/model/CloseOrderResult.cc b/dms-enterprise/src/model/CloseOrderResult.cc new file mode 100644 index 000000000..d69ed59e0 --- /dev/null +++ b/dms-enterprise/src/model/CloseOrderResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +CloseOrderResult::CloseOrderResult() : + ServiceResult() +{} + +CloseOrderResult::CloseOrderResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CloseOrderResult::~CloseOrderResult() +{} + +void CloseOrderResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string CloseOrderResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CloseOrderResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool CloseOrderResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/CreateOrderRequest.cc b/dms-enterprise/src/model/CreateOrderRequest.cc new file mode 100644 index 000000000..4b2898921 --- /dev/null +++ b/dms-enterprise/src/model/CreateOrderRequest.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::CreateOrderRequest; + +CreateOrderRequest::CreateOrderRequest() : + RpcServiceRequest("dms-enterprise", "2018-11-01", "CreateOrder") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateOrderRequest::~CreateOrderRequest() +{} + +std::string CreateOrderRequest::getPluginType()const +{ + return pluginType_; +} + +void CreateOrderRequest::setPluginType(const std::string& pluginType) +{ + pluginType_ = pluginType; + setParameter("PluginType", pluginType); +} + +std::string CreateOrderRequest::getComment()const +{ + return comment_; +} + +void CreateOrderRequest::setComment(const std::string& comment) +{ + comment_ = comment; + setParameter("Comment", comment); +} + +long CreateOrderRequest::getTid()const +{ + return tid_; +} + +void CreateOrderRequest::setTid(long tid) +{ + tid_ = tid; + setParameter("Tid", std::to_string(tid)); +} + +std::map CreateOrderRequest::getPluginParam()const +{ + return pluginParam_; +} + +void CreateOrderRequest::setPluginParam(const std::map& pluginParam) +{ + pluginParam_ = pluginParam; + setJsonParameters("PluginParam", pluginParam); +} + +std::string CreateOrderRequest::getRelatedUserList()const +{ + return relatedUserList_; +} + +void CreateOrderRequest::setRelatedUserList(const std::string& relatedUserList) +{ + relatedUserList_ = relatedUserList; + setParameter("RelatedUserList", relatedUserList); +} + diff --git a/dms-enterprise/src/model/CreateOrderResult.cc b/dms-enterprise/src/model/CreateOrderResult.cc new file mode 100644 index 000000000..e7e1907eb --- /dev/null +++ b/dms-enterprise/src/model/CreateOrderResult.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +CreateOrderResult::CreateOrderResult() : + ServiceResult() +{} + +CreateOrderResult::CreateOrderResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateOrderResult::~CreateOrderResult() +{} + +void CreateOrderResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allCreateOrderResult = value["CreateOrderResult"]["OrderIds"]; + for (const auto &item : allCreateOrderResult) + createOrderResult_.push_back(item.asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::vector CreateOrderResult::getCreateOrderResult()const +{ + return createOrderResult_; +} + +std::string CreateOrderResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CreateOrderResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool CreateOrderResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/CreatePublishGroupTaskRequest.cc b/dms-enterprise/src/model/CreatePublishGroupTaskRequest.cc new file mode 100644 index 000000000..d51ee68e3 --- /dev/null +++ b/dms-enterprise/src/model/CreatePublishGroupTaskRequest.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::CreatePublishGroupTaskRequest; + +CreatePublishGroupTaskRequest::CreatePublishGroupTaskRequest() : + RpcServiceRequest("dms-enterprise", "2018-11-01", "CreatePublishGroupTask") +{ + setMethod(HttpRequest::Method::Post); +} + +CreatePublishGroupTaskRequest::~CreatePublishGroupTaskRequest() +{} + +long CreatePublishGroupTaskRequest::getOrderId()const +{ + return orderId_; +} + +void CreatePublishGroupTaskRequest::setOrderId(long orderId) +{ + orderId_ = orderId; + setParameter("OrderId", std::to_string(orderId)); +} + +int CreatePublishGroupTaskRequest::getDbId()const +{ + return dbId_; +} + +void CreatePublishGroupTaskRequest::setDbId(int dbId) +{ + dbId_ = dbId; + setParameter("DbId", std::to_string(dbId)); +} + +std::string CreatePublishGroupTaskRequest::getPlanTime()const +{ + return planTime_; +} + +void CreatePublishGroupTaskRequest::setPlanTime(const std::string& planTime) +{ + planTime_ = planTime; + setParameter("PlanTime", planTime); +} + +bool CreatePublishGroupTaskRequest::getLogic()const +{ + return logic_; +} + +void CreatePublishGroupTaskRequest::setLogic(bool logic) +{ + logic_ = logic; + setParameter("Logic", logic ? "true" : "false"); +} + +long CreatePublishGroupTaskRequest::getTid()const +{ + return tid_; +} + +void CreatePublishGroupTaskRequest::setTid(long tid) +{ + tid_ = tid; + setParameter("Tid", std::to_string(tid)); +} + +std::string CreatePublishGroupTaskRequest::getPublishStrategy()const +{ + return publishStrategy_; +} + +void CreatePublishGroupTaskRequest::setPublishStrategy(const std::string& publishStrategy) +{ + publishStrategy_ = publishStrategy; + setParameter("PublishStrategy", publishStrategy); +} + diff --git a/dms-enterprise/src/model/CreatePublishGroupTaskResult.cc b/dms-enterprise/src/model/CreatePublishGroupTaskResult.cc new file mode 100644 index 000000000..a1933d6af --- /dev/null +++ b/dms-enterprise/src/model/CreatePublishGroupTaskResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +CreatePublishGroupTaskResult::CreatePublishGroupTaskResult() : + ServiceResult() +{} + +CreatePublishGroupTaskResult::CreatePublishGroupTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreatePublishGroupTaskResult::~CreatePublishGroupTaskResult() +{} + +void CreatePublishGroupTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["TaskId"].isNull()) + taskId_ = std::stol(value["TaskId"].asString()); + +} + +long CreatePublishGroupTaskResult::getTaskId()const +{ + return taskId_; +} + +std::string CreatePublishGroupTaskResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CreatePublishGroupTaskResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool CreatePublishGroupTaskResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/DeleteInstanceRequest.cc b/dms-enterprise/src/model/DeleteInstanceRequest.cc new file mode 100644 index 000000000..f5ede0a0a --- /dev/null +++ b/dms-enterprise/src/model/DeleteInstanceRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::DeleteInstanceRequest; + +DeleteInstanceRequest::DeleteInstanceRequest() : + RpcServiceRequest("dms-enterprise", "2018-11-01", "DeleteInstance") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteInstanceRequest::~DeleteInstanceRequest() +{} + +int DeleteInstanceRequest::getPort()const +{ + return port_; +} + +void DeleteInstanceRequest::setPort(int port) +{ + port_ = port; + setParameter("Port", std::to_string(port)); +} + +std::string DeleteInstanceRequest::getHost()const +{ + return host_; +} + +void DeleteInstanceRequest::setHost(const std::string& host) +{ + host_ = host; + setParameter("Host", host); +} + +long DeleteInstanceRequest::getTid()const +{ + return tid_; +} + +void DeleteInstanceRequest::setTid(long tid) +{ + tid_ = tid; + setParameter("Tid", std::to_string(tid)); +} + +std::string DeleteInstanceRequest::getSid()const +{ + return sid_; +} + +void DeleteInstanceRequest::setSid(const std::string& sid) +{ + sid_ = sid; + setParameter("Sid", sid); +} + diff --git a/dms-enterprise/src/model/DeleteInstanceResult.cc b/dms-enterprise/src/model/DeleteInstanceResult.cc new file mode 100644 index 000000000..351a3e015 --- /dev/null +++ b/dms-enterprise/src/model/DeleteInstanceResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +DeleteInstanceResult::DeleteInstanceResult() : + ServiceResult() +{} + +DeleteInstanceResult::DeleteInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteInstanceResult::~DeleteInstanceResult() +{} + +void DeleteInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string DeleteInstanceResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DeleteInstanceResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool DeleteInstanceResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/DeleteUserRequest.cc b/dms-enterprise/src/model/DeleteUserRequest.cc new file mode 100644 index 000000000..ef7556fad --- /dev/null +++ b/dms-enterprise/src/model/DeleteUserRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::DeleteUserRequest; + +DeleteUserRequest::DeleteUserRequest() : + RpcServiceRequest("dms-enterprise", "2018-11-01", "DeleteUser") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteUserRequest::~DeleteUserRequest() +{} + +long DeleteUserRequest::getUid()const +{ + return uid_; +} + +void DeleteUserRequest::setUid(long uid) +{ + uid_ = uid; + setParameter("Uid", std::to_string(uid)); +} + +long DeleteUserRequest::getTid()const +{ + return tid_; +} + +void DeleteUserRequest::setTid(long tid) +{ + tid_ = tid; + setParameter("Tid", std::to_string(tid)); +} + diff --git a/dms-enterprise/src/model/DeleteUserResult.cc b/dms-enterprise/src/model/DeleteUserResult.cc new file mode 100644 index 000000000..66891abc4 --- /dev/null +++ b/dms-enterprise/src/model/DeleteUserResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +DeleteUserResult::DeleteUserResult() : + ServiceResult() +{} + +DeleteUserResult::DeleteUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteUserResult::~DeleteUserResult() +{} + +void DeleteUserResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string DeleteUserResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DeleteUserResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool DeleteUserResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/DisableUserRequest.cc b/dms-enterprise/src/model/DisableUserRequest.cc new file mode 100644 index 000000000..f2cbcb0c1 --- /dev/null +++ b/dms-enterprise/src/model/DisableUserRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::DisableUserRequest; + +DisableUserRequest::DisableUserRequest() : + RpcServiceRequest("dms-enterprise", "2018-11-01", "DisableUser") +{ + setMethod(HttpRequest::Method::Post); +} + +DisableUserRequest::~DisableUserRequest() +{} + +long DisableUserRequest::getUid()const +{ + return uid_; +} + +void DisableUserRequest::setUid(long uid) +{ + uid_ = uid; + setParameter("Uid", std::to_string(uid)); +} + +long DisableUserRequest::getTid()const +{ + return tid_; +} + +void DisableUserRequest::setTid(long tid) +{ + tid_ = tid; + setParameter("Tid", std::to_string(tid)); +} + diff --git a/dms-enterprise/src/model/DisableUserResult.cc b/dms-enterprise/src/model/DisableUserResult.cc new file mode 100644 index 000000000..a4d24c550 --- /dev/null +++ b/dms-enterprise/src/model/DisableUserResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +DisableUserResult::DisableUserResult() : + ServiceResult() +{} + +DisableUserResult::DisableUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DisableUserResult::~DisableUserResult() +{} + +void DisableUserResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string DisableUserResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DisableUserResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool DisableUserResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/EnableUserRequest.cc b/dms-enterprise/src/model/EnableUserRequest.cc new file mode 100644 index 000000000..1879d5d14 --- /dev/null +++ b/dms-enterprise/src/model/EnableUserRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::EnableUserRequest; + +EnableUserRequest::EnableUserRequest() : + RpcServiceRequest("dms-enterprise", "2018-11-01", "EnableUser") +{ + setMethod(HttpRequest::Method::Post); +} + +EnableUserRequest::~EnableUserRequest() +{} + +long EnableUserRequest::getUid()const +{ + return uid_; +} + +void EnableUserRequest::setUid(long uid) +{ + uid_ = uid; + setParameter("Uid", std::to_string(uid)); +} + +long EnableUserRequest::getTid()const +{ + return tid_; +} + +void EnableUserRequest::setTid(long tid) +{ + tid_ = tid; + setParameter("Tid", std::to_string(tid)); +} + diff --git a/dms-enterprise/src/model/EnableUserResult.cc b/dms-enterprise/src/model/EnableUserResult.cc new file mode 100644 index 000000000..1af4a503e --- /dev/null +++ b/dms-enterprise/src/model/EnableUserResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +EnableUserResult::EnableUserResult() : + ServiceResult() +{} + +EnableUserResult::EnableUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +EnableUserResult::~EnableUserResult() +{} + +void EnableUserResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string EnableUserResult::getErrorCode()const +{ + return errorCode_; +} + +std::string EnableUserResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool EnableUserResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/ExecuteDataCorrectRequest.cc b/dms-enterprise/src/model/ExecuteDataCorrectRequest.cc new file mode 100644 index 000000000..2aa28e599 --- /dev/null +++ b/dms-enterprise/src/model/ExecuteDataCorrectRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::ExecuteDataCorrectRequest; + +ExecuteDataCorrectRequest::ExecuteDataCorrectRequest() : + RpcServiceRequest("dms-enterprise", "2018-11-01", "ExecuteDataCorrect") +{ + setMethod(HttpRequest::Method::Post); +} + +ExecuteDataCorrectRequest::~ExecuteDataCorrectRequest() +{} + +std::map ExecuteDataCorrectRequest::getActionDetail()const +{ + return actionDetail_; +} + +void ExecuteDataCorrectRequest::setActionDetail(const std::map& actionDetail) +{ + actionDetail_ = actionDetail; + setJsonParameters("ActionDetail", actionDetail); +} + +long ExecuteDataCorrectRequest::getOrderId()const +{ + return orderId_; +} + +void ExecuteDataCorrectRequest::setOrderId(long orderId) +{ + orderId_ = orderId; + setParameter("OrderId", std::to_string(orderId)); +} + +std::string ExecuteDataCorrectRequest::getActionName()const +{ + return actionName_; +} + +void ExecuteDataCorrectRequest::setActionName(const std::string& actionName) +{ + actionName_ = actionName; + setParameter("ActionName", actionName); +} + +std::string ExecuteDataCorrectRequest::getTid()const +{ + return tid_; +} + +void ExecuteDataCorrectRequest::setTid(const std::string& tid) +{ + tid_ = tid; + setParameter("Tid", tid); +} + diff --git a/dms-enterprise/src/model/ExecuteDataCorrectResult.cc b/dms-enterprise/src/model/ExecuteDataCorrectResult.cc new file mode 100644 index 000000000..71cda7d81 --- /dev/null +++ b/dms-enterprise/src/model/ExecuteDataCorrectResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +ExecuteDataCorrectResult::ExecuteDataCorrectResult() : + ServiceResult() +{} + +ExecuteDataCorrectResult::ExecuteDataCorrectResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ExecuteDataCorrectResult::~ExecuteDataCorrectResult() +{} + +void ExecuteDataCorrectResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string ExecuteDataCorrectResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ExecuteDataCorrectResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ExecuteDataCorrectResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/ExecuteDataExportRequest.cc b/dms-enterprise/src/model/ExecuteDataExportRequest.cc new file mode 100644 index 000000000..1c7f8c1c3 --- /dev/null +++ b/dms-enterprise/src/model/ExecuteDataExportRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::ExecuteDataExportRequest; + +ExecuteDataExportRequest::ExecuteDataExportRequest() : + RpcServiceRequest("dms-enterprise", "2018-11-01", "ExecuteDataExport") +{ + setMethod(HttpRequest::Method::Post); +} + +ExecuteDataExportRequest::~ExecuteDataExportRequest() +{} + +std::map ExecuteDataExportRequest::getActionDetail()const +{ + return actionDetail_; +} + +void ExecuteDataExportRequest::setActionDetail(const std::map& actionDetail) +{ + actionDetail_ = actionDetail; + setJsonParameters("ActionDetail", actionDetail); +} + +long ExecuteDataExportRequest::getOrderId()const +{ + return orderId_; +} + +void ExecuteDataExportRequest::setOrderId(long orderId) +{ + orderId_ = orderId; + setParameter("OrderId", std::to_string(orderId)); +} + +std::string ExecuteDataExportRequest::getActionName()const +{ + return actionName_; +} + +void ExecuteDataExportRequest::setActionName(const std::string& actionName) +{ + actionName_ = actionName; + setParameter("ActionName", actionName); +} + +long ExecuteDataExportRequest::getTid()const +{ + return tid_; +} + +void ExecuteDataExportRequest::setTid(long tid) +{ + tid_ = tid; + setParameter("Tid", std::to_string(tid)); +} + diff --git a/dms-enterprise/src/model/ExecuteDataExportResult.cc b/dms-enterprise/src/model/ExecuteDataExportResult.cc new file mode 100644 index 000000000..50e6e4d74 --- /dev/null +++ b/dms-enterprise/src/model/ExecuteDataExportResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +ExecuteDataExportResult::ExecuteDataExportResult() : + ServiceResult() +{} + +ExecuteDataExportResult::ExecuteDataExportResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ExecuteDataExportResult::~ExecuteDataExportResult() +{} + +void ExecuteDataExportResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string ExecuteDataExportResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ExecuteDataExportResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ExecuteDataExportResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/GetApprovalDetailRequest.cc b/dms-enterprise/src/model/GetApprovalDetailRequest.cc new file mode 100644 index 000000000..9e9a6080f --- /dev/null +++ b/dms-enterprise/src/model/GetApprovalDetailRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::GetApprovalDetailRequest; + +GetApprovalDetailRequest::GetApprovalDetailRequest() : + RpcServiceRequest("dms-enterprise", "2018-11-01", "GetApprovalDetail") +{ + setMethod(HttpRequest::Method::Get); +} + +GetApprovalDetailRequest::~GetApprovalDetailRequest() +{} + +long GetApprovalDetailRequest::getTid()const +{ + return tid_; +} + +void GetApprovalDetailRequest::setTid(long tid) +{ + tid_ = tid; + setParameter("Tid", std::to_string(tid)); +} + +long GetApprovalDetailRequest::getWorkflowInstanceId()const +{ + return workflowInstanceId_; +} + +void GetApprovalDetailRequest::setWorkflowInstanceId(long workflowInstanceId) +{ + workflowInstanceId_ = workflowInstanceId; + setParameter("WorkflowInstanceId", std::to_string(workflowInstanceId)); +} + diff --git a/dms-enterprise/src/model/GetApprovalDetailResult.cc b/dms-enterprise/src/model/GetApprovalDetailResult.cc new file mode 100644 index 000000000..154637ffc --- /dev/null +++ b/dms-enterprise/src/model/GetApprovalDetailResult.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +GetApprovalDetailResult::GetApprovalDetailResult() : + ServiceResult() +{} + +GetApprovalDetailResult::GetApprovalDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetApprovalDetailResult::~GetApprovalDetailResult() +{} + +void GetApprovalDetailResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto approvalDetailNode = value["ApprovalDetail"]; + if(!approvalDetailNode["AuditId"].isNull()) + approvalDetail_.auditId = std::stol(approvalDetailNode["AuditId"].asString()); + if(!approvalDetailNode["OrderId"].isNull()) + approvalDetail_.orderId = std::stol(approvalDetailNode["OrderId"].asString()); + if(!approvalDetailNode["OrderType"].isNull()) + approvalDetail_.orderType = approvalDetailNode["OrderType"].asString(); + if(!approvalDetailNode["Title"].isNull()) + approvalDetail_.title = approvalDetailNode["Title"].asString(); + if(!approvalDetailNode["WorkflowInsCode"].isNull()) + approvalDetail_.workflowInsCode = approvalDetailNode["WorkflowInsCode"].asString(); + if(!approvalDetailNode["Description"].isNull()) + approvalDetail_.description = approvalDetailNode["Description"].asString(); + auto allWorkflowNodesNode = approvalDetailNode["WorkflowNodes"]["WorkflowNode"]; + for (auto approvalDetailNodeWorkflowNodesWorkflowNode : allWorkflowNodesNode) + { + ApprovalDetail::WorkflowNode workflowNodeObject; + if(!approvalDetailNodeWorkflowNodesWorkflowNode["NodeName"].isNull()) + workflowNodeObject.nodeName = approvalDetailNodeWorkflowNodesWorkflowNode["NodeName"].asString(); + if(!approvalDetailNodeWorkflowNodesWorkflowNode["OperateComment"].isNull()) + workflowNodeObject.operateComment = approvalDetailNodeWorkflowNodesWorkflowNode["OperateComment"].asString(); + if(!approvalDetailNodeWorkflowNodesWorkflowNode["OperateTime"].isNull()) + workflowNodeObject.operateTime = approvalDetailNodeWorkflowNodesWorkflowNode["OperateTime"].asString(); + if(!approvalDetailNodeWorkflowNodesWorkflowNode["OperatorId"].isNull()) + workflowNodeObject.operatorId = std::stol(approvalDetailNodeWorkflowNodesWorkflowNode["OperatorId"].asString()); + if(!approvalDetailNodeWorkflowNodesWorkflowNode["WorkflowInsCode"].isNull()) + workflowNodeObject.workflowInsCode = approvalDetailNodeWorkflowNodesWorkflowNode["WorkflowInsCode"].asString(); + auto allAuditUserIdList = value["AuditUserIdList"]["AuditUserIds"]; + for (auto value : allAuditUserIdList) + workflowNodeObject.auditUserIdList.push_back(value.asString()); + approvalDetail_.workflowNodes.push_back(workflowNodeObject); + } + auto allCurrentHandlersNode = approvalDetailNode["CurrentHandlers"]["CurrentHandler"]; + for (auto approvalDetailNodeCurrentHandlersCurrentHandler : allCurrentHandlersNode) + { + ApprovalDetail::CurrentHandler currentHandlerObject; + if(!approvalDetailNodeCurrentHandlersCurrentHandler["Id"].isNull()) + currentHandlerObject.id = std::stol(approvalDetailNodeCurrentHandlersCurrentHandler["Id"].asString()); + if(!approvalDetailNodeCurrentHandlersCurrentHandler["NickName"].isNull()) + currentHandlerObject.nickName = approvalDetailNodeCurrentHandlersCurrentHandler["NickName"].asString(); + approvalDetail_.currentHandlers.push_back(currentHandlerObject); + } + auto allReasonList = approvalDetailNode["ReasonList"]["Reasons"]; + for (auto value : allReasonList) + approvalDetail_.reasonList.push_back(value.asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string GetApprovalDetailResult::getErrorCode()const +{ + return errorCode_; +} + +GetApprovalDetailResult::ApprovalDetail GetApprovalDetailResult::getApprovalDetail()const +{ + return approvalDetail_; +} + +std::string GetApprovalDetailResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetApprovalDetailResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/GetDataCorrectBackupFilesRequest.cc b/dms-enterprise/src/model/GetDataCorrectBackupFilesRequest.cc new file mode 100644 index 000000000..e574c309c --- /dev/null +++ b/dms-enterprise/src/model/GetDataCorrectBackupFilesRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::GetDataCorrectBackupFilesRequest; + +GetDataCorrectBackupFilesRequest::GetDataCorrectBackupFilesRequest() : + RpcServiceRequest("dms-enterprise", "2018-11-01", "GetDataCorrectBackupFiles") +{ + setMethod(HttpRequest::Method::Post); +} + +GetDataCorrectBackupFilesRequest::~GetDataCorrectBackupFilesRequest() +{} + +std::map GetDataCorrectBackupFilesRequest::getActionDetail()const +{ + return actionDetail_; +} + +void GetDataCorrectBackupFilesRequest::setActionDetail(const std::map& actionDetail) +{ + actionDetail_ = actionDetail; + setJsonParameters("ActionDetail", actionDetail); +} + +long GetDataCorrectBackupFilesRequest::getOrderId()const +{ + return orderId_; +} + +void GetDataCorrectBackupFilesRequest::setOrderId(long orderId) +{ + orderId_ = orderId; + setParameter("OrderId", std::to_string(orderId)); +} + +std::string GetDataCorrectBackupFilesRequest::getActionName()const +{ + return actionName_; +} + +void GetDataCorrectBackupFilesRequest::setActionName(const std::string& actionName) +{ + actionName_ = actionName; + setParameter("ActionName", actionName); +} + +long GetDataCorrectBackupFilesRequest::getTid()const +{ + return tid_; +} + +void GetDataCorrectBackupFilesRequest::setTid(long tid) +{ + tid_ = tid; + setParameter("Tid", std::to_string(tid)); +} + diff --git a/dms-enterprise/src/model/GetDataCorrectBackupFilesResult.cc b/dms-enterprise/src/model/GetDataCorrectBackupFilesResult.cc new file mode 100644 index 000000000..cbec9591f --- /dev/null +++ b/dms-enterprise/src/model/GetDataCorrectBackupFilesResult.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +GetDataCorrectBackupFilesResult::GetDataCorrectBackupFilesResult() : + ServiceResult() +{} + +GetDataCorrectBackupFilesResult::GetDataCorrectBackupFilesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetDataCorrectBackupFilesResult::~GetDataCorrectBackupFilesResult() +{} + +void GetDataCorrectBackupFilesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataCorrectBackupFiles = value["DataCorrectBackupFiles"]["FileUrl"]; + for (const auto &item : allDataCorrectBackupFiles) + dataCorrectBackupFiles_.push_back(item.asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string GetDataCorrectBackupFilesResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetDataCorrectBackupFilesResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::vector GetDataCorrectBackupFilesResult::getDataCorrectBackupFiles()const +{ + return dataCorrectBackupFiles_; +} + +bool GetDataCorrectBackupFilesResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/GetDataCorrectOrderDetailRequest.cc b/dms-enterprise/src/model/GetDataCorrectOrderDetailRequest.cc new file mode 100644 index 000000000..d0ef59e16 --- /dev/null +++ b/dms-enterprise/src/model/GetDataCorrectOrderDetailRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::GetDataCorrectOrderDetailRequest; + +GetDataCorrectOrderDetailRequest::GetDataCorrectOrderDetailRequest() : + RpcServiceRequest("dms-enterprise", "2018-11-01", "GetDataCorrectOrderDetail") +{ + setMethod(HttpRequest::Method::Post); +} + +GetDataCorrectOrderDetailRequest::~GetDataCorrectOrderDetailRequest() +{} + +long GetDataCorrectOrderDetailRequest::getOrderId()const +{ + return orderId_; +} + +void GetDataCorrectOrderDetailRequest::setOrderId(long orderId) +{ + orderId_ = orderId; + setParameter("OrderId", std::to_string(orderId)); +} + +long GetDataCorrectOrderDetailRequest::getTid()const +{ + return tid_; +} + +void GetDataCorrectOrderDetailRequest::setTid(long tid) +{ + tid_ = tid; + setParameter("Tid", std::to_string(tid)); +} + diff --git a/dms-enterprise/src/model/GetDataCorrectOrderDetailResult.cc b/dms-enterprise/src/model/GetDataCorrectOrderDetailResult.cc new file mode 100644 index 000000000..7c8fa5128 --- /dev/null +++ b/dms-enterprise/src/model/GetDataCorrectOrderDetailResult.cc @@ -0,0 +1,122 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +GetDataCorrectOrderDetailResult::GetDataCorrectOrderDetailResult() : + ServiceResult() +{} + +GetDataCorrectOrderDetailResult::GetDataCorrectOrderDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetDataCorrectOrderDetailResult::~GetDataCorrectOrderDetailResult() +{} + +void GetDataCorrectOrderDetailResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataCorrectOrderDetailNode = value["DataCorrectOrderDetail"]; + auto allPreCheckDetailNode = dataCorrectOrderDetailNode["PreCheckDetail"]["TaskCheckDO"]; + for (auto dataCorrectOrderDetailNodePreCheckDetailTaskCheckDO : allPreCheckDetailNode) + { + DataCorrectOrderDetail::TaskCheckDO taskCheckDOObject; + if(!dataCorrectOrderDetailNodePreCheckDetailTaskCheckDO["CheckStatus"].isNull()) + taskCheckDOObject.checkStatus = dataCorrectOrderDetailNodePreCheckDetailTaskCheckDO["CheckStatus"].asString(); + if(!dataCorrectOrderDetailNodePreCheckDetailTaskCheckDO["CheckStep"].isNull()) + taskCheckDOObject.checkStep = dataCorrectOrderDetailNodePreCheckDetailTaskCheckDO["CheckStep"].asString(); + if(!dataCorrectOrderDetailNodePreCheckDetailTaskCheckDO["UserTip"].isNull()) + taskCheckDOObject.userTip = dataCorrectOrderDetailNodePreCheckDetailTaskCheckDO["UserTip"].asString(); + dataCorrectOrderDetail_.preCheckDetail.push_back(taskCheckDOObject); + } + auto allDatabaseListNode = dataCorrectOrderDetailNode["DatabaseList"]["Database"]; + for (auto dataCorrectOrderDetailNodeDatabaseListDatabase : allDatabaseListNode) + { + DataCorrectOrderDetail::Database databaseObject; + if(!dataCorrectOrderDetailNodeDatabaseListDatabase["SearchName"].isNull()) + databaseObject.searchName = dataCorrectOrderDetailNodeDatabaseListDatabase["SearchName"].asString(); + if(!dataCorrectOrderDetailNodeDatabaseListDatabase["EnvType"].isNull()) + databaseObject.envType = dataCorrectOrderDetailNodeDatabaseListDatabase["EnvType"].asString(); + if(!dataCorrectOrderDetailNodeDatabaseListDatabase["DbType"].isNull()) + databaseObject.dbType = dataCorrectOrderDetailNodeDatabaseListDatabase["DbType"].asString(); + if(!dataCorrectOrderDetailNodeDatabaseListDatabase["DbId"].isNull()) + databaseObject.dbId = std::stoi(dataCorrectOrderDetailNodeDatabaseListDatabase["DbId"].asString()); + if(!dataCorrectOrderDetailNodeDatabaseListDatabase["Logic"].isNull()) + databaseObject.logic = dataCorrectOrderDetailNodeDatabaseListDatabase["Logic"].asString() == "true"; + dataCorrectOrderDetail_.databaseList.push_back(databaseObject); + } + auto orderDetailNode = dataCorrectOrderDetailNode["OrderDetail"]; + if(!orderDetailNode["Classify"].isNull()) + dataCorrectOrderDetail_.orderDetail.classify = orderDetailNode["Classify"].asString(); + if(!orderDetailNode["EstimateAffectRows"].isNull()) + dataCorrectOrderDetail_.orderDetail.estimateAffectRows = std::stol(orderDetailNode["EstimateAffectRows"].asString()); + if(!orderDetailNode["ActualAffectRows"].isNull()) + dataCorrectOrderDetail_.orderDetail.actualAffectRows = std::stol(orderDetailNode["ActualAffectRows"].asString()); + if(!orderDetailNode["IgnoreAffectRows"].isNull()) + dataCorrectOrderDetail_.orderDetail.ignoreAffectRows = orderDetailNode["IgnoreAffectRows"].asString() == "true"; + if(!orderDetailNode["IgnoreAffectRowsReason"].isNull()) + dataCorrectOrderDetail_.orderDetail.ignoreAffectRowsReason = orderDetailNode["IgnoreAffectRowsReason"].asString(); + if(!orderDetailNode["SqlType"].isNull()) + dataCorrectOrderDetail_.orderDetail.sqlType = orderDetailNode["SqlType"].asString(); + if(!orderDetailNode["ExeSQL"].isNull()) + dataCorrectOrderDetail_.orderDetail.exeSQL = orderDetailNode["ExeSQL"].asString(); + if(!orderDetailNode["AttachmentName"].isNull()) + dataCorrectOrderDetail_.orderDetail.attachmentName = orderDetailNode["AttachmentName"].asString(); + if(!orderDetailNode["RbSQLType"].isNull()) + dataCorrectOrderDetail_.orderDetail.rbSQLType = orderDetailNode["RbSQLType"].asString(); + if(!orderDetailNode["RbSQL"].isNull()) + dataCorrectOrderDetail_.orderDetail.rbSQL = orderDetailNode["RbSQL"].asString(); + if(!orderDetailNode["RbAttachmentName"].isNull()) + dataCorrectOrderDetail_.orderDetail.rbAttachmentName = orderDetailNode["RbAttachmentName"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +GetDataCorrectOrderDetailResult::DataCorrectOrderDetail GetDataCorrectOrderDetailResult::getDataCorrectOrderDetail()const +{ + return dataCorrectOrderDetail_; +} + +std::string GetDataCorrectOrderDetailResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetDataCorrectOrderDetailResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetDataCorrectOrderDetailResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/GetDataExportDownloadURLRequest.cc b/dms-enterprise/src/model/GetDataExportDownloadURLRequest.cc new file mode 100644 index 000000000..6b3111306 --- /dev/null +++ b/dms-enterprise/src/model/GetDataExportDownloadURLRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::GetDataExportDownloadURLRequest; + +GetDataExportDownloadURLRequest::GetDataExportDownloadURLRequest() : + RpcServiceRequest("dms-enterprise", "2018-11-01", "GetDataExportDownloadURL") +{ + setMethod(HttpRequest::Method::Post); +} + +GetDataExportDownloadURLRequest::~GetDataExportDownloadURLRequest() +{} + +long GetDataExportDownloadURLRequest::getOrderId()const +{ + return orderId_; +} + +void GetDataExportDownloadURLRequest::setOrderId(long orderId) +{ + orderId_ = orderId; + setParameter("OrderId", std::to_string(orderId)); +} + +std::string GetDataExportDownloadURLRequest::getActionName()const +{ + return actionName_; +} + +void GetDataExportDownloadURLRequest::setActionName(const std::string& actionName) +{ + actionName_ = actionName; + setParameter("ActionName", actionName); +} + +long GetDataExportDownloadURLRequest::getTid()const +{ + return tid_; +} + +void GetDataExportDownloadURLRequest::setTid(long tid) +{ + tid_ = tid; + setParameter("Tid", std::to_string(tid)); +} + diff --git a/dms-enterprise/src/model/GetDataExportDownloadURLResult.cc b/dms-enterprise/src/model/GetDataExportDownloadURLResult.cc new file mode 100644 index 000000000..edab152f5 --- /dev/null +++ b/dms-enterprise/src/model/GetDataExportDownloadURLResult.cc @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +GetDataExportDownloadURLResult::GetDataExportDownloadURLResult() : + ServiceResult() +{} + +GetDataExportDownloadURLResult::GetDataExportDownloadURLResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetDataExportDownloadURLResult::~GetDataExportDownloadURLResult() +{} + +void GetDataExportDownloadURLResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto downloadURLResultNode = value["DownloadURLResult"]; + if(!downloadURLResultNode["HasResult"].isNull()) + downloadURLResult_.hasResult = downloadURLResultNode["HasResult"].asString() == "true"; + if(!downloadURLResultNode["URL"].isNull()) + downloadURLResult_.uRL = downloadURLResultNode["URL"].asString(); + if(!downloadURLResultNode["TipMessage"].isNull()) + downloadURLResult_.tipMessage = downloadURLResultNode["TipMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +GetDataExportDownloadURLResult::DownloadURLResult GetDataExportDownloadURLResult::getDownloadURLResult()const +{ + return downloadURLResult_; +} + +std::string GetDataExportDownloadURLResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetDataExportDownloadURLResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetDataExportDownloadURLResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/GetDataExportOrderDetailRequest.cc b/dms-enterprise/src/model/GetDataExportOrderDetailRequest.cc new file mode 100644 index 000000000..2c78f531e --- /dev/null +++ b/dms-enterprise/src/model/GetDataExportOrderDetailRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::GetDataExportOrderDetailRequest; + +GetDataExportOrderDetailRequest::GetDataExportOrderDetailRequest() : + RpcServiceRequest("dms-enterprise", "2018-11-01", "GetDataExportOrderDetail") +{ + setMethod(HttpRequest::Method::Post); +} + +GetDataExportOrderDetailRequest::~GetDataExportOrderDetailRequest() +{} + +long GetDataExportOrderDetailRequest::getOrderId()const +{ + return orderId_; +} + +void GetDataExportOrderDetailRequest::setOrderId(long orderId) +{ + orderId_ = orderId; + setBodyParameter("OrderId", std::to_string(orderId)); +} + +long GetDataExportOrderDetailRequest::getTid()const +{ + return tid_; +} + +void GetDataExportOrderDetailRequest::setTid(long tid) +{ + tid_ = tid; + setParameter("Tid", std::to_string(tid)); +} + diff --git a/dms-enterprise/src/model/GetDataExportOrderDetailResult.cc b/dms-enterprise/src/model/GetDataExportOrderDetailResult.cc new file mode 100644 index 000000000..64490cb25 --- /dev/null +++ b/dms-enterprise/src/model/GetDataExportOrderDetailResult.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +GetDataExportOrderDetailResult::GetDataExportOrderDetailResult() : + ServiceResult() +{} + +GetDataExportOrderDetailResult::GetDataExportOrderDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetDataExportOrderDetailResult::~GetDataExportOrderDetailResult() +{} + +void GetDataExportOrderDetailResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataExportOrderDetailNode = value["DataExportOrderDetail"]; + auto orderDetailNode = dataExportOrderDetailNode["OrderDetail"]; + if(!orderDetailNode["ActualAffectRows"].isNull()) + dataExportOrderDetail_.orderDetail.actualAffectRows = std::stol(orderDetailNode["ActualAffectRows"].asString()); + if(!orderDetailNode["Classify"].isNull()) + dataExportOrderDetail_.orderDetail.classify = orderDetailNode["Classify"].asString(); + if(!orderDetailNode["Database"].isNull()) + dataExportOrderDetail_.orderDetail.database = orderDetailNode["Database"].asString(); + if(!orderDetailNode["DbId"].isNull()) + dataExportOrderDetail_.orderDetail.dbId = std::stoi(orderDetailNode["DbId"].asString()); + if(!orderDetailNode["EnvType"].isNull()) + dataExportOrderDetail_.orderDetail.envType = orderDetailNode["EnvType"].asString(); + if(!orderDetailNode["ExeSQL"].isNull()) + dataExportOrderDetail_.orderDetail.exeSQL = orderDetailNode["ExeSQL"].asString(); + if(!orderDetailNode["IgnoreAffectRows"].isNull()) + dataExportOrderDetail_.orderDetail.ignoreAffectRows = orderDetailNode["IgnoreAffectRows"].asString() == "true"; + if(!orderDetailNode["IgnoreAffectRowsReason"].isNull()) + dataExportOrderDetail_.orderDetail.ignoreAffectRowsReason = orderDetailNode["IgnoreAffectRowsReason"].asString(); + if(!orderDetailNode["Logic"].isNull()) + dataExportOrderDetail_.orderDetail.logic = orderDetailNode["Logic"].asString() == "true"; + auto keyInfoNode = dataExportOrderDetailNode["KeyInfo"]; + if(!keyInfoNode["JobStatus"].isNull()) + dataExportOrderDetail_.keyInfo.jobStatus = keyInfoNode["JobStatus"].asString(); + if(!keyInfoNode["PreCheckId"].isNull()) + dataExportOrderDetail_.keyInfo.preCheckId = std::stol(keyInfoNode["PreCheckId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +GetDataExportOrderDetailResult::DataExportOrderDetail GetDataExportOrderDetailResult::getDataExportOrderDetail()const +{ + return dataExportOrderDetail_; +} + +std::string GetDataExportOrderDetailResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetDataExportOrderDetailResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetDataExportOrderDetailResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/GetDatabaseRequest.cc b/dms-enterprise/src/model/GetDatabaseRequest.cc new file mode 100644 index 000000000..290dd73e9 --- /dev/null +++ b/dms-enterprise/src/model/GetDatabaseRequest.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::GetDatabaseRequest; + +GetDatabaseRequest::GetDatabaseRequest() : + RpcServiceRequest("dms-enterprise", "2018-11-01", "GetDatabase") +{ + setMethod(HttpRequest::Method::Get); +} + +GetDatabaseRequest::~GetDatabaseRequest() +{} + +std::string GetDatabaseRequest::getSchemaName()const +{ + return schemaName_; +} + +void GetDatabaseRequest::setSchemaName(const std::string& schemaName) +{ + schemaName_ = schemaName; + setParameter("SchemaName", schemaName); +} + +int GetDatabaseRequest::getPort()const +{ + return port_; +} + +void GetDatabaseRequest::setPort(int port) +{ + port_ = port; + setParameter("Port", std::to_string(port)); +} + +std::string GetDatabaseRequest::getHost()const +{ + return host_; +} + +void GetDatabaseRequest::setHost(const std::string& host) +{ + host_ = host; + setParameter("Host", host); +} + +long GetDatabaseRequest::getTid()const +{ + return tid_; +} + +void GetDatabaseRequest::setTid(long tid) +{ + tid_ = tid; + setParameter("Tid", std::to_string(tid)); +} + +std::string GetDatabaseRequest::getSid()const +{ + return sid_; +} + +void GetDatabaseRequest::setSid(const std::string& sid) +{ + sid_ = sid; + setParameter("Sid", sid); +} + diff --git a/dms-enterprise/src/model/GetDatabaseResult.cc b/dms-enterprise/src/model/GetDatabaseResult.cc new file mode 100644 index 000000000..3f05d1ad1 --- /dev/null +++ b/dms-enterprise/src/model/GetDatabaseResult.cc @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +GetDatabaseResult::GetDatabaseResult() : + ServiceResult() +{} + +GetDatabaseResult::GetDatabaseResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetDatabaseResult::~GetDatabaseResult() +{} + +void GetDatabaseResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto databaseNode = value["Database"]; + if(!databaseNode["InstanceId"].isNull()) + database_.instanceId = databaseNode["InstanceId"].asString(); + if(!databaseNode["DatabaseId"].isNull()) + database_.databaseId = databaseNode["DatabaseId"].asString(); + if(!databaseNode["EnvType"].isNull()) + database_.envType = databaseNode["EnvType"].asString(); + if(!databaseNode["SchemaName"].isNull()) + database_.schemaName = databaseNode["SchemaName"].asString(); + if(!databaseNode["CatalogName"].isNull()) + database_.catalogName = databaseNode["CatalogName"].asString(); + if(!databaseNode["Encoding"].isNull()) + database_.encoding = databaseNode["Encoding"].asString(); + if(!databaseNode["SearchName"].isNull()) + database_.searchName = databaseNode["SearchName"].asString(); + if(!databaseNode["State"].isNull()) + database_.state = databaseNode["State"].asString(); + if(!databaseNode["DbType"].isNull()) + database_.dbType = databaseNode["DbType"].asString(); + if(!databaseNode["Host"].isNull()) + database_.host = databaseNode["Host"].asString(); + if(!databaseNode["Port"].isNull()) + database_.port = std::stoi(databaseNode["Port"].asString()); + if(!databaseNode["Sid"].isNull()) + database_.sid = databaseNode["Sid"].asString(); + if(!databaseNode["DbaName"].isNull()) + database_.dbaName = databaseNode["DbaName"].asString(); + if(!databaseNode["DbaId"].isNull()) + database_.dbaId = databaseNode["DbaId"].asString(); + auto allOwnerIdList = databaseNode["OwnerIdList"]["OwnerIds"]; + for (auto value : allOwnerIdList) + database_.ownerIdList.push_back(value.asString()); + auto allOwnerNameList = databaseNode["OwnerNameList"]["OwnerNames"]; + for (auto value : allOwnerNameList) + database_.ownerNameList.push_back(value.asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +GetDatabaseResult::Database GetDatabaseResult::getDatabase()const +{ + return database_; +} + +std::string GetDatabaseResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetDatabaseResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetDatabaseResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/GetInstanceRequest.cc b/dms-enterprise/src/model/GetInstanceRequest.cc new file mode 100644 index 000000000..bcfdbda1d --- /dev/null +++ b/dms-enterprise/src/model/GetInstanceRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::GetInstanceRequest; + +GetInstanceRequest::GetInstanceRequest() : + RpcServiceRequest("dms-enterprise", "2018-11-01", "GetInstance") +{ + setMethod(HttpRequest::Method::Get); +} + +GetInstanceRequest::~GetInstanceRequest() +{} + +int GetInstanceRequest::getPort()const +{ + return port_; +} + +void GetInstanceRequest::setPort(int port) +{ + port_ = port; + setParameter("Port", std::to_string(port)); +} + +std::string GetInstanceRequest::getHost()const +{ + return host_; +} + +void GetInstanceRequest::setHost(const std::string& host) +{ + host_ = host; + setParameter("Host", host); +} + +long GetInstanceRequest::getTid()const +{ + return tid_; +} + +void GetInstanceRequest::setTid(long tid) +{ + tid_ = tid; + setParameter("Tid", std::to_string(tid)); +} + +std::string GetInstanceRequest::getSid()const +{ + return sid_; +} + +void GetInstanceRequest::setSid(const std::string& sid) +{ + sid_ = sid; + setParameter("Sid", sid); +} + diff --git a/dms-enterprise/src/model/GetInstanceResult.cc b/dms-enterprise/src/model/GetInstanceResult.cc new file mode 100644 index 000000000..cbd9d0ae0 --- /dev/null +++ b/dms-enterprise/src/model/GetInstanceResult.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +GetInstanceResult::GetInstanceResult() : + ServiceResult() +{} + +GetInstanceResult::GetInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetInstanceResult::~GetInstanceResult() +{} + +void GetInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto instanceNode = value["Instance"]; + if(!instanceNode["InstanceId"].isNull()) + instance_.instanceId = instanceNode["InstanceId"].asString(); + if(!instanceNode["InstanceType"].isNull()) + instance_.instanceType = instanceNode["InstanceType"].asString(); + if(!instanceNode["EnvType"].isNull()) + instance_.envType = instanceNode["EnvType"].asString(); + if(!instanceNode["Host"].isNull()) + instance_.host = instanceNode["Host"].asString(); + if(!instanceNode["Port"].isNull()) + instance_.port = std::stoi(instanceNode["Port"].asString()); + if(!instanceNode["Sid"].isNull()) + instance_.sid = instanceNode["Sid"].asString(); + if(!instanceNode["InstanceAlias"].isNull()) + instance_.instanceAlias = instanceNode["InstanceAlias"].asString(); + if(!instanceNode["DataLinkName"].isNull()) + instance_.dataLinkName = instanceNode["DataLinkName"].asString(); + if(!instanceNode["DbaNickName"].isNull()) + instance_.dbaNickName = instanceNode["DbaNickName"].asString(); + if(!instanceNode["SafeRuleId"].isNull()) + instance_.safeRuleId = instanceNode["SafeRuleId"].asString(); + if(!instanceNode["QueryTimeout"].isNull()) + instance_.queryTimeout = std::stoi(instanceNode["QueryTimeout"].asString()); + if(!instanceNode["ExportTimeout"].isNull()) + instance_.exportTimeout = std::stoi(instanceNode["ExportTimeout"].asString()); + if(!instanceNode["State"].isNull()) + instance_.state = instanceNode["State"].asString(); + if(!instanceNode["DbaId"].isNull()) + instance_.dbaId = instanceNode["DbaId"].asString(); + if(!instanceNode["DdlOnline"].isNull()) + instance_.ddlOnline = std::stoi(instanceNode["DdlOnline"].asString()); + if(!instanceNode["UseDsql"].isNull()) + instance_.useDsql = std::stoi(instanceNode["UseDsql"].asString()); + if(!instanceNode["EcsInstanceId"].isNull()) + instance_.ecsInstanceId = instanceNode["EcsInstanceId"].asString(); + if(!instanceNode["VpcId"].isNull()) + instance_.vpcId = instanceNode["VpcId"].asString(); + if(!instanceNode["EcsRegion"].isNull()) + instance_.ecsRegion = instanceNode["EcsRegion"].asString(); + if(!instanceNode["DatabaseUser"].isNull()) + instance_.databaseUser = instanceNode["DatabaseUser"].asString(); + if(!instanceNode["DatabasePassword"].isNull()) + instance_.databasePassword = instanceNode["DatabasePassword"].asString(); + if(!instanceNode["InstanceSource"].isNull()) + instance_.instanceSource = instanceNode["InstanceSource"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +GetInstanceResult::Instance GetInstanceResult::getInstance()const +{ + return instance_; +} + +std::string GetInstanceResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetInstanceResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetInstanceResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/GetLogicDatabaseRequest.cc b/dms-enterprise/src/model/GetLogicDatabaseRequest.cc new file mode 100644 index 000000000..7d91a22a7 --- /dev/null +++ b/dms-enterprise/src/model/GetLogicDatabaseRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::GetLogicDatabaseRequest; + +GetLogicDatabaseRequest::GetLogicDatabaseRequest() : + RpcServiceRequest("dms-enterprise", "2018-11-01", "GetLogicDatabase") +{ + setMethod(HttpRequest::Method::Get); +} + +GetLogicDatabaseRequest::~GetLogicDatabaseRequest() +{} + +std::string GetLogicDatabaseRequest::getDbId()const +{ + return dbId_; +} + +void GetLogicDatabaseRequest::setDbId(const std::string& dbId) +{ + dbId_ = dbId; + setParameter("DbId", dbId); +} + +long GetLogicDatabaseRequest::getTid()const +{ + return tid_; +} + +void GetLogicDatabaseRequest::setTid(long tid) +{ + tid_ = tid; + setParameter("Tid", std::to_string(tid)); +} + diff --git a/dms-enterprise/src/model/GetLogicDatabaseResult.cc b/dms-enterprise/src/model/GetLogicDatabaseResult.cc new file mode 100644 index 000000000..9c29fc678 --- /dev/null +++ b/dms-enterprise/src/model/GetLogicDatabaseResult.cc @@ -0,0 +1,89 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +GetLogicDatabaseResult::GetLogicDatabaseResult() : + ServiceResult() +{} + +GetLogicDatabaseResult::GetLogicDatabaseResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetLogicDatabaseResult::~GetLogicDatabaseResult() +{} + +void GetLogicDatabaseResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto logicDatabaseNode = value["LogicDatabase"]; + if(!logicDatabaseNode["Logic"].isNull()) + logicDatabase_.logic = logicDatabaseNode["Logic"].asString() == "true"; + if(!logicDatabaseNode["EnvType"].isNull()) + logicDatabase_.envType = logicDatabaseNode["EnvType"].asString(); + if(!logicDatabaseNode["SchemaName"].isNull()) + logicDatabase_.schemaName = logicDatabaseNode["SchemaName"].asString(); + if(!logicDatabaseNode["SearchName"].isNull()) + logicDatabase_.searchName = logicDatabaseNode["SearchName"].asString(); + if(!logicDatabaseNode["DbType"].isNull()) + logicDatabase_.dbType = logicDatabaseNode["DbType"].asString(); + if(!logicDatabaseNode["DatabaseId"].isNull()) + logicDatabase_.databaseId = logicDatabaseNode["DatabaseId"].asString(); + auto allOwnerIdList = logicDatabaseNode["OwnerIdList"]["OwnerIds"]; + for (auto value : allOwnerIdList) + logicDatabase_.ownerIdList.push_back(value.asString()); + auto allOwnerNameList = logicDatabaseNode["OwnerNameList"]["OwnerNames"]; + for (auto value : allOwnerNameList) + logicDatabase_.ownerNameList.push_back(value.asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +GetLogicDatabaseResult::LogicDatabase GetLogicDatabaseResult::getLogicDatabase()const +{ + return logicDatabase_; +} + +std::string GetLogicDatabaseResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetLogicDatabaseResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetLogicDatabaseResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/GetOpLogRequest.cc b/dms-enterprise/src/model/GetOpLogRequest.cc new file mode 100644 index 000000000..5675dfe58 --- /dev/null +++ b/dms-enterprise/src/model/GetOpLogRequest.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::GetOpLogRequest; + +GetOpLogRequest::GetOpLogRequest() : + RpcServiceRequest("dms-enterprise", "2018-11-01", "GetOpLog") +{ + setMethod(HttpRequest::Method::Get); +} + +GetOpLogRequest::~GetOpLogRequest() +{} + +std::string GetOpLogRequest::getModule()const +{ + return module_; +} + +void GetOpLogRequest::setModule(const std::string& module) +{ + module_ = module; + setParameter("Module", module); +} + +int GetOpLogRequest::getPageSize()const +{ + return pageSize_; +} + +void GetOpLogRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string GetOpLogRequest::getEndTime()const +{ + return endTime_; +} + +void GetOpLogRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string GetOpLogRequest::getStartTime()const +{ + return startTime_; +} + +void GetOpLogRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +long GetOpLogRequest::getTid()const +{ + return tid_; +} + +void GetOpLogRequest::setTid(long tid) +{ + tid_ = tid; + setParameter("Tid", std::to_string(tid)); +} + +int GetOpLogRequest::getPageNumber()const +{ + return pageNumber_; +} + +void GetOpLogRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/dms-enterprise/src/model/GetOpLogResult.cc b/dms-enterprise/src/model/GetOpLogResult.cc new file mode 100644 index 000000000..0c4ea2aab --- /dev/null +++ b/dms-enterprise/src/model/GetOpLogResult.cc @@ -0,0 +1,97 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +GetOpLogResult::GetOpLogResult() : + ServiceResult() +{} + +GetOpLogResult::GetOpLogResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetOpLogResult::~GetOpLogResult() +{} + +void GetOpLogResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allOpLogDetailsNode = value["OpLogDetails"]["OpLogDetail"]; + for (auto valueOpLogDetailsOpLogDetail : allOpLogDetailsNode) + { + OpLogDetail opLogDetailsObject; + if(!valueOpLogDetailsOpLogDetail["UserId"].isNull()) + opLogDetailsObject.userId = std::stol(valueOpLogDetailsOpLogDetail["UserId"].asString()); + if(!valueOpLogDetailsOpLogDetail["UserNick"].isNull()) + opLogDetailsObject.userNick = valueOpLogDetailsOpLogDetail["UserNick"].asString(); + if(!valueOpLogDetailsOpLogDetail["Module"].isNull()) + opLogDetailsObject.module = valueOpLogDetailsOpLogDetail["Module"].asString(); + if(!valueOpLogDetailsOpLogDetail["OpContent"].isNull()) + opLogDetailsObject.opContent = valueOpLogDetailsOpLogDetail["OpContent"].asString(); + if(!valueOpLogDetailsOpLogDetail["OpTime"].isNull()) + opLogDetailsObject.opTime = valueOpLogDetailsOpLogDetail["OpTime"].asString(); + if(!valueOpLogDetailsOpLogDetail["Database"].isNull()) + opLogDetailsObject.database = valueOpLogDetailsOpLogDetail["Database"].asString(); + if(!valueOpLogDetailsOpLogDetail["OrderId"].isNull()) + opLogDetailsObject.orderId = std::stol(valueOpLogDetailsOpLogDetail["OrderId"].asString()); + opLogDetails_.push_back(opLogDetailsObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + +} + +long GetOpLogResult::getTotalCount()const +{ + return totalCount_; +} + +std::vector GetOpLogResult::getOpLogDetails()const +{ + return opLogDetails_; +} + +std::string GetOpLogResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetOpLogResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetOpLogResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/GetOrderBaseInfoRequest.cc b/dms-enterprise/src/model/GetOrderBaseInfoRequest.cc new file mode 100644 index 000000000..6149c9635 --- /dev/null +++ b/dms-enterprise/src/model/GetOrderBaseInfoRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::GetOrderBaseInfoRequest; + +GetOrderBaseInfoRequest::GetOrderBaseInfoRequest() : + RpcServiceRequest("dms-enterprise", "2018-11-01", "GetOrderBaseInfo") +{ + setMethod(HttpRequest::Method::Post); +} + +GetOrderBaseInfoRequest::~GetOrderBaseInfoRequest() +{} + +long GetOrderBaseInfoRequest::getOrderId()const +{ + return orderId_; +} + +void GetOrderBaseInfoRequest::setOrderId(long orderId) +{ + orderId_ = orderId; + setParameter("OrderId", std::to_string(orderId)); +} + +long GetOrderBaseInfoRequest::getTid()const +{ + return tid_; +} + +void GetOrderBaseInfoRequest::setTid(long tid) +{ + tid_ = tid; + setParameter("Tid", std::to_string(tid)); +} + diff --git a/dms-enterprise/src/model/GetOrderBaseInfoResult.cc b/dms-enterprise/src/model/GetOrderBaseInfoResult.cc new file mode 100644 index 000000000..209f9263b --- /dev/null +++ b/dms-enterprise/src/model/GetOrderBaseInfoResult.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +GetOrderBaseInfoResult::GetOrderBaseInfoResult() : + ServiceResult() +{} + +GetOrderBaseInfoResult::GetOrderBaseInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetOrderBaseInfoResult::~GetOrderBaseInfoResult() +{} + +void GetOrderBaseInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto orderBaseInfoNode = value["OrderBaseInfo"]; + if(!orderBaseInfoNode["Comment"].isNull()) + orderBaseInfo_.comment = orderBaseInfoNode["Comment"].asString(); + if(!orderBaseInfoNode["Committer"].isNull()) + orderBaseInfo_.committer = orderBaseInfoNode["Committer"].asString(); + if(!orderBaseInfoNode["CommitterId"].isNull()) + orderBaseInfo_.committerId = std::stol(orderBaseInfoNode["CommitterId"].asString()); + if(!orderBaseInfoNode["CreateTime"].isNull()) + orderBaseInfo_.createTime = orderBaseInfoNode["CreateTime"].asString(); + if(!orderBaseInfoNode["LastModifyTime"].isNull()) + orderBaseInfo_.lastModifyTime = orderBaseInfoNode["LastModifyTime"].asString(); + if(!orderBaseInfoNode["OrderId"].isNull()) + orderBaseInfo_.orderId = std::stol(orderBaseInfoNode["OrderId"].asString()); + if(!orderBaseInfoNode["PluginType"].isNull()) + orderBaseInfo_.pluginType = orderBaseInfoNode["PluginType"].asString(); + if(!orderBaseInfoNode["StatusCode"].isNull()) + orderBaseInfo_.statusCode = orderBaseInfoNode["StatusCode"].asString(); + if(!orderBaseInfoNode["StatusDesc"].isNull()) + orderBaseInfo_.statusDesc = orderBaseInfoNode["StatusDesc"].asString(); + if(!orderBaseInfoNode["WorkflowInstanceId"].isNull()) + orderBaseInfo_.workflowInstanceId = std::stol(orderBaseInfoNode["WorkflowInstanceId"].asString()); + if(!orderBaseInfoNode["WorkflowStatusDesc"].isNull()) + orderBaseInfo_.workflowStatusDesc = orderBaseInfoNode["WorkflowStatusDesc"].asString(); + auto allRelatedUserList = orderBaseInfoNode["RelatedUserList"]["UserIds"]; + for (auto value : allRelatedUserList) + orderBaseInfo_.relatedUserList.push_back(value.asString()); + auto allRelatedUserNickList = orderBaseInfoNode["RelatedUserNickList"]["UserNicks"]; + for (auto value : allRelatedUserNickList) + orderBaseInfo_.relatedUserNickList.push_back(value.asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +GetOrderBaseInfoResult::OrderBaseInfo GetOrderBaseInfoResult::getOrderBaseInfo()const +{ + return orderBaseInfo_; +} + +std::string GetOrderBaseInfoResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetOrderBaseInfoResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetOrderBaseInfoResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/GetUserRequest.cc b/dms-enterprise/src/model/GetUserRequest.cc new file mode 100644 index 000000000..ded05cb94 --- /dev/null +++ b/dms-enterprise/src/model/GetUserRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::GetUserRequest; + +GetUserRequest::GetUserRequest() : + RpcServiceRequest("dms-enterprise", "2018-11-01", "GetUser") +{ + setMethod(HttpRequest::Method::Get); +} + +GetUserRequest::~GetUserRequest() +{} + +long GetUserRequest::getUid()const +{ + return uid_; +} + +void GetUserRequest::setUid(long uid) +{ + uid_ = uid; + setParameter("Uid", std::to_string(uid)); +} + +std::string GetUserRequest::getUserId()const +{ + return userId_; +} + +void GetUserRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +long GetUserRequest::getTid()const +{ + return tid_; +} + +void GetUserRequest::setTid(long tid) +{ + tid_ = tid; + setParameter("Tid", std::to_string(tid)); +} + diff --git a/dms-enterprise/src/model/GetUserResult.cc b/dms-enterprise/src/model/GetUserResult.cc new file mode 100644 index 000000000..1864d5b13 --- /dev/null +++ b/dms-enterprise/src/model/GetUserResult.cc @@ -0,0 +1,89 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +GetUserResult::GetUserResult() : + ServiceResult() +{} + +GetUserResult::GetUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetUserResult::~GetUserResult() +{} + +void GetUserResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto userNode = value["User"]; + if(!userNode["UserId"].isNull()) + user_.userId = userNode["UserId"].asString(); + if(!userNode["Uid"].isNull()) + user_.uid = std::stol(userNode["Uid"].asString()); + if(!userNode["NickName"].isNull()) + user_.nickName = userNode["NickName"].asString(); + if(!userNode["Mobile"].isNull()) + user_.mobile = userNode["Mobile"].asString(); + if(!userNode["ParentUid"].isNull()) + user_.parentUid = std::stol(userNode["ParentUid"].asString()); + if(!userNode["State"].isNull()) + user_.state = userNode["State"].asString(); + auto allRoleIdList = userNode["RoleIdList"]["RoleIds"]; + for (auto value : allRoleIdList) + user_.roleIdList.push_back(value.asString()); + auto allRoleNameList = userNode["RoleNameList"]["RoleNames"]; + for (auto value : allRoleNameList) + user_.roleNameList.push_back(value.asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +GetUserResult::User GetUserResult::getUser()const +{ + return user_; +} + +std::string GetUserResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetUserResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetUserResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/GrantUserPermissionRequest.cc b/dms-enterprise/src/model/GrantUserPermissionRequest.cc new file mode 100644 index 000000000..ce2cac44e --- /dev/null +++ b/dms-enterprise/src/model/GrantUserPermissionRequest.cc @@ -0,0 +1,128 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Dms_enterprise::Model::GrantUserPermissionRequest; + +GrantUserPermissionRequest::GrantUserPermissionRequest() : + RpcServiceRequest("dms-enterprise", "2018-11-01", "GrantUserPermission") +{ + setMethod(HttpRequest::Method::Post); +} + +GrantUserPermissionRequest::~GrantUserPermissionRequest() +{} + +std::string GrantUserPermissionRequest::getPermTypes()const +{ + return permTypes_; +} + +void GrantUserPermissionRequest::setPermTypes(const std::string& permTypes) +{ + permTypes_ = permTypes; + setParameter("PermTypes", permTypes); +} + +std::string GrantUserPermissionRequest::getDsType()const +{ + return dsType_; +} + +void GrantUserPermissionRequest::setDsType(const std::string& dsType) +{ + dsType_ = dsType; + setParameter("DsType", dsType); +} + +std::string GrantUserPermissionRequest::getExpireDate()const +{ + return expireDate_; +} + +void GrantUserPermissionRequest::setExpireDate(const std::string& expireDate) +{ + expireDate_ = expireDate; + setParameter("ExpireDate", expireDate); +} + +std::string GrantUserPermissionRequest::getUserId()const +{ + return userId_; +} + +void GrantUserPermissionRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +long GrantUserPermissionRequest::getTid()const +{ + return tid_; +} + +void GrantUserPermissionRequest::setTid(long tid) +{ + tid_ = tid; + setParameter("Tid", std::to_string(tid)); +} + +std::string GrantUserPermissionRequest::getDbId()const +{ + return dbId_; +} + +void GrantUserPermissionRequest::setDbId(const std::string& dbId) +{ + dbId_ = dbId; + setParameter("DbId", dbId); +} + +std::string GrantUserPermissionRequest::getTableId()const +{ + return tableId_; +} + +void GrantUserPermissionRequest::setTableId(const std::string& tableId) +{ + tableId_ = tableId; + setParameter("TableId", tableId); +} + +bool GrantUserPermissionRequest::getLogic()const +{ + return logic_; +} + +void GrantUserPermissionRequest::setLogic(bool logic) +{ + logic_ = logic; + setParameter("Logic", logic ? "true" : "false"); +} + +std::string GrantUserPermissionRequest::getTableName()const +{ + return tableName_; +} + +void GrantUserPermissionRequest::setTableName(const std::string& tableName) +{ + tableName_ = tableName; + setParameter("TableName", tableName); +} + diff --git a/dms-enterprise/src/model/GrantUserPermissionResult.cc b/dms-enterprise/src/model/GrantUserPermissionResult.cc new file mode 100644 index 000000000..096ac3ccc --- /dev/null +++ b/dms-enterprise/src/model/GrantUserPermissionResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +GrantUserPermissionResult::GrantUserPermissionResult() : + ServiceResult() +{} + +GrantUserPermissionResult::GrantUserPermissionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GrantUserPermissionResult::~GrantUserPermissionResult() +{} + +void GrantUserPermissionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string GrantUserPermissionResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GrantUserPermissionResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GrantUserPermissionResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/ListColumnsRequest.cc b/dms-enterprise/src/model/ListColumnsRequest.cc new file mode 100644 index 000000000..4f63a5714 --- /dev/null +++ b/dms-enterprise/src/model/ListColumnsRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::ListColumnsRequest; + +ListColumnsRequest::ListColumnsRequest() : + RpcServiceRequest("dms-enterprise", "2018-11-01", "ListColumns") +{ + setMethod(HttpRequest::Method::Get); +} + +ListColumnsRequest::~ListColumnsRequest() +{} + +std::string ListColumnsRequest::getTableId()const +{ + return tableId_; +} + +void ListColumnsRequest::setTableId(const std::string& tableId) +{ + tableId_ = tableId; + setParameter("TableId", tableId); +} + +bool ListColumnsRequest::getLogic()const +{ + return logic_; +} + +void ListColumnsRequest::setLogic(bool logic) +{ + logic_ = logic; + setParameter("Logic", logic ? "true" : "false"); +} + +long ListColumnsRequest::getTid()const +{ + return tid_; +} + +void ListColumnsRequest::setTid(long tid) +{ + tid_ = tid; + setParameter("Tid", std::to_string(tid)); +} + diff --git a/dms-enterprise/src/model/ListColumnsResult.cc b/dms-enterprise/src/model/ListColumnsResult.cc new file mode 100644 index 000000000..9159b706e --- /dev/null +++ b/dms-enterprise/src/model/ListColumnsResult.cc @@ -0,0 +1,102 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +ListColumnsResult::ListColumnsResult() : + ServiceResult() +{} + +ListColumnsResult::ListColumnsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListColumnsResult::~ListColumnsResult() +{} + +void ListColumnsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allColumnListNode = value["ColumnList"]["Column"]; + for (auto valueColumnListColumn : allColumnListNode) + { + Column columnListObject; + if(!valueColumnListColumn["ColumnId"].isNull()) + columnListObject.columnId = valueColumnListColumn["ColumnId"].asString(); + if(!valueColumnListColumn["ColumnName"].isNull()) + columnListObject.columnName = valueColumnListColumn["ColumnName"].asString(); + if(!valueColumnListColumn["ColumnType"].isNull()) + columnListObject.columnType = valueColumnListColumn["ColumnType"].asString(); + if(!valueColumnListColumn["Nullable"].isNull()) + columnListObject.nullable = valueColumnListColumn["Nullable"].asString() == "true"; + if(!valueColumnListColumn["DefaultValue"].isNull()) + columnListObject.defaultValue = valueColumnListColumn["DefaultValue"].asString(); + if(!valueColumnListColumn["AutoIncrement"].isNull()) + columnListObject.autoIncrement = valueColumnListColumn["AutoIncrement"].asString() == "true"; + if(!valueColumnListColumn["Description"].isNull()) + columnListObject.description = valueColumnListColumn["Description"].asString(); + if(!valueColumnListColumn["SecurityLevel"].isNull()) + columnListObject.securityLevel = valueColumnListColumn["SecurityLevel"].asString(); + if(!valueColumnListColumn["FunctionType"].isNull()) + columnListObject.functionType = valueColumnListColumn["FunctionType"].asString(); + if(!valueColumnListColumn["DataLength"].isNull()) + columnListObject.dataLength = std::stol(valueColumnListColumn["DataLength"].asString()); + if(!valueColumnListColumn["Sensitive"].isNull()) + columnListObject.sensitive = valueColumnListColumn["Sensitive"].asString() == "true"; + if(!valueColumnListColumn["DataPrecision"].isNull()) + columnListObject.dataPrecision = std::stoi(valueColumnListColumn["DataPrecision"].asString()); + if(!valueColumnListColumn["DataScale"].isNull()) + columnListObject.dataScale = std::stoi(valueColumnListColumn["DataScale"].asString()); + columnList_.push_back(columnListObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::vector ListColumnsResult::getColumnList()const +{ + return columnList_; +} + +std::string ListColumnsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListColumnsResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListColumnsResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/ListDatabaseUserPermssionsRequest.cc b/dms-enterprise/src/model/ListDatabaseUserPermssionsRequest.cc new file mode 100644 index 000000000..16a457e24 --- /dev/null +++ b/dms-enterprise/src/model/ListDatabaseUserPermssionsRequest.cc @@ -0,0 +1,106 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Dms_enterprise::Model::ListDatabaseUserPermssionsRequest; + +ListDatabaseUserPermssionsRequest::ListDatabaseUserPermssionsRequest() : + RpcServiceRequest("dms-enterprise", "2018-11-01", "ListDatabaseUserPermssions") +{ + setMethod(HttpRequest::Method::Get); +} + +ListDatabaseUserPermssionsRequest::~ListDatabaseUserPermssionsRequest() +{} + +std::string ListDatabaseUserPermssionsRequest::getPermType()const +{ + return permType_; +} + +void ListDatabaseUserPermssionsRequest::setPermType(const std::string& permType) +{ + permType_ = permType; + setParameter("PermType", permType); +} + +std::string ListDatabaseUserPermssionsRequest::getDbId()const +{ + return dbId_; +} + +void ListDatabaseUserPermssionsRequest::setDbId(const std::string& dbId) +{ + dbId_ = dbId; + setParameter("DbId", dbId); +} + +int ListDatabaseUserPermssionsRequest::getPageSize()const +{ + return pageSize_; +} + +void ListDatabaseUserPermssionsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +bool ListDatabaseUserPermssionsRequest::getLogic()const +{ + return logic_; +} + +void ListDatabaseUserPermssionsRequest::setLogic(bool logic) +{ + logic_ = logic; + setParameter("Logic", logic ? "true" : "false"); +} + +long ListDatabaseUserPermssionsRequest::getTid()const +{ + return tid_; +} + +void ListDatabaseUserPermssionsRequest::setTid(long tid) +{ + tid_ = tid; + setParameter("Tid", std::to_string(tid)); +} + +int ListDatabaseUserPermssionsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListDatabaseUserPermssionsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListDatabaseUserPermssionsRequest::getUserName()const +{ + return userName_; +} + +void ListDatabaseUserPermssionsRequest::setUserName(const std::string& userName) +{ + userName_ = userName; + setParameter("UserName", userName); +} + diff --git a/dms-enterprise/src/model/ListDatabaseUserPermssionsResult.cc b/dms-enterprise/src/model/ListDatabaseUserPermssionsResult.cc new file mode 100644 index 000000000..b25df518d --- /dev/null +++ b/dms-enterprise/src/model/ListDatabaseUserPermssionsResult.cc @@ -0,0 +1,129 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +ListDatabaseUserPermssionsResult::ListDatabaseUserPermssionsResult() : + ServiceResult() +{} + +ListDatabaseUserPermssionsResult::ListDatabaseUserPermssionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListDatabaseUserPermssionsResult::~ListDatabaseUserPermssionsResult() +{} + +void ListDatabaseUserPermssionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allUserPermissionsNode = value["UserPermissions"]["UserPermission"]; + for (auto valueUserPermissionsUserPermission : allUserPermissionsNode) + { + UserPermission userPermissionsObject; + if(!valueUserPermissionsUserPermission["UserId"].isNull()) + userPermissionsObject.userId = valueUserPermissionsUserPermission["UserId"].asString(); + if(!valueUserPermissionsUserPermission["UserNickName"].isNull()) + userPermissionsObject.userNickName = valueUserPermissionsUserPermission["UserNickName"].asString(); + if(!valueUserPermissionsUserPermission["DsType"].isNull()) + userPermissionsObject.dsType = valueUserPermissionsUserPermission["DsType"].asString(); + if(!valueUserPermissionsUserPermission["DbId"].isNull()) + userPermissionsObject.dbId = valueUserPermissionsUserPermission["DbId"].asString(); + if(!valueUserPermissionsUserPermission["Logic"].isNull()) + userPermissionsObject.logic = valueUserPermissionsUserPermission["Logic"].asString() == "true"; + if(!valueUserPermissionsUserPermission["SchemaName"].isNull()) + userPermissionsObject.schemaName = valueUserPermissionsUserPermission["SchemaName"].asString(); + if(!valueUserPermissionsUserPermission["SearchName"].isNull()) + userPermissionsObject.searchName = valueUserPermissionsUserPermission["SearchName"].asString(); + if(!valueUserPermissionsUserPermission["InstanceId"].isNull()) + userPermissionsObject.instanceId = valueUserPermissionsUserPermission["InstanceId"].asString(); + if(!valueUserPermissionsUserPermission["EnvType"].isNull()) + userPermissionsObject.envType = valueUserPermissionsUserPermission["EnvType"].asString(); + if(!valueUserPermissionsUserPermission["Alias"].isNull()) + userPermissionsObject.alias = valueUserPermissionsUserPermission["Alias"].asString(); + if(!valueUserPermissionsUserPermission["DbType"].isNull()) + userPermissionsObject.dbType = valueUserPermissionsUserPermission["DbType"].asString(); + if(!valueUserPermissionsUserPermission["TableName"].isNull()) + userPermissionsObject.tableName = valueUserPermissionsUserPermission["TableName"].asString(); + if(!valueUserPermissionsUserPermission["TableId"].isNull()) + userPermissionsObject.tableId = valueUserPermissionsUserPermission["TableId"].asString(); + if(!valueUserPermissionsUserPermission["ColumnName"].isNull()) + userPermissionsObject.columnName = valueUserPermissionsUserPermission["ColumnName"].asString(); + auto allPermDetailsNode = allUserPermissionsNode["PermDetails"]["PermDetail"]; + for (auto allUserPermissionsNodePermDetailsPermDetail : allPermDetailsNode) + { + UserPermission::PermDetail permDetailsObject; + if(!allUserPermissionsNodePermDetailsPermDetail["PermType"].isNull()) + permDetailsObject.permType = allUserPermissionsNodePermDetailsPermDetail["PermType"].asString(); + if(!allUserPermissionsNodePermDetailsPermDetail["ExpireDate"].isNull()) + permDetailsObject.expireDate = allUserPermissionsNodePermDetailsPermDetail["ExpireDate"].asString(); + if(!allUserPermissionsNodePermDetailsPermDetail["CreateDate"].isNull()) + permDetailsObject.createDate = allUserPermissionsNodePermDetailsPermDetail["CreateDate"].asString(); + if(!allUserPermissionsNodePermDetailsPermDetail["OriginFrom"].isNull()) + permDetailsObject.originFrom = allUserPermissionsNodePermDetailsPermDetail["OriginFrom"].asString(); + if(!allUserPermissionsNodePermDetailsPermDetail["UserAccessId"].isNull()) + permDetailsObject.userAccessId = allUserPermissionsNodePermDetailsPermDetail["UserAccessId"].asString(); + if(!allUserPermissionsNodePermDetailsPermDetail["ExtraData"].isNull()) + permDetailsObject.extraData = allUserPermissionsNodePermDetailsPermDetail["ExtraData"].asString(); + userPermissionsObject.permDetails.push_back(permDetailsObject); + } + userPermissions_.push_back(userPermissionsObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + +} + +long ListDatabaseUserPermssionsResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListDatabaseUserPermssionsResult::getErrorCode()const +{ + return errorCode_; +} + +std::vector ListDatabaseUserPermssionsResult::getUserPermissions()const +{ + return userPermissions_; +} + +std::string ListDatabaseUserPermssionsResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListDatabaseUserPermssionsResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/ListDatabasesRequest.cc b/dms-enterprise/src/model/ListDatabasesRequest.cc new file mode 100644 index 000000000..d4f22ed38 --- /dev/null +++ b/dms-enterprise/src/model/ListDatabasesRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::ListDatabasesRequest; + +ListDatabasesRequest::ListDatabasesRequest() : + RpcServiceRequest("dms-enterprise", "2018-11-01", "ListDatabases") +{ + setMethod(HttpRequest::Method::Get); +} + +ListDatabasesRequest::~ListDatabasesRequest() +{} + +std::string ListDatabasesRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListDatabasesRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +int ListDatabasesRequest::getPageSize()const +{ + return pageSize_; +} + +void ListDatabasesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +long ListDatabasesRequest::getTid()const +{ + return tid_; +} + +void ListDatabasesRequest::setTid(long tid) +{ + tid_ = tid; + setParameter("Tid", std::to_string(tid)); +} + +int ListDatabasesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListDatabasesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/dms-enterprise/src/model/ListDatabasesResult.cc b/dms-enterprise/src/model/ListDatabasesResult.cc new file mode 100644 index 000000000..e4a2ce875 --- /dev/null +++ b/dms-enterprise/src/model/ListDatabasesResult.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +ListDatabasesResult::ListDatabasesResult() : + ServiceResult() +{} + +ListDatabasesResult::ListDatabasesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListDatabasesResult::~ListDatabasesResult() +{} + +void ListDatabasesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDatabaseListNode = value["DatabaseList"]["Database"]; + for (auto valueDatabaseListDatabase : allDatabaseListNode) + { + Database databaseListObject; + if(!valueDatabaseListDatabase["InstanceId"].isNull()) + databaseListObject.instanceId = valueDatabaseListDatabase["InstanceId"].asString(); + if(!valueDatabaseListDatabase["DatabaseId"].isNull()) + databaseListObject.databaseId = valueDatabaseListDatabase["DatabaseId"].asString(); + if(!valueDatabaseListDatabase["EnvType"].isNull()) + databaseListObject.envType = valueDatabaseListDatabase["EnvType"].asString(); + if(!valueDatabaseListDatabase["SchemaName"].isNull()) + databaseListObject.schemaName = valueDatabaseListDatabase["SchemaName"].asString(); + if(!valueDatabaseListDatabase["CatalogName"].isNull()) + databaseListObject.catalogName = valueDatabaseListDatabase["CatalogName"].asString(); + if(!valueDatabaseListDatabase["Encoding"].isNull()) + databaseListObject.encoding = valueDatabaseListDatabase["Encoding"].asString(); + if(!valueDatabaseListDatabase["SearchName"].isNull()) + databaseListObject.searchName = valueDatabaseListDatabase["SearchName"].asString(); + if(!valueDatabaseListDatabase["State"].isNull()) + databaseListObject.state = valueDatabaseListDatabase["State"].asString(); + if(!valueDatabaseListDatabase["DbType"].isNull()) + databaseListObject.dbType = valueDatabaseListDatabase["DbType"].asString(); + if(!valueDatabaseListDatabase["Host"].isNull()) + databaseListObject.host = valueDatabaseListDatabase["Host"].asString(); + if(!valueDatabaseListDatabase["Port"].isNull()) + databaseListObject.port = std::stoi(valueDatabaseListDatabase["Port"].asString()); + if(!valueDatabaseListDatabase["Sid"].isNull()) + databaseListObject.sid = valueDatabaseListDatabase["Sid"].asString(); + if(!valueDatabaseListDatabase["DbaName"].isNull()) + databaseListObject.dbaName = valueDatabaseListDatabase["DbaName"].asString(); + if(!valueDatabaseListDatabase["DbaId"].isNull()) + databaseListObject.dbaId = valueDatabaseListDatabase["DbaId"].asString(); + auto allOwnerIdList = value["OwnerIdList"]["OwnerIds"]; + for (auto value : allOwnerIdList) + databaseListObject.ownerIdList.push_back(value.asString()); + auto allOwnerNameList = value["OwnerNameList"]["OwnerNames"]; + for (auto value : allOwnerNameList) + databaseListObject.ownerNameList.push_back(value.asString()); + databaseList_.push_back(databaseListObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + +} + +long ListDatabasesResult::getTotalCount()const +{ + return totalCount_; +} + +std::vector ListDatabasesResult::getDatabaseList()const +{ + return databaseList_; +} + +std::string ListDatabasesResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListDatabasesResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListDatabasesResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/ListIndexesRequest.cc b/dms-enterprise/src/model/ListIndexesRequest.cc new file mode 100644 index 000000000..3b4c816e9 --- /dev/null +++ b/dms-enterprise/src/model/ListIndexesRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::ListIndexesRequest; + +ListIndexesRequest::ListIndexesRequest() : + RpcServiceRequest("dms-enterprise", "2018-11-01", "ListIndexes") +{ + setMethod(HttpRequest::Method::Get); +} + +ListIndexesRequest::~ListIndexesRequest() +{} + +std::string ListIndexesRequest::getTableId()const +{ + return tableId_; +} + +void ListIndexesRequest::setTableId(const std::string& tableId) +{ + tableId_ = tableId; + setParameter("TableId", tableId); +} + +bool ListIndexesRequest::getLogic()const +{ + return logic_; +} + +void ListIndexesRequest::setLogic(bool logic) +{ + logic_ = logic; + setParameter("Logic", logic ? "true" : "false"); +} + +long ListIndexesRequest::getTid()const +{ + return tid_; +} + +void ListIndexesRequest::setTid(long tid) +{ + tid_ = tid; + setParameter("Tid", std::to_string(tid)); +} + diff --git a/dms-enterprise/src/model/ListIndexesResult.cc b/dms-enterprise/src/model/ListIndexesResult.cc new file mode 100644 index 000000000..8c8abdc02 --- /dev/null +++ b/dms-enterprise/src/model/ListIndexesResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +ListIndexesResult::ListIndexesResult() : + ServiceResult() +{} + +ListIndexesResult::ListIndexesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListIndexesResult::~ListIndexesResult() +{} + +void ListIndexesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allIndexListNode = value["IndexList"]["Index"]; + for (auto valueIndexListIndex : allIndexListNode) + { + Index indexListObject; + if(!valueIndexListIndex["IndexId"].isNull()) + indexListObject.indexId = valueIndexListIndex["IndexId"].asString(); + if(!valueIndexListIndex["TableId"].isNull()) + indexListObject.tableId = valueIndexListIndex["TableId"].asString(); + if(!valueIndexListIndex["IndexName"].isNull()) + indexListObject.indexName = valueIndexListIndex["IndexName"].asString(); + if(!valueIndexListIndex["IndexType"].isNull()) + indexListObject.indexType = valueIndexListIndex["IndexType"].asString(); + if(!valueIndexListIndex["IndexComment"].isNull()) + indexListObject.indexComment = valueIndexListIndex["IndexComment"].asString(); + indexList_.push_back(indexListObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string ListIndexesResult::getErrorCode()const +{ + return errorCode_; +} + +std::vector ListIndexesResult::getIndexList()const +{ + return indexList_; +} + +std::string ListIndexesResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListIndexesResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/ListInstancesRequest.cc b/dms-enterprise/src/model/ListInstancesRequest.cc new file mode 100644 index 000000000..7b30c0787 --- /dev/null +++ b/dms-enterprise/src/model/ListInstancesRequest.cc @@ -0,0 +1,128 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Dms_enterprise::Model::ListInstancesRequest; + +ListInstancesRequest::ListInstancesRequest() : + RpcServiceRequest("dms-enterprise", "2018-11-01", "ListInstances") +{ + setMethod(HttpRequest::Method::Get); +} + +ListInstancesRequest::~ListInstancesRequest() +{} + +std::string ListInstancesRequest::getSearchKey()const +{ + return searchKey_; +} + +void ListInstancesRequest::setSearchKey(const std::string& searchKey) +{ + searchKey_ = searchKey; + setParameter("SearchKey", searchKey); +} + +long ListInstancesRequest::getTid()const +{ + return tid_; +} + +void ListInstancesRequest::setTid(long tid) +{ + tid_ = tid; + setParameter("Tid", std::to_string(tid)); +} + +std::string ListInstancesRequest::getInstanceState()const +{ + return instanceState_; +} + +void ListInstancesRequest::setInstanceState(const std::string& instanceState) +{ + instanceState_ = instanceState; + setParameter("InstanceState", instanceState); +} + +int ListInstancesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListInstancesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListInstancesRequest::getNetType()const +{ + return netType_; +} + +void ListInstancesRequest::setNetType(const std::string& netType) +{ + netType_ = netType; + setParameter("NetType", netType); +} + +std::string ListInstancesRequest::getDbType()const +{ + return dbType_; +} + +void ListInstancesRequest::setDbType(const std::string& dbType) +{ + dbType_ = dbType; + setParameter("DbType", dbType); +} + +std::string ListInstancesRequest::getEnvType()const +{ + return envType_; +} + +void ListInstancesRequest::setEnvType(const std::string& envType) +{ + envType_ = envType; + setParameter("EnvType", envType); +} + +std::string ListInstancesRequest::getInstanceSource()const +{ + return instanceSource_; +} + +void ListInstancesRequest::setInstanceSource(const std::string& instanceSource) +{ + instanceSource_ = instanceSource; + setParameter("InstanceSource", instanceSource); +} + +int ListInstancesRequest::getPageSize()const +{ + return pageSize_; +} + +void ListInstancesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + diff --git a/dms-enterprise/src/model/ListInstancesResult.cc b/dms-enterprise/src/model/ListInstancesResult.cc new file mode 100644 index 000000000..dabc08035 --- /dev/null +++ b/dms-enterprise/src/model/ListInstancesResult.cc @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +ListInstancesResult::ListInstancesResult() : + ServiceResult() +{} + +ListInstancesResult::ListInstancesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListInstancesResult::~ListInstancesResult() +{} + +void ListInstancesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allInstanceListNode = value["InstanceList"]["Instance"]; + for (auto valueInstanceListInstance : allInstanceListNode) + { + Instance instanceListObject; + if(!valueInstanceListInstance["InstanceId"].isNull()) + instanceListObject.instanceId = valueInstanceListInstance["InstanceId"].asString(); + if(!valueInstanceListInstance["InstanceType"].isNull()) + instanceListObject.instanceType = valueInstanceListInstance["InstanceType"].asString(); + if(!valueInstanceListInstance["EnvType"].isNull()) + instanceListObject.envType = valueInstanceListInstance["EnvType"].asString(); + if(!valueInstanceListInstance["Host"].isNull()) + instanceListObject.host = valueInstanceListInstance["Host"].asString(); + if(!valueInstanceListInstance["Port"].isNull()) + instanceListObject.port = std::stoi(valueInstanceListInstance["Port"].asString()); + if(!valueInstanceListInstance["Sid"].isNull()) + instanceListObject.sid = valueInstanceListInstance["Sid"].asString(); + if(!valueInstanceListInstance["InstanceAlias"].isNull()) + instanceListObject.instanceAlias = valueInstanceListInstance["InstanceAlias"].asString(); + if(!valueInstanceListInstance["DataLinkName"].isNull()) + instanceListObject.dataLinkName = valueInstanceListInstance["DataLinkName"].asString(); + if(!valueInstanceListInstance["DbaNickName"].isNull()) + instanceListObject.dbaNickName = valueInstanceListInstance["DbaNickName"].asString(); + if(!valueInstanceListInstance["SafeRuleId"].isNull()) + instanceListObject.safeRuleId = valueInstanceListInstance["SafeRuleId"].asString(); + if(!valueInstanceListInstance["QueryTimeout"].isNull()) + instanceListObject.queryTimeout = std::stoi(valueInstanceListInstance["QueryTimeout"].asString()); + if(!valueInstanceListInstance["ExportTimeout"].isNull()) + instanceListObject.exportTimeout = std::stoi(valueInstanceListInstance["ExportTimeout"].asString()); + if(!valueInstanceListInstance["State"].isNull()) + instanceListObject.state = valueInstanceListInstance["State"].asString(); + if(!valueInstanceListInstance["DbaId"].isNull()) + instanceListObject.dbaId = valueInstanceListInstance["DbaId"].asString(); + if(!valueInstanceListInstance["DdlOnline"].isNull()) + instanceListObject.ddlOnline = std::stoi(valueInstanceListInstance["DdlOnline"].asString()); + if(!valueInstanceListInstance["UseDsql"].isNull()) + instanceListObject.useDsql = std::stoi(valueInstanceListInstance["UseDsql"].asString()); + if(!valueInstanceListInstance["EcsInstanceId"].isNull()) + instanceListObject.ecsInstanceId = valueInstanceListInstance["EcsInstanceId"].asString(); + if(!valueInstanceListInstance["VpcId"].isNull()) + instanceListObject.vpcId = valueInstanceListInstance["VpcId"].asString(); + if(!valueInstanceListInstance["EcsRegion"].isNull()) + instanceListObject.ecsRegion = valueInstanceListInstance["EcsRegion"].asString(); + if(!valueInstanceListInstance["DatabaseUser"].isNull()) + instanceListObject.databaseUser = valueInstanceListInstance["DatabaseUser"].asString(); + if(!valueInstanceListInstance["DatabasePassword"].isNull()) + instanceListObject.databasePassword = valueInstanceListInstance["DatabasePassword"].asString(); + if(!valueInstanceListInstance["InstanceSource"].isNull()) + instanceListObject.instanceSource = valueInstanceListInstance["InstanceSource"].asString(); + instanceList_.push_back(instanceListObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + +} + +long ListInstancesResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListInstancesResult::getErrorCode()const +{ + return errorCode_; +} + +std::vector ListInstancesResult::getInstanceList()const +{ + return instanceList_; +} + +std::string ListInstancesResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListInstancesResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/ListLogicDatabasesRequest.cc b/dms-enterprise/src/model/ListLogicDatabasesRequest.cc new file mode 100644 index 000000000..4a553bb85 --- /dev/null +++ b/dms-enterprise/src/model/ListLogicDatabasesRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::ListLogicDatabasesRequest; + +ListLogicDatabasesRequest::ListLogicDatabasesRequest() : + RpcServiceRequest("dms-enterprise", "2018-11-01", "ListLogicDatabases") +{ + setMethod(HttpRequest::Method::Get); +} + +ListLogicDatabasesRequest::~ListLogicDatabasesRequest() +{} + +int ListLogicDatabasesRequest::getPageSize()const +{ + return pageSize_; +} + +void ListLogicDatabasesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +long ListLogicDatabasesRequest::getTid()const +{ + return tid_; +} + +void ListLogicDatabasesRequest::setTid(long tid) +{ + tid_ = tid; + setParameter("Tid", std::to_string(tid)); +} + +int ListLogicDatabasesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListLogicDatabasesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/dms-enterprise/src/model/ListLogicDatabasesResult.cc b/dms-enterprise/src/model/ListLogicDatabasesResult.cc new file mode 100644 index 000000000..2cf8a104f --- /dev/null +++ b/dms-enterprise/src/model/ListLogicDatabasesResult.cc @@ -0,0 +1,101 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +ListLogicDatabasesResult::ListLogicDatabasesResult() : + ServiceResult() +{} + +ListLogicDatabasesResult::ListLogicDatabasesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListLogicDatabasesResult::~ListLogicDatabasesResult() +{} + +void ListLogicDatabasesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allLogicDatabaseListNode = value["LogicDatabaseList"]["LogicDatabase"]; + for (auto valueLogicDatabaseListLogicDatabase : allLogicDatabaseListNode) + { + LogicDatabase logicDatabaseListObject; + if(!valueLogicDatabaseListLogicDatabase["Logic"].isNull()) + logicDatabaseListObject.logic = valueLogicDatabaseListLogicDatabase["Logic"].asString() == "true"; + if(!valueLogicDatabaseListLogicDatabase["DatabaseId"].isNull()) + logicDatabaseListObject.databaseId = valueLogicDatabaseListLogicDatabase["DatabaseId"].asString(); + if(!valueLogicDatabaseListLogicDatabase["EnvType"].isNull()) + logicDatabaseListObject.envType = valueLogicDatabaseListLogicDatabase["EnvType"].asString(); + if(!valueLogicDatabaseListLogicDatabase["SchemaName"].isNull()) + logicDatabaseListObject.schemaName = valueLogicDatabaseListLogicDatabase["SchemaName"].asString(); + if(!valueLogicDatabaseListLogicDatabase["SearchName"].isNull()) + logicDatabaseListObject.searchName = valueLogicDatabaseListLogicDatabase["SearchName"].asString(); + if(!valueLogicDatabaseListLogicDatabase["DbType"].isNull()) + logicDatabaseListObject.dbType = valueLogicDatabaseListLogicDatabase["DbType"].asString(); + auto allOwnerIdList = value["OwnerIdList"]["OwnerIds"]; + for (auto value : allOwnerIdList) + logicDatabaseListObject.ownerIdList.push_back(value.asString()); + auto allOwnerNameList = value["OwnerNameList"]["OwnerNames"]; + for (auto value : allOwnerNameList) + logicDatabaseListObject.ownerNameList.push_back(value.asString()); + logicDatabaseList_.push_back(logicDatabaseListObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + +} + +std::vector ListLogicDatabasesResult::getLogicDatabaseList()const +{ + return logicDatabaseList_; +} + +long ListLogicDatabasesResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListLogicDatabasesResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListLogicDatabasesResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListLogicDatabasesResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/ListLogicTablesRequest.cc b/dms-enterprise/src/model/ListLogicTablesRequest.cc new file mode 100644 index 000000000..749c755da --- /dev/null +++ b/dms-enterprise/src/model/ListLogicTablesRequest.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::ListLogicTablesRequest; + +ListLogicTablesRequest::ListLogicTablesRequest() : + RpcServiceRequest("dms-enterprise", "2018-11-01", "ListLogicTables") +{ + setMethod(HttpRequest::Method::Get); +} + +ListLogicTablesRequest::~ListLogicTablesRequest() +{} + +std::string ListLogicTablesRequest::getSearchName()const +{ + return searchName_; +} + +void ListLogicTablesRequest::setSearchName(const std::string& searchName) +{ + searchName_ = searchName; + setParameter("SearchName", searchName); +} + +int ListLogicTablesRequest::getPageSize()const +{ + return pageSize_; +} + +void ListLogicTablesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string ListLogicTablesRequest::getDatabaseId()const +{ + return databaseId_; +} + +void ListLogicTablesRequest::setDatabaseId(const std::string& databaseId) +{ + databaseId_ = databaseId; + setParameter("DatabaseId", databaseId); +} + +long ListLogicTablesRequest::getTid()const +{ + return tid_; +} + +void ListLogicTablesRequest::setTid(long tid) +{ + tid_ = tid; + setParameter("Tid", std::to_string(tid)); +} + +int ListLogicTablesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListLogicTablesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/dms-enterprise/src/model/ListLogicTablesResult.cc b/dms-enterprise/src/model/ListLogicTablesResult.cc new file mode 100644 index 000000000..d55e34963 --- /dev/null +++ b/dms-enterprise/src/model/ListLogicTablesResult.cc @@ -0,0 +1,101 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +ListLogicTablesResult::ListLogicTablesResult() : + ServiceResult() +{} + +ListLogicTablesResult::ListLogicTablesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListLogicTablesResult::~ListLogicTablesResult() +{} + +void ListLogicTablesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allLogicTableListNode = value["LogicTableList"]["LogicTable"]; + for (auto valueLogicTableListLogicTable : allLogicTableListNode) + { + LogicTable logicTableListObject; + if(!valueLogicTableListLogicTable["TableId"].isNull()) + logicTableListObject.tableId = valueLogicTableListLogicTable["TableId"].asString(); + if(!valueLogicTableListLogicTable["DatabaseId"].isNull()) + logicTableListObject.databaseId = valueLogicTableListLogicTable["DatabaseId"].asString(); + if(!valueLogicTableListLogicTable["TableName"].isNull()) + logicTableListObject.tableName = valueLogicTableListLogicTable["TableName"].asString(); + if(!valueLogicTableListLogicTable["Logic"].isNull()) + logicTableListObject.logic = valueLogicTableListLogicTable["Logic"].asString() == "true"; + if(!valueLogicTableListLogicTable["TableExpr"].isNull()) + logicTableListObject.tableExpr = valueLogicTableListLogicTable["TableExpr"].asString(); + if(!valueLogicTableListLogicTable["TableCount"].isNull()) + logicTableListObject.tableCount = valueLogicTableListLogicTable["TableCount"].asString(); + auto allOwnerIdList = value["OwnerIdList"]["OwnerIds"]; + for (auto value : allOwnerIdList) + logicTableListObject.ownerIdList.push_back(value.asString()); + auto allOwnerNameList = value["OwnerNameList"]["OwnerNames"]; + for (auto value : allOwnerNameList) + logicTableListObject.ownerNameList.push_back(value.asString()); + logicTableList_.push_back(logicTableListObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + +} + +long ListLogicTablesResult::getTotalCount()const +{ + return totalCount_; +} + +std::vector ListLogicTablesResult::getLogicTableList()const +{ + return logicTableList_; +} + +std::string ListLogicTablesResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListLogicTablesResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListLogicTablesResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/ListOrdersRequest.cc b/dms-enterprise/src/model/ListOrdersRequest.cc new file mode 100644 index 000000000..83972ad2d --- /dev/null +++ b/dms-enterprise/src/model/ListOrdersRequest.cc @@ -0,0 +1,139 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Dms_enterprise::Model::ListOrdersRequest; + +ListOrdersRequest::ListOrdersRequest() : + RpcServiceRequest("dms-enterprise", "2018-11-01", "ListOrders") +{ + setMethod(HttpRequest::Method::Get); +} + +ListOrdersRequest::~ListOrdersRequest() +{} + +std::string ListOrdersRequest::getOrderStatus()const +{ + return orderStatus_; +} + +void ListOrdersRequest::setOrderStatus(const std::string& orderStatus) +{ + orderStatus_ = orderStatus; + setParameter("OrderStatus", orderStatus); +} + +std::string ListOrdersRequest::getSearchContent()const +{ + return searchContent_; +} + +void ListOrdersRequest::setSearchContent(const std::string& searchContent) +{ + searchContent_ = searchContent; + setParameter("SearchContent", searchContent); +} + +std::string ListOrdersRequest::getSearchDateType()const +{ + return searchDateType_; +} + +void ListOrdersRequest::setSearchDateType(const std::string& searchDateType) +{ + searchDateType_ = searchDateType; + setParameter("SearchDateType", searchDateType); +} + +std::string ListOrdersRequest::getEndTime()const +{ + return endTime_; +} + +void ListOrdersRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string ListOrdersRequest::getStartTime()const +{ + return startTime_; +} + +void ListOrdersRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +long ListOrdersRequest::getTid()const +{ + return tid_; +} + +void ListOrdersRequest::setTid(long tid) +{ + tid_ = tid; + setParameter("Tid", std::to_string(tid)); +} + +int ListOrdersRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListOrdersRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListOrdersRequest::getPluginType()const +{ + return pluginType_; +} + +void ListOrdersRequest::setPluginType(const std::string& pluginType) +{ + pluginType_ = pluginType; + setParameter("PluginType", pluginType); +} + +int ListOrdersRequest::getPageSize()const +{ + return pageSize_; +} + +void ListOrdersRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string ListOrdersRequest::getOrderResultType()const +{ + return orderResultType_; +} + +void ListOrdersRequest::setOrderResultType(const std::string& orderResultType) +{ + orderResultType_ = orderResultType; + setParameter("OrderResultType", orderResultType); +} + diff --git a/dms-enterprise/src/model/ListOrdersResult.cc b/dms-enterprise/src/model/ListOrdersResult.cc new file mode 100644 index 000000000..e83967376 --- /dev/null +++ b/dms-enterprise/src/model/ListOrdersResult.cc @@ -0,0 +1,101 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +ListOrdersResult::ListOrdersResult() : + ServiceResult() +{} + +ListOrdersResult::ListOrdersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListOrdersResult::~ListOrdersResult() +{} + +void ListOrdersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allOrdersNode = value["Orders"]["Order"]; + for (auto valueOrdersOrder : allOrdersNode) + { + Order ordersObject; + if(!valueOrdersOrder["OrderId"].isNull()) + ordersObject.orderId = std::stol(valueOrdersOrder["OrderId"].asString()); + if(!valueOrdersOrder["Comment"].isNull()) + ordersObject.comment = valueOrdersOrder["Comment"].asString(); + if(!valueOrdersOrder["Committer"].isNull()) + ordersObject.committer = valueOrdersOrder["Committer"].asString(); + if(!valueOrdersOrder["CommitterId"].isNull()) + ordersObject.committerId = std::stol(valueOrdersOrder["CommitterId"].asString()); + if(!valueOrdersOrder["CreateTime"].isNull()) + ordersObject.createTime = valueOrdersOrder["CreateTime"].asString(); + if(!valueOrdersOrder["LastModifyTime"].isNull()) + ordersObject.lastModifyTime = valueOrdersOrder["LastModifyTime"].asString(); + if(!valueOrdersOrder["PluginType"].isNull()) + ordersObject.pluginType = valueOrdersOrder["PluginType"].asString(); + if(!valueOrdersOrder["StatusCode"].isNull()) + ordersObject.statusCode = valueOrdersOrder["StatusCode"].asString(); + if(!valueOrdersOrder["StatusDesc"].isNull()) + ordersObject.statusDesc = valueOrdersOrder["StatusDesc"].asString(); + orders_.push_back(ordersObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + +} + +std::vector ListOrdersResult::getOrders()const +{ + return orders_; +} + +long ListOrdersResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListOrdersResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListOrdersResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListOrdersResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/ListTablesRequest.cc b/dms-enterprise/src/model/ListTablesRequest.cc new file mode 100644 index 000000000..3da5473e0 --- /dev/null +++ b/dms-enterprise/src/model/ListTablesRequest.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::ListTablesRequest; + +ListTablesRequest::ListTablesRequest() : + RpcServiceRequest("dms-enterprise", "2018-11-01", "ListTables") +{ + setMethod(HttpRequest::Method::Get); +} + +ListTablesRequest::~ListTablesRequest() +{} + +std::string ListTablesRequest::getSearchName()const +{ + return searchName_; +} + +void ListTablesRequest::setSearchName(const std::string& searchName) +{ + searchName_ = searchName; + setParameter("SearchName", searchName); +} + +int ListTablesRequest::getPageSize()const +{ + return pageSize_; +} + +void ListTablesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string ListTablesRequest::getDatabaseId()const +{ + return databaseId_; +} + +void ListTablesRequest::setDatabaseId(const std::string& databaseId) +{ + databaseId_ = databaseId; + setParameter("DatabaseId", databaseId); +} + +long ListTablesRequest::getTid()const +{ + return tid_; +} + +void ListTablesRequest::setTid(long tid) +{ + tid_ = tid; + setParameter("Tid", std::to_string(tid)); +} + +int ListTablesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListTablesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/dms-enterprise/src/model/ListTablesResult.cc b/dms-enterprise/src/model/ListTablesResult.cc new file mode 100644 index 000000000..5514b4be3 --- /dev/null +++ b/dms-enterprise/src/model/ListTablesResult.cc @@ -0,0 +1,107 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +ListTablesResult::ListTablesResult() : + ServiceResult() +{} + +ListTablesResult::ListTablesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTablesResult::~ListTablesResult() +{} + +void ListTablesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTableListNode = value["TableList"]["Table"]; + for (auto valueTableListTable : allTableListNode) + { + Table tableListObject; + if(!valueTableListTable["TableId"].isNull()) + tableListObject.tableId = valueTableListTable["TableId"].asString(); + if(!valueTableListTable["DatabaseId"].isNull()) + tableListObject.databaseId = valueTableListTable["DatabaseId"].asString(); + if(!valueTableListTable["TableName"].isNull()) + tableListObject.tableName = valueTableListTable["TableName"].asString(); + if(!valueTableListTable["TableSchemaName"].isNull()) + tableListObject.tableSchemaName = valueTableListTable["TableSchemaName"].asString(); + if(!valueTableListTable["Engine"].isNull()) + tableListObject.engine = valueTableListTable["Engine"].asString(); + if(!valueTableListTable["Encoding"].isNull()) + tableListObject.encoding = valueTableListTable["Encoding"].asString(); + if(!valueTableListTable["TableType"].isNull()) + tableListObject.tableType = valueTableListTable["TableType"].asString(); + if(!valueTableListTable["NumRows"].isNull()) + tableListObject.numRows = std::stol(valueTableListTable["NumRows"].asString()); + if(!valueTableListTable["StoreCapacity"].isNull()) + tableListObject.storeCapacity = std::stol(valueTableListTable["StoreCapacity"].asString()); + auto allOwnerIdList = value["OwnerIdList"]["OwnerIds"]; + for (auto value : allOwnerIdList) + tableListObject.ownerIdList.push_back(value.asString()); + auto allOwnerNameList = value["OwnerNameList"]["OwnerNames"]; + for (auto value : allOwnerNameList) + tableListObject.ownerNameList.push_back(value.asString()); + tableList_.push_back(tableListObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + +} + +long ListTablesResult::getTotalCount()const +{ + return totalCount_; +} + +std::vector ListTablesResult::getTableList()const +{ + return tableList_; +} + +std::string ListTablesResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListTablesResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListTablesResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/ListUserPermissionsRequest.cc b/dms-enterprise/src/model/ListUserPermissionsRequest.cc new file mode 100644 index 000000000..f5374e867 --- /dev/null +++ b/dms-enterprise/src/model/ListUserPermissionsRequest.cc @@ -0,0 +1,128 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Dms_enterprise::Model::ListUserPermissionsRequest; + +ListUserPermissionsRequest::ListUserPermissionsRequest() : + RpcServiceRequest("dms-enterprise", "2018-11-01", "ListUserPermissions") +{ + setMethod(HttpRequest::Method::Get); +} + +ListUserPermissionsRequest::~ListUserPermissionsRequest() +{} + +std::string ListUserPermissionsRequest::getUserId()const +{ + return userId_; +} + +void ListUserPermissionsRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +long ListUserPermissionsRequest::getTid()const +{ + return tid_; +} + +void ListUserPermissionsRequest::setTid(long tid) +{ + tid_ = tid; + setParameter("Tid", std::to_string(tid)); +} + +int ListUserPermissionsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListUserPermissionsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListUserPermissionsRequest::getPermType()const +{ + return permType_; +} + +void ListUserPermissionsRequest::setPermType(const std::string& permType) +{ + permType_ = permType; + setParameter("PermType", permType); +} + +std::string ListUserPermissionsRequest::getDatabaseName()const +{ + return databaseName_; +} + +void ListUserPermissionsRequest::setDatabaseName(const std::string& databaseName) +{ + databaseName_ = databaseName; + setParameter("DatabaseName", databaseName); +} + +std::string ListUserPermissionsRequest::getEnvType()const +{ + return envType_; +} + +void ListUserPermissionsRequest::setEnvType(const std::string& envType) +{ + envType_ = envType; + setParameter("EnvType", envType); +} + +std::string ListUserPermissionsRequest::getDbType()const +{ + return dbType_; +} + +void ListUserPermissionsRequest::setDbType(const std::string& dbType) +{ + dbType_ = dbType; + setParameter("DbType", dbType); +} + +int ListUserPermissionsRequest::getPageSize()const +{ + return pageSize_; +} + +void ListUserPermissionsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +bool ListUserPermissionsRequest::getLogic()const +{ + return logic_; +} + +void ListUserPermissionsRequest::setLogic(bool logic) +{ + logic_ = logic; + setParameter("Logic", logic ? "true" : "false"); +} + diff --git a/dms-enterprise/src/model/ListUserPermissionsResult.cc b/dms-enterprise/src/model/ListUserPermissionsResult.cc new file mode 100644 index 000000000..dbb1fcf3c --- /dev/null +++ b/dms-enterprise/src/model/ListUserPermissionsResult.cc @@ -0,0 +1,129 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +ListUserPermissionsResult::ListUserPermissionsResult() : + ServiceResult() +{} + +ListUserPermissionsResult::ListUserPermissionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListUserPermissionsResult::~ListUserPermissionsResult() +{} + +void ListUserPermissionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allUserPermissionsNode = value["UserPermissions"]["UserPermission"]; + for (auto valueUserPermissionsUserPermission : allUserPermissionsNode) + { + UserPermission userPermissionsObject; + if(!valueUserPermissionsUserPermission["UserId"].isNull()) + userPermissionsObject.userId = valueUserPermissionsUserPermission["UserId"].asString(); + if(!valueUserPermissionsUserPermission["UserNickName"].isNull()) + userPermissionsObject.userNickName = valueUserPermissionsUserPermission["UserNickName"].asString(); + if(!valueUserPermissionsUserPermission["DsType"].isNull()) + userPermissionsObject.dsType = valueUserPermissionsUserPermission["DsType"].asString(); + if(!valueUserPermissionsUserPermission["DbId"].isNull()) + userPermissionsObject.dbId = valueUserPermissionsUserPermission["DbId"].asString(); + if(!valueUserPermissionsUserPermission["Logic"].isNull()) + userPermissionsObject.logic = valueUserPermissionsUserPermission["Logic"].asString() == "true"; + if(!valueUserPermissionsUserPermission["SchemaName"].isNull()) + userPermissionsObject.schemaName = valueUserPermissionsUserPermission["SchemaName"].asString(); + if(!valueUserPermissionsUserPermission["SearchName"].isNull()) + userPermissionsObject.searchName = valueUserPermissionsUserPermission["SearchName"].asString(); + if(!valueUserPermissionsUserPermission["InstanceId"].isNull()) + userPermissionsObject.instanceId = valueUserPermissionsUserPermission["InstanceId"].asString(); + if(!valueUserPermissionsUserPermission["EnvType"].isNull()) + userPermissionsObject.envType = valueUserPermissionsUserPermission["EnvType"].asString(); + if(!valueUserPermissionsUserPermission["Alias"].isNull()) + userPermissionsObject.alias = valueUserPermissionsUserPermission["Alias"].asString(); + if(!valueUserPermissionsUserPermission["DbType"].isNull()) + userPermissionsObject.dbType = valueUserPermissionsUserPermission["DbType"].asString(); + if(!valueUserPermissionsUserPermission["TableName"].isNull()) + userPermissionsObject.tableName = valueUserPermissionsUserPermission["TableName"].asString(); + if(!valueUserPermissionsUserPermission["TableId"].isNull()) + userPermissionsObject.tableId = valueUserPermissionsUserPermission["TableId"].asString(); + if(!valueUserPermissionsUserPermission["ColumnName"].isNull()) + userPermissionsObject.columnName = valueUserPermissionsUserPermission["ColumnName"].asString(); + auto allPermDetailsNode = allUserPermissionsNode["PermDetails"]["PermDetail"]; + for (auto allUserPermissionsNodePermDetailsPermDetail : allPermDetailsNode) + { + UserPermission::PermDetail permDetailsObject; + if(!allUserPermissionsNodePermDetailsPermDetail["PermType"].isNull()) + permDetailsObject.permType = allUserPermissionsNodePermDetailsPermDetail["PermType"].asString(); + if(!allUserPermissionsNodePermDetailsPermDetail["ExpireDate"].isNull()) + permDetailsObject.expireDate = allUserPermissionsNodePermDetailsPermDetail["ExpireDate"].asString(); + if(!allUserPermissionsNodePermDetailsPermDetail["CreateDate"].isNull()) + permDetailsObject.createDate = allUserPermissionsNodePermDetailsPermDetail["CreateDate"].asString(); + if(!allUserPermissionsNodePermDetailsPermDetail["OriginFrom"].isNull()) + permDetailsObject.originFrom = allUserPermissionsNodePermDetailsPermDetail["OriginFrom"].asString(); + if(!allUserPermissionsNodePermDetailsPermDetail["UserAccessId"].isNull()) + permDetailsObject.userAccessId = allUserPermissionsNodePermDetailsPermDetail["UserAccessId"].asString(); + if(!allUserPermissionsNodePermDetailsPermDetail["ExtraData"].isNull()) + permDetailsObject.extraData = allUserPermissionsNodePermDetailsPermDetail["ExtraData"].asString(); + userPermissionsObject.permDetails.push_back(permDetailsObject); + } + userPermissions_.push_back(userPermissionsObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + +} + +long ListUserPermissionsResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListUserPermissionsResult::getErrorCode()const +{ + return errorCode_; +} + +std::vector ListUserPermissionsResult::getUserPermissions()const +{ + return userPermissions_; +} + +std::string ListUserPermissionsResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListUserPermissionsResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/ListUsersRequest.cc b/dms-enterprise/src/model/ListUsersRequest.cc new file mode 100644 index 000000000..f9ea4cec3 --- /dev/null +++ b/dms-enterprise/src/model/ListUsersRequest.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::ListUsersRequest; + +ListUsersRequest::ListUsersRequest() : + RpcServiceRequest("dms-enterprise", "2018-11-01", "ListUsers") +{ + setMethod(HttpRequest::Method::Get); +} + +ListUsersRequest::~ListUsersRequest() +{} + +std::string ListUsersRequest::getUserState()const +{ + return userState_; +} + +void ListUsersRequest::setUserState(const std::string& userState) +{ + userState_ = userState; + setParameter("UserState", userState); +} + +std::string ListUsersRequest::getRole()const +{ + return role_; +} + +void ListUsersRequest::setRole(const std::string& role) +{ + role_ = role; + setParameter("Role", role); +} + +int ListUsersRequest::getPageSize()const +{ + return pageSize_; +} + +void ListUsersRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string ListUsersRequest::getSearchKey()const +{ + return searchKey_; +} + +void ListUsersRequest::setSearchKey(const std::string& searchKey) +{ + searchKey_ = searchKey; + setParameter("SearchKey", searchKey); +} + +long ListUsersRequest::getTid()const +{ + return tid_; +} + +void ListUsersRequest::setTid(long tid) +{ + tid_ = tid; + setParameter("Tid", std::to_string(tid)); +} + +int ListUsersRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListUsersRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/dms-enterprise/src/model/ListUsersResult.cc b/dms-enterprise/src/model/ListUsersResult.cc new file mode 100644 index 000000000..975c3bbe5 --- /dev/null +++ b/dms-enterprise/src/model/ListUsersResult.cc @@ -0,0 +1,101 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +ListUsersResult::ListUsersResult() : + ServiceResult() +{} + +ListUsersResult::ListUsersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListUsersResult::~ListUsersResult() +{} + +void ListUsersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allUserListNode = value["UserList"]["User"]; + for (auto valueUserListUser : allUserListNode) + { + User userListObject; + if(!valueUserListUser["UserId"].isNull()) + userListObject.userId = valueUserListUser["UserId"].asString(); + if(!valueUserListUser["Uid"].isNull()) + userListObject.uid = std::stol(valueUserListUser["Uid"].asString()); + if(!valueUserListUser["NickName"].isNull()) + userListObject.nickName = valueUserListUser["NickName"].asString(); + if(!valueUserListUser["Mobile"].isNull()) + userListObject.mobile = valueUserListUser["Mobile"].asString(); + if(!valueUserListUser["ParentUid"].isNull()) + userListObject.parentUid = std::stol(valueUserListUser["ParentUid"].asString()); + if(!valueUserListUser["State"].isNull()) + userListObject.state = valueUserListUser["State"].asString(); + auto allRoleIdList = value["RoleIdList"]["RoleIds"]; + for (auto value : allRoleIdList) + userListObject.roleIdList.push_back(value.asString()); + auto allRoleNameList = value["RoleNameList"]["RoleNames"]; + for (auto value : allRoleNameList) + userListObject.roleNameList.push_back(value.asString()); + userList_.push_back(userListObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + +} + +long ListUsersResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListUsersResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListUsersResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::vector ListUsersResult::getUserList()const +{ + return userList_; +} + +bool ListUsersResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/ListWorkFlowNodesRequest.cc b/dms-enterprise/src/model/ListWorkFlowNodesRequest.cc new file mode 100644 index 000000000..c18fdd345 --- /dev/null +++ b/dms-enterprise/src/model/ListWorkFlowNodesRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::ListWorkFlowNodesRequest; + +ListWorkFlowNodesRequest::ListWorkFlowNodesRequest() : + RpcServiceRequest("dms-enterprise", "2018-11-01", "ListWorkFlowNodes") +{ + setMethod(HttpRequest::Method::Post); +} + +ListWorkFlowNodesRequest::~ListWorkFlowNodesRequest() +{} + +std::string ListWorkFlowNodesRequest::getSearchName()const +{ + return searchName_; +} + +void ListWorkFlowNodesRequest::setSearchName(const std::string& searchName) +{ + searchName_ = searchName; + setParameter("SearchName", searchName); +} + +long ListWorkFlowNodesRequest::getTid()const +{ + return tid_; +} + +void ListWorkFlowNodesRequest::setTid(long tid) +{ + tid_ = tid; + setParameter("Tid", std::to_string(tid)); +} + diff --git a/dms-enterprise/src/model/ListWorkFlowNodesResult.cc b/dms-enterprise/src/model/ListWorkFlowNodesResult.cc new file mode 100644 index 000000000..9b7bfe839 --- /dev/null +++ b/dms-enterprise/src/model/ListWorkFlowNodesResult.cc @@ -0,0 +1,100 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +ListWorkFlowNodesResult::ListWorkFlowNodesResult() : + ServiceResult() +{} + +ListWorkFlowNodesResult::ListWorkFlowNodesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListWorkFlowNodesResult::~ListWorkFlowNodesResult() +{} + +void ListWorkFlowNodesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allWorkflowNodesNode = value["WorkflowNodes"]["WorkflowNode"]; + for (auto valueWorkflowNodesWorkflowNode : allWorkflowNodesNode) + { + WorkflowNode workflowNodesObject; + if(!valueWorkflowNodesWorkflowNode["NodeName"].isNull()) + workflowNodesObject.nodeName = valueWorkflowNodesWorkflowNode["NodeName"].asString(); + if(!valueWorkflowNodesWorkflowNode["Comment"].isNull()) + workflowNodesObject.comment = valueWorkflowNodesWorkflowNode["Comment"].asString(); + if(!valueWorkflowNodesWorkflowNode["NodeId"].isNull()) + workflowNodesObject.nodeId = std::stol(valueWorkflowNodesWorkflowNode["NodeId"].asString()); + if(!valueWorkflowNodesWorkflowNode["NodeType"].isNull()) + workflowNodesObject.nodeType = valueWorkflowNodesWorkflowNode["NodeType"].asString(); + if(!valueWorkflowNodesWorkflowNode["CreateUserId"].isNull()) + workflowNodesObject.createUserId = std::stol(valueWorkflowNodesWorkflowNode["CreateUserId"].asString()); + if(!valueWorkflowNodesWorkflowNode["CreateUserNickName"].isNull()) + workflowNodesObject.createUserNickName = valueWorkflowNodesWorkflowNode["CreateUserNickName"].asString(); + auto allAuditUsersNode = allWorkflowNodesNode["AuditUsers"]["AuditUser"]; + for (auto allWorkflowNodesNodeAuditUsersAuditUser : allAuditUsersNode) + { + WorkflowNode::AuditUser auditUsersObject; + if(!allWorkflowNodesNodeAuditUsersAuditUser["UserId"].isNull()) + auditUsersObject.userId = std::stol(allWorkflowNodesNodeAuditUsersAuditUser["UserId"].asString()); + if(!allWorkflowNodesNodeAuditUsersAuditUser["NickName"].isNull()) + auditUsersObject.nickName = allWorkflowNodesNodeAuditUsersAuditUser["NickName"].asString(); + if(!allWorkflowNodesNodeAuditUsersAuditUser["RealName"].isNull()) + auditUsersObject.realName = allWorkflowNodesNodeAuditUsersAuditUser["RealName"].asString(); + workflowNodesObject.auditUsers.push_back(auditUsersObject); + } + workflowNodes_.push_back(workflowNodesObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string ListWorkFlowNodesResult::getErrorCode()const +{ + return errorCode_; +} + +std::vector ListWorkFlowNodesResult::getWorkflowNodes()const +{ + return workflowNodes_; +} + +std::string ListWorkFlowNodesResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListWorkFlowNodesResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/ListWorkFlowTemplatesRequest.cc b/dms-enterprise/src/model/ListWorkFlowTemplatesRequest.cc new file mode 100644 index 000000000..a27221d45 --- /dev/null +++ b/dms-enterprise/src/model/ListWorkFlowTemplatesRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::ListWorkFlowTemplatesRequest; + +ListWorkFlowTemplatesRequest::ListWorkFlowTemplatesRequest() : + RpcServiceRequest("dms-enterprise", "2018-11-01", "ListWorkFlowTemplates") +{ + setMethod(HttpRequest::Method::Post); +} + +ListWorkFlowTemplatesRequest::~ListWorkFlowTemplatesRequest() +{} + +std::string ListWorkFlowTemplatesRequest::getSearchName()const +{ + return searchName_; +} + +void ListWorkFlowTemplatesRequest::setSearchName(const std::string& searchName) +{ + searchName_ = searchName; + setParameter("SearchName", searchName); +} + +long ListWorkFlowTemplatesRequest::getTid()const +{ + return tid_; +} + +void ListWorkFlowTemplatesRequest::setTid(long tid) +{ + tid_ = tid; + setParameter("Tid", std::to_string(tid)); +} + diff --git a/dms-enterprise/src/model/ListWorkFlowTemplatesResult.cc b/dms-enterprise/src/model/ListWorkFlowTemplatesResult.cc new file mode 100644 index 000000000..25a6a7692 --- /dev/null +++ b/dms-enterprise/src/model/ListWorkFlowTemplatesResult.cc @@ -0,0 +1,104 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +ListWorkFlowTemplatesResult::ListWorkFlowTemplatesResult() : + ServiceResult() +{} + +ListWorkFlowTemplatesResult::ListWorkFlowTemplatesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListWorkFlowTemplatesResult::~ListWorkFlowTemplatesResult() +{} + +void ListWorkFlowTemplatesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allWorkFlowTemplatesNode = value["WorkFlowTemplates"]["WorkFlowTemplate"]; + for (auto valueWorkFlowTemplatesWorkFlowTemplate : allWorkFlowTemplatesNode) + { + WorkFlowTemplate workFlowTemplatesObject; + if(!valueWorkFlowTemplatesWorkFlowTemplate["TemplateName"].isNull()) + workFlowTemplatesObject.templateName = valueWorkFlowTemplatesWorkFlowTemplate["TemplateName"].asString(); + if(!valueWorkFlowTemplatesWorkFlowTemplate["Comment"].isNull()) + workFlowTemplatesObject.comment = valueWorkFlowTemplatesWorkFlowTemplate["Comment"].asString(); + if(!valueWorkFlowTemplatesWorkFlowTemplate["TemplateId"].isNull()) + workFlowTemplatesObject.templateId = std::stol(valueWorkFlowTemplatesWorkFlowTemplate["TemplateId"].asString()); + if(!valueWorkFlowTemplatesWorkFlowTemplate["IsSystem"].isNull()) + workFlowTemplatesObject.isSystem = std::stoi(valueWorkFlowTemplatesWorkFlowTemplate["IsSystem"].asString()); + if(!valueWorkFlowTemplatesWorkFlowTemplate["Enabled"].isNull()) + workFlowTemplatesObject.enabled = valueWorkFlowTemplatesWorkFlowTemplate["Enabled"].asString(); + auto allWorkflowNodesNode = allWorkFlowTemplatesNode["WorkflowNodes"]["WorkflowNode"]; + for (auto allWorkFlowTemplatesNodeWorkflowNodesWorkflowNode : allWorkflowNodesNode) + { + WorkFlowTemplate::WorkflowNode workflowNodesObject; + if(!allWorkFlowTemplatesNodeWorkflowNodesWorkflowNode["NodeId"].isNull()) + workflowNodesObject.nodeId = std::stol(allWorkFlowTemplatesNodeWorkflowNodesWorkflowNode["NodeId"].asString()); + if(!allWorkFlowTemplatesNodeWorkflowNodesWorkflowNode["TemplateId"].isNull()) + workflowNodesObject.templateId = std::stol(allWorkFlowTemplatesNodeWorkflowNodesWorkflowNode["TemplateId"].asString()); + if(!allWorkFlowTemplatesNodeWorkflowNodesWorkflowNode["NodeName"].isNull()) + workflowNodesObject.nodeName = allWorkFlowTemplatesNodeWorkflowNodesWorkflowNode["NodeName"].asString(); + if(!allWorkFlowTemplatesNodeWorkflowNodesWorkflowNode["NodeType"].isNull()) + workflowNodesObject.nodeType = allWorkFlowTemplatesNodeWorkflowNodesWorkflowNode["NodeType"].asString(); + if(!allWorkFlowTemplatesNodeWorkflowNodesWorkflowNode["Comment"].isNull()) + workflowNodesObject.comment = allWorkFlowTemplatesNodeWorkflowNodesWorkflowNode["Comment"].asString(); + if(!allWorkFlowTemplatesNodeWorkflowNodesWorkflowNode["Position"].isNull()) + workflowNodesObject.position = std::stoi(allWorkFlowTemplatesNodeWorkflowNodesWorkflowNode["Position"].asString()); + workFlowTemplatesObject.workflowNodes.push_back(workflowNodesObject); + } + workFlowTemplates_.push_back(workFlowTemplatesObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string ListWorkFlowTemplatesResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListWorkFlowTemplatesResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListWorkFlowTemplatesResult::getSuccess()const +{ + return success_; +} + +std::vector ListWorkFlowTemplatesResult::getWorkFlowTemplates()const +{ + return workFlowTemplates_; +} + diff --git a/dms-enterprise/src/model/RegisterInstanceRequest.cc b/dms-enterprise/src/model/RegisterInstanceRequest.cc new file mode 100644 index 000000000..5a578855f --- /dev/null +++ b/dms-enterprise/src/model/RegisterInstanceRequest.cc @@ -0,0 +1,260 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Dms_enterprise::Model::RegisterInstanceRequest; + +RegisterInstanceRequest::RegisterInstanceRequest() : + RpcServiceRequest("dms-enterprise", "2018-11-01", "RegisterInstance") +{ + setMethod(HttpRequest::Method::Post); +} + +RegisterInstanceRequest::~RegisterInstanceRequest() +{} + +std::string RegisterInstanceRequest::getEcsRegion()const +{ + return ecsRegion_; +} + +void RegisterInstanceRequest::setEcsRegion(const std::string& ecsRegion) +{ + ecsRegion_ = ecsRegion; + setParameter("EcsRegion", ecsRegion); +} + +int RegisterInstanceRequest::getDdlOnline()const +{ + return ddlOnline_; +} + +void RegisterInstanceRequest::setDdlOnline(int ddlOnline) +{ + ddlOnline_ = ddlOnline; + setParameter("DdlOnline", std::to_string(ddlOnline)); +} + +int RegisterInstanceRequest::getUseDsql()const +{ + return useDsql_; +} + +void RegisterInstanceRequest::setUseDsql(int useDsql) +{ + useDsql_ = useDsql; + setParameter("UseDsql", std::to_string(useDsql)); +} + +std::string RegisterInstanceRequest::getNetworkType()const +{ + return networkType_; +} + +void RegisterInstanceRequest::setNetworkType(const std::string& networkType) +{ + networkType_ = networkType; + setParameter("NetworkType", networkType); +} + +long RegisterInstanceRequest::getTid()const +{ + return tid_; +} + +void RegisterInstanceRequest::setTid(long tid) +{ + tid_ = tid; + setParameter("Tid", std::to_string(tid)); +} + +std::string RegisterInstanceRequest::getSid()const +{ + return sid_; +} + +void RegisterInstanceRequest::setSid(const std::string& sid) +{ + sid_ = sid; + setParameter("Sid", sid); +} + +std::string RegisterInstanceRequest::getDataLinkName()const +{ + return dataLinkName_; +} + +void RegisterInstanceRequest::setDataLinkName(const std::string& dataLinkName) +{ + dataLinkName_ = dataLinkName; + setParameter("DataLinkName", dataLinkName); +} + +std::string RegisterInstanceRequest::getInstanceSource()const +{ + return instanceSource_; +} + +void RegisterInstanceRequest::setInstanceSource(const std::string& instanceSource) +{ + instanceSource_ = instanceSource; + setParameter("InstanceSource", instanceSource); +} + +std::string RegisterInstanceRequest::getEnvType()const +{ + return envType_; +} + +void RegisterInstanceRequest::setEnvType(const std::string& envType) +{ + envType_ = envType; + setParameter("EnvType", envType); +} + +std::string RegisterInstanceRequest::getHost()const +{ + return host_; +} + +void RegisterInstanceRequest::setHost(const std::string& host) +{ + host_ = host; + setParameter("Host", host); +} + +std::string RegisterInstanceRequest::getInstanceType()const +{ + return instanceType_; +} + +void RegisterInstanceRequest::setInstanceType(const std::string& instanceType) +{ + instanceType_ = instanceType; + setParameter("InstanceType", instanceType); +} + +int RegisterInstanceRequest::getQueryTimeout()const +{ + return queryTimeout_; +} + +void RegisterInstanceRequest::setQueryTimeout(int queryTimeout) +{ + queryTimeout_ = queryTimeout; + setParameter("QueryTimeout", std::to_string(queryTimeout)); +} + +std::string RegisterInstanceRequest::getEcsInstanceId()const +{ + return ecsInstanceId_; +} + +void RegisterInstanceRequest::setEcsInstanceId(const std::string& ecsInstanceId) +{ + ecsInstanceId_ = ecsInstanceId; + setParameter("EcsInstanceId", ecsInstanceId); +} + +int RegisterInstanceRequest::getExportTimeout()const +{ + return exportTimeout_; +} + +void RegisterInstanceRequest::setExportTimeout(int exportTimeout) +{ + exportTimeout_ = exportTimeout; + setParameter("ExportTimeout", std::to_string(exportTimeout)); +} + +std::string RegisterInstanceRequest::getDatabasePassword()const +{ + return databasePassword_; +} + +void RegisterInstanceRequest::setDatabasePassword(const std::string& databasePassword) +{ + databasePassword_ = databasePassword; + setParameter("DatabasePassword", databasePassword); +} + +std::string RegisterInstanceRequest::getInstanceAlias()const +{ + return instanceAlias_; +} + +void RegisterInstanceRequest::setInstanceAlias(const std::string& instanceAlias) +{ + instanceAlias_ = instanceAlias; + setParameter("InstanceAlias", instanceAlias); +} + +std::string RegisterInstanceRequest::getDatabaseUser()const +{ + return databaseUser_; +} + +void RegisterInstanceRequest::setDatabaseUser(const std::string& databaseUser) +{ + databaseUser_ = databaseUser; + setParameter("DatabaseUser", databaseUser); +} + +int RegisterInstanceRequest::getPort()const +{ + return port_; +} + +void RegisterInstanceRequest::setPort(int port) +{ + port_ = port; + setParameter("Port", std::to_string(port)); +} + +std::string RegisterInstanceRequest::getVpcId()const +{ + return vpcId_; +} + +void RegisterInstanceRequest::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; + setParameter("VpcId", vpcId); +} + +long RegisterInstanceRequest::getDbaUid()const +{ + return dbaUid_; +} + +void RegisterInstanceRequest::setDbaUid(long dbaUid) +{ + dbaUid_ = dbaUid; + setParameter("DbaUid", std::to_string(dbaUid)); +} + +std::string RegisterInstanceRequest::getSafeRule()const +{ + return safeRule_; +} + +void RegisterInstanceRequest::setSafeRule(const std::string& safeRule) +{ + safeRule_ = safeRule; + setParameter("SafeRule", safeRule); +} + diff --git a/dms-enterprise/src/model/RegisterInstanceResult.cc b/dms-enterprise/src/model/RegisterInstanceResult.cc new file mode 100644 index 000000000..3ff812d24 --- /dev/null +++ b/dms-enterprise/src/model/RegisterInstanceResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +RegisterInstanceResult::RegisterInstanceResult() : + ServiceResult() +{} + +RegisterInstanceResult::RegisterInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RegisterInstanceResult::~RegisterInstanceResult() +{} + +void RegisterInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string RegisterInstanceResult::getErrorCode()const +{ + return errorCode_; +} + +std::string RegisterInstanceResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool RegisterInstanceResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/RegisterUserRequest.cc b/dms-enterprise/src/model/RegisterUserRequest.cc new file mode 100644 index 000000000..9440c1383 --- /dev/null +++ b/dms-enterprise/src/model/RegisterUserRequest.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::RegisterUserRequest; + +RegisterUserRequest::RegisterUserRequest() : + RpcServiceRequest("dms-enterprise", "2018-11-01", "RegisterUser") +{ + setMethod(HttpRequest::Method::Post); +} + +RegisterUserRequest::~RegisterUserRequest() +{} + +std::string RegisterUserRequest::getRoleNames()const +{ + return roleNames_; +} + +void RegisterUserRequest::setRoleNames(const std::string& roleNames) +{ + roleNames_ = roleNames; + setParameter("RoleNames", roleNames); +} + +long RegisterUserRequest::getUid()const +{ + return uid_; +} + +void RegisterUserRequest::setUid(long uid) +{ + uid_ = uid; + setParameter("Uid", std::to_string(uid)); +} + +std::string RegisterUserRequest::getUserNick()const +{ + return userNick_; +} + +void RegisterUserRequest::setUserNick(const std::string& userNick) +{ + userNick_ = userNick; + setParameter("UserNick", userNick); +} + +std::string RegisterUserRequest::getMobile()const +{ + return mobile_; +} + +void RegisterUserRequest::setMobile(const std::string& mobile) +{ + mobile_ = mobile; + setParameter("Mobile", mobile); +} + +long RegisterUserRequest::getTid()const +{ + return tid_; +} + +void RegisterUserRequest::setTid(long tid) +{ + tid_ = tid; + setParameter("Tid", std::to_string(tid)); +} + diff --git a/dms-enterprise/src/model/RegisterUserResult.cc b/dms-enterprise/src/model/RegisterUserResult.cc new file mode 100644 index 000000000..d6dfacca3 --- /dev/null +++ b/dms-enterprise/src/model/RegisterUserResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +RegisterUserResult::RegisterUserResult() : + ServiceResult() +{} + +RegisterUserResult::RegisterUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RegisterUserResult::~RegisterUserResult() +{} + +void RegisterUserResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string RegisterUserResult::getErrorCode()const +{ + return errorCode_; +} + +std::string RegisterUserResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool RegisterUserResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/RevokeUserPermissionRequest.cc b/dms-enterprise/src/model/RevokeUserPermissionRequest.cc new file mode 100644 index 000000000..0135c6985 --- /dev/null +++ b/dms-enterprise/src/model/RevokeUserPermissionRequest.cc @@ -0,0 +1,128 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Dms_enterprise::Model::RevokeUserPermissionRequest; + +RevokeUserPermissionRequest::RevokeUserPermissionRequest() : + RpcServiceRequest("dms-enterprise", "2018-11-01", "RevokeUserPermission") +{ + setMethod(HttpRequest::Method::Post); +} + +RevokeUserPermissionRequest::~RevokeUserPermissionRequest() +{} + +std::string RevokeUserPermissionRequest::getPermTypes()const +{ + return permTypes_; +} + +void RevokeUserPermissionRequest::setPermTypes(const std::string& permTypes) +{ + permTypes_ = permTypes; + setParameter("PermTypes", permTypes); +} + +std::string RevokeUserPermissionRequest::getUserAccessId()const +{ + return userAccessId_; +} + +void RevokeUserPermissionRequest::setUserAccessId(const std::string& userAccessId) +{ + userAccessId_ = userAccessId; + setParameter("UserAccessId", userAccessId); +} + +std::string RevokeUserPermissionRequest::getDsType()const +{ + return dsType_; +} + +void RevokeUserPermissionRequest::setDsType(const std::string& dsType) +{ + dsType_ = dsType; + setParameter("DsType", dsType); +} + +std::string RevokeUserPermissionRequest::getUserId()const +{ + return userId_; +} + +void RevokeUserPermissionRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +long RevokeUserPermissionRequest::getTid()const +{ + return tid_; +} + +void RevokeUserPermissionRequest::setTid(long tid) +{ + tid_ = tid; + setParameter("Tid", std::to_string(tid)); +} + +std::string RevokeUserPermissionRequest::getDbId()const +{ + return dbId_; +} + +void RevokeUserPermissionRequest::setDbId(const std::string& dbId) +{ + dbId_ = dbId; + setParameter("DbId", dbId); +} + +std::string RevokeUserPermissionRequest::getTableId()const +{ + return tableId_; +} + +void RevokeUserPermissionRequest::setTableId(const std::string& tableId) +{ + tableId_ = tableId; + setParameter("TableId", tableId); +} + +bool RevokeUserPermissionRequest::getLogic()const +{ + return logic_; +} + +void RevokeUserPermissionRequest::setLogic(bool logic) +{ + logic_ = logic; + setParameter("Logic", logic ? "true" : "false"); +} + +std::string RevokeUserPermissionRequest::getTableName()const +{ + return tableName_; +} + +void RevokeUserPermissionRequest::setTableName(const std::string& tableName) +{ + tableName_ = tableName; + setParameter("TableName", tableName); +} + diff --git a/dms-enterprise/src/model/RevokeUserPermissionResult.cc b/dms-enterprise/src/model/RevokeUserPermissionResult.cc new file mode 100644 index 000000000..e1b7917a5 --- /dev/null +++ b/dms-enterprise/src/model/RevokeUserPermissionResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +RevokeUserPermissionResult::RevokeUserPermissionResult() : + ServiceResult() +{} + +RevokeUserPermissionResult::RevokeUserPermissionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RevokeUserPermissionResult::~RevokeUserPermissionResult() +{} + +void RevokeUserPermissionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string RevokeUserPermissionResult::getErrorCode()const +{ + return errorCode_; +} + +std::string RevokeUserPermissionResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool RevokeUserPermissionResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/SearchDatabaseRequest.cc b/dms-enterprise/src/model/SearchDatabaseRequest.cc new file mode 100644 index 000000000..267ca7ab5 --- /dev/null +++ b/dms-enterprise/src/model/SearchDatabaseRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::SearchDatabaseRequest; + +SearchDatabaseRequest::SearchDatabaseRequest() : + RpcServiceRequest("dms-enterprise", "2018-11-01", "SearchDatabase") +{ + setMethod(HttpRequest::Method::Get); +} + +SearchDatabaseRequest::~SearchDatabaseRequest() +{} + +std::string SearchDatabaseRequest::getSearchKey()const +{ + return searchKey_; +} + +void SearchDatabaseRequest::setSearchKey(const std::string& searchKey) +{ + searchKey_ = searchKey; + setParameter("SearchKey", searchKey); +} + +std::string SearchDatabaseRequest::getSearchRange()const +{ + return searchRange_; +} + +void SearchDatabaseRequest::setSearchRange(const std::string& searchRange) +{ + searchRange_ = searchRange; + setParameter("SearchRange", searchRange); +} + +long SearchDatabaseRequest::getTid()const +{ + return tid_; +} + +void SearchDatabaseRequest::setTid(long tid) +{ + tid_ = tid; + setParameter("Tid", std::to_string(tid)); +} + +int SearchDatabaseRequest::getPageNumber()const +{ + return pageNumber_; +} + +void SearchDatabaseRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string SearchDatabaseRequest::getSearchTarget()const +{ + return searchTarget_; +} + +void SearchDatabaseRequest::setSearchTarget(const std::string& searchTarget) +{ + searchTarget_ = searchTarget; + setParameter("SearchTarget", searchTarget); +} + +int SearchDatabaseRequest::getPageSize()const +{ + return pageSize_; +} + +void SearchDatabaseRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string SearchDatabaseRequest::getEnvType()const +{ + return envType_; +} + +void SearchDatabaseRequest::setEnvType(const std::string& envType) +{ + envType_ = envType; + setParameter("EnvType", envType); +} + +std::string SearchDatabaseRequest::getDbType()const +{ + return dbType_; +} + +void SearchDatabaseRequest::setDbType(const std::string& dbType) +{ + dbType_ = dbType; + setParameter("DbType", dbType); +} + diff --git a/dms-enterprise/src/model/SearchDatabaseResult.cc b/dms-enterprise/src/model/SearchDatabaseResult.cc new file mode 100644 index 000000000..4291fb57f --- /dev/null +++ b/dms-enterprise/src/model/SearchDatabaseResult.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +SearchDatabaseResult::SearchDatabaseResult() : + ServiceResult() +{} + +SearchDatabaseResult::SearchDatabaseResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SearchDatabaseResult::~SearchDatabaseResult() +{} + +void SearchDatabaseResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allSearchDatabaseListNode = value["SearchDatabaseList"]["SearchDatabase"]; + for (auto valueSearchDatabaseListSearchDatabase : allSearchDatabaseListNode) + { + SearchDatabase searchDatabaseListObject; + if(!valueSearchDatabaseListSearchDatabase["DatabaseId"].isNull()) + searchDatabaseListObject.databaseId = valueSearchDatabaseListSearchDatabase["DatabaseId"].asString(); + if(!valueSearchDatabaseListSearchDatabase["Logic"].isNull()) + searchDatabaseListObject.logic = valueSearchDatabaseListSearchDatabase["Logic"].asString() == "true"; + if(!valueSearchDatabaseListSearchDatabase["EnvType"].isNull()) + searchDatabaseListObject.envType = valueSearchDatabaseListSearchDatabase["EnvType"].asString(); + if(!valueSearchDatabaseListSearchDatabase["SchemaName"].isNull()) + searchDatabaseListObject.schemaName = valueSearchDatabaseListSearchDatabase["SchemaName"].asString(); + if(!valueSearchDatabaseListSearchDatabase["SearchName"].isNull()) + searchDatabaseListObject.searchName = valueSearchDatabaseListSearchDatabase["SearchName"].asString(); + if(!valueSearchDatabaseListSearchDatabase["DbType"].isNull()) + searchDatabaseListObject.dbType = valueSearchDatabaseListSearchDatabase["DbType"].asString(); + if(!valueSearchDatabaseListSearchDatabase["Host"].isNull()) + searchDatabaseListObject.host = valueSearchDatabaseListSearchDatabase["Host"].asString(); + if(!valueSearchDatabaseListSearchDatabase["Port"].isNull()) + searchDatabaseListObject.port = std::stoi(valueSearchDatabaseListSearchDatabase["Port"].asString()); + if(!valueSearchDatabaseListSearchDatabase["Sid"].isNull()) + searchDatabaseListObject.sid = valueSearchDatabaseListSearchDatabase["Sid"].asString(); + if(!valueSearchDatabaseListSearchDatabase["DbaId"].isNull()) + searchDatabaseListObject.dbaId = valueSearchDatabaseListSearchDatabase["DbaId"].asString(); + if(!valueSearchDatabaseListSearchDatabase["Encoding"].isNull()) + searchDatabaseListObject.encoding = valueSearchDatabaseListSearchDatabase["Encoding"].asString(); + if(!valueSearchDatabaseListSearchDatabase["Alias"].isNull()) + searchDatabaseListObject.alias = valueSearchDatabaseListSearchDatabase["Alias"].asString(); + if(!valueSearchDatabaseListSearchDatabase["DatalinkName"].isNull()) + searchDatabaseListObject.datalinkName = valueSearchDatabaseListSearchDatabase["DatalinkName"].asString(); + auto allOwnerIdList = value["OwnerIdList"]["OwnerIds"]; + for (auto value : allOwnerIdList) + searchDatabaseListObject.ownerIdList.push_back(value.asString()); + auto allOwnerNameList = value["OwnerNameList"]["OwnerNames"]; + for (auto value : allOwnerNameList) + searchDatabaseListObject.ownerNameList.push_back(value.asString()); + searchDatabaseList_.push_back(searchDatabaseListObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + +} + +long SearchDatabaseResult::getTotalCount()const +{ + return totalCount_; +} + +std::vector SearchDatabaseResult::getSearchDatabaseList()const +{ + return searchDatabaseList_; +} + +std::string SearchDatabaseResult::getErrorCode()const +{ + return errorCode_; +} + +std::string SearchDatabaseResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool SearchDatabaseResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/SearchTableRequest.cc b/dms-enterprise/src/model/SearchTableRequest.cc new file mode 100644 index 000000000..c64f6eb8a --- /dev/null +++ b/dms-enterprise/src/model/SearchTableRequest.cc @@ -0,0 +1,106 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Dms_enterprise::Model::SearchTableRequest; + +SearchTableRequest::SearchTableRequest() : + RpcServiceRequest("dms-enterprise", "2018-11-01", "SearchTable") +{ + setMethod(HttpRequest::Method::Get); +} + +SearchTableRequest::~SearchTableRequest() +{} + +std::string SearchTableRequest::getSearchTarget()const +{ + return searchTarget_; +} + +void SearchTableRequest::setSearchTarget(const std::string& searchTarget) +{ + searchTarget_ = searchTarget; + setParameter("SearchTarget", searchTarget); +} + +int SearchTableRequest::getPageSize()const +{ + return pageSize_; +} + +void SearchTableRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string SearchTableRequest::getEnvType()const +{ + return envType_; +} + +void SearchTableRequest::setEnvType(const std::string& envType) +{ + envType_ = envType; + setParameter("EnvType", envType); +} + +std::string SearchTableRequest::getSearchKey()const +{ + return searchKey_; +} + +void SearchTableRequest::setSearchKey(const std::string& searchKey) +{ + searchKey_ = searchKey; + setParameter("SearchKey", searchKey); +} + +std::string SearchTableRequest::getSearchRange()const +{ + return searchRange_; +} + +void SearchTableRequest::setSearchRange(const std::string& searchRange) +{ + searchRange_ = searchRange; + setParameter("SearchRange", searchRange); +} + +long SearchTableRequest::getTid()const +{ + return tid_; +} + +void SearchTableRequest::setTid(long tid) +{ + tid_ = tid; + setParameter("Tid", std::to_string(tid)); +} + +int SearchTableRequest::getPageNumber()const +{ + return pageNumber_; +} + +void SearchTableRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/dms-enterprise/src/model/SearchTableResult.cc b/dms-enterprise/src/model/SearchTableResult.cc new file mode 100644 index 000000000..f7cf729e4 --- /dev/null +++ b/dms-enterprise/src/model/SearchTableResult.cc @@ -0,0 +1,107 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +SearchTableResult::SearchTableResult() : + ServiceResult() +{} + +SearchTableResult::SearchTableResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SearchTableResult::~SearchTableResult() +{} + +void SearchTableResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allSearchTableListNode = value["SearchTableList"]["SearchTable"]; + for (auto valueSearchTableListSearchTable : allSearchTableListNode) + { + SearchTable searchTableListObject; + if(!valueSearchTableListSearchTable["TableId"].isNull()) + searchTableListObject.tableId = valueSearchTableListSearchTable["TableId"].asString(); + if(!valueSearchTableListSearchTable["DatabaseId"].isNull()) + searchTableListObject.databaseId = valueSearchTableListSearchTable["DatabaseId"].asString(); + if(!valueSearchTableListSearchTable["TableName"].isNull()) + searchTableListObject.tableName = valueSearchTableListSearchTable["TableName"].asString(); + if(!valueSearchTableListSearchTable["TableSchemaName"].isNull()) + searchTableListObject.tableSchemaName = valueSearchTableListSearchTable["TableSchemaName"].asString(); + if(!valueSearchTableListSearchTable["Engine"].isNull()) + searchTableListObject.engine = valueSearchTableListSearchTable["Engine"].asString(); + if(!valueSearchTableListSearchTable["Encoding"].isNull()) + searchTableListObject.encoding = valueSearchTableListSearchTable["Encoding"].asString(); + if(!valueSearchTableListSearchTable["Logic"].isNull()) + searchTableListObject.logic = valueSearchTableListSearchTable["Logic"].asString() == "true"; + if(!valueSearchTableListSearchTable["EnvType"].isNull()) + searchTableListObject.envType = valueSearchTableListSearchTable["EnvType"].asString(); + if(!valueSearchTableListSearchTable["DBSearchName"].isNull()) + searchTableListObject.dBSearchName = valueSearchTableListSearchTable["DBSearchName"].asString(); + auto allOwnerIdList = value["OwnerIdList"]["OwnerIds"]; + for (auto value : allOwnerIdList) + searchTableListObject.ownerIdList.push_back(value.asString()); + auto allOwnerNameList = value["OwnerNameList"]["OwnerNames"]; + for (auto value : allOwnerNameList) + searchTableListObject.ownerNameList.push_back(value.asString()); + searchTableList_.push_back(searchTableListObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + +} + +std::vector SearchTableResult::getSearchTableList()const +{ + return searchTableList_; +} + +long SearchTableResult::getTotalCount()const +{ + return totalCount_; +} + +std::string SearchTableResult::getErrorCode()const +{ + return errorCode_; +} + +std::string SearchTableResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool SearchTableResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/SetOwnersRequest.cc b/dms-enterprise/src/model/SetOwnersRequest.cc new file mode 100644 index 000000000..9551a6027 --- /dev/null +++ b/dms-enterprise/src/model/SetOwnersRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::SetOwnersRequest; + +SetOwnersRequest::SetOwnersRequest() : + RpcServiceRequest("dms-enterprise", "2018-11-01", "SetOwners") +{ + setMethod(HttpRequest::Method::Post); +} + +SetOwnersRequest::~SetOwnersRequest() +{} + +std::string SetOwnersRequest::getResourceId()const +{ + return resourceId_; +} + +void SetOwnersRequest::setResourceId(const std::string& resourceId) +{ + resourceId_ = resourceId; + setParameter("ResourceId", resourceId); +} + +std::string SetOwnersRequest::getOwnerIds()const +{ + return ownerIds_; +} + +void SetOwnersRequest::setOwnerIds(const std::string& ownerIds) +{ + ownerIds_ = ownerIds; + setParameter("OwnerIds", ownerIds); +} + +std::string SetOwnersRequest::getOwnerType()const +{ + return ownerType_; +} + +void SetOwnersRequest::setOwnerType(const std::string& ownerType) +{ + ownerType_ = ownerType; + setParameter("OwnerType", ownerType); +} + +long SetOwnersRequest::getTid()const +{ + return tid_; +} + +void SetOwnersRequest::setTid(long tid) +{ + tid_ = tid; + setParameter("Tid", std::to_string(tid)); +} + diff --git a/dms-enterprise/src/model/SetOwnersResult.cc b/dms-enterprise/src/model/SetOwnersResult.cc new file mode 100644 index 000000000..0cc76a88e --- /dev/null +++ b/dms-enterprise/src/model/SetOwnersResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +SetOwnersResult::SetOwnersResult() : + ServiceResult() +{} + +SetOwnersResult::SetOwnersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetOwnersResult::~SetOwnersResult() +{} + +void SetOwnersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string SetOwnersResult::getErrorCode()const +{ + return errorCode_; +} + +std::string SetOwnersResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool SetOwnersResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/SubmitOrderApprovalRequest.cc b/dms-enterprise/src/model/SubmitOrderApprovalRequest.cc new file mode 100644 index 000000000..af3c2ddcd --- /dev/null +++ b/dms-enterprise/src/model/SubmitOrderApprovalRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::SubmitOrderApprovalRequest; + +SubmitOrderApprovalRequest::SubmitOrderApprovalRequest() : + RpcServiceRequest("dms-enterprise", "2018-11-01", "SubmitOrderApproval") +{ + setMethod(HttpRequest::Method::Post); +} + +SubmitOrderApprovalRequest::~SubmitOrderApprovalRequest() +{} + +long SubmitOrderApprovalRequest::getOrderId()const +{ + return orderId_; +} + +void SubmitOrderApprovalRequest::setOrderId(long orderId) +{ + orderId_ = orderId; + setParameter("OrderId", std::to_string(orderId)); +} + +long SubmitOrderApprovalRequest::getTid()const +{ + return tid_; +} + +void SubmitOrderApprovalRequest::setTid(long tid) +{ + tid_ = tid; + setParameter("Tid", std::to_string(tid)); +} + diff --git a/dms-enterprise/src/model/SubmitOrderApprovalResult.cc b/dms-enterprise/src/model/SubmitOrderApprovalResult.cc new file mode 100644 index 000000000..3bdf48f0b --- /dev/null +++ b/dms-enterprise/src/model/SubmitOrderApprovalResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +SubmitOrderApprovalResult::SubmitOrderApprovalResult() : + ServiceResult() +{} + +SubmitOrderApprovalResult::SubmitOrderApprovalResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SubmitOrderApprovalResult::~SubmitOrderApprovalResult() +{} + +void SubmitOrderApprovalResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string SubmitOrderApprovalResult::getErrorCode()const +{ + return errorCode_; +} + +std::string SubmitOrderApprovalResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool SubmitOrderApprovalResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/SyncDatabaseMetaRequest.cc b/dms-enterprise/src/model/SyncDatabaseMetaRequest.cc new file mode 100644 index 000000000..245765e00 --- /dev/null +++ b/dms-enterprise/src/model/SyncDatabaseMetaRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::SyncDatabaseMetaRequest; + +SyncDatabaseMetaRequest::SyncDatabaseMetaRequest() : + RpcServiceRequest("dms-enterprise", "2018-11-01", "SyncDatabaseMeta") +{ + setMethod(HttpRequest::Method::Post); +} + +SyncDatabaseMetaRequest::~SyncDatabaseMetaRequest() +{} + +std::string SyncDatabaseMetaRequest::getDbId()const +{ + return dbId_; +} + +void SyncDatabaseMetaRequest::setDbId(const std::string& dbId) +{ + dbId_ = dbId; + setParameter("DbId", dbId); +} + +bool SyncDatabaseMetaRequest::getLogic()const +{ + return logic_; +} + +void SyncDatabaseMetaRequest::setLogic(bool logic) +{ + logic_ = logic; + setParameter("Logic", logic ? "true" : "false"); +} + +long SyncDatabaseMetaRequest::getTid()const +{ + return tid_; +} + +void SyncDatabaseMetaRequest::setTid(long tid) +{ + tid_ = tid; + setParameter("Tid", std::to_string(tid)); +} + diff --git a/dms-enterprise/src/model/SyncDatabaseMetaResult.cc b/dms-enterprise/src/model/SyncDatabaseMetaResult.cc new file mode 100644 index 000000000..2501540ac --- /dev/null +++ b/dms-enterprise/src/model/SyncDatabaseMetaResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +SyncDatabaseMetaResult::SyncDatabaseMetaResult() : + ServiceResult() +{} + +SyncDatabaseMetaResult::SyncDatabaseMetaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SyncDatabaseMetaResult::~SyncDatabaseMetaResult() +{} + +void SyncDatabaseMetaResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string SyncDatabaseMetaResult::getErrorCode()const +{ + return errorCode_; +} + +std::string SyncDatabaseMetaResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool SyncDatabaseMetaResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/SyncInstanceMetaRequest.cc b/dms-enterprise/src/model/SyncInstanceMetaRequest.cc new file mode 100644 index 000000000..d56bb4b4f --- /dev/null +++ b/dms-enterprise/src/model/SyncInstanceMetaRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::SyncInstanceMetaRequest; + +SyncInstanceMetaRequest::SyncInstanceMetaRequest() : + RpcServiceRequest("dms-enterprise", "2018-11-01", "SyncInstanceMeta") +{ + setMethod(HttpRequest::Method::Post); +} + +SyncInstanceMetaRequest::~SyncInstanceMetaRequest() +{} + +std::string SyncInstanceMetaRequest::getInstanceId()const +{ + return instanceId_; +} + +void SyncInstanceMetaRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +bool SyncInstanceMetaRequest::getIgnoreTable()const +{ + return ignoreTable_; +} + +void SyncInstanceMetaRequest::setIgnoreTable(bool ignoreTable) +{ + ignoreTable_ = ignoreTable; + setParameter("IgnoreTable", ignoreTable ? "true" : "false"); +} + +long SyncInstanceMetaRequest::getTid()const +{ + return tid_; +} + +void SyncInstanceMetaRequest::setTid(long tid) +{ + tid_ = tid; + setParameter("Tid", std::to_string(tid)); +} + diff --git a/dms-enterprise/src/model/SyncInstanceMetaResult.cc b/dms-enterprise/src/model/SyncInstanceMetaResult.cc new file mode 100644 index 000000000..558329abe --- /dev/null +++ b/dms-enterprise/src/model/SyncInstanceMetaResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +SyncInstanceMetaResult::SyncInstanceMetaResult() : + ServiceResult() +{} + +SyncInstanceMetaResult::SyncInstanceMetaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SyncInstanceMetaResult::~SyncInstanceMetaResult() +{} + +void SyncInstanceMetaResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string SyncInstanceMetaResult::getErrorCode()const +{ + return errorCode_; +} + +std::string SyncInstanceMetaResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool SyncInstanceMetaResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/UpdateInstanceRequest.cc b/dms-enterprise/src/model/UpdateInstanceRequest.cc new file mode 100644 index 000000000..033a5ca5e --- /dev/null +++ b/dms-enterprise/src/model/UpdateInstanceRequest.cc @@ -0,0 +1,260 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Dms_enterprise::Model::UpdateInstanceRequest; + +UpdateInstanceRequest::UpdateInstanceRequest() : + RpcServiceRequest("dms-enterprise", "2018-11-01", "UpdateInstance") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateInstanceRequest::~UpdateInstanceRequest() +{} + +std::string UpdateInstanceRequest::getSafeRuleId()const +{ + return safeRuleId_; +} + +void UpdateInstanceRequest::setSafeRuleId(const std::string& safeRuleId) +{ + safeRuleId_ = safeRuleId; + setParameter("SafeRuleId", safeRuleId); +} + +std::string UpdateInstanceRequest::getEcsRegion()const +{ + return ecsRegion_; +} + +void UpdateInstanceRequest::setEcsRegion(const std::string& ecsRegion) +{ + ecsRegion_ = ecsRegion; + setParameter("EcsRegion", ecsRegion); +} + +int UpdateInstanceRequest::getDdlOnline()const +{ + return ddlOnline_; +} + +void UpdateInstanceRequest::setDdlOnline(int ddlOnline) +{ + ddlOnline_ = ddlOnline; + setParameter("DdlOnline", std::to_string(ddlOnline)); +} + +int UpdateInstanceRequest::getUseDsql()const +{ + return useDsql_; +} + +void UpdateInstanceRequest::setUseDsql(int useDsql) +{ + useDsql_ = useDsql; + setParameter("UseDsql", std::to_string(useDsql)); +} + +long UpdateInstanceRequest::getTid()const +{ + return tid_; +} + +void UpdateInstanceRequest::setTid(long tid) +{ + tid_ = tid; + setParameter("Tid", std::to_string(tid)); +} + +std::string UpdateInstanceRequest::getSid()const +{ + return sid_; +} + +void UpdateInstanceRequest::setSid(const std::string& sid) +{ + sid_ = sid; + setParameter("Sid", sid); +} + +std::string UpdateInstanceRequest::getDbaId()const +{ + return dbaId_; +} + +void UpdateInstanceRequest::setDbaId(const std::string& dbaId) +{ + dbaId_ = dbaId; + setParameter("DbaId", dbaId); +} + +std::string UpdateInstanceRequest::getDataLinkName()const +{ + return dataLinkName_; +} + +void UpdateInstanceRequest::setDataLinkName(const std::string& dataLinkName) +{ + dataLinkName_ = dataLinkName; + setParameter("DataLinkName", dataLinkName); +} + +std::string UpdateInstanceRequest::getInstanceSource()const +{ + return instanceSource_; +} + +void UpdateInstanceRequest::setInstanceSource(const std::string& instanceSource) +{ + instanceSource_ = instanceSource; + setParameter("InstanceSource", instanceSource); +} + +std::string UpdateInstanceRequest::getEnvType()const +{ + return envType_; +} + +void UpdateInstanceRequest::setEnvType(const std::string& envType) +{ + envType_ = envType; + setParameter("EnvType", envType); +} + +std::string UpdateInstanceRequest::getHost()const +{ + return host_; +} + +void UpdateInstanceRequest::setHost(const std::string& host) +{ + host_ = host; + setParameter("Host", host); +} + +std::string UpdateInstanceRequest::getInstanceType()const +{ + return instanceType_; +} + +void UpdateInstanceRequest::setInstanceType(const std::string& instanceType) +{ + instanceType_ = instanceType; + setParameter("InstanceType", instanceType); +} + +int UpdateInstanceRequest::getQueryTimeout()const +{ + return queryTimeout_; +} + +void UpdateInstanceRequest::setQueryTimeout(int queryTimeout) +{ + queryTimeout_ = queryTimeout; + setParameter("QueryTimeout", std::to_string(queryTimeout)); +} + +std::string UpdateInstanceRequest::getEcsInstanceId()const +{ + return ecsInstanceId_; +} + +void UpdateInstanceRequest::setEcsInstanceId(const std::string& ecsInstanceId) +{ + ecsInstanceId_ = ecsInstanceId; + setParameter("EcsInstanceId", ecsInstanceId); +} + +int UpdateInstanceRequest::getExportTimeout()const +{ + return exportTimeout_; +} + +void UpdateInstanceRequest::setExportTimeout(int exportTimeout) +{ + exportTimeout_ = exportTimeout; + setParameter("ExportTimeout", std::to_string(exportTimeout)); +} + +std::string UpdateInstanceRequest::getDatabasePassword()const +{ + return databasePassword_; +} + +void UpdateInstanceRequest::setDatabasePassword(const std::string& databasePassword) +{ + databasePassword_ = databasePassword; + setParameter("DatabasePassword", databasePassword); +} + +std::string UpdateInstanceRequest::getInstanceAlias()const +{ + return instanceAlias_; +} + +void UpdateInstanceRequest::setInstanceAlias(const std::string& instanceAlias) +{ + instanceAlias_ = instanceAlias; + setParameter("InstanceAlias", instanceAlias); +} + +std::string UpdateInstanceRequest::getDatabaseUser()const +{ + return databaseUser_; +} + +void UpdateInstanceRequest::setDatabaseUser(const std::string& databaseUser) +{ + databaseUser_ = databaseUser; + setParameter("DatabaseUser", databaseUser); +} + +std::string UpdateInstanceRequest::getInstanceId()const +{ + return instanceId_; +} + +void UpdateInstanceRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +int UpdateInstanceRequest::getPort()const +{ + return port_; +} + +void UpdateInstanceRequest::setPort(int port) +{ + port_ = port; + setParameter("Port", std::to_string(port)); +} + +std::string UpdateInstanceRequest::getVpcId()const +{ + return vpcId_; +} + +void UpdateInstanceRequest::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; + setParameter("VpcId", vpcId); +} + diff --git a/dms-enterprise/src/model/UpdateInstanceResult.cc b/dms-enterprise/src/model/UpdateInstanceResult.cc new file mode 100644 index 000000000..9240f8110 --- /dev/null +++ b/dms-enterprise/src/model/UpdateInstanceResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +UpdateInstanceResult::UpdateInstanceResult() : + ServiceResult() +{} + +UpdateInstanceResult::UpdateInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateInstanceResult::~UpdateInstanceResult() +{} + +void UpdateInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string UpdateInstanceResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UpdateInstanceResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool UpdateInstanceResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/UpdateUserRequest.cc b/dms-enterprise/src/model/UpdateUserRequest.cc new file mode 100644 index 000000000..5f936f87a --- /dev/null +++ b/dms-enterprise/src/model/UpdateUserRequest.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::UpdateUserRequest; + +UpdateUserRequest::UpdateUserRequest() : + RpcServiceRequest("dms-enterprise", "2018-11-01", "UpdateUser") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateUserRequest::~UpdateUserRequest() +{} + +std::string UpdateUserRequest::getRoleNames()const +{ + return roleNames_; +} + +void UpdateUserRequest::setRoleNames(const std::string& roleNames) +{ + roleNames_ = roleNames; + setParameter("RoleNames", roleNames); +} + +long UpdateUserRequest::getUid()const +{ + return uid_; +} + +void UpdateUserRequest::setUid(long uid) +{ + uid_ = uid; + setParameter("Uid", std::to_string(uid)); +} + +std::string UpdateUserRequest::getUserNick()const +{ + return userNick_; +} + +void UpdateUserRequest::setUserNick(const std::string& userNick) +{ + userNick_ = userNick; + setParameter("UserNick", userNick); +} + +std::string UpdateUserRequest::getMobile()const +{ + return mobile_; +} + +void UpdateUserRequest::setMobile(const std::string& mobile) +{ + mobile_ = mobile; + setParameter("Mobile", mobile); +} + +long UpdateUserRequest::getTid()const +{ + return tid_; +} + +void UpdateUserRequest::setTid(long tid) +{ + tid_ = tid; + setParameter("Tid", std::to_string(tid)); +} + diff --git a/dms-enterprise/src/model/UpdateUserResult.cc b/dms-enterprise/src/model/UpdateUserResult.cc new file mode 100644 index 000000000..ea36391cc --- /dev/null +++ b/dms-enterprise/src/model/UpdateUserResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +UpdateUserResult::UpdateUserResult() : + ServiceResult() +{} + +UpdateUserResult::UpdateUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateUserResult::~UpdateUserResult() +{} + +void UpdateUserResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string UpdateUserResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UpdateUserResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool UpdateUserResult::getSuccess()const +{ + return success_; +} +