diff --git a/VERSION b/VERSION index a906b9bd3..1f305e183 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.2076 \ No newline at end of file +1.36.2077 \ No newline at end of file diff --git a/clickhouse/CMakeLists.txt b/clickhouse/CMakeLists.txt new file mode 100644 index 000000000..aed3d15e6 --- /dev/null +++ b/clickhouse/CMakeLists.txt @@ -0,0 +1,334 @@ +# +# Copyright 2009-2017 Alibaba Cloud All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT 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(clickhouse_public_header + include/alibabacloud/clickhouse/ClickhouseClient.h + include/alibabacloud/clickhouse/ClickhouseExport.h ) + +set(clickhouse_public_header_model + include/alibabacloud/clickhouse/model/AllocateClusterPublicConnectionRequest.h + include/alibabacloud/clickhouse/model/AllocateClusterPublicConnectionResult.h + include/alibabacloud/clickhouse/model/CheckClickhouseToRDSRequest.h + include/alibabacloud/clickhouse/model/CheckClickhouseToRDSResult.h + include/alibabacloud/clickhouse/model/CheckModifyConfigNeedRestartRequest.h + include/alibabacloud/clickhouse/model/CheckModifyConfigNeedRestartResult.h + include/alibabacloud/clickhouse/model/CheckMonitorAlertRequest.h + include/alibabacloud/clickhouse/model/CheckMonitorAlertResult.h + include/alibabacloud/clickhouse/model/CheckScaleOutBalancedRequest.h + include/alibabacloud/clickhouse/model/CheckScaleOutBalancedResult.h + include/alibabacloud/clickhouse/model/CheckServiceLinkedRoleRequest.h + include/alibabacloud/clickhouse/model/CheckServiceLinkedRoleResult.h + include/alibabacloud/clickhouse/model/CreateAccountRequest.h + include/alibabacloud/clickhouse/model/CreateAccountResult.h + include/alibabacloud/clickhouse/model/CreateAccountAndAuthorityRequest.h + include/alibabacloud/clickhouse/model/CreateAccountAndAuthorityResult.h + include/alibabacloud/clickhouse/model/CreateBackupPolicyRequest.h + include/alibabacloud/clickhouse/model/CreateBackupPolicyResult.h + include/alibabacloud/clickhouse/model/CreateDBInstanceRequest.h + include/alibabacloud/clickhouse/model/CreateDBInstanceResult.h + include/alibabacloud/clickhouse/model/CreateMonitorDataReportRequest.h + include/alibabacloud/clickhouse/model/CreateMonitorDataReportResult.h + include/alibabacloud/clickhouse/model/CreateOSSStorageRequest.h + include/alibabacloud/clickhouse/model/CreateOSSStorageResult.h + include/alibabacloud/clickhouse/model/CreatePortsForClickHouseRequest.h + include/alibabacloud/clickhouse/model/CreatePortsForClickHouseResult.h + include/alibabacloud/clickhouse/model/CreateRDSToClickhouseDbRequest.h + include/alibabacloud/clickhouse/model/CreateRDSToClickhouseDbResult.h + include/alibabacloud/clickhouse/model/CreateSQLAccountRequest.h + include/alibabacloud/clickhouse/model/CreateSQLAccountResult.h + include/alibabacloud/clickhouse/model/CreateServiceLinkedRoleRequest.h + include/alibabacloud/clickhouse/model/CreateServiceLinkedRoleResult.h + include/alibabacloud/clickhouse/model/DeleteAccountRequest.h + include/alibabacloud/clickhouse/model/DeleteAccountResult.h + include/alibabacloud/clickhouse/model/DeleteDBClusterRequest.h + include/alibabacloud/clickhouse/model/DeleteDBClusterResult.h + include/alibabacloud/clickhouse/model/DeleteSyndbRequest.h + include/alibabacloud/clickhouse/model/DeleteSyndbResult.h + include/alibabacloud/clickhouse/model/DescribeAccountAuthorityRequest.h + include/alibabacloud/clickhouse/model/DescribeAccountAuthorityResult.h + include/alibabacloud/clickhouse/model/DescribeAccountsRequest.h + include/alibabacloud/clickhouse/model/DescribeAccountsResult.h + include/alibabacloud/clickhouse/model/DescribeAllDataSourceRequest.h + include/alibabacloud/clickhouse/model/DescribeAllDataSourceResult.h + include/alibabacloud/clickhouse/model/DescribeAllDataSourcesRequest.h + include/alibabacloud/clickhouse/model/DescribeAllDataSourcesResult.h + include/alibabacloud/clickhouse/model/DescribeBackupPolicyRequest.h + include/alibabacloud/clickhouse/model/DescribeBackupPolicyResult.h + include/alibabacloud/clickhouse/model/DescribeBackupsRequest.h + include/alibabacloud/clickhouse/model/DescribeBackupsResult.h + include/alibabacloud/clickhouse/model/DescribeColumnsRequest.h + include/alibabacloud/clickhouse/model/DescribeColumnsResult.h + include/alibabacloud/clickhouse/model/DescribeConfigHistoryRequest.h + include/alibabacloud/clickhouse/model/DescribeConfigHistoryResult.h + include/alibabacloud/clickhouse/model/DescribeConfigVersionDifferenceRequest.h + include/alibabacloud/clickhouse/model/DescribeConfigVersionDifferenceResult.h + include/alibabacloud/clickhouse/model/DescribeDBClusterAccessWhiteListRequest.h + include/alibabacloud/clickhouse/model/DescribeDBClusterAccessWhiteListResult.h + include/alibabacloud/clickhouse/model/DescribeDBClusterAttributeRequest.h + include/alibabacloud/clickhouse/model/DescribeDBClusterAttributeResult.h + include/alibabacloud/clickhouse/model/DescribeDBClusterConfigRequest.h + include/alibabacloud/clickhouse/model/DescribeDBClusterConfigResult.h + include/alibabacloud/clickhouse/model/DescribeDBClusterConfigInXMLRequest.h + include/alibabacloud/clickhouse/model/DescribeDBClusterConfigInXMLResult.h + include/alibabacloud/clickhouse/model/DescribeDBClusterNetInfoItemsRequest.h + include/alibabacloud/clickhouse/model/DescribeDBClusterNetInfoItemsResult.h + include/alibabacloud/clickhouse/model/DescribeDBClusterPerformanceRequest.h + include/alibabacloud/clickhouse/model/DescribeDBClusterPerformanceResult.h + include/alibabacloud/clickhouse/model/DescribeDBClustersRequest.h + include/alibabacloud/clickhouse/model/DescribeDBClustersResult.h + include/alibabacloud/clickhouse/model/DescribeDBConfigRequest.h + include/alibabacloud/clickhouse/model/DescribeDBConfigResult.h + include/alibabacloud/clickhouse/model/DescribeOSSStorageRequest.h + include/alibabacloud/clickhouse/model/DescribeOSSStorageResult.h + include/alibabacloud/clickhouse/model/DescribeProcessListRequest.h + include/alibabacloud/clickhouse/model/DescribeProcessListResult.h + include/alibabacloud/clickhouse/model/DescribeRegionsRequest.h + include/alibabacloud/clickhouse/model/DescribeRegionsResult.h + include/alibabacloud/clickhouse/model/DescribeSchemasRequest.h + include/alibabacloud/clickhouse/model/DescribeSchemasResult.h + include/alibabacloud/clickhouse/model/DescribeSlowLogRecordsRequest.h + include/alibabacloud/clickhouse/model/DescribeSlowLogRecordsResult.h + include/alibabacloud/clickhouse/model/DescribeSynDbTablesRequest.h + include/alibabacloud/clickhouse/model/DescribeSynDbTablesResult.h + include/alibabacloud/clickhouse/model/DescribeSynDbsRequest.h + include/alibabacloud/clickhouse/model/DescribeSynDbsResult.h + include/alibabacloud/clickhouse/model/DescribeTablesRequest.h + include/alibabacloud/clickhouse/model/DescribeTablesResult.h + include/alibabacloud/clickhouse/model/DescribeTransferHistoryRequest.h + include/alibabacloud/clickhouse/model/DescribeTransferHistoryResult.h + include/alibabacloud/clickhouse/model/KillProcessRequest.h + include/alibabacloud/clickhouse/model/KillProcessResult.h + include/alibabacloud/clickhouse/model/ModifyAccountAuthorityRequest.h + include/alibabacloud/clickhouse/model/ModifyAccountAuthorityResult.h + include/alibabacloud/clickhouse/model/ModifyAccountDescriptionRequest.h + include/alibabacloud/clickhouse/model/ModifyAccountDescriptionResult.h + include/alibabacloud/clickhouse/model/ModifyBackupPolicyRequest.h + include/alibabacloud/clickhouse/model/ModifyBackupPolicyResult.h + include/alibabacloud/clickhouse/model/ModifyDBClusterRequest.h + include/alibabacloud/clickhouse/model/ModifyDBClusterResult.h + include/alibabacloud/clickhouse/model/ModifyDBClusterAccessWhiteListRequest.h + include/alibabacloud/clickhouse/model/ModifyDBClusterAccessWhiteListResult.h + include/alibabacloud/clickhouse/model/ModifyDBClusterConfigRequest.h + include/alibabacloud/clickhouse/model/ModifyDBClusterConfigResult.h + include/alibabacloud/clickhouse/model/ModifyDBClusterConfigInXMLRequest.h + include/alibabacloud/clickhouse/model/ModifyDBClusterConfigInXMLResult.h + include/alibabacloud/clickhouse/model/ModifyDBClusterDescriptionRequest.h + include/alibabacloud/clickhouse/model/ModifyDBClusterDescriptionResult.h + include/alibabacloud/clickhouse/model/ModifyDBClusterMaintainTimeRequest.h + include/alibabacloud/clickhouse/model/ModifyDBClusterMaintainTimeResult.h + include/alibabacloud/clickhouse/model/ModifyDBConfigRequest.h + include/alibabacloud/clickhouse/model/ModifyDBConfigResult.h + include/alibabacloud/clickhouse/model/ModifyMinorVersionGreadeTypeRequest.h + include/alibabacloud/clickhouse/model/ModifyMinorVersionGreadeTypeResult.h + include/alibabacloud/clickhouse/model/ModifyRDSToClickhouseDbRequest.h + include/alibabacloud/clickhouse/model/ModifyRDSToClickhouseDbResult.h + include/alibabacloud/clickhouse/model/ReleaseClusterPublicConnectionRequest.h + include/alibabacloud/clickhouse/model/ReleaseClusterPublicConnectionResult.h + include/alibabacloud/clickhouse/model/ResetAccountPasswordRequest.h + include/alibabacloud/clickhouse/model/ResetAccountPasswordResult.h + include/alibabacloud/clickhouse/model/RestartInstanceRequest.h + include/alibabacloud/clickhouse/model/RestartInstanceResult.h + include/alibabacloud/clickhouse/model/TransferVersionRequest.h + include/alibabacloud/clickhouse/model/TransferVersionResult.h + include/alibabacloud/clickhouse/model/UpgradeMinorVersionRequest.h + include/alibabacloud/clickhouse/model/UpgradeMinorVersionResult.h ) + +set(clickhouse_src + src/ClickhouseClient.cc + src/model/AllocateClusterPublicConnectionRequest.cc + src/model/AllocateClusterPublicConnectionResult.cc + src/model/CheckClickhouseToRDSRequest.cc + src/model/CheckClickhouseToRDSResult.cc + src/model/CheckModifyConfigNeedRestartRequest.cc + src/model/CheckModifyConfigNeedRestartResult.cc + src/model/CheckMonitorAlertRequest.cc + src/model/CheckMonitorAlertResult.cc + src/model/CheckScaleOutBalancedRequest.cc + src/model/CheckScaleOutBalancedResult.cc + src/model/CheckServiceLinkedRoleRequest.cc + src/model/CheckServiceLinkedRoleResult.cc + src/model/CreateAccountRequest.cc + src/model/CreateAccountResult.cc + src/model/CreateAccountAndAuthorityRequest.cc + src/model/CreateAccountAndAuthorityResult.cc + src/model/CreateBackupPolicyRequest.cc + src/model/CreateBackupPolicyResult.cc + src/model/CreateDBInstanceRequest.cc + src/model/CreateDBInstanceResult.cc + src/model/CreateMonitorDataReportRequest.cc + src/model/CreateMonitorDataReportResult.cc + src/model/CreateOSSStorageRequest.cc + src/model/CreateOSSStorageResult.cc + src/model/CreatePortsForClickHouseRequest.cc + src/model/CreatePortsForClickHouseResult.cc + src/model/CreateRDSToClickhouseDbRequest.cc + src/model/CreateRDSToClickhouseDbResult.cc + src/model/CreateSQLAccountRequest.cc + src/model/CreateSQLAccountResult.cc + src/model/CreateServiceLinkedRoleRequest.cc + src/model/CreateServiceLinkedRoleResult.cc + src/model/DeleteAccountRequest.cc + src/model/DeleteAccountResult.cc + src/model/DeleteDBClusterRequest.cc + src/model/DeleteDBClusterResult.cc + src/model/DeleteSyndbRequest.cc + src/model/DeleteSyndbResult.cc + src/model/DescribeAccountAuthorityRequest.cc + src/model/DescribeAccountAuthorityResult.cc + src/model/DescribeAccountsRequest.cc + src/model/DescribeAccountsResult.cc + src/model/DescribeAllDataSourceRequest.cc + src/model/DescribeAllDataSourceResult.cc + src/model/DescribeAllDataSourcesRequest.cc + src/model/DescribeAllDataSourcesResult.cc + src/model/DescribeBackupPolicyRequest.cc + src/model/DescribeBackupPolicyResult.cc + src/model/DescribeBackupsRequest.cc + src/model/DescribeBackupsResult.cc + src/model/DescribeColumnsRequest.cc + src/model/DescribeColumnsResult.cc + src/model/DescribeConfigHistoryRequest.cc + src/model/DescribeConfigHistoryResult.cc + src/model/DescribeConfigVersionDifferenceRequest.cc + src/model/DescribeConfigVersionDifferenceResult.cc + src/model/DescribeDBClusterAccessWhiteListRequest.cc + src/model/DescribeDBClusterAccessWhiteListResult.cc + src/model/DescribeDBClusterAttributeRequest.cc + src/model/DescribeDBClusterAttributeResult.cc + src/model/DescribeDBClusterConfigRequest.cc + src/model/DescribeDBClusterConfigResult.cc + src/model/DescribeDBClusterConfigInXMLRequest.cc + src/model/DescribeDBClusterConfigInXMLResult.cc + src/model/DescribeDBClusterNetInfoItemsRequest.cc + src/model/DescribeDBClusterNetInfoItemsResult.cc + src/model/DescribeDBClusterPerformanceRequest.cc + src/model/DescribeDBClusterPerformanceResult.cc + src/model/DescribeDBClustersRequest.cc + src/model/DescribeDBClustersResult.cc + src/model/DescribeDBConfigRequest.cc + src/model/DescribeDBConfigResult.cc + src/model/DescribeOSSStorageRequest.cc + src/model/DescribeOSSStorageResult.cc + src/model/DescribeProcessListRequest.cc + src/model/DescribeProcessListResult.cc + src/model/DescribeRegionsRequest.cc + src/model/DescribeRegionsResult.cc + src/model/DescribeSchemasRequest.cc + src/model/DescribeSchemasResult.cc + src/model/DescribeSlowLogRecordsRequest.cc + src/model/DescribeSlowLogRecordsResult.cc + src/model/DescribeSynDbTablesRequest.cc + src/model/DescribeSynDbTablesResult.cc + src/model/DescribeSynDbsRequest.cc + src/model/DescribeSynDbsResult.cc + src/model/DescribeTablesRequest.cc + src/model/DescribeTablesResult.cc + src/model/DescribeTransferHistoryRequest.cc + src/model/DescribeTransferHistoryResult.cc + src/model/KillProcessRequest.cc + src/model/KillProcessResult.cc + src/model/ModifyAccountAuthorityRequest.cc + src/model/ModifyAccountAuthorityResult.cc + src/model/ModifyAccountDescriptionRequest.cc + src/model/ModifyAccountDescriptionResult.cc + src/model/ModifyBackupPolicyRequest.cc + src/model/ModifyBackupPolicyResult.cc + src/model/ModifyDBClusterRequest.cc + src/model/ModifyDBClusterResult.cc + src/model/ModifyDBClusterAccessWhiteListRequest.cc + src/model/ModifyDBClusterAccessWhiteListResult.cc + src/model/ModifyDBClusterConfigRequest.cc + src/model/ModifyDBClusterConfigResult.cc + src/model/ModifyDBClusterConfigInXMLRequest.cc + src/model/ModifyDBClusterConfigInXMLResult.cc + src/model/ModifyDBClusterDescriptionRequest.cc + src/model/ModifyDBClusterDescriptionResult.cc + src/model/ModifyDBClusterMaintainTimeRequest.cc + src/model/ModifyDBClusterMaintainTimeResult.cc + src/model/ModifyDBConfigRequest.cc + src/model/ModifyDBConfigResult.cc + src/model/ModifyMinorVersionGreadeTypeRequest.cc + src/model/ModifyMinorVersionGreadeTypeResult.cc + src/model/ModifyRDSToClickhouseDbRequest.cc + src/model/ModifyRDSToClickhouseDbResult.cc + src/model/ReleaseClusterPublicConnectionRequest.cc + src/model/ReleaseClusterPublicConnectionResult.cc + src/model/ResetAccountPasswordRequest.cc + src/model/ResetAccountPasswordResult.cc + src/model/RestartInstanceRequest.cc + src/model/RestartInstanceResult.cc + src/model/TransferVersionRequest.cc + src/model/TransferVersionResult.cc + src/model/UpgradeMinorVersionRequest.cc + src/model/UpgradeMinorVersionResult.cc ) + +add_library(clickhouse ${LIB_TYPE} + ${clickhouse_public_header} + ${clickhouse_public_header_model} + ${clickhouse_src}) + +set_target_properties(clickhouse + 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}clickhouse + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(clickhouse + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_CLICKHOUSE_LIBRARY) +endif() + +target_include_directories(clickhouse + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(clickhouse + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(clickhouse + jsoncpp) + target_include_directories(clickhouse + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(clickhouse + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(clickhouse + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(clickhouse + PRIVATE /usr/include/jsoncpp) + target_link_libraries(clickhouse + jsoncpp) +endif() + +install(FILES ${clickhouse_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/clickhouse) +install(FILES ${clickhouse_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/clickhouse/model) +install(TARGETS clickhouse + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/ClickhouseClient.h b/clickhouse/include/alibabacloud/clickhouse/ClickhouseClient.h new file mode 100644 index 000000000..eb670a9ea --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/ClickhouseClient.h @@ -0,0 +1,550 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_CLICKHOUSECLIENT_H_ +#define ALIBABACLOUD_CLICKHOUSE_CLICKHOUSECLIENT_H_ + +#include +#include +#include +#include +#include "ClickhouseExport.h" +#include "model/AllocateClusterPublicConnectionRequest.h" +#include "model/AllocateClusterPublicConnectionResult.h" +#include "model/CheckClickhouseToRDSRequest.h" +#include "model/CheckClickhouseToRDSResult.h" +#include "model/CheckModifyConfigNeedRestartRequest.h" +#include "model/CheckModifyConfigNeedRestartResult.h" +#include "model/CheckMonitorAlertRequest.h" +#include "model/CheckMonitorAlertResult.h" +#include "model/CheckScaleOutBalancedRequest.h" +#include "model/CheckScaleOutBalancedResult.h" +#include "model/CheckServiceLinkedRoleRequest.h" +#include "model/CheckServiceLinkedRoleResult.h" +#include "model/CreateAccountRequest.h" +#include "model/CreateAccountResult.h" +#include "model/CreateAccountAndAuthorityRequest.h" +#include "model/CreateAccountAndAuthorityResult.h" +#include "model/CreateBackupPolicyRequest.h" +#include "model/CreateBackupPolicyResult.h" +#include "model/CreateDBInstanceRequest.h" +#include "model/CreateDBInstanceResult.h" +#include "model/CreateMonitorDataReportRequest.h" +#include "model/CreateMonitorDataReportResult.h" +#include "model/CreateOSSStorageRequest.h" +#include "model/CreateOSSStorageResult.h" +#include "model/CreatePortsForClickHouseRequest.h" +#include "model/CreatePortsForClickHouseResult.h" +#include "model/CreateRDSToClickhouseDbRequest.h" +#include "model/CreateRDSToClickhouseDbResult.h" +#include "model/CreateSQLAccountRequest.h" +#include "model/CreateSQLAccountResult.h" +#include "model/CreateServiceLinkedRoleRequest.h" +#include "model/CreateServiceLinkedRoleResult.h" +#include "model/DeleteAccountRequest.h" +#include "model/DeleteAccountResult.h" +#include "model/DeleteDBClusterRequest.h" +#include "model/DeleteDBClusterResult.h" +#include "model/DeleteSyndbRequest.h" +#include "model/DeleteSyndbResult.h" +#include "model/DescribeAccountAuthorityRequest.h" +#include "model/DescribeAccountAuthorityResult.h" +#include "model/DescribeAccountsRequest.h" +#include "model/DescribeAccountsResult.h" +#include "model/DescribeAllDataSourceRequest.h" +#include "model/DescribeAllDataSourceResult.h" +#include "model/DescribeAllDataSourcesRequest.h" +#include "model/DescribeAllDataSourcesResult.h" +#include "model/DescribeBackupPolicyRequest.h" +#include "model/DescribeBackupPolicyResult.h" +#include "model/DescribeBackupsRequest.h" +#include "model/DescribeBackupsResult.h" +#include "model/DescribeColumnsRequest.h" +#include "model/DescribeColumnsResult.h" +#include "model/DescribeConfigHistoryRequest.h" +#include "model/DescribeConfigHistoryResult.h" +#include "model/DescribeConfigVersionDifferenceRequest.h" +#include "model/DescribeConfigVersionDifferenceResult.h" +#include "model/DescribeDBClusterAccessWhiteListRequest.h" +#include "model/DescribeDBClusterAccessWhiteListResult.h" +#include "model/DescribeDBClusterAttributeRequest.h" +#include "model/DescribeDBClusterAttributeResult.h" +#include "model/DescribeDBClusterConfigRequest.h" +#include "model/DescribeDBClusterConfigResult.h" +#include "model/DescribeDBClusterConfigInXMLRequest.h" +#include "model/DescribeDBClusterConfigInXMLResult.h" +#include "model/DescribeDBClusterNetInfoItemsRequest.h" +#include "model/DescribeDBClusterNetInfoItemsResult.h" +#include "model/DescribeDBClusterPerformanceRequest.h" +#include "model/DescribeDBClusterPerformanceResult.h" +#include "model/DescribeDBClustersRequest.h" +#include "model/DescribeDBClustersResult.h" +#include "model/DescribeDBConfigRequest.h" +#include "model/DescribeDBConfigResult.h" +#include "model/DescribeOSSStorageRequest.h" +#include "model/DescribeOSSStorageResult.h" +#include "model/DescribeProcessListRequest.h" +#include "model/DescribeProcessListResult.h" +#include "model/DescribeRegionsRequest.h" +#include "model/DescribeRegionsResult.h" +#include "model/DescribeSchemasRequest.h" +#include "model/DescribeSchemasResult.h" +#include "model/DescribeSlowLogRecordsRequest.h" +#include "model/DescribeSlowLogRecordsResult.h" +#include "model/DescribeSynDbTablesRequest.h" +#include "model/DescribeSynDbTablesResult.h" +#include "model/DescribeSynDbsRequest.h" +#include "model/DescribeSynDbsResult.h" +#include "model/DescribeTablesRequest.h" +#include "model/DescribeTablesResult.h" +#include "model/DescribeTransferHistoryRequest.h" +#include "model/DescribeTransferHistoryResult.h" +#include "model/KillProcessRequest.h" +#include "model/KillProcessResult.h" +#include "model/ModifyAccountAuthorityRequest.h" +#include "model/ModifyAccountAuthorityResult.h" +#include "model/ModifyAccountDescriptionRequest.h" +#include "model/ModifyAccountDescriptionResult.h" +#include "model/ModifyBackupPolicyRequest.h" +#include "model/ModifyBackupPolicyResult.h" +#include "model/ModifyDBClusterRequest.h" +#include "model/ModifyDBClusterResult.h" +#include "model/ModifyDBClusterAccessWhiteListRequest.h" +#include "model/ModifyDBClusterAccessWhiteListResult.h" +#include "model/ModifyDBClusterConfigRequest.h" +#include "model/ModifyDBClusterConfigResult.h" +#include "model/ModifyDBClusterConfigInXMLRequest.h" +#include "model/ModifyDBClusterConfigInXMLResult.h" +#include "model/ModifyDBClusterDescriptionRequest.h" +#include "model/ModifyDBClusterDescriptionResult.h" +#include "model/ModifyDBClusterMaintainTimeRequest.h" +#include "model/ModifyDBClusterMaintainTimeResult.h" +#include "model/ModifyDBConfigRequest.h" +#include "model/ModifyDBConfigResult.h" +#include "model/ModifyMinorVersionGreadeTypeRequest.h" +#include "model/ModifyMinorVersionGreadeTypeResult.h" +#include "model/ModifyRDSToClickhouseDbRequest.h" +#include "model/ModifyRDSToClickhouseDbResult.h" +#include "model/ReleaseClusterPublicConnectionRequest.h" +#include "model/ReleaseClusterPublicConnectionResult.h" +#include "model/ResetAccountPasswordRequest.h" +#include "model/ResetAccountPasswordResult.h" +#include "model/RestartInstanceRequest.h" +#include "model/RestartInstanceResult.h" +#include "model/TransferVersionRequest.h" +#include "model/TransferVersionResult.h" +#include "model/UpgradeMinorVersionRequest.h" +#include "model/UpgradeMinorVersionResult.h" + + +namespace AlibabaCloud +{ + namespace Clickhouse + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT ClickhouseClient : public RpcServiceClient + { + public: + typedef Outcome AllocateClusterPublicConnectionOutcome; + typedef std::future AllocateClusterPublicConnectionOutcomeCallable; + typedef std::function&)> AllocateClusterPublicConnectionAsyncHandler; + typedef Outcome CheckClickhouseToRDSOutcome; + typedef std::future CheckClickhouseToRDSOutcomeCallable; + typedef std::function&)> CheckClickhouseToRDSAsyncHandler; + typedef Outcome CheckModifyConfigNeedRestartOutcome; + typedef std::future CheckModifyConfigNeedRestartOutcomeCallable; + typedef std::function&)> CheckModifyConfigNeedRestartAsyncHandler; + typedef Outcome CheckMonitorAlertOutcome; + typedef std::future CheckMonitorAlertOutcomeCallable; + typedef std::function&)> CheckMonitorAlertAsyncHandler; + typedef Outcome CheckScaleOutBalancedOutcome; + typedef std::future CheckScaleOutBalancedOutcomeCallable; + typedef std::function&)> CheckScaleOutBalancedAsyncHandler; + typedef Outcome CheckServiceLinkedRoleOutcome; + typedef std::future CheckServiceLinkedRoleOutcomeCallable; + typedef std::function&)> CheckServiceLinkedRoleAsyncHandler; + typedef Outcome CreateAccountOutcome; + typedef std::future CreateAccountOutcomeCallable; + typedef std::function&)> CreateAccountAsyncHandler; + typedef Outcome CreateAccountAndAuthorityOutcome; + typedef std::future CreateAccountAndAuthorityOutcomeCallable; + typedef std::function&)> CreateAccountAndAuthorityAsyncHandler; + typedef Outcome CreateBackupPolicyOutcome; + typedef std::future CreateBackupPolicyOutcomeCallable; + typedef std::function&)> CreateBackupPolicyAsyncHandler; + typedef Outcome CreateDBInstanceOutcome; + typedef std::future CreateDBInstanceOutcomeCallable; + typedef std::function&)> CreateDBInstanceAsyncHandler; + typedef Outcome CreateMonitorDataReportOutcome; + typedef std::future CreateMonitorDataReportOutcomeCallable; + typedef std::function&)> CreateMonitorDataReportAsyncHandler; + typedef Outcome CreateOSSStorageOutcome; + typedef std::future CreateOSSStorageOutcomeCallable; + typedef std::function&)> CreateOSSStorageAsyncHandler; + typedef Outcome CreatePortsForClickHouseOutcome; + typedef std::future CreatePortsForClickHouseOutcomeCallable; + typedef std::function&)> CreatePortsForClickHouseAsyncHandler; + typedef Outcome CreateRDSToClickhouseDbOutcome; + typedef std::future CreateRDSToClickhouseDbOutcomeCallable; + typedef std::function&)> CreateRDSToClickhouseDbAsyncHandler; + typedef Outcome CreateSQLAccountOutcome; + typedef std::future CreateSQLAccountOutcomeCallable; + typedef std::function&)> CreateSQLAccountAsyncHandler; + typedef Outcome CreateServiceLinkedRoleOutcome; + typedef std::future CreateServiceLinkedRoleOutcomeCallable; + typedef std::function&)> CreateServiceLinkedRoleAsyncHandler; + typedef Outcome DeleteAccountOutcome; + typedef std::future DeleteAccountOutcomeCallable; + typedef std::function&)> DeleteAccountAsyncHandler; + typedef Outcome DeleteDBClusterOutcome; + typedef std::future DeleteDBClusterOutcomeCallable; + typedef std::function&)> DeleteDBClusterAsyncHandler; + typedef Outcome DeleteSyndbOutcome; + typedef std::future DeleteSyndbOutcomeCallable; + typedef std::function&)> DeleteSyndbAsyncHandler; + typedef Outcome DescribeAccountAuthorityOutcome; + typedef std::future DescribeAccountAuthorityOutcomeCallable; + typedef std::function&)> DescribeAccountAuthorityAsyncHandler; + typedef Outcome DescribeAccountsOutcome; + typedef std::future DescribeAccountsOutcomeCallable; + typedef std::function&)> DescribeAccountsAsyncHandler; + typedef Outcome DescribeAllDataSourceOutcome; + typedef std::future DescribeAllDataSourceOutcomeCallable; + typedef std::function&)> DescribeAllDataSourceAsyncHandler; + typedef Outcome DescribeAllDataSourcesOutcome; + typedef std::future DescribeAllDataSourcesOutcomeCallable; + typedef std::function&)> DescribeAllDataSourcesAsyncHandler; + typedef Outcome DescribeBackupPolicyOutcome; + typedef std::future DescribeBackupPolicyOutcomeCallable; + typedef std::function&)> DescribeBackupPolicyAsyncHandler; + typedef Outcome DescribeBackupsOutcome; + typedef std::future DescribeBackupsOutcomeCallable; + typedef std::function&)> DescribeBackupsAsyncHandler; + typedef Outcome DescribeColumnsOutcome; + typedef std::future DescribeColumnsOutcomeCallable; + typedef std::function&)> DescribeColumnsAsyncHandler; + typedef Outcome DescribeConfigHistoryOutcome; + typedef std::future DescribeConfigHistoryOutcomeCallable; + typedef std::function&)> DescribeConfigHistoryAsyncHandler; + typedef Outcome DescribeConfigVersionDifferenceOutcome; + typedef std::future DescribeConfigVersionDifferenceOutcomeCallable; + typedef std::function&)> DescribeConfigVersionDifferenceAsyncHandler; + typedef Outcome DescribeDBClusterAccessWhiteListOutcome; + typedef std::future DescribeDBClusterAccessWhiteListOutcomeCallable; + typedef std::function&)> DescribeDBClusterAccessWhiteListAsyncHandler; + typedef Outcome DescribeDBClusterAttributeOutcome; + typedef std::future DescribeDBClusterAttributeOutcomeCallable; + typedef std::function&)> DescribeDBClusterAttributeAsyncHandler; + typedef Outcome DescribeDBClusterConfigOutcome; + typedef std::future DescribeDBClusterConfigOutcomeCallable; + typedef std::function&)> DescribeDBClusterConfigAsyncHandler; + typedef Outcome DescribeDBClusterConfigInXMLOutcome; + typedef std::future DescribeDBClusterConfigInXMLOutcomeCallable; + typedef std::function&)> DescribeDBClusterConfigInXMLAsyncHandler; + typedef Outcome DescribeDBClusterNetInfoItemsOutcome; + typedef std::future DescribeDBClusterNetInfoItemsOutcomeCallable; + typedef std::function&)> DescribeDBClusterNetInfoItemsAsyncHandler; + typedef Outcome DescribeDBClusterPerformanceOutcome; + typedef std::future DescribeDBClusterPerformanceOutcomeCallable; + typedef std::function&)> DescribeDBClusterPerformanceAsyncHandler; + typedef Outcome DescribeDBClustersOutcome; + typedef std::future DescribeDBClustersOutcomeCallable; + typedef std::function&)> DescribeDBClustersAsyncHandler; + typedef Outcome DescribeDBConfigOutcome; + typedef std::future DescribeDBConfigOutcomeCallable; + typedef std::function&)> DescribeDBConfigAsyncHandler; + typedef Outcome DescribeOSSStorageOutcome; + typedef std::future DescribeOSSStorageOutcomeCallable; + typedef std::function&)> DescribeOSSStorageAsyncHandler; + typedef Outcome DescribeProcessListOutcome; + typedef std::future DescribeProcessListOutcomeCallable; + typedef std::function&)> DescribeProcessListAsyncHandler; + typedef Outcome DescribeRegionsOutcome; + typedef std::future DescribeRegionsOutcomeCallable; + typedef std::function&)> DescribeRegionsAsyncHandler; + typedef Outcome DescribeSchemasOutcome; + typedef std::future DescribeSchemasOutcomeCallable; + typedef std::function&)> DescribeSchemasAsyncHandler; + typedef Outcome DescribeSlowLogRecordsOutcome; + typedef std::future DescribeSlowLogRecordsOutcomeCallable; + typedef std::function&)> DescribeSlowLogRecordsAsyncHandler; + typedef Outcome DescribeSynDbTablesOutcome; + typedef std::future DescribeSynDbTablesOutcomeCallable; + typedef std::function&)> DescribeSynDbTablesAsyncHandler; + typedef Outcome DescribeSynDbsOutcome; + typedef std::future DescribeSynDbsOutcomeCallable; + typedef std::function&)> DescribeSynDbsAsyncHandler; + typedef Outcome DescribeTablesOutcome; + typedef std::future DescribeTablesOutcomeCallable; + typedef std::function&)> DescribeTablesAsyncHandler; + typedef Outcome DescribeTransferHistoryOutcome; + typedef std::future DescribeTransferHistoryOutcomeCallable; + typedef std::function&)> DescribeTransferHistoryAsyncHandler; + typedef Outcome KillProcessOutcome; + typedef std::future KillProcessOutcomeCallable; + typedef std::function&)> KillProcessAsyncHandler; + typedef Outcome ModifyAccountAuthorityOutcome; + typedef std::future ModifyAccountAuthorityOutcomeCallable; + typedef std::function&)> ModifyAccountAuthorityAsyncHandler; + typedef Outcome ModifyAccountDescriptionOutcome; + typedef std::future ModifyAccountDescriptionOutcomeCallable; + typedef std::function&)> ModifyAccountDescriptionAsyncHandler; + typedef Outcome ModifyBackupPolicyOutcome; + typedef std::future ModifyBackupPolicyOutcomeCallable; + typedef std::function&)> ModifyBackupPolicyAsyncHandler; + typedef Outcome ModifyDBClusterOutcome; + typedef std::future ModifyDBClusterOutcomeCallable; + typedef std::function&)> ModifyDBClusterAsyncHandler; + typedef Outcome ModifyDBClusterAccessWhiteListOutcome; + typedef std::future ModifyDBClusterAccessWhiteListOutcomeCallable; + typedef std::function&)> ModifyDBClusterAccessWhiteListAsyncHandler; + typedef Outcome ModifyDBClusterConfigOutcome; + typedef std::future ModifyDBClusterConfigOutcomeCallable; + typedef std::function&)> ModifyDBClusterConfigAsyncHandler; + typedef Outcome ModifyDBClusterConfigInXMLOutcome; + typedef std::future ModifyDBClusterConfigInXMLOutcomeCallable; + typedef std::function&)> ModifyDBClusterConfigInXMLAsyncHandler; + typedef Outcome ModifyDBClusterDescriptionOutcome; + typedef std::future ModifyDBClusterDescriptionOutcomeCallable; + typedef std::function&)> ModifyDBClusterDescriptionAsyncHandler; + typedef Outcome ModifyDBClusterMaintainTimeOutcome; + typedef std::future ModifyDBClusterMaintainTimeOutcomeCallable; + typedef std::function&)> ModifyDBClusterMaintainTimeAsyncHandler; + typedef Outcome ModifyDBConfigOutcome; + typedef std::future ModifyDBConfigOutcomeCallable; + typedef std::function&)> ModifyDBConfigAsyncHandler; + typedef Outcome ModifyMinorVersionGreadeTypeOutcome; + typedef std::future ModifyMinorVersionGreadeTypeOutcomeCallable; + typedef std::function&)> ModifyMinorVersionGreadeTypeAsyncHandler; + typedef Outcome ModifyRDSToClickhouseDbOutcome; + typedef std::future ModifyRDSToClickhouseDbOutcomeCallable; + typedef std::function&)> ModifyRDSToClickhouseDbAsyncHandler; + typedef Outcome ReleaseClusterPublicConnectionOutcome; + typedef std::future ReleaseClusterPublicConnectionOutcomeCallable; + typedef std::function&)> ReleaseClusterPublicConnectionAsyncHandler; + typedef Outcome ResetAccountPasswordOutcome; + typedef std::future ResetAccountPasswordOutcomeCallable; + typedef std::function&)> ResetAccountPasswordAsyncHandler; + typedef Outcome RestartInstanceOutcome; + typedef std::future RestartInstanceOutcomeCallable; + typedef std::function&)> RestartInstanceAsyncHandler; + typedef Outcome TransferVersionOutcome; + typedef std::future TransferVersionOutcomeCallable; + typedef std::function&)> TransferVersionAsyncHandler; + typedef Outcome UpgradeMinorVersionOutcome; + typedef std::future UpgradeMinorVersionOutcomeCallable; + typedef std::function&)> UpgradeMinorVersionAsyncHandler; + + ClickhouseClient(const Credentials &credentials, const ClientConfiguration &configuration); + ClickhouseClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + ClickhouseClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~ClickhouseClient(); + AllocateClusterPublicConnectionOutcome allocateClusterPublicConnection(const Model::AllocateClusterPublicConnectionRequest &request)const; + void allocateClusterPublicConnectionAsync(const Model::AllocateClusterPublicConnectionRequest& request, const AllocateClusterPublicConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AllocateClusterPublicConnectionOutcomeCallable allocateClusterPublicConnectionCallable(const Model::AllocateClusterPublicConnectionRequest& request) const; + CheckClickhouseToRDSOutcome checkClickhouseToRDS(const Model::CheckClickhouseToRDSRequest &request)const; + void checkClickhouseToRDSAsync(const Model::CheckClickhouseToRDSRequest& request, const CheckClickhouseToRDSAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CheckClickhouseToRDSOutcomeCallable checkClickhouseToRDSCallable(const Model::CheckClickhouseToRDSRequest& request) const; + CheckModifyConfigNeedRestartOutcome checkModifyConfigNeedRestart(const Model::CheckModifyConfigNeedRestartRequest &request)const; + void checkModifyConfigNeedRestartAsync(const Model::CheckModifyConfigNeedRestartRequest& request, const CheckModifyConfigNeedRestartAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CheckModifyConfigNeedRestartOutcomeCallable checkModifyConfigNeedRestartCallable(const Model::CheckModifyConfigNeedRestartRequest& request) const; + CheckMonitorAlertOutcome checkMonitorAlert(const Model::CheckMonitorAlertRequest &request)const; + void checkMonitorAlertAsync(const Model::CheckMonitorAlertRequest& request, const CheckMonitorAlertAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CheckMonitorAlertOutcomeCallable checkMonitorAlertCallable(const Model::CheckMonitorAlertRequest& request) const; + CheckScaleOutBalancedOutcome checkScaleOutBalanced(const Model::CheckScaleOutBalancedRequest &request)const; + void checkScaleOutBalancedAsync(const Model::CheckScaleOutBalancedRequest& request, const CheckScaleOutBalancedAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CheckScaleOutBalancedOutcomeCallable checkScaleOutBalancedCallable(const Model::CheckScaleOutBalancedRequest& request) const; + CheckServiceLinkedRoleOutcome checkServiceLinkedRole(const Model::CheckServiceLinkedRoleRequest &request)const; + void checkServiceLinkedRoleAsync(const Model::CheckServiceLinkedRoleRequest& request, const CheckServiceLinkedRoleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CheckServiceLinkedRoleOutcomeCallable checkServiceLinkedRoleCallable(const Model::CheckServiceLinkedRoleRequest& request) const; + CreateAccountOutcome createAccount(const Model::CreateAccountRequest &request)const; + void createAccountAsync(const Model::CreateAccountRequest& request, const CreateAccountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAccountOutcomeCallable createAccountCallable(const Model::CreateAccountRequest& request) const; + CreateAccountAndAuthorityOutcome createAccountAndAuthority(const Model::CreateAccountAndAuthorityRequest &request)const; + void createAccountAndAuthorityAsync(const Model::CreateAccountAndAuthorityRequest& request, const CreateAccountAndAuthorityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAccountAndAuthorityOutcomeCallable createAccountAndAuthorityCallable(const Model::CreateAccountAndAuthorityRequest& request) const; + CreateBackupPolicyOutcome createBackupPolicy(const Model::CreateBackupPolicyRequest &request)const; + void createBackupPolicyAsync(const Model::CreateBackupPolicyRequest& request, const CreateBackupPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateBackupPolicyOutcomeCallable createBackupPolicyCallable(const Model::CreateBackupPolicyRequest& request) const; + CreateDBInstanceOutcome createDBInstance(const Model::CreateDBInstanceRequest &request)const; + void createDBInstanceAsync(const Model::CreateDBInstanceRequest& request, const CreateDBInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDBInstanceOutcomeCallable createDBInstanceCallable(const Model::CreateDBInstanceRequest& request) const; + CreateMonitorDataReportOutcome createMonitorDataReport(const Model::CreateMonitorDataReportRequest &request)const; + void createMonitorDataReportAsync(const Model::CreateMonitorDataReportRequest& request, const CreateMonitorDataReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateMonitorDataReportOutcomeCallable createMonitorDataReportCallable(const Model::CreateMonitorDataReportRequest& request) const; + CreateOSSStorageOutcome createOSSStorage(const Model::CreateOSSStorageRequest &request)const; + void createOSSStorageAsync(const Model::CreateOSSStorageRequest& request, const CreateOSSStorageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateOSSStorageOutcomeCallable createOSSStorageCallable(const Model::CreateOSSStorageRequest& request) const; + CreatePortsForClickHouseOutcome createPortsForClickHouse(const Model::CreatePortsForClickHouseRequest &request)const; + void createPortsForClickHouseAsync(const Model::CreatePortsForClickHouseRequest& request, const CreatePortsForClickHouseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreatePortsForClickHouseOutcomeCallable createPortsForClickHouseCallable(const Model::CreatePortsForClickHouseRequest& request) const; + CreateRDSToClickhouseDbOutcome createRDSToClickhouseDb(const Model::CreateRDSToClickhouseDbRequest &request)const; + void createRDSToClickhouseDbAsync(const Model::CreateRDSToClickhouseDbRequest& request, const CreateRDSToClickhouseDbAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateRDSToClickhouseDbOutcomeCallable createRDSToClickhouseDbCallable(const Model::CreateRDSToClickhouseDbRequest& request) const; + CreateSQLAccountOutcome createSQLAccount(const Model::CreateSQLAccountRequest &request)const; + void createSQLAccountAsync(const Model::CreateSQLAccountRequest& request, const CreateSQLAccountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateSQLAccountOutcomeCallable createSQLAccountCallable(const Model::CreateSQLAccountRequest& request) const; + CreateServiceLinkedRoleOutcome createServiceLinkedRole(const Model::CreateServiceLinkedRoleRequest &request)const; + void createServiceLinkedRoleAsync(const Model::CreateServiceLinkedRoleRequest& request, const CreateServiceLinkedRoleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateServiceLinkedRoleOutcomeCallable createServiceLinkedRoleCallable(const Model::CreateServiceLinkedRoleRequest& request) const; + DeleteAccountOutcome deleteAccount(const Model::DeleteAccountRequest &request)const; + void deleteAccountAsync(const Model::DeleteAccountRequest& request, const DeleteAccountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteAccountOutcomeCallable deleteAccountCallable(const Model::DeleteAccountRequest& request) const; + DeleteDBClusterOutcome deleteDBCluster(const Model::DeleteDBClusterRequest &request)const; + void deleteDBClusterAsync(const Model::DeleteDBClusterRequest& request, const DeleteDBClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDBClusterOutcomeCallable deleteDBClusterCallable(const Model::DeleteDBClusterRequest& request) const; + DeleteSyndbOutcome deleteSyndb(const Model::DeleteSyndbRequest &request)const; + void deleteSyndbAsync(const Model::DeleteSyndbRequest& request, const DeleteSyndbAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteSyndbOutcomeCallable deleteSyndbCallable(const Model::DeleteSyndbRequest& request) const; + DescribeAccountAuthorityOutcome describeAccountAuthority(const Model::DescribeAccountAuthorityRequest &request)const; + void describeAccountAuthorityAsync(const Model::DescribeAccountAuthorityRequest& request, const DescribeAccountAuthorityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAccountAuthorityOutcomeCallable describeAccountAuthorityCallable(const Model::DescribeAccountAuthorityRequest& request) const; + DescribeAccountsOutcome describeAccounts(const Model::DescribeAccountsRequest &request)const; + void describeAccountsAsync(const Model::DescribeAccountsRequest& request, const DescribeAccountsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAccountsOutcomeCallable describeAccountsCallable(const Model::DescribeAccountsRequest& request) const; + DescribeAllDataSourceOutcome describeAllDataSource(const Model::DescribeAllDataSourceRequest &request)const; + void describeAllDataSourceAsync(const Model::DescribeAllDataSourceRequest& request, const DescribeAllDataSourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAllDataSourceOutcomeCallable describeAllDataSourceCallable(const Model::DescribeAllDataSourceRequest& request) const; + DescribeAllDataSourcesOutcome describeAllDataSources(const Model::DescribeAllDataSourcesRequest &request)const; + void describeAllDataSourcesAsync(const Model::DescribeAllDataSourcesRequest& request, const DescribeAllDataSourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAllDataSourcesOutcomeCallable describeAllDataSourcesCallable(const Model::DescribeAllDataSourcesRequest& request) const; + DescribeBackupPolicyOutcome describeBackupPolicy(const Model::DescribeBackupPolicyRequest &request)const; + void describeBackupPolicyAsync(const Model::DescribeBackupPolicyRequest& request, const DescribeBackupPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeBackupPolicyOutcomeCallable describeBackupPolicyCallable(const Model::DescribeBackupPolicyRequest& request) const; + DescribeBackupsOutcome describeBackups(const Model::DescribeBackupsRequest &request)const; + void describeBackupsAsync(const Model::DescribeBackupsRequest& request, const DescribeBackupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeBackupsOutcomeCallable describeBackupsCallable(const Model::DescribeBackupsRequest& request) const; + DescribeColumnsOutcome describeColumns(const Model::DescribeColumnsRequest &request)const; + void describeColumnsAsync(const Model::DescribeColumnsRequest& request, const DescribeColumnsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeColumnsOutcomeCallable describeColumnsCallable(const Model::DescribeColumnsRequest& request) const; + DescribeConfigHistoryOutcome describeConfigHistory(const Model::DescribeConfigHistoryRequest &request)const; + void describeConfigHistoryAsync(const Model::DescribeConfigHistoryRequest& request, const DescribeConfigHistoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeConfigHistoryOutcomeCallable describeConfigHistoryCallable(const Model::DescribeConfigHistoryRequest& request) const; + DescribeConfigVersionDifferenceOutcome describeConfigVersionDifference(const Model::DescribeConfigVersionDifferenceRequest &request)const; + void describeConfigVersionDifferenceAsync(const Model::DescribeConfigVersionDifferenceRequest& request, const DescribeConfigVersionDifferenceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeConfigVersionDifferenceOutcomeCallable describeConfigVersionDifferenceCallable(const Model::DescribeConfigVersionDifferenceRequest& request) const; + DescribeDBClusterAccessWhiteListOutcome describeDBClusterAccessWhiteList(const Model::DescribeDBClusterAccessWhiteListRequest &request)const; + void describeDBClusterAccessWhiteListAsync(const Model::DescribeDBClusterAccessWhiteListRequest& request, const DescribeDBClusterAccessWhiteListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBClusterAccessWhiteListOutcomeCallable describeDBClusterAccessWhiteListCallable(const Model::DescribeDBClusterAccessWhiteListRequest& request) const; + DescribeDBClusterAttributeOutcome describeDBClusterAttribute(const Model::DescribeDBClusterAttributeRequest &request)const; + void describeDBClusterAttributeAsync(const Model::DescribeDBClusterAttributeRequest& request, const DescribeDBClusterAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBClusterAttributeOutcomeCallable describeDBClusterAttributeCallable(const Model::DescribeDBClusterAttributeRequest& request) const; + DescribeDBClusterConfigOutcome describeDBClusterConfig(const Model::DescribeDBClusterConfigRequest &request)const; + void describeDBClusterConfigAsync(const Model::DescribeDBClusterConfigRequest& request, const DescribeDBClusterConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBClusterConfigOutcomeCallable describeDBClusterConfigCallable(const Model::DescribeDBClusterConfigRequest& request) const; + DescribeDBClusterConfigInXMLOutcome describeDBClusterConfigInXML(const Model::DescribeDBClusterConfigInXMLRequest &request)const; + void describeDBClusterConfigInXMLAsync(const Model::DescribeDBClusterConfigInXMLRequest& request, const DescribeDBClusterConfigInXMLAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBClusterConfigInXMLOutcomeCallable describeDBClusterConfigInXMLCallable(const Model::DescribeDBClusterConfigInXMLRequest& request) const; + DescribeDBClusterNetInfoItemsOutcome describeDBClusterNetInfoItems(const Model::DescribeDBClusterNetInfoItemsRequest &request)const; + void describeDBClusterNetInfoItemsAsync(const Model::DescribeDBClusterNetInfoItemsRequest& request, const DescribeDBClusterNetInfoItemsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBClusterNetInfoItemsOutcomeCallable describeDBClusterNetInfoItemsCallable(const Model::DescribeDBClusterNetInfoItemsRequest& request) const; + DescribeDBClusterPerformanceOutcome describeDBClusterPerformance(const Model::DescribeDBClusterPerformanceRequest &request)const; + void describeDBClusterPerformanceAsync(const Model::DescribeDBClusterPerformanceRequest& request, const DescribeDBClusterPerformanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBClusterPerformanceOutcomeCallable describeDBClusterPerformanceCallable(const Model::DescribeDBClusterPerformanceRequest& request) const; + DescribeDBClustersOutcome describeDBClusters(const Model::DescribeDBClustersRequest &request)const; + void describeDBClustersAsync(const Model::DescribeDBClustersRequest& request, const DescribeDBClustersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBClustersOutcomeCallable describeDBClustersCallable(const Model::DescribeDBClustersRequest& request) const; + DescribeDBConfigOutcome describeDBConfig(const Model::DescribeDBConfigRequest &request)const; + void describeDBConfigAsync(const Model::DescribeDBConfigRequest& request, const DescribeDBConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBConfigOutcomeCallable describeDBConfigCallable(const Model::DescribeDBConfigRequest& request) const; + DescribeOSSStorageOutcome describeOSSStorage(const Model::DescribeOSSStorageRequest &request)const; + void describeOSSStorageAsync(const Model::DescribeOSSStorageRequest& request, const DescribeOSSStorageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeOSSStorageOutcomeCallable describeOSSStorageCallable(const Model::DescribeOSSStorageRequest& request) const; + DescribeProcessListOutcome describeProcessList(const Model::DescribeProcessListRequest &request)const; + void describeProcessListAsync(const Model::DescribeProcessListRequest& request, const DescribeProcessListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeProcessListOutcomeCallable describeProcessListCallable(const Model::DescribeProcessListRequest& request) const; + DescribeRegionsOutcome describeRegions(const Model::DescribeRegionsRequest &request)const; + void describeRegionsAsync(const Model::DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRegionsOutcomeCallable describeRegionsCallable(const Model::DescribeRegionsRequest& request) const; + DescribeSchemasOutcome describeSchemas(const Model::DescribeSchemasRequest &request)const; + void describeSchemasAsync(const Model::DescribeSchemasRequest& request, const DescribeSchemasAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSchemasOutcomeCallable describeSchemasCallable(const Model::DescribeSchemasRequest& request) const; + DescribeSlowLogRecordsOutcome describeSlowLogRecords(const Model::DescribeSlowLogRecordsRequest &request)const; + void describeSlowLogRecordsAsync(const Model::DescribeSlowLogRecordsRequest& request, const DescribeSlowLogRecordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSlowLogRecordsOutcomeCallable describeSlowLogRecordsCallable(const Model::DescribeSlowLogRecordsRequest& request) const; + DescribeSynDbTablesOutcome describeSynDbTables(const Model::DescribeSynDbTablesRequest &request)const; + void describeSynDbTablesAsync(const Model::DescribeSynDbTablesRequest& request, const DescribeSynDbTablesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSynDbTablesOutcomeCallable describeSynDbTablesCallable(const Model::DescribeSynDbTablesRequest& request) const; + DescribeSynDbsOutcome describeSynDbs(const Model::DescribeSynDbsRequest &request)const; + void describeSynDbsAsync(const Model::DescribeSynDbsRequest& request, const DescribeSynDbsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSynDbsOutcomeCallable describeSynDbsCallable(const Model::DescribeSynDbsRequest& request) const; + DescribeTablesOutcome describeTables(const Model::DescribeTablesRequest &request)const; + void describeTablesAsync(const Model::DescribeTablesRequest& request, const DescribeTablesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeTablesOutcomeCallable describeTablesCallable(const Model::DescribeTablesRequest& request) const; + DescribeTransferHistoryOutcome describeTransferHistory(const Model::DescribeTransferHistoryRequest &request)const; + void describeTransferHistoryAsync(const Model::DescribeTransferHistoryRequest& request, const DescribeTransferHistoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeTransferHistoryOutcomeCallable describeTransferHistoryCallable(const Model::DescribeTransferHistoryRequest& request) const; + KillProcessOutcome killProcess(const Model::KillProcessRequest &request)const; + void killProcessAsync(const Model::KillProcessRequest& request, const KillProcessAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + KillProcessOutcomeCallable killProcessCallable(const Model::KillProcessRequest& request) const; + ModifyAccountAuthorityOutcome modifyAccountAuthority(const Model::ModifyAccountAuthorityRequest &request)const; + void modifyAccountAuthorityAsync(const Model::ModifyAccountAuthorityRequest& request, const ModifyAccountAuthorityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyAccountAuthorityOutcomeCallable modifyAccountAuthorityCallable(const Model::ModifyAccountAuthorityRequest& request) const; + ModifyAccountDescriptionOutcome modifyAccountDescription(const Model::ModifyAccountDescriptionRequest &request)const; + void modifyAccountDescriptionAsync(const Model::ModifyAccountDescriptionRequest& request, const ModifyAccountDescriptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyAccountDescriptionOutcomeCallable modifyAccountDescriptionCallable(const Model::ModifyAccountDescriptionRequest& request) const; + ModifyBackupPolicyOutcome modifyBackupPolicy(const Model::ModifyBackupPolicyRequest &request)const; + void modifyBackupPolicyAsync(const Model::ModifyBackupPolicyRequest& request, const ModifyBackupPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyBackupPolicyOutcomeCallable modifyBackupPolicyCallable(const Model::ModifyBackupPolicyRequest& request) const; + ModifyDBClusterOutcome modifyDBCluster(const Model::ModifyDBClusterRequest &request)const; + void modifyDBClusterAsync(const Model::ModifyDBClusterRequest& request, const ModifyDBClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBClusterOutcomeCallable modifyDBClusterCallable(const Model::ModifyDBClusterRequest& request) const; + ModifyDBClusterAccessWhiteListOutcome modifyDBClusterAccessWhiteList(const Model::ModifyDBClusterAccessWhiteListRequest &request)const; + void modifyDBClusterAccessWhiteListAsync(const Model::ModifyDBClusterAccessWhiteListRequest& request, const ModifyDBClusterAccessWhiteListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBClusterAccessWhiteListOutcomeCallable modifyDBClusterAccessWhiteListCallable(const Model::ModifyDBClusterAccessWhiteListRequest& request) const; + ModifyDBClusterConfigOutcome modifyDBClusterConfig(const Model::ModifyDBClusterConfigRequest &request)const; + void modifyDBClusterConfigAsync(const Model::ModifyDBClusterConfigRequest& request, const ModifyDBClusterConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBClusterConfigOutcomeCallable modifyDBClusterConfigCallable(const Model::ModifyDBClusterConfigRequest& request) const; + ModifyDBClusterConfigInXMLOutcome modifyDBClusterConfigInXML(const Model::ModifyDBClusterConfigInXMLRequest &request)const; + void modifyDBClusterConfigInXMLAsync(const Model::ModifyDBClusterConfigInXMLRequest& request, const ModifyDBClusterConfigInXMLAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBClusterConfigInXMLOutcomeCallable modifyDBClusterConfigInXMLCallable(const Model::ModifyDBClusterConfigInXMLRequest& request) const; + ModifyDBClusterDescriptionOutcome modifyDBClusterDescription(const Model::ModifyDBClusterDescriptionRequest &request)const; + void modifyDBClusterDescriptionAsync(const Model::ModifyDBClusterDescriptionRequest& request, const ModifyDBClusterDescriptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBClusterDescriptionOutcomeCallable modifyDBClusterDescriptionCallable(const Model::ModifyDBClusterDescriptionRequest& request) const; + ModifyDBClusterMaintainTimeOutcome modifyDBClusterMaintainTime(const Model::ModifyDBClusterMaintainTimeRequest &request)const; + void modifyDBClusterMaintainTimeAsync(const Model::ModifyDBClusterMaintainTimeRequest& request, const ModifyDBClusterMaintainTimeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBClusterMaintainTimeOutcomeCallable modifyDBClusterMaintainTimeCallable(const Model::ModifyDBClusterMaintainTimeRequest& request) const; + ModifyDBConfigOutcome modifyDBConfig(const Model::ModifyDBConfigRequest &request)const; + void modifyDBConfigAsync(const Model::ModifyDBConfigRequest& request, const ModifyDBConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBConfigOutcomeCallable modifyDBConfigCallable(const Model::ModifyDBConfigRequest& request) const; + ModifyMinorVersionGreadeTypeOutcome modifyMinorVersionGreadeType(const Model::ModifyMinorVersionGreadeTypeRequest &request)const; + void modifyMinorVersionGreadeTypeAsync(const Model::ModifyMinorVersionGreadeTypeRequest& request, const ModifyMinorVersionGreadeTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyMinorVersionGreadeTypeOutcomeCallable modifyMinorVersionGreadeTypeCallable(const Model::ModifyMinorVersionGreadeTypeRequest& request) const; + ModifyRDSToClickhouseDbOutcome modifyRDSToClickhouseDb(const Model::ModifyRDSToClickhouseDbRequest &request)const; + void modifyRDSToClickhouseDbAsync(const Model::ModifyRDSToClickhouseDbRequest& request, const ModifyRDSToClickhouseDbAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyRDSToClickhouseDbOutcomeCallable modifyRDSToClickhouseDbCallable(const Model::ModifyRDSToClickhouseDbRequest& request) const; + ReleaseClusterPublicConnectionOutcome releaseClusterPublicConnection(const Model::ReleaseClusterPublicConnectionRequest &request)const; + void releaseClusterPublicConnectionAsync(const Model::ReleaseClusterPublicConnectionRequest& request, const ReleaseClusterPublicConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ReleaseClusterPublicConnectionOutcomeCallable releaseClusterPublicConnectionCallable(const Model::ReleaseClusterPublicConnectionRequest& request) const; + ResetAccountPasswordOutcome resetAccountPassword(const Model::ResetAccountPasswordRequest &request)const; + void resetAccountPasswordAsync(const Model::ResetAccountPasswordRequest& request, const ResetAccountPasswordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ResetAccountPasswordOutcomeCallable resetAccountPasswordCallable(const Model::ResetAccountPasswordRequest& request) const; + RestartInstanceOutcome restartInstance(const Model::RestartInstanceRequest &request)const; + void restartInstanceAsync(const Model::RestartInstanceRequest& request, const RestartInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RestartInstanceOutcomeCallable restartInstanceCallable(const Model::RestartInstanceRequest& request) const; + TransferVersionOutcome transferVersion(const Model::TransferVersionRequest &request)const; + void transferVersionAsync(const Model::TransferVersionRequest& request, const TransferVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TransferVersionOutcomeCallable transferVersionCallable(const Model::TransferVersionRequest& request) const; + UpgradeMinorVersionOutcome upgradeMinorVersion(const Model::UpgradeMinorVersionRequest &request)const; + void upgradeMinorVersionAsync(const Model::UpgradeMinorVersionRequest& request, const UpgradeMinorVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpgradeMinorVersionOutcomeCallable upgradeMinorVersionCallable(const Model::UpgradeMinorVersionRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_CLICKHOUSE_CLICKHOUSECLIENT_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/ClickhouseExport.h b/clickhouse/include/alibabacloud/clickhouse/ClickhouseExport.h new file mode 100644 index 000000000..e8a433628 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/ClickhouseExport.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_CLICKHOUSE_CLICKHOUSEEXPORT_H_ +#define ALIBABACLOUD_CLICKHOUSE_CLICKHOUSEEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_CLICKHOUSE_LIBRARY) +# define ALIBABACLOUD_CLICKHOUSE_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_CLICKHOUSE_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_CLICKHOUSE_EXPORT +#endif + +#endif // !ALIBABACLOUD_CLICKHOUSE_CLICKHOUSEEXPORT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/AllocateClusterPublicConnectionRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/AllocateClusterPublicConnectionRequest.h new file mode 100644 index 000000000..4b7a48ded --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/AllocateClusterPublicConnectionRequest.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_CLICKHOUSE_MODEL_ALLOCATECLUSTERPUBLICCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_ALLOCATECLUSTERPUBLICCONNECTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT AllocateClusterPublicConnectionRequest : public RpcServiceRequest { +public: + AllocateClusterPublicConnectionRequest(); + ~AllocateClusterPublicConnectionRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getConnectionStringPrefix() const; + void setConnectionStringPrefix(const std::string &connectionStringPrefix); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string connectionStringPrefix_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_ALLOCATECLUSTERPUBLICCONNECTIONREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/AllocateClusterPublicConnectionResult.h b/clickhouse/include/alibabacloud/clickhouse/model/AllocateClusterPublicConnectionResult.h new file mode 100644 index 000000000..652b04059 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/AllocateClusterPublicConnectionResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_ALLOCATECLUSTERPUBLICCONNECTIONRESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_ALLOCATECLUSTERPUBLICCONNECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT AllocateClusterPublicConnectionResult : public ServiceResult + { + public: + + + AllocateClusterPublicConnectionResult(); + explicit AllocateClusterPublicConnectionResult(const std::string &payload); + ~AllocateClusterPublicConnectionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_ALLOCATECLUSTERPUBLICCONNECTIONRESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/CheckClickhouseToRDSRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/CheckClickhouseToRDSRequest.h new file mode 100644 index 000000000..db783197c --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/CheckClickhouseToRDSRequest.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_CLICKHOUSE_MODEL_CHECKCLICKHOUSETORDSREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_CHECKCLICKHOUSETORDSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT CheckClickhouseToRDSRequest : public RpcServiceRequest { +public: + CheckClickhouseToRDSRequest(); + ~CheckClickhouseToRDSRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRdsVpcId() const; + void setRdsVpcId(const std::string &rdsVpcId); + std::string getCkPassword() const; + void setCkPassword(const std::string &ckPassword); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRdsPassword() const; + void setRdsPassword(const std::string &rdsPassword); + std::string getCkUserName() const; + void setCkUserName(const std::string &ckUserName); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDbClusterId() const; + void setDbClusterId(const std::string &dbClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getRdsId() const; + void setRdsId(const std::string &rdsId); + long getOwnerId() const; + void setOwnerId(long ownerId); + long getClickhousePort() const; + void setClickhousePort(long clickhousePort); + long getRdsPort() const; + void setRdsPort(long rdsPort); + std::string getRdsVpcUrl() const; + void setRdsVpcUrl(const std::string &rdsVpcUrl); + std::string getRdsUserName() const; + void setRdsUserName(const std::string &rdsUserName); + +private: + long resourceOwnerId_; + std::string rdsVpcId_; + std::string ckPassword_; + std::string accessKeyId_; + std::string rdsPassword_; + std::string ckUserName_; + std::string resourceOwnerAccount_; + std::string dbClusterId_; + std::string ownerAccount_; + std::string rdsId_; + long ownerId_; + long clickhousePort_; + long rdsPort_; + std::string rdsVpcUrl_; + std::string rdsUserName_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_CHECKCLICKHOUSETORDSREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/CheckClickhouseToRDSResult.h b/clickhouse/include/alibabacloud/clickhouse/model/CheckClickhouseToRDSResult.h new file mode 100644 index 000000000..7090e7d3c --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/CheckClickhouseToRDSResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_CHECKCLICKHOUSETORDSRESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_CHECKCLICKHOUSETORDSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT CheckClickhouseToRDSResult : public ServiceResult + { + public: + + + CheckClickhouseToRDSResult(); + explicit CheckClickhouseToRDSResult(const std::string &payload); + ~CheckClickhouseToRDSResult(); + bool getStatus()const; + std::string getErrorCode()const; + + protected: + void parse(const std::string &payload); + private: + bool status_; + std::string errorCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_CHECKCLICKHOUSETORDSRESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/CheckModifyConfigNeedRestartRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/CheckModifyConfigNeedRestartRequest.h new file mode 100644 index 000000000..93f3c15ce --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/CheckModifyConfigNeedRestartRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_CHECKMODIFYCONFIGNEEDRESTARTREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_CHECKMODIFYCONFIGNEEDRESTARTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT CheckModifyConfigNeedRestartRequest : public RpcServiceRequest { +public: + CheckModifyConfigNeedRestartRequest(); + ~CheckModifyConfigNeedRestartRequest(); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getConfig() const; + void setConfig(const std::string &config); + +private: + std::string dBClusterId_; + std::string config_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_CHECKMODIFYCONFIGNEEDRESTARTREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/CheckModifyConfigNeedRestartResult.h b/clickhouse/include/alibabacloud/clickhouse/model/CheckModifyConfigNeedRestartResult.h new file mode 100644 index 000000000..8f3bdeb66 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/CheckModifyConfigNeedRestartResult.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_CLICKHOUSE_MODEL_CHECKMODIFYCONFIGNEEDRESTARTRESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_CHECKMODIFYCONFIGNEEDRESTARTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT CheckModifyConfigNeedRestartResult : public ServiceResult + { + public: + + + CheckModifyConfigNeedRestartResult(); + explicit CheckModifyConfigNeedRestartResult(const std::string &payload); + ~CheckModifyConfigNeedRestartResult(); + bool getNeedRestart()const; + + protected: + void parse(const std::string &payload); + private: + bool needRestart_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_CHECKMODIFYCONFIGNEEDRESTARTRESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/CheckMonitorAlertRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/CheckMonitorAlertRequest.h new file mode 100644 index 000000000..1a796c09a --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/CheckMonitorAlertRequest.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_CLICKHOUSE_MODEL_CHECKMONITORALERTREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_CHECKMONITORALERTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT CheckMonitorAlertRequest : public RpcServiceRequest { +public: + CheckMonitorAlertRequest(); + ~CheckMonitorAlertRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_CHECKMONITORALERTREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/CheckMonitorAlertResult.h b/clickhouse/include/alibabacloud/clickhouse/model/CheckMonitorAlertResult.h new file mode 100644 index 000000000..ad01b7778 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/CheckMonitorAlertResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_CHECKMONITORALERTRESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_CHECKMONITORALERTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT CheckMonitorAlertResult : public ServiceResult + { + public: + + + CheckMonitorAlertResult(); + explicit CheckMonitorAlertResult(const std::string &payload); + ~CheckMonitorAlertResult(); + std::string getState()const; + std::string get_Parameter()const; + + protected: + void parse(const std::string &payload); + private: + std::string state_; + std::string _parameter_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_CHECKMONITORALERTRESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/CheckScaleOutBalancedRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/CheckScaleOutBalancedRequest.h new file mode 100644 index 000000000..f89201579 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/CheckScaleOutBalancedRequest.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_CLICKHOUSE_MODEL_CHECKSCALEOUTBALANCEDREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_CHECKSCALEOUTBALANCEDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT CheckScaleOutBalancedRequest : public RpcServiceRequest { +public: + CheckScaleOutBalancedRequest(); + ~CheckScaleOutBalancedRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string accessKeyId_; + std::string regionId_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_CHECKSCALEOUTBALANCEDREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/CheckScaleOutBalancedResult.h b/clickhouse/include/alibabacloud/clickhouse/model/CheckScaleOutBalancedResult.h new file mode 100644 index 000000000..fe1df9cff --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/CheckScaleOutBalancedResult.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_CLICKHOUSE_MODEL_CHECKSCALEOUTBALANCEDRESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_CHECKSCALEOUTBALANCEDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT CheckScaleOutBalancedResult : public ServiceResult + { + public: + struct TableDetail + { + std::string tableName; + std::string database; + std::string cluster; + int detail; + }; + + + CheckScaleOutBalancedResult(); + explicit CheckScaleOutBalancedResult(const std::string &payload); + ~CheckScaleOutBalancedResult(); + std::vector getTableDetails()const; + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::string getCheckCode()const; + std::string getTimeDuration()const; + + protected: + void parse(const std::string &payload); + private: + std::vector tableDetails_; + int totalCount_; + int pageSize_; + int pageNumber_; + std::string checkCode_; + std::string timeDuration_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_CHECKSCALEOUTBALANCEDRESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/CheckServiceLinkedRoleRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/CheckServiceLinkedRoleRequest.h new file mode 100644 index 000000000..b2ef9c0bb --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/CheckServiceLinkedRoleRequest.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_CLICKHOUSE_MODEL_CHECKSERVICELINKEDROLEREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_CHECKSERVICELINKEDROLEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT CheckServiceLinkedRoleRequest : public RpcServiceRequest { +public: + CheckServiceLinkedRoleRequest(); + ~CheckServiceLinkedRoleRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_CHECKSERVICELINKEDROLEREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/CheckServiceLinkedRoleResult.h b/clickhouse/include/alibabacloud/clickhouse/model/CheckServiceLinkedRoleResult.h new file mode 100644 index 000000000..8173f7983 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/CheckServiceLinkedRoleResult.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_CLICKHOUSE_MODEL_CHECKSERVICELINKEDROLERESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_CHECKSERVICELINKEDROLERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT CheckServiceLinkedRoleResult : public ServiceResult + { + public: + + + CheckServiceLinkedRoleResult(); + explicit CheckServiceLinkedRoleResult(const std::string &payload); + ~CheckServiceLinkedRoleResult(); + bool getHasServiceLinkedRole()const; + + protected: + void parse(const std::string &payload); + private: + bool hasServiceLinkedRole_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_CHECKSERVICELINKEDROLERESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/CreateAccountAndAuthorityRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/CreateAccountAndAuthorityRequest.h new file mode 100644 index 000000000..7eadadbb8 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/CreateAccountAndAuthorityRequest.h @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_CREATEACCOUNTANDAUTHORITYREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_CREATEACCOUNTANDAUTHORITYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT CreateAccountAndAuthorityRequest : public RpcServiceRequest { +public: + CreateAccountAndAuthorityRequest(); + ~CreateAccountAndAuthorityRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getTotalDictionaries() const; + void setTotalDictionaries(const std::string &totalDictionaries); + std::string getAccountDescription() const; + void setAccountDescription(const std::string &accountDescription); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getAccountName() const; + void setAccountName(const std::string &accountName); + std::string getDmlAuthority() const; + void setDmlAuthority(const std::string &dmlAuthority); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getAllowDatabases() const; + void setAllowDatabases(const std::string &allowDatabases); + std::string getAllowDictionaries() const; + void setAllowDictionaries(const std::string &allowDictionaries); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccountPassword() const; + void setAccountPassword(const std::string &accountPassword); + bool getDdlAuthority() const; + void setDdlAuthority(bool ddlAuthority); + std::string getTotalDatabases() const; + void setTotalDatabases(const std::string &totalDatabases); + +private: + long resourceOwnerId_; + std::string totalDictionaries_; + std::string accountDescription_; + std::string accessKeyId_; + std::string accountName_; + std::string dmlAuthority_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + std::string allowDatabases_; + std::string allowDictionaries_; + long ownerId_; + std::string accountPassword_; + bool ddlAuthority_; + std::string totalDatabases_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_CREATEACCOUNTANDAUTHORITYREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/CreateAccountAndAuthorityResult.h b/clickhouse/include/alibabacloud/clickhouse/model/CreateAccountAndAuthorityResult.h new file mode 100644 index 000000000..57b0fac0a --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/CreateAccountAndAuthorityResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_CREATEACCOUNTANDAUTHORITYRESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_CREATEACCOUNTANDAUTHORITYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT CreateAccountAndAuthorityResult : public ServiceResult + { + public: + + + CreateAccountAndAuthorityResult(); + explicit CreateAccountAndAuthorityResult(const std::string &payload); + ~CreateAccountAndAuthorityResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_CREATEACCOUNTANDAUTHORITYRESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/CreateAccountRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/CreateAccountRequest.h new file mode 100644 index 000000000..492b8f4e2 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/CreateAccountRequest.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_CLICKHOUSE_MODEL_CREATEACCOUNTREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_CREATEACCOUNTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT CreateAccountRequest : public RpcServiceRequest { +public: + CreateAccountRequest(); + ~CreateAccountRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccountDescription() const; + void setAccountDescription(const std::string &accountDescription); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getAccountName() const; + void setAccountName(const std::string &accountName); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccountPassword() const; + void setAccountPassword(const std::string &accountPassword); + +private: + long resourceOwnerId_; + std::string accountDescription_; + std::string accessKeyId_; + std::string accountName_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string accountPassword_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_CREATEACCOUNTREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/CreateAccountResult.h b/clickhouse/include/alibabacloud/clickhouse/model/CreateAccountResult.h new file mode 100644 index 000000000..ec92eb271 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/CreateAccountResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_CREATEACCOUNTRESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_CREATEACCOUNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT CreateAccountResult : public ServiceResult + { + public: + + + CreateAccountResult(); + explicit CreateAccountResult(const std::string &payload); + ~CreateAccountResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_CREATEACCOUNTRESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/CreateBackupPolicyRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/CreateBackupPolicyRequest.h new file mode 100644 index 000000000..6b4f05fdc --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/CreateBackupPolicyRequest.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_CLICKHOUSE_MODEL_CREATEBACKUPPOLICYREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_CREATEBACKUPPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT CreateBackupPolicyRequest : public RpcServiceRequest { +public: + CreateBackupPolicyRequest(); + ~CreateBackupPolicyRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getPreferredBackupPeriod() const; + void setPreferredBackupPeriod(const std::string &preferredBackupPeriod); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPreferredBackupTime() const; + void setPreferredBackupTime(const std::string &preferredBackupTime); + std::string getBackupRetentionPeriod() const; + void setBackupRetentionPeriod(const std::string &backupRetentionPeriod); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string regionId_; + std::string preferredBackupPeriod_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string preferredBackupTime_; + std::string backupRetentionPeriod_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_CREATEBACKUPPOLICYREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/CreateBackupPolicyResult.h b/clickhouse/include/alibabacloud/clickhouse/model/CreateBackupPolicyResult.h new file mode 100644 index 000000000..41c77ac5e --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/CreateBackupPolicyResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_CREATEBACKUPPOLICYRESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_CREATEBACKUPPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT CreateBackupPolicyResult : public ServiceResult + { + public: + + + CreateBackupPolicyResult(); + explicit CreateBackupPolicyResult(const std::string &payload); + ~CreateBackupPolicyResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_CREATEBACKUPPOLICYRESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/CreateDBInstanceRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/CreateDBInstanceRequest.h new file mode 100644 index 000000000..7ce4b0643 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/CreateDBInstanceRequest.h @@ -0,0 +1,132 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_CREATEDBINSTANCEREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_CREATEDBINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT CreateDBInstanceRequest : public RpcServiceRequest { +public: + CreateDBInstanceRequest(); + ~CreateDBInstanceRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDBClusterDescription() const; + void setDBClusterDescription(const std::string &dBClusterDescription); + std::string getSourceDBClusterId() const; + void setSourceDBClusterId(const std::string &sourceDBClusterId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getZondIdBak2() const; + void setZondIdBak2(const std::string &zondIdBak2); + std::string getDbNodeStorageType() const; + void setDbNodeStorageType(const std::string &dbNodeStorageType); + std::string getEncryptionType() const; + void setEncryptionType(const std::string &encryptionType); + std::string getZoneIdBak() const; + void setZoneIdBak(const std::string &zoneIdBak); + std::string getPeriod() const; + void setPeriod(const std::string &period); + std::string getBackupSetID() const; + void setBackupSetID(const std::string &backupSetID); + std::string getEncryptionKey() const; + void setEncryptionKey(const std::string &encryptionKey); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getDBNodeGroupCount() const; + void setDBNodeGroupCount(const std::string &dBNodeGroupCount); + std::string getVSwitchId() const; + void setVSwitchId(const std::string &vSwitchId); + bool getAutoRenew() const; + void setAutoRenew(bool autoRenew); + std::string getZoneId() const; + void setZoneId(const std::string &zoneId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDBClusterCategory() const; + void setDBClusterCategory(const std::string &dBClusterCategory); + std::string getDBClusterNetworkType() const; + void setDBClusterNetworkType(const std::string &dBClusterNetworkType); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getDBClusterVersion() const; + void setDBClusterVersion(const std::string &dBClusterVersion); + std::string getDBClusterClass() const; + void setDBClusterClass(const std::string &dBClusterClass); + std::string getVSwitchBak() const; + void setVSwitchBak(const std::string &vSwitchBak); + std::string getUsedTime() const; + void setUsedTime(const std::string &usedTime); + std::string getVSwitchBak2() const; + void setVSwitchBak2(const std::string &vSwitchBak2); + std::string getDBNodeStorage() const; + void setDBNodeStorage(const std::string &dBNodeStorage); + std::string getVPCId() const; + void setVPCId(const std::string &vPCId); + std::string getPayType() const; + void setPayType(const std::string &payType); + +private: + long resourceOwnerId_; + std::string dBClusterDescription_; + std::string sourceDBClusterId_; + std::string resourceGroupId_; + std::string zondIdBak2_; + std::string dbNodeStorageType_; + std::string encryptionType_; + std::string zoneIdBak_; + std::string period_; + std::string backupSetID_; + std::string encryptionKey_; + long ownerId_; + std::string dBNodeGroupCount_; + std::string vSwitchId_; + bool autoRenew_; + std::string zoneId_; + std::string clientToken_; + std::string accessKeyId_; + std::string regionId_; + std::string dBClusterCategory_; + std::string dBClusterNetworkType_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string dBClusterVersion_; + std::string dBClusterClass_; + std::string vSwitchBak_; + std::string usedTime_; + std::string vSwitchBak2_; + std::string dBNodeStorage_; + std::string vPCId_; + std::string payType_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_CREATEDBINSTANCEREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/CreateDBInstanceResult.h b/clickhouse/include/alibabacloud/clickhouse/model/CreateDBInstanceResult.h new file mode 100644 index 000000000..f77ddedb7 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/CreateDBInstanceResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_CREATEDBINSTANCERESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_CREATEDBINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT CreateDBInstanceResult : public ServiceResult + { + public: + + + CreateDBInstanceResult(); + explicit CreateDBInstanceResult(const std::string &payload); + ~CreateDBInstanceResult(); + std::string getDBClusterId()const; + std::string getOrderId()const; + + protected: + void parse(const std::string &payload); + private: + std::string dBClusterId_; + std::string orderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_CREATEDBINSTANCERESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/CreateMonitorDataReportRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/CreateMonitorDataReportRequest.h new file mode 100644 index 000000000..e77ade8cb --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/CreateMonitorDataReportRequest.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_CLICKHOUSE_MODEL_CREATEMONITORDATAREPORTREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_CREATEMONITORDATAREPORTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT CreateMonitorDataReportRequest : public RpcServiceRequest { +public: + CreateMonitorDataReportRequest(); + ~CreateMonitorDataReportRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_CREATEMONITORDATAREPORTREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/CreateMonitorDataReportResult.h b/clickhouse/include/alibabacloud/clickhouse/model/CreateMonitorDataReportResult.h new file mode 100644 index 000000000..503e4f371 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/CreateMonitorDataReportResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_CREATEMONITORDATAREPORTRESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_CREATEMONITORDATAREPORTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT CreateMonitorDataReportResult : public ServiceResult + { + public: + + + CreateMonitorDataReportResult(); + explicit CreateMonitorDataReportResult(const std::string &payload); + ~CreateMonitorDataReportResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_CREATEMONITORDATAREPORTRESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/CreateOSSStorageRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/CreateOSSStorageRequest.h new file mode 100644 index 000000000..cbe0ac7ea --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/CreateOSSStorageRequest.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_CLICKHOUSE_MODEL_CREATEOSSSTORAGEREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_CREATEOSSSTORAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT CreateOSSStorageRequest : public RpcServiceRequest { +public: + CreateOSSStorageRequest(); + ~CreateOSSStorageRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_CREATEOSSSTORAGEREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/CreateOSSStorageResult.h b/clickhouse/include/alibabacloud/clickhouse/model/CreateOSSStorageResult.h new file mode 100644 index 000000000..055b314c3 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/CreateOSSStorageResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_CREATEOSSSTORAGERESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_CREATEOSSSTORAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT CreateOSSStorageResult : public ServiceResult + { + public: + + + CreateOSSStorageResult(); + explicit CreateOSSStorageResult(const std::string &payload); + ~CreateOSSStorageResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_CREATEOSSSTORAGERESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/CreatePortsForClickHouseRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/CreatePortsForClickHouseRequest.h new file mode 100644 index 000000000..e6b2e1db3 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/CreatePortsForClickHouseRequest.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_CLICKHOUSE_MODEL_CREATEPORTSFORCLICKHOUSEREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_CREATEPORTSFORCLICKHOUSEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT CreatePortsForClickHouseRequest : public RpcServiceRequest { +public: + CreatePortsForClickHouseRequest(); + ~CreatePortsForClickHouseRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getPortType() const; + void setPortType(const std::string &portType); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string portType_; + std::string accessKeyId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_CREATEPORTSFORCLICKHOUSEREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/CreatePortsForClickHouseResult.h b/clickhouse/include/alibabacloud/clickhouse/model/CreatePortsForClickHouseResult.h new file mode 100644 index 000000000..5dde87851 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/CreatePortsForClickHouseResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_CREATEPORTSFORCLICKHOUSERESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_CREATEPORTSFORCLICKHOUSERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT CreatePortsForClickHouseResult : public ServiceResult + { + public: + + + CreatePortsForClickHouseResult(); + explicit CreatePortsForClickHouseResult(const std::string &payload); + ~CreatePortsForClickHouseResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_CREATEPORTSFORCLICKHOUSERESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/CreateRDSToClickhouseDbRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/CreateRDSToClickhouseDbRequest.h new file mode 100644 index 000000000..65cf75cb4 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/CreateRDSToClickhouseDbRequest.h @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_CREATERDSTOCLICKHOUSEDBREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_CREATERDSTOCLICKHOUSEDBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT CreateRDSToClickhouseDbRequest : public RpcServiceRequest { +public: + CreateRDSToClickhouseDbRequest(); + ~CreateRDSToClickhouseDbRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSynDbTables() const; + void setSynDbTables(const std::string &synDbTables); + std::string getRdsVpcId() const; + void setRdsVpcId(const std::string &rdsVpcId); + std::string getCkPassword() const; + void setCkPassword(const std::string &ckPassword); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRdsPassword() const; + void setRdsPassword(const std::string &rdsPassword); + std::string getCkUserName() const; + void setCkUserName(const std::string &ckUserName); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDbClusterId() const; + void setDbClusterId(const std::string &dbClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getRdsId() const; + void setRdsId(const std::string &rdsId); + long getOwnerId() const; + void setOwnerId(long ownerId); + long getClickhousePort() const; + void setClickhousePort(long clickhousePort); + long getLimitUpper() const; + void setLimitUpper(long limitUpper); + long getRdsPort() const; + void setRdsPort(long rdsPort); + bool getSkipUnsupported() const; + void setSkipUnsupported(bool skipUnsupported); + std::string getRdsVpcUrl() const; + void setRdsVpcUrl(const std::string &rdsVpcUrl); + std::string getRdsUserName() const; + void setRdsUserName(const std::string &rdsUserName); + +private: + long resourceOwnerId_; + std::string synDbTables_; + std::string rdsVpcId_; + std::string ckPassword_; + std::string accessKeyId_; + std::string rdsPassword_; + std::string ckUserName_; + std::string resourceOwnerAccount_; + std::string dbClusterId_; + std::string ownerAccount_; + std::string rdsId_; + long ownerId_; + long clickhousePort_; + long limitUpper_; + long rdsPort_; + bool skipUnsupported_; + std::string rdsVpcUrl_; + std::string rdsUserName_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_CREATERDSTOCLICKHOUSEDBREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/CreateRDSToClickhouseDbResult.h b/clickhouse/include/alibabacloud/clickhouse/model/CreateRDSToClickhouseDbResult.h new file mode 100644 index 000000000..74cc93d8c --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/CreateRDSToClickhouseDbResult.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_CLICKHOUSE_MODEL_CREATERDSTOCLICKHOUSEDBRESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_CREATERDSTOCLICKHOUSEDBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT CreateRDSToClickhouseDbResult : public ServiceResult + { + public: + + + CreateRDSToClickhouseDbResult(); + explicit CreateRDSToClickhouseDbResult(const std::string &payload); + ~CreateRDSToClickhouseDbResult(); + long getStatus()const; + std::vector getRepeatedDbs()const; + std::string getErrorMsg()const; + + protected: + void parse(const std::string &payload); + private: + long status_; + std::vector repeatedDbs_; + std::string errorMsg_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_CREATERDSTOCLICKHOUSEDBRESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/CreateSQLAccountRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/CreateSQLAccountRequest.h new file mode 100644 index 000000000..59d0622ff --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/CreateSQLAccountRequest.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_CLICKHOUSE_MODEL_CREATESQLACCOUNTREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_CREATESQLACCOUNTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT CreateSQLAccountRequest : public RpcServiceRequest { +public: + CreateSQLAccountRequest(); + ~CreateSQLAccountRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccountType() const; + void setAccountType(const std::string &accountType); + std::string getAccountDescription() const; + void setAccountDescription(const std::string &accountDescription); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getAccountName() const; + void setAccountName(const std::string &accountName); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccountPassword() const; + void setAccountPassword(const std::string &accountPassword); + +private: + long resourceOwnerId_; + std::string accountType_; + std::string accountDescription_; + std::string accessKeyId_; + std::string accountName_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string accountPassword_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_CREATESQLACCOUNTREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/CreateSQLAccountResult.h b/clickhouse/include/alibabacloud/clickhouse/model/CreateSQLAccountResult.h new file mode 100644 index 000000000..19c68a60e --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/CreateSQLAccountResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_CREATESQLACCOUNTRESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_CREATESQLACCOUNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT CreateSQLAccountResult : public ServiceResult + { + public: + + + CreateSQLAccountResult(); + explicit CreateSQLAccountResult(const std::string &payload); + ~CreateSQLAccountResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_CREATESQLACCOUNTRESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/CreateServiceLinkedRoleRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/CreateServiceLinkedRoleRequest.h new file mode 100644 index 000000000..963f78f10 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/CreateServiceLinkedRoleRequest.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_CLICKHOUSE_MODEL_CREATESERVICELINKEDROLEREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_CREATESERVICELINKEDROLEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT CreateServiceLinkedRoleRequest : public RpcServiceRequest { +public: + CreateServiceLinkedRoleRequest(); + ~CreateServiceLinkedRoleRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_CREATESERVICELINKEDROLEREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/CreateServiceLinkedRoleResult.h b/clickhouse/include/alibabacloud/clickhouse/model/CreateServiceLinkedRoleResult.h new file mode 100644 index 000000000..73e51f501 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/CreateServiceLinkedRoleResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_CREATESERVICELINKEDROLERESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_CREATESERVICELINKEDROLERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT CreateServiceLinkedRoleResult : public ServiceResult + { + public: + + + CreateServiceLinkedRoleResult(); + explicit CreateServiceLinkedRoleResult(const std::string &payload); + ~CreateServiceLinkedRoleResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_CREATESERVICELINKEDROLERESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DeleteAccountRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/DeleteAccountRequest.h new file mode 100644 index 000000000..20a8c415d --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DeleteAccountRequest.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_CLICKHOUSE_MODEL_DELETEACCOUNTREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DELETEACCOUNTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT DeleteAccountRequest : public RpcServiceRequest { +public: + DeleteAccountRequest(); + ~DeleteAccountRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getAccountName() const; + void setAccountName(const std::string &accountName); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string accountName_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DELETEACCOUNTREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DeleteAccountResult.h b/clickhouse/include/alibabacloud/clickhouse/model/DeleteAccountResult.h new file mode 100644 index 000000000..928e98cc5 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DeleteAccountResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_DELETEACCOUNTRESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DELETEACCOUNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT DeleteAccountResult : public ServiceResult + { + public: + + + DeleteAccountResult(); + explicit DeleteAccountResult(const std::string &payload); + ~DeleteAccountResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DELETEACCOUNTRESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DeleteDBClusterRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/DeleteDBClusterRequest.h new file mode 100644 index 000000000..547aea5a7 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DeleteDBClusterRequest.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_CLICKHOUSE_MODEL_DELETEDBCLUSTERREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DELETEDBCLUSTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT DeleteDBClusterRequest : public RpcServiceRequest { +public: + DeleteDBClusterRequest(); + ~DeleteDBClusterRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DELETEDBCLUSTERREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DeleteDBClusterResult.h b/clickhouse/include/alibabacloud/clickhouse/model/DeleteDBClusterResult.h new file mode 100644 index 000000000..94fe51e1e --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DeleteDBClusterResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_DELETEDBCLUSTERRESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DELETEDBCLUSTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT DeleteDBClusterResult : public ServiceResult + { + public: + + + DeleteDBClusterResult(); + explicit DeleteDBClusterResult(const std::string &payload); + ~DeleteDBClusterResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DELETEDBCLUSTERRESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DeleteSyndbRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/DeleteSyndbRequest.h new file mode 100644 index 000000000..8b4a3a19f --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DeleteSyndbRequest.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_CLICKHOUSE_MODEL_DELETESYNDBREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DELETESYNDBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT DeleteSyndbRequest : public RpcServiceRequest { +public: + DeleteSyndbRequest(); + ~DeleteSyndbRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSynDb() const; + void setSynDb(const std::string &synDb); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDbClusterId() const; + void setDbClusterId(const std::string &dbClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string synDb_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dbClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DELETESYNDBREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DeleteSyndbResult.h b/clickhouse/include/alibabacloud/clickhouse/model/DeleteSyndbResult.h new file mode 100644 index 000000000..6918b9741 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DeleteSyndbResult.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_CLICKHOUSE_MODEL_DELETESYNDBRESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DELETESYNDBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT DeleteSyndbResult : public ServiceResult + { + public: + + + DeleteSyndbResult(); + explicit DeleteSyndbResult(const std::string &payload); + ~DeleteSyndbResult(); + bool getStatus()const; + std::string getErrorMsg()const; + long getErrorCode()const; + + protected: + void parse(const std::string &payload); + private: + bool status_; + std::string errorMsg_; + long errorCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DELETESYNDBRESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DescribeAccountAuthorityRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/DescribeAccountAuthorityRequest.h new file mode 100644 index 000000000..b08366907 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DescribeAccountAuthorityRequest.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_CLICKHOUSE_MODEL_DESCRIBEACCOUNTAUTHORITYREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEACCOUNTAUTHORITYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT DescribeAccountAuthorityRequest : public RpcServiceRequest { +public: + DescribeAccountAuthorityRequest(); + ~DescribeAccountAuthorityRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getAccountName() const; + void setAccountName(const std::string &accountName); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string accountName_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEACCOUNTAUTHORITYREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DescribeAccountAuthorityResult.h b/clickhouse/include/alibabacloud/clickhouse/model/DescribeAccountAuthorityResult.h new file mode 100644 index 000000000..8a7caf467 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DescribeAccountAuthorityResult.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_CLICKHOUSE_MODEL_DESCRIBEACCOUNTAUTHORITYRESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEACCOUNTAUTHORITYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT DescribeAccountAuthorityResult : public ServiceResult + { + public: + + + DescribeAccountAuthorityResult(); + explicit DescribeAccountAuthorityResult(const std::string &payload); + ~DescribeAccountAuthorityResult(); + bool getDdlAuthority()const; + std::string getDmlAuthority()const; + std::vector getTotalDatabases()const; + std::vector getTotalDictionaries()const; + std::vector getAllowDictionaries()const; + std::vector getAllowDatabases()const; + std::string getAccountName()const; + + protected: + void parse(const std::string &payload); + private: + bool ddlAuthority_; + std::string dmlAuthority_; + std::vector totalDatabases_; + std::vector totalDictionaries_; + std::vector allowDictionaries_; + std::vector allowDatabases_; + std::string accountName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEACCOUNTAUTHORITYRESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DescribeAccountsRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/DescribeAccountsRequest.h new file mode 100644 index 000000000..d47272877 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DescribeAccountsRequest.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_CLICKHOUSE_MODEL_DESCRIBEACCOUNTSREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEACCOUNTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT DescribeAccountsRequest : public RpcServiceRequest { +public: + DescribeAccountsRequest(); + ~DescribeAccountsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getAccountName() const; + void setAccountName(const std::string &accountName); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string accessKeyId_; + std::string accountName_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEACCOUNTSREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DescribeAccountsResult.h b/clickhouse/include/alibabacloud/clickhouse/model/DescribeAccountsResult.h new file mode 100644 index 000000000..962129fb7 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DescribeAccountsResult.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_CLICKHOUSE_MODEL_DESCRIBEACCOUNTSRESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEACCOUNTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT DescribeAccountsResult : public ServiceResult + { + public: + struct Account + { + std::string accountDescription; + std::string accountStatus; + std::string accountType; + std::string configType; + std::string accountName; + }; + + + DescribeAccountsResult(); + explicit DescribeAccountsResult(const std::string &payload); + ~DescribeAccountsResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getAccounts()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector accounts_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEACCOUNTSRESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DescribeAllDataSourceRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/DescribeAllDataSourceRequest.h new file mode 100644 index 000000000..448f8cc43 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DescribeAllDataSourceRequest.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_CLICKHOUSE_MODEL_DESCRIBEALLDATASOURCEREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEALLDATASOURCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT DescribeAllDataSourceRequest : public RpcServiceRequest { +public: + DescribeAllDataSourceRequest(); + ~DescribeAllDataSourceRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getTableName() const; + void setTableName(const std::string &tableName); + std::string getSchemaName() const; + void setSchemaName(const std::string &schemaName); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string tableName_; + std::string schemaName_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEALLDATASOURCEREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DescribeAllDataSourceResult.h b/clickhouse/include/alibabacloud/clickhouse/model/DescribeAllDataSourceResult.h new file mode 100644 index 000000000..84e3a2d15 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DescribeAllDataSourceResult.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_CLICKHOUSE_MODEL_DESCRIBEALLDATASOURCERESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEALLDATASOURCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT DescribeAllDataSourceResult : public ServiceResult + { + public: + struct Table + { + std::string tableName; + std::string dBClusterId; + std::string schemaName; + }; + struct Column + { + std::string columnName; + std::string tableName; + std::string type; + bool autoIncrementColumn; + std::string dBClusterId; + bool primaryKey; + std::string schemaName; + }; + struct Schema + { + std::string dBClusterId; + std::string schemaName; + }; + + + DescribeAllDataSourceResult(); + explicit DescribeAllDataSourceResult(const std::string &payload); + ~DescribeAllDataSourceResult(); + std::vector getTables()const; + std::vector getColumns()const; + std::vector getSchemas()const; + + protected: + void parse(const std::string &payload); + private: + std::vector
tables_; + std::vector columns_; + std::vector schemas_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEALLDATASOURCERESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DescribeAllDataSourcesRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/DescribeAllDataSourcesRequest.h new file mode 100644 index 000000000..1a433691d --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DescribeAllDataSourcesRequest.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_CLICKHOUSE_MODEL_DESCRIBEALLDATASOURCESREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEALLDATASOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT DescribeAllDataSourcesRequest : public RpcServiceRequest { +public: + DescribeAllDataSourcesRequest(); + ~DescribeAllDataSourcesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getTableName() const; + void setTableName(const std::string &tableName); + std::string getSchemaName() const; + void setSchemaName(const std::string &schemaName); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string tableName_; + std::string schemaName_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEALLDATASOURCESREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DescribeAllDataSourcesResult.h b/clickhouse/include/alibabacloud/clickhouse/model/DescribeAllDataSourcesResult.h new file mode 100644 index 000000000..d356a0238 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DescribeAllDataSourcesResult.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_CLICKHOUSE_MODEL_DESCRIBEALLDATASOURCESRESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEALLDATASOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT DescribeAllDataSourcesResult : public ServiceResult + { + public: + struct Table + { + std::string tableName; + std::string dBClusterId; + std::string schemaName; + }; + struct Column + { + std::string columnName; + std::string tableName; + std::string type; + bool autoIncrementColumn; + std::string dBClusterId; + bool primaryKey; + std::string schemaName; + }; + struct Schema + { + std::string dBClusterId; + std::string schemaName; + }; + + + DescribeAllDataSourcesResult(); + explicit DescribeAllDataSourcesResult(const std::string &payload); + ~DescribeAllDataSourcesResult(); + std::vector
getTables()const; + std::vector getColumns()const; + std::vector getSchemas()const; + + protected: + void parse(const std::string &payload); + private: + std::vector
tables_; + std::vector columns_; + std::vector schemas_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEALLDATASOURCESRESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DescribeBackupPolicyRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/DescribeBackupPolicyRequest.h new file mode 100644 index 000000000..aebc7909c --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DescribeBackupPolicyRequest.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_CLICKHOUSE_MODEL_DESCRIBEBACKUPPOLICYREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEBACKUPPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT DescribeBackupPolicyRequest : public RpcServiceRequest { +public: + DescribeBackupPolicyRequest(); + ~DescribeBackupPolicyRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEBACKUPPOLICYREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DescribeBackupPolicyResult.h b/clickhouse/include/alibabacloud/clickhouse/model/DescribeBackupPolicyResult.h new file mode 100644 index 000000000..1b82fe7d0 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DescribeBackupPolicyResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEBACKUPPOLICYRESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEBACKUPPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT DescribeBackupPolicyResult : public ServiceResult + { + public: + + + DescribeBackupPolicyResult(); + explicit DescribeBackupPolicyResult(const std::string &payload); + ~DescribeBackupPolicyResult(); + std::string getPreferredBackupPeriod()const; + std::string get_Switch()const; + std::string getPreferredBackupTime()const; + std::string getBackupSize()const; + int getBackupRetentionPeriod()const; + + protected: + void parse(const std::string &payload); + private: + std::string preferredBackupPeriod_; + std::string _switch_; + std::string preferredBackupTime_; + std::string backupSize_; + int backupRetentionPeriod_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEBACKUPPOLICYRESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DescribeBackupsRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/DescribeBackupsRequest.h new file mode 100644 index 000000000..d72551de8 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DescribeBackupsRequest.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_CLICKHOUSE_MODEL_DESCRIBEBACKUPSREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEBACKUPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT DescribeBackupsRequest : public RpcServiceRequest { +public: + DescribeBackupsRequest(); + ~DescribeBackupsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getBackupId() const; + void setBackupId(const std::string &backupId); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string startTime_; + int pageNumber_; + std::string accessKeyId_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + std::string backupId_; + std::string endTime_; + long ownerId_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEBACKUPSREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DescribeBackupsResult.h b/clickhouse/include/alibabacloud/clickhouse/model/DescribeBackupsResult.h new file mode 100644 index 000000000..1a0d6f060 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DescribeBackupsResult.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_CLICKHOUSE_MODEL_DESCRIBEBACKUPSRESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEBACKUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT DescribeBackupsResult : public ServiceResult + { + public: + struct Backup + { + std::string backupMethod; + std::string expireDate; + long backupSize; + std::string backupEndTime; + std::string backupSetInfo; + std::string dBClusterId; + std::string backupStartTime; + std::string backupType; + std::string backupId; + std::string backupStatus; + }; + + + DescribeBackupsResult(); + explicit DescribeBackupsResult(const std::string &payload); + ~DescribeBackupsResult(); + std::string getTotalCount()const; + std::string getPageSize()const; + std::string getPageNumber()const; + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + std::string totalCount_; + std::string pageSize_; + std::string pageNumber_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEBACKUPSRESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DescribeColumnsRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/DescribeColumnsRequest.h new file mode 100644 index 000000000..742d04d33 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DescribeColumnsRequest.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_CLICKHOUSE_MODEL_DESCRIBECOLUMNSREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBECOLUMNSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT DescribeColumnsRequest : public RpcServiceRequest { +public: + DescribeColumnsRequest(); + ~DescribeColumnsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getTableName() const; + void setTableName(const std::string &tableName); + std::string getSchemaName() const; + void setSchemaName(const std::string &schemaName); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string tableName_; + std::string schemaName_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBECOLUMNSREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DescribeColumnsResult.h b/clickhouse/include/alibabacloud/clickhouse/model/DescribeColumnsResult.h new file mode 100644 index 000000000..ce53c25ae --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DescribeColumnsResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBECOLUMNSRESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBECOLUMNSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT DescribeColumnsResult : public ServiceResult + { + public: + struct Column + { + std::string columnName; + std::string tableName; + std::string type; + bool autoIncrementColumn; + std::string dBClusterId; + bool primaryKey; + std::string schemaName; + }; + + + DescribeColumnsResult(); + explicit DescribeColumnsResult(const std::string &payload); + ~DescribeColumnsResult(); + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBECOLUMNSRESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DescribeConfigHistoryRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/DescribeConfigHistoryRequest.h new file mode 100644 index 000000000..22ce2793d --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DescribeConfigHistoryRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBECONFIGHISTORYREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBECONFIGHISTORYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT DescribeConfigHistoryRequest : public RpcServiceRequest { +public: + DescribeConfigHistoryRequest(); + ~DescribeConfigHistoryRequest(); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + +private: + std::string startTime_; + std::string dBClusterId_; + std::string endTime_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBECONFIGHISTORYREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DescribeConfigHistoryResult.h b/clickhouse/include/alibabacloud/clickhouse/model/DescribeConfigHistoryResult.h new file mode 100644 index 000000000..26c093461 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DescribeConfigHistoryResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBECONFIGHISTORYRESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBECONFIGHISTORYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT DescribeConfigHistoryResult : public ServiceResult + { + public: + struct ConfigHistoryItem + { + std::string changeId; + std::string ownerId; + std::string time; + std::string reason; + bool success; + }; + + + DescribeConfigHistoryResult(); + explicit DescribeConfigHistoryResult(const std::string &payload); + ~DescribeConfigHistoryResult(); + std::vector getConfigHistoryItems()const; + + protected: + void parse(const std::string &payload); + private: + std::vector configHistoryItems_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBECONFIGHISTORYRESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DescribeConfigVersionDifferenceRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/DescribeConfigVersionDifferenceRequest.h new file mode 100644 index 000000000..d7297f97d --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DescribeConfigVersionDifferenceRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBECONFIGVERSIONDIFFERENCEREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBECONFIGVERSIONDIFFERENCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT DescribeConfigVersionDifferenceRequest : public RpcServiceRequest { +public: + DescribeConfigVersionDifferenceRequest(); + ~DescribeConfigVersionDifferenceRequest(); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getChangeId() const; + void setChangeId(const std::string &changeId); + +private: + std::string dBClusterId_; + std::string changeId_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBECONFIGVERSIONDIFFERENCEREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DescribeConfigVersionDifferenceResult.h b/clickhouse/include/alibabacloud/clickhouse/model/DescribeConfigVersionDifferenceResult.h new file mode 100644 index 000000000..17b945283 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DescribeConfigVersionDifferenceResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBECONFIGVERSIONDIFFERENCERESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBECONFIGVERSIONDIFFERENCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT DescribeConfigVersionDifferenceResult : public ServiceResult + { + public: + + + DescribeConfigVersionDifferenceResult(); + explicit DescribeConfigVersionDifferenceResult(const std::string &payload); + ~DescribeConfigVersionDifferenceResult(); + std::string getOldConfigXML()const; + std::string getNewConfigXML()const; + + protected: + void parse(const std::string &payload); + private: + std::string oldConfigXML_; + std::string newConfigXML_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBECONFIGVERSIONDIFFERENCERESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DescribeDBClusterAccessWhiteListRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/DescribeDBClusterAccessWhiteListRequest.h new file mode 100644 index 000000000..18ed4ca91 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DescribeDBClusterAccessWhiteListRequest.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_CLICKHOUSE_MODEL_DESCRIBEDBCLUSTERACCESSWHITELISTREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEDBCLUSTERACCESSWHITELISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT DescribeDBClusterAccessWhiteListRequest : public RpcServiceRequest { +public: + DescribeDBClusterAccessWhiteListRequest(); + ~DescribeDBClusterAccessWhiteListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEDBCLUSTERACCESSWHITELISTREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DescribeDBClusterAccessWhiteListResult.h b/clickhouse/include/alibabacloud/clickhouse/model/DescribeDBClusterAccessWhiteListResult.h new file mode 100644 index 000000000..5314228f4 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DescribeDBClusterAccessWhiteListResult.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_CLICKHOUSE_MODEL_DESCRIBEDBCLUSTERACCESSWHITELISTRESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEDBCLUSTERACCESSWHITELISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT DescribeDBClusterAccessWhiteListResult : public ServiceResult + { + public: + struct IPArray + { + std::string securityIPList; + std::string dBClusterIPArrayName; + std::string dBClusterIPArrayAttribute; + }; + + + DescribeDBClusterAccessWhiteListResult(); + explicit DescribeDBClusterAccessWhiteListResult(const std::string &payload); + ~DescribeDBClusterAccessWhiteListResult(); + std::vector getDBClusterAccessWhiteList()const; + + protected: + void parse(const std::string &payload); + private: + std::vector dBClusterAccessWhiteList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEDBCLUSTERACCESSWHITELISTRESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DescribeDBClusterAttributeRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/DescribeDBClusterAttributeRequest.h new file mode 100644 index 000000000..670e48661 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DescribeDBClusterAttributeRequest.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_CLICKHOUSE_MODEL_DESCRIBEDBCLUSTERATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEDBCLUSTERATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT DescribeDBClusterAttributeRequest : public RpcServiceRequest { +public: + DescribeDBClusterAttributeRequest(); + ~DescribeDBClusterAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEDBCLUSTERATTRIBUTEREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DescribeDBClusterAttributeResult.h b/clickhouse/include/alibabacloud/clickhouse/model/DescribeDBClusterAttributeResult.h new file mode 100644 index 000000000..011eecd9c --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DescribeDBClusterAttributeResult.h @@ -0,0 +1,120 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEDBCLUSTERATTRIBUTERESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEDBCLUSTERATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT DescribeDBClusterAttributeResult : public ServiceResult + { + public: + struct DBCluster + { + struct ScaleOutStatus + { + std::string progress; + std::string ratio; + }; + struct Tag + { + std::string value; + std::string key; + }; + std::string engineMinorVersion; + std::string resourceGroupId; + std::string controlVersion; + std::string vpcIpAddr; + int port; + std::string dBClusterType; + std::string zookeeperClass; + std::string appointmentRestartNodeList; + int supportBackup; + long dBNodeCount; + std::string publicConnectionString; + std::string lockReason; + int extStorageSize; + std::vector tags; + std::string engine; + bool appointmentElectZookeeperDisableWrite; + long dBNodeStorage; + std::string encryptionType; + std::string isExpired; + std::string storageType; + std::string engineVersion; + std::string vSwitchId; + std::string dBClusterDescription; + std::string payType; + std::string lockMode; + ScaleOutStatus scaleOutStatus; + std::string vpcId; + std::string vpcCloudInstanceId; + std::string zoneIdVswitchMap; + bool supportMysqlPort; + std::string connectionString; + std::string expireTime; + std::string category; + std::string engineLatestMinorVersion; + bool maintainAutoType; + std::string dBClusterId; + std::string encryptionKey; + std::string dBClusterNetworkType; + std::string extStorageType; + std::string availableUpgradeMajorVersion; + std::string commodityCode; + int supportOss; + bool supportHttpsPort; + std::string bid; + std::string maintainTime; + std::string appointmentElectZookeeperTime; + std::string zoneId; + std::string publicIpAddr; + std::string dBClusterStatus; + std::string createTime; + std::string dBNodeClass; + std::string regionId; + std::string appointmentRestartNodeTime; + std::string publicPort; + std::string aliUid; + std::string appointmentRestartTime; + }; + + + DescribeDBClusterAttributeResult(); + explicit DescribeDBClusterAttributeResult(const std::string &payload); + ~DescribeDBClusterAttributeResult(); + DBCluster getDBCluster()const; + + protected: + void parse(const std::string &payload); + private: + DBCluster dBCluster_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEDBCLUSTERATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DescribeDBClusterConfigInXMLRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/DescribeDBClusterConfigInXMLRequest.h new file mode 100644 index 000000000..2868c6561 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DescribeDBClusterConfigInXMLRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEDBCLUSTERCONFIGINXMLREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEDBCLUSTERCONFIGINXMLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT DescribeDBClusterConfigInXMLRequest : public RpcServiceRequest { +public: + DescribeDBClusterConfigInXMLRequest(); + ~DescribeDBClusterConfigInXMLRequest(); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string dBClusterId_; + std::string regionId_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEDBCLUSTERCONFIGINXMLREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DescribeDBClusterConfigInXMLResult.h b/clickhouse/include/alibabacloud/clickhouse/model/DescribeDBClusterConfigInXMLResult.h new file mode 100644 index 000000000..5205b9d0d --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DescribeDBClusterConfigInXMLResult.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_CLICKHOUSE_MODEL_DESCRIBEDBCLUSTERCONFIGINXMLRESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEDBCLUSTERCONFIGINXMLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT DescribeDBClusterConfigInXMLResult : public ServiceResult + { + public: + + + DescribeDBClusterConfigInXMLResult(); + explicit DescribeDBClusterConfigInXMLResult(const std::string &payload); + ~DescribeDBClusterConfigInXMLResult(); + std::string getConfig()const; + + protected: + void parse(const std::string &payload); + private: + std::string config_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEDBCLUSTERCONFIGINXMLRESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DescribeDBClusterConfigRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/DescribeDBClusterConfigRequest.h new file mode 100644 index 000000000..2168b3dc9 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DescribeDBClusterConfigRequest.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_CLICKHOUSE_MODEL_DESCRIBEDBCLUSTERCONFIGREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEDBCLUSTERCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT DescribeDBClusterConfigRequest : public RpcServiceRequest { +public: + DescribeDBClusterConfigRequest(); + ~DescribeDBClusterConfigRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEDBCLUSTERCONFIGREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DescribeDBClusterConfigResult.h b/clickhouse/include/alibabacloud/clickhouse/model/DescribeDBClusterConfigResult.h new file mode 100644 index 000000000..c0006cc1a --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DescribeDBClusterConfigResult.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_CLICKHOUSE_MODEL_DESCRIBEDBCLUSTERCONFIGRESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEDBCLUSTERCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT DescribeDBClusterConfigResult : public ServiceResult + { + public: + + + DescribeDBClusterConfigResult(); + explicit DescribeDBClusterConfigResult(const std::string &payload); + ~DescribeDBClusterConfigResult(); + std::string getConfig()const; + + protected: + void parse(const std::string &payload); + private: + std::string config_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEDBCLUSTERCONFIGRESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DescribeDBClusterNetInfoItemsRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/DescribeDBClusterNetInfoItemsRequest.h new file mode 100644 index 000000000..38ce4321f --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DescribeDBClusterNetInfoItemsRequest.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_CLICKHOUSE_MODEL_DESCRIBEDBCLUSTERNETINFOITEMSREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEDBCLUSTERNETINFOITEMSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT DescribeDBClusterNetInfoItemsRequest : public RpcServiceRequest { +public: + DescribeDBClusterNetInfoItemsRequest(); + ~DescribeDBClusterNetInfoItemsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEDBCLUSTERNETINFOITEMSREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DescribeDBClusterNetInfoItemsResult.h b/clickhouse/include/alibabacloud/clickhouse/model/DescribeDBClusterNetInfoItemsResult.h new file mode 100644 index 000000000..92aa76342 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DescribeDBClusterNetInfoItemsResult.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEDBCLUSTERNETINFOITEMSRESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEDBCLUSTERNETINFOITEMSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT DescribeDBClusterNetInfoItemsResult : public ServiceResult + { + public: + struct NetInfoItem + { + std::string httpPort; + std::string vpcId; + std::string mySQLPort; + std::string jdbcPort; + std::string vSwitchId; + std::string connectionString; + std::string iPAddress; + std::string netType; + std::string httpsPort; + }; + + + DescribeDBClusterNetInfoItemsResult(); + explicit DescribeDBClusterNetInfoItemsResult(const std::string &payload); + ~DescribeDBClusterNetInfoItemsResult(); + std::vector getNetInfoItems()const; + std::string getClusterNetworkType()const; + bool getEnableSLB()const; + + protected: + void parse(const std::string &payload); + private: + std::vector netInfoItems_; + std::string clusterNetworkType_; + bool enableSLB_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEDBCLUSTERNETINFOITEMSRESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DescribeDBClusterPerformanceRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/DescribeDBClusterPerformanceRequest.h new file mode 100644 index 000000000..357fbad34 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DescribeDBClusterPerformanceRequest.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_CLICKHOUSE_MODEL_DESCRIBEDBCLUSTERPERFORMANCEREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEDBCLUSTERPERFORMANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT DescribeDBClusterPerformanceRequest : public RpcServiceRequest { +public: + DescribeDBClusterPerformanceRequest(); + ~DescribeDBClusterPerformanceRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getKey() const; + void setKey(const std::string &key); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string startTime_; + std::string accessKeyId_; + std::string key_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + std::string endTime_; + long ownerId_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEDBCLUSTERPERFORMANCEREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DescribeDBClusterPerformanceResult.h b/clickhouse/include/alibabacloud/clickhouse/model/DescribeDBClusterPerformanceResult.h new file mode 100644 index 000000000..58c400366 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DescribeDBClusterPerformanceResult.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_CLICKHOUSE_MODEL_DESCRIBEDBCLUSTERPERFORMANCERESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEDBCLUSTERPERFORMANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT DescribeDBClusterPerformanceResult : public ServiceResult + { + public: + struct PerformanceItem + { + struct SeriesItem + { + struct ValueItem + { + std::vector point; + }; + std::vector values; + std::string name; + }; + std::vector series; + std::string unit; + std::string key; + std::string name; + }; + + + DescribeDBClusterPerformanceResult(); + explicit DescribeDBClusterPerformanceResult(const std::string &payload); + ~DescribeDBClusterPerformanceResult(); + std::string getEndTime()const; + std::string getStartTime()const; + std::string getDBClusterId()const; + std::vector getPerformances()const; + + protected: + void parse(const std::string &payload); + private: + std::string endTime_; + std::string startTime_; + std::string dBClusterId_; + std::vector performances_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEDBCLUSTERPERFORMANCERESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DescribeDBClustersRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/DescribeDBClustersRequest.h new file mode 100644 index 000000000..6e7e9b5f5 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DescribeDBClustersRequest.h @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEDBCLUSTERSREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEDBCLUSTERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT DescribeDBClustersRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + DescribeDBClustersRequest(); + ~DescribeDBClustersRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDBClusterDescription() const; + void setDBClusterDescription(const std::string &dBClusterDescription); + std::string getDBClusterStatus() const; + void setDBClusterStatus(const std::string &dBClusterStatus); + std::string getControlVersion() const; + void setControlVersion(const std::string &controlVersion); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getDBClusterIds() const; + void setDBClusterIds(const std::string &dBClusterIds); + +private: + long resourceOwnerId_; + std::string dBClusterDescription_; + std::string dBClusterStatus_; + std::string controlVersion_; + int pageNumber_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string regionId_; + int pageSize_; + std::vector tag_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string dBClusterIds_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEDBCLUSTERSREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DescribeDBClustersResult.h b/clickhouse/include/alibabacloud/clickhouse/model/DescribeDBClustersResult.h new file mode 100644 index 000000000..472914ea9 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DescribeDBClustersResult.h @@ -0,0 +1,103 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEDBCLUSTERSRESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEDBCLUSTERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT DescribeDBClustersResult : public ServiceResult + { + public: + struct DBCluster + { + struct ScaleOutStatus + { + std::string progress; + std::string ratio; + }; + struct Tag + { + std::string value; + std::string key; + }; + std::string category; + std::string resourceGroupId; + std::string controlVersion; + int port; + std::string dBClusterId; + std::string dBClusterNetworkType; + std::string extStorageType; + std::string dbVersion; + long dBNodeCount; + std::string commodityCode; + std::string bid; + std::string lockReason; + int extStorageSize; + std::vector tags; + long dBNodeStorage; + std::string isExpired; + std::string storageType; + std::string zoneId; + std::string dBClusterStatus; + std::string createTime; + std::string vSwitchId; + std::string scaleOutDisableWriteWindows; + std::string dBClusterDescription; + std::string payType; + std::string lockMode; + std::string dBNodeClass; + ScaleOutStatus scaleOutStatus; + std::string vpcId; + std::string vpcCloudInstanceId; + std::string regionId; + std::string connectionString; + std::string expireTime; + std::string aliUid; + }; + + + DescribeDBClustersResult(); + explicit DescribeDBClustersResult(const std::string &payload); + ~DescribeDBClustersResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getDBClusters()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector dBClusters_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEDBCLUSTERSRESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DescribeDBConfigRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/DescribeDBConfigRequest.h new file mode 100644 index 000000000..bfda7398e --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DescribeDBConfigRequest.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_CLICKHOUSE_MODEL_DESCRIBEDBCONFIGREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEDBCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT DescribeDBConfigRequest : public RpcServiceRequest { +public: + DescribeDBConfigRequest(); + ~DescribeDBConfigRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEDBCONFIGREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DescribeDBConfigResult.h b/clickhouse/include/alibabacloud/clickhouse/model/DescribeDBConfigResult.h new file mode 100644 index 000000000..fa7957cd5 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DescribeDBConfigResult.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_CLICKHOUSE_MODEL_DESCRIBEDBCONFIGRESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEDBCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT DescribeDBConfigResult : public ServiceResult + { + public: + + + DescribeDBConfigResult(); + explicit DescribeDBConfigResult(const std::string &payload); + ~DescribeDBConfigResult(); + std::string getConfig()const; + + protected: + void parse(const std::string &payload); + private: + std::string config_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEDBCONFIGRESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DescribeOSSStorageRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/DescribeOSSStorageRequest.h new file mode 100644 index 000000000..7045dca95 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DescribeOSSStorageRequest.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_CLICKHOUSE_MODEL_DESCRIBEOSSSTORAGEREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEOSSSTORAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT DescribeOSSStorageRequest : public RpcServiceRequest { +public: + DescribeOSSStorageRequest(); + ~DescribeOSSStorageRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEOSSSTORAGEREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DescribeOSSStorageResult.h b/clickhouse/include/alibabacloud/clickhouse/model/DescribeOSSStorageResult.h new file mode 100644 index 000000000..b4561a18f --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DescribeOSSStorageResult.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_CLICKHOUSE_MODEL_DESCRIBEOSSSTORAGERESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEOSSSTORAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT DescribeOSSStorageResult : public ServiceResult + { + public: + + + DescribeOSSStorageResult(); + explicit DescribeOSSStorageResult(const std::string &payload); + ~DescribeOSSStorageResult(); + std::string getPolicy()const; + std::string getState()const; + bool getColdStorage()const; + std::string getStorageUsage()const; + + protected: + void parse(const std::string &payload); + private: + std::string policy_; + std::string state_; + bool coldStorage_; + std::string storageUsage_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEOSSSTORAGERESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DescribeProcessListRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/DescribeProcessListRequest.h new file mode 100644 index 000000000..4ecfb8e99 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DescribeProcessListRequest.h @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEPROCESSLISTREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEPROCESSLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT DescribeProcessListRequest : public RpcServiceRequest { +public: + DescribeProcessListRequest(); + ~DescribeProcessListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInitialQueryId() const; + void setInitialQueryId(const std::string &initialQueryId); + int getQueryDurationMs() const; + void setQueryDurationMs(int queryDurationMs); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getInitialUser() const; + void setInitialUser(const std::string &initialUser); + std::string getKeyword() const; + void setKeyword(const std::string &keyword); + std::string getOrder() const; + void setOrder(const std::string &order); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string initialQueryId_; + int queryDurationMs_; + int pageNumber_; + std::string accessKeyId_; + std::string regionId_; + int pageSize_; + std::string initialUser_; + std::string keyword_; + std::string order_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEPROCESSLISTREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DescribeProcessListResult.h b/clickhouse/include/alibabacloud/clickhouse/model/DescribeProcessListResult.h new file mode 100644 index 000000000..939072169 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DescribeProcessListResult.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_CLICKHOUSE_MODEL_DESCRIBEPROCESSLISTRESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEPROCESSLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT DescribeProcessListResult : public ServiceResult + { + public: + struct ProcessList + { + struct Statistics + { + float elapsedTime; + int bytesRead; + int rowsRead; + }; + struct ResultSet + { + std::string type; + std::string name; + }; + struct ResultSet1 + { + std::string initialUser; + std::string query; + std::string initialAddress; + std::string initialQueryId; + std::string queryDurationMs; + std::string queryStartTime; + }; + std::string rowsBeforeLimitAtLeast; + std::vector tableSchema; + std::vector data; + Statistics statistics; + std::string rows; + }; + + + DescribeProcessListResult(); + explicit DescribeProcessListResult(const std::string &payload); + ~DescribeProcessListResult(); + ProcessList getProcessList()const; + + protected: + void parse(const std::string &payload); + private: + ProcessList processList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEPROCESSLISTRESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DescribeRegionsRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/DescribeRegionsRequest.h new file mode 100644 index 000000000..b8a27c3b3 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DescribeRegionsRequest.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_CLICKHOUSE_MODEL_DESCRIBEREGIONSREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEREGIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT DescribeRegionsRequest : public RpcServiceRequest { +public: + DescribeRegionsRequest(); + ~DescribeRegionsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEREGIONSREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DescribeRegionsResult.h b/clickhouse/include/alibabacloud/clickhouse/model/DescribeRegionsResult.h new file mode 100644 index 000000000..1a74f2e7e --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DescribeRegionsResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEREGIONSRESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEREGIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT DescribeRegionsResult : public ServiceResult + { + public: + struct Region + { + struct Zone + { + bool vpcEnabled; + std::string zoneId; + }; + std::string regionId; + std::vector zones; + }; + + + DescribeRegionsResult(); + explicit DescribeRegionsResult(const std::string &payload); + ~DescribeRegionsResult(); + std::vector getRegions()const; + + protected: + void parse(const std::string &payload); + private: + std::vector regions_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBEREGIONSRESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DescribeSchemasRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/DescribeSchemasRequest.h new file mode 100644 index 000000000..a36a16d78 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DescribeSchemasRequest.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_CLICKHOUSE_MODEL_DESCRIBESCHEMASREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBESCHEMASREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT DescribeSchemasRequest : public RpcServiceRequest { +public: + DescribeSchemasRequest(); + ~DescribeSchemasRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getTableName() const; + void setTableName(const std::string &tableName); + std::string getSchemaName() const; + void setSchemaName(const std::string &schemaName); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string tableName_; + std::string schemaName_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBESCHEMASREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DescribeSchemasResult.h b/clickhouse/include/alibabacloud/clickhouse/model/DescribeSchemasResult.h new file mode 100644 index 000000000..4ca9bc910 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DescribeSchemasResult.h @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBESCHEMASRESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBESCHEMASRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT DescribeSchemasResult : public ServiceResult + { + public: + struct Schema + { + std::string dBClusterId; + std::string schemaName; + }; + + + DescribeSchemasResult(); + explicit DescribeSchemasResult(const std::string &payload); + ~DescribeSchemasResult(); + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBESCHEMASRESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DescribeSlowLogRecordsRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/DescribeSlowLogRecordsRequest.h new file mode 100644 index 000000000..e126df8bc --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DescribeSlowLogRecordsRequest.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_CLICKHOUSE_MODEL_DESCRIBESLOWLOGRECORDSREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBESLOWLOGRECORDSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT DescribeSlowLogRecordsRequest : public RpcServiceRequest { +public: + DescribeSlowLogRecordsRequest(); + ~DescribeSlowLogRecordsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getQueryDurationMs() const; + void setQueryDurationMs(int queryDurationMs); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + int queryDurationMs_; + std::string startTime_; + int pageNumber_; + std::string accessKeyId_; + std::string regionId_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + std::string endTime_; + long ownerId_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBESLOWLOGRECORDSREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DescribeSlowLogRecordsResult.h b/clickhouse/include/alibabacloud/clickhouse/model/DescribeSlowLogRecordsResult.h new file mode 100644 index 000000000..e43a1832c --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DescribeSlowLogRecordsResult.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_CLICKHOUSE_MODEL_DESCRIBESLOWLOGRECORDSRESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBESLOWLOGRECORDSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT DescribeSlowLogRecordsResult : public ServiceResult + { + public: + struct SlowLogRecords + { + struct Statistics + { + float elapsedTime; + int bytesRead; + int rowsRead; + }; + struct ResultSet + { + std::string type; + std::string name; + }; + struct ResultSet1 + { + std::string initialUser; + std::string type; + std::string query; + std::string initialAddress; + std::string initialQueryId; + std::string queryDurationMs; + std::string readBytes; + std::string readRows; + std::string queryStartTime; + std::string memoryUsage; + std::string resultBytes; + }; + std::string rowsBeforeLimitAtLeast; + std::vector tableSchema; + std::vector data; + Statistics statistics; + std::string rows; + }; + + + DescribeSlowLogRecordsResult(); + explicit DescribeSlowLogRecordsResult(const std::string &payload); + ~DescribeSlowLogRecordsResult(); + SlowLogRecords getSlowLogRecords()const; + + protected: + void parse(const std::string &payload); + private: + SlowLogRecords slowLogRecords_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBESLOWLOGRECORDSRESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DescribeSynDbTablesRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/DescribeSynDbTablesRequest.h new file mode 100644 index 000000000..3257254ad --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DescribeSynDbTablesRequest.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_CLICKHOUSE_MODEL_DESCRIBESYNDBTABLESREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBESYNDBTABLESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT DescribeSynDbTablesRequest : public RpcServiceRequest { +public: + DescribeSynDbTablesRequest(); + ~DescribeSynDbTablesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSynDb() const; + void setSynDb(const std::string &synDb); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDbClusterId() const; + void setDbClusterId(const std::string &dbClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string synDb_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dbClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBESYNDBTABLESREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DescribeSynDbTablesResult.h b/clickhouse/include/alibabacloud/clickhouse/model/DescribeSynDbTablesResult.h new file mode 100644 index 000000000..0db9dd829 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DescribeSynDbTablesResult.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_CLICKHOUSE_MODEL_DESCRIBESYNDBTABLESRESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBESYNDBTABLESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT DescribeSynDbTablesResult : public ServiceResult + { + public: + + + DescribeSynDbTablesResult(); + explicit DescribeSynDbTablesResult(const std::string &payload); + ~DescribeSynDbTablesResult(); + std::vector getTables()const; + + protected: + void parse(const std::string &payload); + private: + std::vector tables_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBESYNDBTABLESRESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DescribeSynDbsRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/DescribeSynDbsRequest.h new file mode 100644 index 000000000..3a75bf619 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DescribeSynDbsRequest.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_CLICKHOUSE_MODEL_DESCRIBESYNDBSREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBESYNDBSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT DescribeSynDbsRequest : public RpcServiceRequest { +public: + DescribeSynDbsRequest(); + ~DescribeSynDbsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDbClusterId() const; + void setDbClusterId(const std::string &dbClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string accessKeyId_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string dbClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBESYNDBSREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DescribeSynDbsResult.h b/clickhouse/include/alibabacloud/clickhouse/model/DescribeSynDbsResult.h new file mode 100644 index 000000000..c16583cc1 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DescribeSynDbsResult.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBESYNDBSRESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBESYNDBSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT DescribeSynDbsResult : public ServiceResult + { + public: + struct SynDb + { + std::string rdsVpcUrl; + std::string rdsUserName; + bool synStatus; + std::string errorMsg; + std::string synDb; + std::string rdsId; + std::string rdsPassword; + }; + + + DescribeSynDbsResult(); + explicit DescribeSynDbsResult(const std::string &payload); + ~DescribeSynDbsResult(); + int getTotalCount()const; + std::vector getSynDbs()const; + int getPageSize()const; + int getPageNumber()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::vector synDbs_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBESYNDBSRESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DescribeTablesRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/DescribeTablesRequest.h new file mode 100644 index 000000000..611194de4 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DescribeTablesRequest.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_CLICKHOUSE_MODEL_DESCRIBETABLESREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBETABLESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT DescribeTablesRequest : public RpcServiceRequest { +public: + DescribeTablesRequest(); + ~DescribeTablesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getTableName() const; + void setTableName(const std::string &tableName); + std::string getSchemaName() const; + void setSchemaName(const std::string &schemaName); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string tableName_; + std::string schemaName_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBETABLESREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DescribeTablesResult.h b/clickhouse/include/alibabacloud/clickhouse/model/DescribeTablesResult.h new file mode 100644 index 000000000..6dd2fcbcc --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DescribeTablesResult.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_CLICKHOUSE_MODEL_DESCRIBETABLESRESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBETABLESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT DescribeTablesResult : public ServiceResult + { + public: + struct Table + { + std::string tableName; + std::string dBClusterId; + std::string schemaName; + }; + + + DescribeTablesResult(); + explicit DescribeTablesResult(const std::string &payload); + ~DescribeTablesResult(); + std::vector
getItems()const; + + protected: + void parse(const std::string &payload); + private: + std::vector
items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBETABLESRESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DescribeTransferHistoryRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/DescribeTransferHistoryRequest.h new file mode 100644 index 000000000..2334c7cdf --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DescribeTransferHistoryRequest.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_CLICKHOUSE_MODEL_DESCRIBETRANSFERHISTORYREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBETRANSFERHISTORYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT DescribeTransferHistoryRequest : public RpcServiceRequest { +public: + DescribeTransferHistoryRequest(); + ~DescribeTransferHistoryRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBETRANSFERHISTORYREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/DescribeTransferHistoryResult.h b/clickhouse/include/alibabacloud/clickhouse/model/DescribeTransferHistoryResult.h new file mode 100644 index 000000000..46d5ce5d5 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/DescribeTransferHistoryResult.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBETRANSFERHISTORYRESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBETRANSFERHISTORYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT DescribeTransferHistoryResult : public ServiceResult + { + public: + struct HistoryDetail + { + std::string targetDBCluster; + std::string status; + long unsyncedBytes; + std::string progress; + std::string targetControlVersion; + std::string sourceDBCluster; + std::string disableWriteWindows; + std::string sourceControlVersion; + std::string subJobStatus; + long bytesPerMinute; + long unsyncedParts; + std::string subJob; + double partsPerMinute; + }; + + + DescribeTransferHistoryResult(); + explicit DescribeTransferHistoryResult(const std::string &payload); + ~DescribeTransferHistoryResult(); + std::vector getHistoryDetails()const; + + protected: + void parse(const std::string &payload); + private: + std::vector historyDetails_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_DESCRIBETRANSFERHISTORYRESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/KillProcessRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/KillProcessRequest.h new file mode 100644 index 000000000..3be202dbf --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/KillProcessRequest.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_CLICKHOUSE_MODEL_KILLPROCESSREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_KILLPROCESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT KillProcessRequest : public RpcServiceRequest { +public: + KillProcessRequest(); + ~KillProcessRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInitialQueryId() const; + void setInitialQueryId(const std::string &initialQueryId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string initialQueryId_; + std::string accessKeyId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_KILLPROCESSREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/KillProcessResult.h b/clickhouse/include/alibabacloud/clickhouse/model/KillProcessResult.h new file mode 100644 index 000000000..daa9097f0 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/KillProcessResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_KILLPROCESSRESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_KILLPROCESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT KillProcessResult : public ServiceResult + { + public: + + + KillProcessResult(); + explicit KillProcessResult(const std::string &payload); + ~KillProcessResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_KILLPROCESSRESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/ModifyAccountAuthorityRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/ModifyAccountAuthorityRequest.h new file mode 100644 index 000000000..83ecee2f7 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/ModifyAccountAuthorityRequest.h @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYACCOUNTAUTHORITYREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYACCOUNTAUTHORITYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT ModifyAccountAuthorityRequest : public RpcServiceRequest { +public: + ModifyAccountAuthorityRequest(); + ~ModifyAccountAuthorityRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getTotalDictionaries() const; + void setTotalDictionaries(const std::string &totalDictionaries); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getAccountName() const; + void setAccountName(const std::string &accountName); + std::string getDmlAuthority() const; + void setDmlAuthority(const std::string &dmlAuthority); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getAllowDatabases() const; + void setAllowDatabases(const std::string &allowDatabases); + std::string getAllowDictionaries() const; + void setAllowDictionaries(const std::string &allowDictionaries); + long getOwnerId() const; + void setOwnerId(long ownerId); + bool getDdlAuthority() const; + void setDdlAuthority(bool ddlAuthority); + std::string getTotalDatabases() const; + void setTotalDatabases(const std::string &totalDatabases); + +private: + long resourceOwnerId_; + std::string totalDictionaries_; + std::string accessKeyId_; + std::string accountName_; + std::string dmlAuthority_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + std::string allowDatabases_; + std::string allowDictionaries_; + long ownerId_; + bool ddlAuthority_; + std::string totalDatabases_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYACCOUNTAUTHORITYREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/ModifyAccountAuthorityResult.h b/clickhouse/include/alibabacloud/clickhouse/model/ModifyAccountAuthorityResult.h new file mode 100644 index 000000000..10ade4e26 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/ModifyAccountAuthorityResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYACCOUNTAUTHORITYRESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYACCOUNTAUTHORITYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT ModifyAccountAuthorityResult : public ServiceResult + { + public: + + + ModifyAccountAuthorityResult(); + explicit ModifyAccountAuthorityResult(const std::string &payload); + ~ModifyAccountAuthorityResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYACCOUNTAUTHORITYRESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/ModifyAccountDescriptionRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/ModifyAccountDescriptionRequest.h new file mode 100644 index 000000000..6b5c93d97 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/ModifyAccountDescriptionRequest.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_CLICKHOUSE_MODEL_MODIFYACCOUNTDESCRIPTIONREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYACCOUNTDESCRIPTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT ModifyAccountDescriptionRequest : public RpcServiceRequest { +public: + ModifyAccountDescriptionRequest(); + ~ModifyAccountDescriptionRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccountDescription() const; + void setAccountDescription(const std::string &accountDescription); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getAccountName() const; + void setAccountName(const std::string &accountName); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string accountDescription_; + std::string accessKeyId_; + std::string accountName_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYACCOUNTDESCRIPTIONREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/ModifyAccountDescriptionResult.h b/clickhouse/include/alibabacloud/clickhouse/model/ModifyAccountDescriptionResult.h new file mode 100644 index 000000000..12611db5e --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/ModifyAccountDescriptionResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYACCOUNTDESCRIPTIONRESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYACCOUNTDESCRIPTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT ModifyAccountDescriptionResult : public ServiceResult + { + public: + + + ModifyAccountDescriptionResult(); + explicit ModifyAccountDescriptionResult(const std::string &payload); + ~ModifyAccountDescriptionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYACCOUNTDESCRIPTIONRESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/ModifyBackupPolicyRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/ModifyBackupPolicyRequest.h new file mode 100644 index 000000000..124172a00 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/ModifyBackupPolicyRequest.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_CLICKHOUSE_MODEL_MODIFYBACKUPPOLICYREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYBACKUPPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT ModifyBackupPolicyRequest : public RpcServiceRequest { +public: + ModifyBackupPolicyRequest(); + ~ModifyBackupPolicyRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getPreferredBackupPeriod() const; + void setPreferredBackupPeriod(const std::string &preferredBackupPeriod); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPreferredBackupTime() const; + void setPreferredBackupTime(const std::string &preferredBackupTime); + std::string getBackupRetentionPeriod() const; + void setBackupRetentionPeriod(const std::string &backupRetentionPeriod); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string preferredBackupPeriod_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string preferredBackupTime_; + std::string backupRetentionPeriod_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYBACKUPPOLICYREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/ModifyBackupPolicyResult.h b/clickhouse/include/alibabacloud/clickhouse/model/ModifyBackupPolicyResult.h new file mode 100644 index 000000000..21cb94a05 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/ModifyBackupPolicyResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYBACKUPPOLICYRESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYBACKUPPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT ModifyBackupPolicyResult : public ServiceResult + { + public: + + + ModifyBackupPolicyResult(); + explicit ModifyBackupPolicyResult(const std::string &payload); + ~ModifyBackupPolicyResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYBACKUPPOLICYRESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/ModifyDBClusterAccessWhiteListRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/ModifyDBClusterAccessWhiteListRequest.h new file mode 100644 index 000000000..afaefa915 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/ModifyDBClusterAccessWhiteListRequest.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_CLICKHOUSE_MODEL_MODIFYDBCLUSTERACCESSWHITELISTREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYDBCLUSTERACCESSWHITELISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT ModifyDBClusterAccessWhiteListRequest : public RpcServiceRequest { +public: + ModifyDBClusterAccessWhiteListRequest(); + ~ModifyDBClusterAccessWhiteListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSecurityIps() const; + void setSecurityIps(const std::string &securityIps); + std::string getDBClusterIPArrayAttribute() const; + void setDBClusterIPArrayAttribute(const std::string &dBClusterIPArrayAttribute); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getModifyMode() const; + void setModifyMode(const std::string &modifyMode); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getDBClusterIPArrayName() const; + void setDBClusterIPArrayName(const std::string &dBClusterIPArrayName); + +private: + long resourceOwnerId_; + std::string securityIps_; + std::string dBClusterIPArrayAttribute_; + std::string accessKeyId_; + std::string modifyMode_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string dBClusterIPArrayName_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYDBCLUSTERACCESSWHITELISTREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/ModifyDBClusterAccessWhiteListResult.h b/clickhouse/include/alibabacloud/clickhouse/model/ModifyDBClusterAccessWhiteListResult.h new file mode 100644 index 000000000..9a67fc686 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/ModifyDBClusterAccessWhiteListResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYDBCLUSTERACCESSWHITELISTRESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYDBCLUSTERACCESSWHITELISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT ModifyDBClusterAccessWhiteListResult : public ServiceResult + { + public: + + + ModifyDBClusterAccessWhiteListResult(); + explicit ModifyDBClusterAccessWhiteListResult(const std::string &payload); + ~ModifyDBClusterAccessWhiteListResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYDBCLUSTERACCESSWHITELISTRESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/ModifyDBClusterConfigInXMLRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/ModifyDBClusterConfigInXMLRequest.h new file mode 100644 index 000000000..977244f40 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/ModifyDBClusterConfigInXMLRequest.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_CLICKHOUSE_MODEL_MODIFYDBCLUSTERCONFIGINXMLREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYDBCLUSTERCONFIGINXMLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT ModifyDBClusterConfigInXMLRequest : public RpcServiceRequest { +public: + ModifyDBClusterConfigInXMLRequest(); + ~ModifyDBClusterConfigInXMLRequest(); + std::string getReason() const; + void setReason(const std::string &reason); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getConfig() const; + void setConfig(const std::string &config); + +private: + std::string reason_; + std::string dBClusterId_; + std::string regionId_; + std::string config_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYDBCLUSTERCONFIGINXMLREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/ModifyDBClusterConfigInXMLResult.h b/clickhouse/include/alibabacloud/clickhouse/model/ModifyDBClusterConfigInXMLResult.h new file mode 100644 index 000000000..ffc613558 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/ModifyDBClusterConfigInXMLResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYDBCLUSTERCONFIGINXMLRESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYDBCLUSTERCONFIGINXMLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT ModifyDBClusterConfigInXMLResult : public ServiceResult + { + public: + + + ModifyDBClusterConfigInXMLResult(); + explicit ModifyDBClusterConfigInXMLResult(const std::string &payload); + ~ModifyDBClusterConfigInXMLResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYDBCLUSTERCONFIGINXMLRESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/ModifyDBClusterConfigRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/ModifyDBClusterConfigRequest.h new file mode 100644 index 000000000..dd83a4a97 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/ModifyDBClusterConfigRequest.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_CLICKHOUSE_MODEL_MODIFYDBCLUSTERCONFIGREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYDBCLUSTERCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT ModifyDBClusterConfigRequest : public RpcServiceRequest { +public: + ModifyDBClusterConfigRequest(); + ~ModifyDBClusterConfigRequest(); + std::string getReason() const; + void setReason(const std::string &reason); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getUserConfig() const; + void setUserConfig(const std::string &userConfig); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + std::string reason_; + long resourceOwnerId_; + std::string accessKeyId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string userConfig_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYDBCLUSTERCONFIGREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/ModifyDBClusterConfigResult.h b/clickhouse/include/alibabacloud/clickhouse/model/ModifyDBClusterConfigResult.h new file mode 100644 index 000000000..abee654fc --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/ModifyDBClusterConfigResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYDBCLUSTERCONFIGRESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYDBCLUSTERCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT ModifyDBClusterConfigResult : public ServiceResult + { + public: + + + ModifyDBClusterConfigResult(); + explicit ModifyDBClusterConfigResult(const std::string &payload); + ~ModifyDBClusterConfigResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYDBCLUSTERCONFIGRESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/ModifyDBClusterDescriptionRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/ModifyDBClusterDescriptionRequest.h new file mode 100644 index 000000000..29cf3882f --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/ModifyDBClusterDescriptionRequest.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_CLICKHOUSE_MODEL_MODIFYDBCLUSTERDESCRIPTIONREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYDBCLUSTERDESCRIPTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT ModifyDBClusterDescriptionRequest : public RpcServiceRequest { +public: + ModifyDBClusterDescriptionRequest(); + ~ModifyDBClusterDescriptionRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDBClusterDescription() const; + void setDBClusterDescription(const std::string &dBClusterDescription); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string dBClusterDescription_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYDBCLUSTERDESCRIPTIONREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/ModifyDBClusterDescriptionResult.h b/clickhouse/include/alibabacloud/clickhouse/model/ModifyDBClusterDescriptionResult.h new file mode 100644 index 000000000..a649a2d83 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/ModifyDBClusterDescriptionResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYDBCLUSTERDESCRIPTIONRESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYDBCLUSTERDESCRIPTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT ModifyDBClusterDescriptionResult : public ServiceResult + { + public: + + + ModifyDBClusterDescriptionResult(); + explicit ModifyDBClusterDescriptionResult(const std::string &payload); + ~ModifyDBClusterDescriptionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYDBCLUSTERDESCRIPTIONRESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/ModifyDBClusterMaintainTimeRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/ModifyDBClusterMaintainTimeRequest.h new file mode 100644 index 000000000..b5a98717f --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/ModifyDBClusterMaintainTimeRequest.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_CLICKHOUSE_MODEL_MODIFYDBCLUSTERMAINTAINTIMEREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYDBCLUSTERMAINTAINTIMEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT ModifyDBClusterMaintainTimeRequest : public RpcServiceRequest { +public: + ModifyDBClusterMaintainTimeRequest(); + ~ModifyDBClusterMaintainTimeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getMaintainTime() const; + void setMaintainTime(const std::string &maintainTime); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string maintainTime_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYDBCLUSTERMAINTAINTIMEREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/ModifyDBClusterMaintainTimeResult.h b/clickhouse/include/alibabacloud/clickhouse/model/ModifyDBClusterMaintainTimeResult.h new file mode 100644 index 000000000..2775cf01c --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/ModifyDBClusterMaintainTimeResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYDBCLUSTERMAINTAINTIMERESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYDBCLUSTERMAINTAINTIMERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT ModifyDBClusterMaintainTimeResult : public ServiceResult + { + public: + + + ModifyDBClusterMaintainTimeResult(); + explicit ModifyDBClusterMaintainTimeResult(const std::string &payload); + ~ModifyDBClusterMaintainTimeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYDBCLUSTERMAINTAINTIMERESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/ModifyDBClusterRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/ModifyDBClusterRequest.h new file mode 100644 index 000000000..a365ec4bf --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/ModifyDBClusterRequest.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_CLICKHOUSE_MODEL_MODIFYDBCLUSTERREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYDBCLUSTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT ModifyDBClusterRequest : public RpcServiceRequest { +public: + ModifyDBClusterRequest(); + ~ModifyDBClusterRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDbNodeStorageType() const; + void setDbNodeStorageType(const std::string &dbNodeStorageType); + std::string getDisableWriteWindows() const; + void setDisableWriteWindows(const std::string &disableWriteWindows); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getDBClusterClass() const; + void setDBClusterClass(const std::string &dBClusterClass); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getDBNodeGroupCount() const; + void setDBNodeGroupCount(const std::string &dBNodeGroupCount); + std::string getDBNodeStorage() const; + void setDBNodeStorage(const std::string &dBNodeStorage); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string regionId_; + std::string dbNodeStorageType_; + std::string disableWriteWindows_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + std::string dBClusterClass_; + long ownerId_; + std::string dBNodeGroupCount_; + std::string dBNodeStorage_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYDBCLUSTERREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/ModifyDBClusterResult.h b/clickhouse/include/alibabacloud/clickhouse/model/ModifyDBClusterResult.h new file mode 100644 index 000000000..36902c6a9 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/ModifyDBClusterResult.h @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYDBCLUSTERRESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYDBCLUSTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT ModifyDBClusterResult : public ServiceResult + { + public: + struct DBCluster + { + std::string dbClusterId; + std::string orderId; + }; + + + ModifyDBClusterResult(); + explicit ModifyDBClusterResult(const std::string &payload); + ~ModifyDBClusterResult(); + DBCluster getDBCluster()const; + + protected: + void parse(const std::string &payload); + private: + DBCluster dBCluster_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYDBCLUSTERRESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/ModifyDBConfigRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/ModifyDBConfigRequest.h new file mode 100644 index 000000000..929ca7ea3 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/ModifyDBConfigRequest.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_CLICKHOUSE_MODEL_MODIFYDBCONFIGREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYDBCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT ModifyDBConfigRequest : public RpcServiceRequest { +public: + ModifyDBConfigRequest(); + ~ModifyDBConfigRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getConfig() const; + void setConfig(const std::string &config); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string config_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYDBCONFIGREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/ModifyDBConfigResult.h b/clickhouse/include/alibabacloud/clickhouse/model/ModifyDBConfigResult.h new file mode 100644 index 000000000..6729bdd3b --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/ModifyDBConfigResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYDBCONFIGRESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYDBCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT ModifyDBConfigResult : public ServiceResult + { + public: + + + ModifyDBConfigResult(); + explicit ModifyDBConfigResult(const std::string &payload); + ~ModifyDBConfigResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYDBCONFIGRESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/ModifyMinorVersionGreadeTypeRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/ModifyMinorVersionGreadeTypeRequest.h new file mode 100644 index 000000000..8d36db1a6 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/ModifyMinorVersionGreadeTypeRequest.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_CLICKHOUSE_MODEL_MODIFYMINORVERSIONGREADETYPEREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYMINORVERSIONGREADETYPEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT ModifyMinorVersionGreadeTypeRequest : public RpcServiceRequest { +public: + ModifyMinorVersionGreadeTypeRequest(); + ~ModifyMinorVersionGreadeTypeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + bool getMaintainAutoType() const; + void setMaintainAutoType(bool maintainAutoType); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + bool maintainAutoType_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYMINORVERSIONGREADETYPEREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/ModifyMinorVersionGreadeTypeResult.h b/clickhouse/include/alibabacloud/clickhouse/model/ModifyMinorVersionGreadeTypeResult.h new file mode 100644 index 000000000..32b16d9e5 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/ModifyMinorVersionGreadeTypeResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYMINORVERSIONGREADETYPERESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYMINORVERSIONGREADETYPERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT ModifyMinorVersionGreadeTypeResult : public ServiceResult + { + public: + + + ModifyMinorVersionGreadeTypeResult(); + explicit ModifyMinorVersionGreadeTypeResult(const std::string &payload); + ~ModifyMinorVersionGreadeTypeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYMINORVERSIONGREADETYPERESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/ModifyRDSToClickhouseDbRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/ModifyRDSToClickhouseDbRequest.h new file mode 100644 index 000000000..fa7925247 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/ModifyRDSToClickhouseDbRequest.h @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYRDSTOCLICKHOUSEDBREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYRDSTOCLICKHOUSEDBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT ModifyRDSToClickhouseDbRequest : public RpcServiceRequest { +public: + ModifyRDSToClickhouseDbRequest(); + ~ModifyRDSToClickhouseDbRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRdsVpcId() const; + void setRdsVpcId(const std::string &rdsVpcId); + std::string getCkPassword() const; + void setCkPassword(const std::string &ckPassword); + std::string getRdsSynTables() const; + void setRdsSynTables(const std::string &rdsSynTables); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRdsPassword() const; + void setRdsPassword(const std::string &rdsPassword); + std::string getCkUserName() const; + void setCkUserName(const std::string &ckUserName); + std::string getRdsSynDb() const; + void setRdsSynDb(const std::string &rdsSynDb); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDbClusterId() const; + void setDbClusterId(const std::string &dbClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getRdsId() const; + void setRdsId(const std::string &rdsId); + long getOwnerId() const; + void setOwnerId(long ownerId); + long getClickhousePort() const; + void setClickhousePort(long clickhousePort); + long getLimitUpper() const; + void setLimitUpper(long limitUpper); + long getRdsPort() const; + void setRdsPort(long rdsPort); + bool getSkipUnsupported() const; + void setSkipUnsupported(bool skipUnsupported); + std::string getRdsUserName() const; + void setRdsUserName(const std::string &rdsUserName); + +private: + long resourceOwnerId_; + std::string rdsVpcId_; + std::string ckPassword_; + std::string rdsSynTables_; + std::string accessKeyId_; + std::string rdsPassword_; + std::string ckUserName_; + std::string rdsSynDb_; + std::string resourceOwnerAccount_; + std::string dbClusterId_; + std::string ownerAccount_; + std::string rdsId_; + long ownerId_; + long clickhousePort_; + long limitUpper_; + long rdsPort_; + bool skipUnsupported_; + std::string rdsUserName_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYRDSTOCLICKHOUSEDBREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/ModifyRDSToClickhouseDbResult.h b/clickhouse/include/alibabacloud/clickhouse/model/ModifyRDSToClickhouseDbResult.h new file mode 100644 index 000000000..37fddac99 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/ModifyRDSToClickhouseDbResult.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_CLICKHOUSE_MODEL_MODIFYRDSTOCLICKHOUSEDBRESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYRDSTOCLICKHOUSEDBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT ModifyRDSToClickhouseDbResult : public ServiceResult + { + public: + + + ModifyRDSToClickhouseDbResult(); + explicit ModifyRDSToClickhouseDbResult(const std::string &payload); + ~ModifyRDSToClickhouseDbResult(); + long getStatus()const; + std::string getErrorMsg()const; + long getErrorCode()const; + + protected: + void parse(const std::string &payload); + private: + long status_; + std::string errorMsg_; + long errorCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_MODIFYRDSTOCLICKHOUSEDBRESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/ReleaseClusterPublicConnectionRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/ReleaseClusterPublicConnectionRequest.h new file mode 100644 index 000000000..48952e544 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/ReleaseClusterPublicConnectionRequest.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_CLICKHOUSE_MODEL_RELEASECLUSTERPUBLICCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_RELEASECLUSTERPUBLICCONNECTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT ReleaseClusterPublicConnectionRequest : public RpcServiceRequest { +public: + ReleaseClusterPublicConnectionRequest(); + ~ReleaseClusterPublicConnectionRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_RELEASECLUSTERPUBLICCONNECTIONREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/ReleaseClusterPublicConnectionResult.h b/clickhouse/include/alibabacloud/clickhouse/model/ReleaseClusterPublicConnectionResult.h new file mode 100644 index 000000000..955bf9a9a --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/ReleaseClusterPublicConnectionResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_RELEASECLUSTERPUBLICCONNECTIONRESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_RELEASECLUSTERPUBLICCONNECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT ReleaseClusterPublicConnectionResult : public ServiceResult + { + public: + + + ReleaseClusterPublicConnectionResult(); + explicit ReleaseClusterPublicConnectionResult(const std::string &payload); + ~ReleaseClusterPublicConnectionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_RELEASECLUSTERPUBLICCONNECTIONRESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/ResetAccountPasswordRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/ResetAccountPasswordRequest.h new file mode 100644 index 000000000..5a8ff88ce --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/ResetAccountPasswordRequest.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_CLICKHOUSE_MODEL_RESETACCOUNTPASSWORDREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_RESETACCOUNTPASSWORDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT ResetAccountPasswordRequest : public RpcServiceRequest { +public: + ResetAccountPasswordRequest(); + ~ResetAccountPasswordRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getAccountName() const; + void setAccountName(const std::string &accountName); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccountPassword() const; + void setAccountPassword(const std::string &accountPassword); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string accountName_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string accountPassword_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_RESETACCOUNTPASSWORDREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/ResetAccountPasswordResult.h b/clickhouse/include/alibabacloud/clickhouse/model/ResetAccountPasswordResult.h new file mode 100644 index 000000000..a49c5f11d --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/ResetAccountPasswordResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_RESETACCOUNTPASSWORDRESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_RESETACCOUNTPASSWORDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT ResetAccountPasswordResult : public ServiceResult + { + public: + + + ResetAccountPasswordResult(); + explicit ResetAccountPasswordResult(const std::string &payload); + ~ResetAccountPasswordResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_RESETACCOUNTPASSWORDRESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/RestartInstanceRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/RestartInstanceRequest.h new file mode 100644 index 000000000..ea1ea1d02 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/RestartInstanceRequest.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_CLICKHOUSE_MODEL_RESTARTINSTANCEREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_RESTARTINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT RestartInstanceRequest : public RpcServiceRequest { +public: + RestartInstanceRequest(); + ~RestartInstanceRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getRestartTime() const; + void setRestartTime(const std::string &restartTime); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string accessKeyId_; + std::string regionId_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + std::string restartTime_; + long ownerId_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_RESTARTINSTANCEREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/RestartInstanceResult.h b/clickhouse/include/alibabacloud/clickhouse/model/RestartInstanceResult.h new file mode 100644 index 000000000..fcf6fed45 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/RestartInstanceResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_RESTARTINSTANCERESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_RESTARTINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT RestartInstanceResult : public ServiceResult + { + public: + + + RestartInstanceResult(); + explicit RestartInstanceResult(const std::string &payload); + ~RestartInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_RESTARTINSTANCERESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/TransferVersionRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/TransferVersionRequest.h new file mode 100644 index 000000000..118e51608 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/TransferVersionRequest.h @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_TRANSFERVERSIONREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_TRANSFERVERSIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT TransferVersionRequest : public RpcServiceRequest { +public: + TransferVersionRequest(); + ~TransferVersionRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getSourceAccount() const; + void setSourceAccount(const std::string &sourceAccount); + std::string getTargetAccount() const; + void setTargetAccount(const std::string &targetAccount); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getSourceClusterName() const; + void setSourceClusterName(const std::string &sourceClusterName); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getSourcePassword() const; + void setSourcePassword(const std::string &sourcePassword); + std::string getDisableWriteWindows() const; + void setDisableWriteWindows(const std::string &disableWriteWindows); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getTargetPassword() const; + void setTargetPassword(const std::string &targetPassword); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTargetDbClusterId() const; + void setTargetDbClusterId(const std::string &targetDbClusterId); + std::string getSourceShards() const; + void setSourceShards(const std::string &sourceShards); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string accessKeyId_; + std::string sourceAccount_; + std::string targetAccount_; + std::string regionId_; + std::string sourceClusterName_; + int pageSize_; + std::string sourcePassword_; + std::string disableWriteWindows_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string targetPassword_; + std::string ownerAccount_; + long ownerId_; + std::string targetDbClusterId_; + std::string sourceShards_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_TRANSFERVERSIONREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/TransferVersionResult.h b/clickhouse/include/alibabacloud/clickhouse/model/TransferVersionResult.h new file mode 100644 index 000000000..80172f626 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/TransferVersionResult.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_CLICKHOUSE_MODEL_TRANSFERVERSIONRESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_TRANSFERVERSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT TransferVersionResult : public ServiceResult + { + public: + + + TransferVersionResult(); + explicit TransferVersionResult(const std::string &payload); + ~TransferVersionResult(); + bool getTaskId()const; + int getDBInstanceID()const; + long getDBInstanceName()const; + + protected: + void parse(const std::string &payload); + private: + bool taskId_; + int dBInstanceID_; + long dBInstanceName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_TRANSFERVERSIONRESULT_H_ \ No newline at end of file diff --git a/clickhouse/include/alibabacloud/clickhouse/model/UpgradeMinorVersionRequest.h b/clickhouse/include/alibabacloud/clickhouse/model/UpgradeMinorVersionRequest.h new file mode 100644 index 000000000..5416c5017 --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/UpgradeMinorVersionRequest.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_CLICKHOUSE_MODEL_UPGRADEMINORVERSIONREQUEST_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_UPGRADEMINORVERSIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Clickhouse { +namespace Model { +class ALIBABACLOUD_CLICKHOUSE_EXPORT UpgradeMinorVersionRequest : public RpcServiceRequest { +public: + UpgradeMinorVersionRequest(); + ~UpgradeMinorVersionRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + bool getUpgradeImmediately() const; + void setUpgradeImmediately(bool upgradeImmediately); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getUpgradeVersion() const; + void setUpgradeVersion(const std::string &upgradeVersion); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getUpgradeTime() const; + void setUpgradeTime(const std::string &upgradeTime); + +private: + long resourceOwnerId_; + bool upgradeImmediately_; + std::string accessKeyId_; + std::string upgradeVersion_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string upgradeTime_; +}; +} // namespace Model +} // namespace Clickhouse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_UPGRADEMINORVERSIONREQUEST_H_ diff --git a/clickhouse/include/alibabacloud/clickhouse/model/UpgradeMinorVersionResult.h b/clickhouse/include/alibabacloud/clickhouse/model/UpgradeMinorVersionResult.h new file mode 100644 index 000000000..d49f8efbc --- /dev/null +++ b/clickhouse/include/alibabacloud/clickhouse/model/UpgradeMinorVersionResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_UPGRADEMINORVERSIONRESULT_H_ +#define ALIBABACLOUD_CLICKHOUSE_MODEL_UPGRADEMINORVERSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Clickhouse + { + namespace Model + { + class ALIBABACLOUD_CLICKHOUSE_EXPORT UpgradeMinorVersionResult : public ServiceResult + { + public: + + + UpgradeMinorVersionResult(); + explicit UpgradeMinorVersionResult(const std::string &payload); + ~UpgradeMinorVersionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_UPGRADEMINORVERSIONRESULT_H_ \ No newline at end of file diff --git a/clickhouse/src/ClickhouseClient.cc b/clickhouse/src/ClickhouseClient.cc new file mode 100644 index 000000000..1469e74fe --- /dev/null +++ b/clickhouse/src/ClickhouseClient.cc @@ -0,0 +1,2321 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +namespace +{ + const std::string SERVICE_NAME = "clickhouse"; +} + +ClickhouseClient::ClickhouseClient(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, "service"); +} + +ClickhouseClient::ClickhouseClient(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, "service"); +} + +ClickhouseClient::ClickhouseClient(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, "service"); +} + +ClickhouseClient::~ClickhouseClient() +{} + +ClickhouseClient::AllocateClusterPublicConnectionOutcome ClickhouseClient::allocateClusterPublicConnection(const AllocateClusterPublicConnectionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AllocateClusterPublicConnectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AllocateClusterPublicConnectionOutcome(AllocateClusterPublicConnectionResult(outcome.result())); + else + return AllocateClusterPublicConnectionOutcome(outcome.error()); +} + +void ClickhouseClient::allocateClusterPublicConnectionAsync(const AllocateClusterPublicConnectionRequest& request, const AllocateClusterPublicConnectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, allocateClusterPublicConnection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::AllocateClusterPublicConnectionOutcomeCallable ClickhouseClient::allocateClusterPublicConnectionCallable(const AllocateClusterPublicConnectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->allocateClusterPublicConnection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::CheckClickhouseToRDSOutcome ClickhouseClient::checkClickhouseToRDS(const CheckClickhouseToRDSRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CheckClickhouseToRDSOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CheckClickhouseToRDSOutcome(CheckClickhouseToRDSResult(outcome.result())); + else + return CheckClickhouseToRDSOutcome(outcome.error()); +} + +void ClickhouseClient::checkClickhouseToRDSAsync(const CheckClickhouseToRDSRequest& request, const CheckClickhouseToRDSAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, checkClickhouseToRDS(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::CheckClickhouseToRDSOutcomeCallable ClickhouseClient::checkClickhouseToRDSCallable(const CheckClickhouseToRDSRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->checkClickhouseToRDS(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::CheckModifyConfigNeedRestartOutcome ClickhouseClient::checkModifyConfigNeedRestart(const CheckModifyConfigNeedRestartRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CheckModifyConfigNeedRestartOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CheckModifyConfigNeedRestartOutcome(CheckModifyConfigNeedRestartResult(outcome.result())); + else + return CheckModifyConfigNeedRestartOutcome(outcome.error()); +} + +void ClickhouseClient::checkModifyConfigNeedRestartAsync(const CheckModifyConfigNeedRestartRequest& request, const CheckModifyConfigNeedRestartAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, checkModifyConfigNeedRestart(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::CheckModifyConfigNeedRestartOutcomeCallable ClickhouseClient::checkModifyConfigNeedRestartCallable(const CheckModifyConfigNeedRestartRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->checkModifyConfigNeedRestart(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::CheckMonitorAlertOutcome ClickhouseClient::checkMonitorAlert(const CheckMonitorAlertRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CheckMonitorAlertOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CheckMonitorAlertOutcome(CheckMonitorAlertResult(outcome.result())); + else + return CheckMonitorAlertOutcome(outcome.error()); +} + +void ClickhouseClient::checkMonitorAlertAsync(const CheckMonitorAlertRequest& request, const CheckMonitorAlertAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, checkMonitorAlert(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::CheckMonitorAlertOutcomeCallable ClickhouseClient::checkMonitorAlertCallable(const CheckMonitorAlertRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->checkMonitorAlert(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::CheckScaleOutBalancedOutcome ClickhouseClient::checkScaleOutBalanced(const CheckScaleOutBalancedRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CheckScaleOutBalancedOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CheckScaleOutBalancedOutcome(CheckScaleOutBalancedResult(outcome.result())); + else + return CheckScaleOutBalancedOutcome(outcome.error()); +} + +void ClickhouseClient::checkScaleOutBalancedAsync(const CheckScaleOutBalancedRequest& request, const CheckScaleOutBalancedAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, checkScaleOutBalanced(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::CheckScaleOutBalancedOutcomeCallable ClickhouseClient::checkScaleOutBalancedCallable(const CheckScaleOutBalancedRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->checkScaleOutBalanced(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::CheckServiceLinkedRoleOutcome ClickhouseClient::checkServiceLinkedRole(const CheckServiceLinkedRoleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CheckServiceLinkedRoleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CheckServiceLinkedRoleOutcome(CheckServiceLinkedRoleResult(outcome.result())); + else + return CheckServiceLinkedRoleOutcome(outcome.error()); +} + +void ClickhouseClient::checkServiceLinkedRoleAsync(const CheckServiceLinkedRoleRequest& request, const CheckServiceLinkedRoleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, checkServiceLinkedRole(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::CheckServiceLinkedRoleOutcomeCallable ClickhouseClient::checkServiceLinkedRoleCallable(const CheckServiceLinkedRoleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->checkServiceLinkedRole(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::CreateAccountOutcome ClickhouseClient::createAccount(const CreateAccountRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateAccountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateAccountOutcome(CreateAccountResult(outcome.result())); + else + return CreateAccountOutcome(outcome.error()); +} + +void ClickhouseClient::createAccountAsync(const CreateAccountRequest& request, const CreateAccountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createAccount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::CreateAccountOutcomeCallable ClickhouseClient::createAccountCallable(const CreateAccountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createAccount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::CreateAccountAndAuthorityOutcome ClickhouseClient::createAccountAndAuthority(const CreateAccountAndAuthorityRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateAccountAndAuthorityOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateAccountAndAuthorityOutcome(CreateAccountAndAuthorityResult(outcome.result())); + else + return CreateAccountAndAuthorityOutcome(outcome.error()); +} + +void ClickhouseClient::createAccountAndAuthorityAsync(const CreateAccountAndAuthorityRequest& request, const CreateAccountAndAuthorityAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createAccountAndAuthority(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::CreateAccountAndAuthorityOutcomeCallable ClickhouseClient::createAccountAndAuthorityCallable(const CreateAccountAndAuthorityRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createAccountAndAuthority(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::CreateBackupPolicyOutcome ClickhouseClient::createBackupPolicy(const CreateBackupPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateBackupPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateBackupPolicyOutcome(CreateBackupPolicyResult(outcome.result())); + else + return CreateBackupPolicyOutcome(outcome.error()); +} + +void ClickhouseClient::createBackupPolicyAsync(const CreateBackupPolicyRequest& request, const CreateBackupPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createBackupPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::CreateBackupPolicyOutcomeCallable ClickhouseClient::createBackupPolicyCallable(const CreateBackupPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createBackupPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::CreateDBInstanceOutcome ClickhouseClient::createDBInstance(const CreateDBInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDBInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDBInstanceOutcome(CreateDBInstanceResult(outcome.result())); + else + return CreateDBInstanceOutcome(outcome.error()); +} + +void ClickhouseClient::createDBInstanceAsync(const CreateDBInstanceRequest& request, const CreateDBInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDBInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::CreateDBInstanceOutcomeCallable ClickhouseClient::createDBInstanceCallable(const CreateDBInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDBInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::CreateMonitorDataReportOutcome ClickhouseClient::createMonitorDataReport(const CreateMonitorDataReportRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateMonitorDataReportOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateMonitorDataReportOutcome(CreateMonitorDataReportResult(outcome.result())); + else + return CreateMonitorDataReportOutcome(outcome.error()); +} + +void ClickhouseClient::createMonitorDataReportAsync(const CreateMonitorDataReportRequest& request, const CreateMonitorDataReportAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createMonitorDataReport(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::CreateMonitorDataReportOutcomeCallable ClickhouseClient::createMonitorDataReportCallable(const CreateMonitorDataReportRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createMonitorDataReport(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::CreateOSSStorageOutcome ClickhouseClient::createOSSStorage(const CreateOSSStorageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateOSSStorageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateOSSStorageOutcome(CreateOSSStorageResult(outcome.result())); + else + return CreateOSSStorageOutcome(outcome.error()); +} + +void ClickhouseClient::createOSSStorageAsync(const CreateOSSStorageRequest& request, const CreateOSSStorageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createOSSStorage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::CreateOSSStorageOutcomeCallable ClickhouseClient::createOSSStorageCallable(const CreateOSSStorageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createOSSStorage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::CreatePortsForClickHouseOutcome ClickhouseClient::createPortsForClickHouse(const CreatePortsForClickHouseRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreatePortsForClickHouseOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreatePortsForClickHouseOutcome(CreatePortsForClickHouseResult(outcome.result())); + else + return CreatePortsForClickHouseOutcome(outcome.error()); +} + +void ClickhouseClient::createPortsForClickHouseAsync(const CreatePortsForClickHouseRequest& request, const CreatePortsForClickHouseAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createPortsForClickHouse(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::CreatePortsForClickHouseOutcomeCallable ClickhouseClient::createPortsForClickHouseCallable(const CreatePortsForClickHouseRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createPortsForClickHouse(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::CreateRDSToClickhouseDbOutcome ClickhouseClient::createRDSToClickhouseDb(const CreateRDSToClickhouseDbRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateRDSToClickhouseDbOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateRDSToClickhouseDbOutcome(CreateRDSToClickhouseDbResult(outcome.result())); + else + return CreateRDSToClickhouseDbOutcome(outcome.error()); +} + +void ClickhouseClient::createRDSToClickhouseDbAsync(const CreateRDSToClickhouseDbRequest& request, const CreateRDSToClickhouseDbAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createRDSToClickhouseDb(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::CreateRDSToClickhouseDbOutcomeCallable ClickhouseClient::createRDSToClickhouseDbCallable(const CreateRDSToClickhouseDbRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createRDSToClickhouseDb(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::CreateSQLAccountOutcome ClickhouseClient::createSQLAccount(const CreateSQLAccountRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateSQLAccountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateSQLAccountOutcome(CreateSQLAccountResult(outcome.result())); + else + return CreateSQLAccountOutcome(outcome.error()); +} + +void ClickhouseClient::createSQLAccountAsync(const CreateSQLAccountRequest& request, const CreateSQLAccountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createSQLAccount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::CreateSQLAccountOutcomeCallable ClickhouseClient::createSQLAccountCallable(const CreateSQLAccountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createSQLAccount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::CreateServiceLinkedRoleOutcome ClickhouseClient::createServiceLinkedRole(const CreateServiceLinkedRoleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateServiceLinkedRoleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateServiceLinkedRoleOutcome(CreateServiceLinkedRoleResult(outcome.result())); + else + return CreateServiceLinkedRoleOutcome(outcome.error()); +} + +void ClickhouseClient::createServiceLinkedRoleAsync(const CreateServiceLinkedRoleRequest& request, const CreateServiceLinkedRoleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createServiceLinkedRole(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::CreateServiceLinkedRoleOutcomeCallable ClickhouseClient::createServiceLinkedRoleCallable(const CreateServiceLinkedRoleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createServiceLinkedRole(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::DeleteAccountOutcome ClickhouseClient::deleteAccount(const DeleteAccountRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteAccountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteAccountOutcome(DeleteAccountResult(outcome.result())); + else + return DeleteAccountOutcome(outcome.error()); +} + +void ClickhouseClient::deleteAccountAsync(const DeleteAccountRequest& request, const DeleteAccountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteAccount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::DeleteAccountOutcomeCallable ClickhouseClient::deleteAccountCallable(const DeleteAccountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteAccount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::DeleteDBClusterOutcome ClickhouseClient::deleteDBCluster(const DeleteDBClusterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDBClusterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDBClusterOutcome(DeleteDBClusterResult(outcome.result())); + else + return DeleteDBClusterOutcome(outcome.error()); +} + +void ClickhouseClient::deleteDBClusterAsync(const DeleteDBClusterRequest& request, const DeleteDBClusterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDBCluster(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::DeleteDBClusterOutcomeCallable ClickhouseClient::deleteDBClusterCallable(const DeleteDBClusterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDBCluster(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::DeleteSyndbOutcome ClickhouseClient::deleteSyndb(const DeleteSyndbRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteSyndbOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteSyndbOutcome(DeleteSyndbResult(outcome.result())); + else + return DeleteSyndbOutcome(outcome.error()); +} + +void ClickhouseClient::deleteSyndbAsync(const DeleteSyndbRequest& request, const DeleteSyndbAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteSyndb(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::DeleteSyndbOutcomeCallable ClickhouseClient::deleteSyndbCallable(const DeleteSyndbRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteSyndb(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::DescribeAccountAuthorityOutcome ClickhouseClient::describeAccountAuthority(const DescribeAccountAuthorityRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAccountAuthorityOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAccountAuthorityOutcome(DescribeAccountAuthorityResult(outcome.result())); + else + return DescribeAccountAuthorityOutcome(outcome.error()); +} + +void ClickhouseClient::describeAccountAuthorityAsync(const DescribeAccountAuthorityRequest& request, const DescribeAccountAuthorityAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAccountAuthority(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::DescribeAccountAuthorityOutcomeCallable ClickhouseClient::describeAccountAuthorityCallable(const DescribeAccountAuthorityRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAccountAuthority(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::DescribeAccountsOutcome ClickhouseClient::describeAccounts(const DescribeAccountsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAccountsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAccountsOutcome(DescribeAccountsResult(outcome.result())); + else + return DescribeAccountsOutcome(outcome.error()); +} + +void ClickhouseClient::describeAccountsAsync(const DescribeAccountsRequest& request, const DescribeAccountsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAccounts(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::DescribeAccountsOutcomeCallable ClickhouseClient::describeAccountsCallable(const DescribeAccountsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAccounts(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::DescribeAllDataSourceOutcome ClickhouseClient::describeAllDataSource(const DescribeAllDataSourceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAllDataSourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAllDataSourceOutcome(DescribeAllDataSourceResult(outcome.result())); + else + return DescribeAllDataSourceOutcome(outcome.error()); +} + +void ClickhouseClient::describeAllDataSourceAsync(const DescribeAllDataSourceRequest& request, const DescribeAllDataSourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAllDataSource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::DescribeAllDataSourceOutcomeCallable ClickhouseClient::describeAllDataSourceCallable(const DescribeAllDataSourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAllDataSource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::DescribeAllDataSourcesOutcome ClickhouseClient::describeAllDataSources(const DescribeAllDataSourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAllDataSourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAllDataSourcesOutcome(DescribeAllDataSourcesResult(outcome.result())); + else + return DescribeAllDataSourcesOutcome(outcome.error()); +} + +void ClickhouseClient::describeAllDataSourcesAsync(const DescribeAllDataSourcesRequest& request, const DescribeAllDataSourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAllDataSources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::DescribeAllDataSourcesOutcomeCallable ClickhouseClient::describeAllDataSourcesCallable(const DescribeAllDataSourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAllDataSources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::DescribeBackupPolicyOutcome ClickhouseClient::describeBackupPolicy(const DescribeBackupPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeBackupPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeBackupPolicyOutcome(DescribeBackupPolicyResult(outcome.result())); + else + return DescribeBackupPolicyOutcome(outcome.error()); +} + +void ClickhouseClient::describeBackupPolicyAsync(const DescribeBackupPolicyRequest& request, const DescribeBackupPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeBackupPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::DescribeBackupPolicyOutcomeCallable ClickhouseClient::describeBackupPolicyCallable(const DescribeBackupPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeBackupPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::DescribeBackupsOutcome ClickhouseClient::describeBackups(const DescribeBackupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeBackupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeBackupsOutcome(DescribeBackupsResult(outcome.result())); + else + return DescribeBackupsOutcome(outcome.error()); +} + +void ClickhouseClient::describeBackupsAsync(const DescribeBackupsRequest& request, const DescribeBackupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeBackups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::DescribeBackupsOutcomeCallable ClickhouseClient::describeBackupsCallable(const DescribeBackupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeBackups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::DescribeColumnsOutcome ClickhouseClient::describeColumns(const DescribeColumnsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeColumnsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeColumnsOutcome(DescribeColumnsResult(outcome.result())); + else + return DescribeColumnsOutcome(outcome.error()); +} + +void ClickhouseClient::describeColumnsAsync(const DescribeColumnsRequest& request, const DescribeColumnsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeColumns(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::DescribeColumnsOutcomeCallable ClickhouseClient::describeColumnsCallable(const DescribeColumnsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeColumns(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::DescribeConfigHistoryOutcome ClickhouseClient::describeConfigHistory(const DescribeConfigHistoryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeConfigHistoryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeConfigHistoryOutcome(DescribeConfigHistoryResult(outcome.result())); + else + return DescribeConfigHistoryOutcome(outcome.error()); +} + +void ClickhouseClient::describeConfigHistoryAsync(const DescribeConfigHistoryRequest& request, const DescribeConfigHistoryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeConfigHistory(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::DescribeConfigHistoryOutcomeCallable ClickhouseClient::describeConfigHistoryCallable(const DescribeConfigHistoryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeConfigHistory(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::DescribeConfigVersionDifferenceOutcome ClickhouseClient::describeConfigVersionDifference(const DescribeConfigVersionDifferenceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeConfigVersionDifferenceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeConfigVersionDifferenceOutcome(DescribeConfigVersionDifferenceResult(outcome.result())); + else + return DescribeConfigVersionDifferenceOutcome(outcome.error()); +} + +void ClickhouseClient::describeConfigVersionDifferenceAsync(const DescribeConfigVersionDifferenceRequest& request, const DescribeConfigVersionDifferenceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeConfigVersionDifference(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::DescribeConfigVersionDifferenceOutcomeCallable ClickhouseClient::describeConfigVersionDifferenceCallable(const DescribeConfigVersionDifferenceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeConfigVersionDifference(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::DescribeDBClusterAccessWhiteListOutcome ClickhouseClient::describeDBClusterAccessWhiteList(const DescribeDBClusterAccessWhiteListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBClusterAccessWhiteListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBClusterAccessWhiteListOutcome(DescribeDBClusterAccessWhiteListResult(outcome.result())); + else + return DescribeDBClusterAccessWhiteListOutcome(outcome.error()); +} + +void ClickhouseClient::describeDBClusterAccessWhiteListAsync(const DescribeDBClusterAccessWhiteListRequest& request, const DescribeDBClusterAccessWhiteListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBClusterAccessWhiteList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::DescribeDBClusterAccessWhiteListOutcomeCallable ClickhouseClient::describeDBClusterAccessWhiteListCallable(const DescribeDBClusterAccessWhiteListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBClusterAccessWhiteList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::DescribeDBClusterAttributeOutcome ClickhouseClient::describeDBClusterAttribute(const DescribeDBClusterAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBClusterAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBClusterAttributeOutcome(DescribeDBClusterAttributeResult(outcome.result())); + else + return DescribeDBClusterAttributeOutcome(outcome.error()); +} + +void ClickhouseClient::describeDBClusterAttributeAsync(const DescribeDBClusterAttributeRequest& request, const DescribeDBClusterAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBClusterAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::DescribeDBClusterAttributeOutcomeCallable ClickhouseClient::describeDBClusterAttributeCallable(const DescribeDBClusterAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBClusterAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::DescribeDBClusterConfigOutcome ClickhouseClient::describeDBClusterConfig(const DescribeDBClusterConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBClusterConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBClusterConfigOutcome(DescribeDBClusterConfigResult(outcome.result())); + else + return DescribeDBClusterConfigOutcome(outcome.error()); +} + +void ClickhouseClient::describeDBClusterConfigAsync(const DescribeDBClusterConfigRequest& request, const DescribeDBClusterConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBClusterConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::DescribeDBClusterConfigOutcomeCallable ClickhouseClient::describeDBClusterConfigCallable(const DescribeDBClusterConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBClusterConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::DescribeDBClusterConfigInXMLOutcome ClickhouseClient::describeDBClusterConfigInXML(const DescribeDBClusterConfigInXMLRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBClusterConfigInXMLOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBClusterConfigInXMLOutcome(DescribeDBClusterConfigInXMLResult(outcome.result())); + else + return DescribeDBClusterConfigInXMLOutcome(outcome.error()); +} + +void ClickhouseClient::describeDBClusterConfigInXMLAsync(const DescribeDBClusterConfigInXMLRequest& request, const DescribeDBClusterConfigInXMLAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBClusterConfigInXML(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::DescribeDBClusterConfigInXMLOutcomeCallable ClickhouseClient::describeDBClusterConfigInXMLCallable(const DescribeDBClusterConfigInXMLRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBClusterConfigInXML(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::DescribeDBClusterNetInfoItemsOutcome ClickhouseClient::describeDBClusterNetInfoItems(const DescribeDBClusterNetInfoItemsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBClusterNetInfoItemsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBClusterNetInfoItemsOutcome(DescribeDBClusterNetInfoItemsResult(outcome.result())); + else + return DescribeDBClusterNetInfoItemsOutcome(outcome.error()); +} + +void ClickhouseClient::describeDBClusterNetInfoItemsAsync(const DescribeDBClusterNetInfoItemsRequest& request, const DescribeDBClusterNetInfoItemsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBClusterNetInfoItems(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::DescribeDBClusterNetInfoItemsOutcomeCallable ClickhouseClient::describeDBClusterNetInfoItemsCallable(const DescribeDBClusterNetInfoItemsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBClusterNetInfoItems(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::DescribeDBClusterPerformanceOutcome ClickhouseClient::describeDBClusterPerformance(const DescribeDBClusterPerformanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBClusterPerformanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBClusterPerformanceOutcome(DescribeDBClusterPerformanceResult(outcome.result())); + else + return DescribeDBClusterPerformanceOutcome(outcome.error()); +} + +void ClickhouseClient::describeDBClusterPerformanceAsync(const DescribeDBClusterPerformanceRequest& request, const DescribeDBClusterPerformanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBClusterPerformance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::DescribeDBClusterPerformanceOutcomeCallable ClickhouseClient::describeDBClusterPerformanceCallable(const DescribeDBClusterPerformanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBClusterPerformance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::DescribeDBClustersOutcome ClickhouseClient::describeDBClusters(const DescribeDBClustersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBClustersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBClustersOutcome(DescribeDBClustersResult(outcome.result())); + else + return DescribeDBClustersOutcome(outcome.error()); +} + +void ClickhouseClient::describeDBClustersAsync(const DescribeDBClustersRequest& request, const DescribeDBClustersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBClusters(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::DescribeDBClustersOutcomeCallable ClickhouseClient::describeDBClustersCallable(const DescribeDBClustersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBClusters(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::DescribeDBConfigOutcome ClickhouseClient::describeDBConfig(const DescribeDBConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBConfigOutcome(DescribeDBConfigResult(outcome.result())); + else + return DescribeDBConfigOutcome(outcome.error()); +} + +void ClickhouseClient::describeDBConfigAsync(const DescribeDBConfigRequest& request, const DescribeDBConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::DescribeDBConfigOutcomeCallable ClickhouseClient::describeDBConfigCallable(const DescribeDBConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::DescribeOSSStorageOutcome ClickhouseClient::describeOSSStorage(const DescribeOSSStorageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeOSSStorageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeOSSStorageOutcome(DescribeOSSStorageResult(outcome.result())); + else + return DescribeOSSStorageOutcome(outcome.error()); +} + +void ClickhouseClient::describeOSSStorageAsync(const DescribeOSSStorageRequest& request, const DescribeOSSStorageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeOSSStorage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::DescribeOSSStorageOutcomeCallable ClickhouseClient::describeOSSStorageCallable(const DescribeOSSStorageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeOSSStorage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::DescribeProcessListOutcome ClickhouseClient::describeProcessList(const DescribeProcessListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeProcessListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeProcessListOutcome(DescribeProcessListResult(outcome.result())); + else + return DescribeProcessListOutcome(outcome.error()); +} + +void ClickhouseClient::describeProcessListAsync(const DescribeProcessListRequest& request, const DescribeProcessListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeProcessList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::DescribeProcessListOutcomeCallable ClickhouseClient::describeProcessListCallable(const DescribeProcessListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeProcessList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::DescribeRegionsOutcome ClickhouseClient::describeRegions(const DescribeRegionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRegionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRegionsOutcome(DescribeRegionsResult(outcome.result())); + else + return DescribeRegionsOutcome(outcome.error()); +} + +void ClickhouseClient::describeRegionsAsync(const DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRegions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::DescribeRegionsOutcomeCallable ClickhouseClient::describeRegionsCallable(const DescribeRegionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRegions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::DescribeSchemasOutcome ClickhouseClient::describeSchemas(const DescribeSchemasRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSchemasOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSchemasOutcome(DescribeSchemasResult(outcome.result())); + else + return DescribeSchemasOutcome(outcome.error()); +} + +void ClickhouseClient::describeSchemasAsync(const DescribeSchemasRequest& request, const DescribeSchemasAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSchemas(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::DescribeSchemasOutcomeCallable ClickhouseClient::describeSchemasCallable(const DescribeSchemasRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSchemas(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::DescribeSlowLogRecordsOutcome ClickhouseClient::describeSlowLogRecords(const DescribeSlowLogRecordsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSlowLogRecordsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSlowLogRecordsOutcome(DescribeSlowLogRecordsResult(outcome.result())); + else + return DescribeSlowLogRecordsOutcome(outcome.error()); +} + +void ClickhouseClient::describeSlowLogRecordsAsync(const DescribeSlowLogRecordsRequest& request, const DescribeSlowLogRecordsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSlowLogRecords(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::DescribeSlowLogRecordsOutcomeCallable ClickhouseClient::describeSlowLogRecordsCallable(const DescribeSlowLogRecordsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSlowLogRecords(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::DescribeSynDbTablesOutcome ClickhouseClient::describeSynDbTables(const DescribeSynDbTablesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSynDbTablesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSynDbTablesOutcome(DescribeSynDbTablesResult(outcome.result())); + else + return DescribeSynDbTablesOutcome(outcome.error()); +} + +void ClickhouseClient::describeSynDbTablesAsync(const DescribeSynDbTablesRequest& request, const DescribeSynDbTablesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSynDbTables(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::DescribeSynDbTablesOutcomeCallable ClickhouseClient::describeSynDbTablesCallable(const DescribeSynDbTablesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSynDbTables(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::DescribeSynDbsOutcome ClickhouseClient::describeSynDbs(const DescribeSynDbsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSynDbsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSynDbsOutcome(DescribeSynDbsResult(outcome.result())); + else + return DescribeSynDbsOutcome(outcome.error()); +} + +void ClickhouseClient::describeSynDbsAsync(const DescribeSynDbsRequest& request, const DescribeSynDbsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSynDbs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::DescribeSynDbsOutcomeCallable ClickhouseClient::describeSynDbsCallable(const DescribeSynDbsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSynDbs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::DescribeTablesOutcome ClickhouseClient::describeTables(const DescribeTablesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeTablesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeTablesOutcome(DescribeTablesResult(outcome.result())); + else + return DescribeTablesOutcome(outcome.error()); +} + +void ClickhouseClient::describeTablesAsync(const DescribeTablesRequest& request, const DescribeTablesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeTables(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::DescribeTablesOutcomeCallable ClickhouseClient::describeTablesCallable(const DescribeTablesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeTables(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::DescribeTransferHistoryOutcome ClickhouseClient::describeTransferHistory(const DescribeTransferHistoryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeTransferHistoryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeTransferHistoryOutcome(DescribeTransferHistoryResult(outcome.result())); + else + return DescribeTransferHistoryOutcome(outcome.error()); +} + +void ClickhouseClient::describeTransferHistoryAsync(const DescribeTransferHistoryRequest& request, const DescribeTransferHistoryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeTransferHistory(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::DescribeTransferHistoryOutcomeCallable ClickhouseClient::describeTransferHistoryCallable(const DescribeTransferHistoryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeTransferHistory(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::KillProcessOutcome ClickhouseClient::killProcess(const KillProcessRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return KillProcessOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return KillProcessOutcome(KillProcessResult(outcome.result())); + else + return KillProcessOutcome(outcome.error()); +} + +void ClickhouseClient::killProcessAsync(const KillProcessRequest& request, const KillProcessAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, killProcess(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::KillProcessOutcomeCallable ClickhouseClient::killProcessCallable(const KillProcessRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->killProcess(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::ModifyAccountAuthorityOutcome ClickhouseClient::modifyAccountAuthority(const ModifyAccountAuthorityRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyAccountAuthorityOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyAccountAuthorityOutcome(ModifyAccountAuthorityResult(outcome.result())); + else + return ModifyAccountAuthorityOutcome(outcome.error()); +} + +void ClickhouseClient::modifyAccountAuthorityAsync(const ModifyAccountAuthorityRequest& request, const ModifyAccountAuthorityAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyAccountAuthority(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::ModifyAccountAuthorityOutcomeCallable ClickhouseClient::modifyAccountAuthorityCallable(const ModifyAccountAuthorityRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyAccountAuthority(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::ModifyAccountDescriptionOutcome ClickhouseClient::modifyAccountDescription(const ModifyAccountDescriptionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyAccountDescriptionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyAccountDescriptionOutcome(ModifyAccountDescriptionResult(outcome.result())); + else + return ModifyAccountDescriptionOutcome(outcome.error()); +} + +void ClickhouseClient::modifyAccountDescriptionAsync(const ModifyAccountDescriptionRequest& request, const ModifyAccountDescriptionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyAccountDescription(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::ModifyAccountDescriptionOutcomeCallable ClickhouseClient::modifyAccountDescriptionCallable(const ModifyAccountDescriptionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyAccountDescription(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::ModifyBackupPolicyOutcome ClickhouseClient::modifyBackupPolicy(const ModifyBackupPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyBackupPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyBackupPolicyOutcome(ModifyBackupPolicyResult(outcome.result())); + else + return ModifyBackupPolicyOutcome(outcome.error()); +} + +void ClickhouseClient::modifyBackupPolicyAsync(const ModifyBackupPolicyRequest& request, const ModifyBackupPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyBackupPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::ModifyBackupPolicyOutcomeCallable ClickhouseClient::modifyBackupPolicyCallable(const ModifyBackupPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyBackupPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::ModifyDBClusterOutcome ClickhouseClient::modifyDBCluster(const ModifyDBClusterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBClusterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBClusterOutcome(ModifyDBClusterResult(outcome.result())); + else + return ModifyDBClusterOutcome(outcome.error()); +} + +void ClickhouseClient::modifyDBClusterAsync(const ModifyDBClusterRequest& request, const ModifyDBClusterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBCluster(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::ModifyDBClusterOutcomeCallable ClickhouseClient::modifyDBClusterCallable(const ModifyDBClusterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBCluster(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::ModifyDBClusterAccessWhiteListOutcome ClickhouseClient::modifyDBClusterAccessWhiteList(const ModifyDBClusterAccessWhiteListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBClusterAccessWhiteListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBClusterAccessWhiteListOutcome(ModifyDBClusterAccessWhiteListResult(outcome.result())); + else + return ModifyDBClusterAccessWhiteListOutcome(outcome.error()); +} + +void ClickhouseClient::modifyDBClusterAccessWhiteListAsync(const ModifyDBClusterAccessWhiteListRequest& request, const ModifyDBClusterAccessWhiteListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBClusterAccessWhiteList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::ModifyDBClusterAccessWhiteListOutcomeCallable ClickhouseClient::modifyDBClusterAccessWhiteListCallable(const ModifyDBClusterAccessWhiteListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBClusterAccessWhiteList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::ModifyDBClusterConfigOutcome ClickhouseClient::modifyDBClusterConfig(const ModifyDBClusterConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBClusterConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBClusterConfigOutcome(ModifyDBClusterConfigResult(outcome.result())); + else + return ModifyDBClusterConfigOutcome(outcome.error()); +} + +void ClickhouseClient::modifyDBClusterConfigAsync(const ModifyDBClusterConfigRequest& request, const ModifyDBClusterConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBClusterConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::ModifyDBClusterConfigOutcomeCallable ClickhouseClient::modifyDBClusterConfigCallable(const ModifyDBClusterConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBClusterConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::ModifyDBClusterConfigInXMLOutcome ClickhouseClient::modifyDBClusterConfigInXML(const ModifyDBClusterConfigInXMLRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBClusterConfigInXMLOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBClusterConfigInXMLOutcome(ModifyDBClusterConfigInXMLResult(outcome.result())); + else + return ModifyDBClusterConfigInXMLOutcome(outcome.error()); +} + +void ClickhouseClient::modifyDBClusterConfigInXMLAsync(const ModifyDBClusterConfigInXMLRequest& request, const ModifyDBClusterConfigInXMLAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBClusterConfigInXML(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::ModifyDBClusterConfigInXMLOutcomeCallable ClickhouseClient::modifyDBClusterConfigInXMLCallable(const ModifyDBClusterConfigInXMLRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBClusterConfigInXML(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::ModifyDBClusterDescriptionOutcome ClickhouseClient::modifyDBClusterDescription(const ModifyDBClusterDescriptionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBClusterDescriptionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBClusterDescriptionOutcome(ModifyDBClusterDescriptionResult(outcome.result())); + else + return ModifyDBClusterDescriptionOutcome(outcome.error()); +} + +void ClickhouseClient::modifyDBClusterDescriptionAsync(const ModifyDBClusterDescriptionRequest& request, const ModifyDBClusterDescriptionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBClusterDescription(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::ModifyDBClusterDescriptionOutcomeCallable ClickhouseClient::modifyDBClusterDescriptionCallable(const ModifyDBClusterDescriptionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBClusterDescription(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::ModifyDBClusterMaintainTimeOutcome ClickhouseClient::modifyDBClusterMaintainTime(const ModifyDBClusterMaintainTimeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBClusterMaintainTimeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBClusterMaintainTimeOutcome(ModifyDBClusterMaintainTimeResult(outcome.result())); + else + return ModifyDBClusterMaintainTimeOutcome(outcome.error()); +} + +void ClickhouseClient::modifyDBClusterMaintainTimeAsync(const ModifyDBClusterMaintainTimeRequest& request, const ModifyDBClusterMaintainTimeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBClusterMaintainTime(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::ModifyDBClusterMaintainTimeOutcomeCallable ClickhouseClient::modifyDBClusterMaintainTimeCallable(const ModifyDBClusterMaintainTimeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBClusterMaintainTime(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::ModifyDBConfigOutcome ClickhouseClient::modifyDBConfig(const ModifyDBConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBConfigOutcome(ModifyDBConfigResult(outcome.result())); + else + return ModifyDBConfigOutcome(outcome.error()); +} + +void ClickhouseClient::modifyDBConfigAsync(const ModifyDBConfigRequest& request, const ModifyDBConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::ModifyDBConfigOutcomeCallable ClickhouseClient::modifyDBConfigCallable(const ModifyDBConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::ModifyMinorVersionGreadeTypeOutcome ClickhouseClient::modifyMinorVersionGreadeType(const ModifyMinorVersionGreadeTypeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyMinorVersionGreadeTypeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyMinorVersionGreadeTypeOutcome(ModifyMinorVersionGreadeTypeResult(outcome.result())); + else + return ModifyMinorVersionGreadeTypeOutcome(outcome.error()); +} + +void ClickhouseClient::modifyMinorVersionGreadeTypeAsync(const ModifyMinorVersionGreadeTypeRequest& request, const ModifyMinorVersionGreadeTypeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyMinorVersionGreadeType(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::ModifyMinorVersionGreadeTypeOutcomeCallable ClickhouseClient::modifyMinorVersionGreadeTypeCallable(const ModifyMinorVersionGreadeTypeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyMinorVersionGreadeType(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::ModifyRDSToClickhouseDbOutcome ClickhouseClient::modifyRDSToClickhouseDb(const ModifyRDSToClickhouseDbRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyRDSToClickhouseDbOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyRDSToClickhouseDbOutcome(ModifyRDSToClickhouseDbResult(outcome.result())); + else + return ModifyRDSToClickhouseDbOutcome(outcome.error()); +} + +void ClickhouseClient::modifyRDSToClickhouseDbAsync(const ModifyRDSToClickhouseDbRequest& request, const ModifyRDSToClickhouseDbAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyRDSToClickhouseDb(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::ModifyRDSToClickhouseDbOutcomeCallable ClickhouseClient::modifyRDSToClickhouseDbCallable(const ModifyRDSToClickhouseDbRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyRDSToClickhouseDb(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::ReleaseClusterPublicConnectionOutcome ClickhouseClient::releaseClusterPublicConnection(const ReleaseClusterPublicConnectionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ReleaseClusterPublicConnectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ReleaseClusterPublicConnectionOutcome(ReleaseClusterPublicConnectionResult(outcome.result())); + else + return ReleaseClusterPublicConnectionOutcome(outcome.error()); +} + +void ClickhouseClient::releaseClusterPublicConnectionAsync(const ReleaseClusterPublicConnectionRequest& request, const ReleaseClusterPublicConnectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, releaseClusterPublicConnection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::ReleaseClusterPublicConnectionOutcomeCallable ClickhouseClient::releaseClusterPublicConnectionCallable(const ReleaseClusterPublicConnectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->releaseClusterPublicConnection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::ResetAccountPasswordOutcome ClickhouseClient::resetAccountPassword(const ResetAccountPasswordRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ResetAccountPasswordOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ResetAccountPasswordOutcome(ResetAccountPasswordResult(outcome.result())); + else + return ResetAccountPasswordOutcome(outcome.error()); +} + +void ClickhouseClient::resetAccountPasswordAsync(const ResetAccountPasswordRequest& request, const ResetAccountPasswordAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, resetAccountPassword(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::ResetAccountPasswordOutcomeCallable ClickhouseClient::resetAccountPasswordCallable(const ResetAccountPasswordRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->resetAccountPassword(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::RestartInstanceOutcome ClickhouseClient::restartInstance(const RestartInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RestartInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RestartInstanceOutcome(RestartInstanceResult(outcome.result())); + else + return RestartInstanceOutcome(outcome.error()); +} + +void ClickhouseClient::restartInstanceAsync(const RestartInstanceRequest& request, const RestartInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, restartInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::RestartInstanceOutcomeCallable ClickhouseClient::restartInstanceCallable(const RestartInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->restartInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::TransferVersionOutcome ClickhouseClient::transferVersion(const TransferVersionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return TransferVersionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TransferVersionOutcome(TransferVersionResult(outcome.result())); + else + return TransferVersionOutcome(outcome.error()); +} + +void ClickhouseClient::transferVersionAsync(const TransferVersionRequest& request, const TransferVersionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, transferVersion(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::TransferVersionOutcomeCallable ClickhouseClient::transferVersionCallable(const TransferVersionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->transferVersion(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ClickhouseClient::UpgradeMinorVersionOutcome ClickhouseClient::upgradeMinorVersion(const UpgradeMinorVersionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpgradeMinorVersionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpgradeMinorVersionOutcome(UpgradeMinorVersionResult(outcome.result())); + else + return UpgradeMinorVersionOutcome(outcome.error()); +} + +void ClickhouseClient::upgradeMinorVersionAsync(const UpgradeMinorVersionRequest& request, const UpgradeMinorVersionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, upgradeMinorVersion(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ClickhouseClient::UpgradeMinorVersionOutcomeCallable ClickhouseClient::upgradeMinorVersionCallable(const UpgradeMinorVersionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->upgradeMinorVersion(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/clickhouse/src/model/AllocateClusterPublicConnectionRequest.cc b/clickhouse/src/model/AllocateClusterPublicConnectionRequest.cc new file mode 100644 index 000000000..b8e39a9ff --- /dev/null +++ b/clickhouse/src/model/AllocateClusterPublicConnectionRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Clickhouse::Model::AllocateClusterPublicConnectionRequest; + +AllocateClusterPublicConnectionRequest::AllocateClusterPublicConnectionRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "AllocateClusterPublicConnection") { + setMethod(HttpRequest::Method::Post); +} + +AllocateClusterPublicConnectionRequest::~AllocateClusterPublicConnectionRequest() {} + +long AllocateClusterPublicConnectionRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void AllocateClusterPublicConnectionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string AllocateClusterPublicConnectionRequest::getConnectionStringPrefix() const { + return connectionStringPrefix_; +} + +void AllocateClusterPublicConnectionRequest::setConnectionStringPrefix(const std::string &connectionStringPrefix) { + connectionStringPrefix_ = connectionStringPrefix; + setParameter(std::string("ConnectionStringPrefix"), connectionStringPrefix); +} + +std::string AllocateClusterPublicConnectionRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void AllocateClusterPublicConnectionRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string AllocateClusterPublicConnectionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void AllocateClusterPublicConnectionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string AllocateClusterPublicConnectionRequest::getDBClusterId() const { + return dBClusterId_; +} + +void AllocateClusterPublicConnectionRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string AllocateClusterPublicConnectionRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void AllocateClusterPublicConnectionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long AllocateClusterPublicConnectionRequest::getOwnerId() const { + return ownerId_; +} + +void AllocateClusterPublicConnectionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/clickhouse/src/model/AllocateClusterPublicConnectionResult.cc b/clickhouse/src/model/AllocateClusterPublicConnectionResult.cc new file mode 100644 index 000000000..783efde49 --- /dev/null +++ b/clickhouse/src/model/AllocateClusterPublicConnectionResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +AllocateClusterPublicConnectionResult::AllocateClusterPublicConnectionResult() : + ServiceResult() +{} + +AllocateClusterPublicConnectionResult::AllocateClusterPublicConnectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AllocateClusterPublicConnectionResult::~AllocateClusterPublicConnectionResult() +{} + +void AllocateClusterPublicConnectionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/clickhouse/src/model/CheckClickhouseToRDSRequest.cc b/clickhouse/src/model/CheckClickhouseToRDSRequest.cc new file mode 100644 index 000000000..cd668b126 --- /dev/null +++ b/clickhouse/src/model/CheckClickhouseToRDSRequest.cc @@ -0,0 +1,162 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Clickhouse::Model::CheckClickhouseToRDSRequest; + +CheckClickhouseToRDSRequest::CheckClickhouseToRDSRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "CheckClickhouseToRDS") { + setMethod(HttpRequest::Method::Post); +} + +CheckClickhouseToRDSRequest::~CheckClickhouseToRDSRequest() {} + +long CheckClickhouseToRDSRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CheckClickhouseToRDSRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string CheckClickhouseToRDSRequest::getRdsVpcId() const { + return rdsVpcId_; +} + +void CheckClickhouseToRDSRequest::setRdsVpcId(const std::string &rdsVpcId) { + rdsVpcId_ = rdsVpcId; + setParameter(std::string("RdsVpcId"), rdsVpcId); +} + +std::string CheckClickhouseToRDSRequest::getCkPassword() const { + return ckPassword_; +} + +void CheckClickhouseToRDSRequest::setCkPassword(const std::string &ckPassword) { + ckPassword_ = ckPassword; + setParameter(std::string("CkPassword"), ckPassword); +} + +std::string CheckClickhouseToRDSRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CheckClickhouseToRDSRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string CheckClickhouseToRDSRequest::getRdsPassword() const { + return rdsPassword_; +} + +void CheckClickhouseToRDSRequest::setRdsPassword(const std::string &rdsPassword) { + rdsPassword_ = rdsPassword; + setParameter(std::string("RdsPassword"), rdsPassword); +} + +std::string CheckClickhouseToRDSRequest::getCkUserName() const { + return ckUserName_; +} + +void CheckClickhouseToRDSRequest::setCkUserName(const std::string &ckUserName) { + ckUserName_ = ckUserName; + setParameter(std::string("CkUserName"), ckUserName); +} + +std::string CheckClickhouseToRDSRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CheckClickhouseToRDSRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CheckClickhouseToRDSRequest::getDbClusterId() const { + return dbClusterId_; +} + +void CheckClickhouseToRDSRequest::setDbClusterId(const std::string &dbClusterId) { + dbClusterId_ = dbClusterId; + setParameter(std::string("DbClusterId"), dbClusterId); +} + +std::string CheckClickhouseToRDSRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CheckClickhouseToRDSRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string CheckClickhouseToRDSRequest::getRdsId() const { + return rdsId_; +} + +void CheckClickhouseToRDSRequest::setRdsId(const std::string &rdsId) { + rdsId_ = rdsId; + setParameter(std::string("RdsId"), rdsId); +} + +long CheckClickhouseToRDSRequest::getOwnerId() const { + return ownerId_; +} + +void CheckClickhouseToRDSRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +long CheckClickhouseToRDSRequest::getClickhousePort() const { + return clickhousePort_; +} + +void CheckClickhouseToRDSRequest::setClickhousePort(long clickhousePort) { + clickhousePort_ = clickhousePort; + setParameter(std::string("ClickhousePort"), std::to_string(clickhousePort)); +} + +long CheckClickhouseToRDSRequest::getRdsPort() const { + return rdsPort_; +} + +void CheckClickhouseToRDSRequest::setRdsPort(long rdsPort) { + rdsPort_ = rdsPort; + setParameter(std::string("RdsPort"), std::to_string(rdsPort)); +} + +std::string CheckClickhouseToRDSRequest::getRdsVpcUrl() const { + return rdsVpcUrl_; +} + +void CheckClickhouseToRDSRequest::setRdsVpcUrl(const std::string &rdsVpcUrl) { + rdsVpcUrl_ = rdsVpcUrl; + setParameter(std::string("RdsVpcUrl"), rdsVpcUrl); +} + +std::string CheckClickhouseToRDSRequest::getRdsUserName() const { + return rdsUserName_; +} + +void CheckClickhouseToRDSRequest::setRdsUserName(const std::string &rdsUserName) { + rdsUserName_ = rdsUserName; + setParameter(std::string("RdsUserName"), rdsUserName); +} + diff --git a/clickhouse/src/model/CheckClickhouseToRDSResult.cc b/clickhouse/src/model/CheckClickhouseToRDSResult.cc new file mode 100644 index 000000000..12e5d2489 --- /dev/null +++ b/clickhouse/src/model/CheckClickhouseToRDSResult.cc @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +CheckClickhouseToRDSResult::CheckClickhouseToRDSResult() : + ServiceResult() +{} + +CheckClickhouseToRDSResult::CheckClickhouseToRDSResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CheckClickhouseToRDSResult::~CheckClickhouseToRDSResult() +{} + +void CheckClickhouseToRDSResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Status"].isNull()) + status_ = value["Status"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +bool CheckClickhouseToRDSResult::getStatus()const +{ + return status_; +} + +std::string CheckClickhouseToRDSResult::getErrorCode()const +{ + return errorCode_; +} + diff --git a/clickhouse/src/model/CheckModifyConfigNeedRestartRequest.cc b/clickhouse/src/model/CheckModifyConfigNeedRestartRequest.cc new file mode 100644 index 000000000..3d304e8ec --- /dev/null +++ b/clickhouse/src/model/CheckModifyConfigNeedRestartRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Clickhouse::Model::CheckModifyConfigNeedRestartRequest; + +CheckModifyConfigNeedRestartRequest::CheckModifyConfigNeedRestartRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "CheckModifyConfigNeedRestart") { + setMethod(HttpRequest::Method::Post); +} + +CheckModifyConfigNeedRestartRequest::~CheckModifyConfigNeedRestartRequest() {} + +std::string CheckModifyConfigNeedRestartRequest::getDBClusterId() const { + return dBClusterId_; +} + +void CheckModifyConfigNeedRestartRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string CheckModifyConfigNeedRestartRequest::getConfig() const { + return config_; +} + +void CheckModifyConfigNeedRestartRequest::setConfig(const std::string &config) { + config_ = config; + setParameter(std::string("Config"), config); +} + diff --git a/clickhouse/src/model/CheckModifyConfigNeedRestartResult.cc b/clickhouse/src/model/CheckModifyConfigNeedRestartResult.cc new file mode 100644 index 000000000..ad78b3968 --- /dev/null +++ b/clickhouse/src/model/CheckModifyConfigNeedRestartResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +CheckModifyConfigNeedRestartResult::CheckModifyConfigNeedRestartResult() : + ServiceResult() +{} + +CheckModifyConfigNeedRestartResult::CheckModifyConfigNeedRestartResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CheckModifyConfigNeedRestartResult::~CheckModifyConfigNeedRestartResult() +{} + +void CheckModifyConfigNeedRestartResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["NeedRestart"].isNull()) + needRestart_ = value["NeedRestart"].asString() == "true"; + +} + +bool CheckModifyConfigNeedRestartResult::getNeedRestart()const +{ + return needRestart_; +} + diff --git a/clickhouse/src/model/CheckMonitorAlertRequest.cc b/clickhouse/src/model/CheckMonitorAlertRequest.cc new file mode 100644 index 000000000..da350c81c --- /dev/null +++ b/clickhouse/src/model/CheckMonitorAlertRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Clickhouse::Model::CheckMonitorAlertRequest; + +CheckMonitorAlertRequest::CheckMonitorAlertRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "CheckMonitorAlert") { + setMethod(HttpRequest::Method::Post); +} + +CheckMonitorAlertRequest::~CheckMonitorAlertRequest() {} + +long CheckMonitorAlertRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CheckMonitorAlertRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string CheckMonitorAlertRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CheckMonitorAlertRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string CheckMonitorAlertRequest::getRegionId() const { + return regionId_; +} + +void CheckMonitorAlertRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CheckMonitorAlertRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CheckMonitorAlertRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CheckMonitorAlertRequest::getDBClusterId() const { + return dBClusterId_; +} + +void CheckMonitorAlertRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string CheckMonitorAlertRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CheckMonitorAlertRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long CheckMonitorAlertRequest::getOwnerId() const { + return ownerId_; +} + +void CheckMonitorAlertRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/clickhouse/src/model/CheckMonitorAlertResult.cc b/clickhouse/src/model/CheckMonitorAlertResult.cc new file mode 100644 index 000000000..a311c4f69 --- /dev/null +++ b/clickhouse/src/model/CheckMonitorAlertResult.cc @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +CheckMonitorAlertResult::CheckMonitorAlertResult() : + ServiceResult() +{} + +CheckMonitorAlertResult::CheckMonitorAlertResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CheckMonitorAlertResult::~CheckMonitorAlertResult() +{} + +void CheckMonitorAlertResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["State"].isNull()) + state_ = value["State"].asString(); + if(!value["Parameter"].isNull()) + _parameter_ = value["Parameter"].asString(); + +} + +std::string CheckMonitorAlertResult::getState()const +{ + return state_; +} + +std::string CheckMonitorAlertResult::get_Parameter()const +{ + return _parameter_; +} + diff --git a/clickhouse/src/model/CheckScaleOutBalancedRequest.cc b/clickhouse/src/model/CheckScaleOutBalancedRequest.cc new file mode 100644 index 000000000..28f651839 --- /dev/null +++ b/clickhouse/src/model/CheckScaleOutBalancedRequest.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Clickhouse::Model::CheckScaleOutBalancedRequest; + +CheckScaleOutBalancedRequest::CheckScaleOutBalancedRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "CheckScaleOutBalanced") { + setMethod(HttpRequest::Method::Post); +} + +CheckScaleOutBalancedRequest::~CheckScaleOutBalancedRequest() {} + +long CheckScaleOutBalancedRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CheckScaleOutBalancedRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +int CheckScaleOutBalancedRequest::getPageNumber() const { + return pageNumber_; +} + +void CheckScaleOutBalancedRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string CheckScaleOutBalancedRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CheckScaleOutBalancedRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string CheckScaleOutBalancedRequest::getRegionId() const { + return regionId_; +} + +void CheckScaleOutBalancedRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int CheckScaleOutBalancedRequest::getPageSize() const { + return pageSize_; +} + +void CheckScaleOutBalancedRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string CheckScaleOutBalancedRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CheckScaleOutBalancedRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CheckScaleOutBalancedRequest::getDBClusterId() const { + return dBClusterId_; +} + +void CheckScaleOutBalancedRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string CheckScaleOutBalancedRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CheckScaleOutBalancedRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long CheckScaleOutBalancedRequest::getOwnerId() const { + return ownerId_; +} + +void CheckScaleOutBalancedRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/clickhouse/src/model/CheckScaleOutBalancedResult.cc b/clickhouse/src/model/CheckScaleOutBalancedResult.cc new file mode 100644 index 000000000..52aa93e51 --- /dev/null +++ b/clickhouse/src/model/CheckScaleOutBalancedResult.cc @@ -0,0 +1,98 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +CheckScaleOutBalancedResult::CheckScaleOutBalancedResult() : + ServiceResult() +{} + +CheckScaleOutBalancedResult::CheckScaleOutBalancedResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CheckScaleOutBalancedResult::~CheckScaleOutBalancedResult() +{} + +void CheckScaleOutBalancedResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTableDetailsNode = value["TableDetails"]["TableDetail"]; + for (auto valueTableDetailsTableDetail : allTableDetailsNode) + { + TableDetail tableDetailsObject; + if(!valueTableDetailsTableDetail["TableName"].isNull()) + tableDetailsObject.tableName = valueTableDetailsTableDetail["TableName"].asString(); + if(!valueTableDetailsTableDetail["Cluster"].isNull()) + tableDetailsObject.cluster = valueTableDetailsTableDetail["Cluster"].asString(); + if(!valueTableDetailsTableDetail["Database"].isNull()) + tableDetailsObject.database = valueTableDetailsTableDetail["Database"].asString(); + if(!valueTableDetailsTableDetail["Detail"].isNull()) + tableDetailsObject.detail = std::stoi(valueTableDetailsTableDetail["Detail"].asString()); + tableDetails_.push_back(tableDetailsObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["CheckCode"].isNull()) + checkCode_ = value["CheckCode"].asString(); + if(!value["TimeDuration"].isNull()) + timeDuration_ = value["TimeDuration"].asString(); + +} + +std::vector CheckScaleOutBalancedResult::getTableDetails()const +{ + return tableDetails_; +} + +int CheckScaleOutBalancedResult::getTotalCount()const +{ + return totalCount_; +} + +int CheckScaleOutBalancedResult::getPageSize()const +{ + return pageSize_; +} + +int CheckScaleOutBalancedResult::getPageNumber()const +{ + return pageNumber_; +} + +std::string CheckScaleOutBalancedResult::getCheckCode()const +{ + return checkCode_; +} + +std::string CheckScaleOutBalancedResult::getTimeDuration()const +{ + return timeDuration_; +} + diff --git a/clickhouse/src/model/CheckServiceLinkedRoleRequest.cc b/clickhouse/src/model/CheckServiceLinkedRoleRequest.cc new file mode 100644 index 000000000..f25ac0576 --- /dev/null +++ b/clickhouse/src/model/CheckServiceLinkedRoleRequest.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 + +using AlibabaCloud::Clickhouse::Model::CheckServiceLinkedRoleRequest; + +CheckServiceLinkedRoleRequest::CheckServiceLinkedRoleRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "CheckServiceLinkedRole") { + setMethod(HttpRequest::Method::Post); +} + +CheckServiceLinkedRoleRequest::~CheckServiceLinkedRoleRequest() {} + +long CheckServiceLinkedRoleRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CheckServiceLinkedRoleRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string CheckServiceLinkedRoleRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CheckServiceLinkedRoleRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string CheckServiceLinkedRoleRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CheckServiceLinkedRoleRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CheckServiceLinkedRoleRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CheckServiceLinkedRoleRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long CheckServiceLinkedRoleRequest::getOwnerId() const { + return ownerId_; +} + +void CheckServiceLinkedRoleRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/clickhouse/src/model/CheckServiceLinkedRoleResult.cc b/clickhouse/src/model/CheckServiceLinkedRoleResult.cc new file mode 100644 index 000000000..8d2c8dddf --- /dev/null +++ b/clickhouse/src/model/CheckServiceLinkedRoleResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +CheckServiceLinkedRoleResult::CheckServiceLinkedRoleResult() : + ServiceResult() +{} + +CheckServiceLinkedRoleResult::CheckServiceLinkedRoleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CheckServiceLinkedRoleResult::~CheckServiceLinkedRoleResult() +{} + +void CheckServiceLinkedRoleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["HasServiceLinkedRole"].isNull()) + hasServiceLinkedRole_ = value["HasServiceLinkedRole"].asString() == "true"; + +} + +bool CheckServiceLinkedRoleResult::getHasServiceLinkedRole()const +{ + return hasServiceLinkedRole_; +} + diff --git a/clickhouse/src/model/CreateAccountAndAuthorityRequest.cc b/clickhouse/src/model/CreateAccountAndAuthorityRequest.cc new file mode 100644 index 000000000..8c160d838 --- /dev/null +++ b/clickhouse/src/model/CreateAccountAndAuthorityRequest.cc @@ -0,0 +1,171 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Clickhouse::Model::CreateAccountAndAuthorityRequest; + +CreateAccountAndAuthorityRequest::CreateAccountAndAuthorityRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "CreateAccountAndAuthority") { + setMethod(HttpRequest::Method::Post); +} + +CreateAccountAndAuthorityRequest::~CreateAccountAndAuthorityRequest() {} + +long CreateAccountAndAuthorityRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CreateAccountAndAuthorityRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string CreateAccountAndAuthorityRequest::getTotalDictionaries() const { + return totalDictionaries_; +} + +void CreateAccountAndAuthorityRequest::setTotalDictionaries(const std::string &totalDictionaries) { + totalDictionaries_ = totalDictionaries; + setParameter(std::string("TotalDictionaries"), totalDictionaries); +} + +std::string CreateAccountAndAuthorityRequest::getAccountDescription() const { + return accountDescription_; +} + +void CreateAccountAndAuthorityRequest::setAccountDescription(const std::string &accountDescription) { + accountDescription_ = accountDescription; + setParameter(std::string("AccountDescription"), accountDescription); +} + +std::string CreateAccountAndAuthorityRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CreateAccountAndAuthorityRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string CreateAccountAndAuthorityRequest::getAccountName() const { + return accountName_; +} + +void CreateAccountAndAuthorityRequest::setAccountName(const std::string &accountName) { + accountName_ = accountName; + setParameter(std::string("AccountName"), accountName); +} + +std::string CreateAccountAndAuthorityRequest::getDmlAuthority() const { + return dmlAuthority_; +} + +void CreateAccountAndAuthorityRequest::setDmlAuthority(const std::string &dmlAuthority) { + dmlAuthority_ = dmlAuthority; + setParameter(std::string("DmlAuthority"), dmlAuthority); +} + +std::string CreateAccountAndAuthorityRequest::getRegionId() const { + return regionId_; +} + +void CreateAccountAndAuthorityRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CreateAccountAndAuthorityRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CreateAccountAndAuthorityRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CreateAccountAndAuthorityRequest::getDBClusterId() const { + return dBClusterId_; +} + +void CreateAccountAndAuthorityRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string CreateAccountAndAuthorityRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CreateAccountAndAuthorityRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string CreateAccountAndAuthorityRequest::getAllowDatabases() const { + return allowDatabases_; +} + +void CreateAccountAndAuthorityRequest::setAllowDatabases(const std::string &allowDatabases) { + allowDatabases_ = allowDatabases; + setParameter(std::string("AllowDatabases"), allowDatabases); +} + +std::string CreateAccountAndAuthorityRequest::getAllowDictionaries() const { + return allowDictionaries_; +} + +void CreateAccountAndAuthorityRequest::setAllowDictionaries(const std::string &allowDictionaries) { + allowDictionaries_ = allowDictionaries; + setParameter(std::string("AllowDictionaries"), allowDictionaries); +} + +long CreateAccountAndAuthorityRequest::getOwnerId() const { + return ownerId_; +} + +void CreateAccountAndAuthorityRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CreateAccountAndAuthorityRequest::getAccountPassword() const { + return accountPassword_; +} + +void CreateAccountAndAuthorityRequest::setAccountPassword(const std::string &accountPassword) { + accountPassword_ = accountPassword; + setParameter(std::string("AccountPassword"), accountPassword); +} + +bool CreateAccountAndAuthorityRequest::getDdlAuthority() const { + return ddlAuthority_; +} + +void CreateAccountAndAuthorityRequest::setDdlAuthority(bool ddlAuthority) { + ddlAuthority_ = ddlAuthority; + setParameter(std::string("DdlAuthority"), ddlAuthority ? "true" : "false"); +} + +std::string CreateAccountAndAuthorityRequest::getTotalDatabases() const { + return totalDatabases_; +} + +void CreateAccountAndAuthorityRequest::setTotalDatabases(const std::string &totalDatabases) { + totalDatabases_ = totalDatabases; + setParameter(std::string("TotalDatabases"), totalDatabases); +} + diff --git a/clickhouse/src/model/CreateAccountAndAuthorityResult.cc b/clickhouse/src/model/CreateAccountAndAuthorityResult.cc new file mode 100644 index 000000000..176ac6a1b --- /dev/null +++ b/clickhouse/src/model/CreateAccountAndAuthorityResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +CreateAccountAndAuthorityResult::CreateAccountAndAuthorityResult() : + ServiceResult() +{} + +CreateAccountAndAuthorityResult::CreateAccountAndAuthorityResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateAccountAndAuthorityResult::~CreateAccountAndAuthorityResult() +{} + +void CreateAccountAndAuthorityResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/clickhouse/src/model/CreateAccountRequest.cc b/clickhouse/src/model/CreateAccountRequest.cc new file mode 100644 index 000000000..60c8f2e02 --- /dev/null +++ b/clickhouse/src/model/CreateAccountRequest.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Clickhouse::Model::CreateAccountRequest; + +CreateAccountRequest::CreateAccountRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "CreateAccount") { + setMethod(HttpRequest::Method::Post); +} + +CreateAccountRequest::~CreateAccountRequest() {} + +long CreateAccountRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CreateAccountRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string CreateAccountRequest::getAccountDescription() const { + return accountDescription_; +} + +void CreateAccountRequest::setAccountDescription(const std::string &accountDescription) { + accountDescription_ = accountDescription; + setParameter(std::string("AccountDescription"), accountDescription); +} + +std::string CreateAccountRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CreateAccountRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string CreateAccountRequest::getAccountName() const { + return accountName_; +} + +void CreateAccountRequest::setAccountName(const std::string &accountName) { + accountName_ = accountName; + setParameter(std::string("AccountName"), accountName); +} + +std::string CreateAccountRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CreateAccountRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CreateAccountRequest::getDBClusterId() const { + return dBClusterId_; +} + +void CreateAccountRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string CreateAccountRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CreateAccountRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long CreateAccountRequest::getOwnerId() const { + return ownerId_; +} + +void CreateAccountRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CreateAccountRequest::getAccountPassword() const { + return accountPassword_; +} + +void CreateAccountRequest::setAccountPassword(const std::string &accountPassword) { + accountPassword_ = accountPassword; + setParameter(std::string("AccountPassword"), accountPassword); +} + diff --git a/clickhouse/src/model/CreateAccountResult.cc b/clickhouse/src/model/CreateAccountResult.cc new file mode 100644 index 000000000..7bca2cc74 --- /dev/null +++ b/clickhouse/src/model/CreateAccountResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +CreateAccountResult::CreateAccountResult() : + ServiceResult() +{} + +CreateAccountResult::CreateAccountResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateAccountResult::~CreateAccountResult() +{} + +void CreateAccountResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/clickhouse/src/model/CreateBackupPolicyRequest.cc b/clickhouse/src/model/CreateBackupPolicyRequest.cc new file mode 100644 index 000000000..5f4f8f2d6 --- /dev/null +++ b/clickhouse/src/model/CreateBackupPolicyRequest.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::Clickhouse::Model::CreateBackupPolicyRequest; + +CreateBackupPolicyRequest::CreateBackupPolicyRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "CreateBackupPolicy") { + setMethod(HttpRequest::Method::Post); +} + +CreateBackupPolicyRequest::~CreateBackupPolicyRequest() {} + +long CreateBackupPolicyRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CreateBackupPolicyRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string CreateBackupPolicyRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CreateBackupPolicyRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string CreateBackupPolicyRequest::getRegionId() const { + return regionId_; +} + +void CreateBackupPolicyRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CreateBackupPolicyRequest::getPreferredBackupPeriod() const { + return preferredBackupPeriod_; +} + +void CreateBackupPolicyRequest::setPreferredBackupPeriod(const std::string &preferredBackupPeriod) { + preferredBackupPeriod_ = preferredBackupPeriod; + setParameter(std::string("PreferredBackupPeriod"), preferredBackupPeriod); +} + +std::string CreateBackupPolicyRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CreateBackupPolicyRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CreateBackupPolicyRequest::getDBClusterId() const { + return dBClusterId_; +} + +void CreateBackupPolicyRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string CreateBackupPolicyRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CreateBackupPolicyRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long CreateBackupPolicyRequest::getOwnerId() const { + return ownerId_; +} + +void CreateBackupPolicyRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CreateBackupPolicyRequest::getPreferredBackupTime() const { + return preferredBackupTime_; +} + +void CreateBackupPolicyRequest::setPreferredBackupTime(const std::string &preferredBackupTime) { + preferredBackupTime_ = preferredBackupTime; + setParameter(std::string("PreferredBackupTime"), preferredBackupTime); +} + +std::string CreateBackupPolicyRequest::getBackupRetentionPeriod() const { + return backupRetentionPeriod_; +} + +void CreateBackupPolicyRequest::setBackupRetentionPeriod(const std::string &backupRetentionPeriod) { + backupRetentionPeriod_ = backupRetentionPeriod; + setParameter(std::string("BackupRetentionPeriod"), backupRetentionPeriod); +} + diff --git a/clickhouse/src/model/CreateBackupPolicyResult.cc b/clickhouse/src/model/CreateBackupPolicyResult.cc new file mode 100644 index 000000000..2426bc6b8 --- /dev/null +++ b/clickhouse/src/model/CreateBackupPolicyResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +CreateBackupPolicyResult::CreateBackupPolicyResult() : + ServiceResult() +{} + +CreateBackupPolicyResult::CreateBackupPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateBackupPolicyResult::~CreateBackupPolicyResult() +{} + +void CreateBackupPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/clickhouse/src/model/CreateDBInstanceRequest.cc b/clickhouse/src/model/CreateDBInstanceRequest.cc new file mode 100644 index 000000000..0844f889d --- /dev/null +++ b/clickhouse/src/model/CreateDBInstanceRequest.cc @@ -0,0 +1,306 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Clickhouse::Model::CreateDBInstanceRequest; + +CreateDBInstanceRequest::CreateDBInstanceRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "CreateDBInstance") { + setMethod(HttpRequest::Method::Post); +} + +CreateDBInstanceRequest::~CreateDBInstanceRequest() {} + +long CreateDBInstanceRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CreateDBInstanceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string CreateDBInstanceRequest::getDBClusterDescription() const { + return dBClusterDescription_; +} + +void CreateDBInstanceRequest::setDBClusterDescription(const std::string &dBClusterDescription) { + dBClusterDescription_ = dBClusterDescription; + setParameter(std::string("DBClusterDescription"), dBClusterDescription); +} + +std::string CreateDBInstanceRequest::getSourceDBClusterId() const { + return sourceDBClusterId_; +} + +void CreateDBInstanceRequest::setSourceDBClusterId(const std::string &sourceDBClusterId) { + sourceDBClusterId_ = sourceDBClusterId; + setParameter(std::string("SourceDBClusterId"), sourceDBClusterId); +} + +std::string CreateDBInstanceRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void CreateDBInstanceRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string CreateDBInstanceRequest::getZondIdBak2() const { + return zondIdBak2_; +} + +void CreateDBInstanceRequest::setZondIdBak2(const std::string &zondIdBak2) { + zondIdBak2_ = zondIdBak2; + setParameter(std::string("ZondIdBak2"), zondIdBak2); +} + +std::string CreateDBInstanceRequest::getDbNodeStorageType() const { + return dbNodeStorageType_; +} + +void CreateDBInstanceRequest::setDbNodeStorageType(const std::string &dbNodeStorageType) { + dbNodeStorageType_ = dbNodeStorageType; + setParameter(std::string("DbNodeStorageType"), dbNodeStorageType); +} + +std::string CreateDBInstanceRequest::getEncryptionType() const { + return encryptionType_; +} + +void CreateDBInstanceRequest::setEncryptionType(const std::string &encryptionType) { + encryptionType_ = encryptionType; + setParameter(std::string("EncryptionType"), encryptionType); +} + +std::string CreateDBInstanceRequest::getZoneIdBak() const { + return zoneIdBak_; +} + +void CreateDBInstanceRequest::setZoneIdBak(const std::string &zoneIdBak) { + zoneIdBak_ = zoneIdBak; + setParameter(std::string("ZoneIdBak"), zoneIdBak); +} + +std::string CreateDBInstanceRequest::getPeriod() const { + return period_; +} + +void CreateDBInstanceRequest::setPeriod(const std::string &period) { + period_ = period; + setParameter(std::string("Period"), period); +} + +std::string CreateDBInstanceRequest::getBackupSetID() const { + return backupSetID_; +} + +void CreateDBInstanceRequest::setBackupSetID(const std::string &backupSetID) { + backupSetID_ = backupSetID; + setParameter(std::string("BackupSetID"), backupSetID); +} + +std::string CreateDBInstanceRequest::getEncryptionKey() const { + return encryptionKey_; +} + +void CreateDBInstanceRequest::setEncryptionKey(const std::string &encryptionKey) { + encryptionKey_ = encryptionKey; + setParameter(std::string("EncryptionKey"), encryptionKey); +} + +long CreateDBInstanceRequest::getOwnerId() const { + return ownerId_; +} + +void CreateDBInstanceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CreateDBInstanceRequest::getDBNodeGroupCount() const { + return dBNodeGroupCount_; +} + +void CreateDBInstanceRequest::setDBNodeGroupCount(const std::string &dBNodeGroupCount) { + dBNodeGroupCount_ = dBNodeGroupCount; + setParameter(std::string("DBNodeGroupCount"), dBNodeGroupCount); +} + +std::string CreateDBInstanceRequest::getVSwitchId() const { + return vSwitchId_; +} + +void CreateDBInstanceRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); +} + +bool CreateDBInstanceRequest::getAutoRenew() const { + return autoRenew_; +} + +void CreateDBInstanceRequest::setAutoRenew(bool autoRenew) { + autoRenew_ = autoRenew; + setParameter(std::string("AutoRenew"), autoRenew ? "true" : "false"); +} + +std::string CreateDBInstanceRequest::getZoneId() const { + return zoneId_; +} + +void CreateDBInstanceRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); +} + +std::string CreateDBInstanceRequest::getClientToken() const { + return clientToken_; +} + +void CreateDBInstanceRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateDBInstanceRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CreateDBInstanceRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string CreateDBInstanceRequest::getRegionId() const { + return regionId_; +} + +void CreateDBInstanceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CreateDBInstanceRequest::getDBClusterCategory() const { + return dBClusterCategory_; +} + +void CreateDBInstanceRequest::setDBClusterCategory(const std::string &dBClusterCategory) { + dBClusterCategory_ = dBClusterCategory; + setParameter(std::string("DBClusterCategory"), dBClusterCategory); +} + +std::string CreateDBInstanceRequest::getDBClusterNetworkType() const { + return dBClusterNetworkType_; +} + +void CreateDBInstanceRequest::setDBClusterNetworkType(const std::string &dBClusterNetworkType) { + dBClusterNetworkType_ = dBClusterNetworkType; + setParameter(std::string("DBClusterNetworkType"), dBClusterNetworkType); +} + +std::string CreateDBInstanceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CreateDBInstanceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CreateDBInstanceRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CreateDBInstanceRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string CreateDBInstanceRequest::getDBClusterVersion() const { + return dBClusterVersion_; +} + +void CreateDBInstanceRequest::setDBClusterVersion(const std::string &dBClusterVersion) { + dBClusterVersion_ = dBClusterVersion; + setParameter(std::string("DBClusterVersion"), dBClusterVersion); +} + +std::string CreateDBInstanceRequest::getDBClusterClass() const { + return dBClusterClass_; +} + +void CreateDBInstanceRequest::setDBClusterClass(const std::string &dBClusterClass) { + dBClusterClass_ = dBClusterClass; + setParameter(std::string("DBClusterClass"), dBClusterClass); +} + +std::string CreateDBInstanceRequest::getVSwitchBak() const { + return vSwitchBak_; +} + +void CreateDBInstanceRequest::setVSwitchBak(const std::string &vSwitchBak) { + vSwitchBak_ = vSwitchBak; + setParameter(std::string("VSwitchBak"), vSwitchBak); +} + +std::string CreateDBInstanceRequest::getUsedTime() const { + return usedTime_; +} + +void CreateDBInstanceRequest::setUsedTime(const std::string &usedTime) { + usedTime_ = usedTime; + setParameter(std::string("UsedTime"), usedTime); +} + +std::string CreateDBInstanceRequest::getVSwitchBak2() const { + return vSwitchBak2_; +} + +void CreateDBInstanceRequest::setVSwitchBak2(const std::string &vSwitchBak2) { + vSwitchBak2_ = vSwitchBak2; + setParameter(std::string("VSwitchBak2"), vSwitchBak2); +} + +std::string CreateDBInstanceRequest::getDBNodeStorage() const { + return dBNodeStorage_; +} + +void CreateDBInstanceRequest::setDBNodeStorage(const std::string &dBNodeStorage) { + dBNodeStorage_ = dBNodeStorage; + setParameter(std::string("DBNodeStorage"), dBNodeStorage); +} + +std::string CreateDBInstanceRequest::getVPCId() const { + return vPCId_; +} + +void CreateDBInstanceRequest::setVPCId(const std::string &vPCId) { + vPCId_ = vPCId; + setParameter(std::string("VPCId"), vPCId); +} + +std::string CreateDBInstanceRequest::getPayType() const { + return payType_; +} + +void CreateDBInstanceRequest::setPayType(const std::string &payType) { + payType_ = payType; + setParameter(std::string("PayType"), payType); +} + diff --git a/clickhouse/src/model/CreateDBInstanceResult.cc b/clickhouse/src/model/CreateDBInstanceResult.cc new file mode 100644 index 000000000..7016488b4 --- /dev/null +++ b/clickhouse/src/model/CreateDBInstanceResult.cc @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +CreateDBInstanceResult::CreateDBInstanceResult() : + ServiceResult() +{} + +CreateDBInstanceResult::CreateDBInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDBInstanceResult::~CreateDBInstanceResult() +{} + +void CreateDBInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["DBClusterId"].isNull()) + dBClusterId_ = value["DBClusterId"].asString(); + if(!value["OrderId"].isNull()) + orderId_ = value["OrderId"].asString(); + +} + +std::string CreateDBInstanceResult::getDBClusterId()const +{ + return dBClusterId_; +} + +std::string CreateDBInstanceResult::getOrderId()const +{ + return orderId_; +} + diff --git a/clickhouse/src/model/CreateMonitorDataReportRequest.cc b/clickhouse/src/model/CreateMonitorDataReportRequest.cc new file mode 100644 index 000000000..ecaf44d36 --- /dev/null +++ b/clickhouse/src/model/CreateMonitorDataReportRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Clickhouse::Model::CreateMonitorDataReportRequest; + +CreateMonitorDataReportRequest::CreateMonitorDataReportRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "CreateMonitorDataReport") { + setMethod(HttpRequest::Method::Post); +} + +CreateMonitorDataReportRequest::~CreateMonitorDataReportRequest() {} + +long CreateMonitorDataReportRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CreateMonitorDataReportRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string CreateMonitorDataReportRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CreateMonitorDataReportRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string CreateMonitorDataReportRequest::getRegionId() const { + return regionId_; +} + +void CreateMonitorDataReportRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CreateMonitorDataReportRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CreateMonitorDataReportRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CreateMonitorDataReportRequest::getDBClusterId() const { + return dBClusterId_; +} + +void CreateMonitorDataReportRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string CreateMonitorDataReportRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CreateMonitorDataReportRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long CreateMonitorDataReportRequest::getOwnerId() const { + return ownerId_; +} + +void CreateMonitorDataReportRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/clickhouse/src/model/CreateMonitorDataReportResult.cc b/clickhouse/src/model/CreateMonitorDataReportResult.cc new file mode 100644 index 000000000..773cb2c1f --- /dev/null +++ b/clickhouse/src/model/CreateMonitorDataReportResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +CreateMonitorDataReportResult::CreateMonitorDataReportResult() : + ServiceResult() +{} + +CreateMonitorDataReportResult::CreateMonitorDataReportResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateMonitorDataReportResult::~CreateMonitorDataReportResult() +{} + +void CreateMonitorDataReportResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/clickhouse/src/model/CreateOSSStorageRequest.cc b/clickhouse/src/model/CreateOSSStorageRequest.cc new file mode 100644 index 000000000..a78caf099 --- /dev/null +++ b/clickhouse/src/model/CreateOSSStorageRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Clickhouse::Model::CreateOSSStorageRequest; + +CreateOSSStorageRequest::CreateOSSStorageRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "CreateOSSStorage") { + setMethod(HttpRequest::Method::Post); +} + +CreateOSSStorageRequest::~CreateOSSStorageRequest() {} + +long CreateOSSStorageRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CreateOSSStorageRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string CreateOSSStorageRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CreateOSSStorageRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string CreateOSSStorageRequest::getRegionId() const { + return regionId_; +} + +void CreateOSSStorageRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CreateOSSStorageRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CreateOSSStorageRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CreateOSSStorageRequest::getDBClusterId() const { + return dBClusterId_; +} + +void CreateOSSStorageRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string CreateOSSStorageRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CreateOSSStorageRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long CreateOSSStorageRequest::getOwnerId() const { + return ownerId_; +} + +void CreateOSSStorageRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/clickhouse/src/model/CreateOSSStorageResult.cc b/clickhouse/src/model/CreateOSSStorageResult.cc new file mode 100644 index 000000000..97f91b19f --- /dev/null +++ b/clickhouse/src/model/CreateOSSStorageResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +CreateOSSStorageResult::CreateOSSStorageResult() : + ServiceResult() +{} + +CreateOSSStorageResult::CreateOSSStorageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateOSSStorageResult::~CreateOSSStorageResult() +{} + +void CreateOSSStorageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/clickhouse/src/model/CreatePortsForClickHouseRequest.cc b/clickhouse/src/model/CreatePortsForClickHouseRequest.cc new file mode 100644 index 000000000..196f18ced --- /dev/null +++ b/clickhouse/src/model/CreatePortsForClickHouseRequest.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 + +using AlibabaCloud::Clickhouse::Model::CreatePortsForClickHouseRequest; + +CreatePortsForClickHouseRequest::CreatePortsForClickHouseRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "CreatePortsForClickHouse") { + setMethod(HttpRequest::Method::Post); +} + +CreatePortsForClickHouseRequest::~CreatePortsForClickHouseRequest() {} + +long CreatePortsForClickHouseRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CreatePortsForClickHouseRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string CreatePortsForClickHouseRequest::getPortType() const { + return portType_; +} + +void CreatePortsForClickHouseRequest::setPortType(const std::string &portType) { + portType_ = portType; + setParameter(std::string("PortType"), portType); +} + +std::string CreatePortsForClickHouseRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CreatePortsForClickHouseRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string CreatePortsForClickHouseRequest::getRegionId() const { + return regionId_; +} + +void CreatePortsForClickHouseRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CreatePortsForClickHouseRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CreatePortsForClickHouseRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CreatePortsForClickHouseRequest::getDBClusterId() const { + return dBClusterId_; +} + +void CreatePortsForClickHouseRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string CreatePortsForClickHouseRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CreatePortsForClickHouseRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long CreatePortsForClickHouseRequest::getOwnerId() const { + return ownerId_; +} + +void CreatePortsForClickHouseRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/clickhouse/src/model/CreatePortsForClickHouseResult.cc b/clickhouse/src/model/CreatePortsForClickHouseResult.cc new file mode 100644 index 000000000..1a5203717 --- /dev/null +++ b/clickhouse/src/model/CreatePortsForClickHouseResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +CreatePortsForClickHouseResult::CreatePortsForClickHouseResult() : + ServiceResult() +{} + +CreatePortsForClickHouseResult::CreatePortsForClickHouseResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreatePortsForClickHouseResult::~CreatePortsForClickHouseResult() +{} + +void CreatePortsForClickHouseResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/clickhouse/src/model/CreateRDSToClickhouseDbRequest.cc b/clickhouse/src/model/CreateRDSToClickhouseDbRequest.cc new file mode 100644 index 000000000..f8c04551f --- /dev/null +++ b/clickhouse/src/model/CreateRDSToClickhouseDbRequest.cc @@ -0,0 +1,189 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Clickhouse::Model::CreateRDSToClickhouseDbRequest; + +CreateRDSToClickhouseDbRequest::CreateRDSToClickhouseDbRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "CreateRDSToClickhouseDb") { + setMethod(HttpRequest::Method::Post); +} + +CreateRDSToClickhouseDbRequest::~CreateRDSToClickhouseDbRequest() {} + +long CreateRDSToClickhouseDbRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CreateRDSToClickhouseDbRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string CreateRDSToClickhouseDbRequest::getSynDbTables() const { + return synDbTables_; +} + +void CreateRDSToClickhouseDbRequest::setSynDbTables(const std::string &synDbTables) { + synDbTables_ = synDbTables; + setParameter(std::string("SynDbTables"), synDbTables); +} + +std::string CreateRDSToClickhouseDbRequest::getRdsVpcId() const { + return rdsVpcId_; +} + +void CreateRDSToClickhouseDbRequest::setRdsVpcId(const std::string &rdsVpcId) { + rdsVpcId_ = rdsVpcId; + setParameter(std::string("RdsVpcId"), rdsVpcId); +} + +std::string CreateRDSToClickhouseDbRequest::getCkPassword() const { + return ckPassword_; +} + +void CreateRDSToClickhouseDbRequest::setCkPassword(const std::string &ckPassword) { + ckPassword_ = ckPassword; + setParameter(std::string("CkPassword"), ckPassword); +} + +std::string CreateRDSToClickhouseDbRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CreateRDSToClickhouseDbRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string CreateRDSToClickhouseDbRequest::getRdsPassword() const { + return rdsPassword_; +} + +void CreateRDSToClickhouseDbRequest::setRdsPassword(const std::string &rdsPassword) { + rdsPassword_ = rdsPassword; + setParameter(std::string("RdsPassword"), rdsPassword); +} + +std::string CreateRDSToClickhouseDbRequest::getCkUserName() const { + return ckUserName_; +} + +void CreateRDSToClickhouseDbRequest::setCkUserName(const std::string &ckUserName) { + ckUserName_ = ckUserName; + setParameter(std::string("CkUserName"), ckUserName); +} + +std::string CreateRDSToClickhouseDbRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CreateRDSToClickhouseDbRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CreateRDSToClickhouseDbRequest::getDbClusterId() const { + return dbClusterId_; +} + +void CreateRDSToClickhouseDbRequest::setDbClusterId(const std::string &dbClusterId) { + dbClusterId_ = dbClusterId; + setParameter(std::string("DbClusterId"), dbClusterId); +} + +std::string CreateRDSToClickhouseDbRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CreateRDSToClickhouseDbRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string CreateRDSToClickhouseDbRequest::getRdsId() const { + return rdsId_; +} + +void CreateRDSToClickhouseDbRequest::setRdsId(const std::string &rdsId) { + rdsId_ = rdsId; + setParameter(std::string("RdsId"), rdsId); +} + +long CreateRDSToClickhouseDbRequest::getOwnerId() const { + return ownerId_; +} + +void CreateRDSToClickhouseDbRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +long CreateRDSToClickhouseDbRequest::getClickhousePort() const { + return clickhousePort_; +} + +void CreateRDSToClickhouseDbRequest::setClickhousePort(long clickhousePort) { + clickhousePort_ = clickhousePort; + setParameter(std::string("ClickhousePort"), std::to_string(clickhousePort)); +} + +long CreateRDSToClickhouseDbRequest::getLimitUpper() const { + return limitUpper_; +} + +void CreateRDSToClickhouseDbRequest::setLimitUpper(long limitUpper) { + limitUpper_ = limitUpper; + setParameter(std::string("LimitUpper"), std::to_string(limitUpper)); +} + +long CreateRDSToClickhouseDbRequest::getRdsPort() const { + return rdsPort_; +} + +void CreateRDSToClickhouseDbRequest::setRdsPort(long rdsPort) { + rdsPort_ = rdsPort; + setParameter(std::string("RdsPort"), std::to_string(rdsPort)); +} + +bool CreateRDSToClickhouseDbRequest::getSkipUnsupported() const { + return skipUnsupported_; +} + +void CreateRDSToClickhouseDbRequest::setSkipUnsupported(bool skipUnsupported) { + skipUnsupported_ = skipUnsupported; + setParameter(std::string("SkipUnsupported"), skipUnsupported ? "true" : "false"); +} + +std::string CreateRDSToClickhouseDbRequest::getRdsVpcUrl() const { + return rdsVpcUrl_; +} + +void CreateRDSToClickhouseDbRequest::setRdsVpcUrl(const std::string &rdsVpcUrl) { + rdsVpcUrl_ = rdsVpcUrl; + setParameter(std::string("RdsVpcUrl"), rdsVpcUrl); +} + +std::string CreateRDSToClickhouseDbRequest::getRdsUserName() const { + return rdsUserName_; +} + +void CreateRDSToClickhouseDbRequest::setRdsUserName(const std::string &rdsUserName) { + rdsUserName_ = rdsUserName; + setParameter(std::string("RdsUserName"), rdsUserName); +} + diff --git a/clickhouse/src/model/CreateRDSToClickhouseDbResult.cc b/clickhouse/src/model/CreateRDSToClickhouseDbResult.cc new file mode 100644 index 000000000..5f88b7713 --- /dev/null +++ b/clickhouse/src/model/CreateRDSToClickhouseDbResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +CreateRDSToClickhouseDbResult::CreateRDSToClickhouseDbResult() : + ServiceResult() +{} + +CreateRDSToClickhouseDbResult::CreateRDSToClickhouseDbResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateRDSToClickhouseDbResult::~CreateRDSToClickhouseDbResult() +{} + +void CreateRDSToClickhouseDbResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allRepeatedDbs = value["RepeatedDbs"]["dbs"]; + for (const auto &item : allRepeatedDbs) + repeatedDbs_.push_back(item.asString()); + if(!value["Status"].isNull()) + status_ = std::stol(value["Status"].asString()); + if(!value["ErrorMsg"].isNull()) + errorMsg_ = value["ErrorMsg"].asString(); + +} + +long CreateRDSToClickhouseDbResult::getStatus()const +{ + return status_; +} + +std::vector CreateRDSToClickhouseDbResult::getRepeatedDbs()const +{ + return repeatedDbs_; +} + +std::string CreateRDSToClickhouseDbResult::getErrorMsg()const +{ + return errorMsg_; +} + diff --git a/clickhouse/src/model/CreateSQLAccountRequest.cc b/clickhouse/src/model/CreateSQLAccountRequest.cc new file mode 100644 index 000000000..1d2b10263 --- /dev/null +++ b/clickhouse/src/model/CreateSQLAccountRequest.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::Clickhouse::Model::CreateSQLAccountRequest; + +CreateSQLAccountRequest::CreateSQLAccountRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "CreateSQLAccount") { + setMethod(HttpRequest::Method::Post); +} + +CreateSQLAccountRequest::~CreateSQLAccountRequest() {} + +long CreateSQLAccountRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CreateSQLAccountRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string CreateSQLAccountRequest::getAccountType() const { + return accountType_; +} + +void CreateSQLAccountRequest::setAccountType(const std::string &accountType) { + accountType_ = accountType; + setParameter(std::string("AccountType"), accountType); +} + +std::string CreateSQLAccountRequest::getAccountDescription() const { + return accountDescription_; +} + +void CreateSQLAccountRequest::setAccountDescription(const std::string &accountDescription) { + accountDescription_ = accountDescription; + setParameter(std::string("AccountDescription"), accountDescription); +} + +std::string CreateSQLAccountRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CreateSQLAccountRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string CreateSQLAccountRequest::getAccountName() const { + return accountName_; +} + +void CreateSQLAccountRequest::setAccountName(const std::string &accountName) { + accountName_ = accountName; + setParameter(std::string("AccountName"), accountName); +} + +std::string CreateSQLAccountRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CreateSQLAccountRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CreateSQLAccountRequest::getDBClusterId() const { + return dBClusterId_; +} + +void CreateSQLAccountRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string CreateSQLAccountRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CreateSQLAccountRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long CreateSQLAccountRequest::getOwnerId() const { + return ownerId_; +} + +void CreateSQLAccountRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CreateSQLAccountRequest::getAccountPassword() const { + return accountPassword_; +} + +void CreateSQLAccountRequest::setAccountPassword(const std::string &accountPassword) { + accountPassword_ = accountPassword; + setParameter(std::string("AccountPassword"), accountPassword); +} + diff --git a/clickhouse/src/model/CreateSQLAccountResult.cc b/clickhouse/src/model/CreateSQLAccountResult.cc new file mode 100644 index 000000000..0ae5e49d0 --- /dev/null +++ b/clickhouse/src/model/CreateSQLAccountResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +CreateSQLAccountResult::CreateSQLAccountResult() : + ServiceResult() +{} + +CreateSQLAccountResult::CreateSQLAccountResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateSQLAccountResult::~CreateSQLAccountResult() +{} + +void CreateSQLAccountResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/clickhouse/src/model/CreateServiceLinkedRoleRequest.cc b/clickhouse/src/model/CreateServiceLinkedRoleRequest.cc new file mode 100644 index 000000000..456d0c214 --- /dev/null +++ b/clickhouse/src/model/CreateServiceLinkedRoleRequest.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 + +using AlibabaCloud::Clickhouse::Model::CreateServiceLinkedRoleRequest; + +CreateServiceLinkedRoleRequest::CreateServiceLinkedRoleRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "CreateServiceLinkedRole") { + setMethod(HttpRequest::Method::Post); +} + +CreateServiceLinkedRoleRequest::~CreateServiceLinkedRoleRequest() {} + +long CreateServiceLinkedRoleRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CreateServiceLinkedRoleRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string CreateServiceLinkedRoleRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CreateServiceLinkedRoleRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string CreateServiceLinkedRoleRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CreateServiceLinkedRoleRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CreateServiceLinkedRoleRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CreateServiceLinkedRoleRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long CreateServiceLinkedRoleRequest::getOwnerId() const { + return ownerId_; +} + +void CreateServiceLinkedRoleRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/clickhouse/src/model/CreateServiceLinkedRoleResult.cc b/clickhouse/src/model/CreateServiceLinkedRoleResult.cc new file mode 100644 index 000000000..e4c7d53d3 --- /dev/null +++ b/clickhouse/src/model/CreateServiceLinkedRoleResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +CreateServiceLinkedRoleResult::CreateServiceLinkedRoleResult() : + ServiceResult() +{} + +CreateServiceLinkedRoleResult::CreateServiceLinkedRoleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateServiceLinkedRoleResult::~CreateServiceLinkedRoleResult() +{} + +void CreateServiceLinkedRoleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/clickhouse/src/model/DeleteAccountRequest.cc b/clickhouse/src/model/DeleteAccountRequest.cc new file mode 100644 index 000000000..ef75bcace --- /dev/null +++ b/clickhouse/src/model/DeleteAccountRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Clickhouse::Model::DeleteAccountRequest; + +DeleteAccountRequest::DeleteAccountRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "DeleteAccount") { + setMethod(HttpRequest::Method::Post); +} + +DeleteAccountRequest::~DeleteAccountRequest() {} + +long DeleteAccountRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DeleteAccountRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DeleteAccountRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DeleteAccountRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DeleteAccountRequest::getAccountName() const { + return accountName_; +} + +void DeleteAccountRequest::setAccountName(const std::string &accountName) { + accountName_ = accountName; + setParameter(std::string("AccountName"), accountName); +} + +std::string DeleteAccountRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DeleteAccountRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DeleteAccountRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DeleteAccountRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DeleteAccountRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DeleteAccountRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DeleteAccountRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteAccountRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/clickhouse/src/model/DeleteAccountResult.cc b/clickhouse/src/model/DeleteAccountResult.cc new file mode 100644 index 000000000..da526563d --- /dev/null +++ b/clickhouse/src/model/DeleteAccountResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +DeleteAccountResult::DeleteAccountResult() : + ServiceResult() +{} + +DeleteAccountResult::DeleteAccountResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteAccountResult::~DeleteAccountResult() +{} + +void DeleteAccountResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/clickhouse/src/model/DeleteDBClusterRequest.cc b/clickhouse/src/model/DeleteDBClusterRequest.cc new file mode 100644 index 000000000..2f07fe89a --- /dev/null +++ b/clickhouse/src/model/DeleteDBClusterRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Clickhouse::Model::DeleteDBClusterRequest; + +DeleteDBClusterRequest::DeleteDBClusterRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "DeleteDBCluster") { + setMethod(HttpRequest::Method::Post); +} + +DeleteDBClusterRequest::~DeleteDBClusterRequest() {} + +long DeleteDBClusterRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DeleteDBClusterRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DeleteDBClusterRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DeleteDBClusterRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DeleteDBClusterRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DeleteDBClusterRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DeleteDBClusterRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DeleteDBClusterRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DeleteDBClusterRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DeleteDBClusterRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DeleteDBClusterRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteDBClusterRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/clickhouse/src/model/DeleteDBClusterResult.cc b/clickhouse/src/model/DeleteDBClusterResult.cc new file mode 100644 index 000000000..3924b1b77 --- /dev/null +++ b/clickhouse/src/model/DeleteDBClusterResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +DeleteDBClusterResult::DeleteDBClusterResult() : + ServiceResult() +{} + +DeleteDBClusterResult::DeleteDBClusterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteDBClusterResult::~DeleteDBClusterResult() +{} + +void DeleteDBClusterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/clickhouse/src/model/DeleteSyndbRequest.cc b/clickhouse/src/model/DeleteSyndbRequest.cc new file mode 100644 index 000000000..92d047ca5 --- /dev/null +++ b/clickhouse/src/model/DeleteSyndbRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Clickhouse::Model::DeleteSyndbRequest; + +DeleteSyndbRequest::DeleteSyndbRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "DeleteSyndb") { + setMethod(HttpRequest::Method::Post); +} + +DeleteSyndbRequest::~DeleteSyndbRequest() {} + +long DeleteSyndbRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DeleteSyndbRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DeleteSyndbRequest::getSynDb() const { + return synDb_; +} + +void DeleteSyndbRequest::setSynDb(const std::string &synDb) { + synDb_ = synDb; + setParameter(std::string("SynDb"), synDb); +} + +std::string DeleteSyndbRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DeleteSyndbRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DeleteSyndbRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DeleteSyndbRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DeleteSyndbRequest::getDbClusterId() const { + return dbClusterId_; +} + +void DeleteSyndbRequest::setDbClusterId(const std::string &dbClusterId) { + dbClusterId_ = dbClusterId; + setParameter(std::string("DbClusterId"), dbClusterId); +} + +std::string DeleteSyndbRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DeleteSyndbRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DeleteSyndbRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteSyndbRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/clickhouse/src/model/DeleteSyndbResult.cc b/clickhouse/src/model/DeleteSyndbResult.cc new file mode 100644 index 000000000..37f593f96 --- /dev/null +++ b/clickhouse/src/model/DeleteSyndbResult.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::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +DeleteSyndbResult::DeleteSyndbResult() : + ServiceResult() +{} + +DeleteSyndbResult::DeleteSyndbResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteSyndbResult::~DeleteSyndbResult() +{} + +void DeleteSyndbResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Status"].isNull()) + status_ = value["Status"].asString() == "true"; + if(!value["ErrorMsg"].isNull()) + errorMsg_ = value["ErrorMsg"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stol(value["ErrorCode"].asString()); + +} + +bool DeleteSyndbResult::getStatus()const +{ + return status_; +} + +std::string DeleteSyndbResult::getErrorMsg()const +{ + return errorMsg_; +} + +long DeleteSyndbResult::getErrorCode()const +{ + return errorCode_; +} + diff --git a/clickhouse/src/model/DescribeAccountAuthorityRequest.cc b/clickhouse/src/model/DescribeAccountAuthorityRequest.cc new file mode 100644 index 000000000..46f069cda --- /dev/null +++ b/clickhouse/src/model/DescribeAccountAuthorityRequest.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 + +using AlibabaCloud::Clickhouse::Model::DescribeAccountAuthorityRequest; + +DescribeAccountAuthorityRequest::DescribeAccountAuthorityRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "DescribeAccountAuthority") { + setMethod(HttpRequest::Method::Post); +} + +DescribeAccountAuthorityRequest::~DescribeAccountAuthorityRequest() {} + +long DescribeAccountAuthorityRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeAccountAuthorityRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeAccountAuthorityRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeAccountAuthorityRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeAccountAuthorityRequest::getAccountName() const { + return accountName_; +} + +void DescribeAccountAuthorityRequest::setAccountName(const std::string &accountName) { + accountName_ = accountName; + setParameter(std::string("AccountName"), accountName); +} + +std::string DescribeAccountAuthorityRequest::getRegionId() const { + return regionId_; +} + +void DescribeAccountAuthorityRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeAccountAuthorityRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeAccountAuthorityRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeAccountAuthorityRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeAccountAuthorityRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeAccountAuthorityRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeAccountAuthorityRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeAccountAuthorityRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeAccountAuthorityRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/clickhouse/src/model/DescribeAccountAuthorityResult.cc b/clickhouse/src/model/DescribeAccountAuthorityResult.cc new file mode 100644 index 000000000..57e125378 --- /dev/null +++ b/clickhouse/src/model/DescribeAccountAuthorityResult.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::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +DescribeAccountAuthorityResult::DescribeAccountAuthorityResult() : + ServiceResult() +{} + +DescribeAccountAuthorityResult::DescribeAccountAuthorityResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAccountAuthorityResult::~DescribeAccountAuthorityResult() +{} + +void DescribeAccountAuthorityResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTotalDatabases = value["TotalDatabases"]["TotalDatabases"]; + for (const auto &item : allTotalDatabases) + totalDatabases_.push_back(item.asString()); + auto allTotalDictionaries = value["TotalDictionaries"]["TotalDictionaries"]; + for (const auto &item : allTotalDictionaries) + totalDictionaries_.push_back(item.asString()); + auto allAllowDictionaries = value["AllowDictionaries"]["AllowDictionaries"]; + for (const auto &item : allAllowDictionaries) + allowDictionaries_.push_back(item.asString()); + auto allAllowDatabases = value["AllowDatabases"]["AllowDatabases"]; + for (const auto &item : allAllowDatabases) + allowDatabases_.push_back(item.asString()); + if(!value["DdlAuthority"].isNull()) + ddlAuthority_ = value["DdlAuthority"].asString() == "true"; + if(!value["DmlAuthority"].isNull()) + dmlAuthority_ = value["DmlAuthority"].asString(); + if(!value["AccountName"].isNull()) + accountName_ = value["AccountName"].asString(); + +} + +bool DescribeAccountAuthorityResult::getDdlAuthority()const +{ + return ddlAuthority_; +} + +std::string DescribeAccountAuthorityResult::getDmlAuthority()const +{ + return dmlAuthority_; +} + +std::vector DescribeAccountAuthorityResult::getTotalDatabases()const +{ + return totalDatabases_; +} + +std::vector DescribeAccountAuthorityResult::getTotalDictionaries()const +{ + return totalDictionaries_; +} + +std::vector DescribeAccountAuthorityResult::getAllowDictionaries()const +{ + return allowDictionaries_; +} + +std::vector DescribeAccountAuthorityResult::getAllowDatabases()const +{ + return allowDatabases_; +} + +std::string DescribeAccountAuthorityResult::getAccountName()const +{ + return accountName_; +} + diff --git a/clickhouse/src/model/DescribeAccountsRequest.cc b/clickhouse/src/model/DescribeAccountsRequest.cc new file mode 100644 index 000000000..8cec72007 --- /dev/null +++ b/clickhouse/src/model/DescribeAccountsRequest.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Clickhouse::Model::DescribeAccountsRequest; + +DescribeAccountsRequest::DescribeAccountsRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "DescribeAccounts") { + setMethod(HttpRequest::Method::Post); +} + +DescribeAccountsRequest::~DescribeAccountsRequest() {} + +long DescribeAccountsRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeAccountsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +int DescribeAccountsRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeAccountsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeAccountsRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeAccountsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeAccountsRequest::getAccountName() const { + return accountName_; +} + +void DescribeAccountsRequest::setAccountName(const std::string &accountName) { + accountName_ = accountName; + setParameter(std::string("AccountName"), accountName); +} + +int DescribeAccountsRequest::getPageSize() const { + return pageSize_; +} + +void DescribeAccountsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeAccountsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeAccountsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeAccountsRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeAccountsRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeAccountsRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeAccountsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeAccountsRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeAccountsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/clickhouse/src/model/DescribeAccountsResult.cc b/clickhouse/src/model/DescribeAccountsResult.cc new file mode 100644 index 000000000..7a36bb8e2 --- /dev/null +++ b/clickhouse/src/model/DescribeAccountsResult.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::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +DescribeAccountsResult::DescribeAccountsResult() : + ServiceResult() +{} + +DescribeAccountsResult::DescribeAccountsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAccountsResult::~DescribeAccountsResult() +{} + +void DescribeAccountsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allAccountsNode = value["Accounts"]["Account"]; + for (auto valueAccountsAccount : allAccountsNode) + { + Account accountsObject; + if(!valueAccountsAccount["AccountStatus"].isNull()) + accountsObject.accountStatus = valueAccountsAccount["AccountStatus"].asString(); + if(!valueAccountsAccount["AccountDescription"].isNull()) + accountsObject.accountDescription = valueAccountsAccount["AccountDescription"].asString(); + if(!valueAccountsAccount["AccountType"].isNull()) + accountsObject.accountType = valueAccountsAccount["AccountType"].asString(); + if(!valueAccountsAccount["AccountName"].isNull()) + accountsObject.accountName = valueAccountsAccount["AccountName"].asString(); + if(!valueAccountsAccount["ConfigType"].isNull()) + accountsObject.configType = valueAccountsAccount["ConfigType"].asString(); + accounts_.push_back(accountsObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + +} + +int DescribeAccountsResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeAccountsResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeAccountsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeAccountsResult::getAccounts()const +{ + return accounts_; +} + diff --git a/clickhouse/src/model/DescribeAllDataSourceRequest.cc b/clickhouse/src/model/DescribeAllDataSourceRequest.cc new file mode 100644 index 000000000..1446846e0 --- /dev/null +++ b/clickhouse/src/model/DescribeAllDataSourceRequest.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 + +using AlibabaCloud::Clickhouse::Model::DescribeAllDataSourceRequest; + +DescribeAllDataSourceRequest::DescribeAllDataSourceRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "DescribeAllDataSource") { + setMethod(HttpRequest::Method::Post); +} + +DescribeAllDataSourceRequest::~DescribeAllDataSourceRequest() {} + +long DescribeAllDataSourceRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeAllDataSourceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeAllDataSourceRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeAllDataSourceRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeAllDataSourceRequest::getTableName() const { + return tableName_; +} + +void DescribeAllDataSourceRequest::setTableName(const std::string &tableName) { + tableName_ = tableName; + setParameter(std::string("TableName"), tableName); +} + +std::string DescribeAllDataSourceRequest::getSchemaName() const { + return schemaName_; +} + +void DescribeAllDataSourceRequest::setSchemaName(const std::string &schemaName) { + schemaName_ = schemaName; + setParameter(std::string("SchemaName"), schemaName); +} + +std::string DescribeAllDataSourceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeAllDataSourceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeAllDataSourceRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeAllDataSourceRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeAllDataSourceRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeAllDataSourceRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeAllDataSourceRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeAllDataSourceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/clickhouse/src/model/DescribeAllDataSourceResult.cc b/clickhouse/src/model/DescribeAllDataSourceResult.cc new file mode 100644 index 000000000..9a68bd2fa --- /dev/null +++ b/clickhouse/src/model/DescribeAllDataSourceResult.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::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +DescribeAllDataSourceResult::DescribeAllDataSourceResult() : + ServiceResult() +{} + +DescribeAllDataSourceResult::DescribeAllDataSourceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAllDataSourceResult::~DescribeAllDataSourceResult() +{} + +void DescribeAllDataSourceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTablesNode = value["Tables"]["Table"]; + for (auto valueTablesTable : allTablesNode) + { + Table tablesObject; + if(!valueTablesTable["TableName"].isNull()) + tablesObject.tableName = valueTablesTable["TableName"].asString(); + if(!valueTablesTable["DBClusterId"].isNull()) + tablesObject.dBClusterId = valueTablesTable["DBClusterId"].asString(); + if(!valueTablesTable["SchemaName"].isNull()) + tablesObject.schemaName = valueTablesTable["SchemaName"].asString(); + tables_.push_back(tablesObject); + } + auto allColumnsNode = value["Columns"]["Column"]; + for (auto valueColumnsColumn : allColumnsNode) + { + Column columnsObject; + if(!valueColumnsColumn["Type"].isNull()) + columnsObject.type = valueColumnsColumn["Type"].asString(); + if(!valueColumnsColumn["ColumnName"].isNull()) + columnsObject.columnName = valueColumnsColumn["ColumnName"].asString(); + if(!valueColumnsColumn["TableName"].isNull()) + columnsObject.tableName = valueColumnsColumn["TableName"].asString(); + if(!valueColumnsColumn["AutoIncrementColumn"].isNull()) + columnsObject.autoIncrementColumn = valueColumnsColumn["AutoIncrementColumn"].asString() == "true"; + if(!valueColumnsColumn["DBClusterId"].isNull()) + columnsObject.dBClusterId = valueColumnsColumn["DBClusterId"].asString(); + if(!valueColumnsColumn["PrimaryKey"].isNull()) + columnsObject.primaryKey = valueColumnsColumn["PrimaryKey"].asString() == "true"; + if(!valueColumnsColumn["SchemaName"].isNull()) + columnsObject.schemaName = valueColumnsColumn["SchemaName"].asString(); + columns_.push_back(columnsObject); + } + auto allSchemasNode = value["Schemas"]["Schema"]; + for (auto valueSchemasSchema : allSchemasNode) + { + Schema schemasObject; + if(!valueSchemasSchema["DBClusterId"].isNull()) + schemasObject.dBClusterId = valueSchemasSchema["DBClusterId"].asString(); + if(!valueSchemasSchema["SchemaName"].isNull()) + schemasObject.schemaName = valueSchemasSchema["SchemaName"].asString(); + schemas_.push_back(schemasObject); + } + +} + +std::vector DescribeAllDataSourceResult::getTables()const +{ + return tables_; +} + +std::vector DescribeAllDataSourceResult::getColumns()const +{ + return columns_; +} + +std::vector DescribeAllDataSourceResult::getSchemas()const +{ + return schemas_; +} + diff --git a/clickhouse/src/model/DescribeAllDataSourcesRequest.cc b/clickhouse/src/model/DescribeAllDataSourcesRequest.cc new file mode 100644 index 000000000..32c76c91f --- /dev/null +++ b/clickhouse/src/model/DescribeAllDataSourcesRequest.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 + +using AlibabaCloud::Clickhouse::Model::DescribeAllDataSourcesRequest; + +DescribeAllDataSourcesRequest::DescribeAllDataSourcesRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "DescribeAllDataSources") { + setMethod(HttpRequest::Method::Post); +} + +DescribeAllDataSourcesRequest::~DescribeAllDataSourcesRequest() {} + +long DescribeAllDataSourcesRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeAllDataSourcesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeAllDataSourcesRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeAllDataSourcesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeAllDataSourcesRequest::getTableName() const { + return tableName_; +} + +void DescribeAllDataSourcesRequest::setTableName(const std::string &tableName) { + tableName_ = tableName; + setParameter(std::string("TableName"), tableName); +} + +std::string DescribeAllDataSourcesRequest::getSchemaName() const { + return schemaName_; +} + +void DescribeAllDataSourcesRequest::setSchemaName(const std::string &schemaName) { + schemaName_ = schemaName; + setParameter(std::string("SchemaName"), schemaName); +} + +std::string DescribeAllDataSourcesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeAllDataSourcesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeAllDataSourcesRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeAllDataSourcesRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeAllDataSourcesRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeAllDataSourcesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeAllDataSourcesRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeAllDataSourcesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/clickhouse/src/model/DescribeAllDataSourcesResult.cc b/clickhouse/src/model/DescribeAllDataSourcesResult.cc new file mode 100644 index 000000000..f1fd06506 --- /dev/null +++ b/clickhouse/src/model/DescribeAllDataSourcesResult.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::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +DescribeAllDataSourcesResult::DescribeAllDataSourcesResult() : + ServiceResult() +{} + +DescribeAllDataSourcesResult::DescribeAllDataSourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAllDataSourcesResult::~DescribeAllDataSourcesResult() +{} + +void DescribeAllDataSourcesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTablesNode = value["Tables"]["Table"]; + for (auto valueTablesTable : allTablesNode) + { + Table tablesObject; + if(!valueTablesTable["TableName"].isNull()) + tablesObject.tableName = valueTablesTable["TableName"].asString(); + if(!valueTablesTable["DBClusterId"].isNull()) + tablesObject.dBClusterId = valueTablesTable["DBClusterId"].asString(); + if(!valueTablesTable["SchemaName"].isNull()) + tablesObject.schemaName = valueTablesTable["SchemaName"].asString(); + tables_.push_back(tablesObject); + } + auto allColumnsNode = value["Columns"]["Column"]; + for (auto valueColumnsColumn : allColumnsNode) + { + Column columnsObject; + if(!valueColumnsColumn["Type"].isNull()) + columnsObject.type = valueColumnsColumn["Type"].asString(); + if(!valueColumnsColumn["ColumnName"].isNull()) + columnsObject.columnName = valueColumnsColumn["ColumnName"].asString(); + if(!valueColumnsColumn["TableName"].isNull()) + columnsObject.tableName = valueColumnsColumn["TableName"].asString(); + if(!valueColumnsColumn["AutoIncrementColumn"].isNull()) + columnsObject.autoIncrementColumn = valueColumnsColumn["AutoIncrementColumn"].asString() == "true"; + if(!valueColumnsColumn["DBClusterId"].isNull()) + columnsObject.dBClusterId = valueColumnsColumn["DBClusterId"].asString(); + if(!valueColumnsColumn["PrimaryKey"].isNull()) + columnsObject.primaryKey = valueColumnsColumn["PrimaryKey"].asString() == "true"; + if(!valueColumnsColumn["SchemaName"].isNull()) + columnsObject.schemaName = valueColumnsColumn["SchemaName"].asString(); + columns_.push_back(columnsObject); + } + auto allSchemasNode = value["Schemas"]["Schema"]; + for (auto valueSchemasSchema : allSchemasNode) + { + Schema schemasObject; + if(!valueSchemasSchema["DBClusterId"].isNull()) + schemasObject.dBClusterId = valueSchemasSchema["DBClusterId"].asString(); + if(!valueSchemasSchema["SchemaName"].isNull()) + schemasObject.schemaName = valueSchemasSchema["SchemaName"].asString(); + schemas_.push_back(schemasObject); + } + +} + +std::vector DescribeAllDataSourcesResult::getTables()const +{ + return tables_; +} + +std::vector DescribeAllDataSourcesResult::getColumns()const +{ + return columns_; +} + +std::vector DescribeAllDataSourcesResult::getSchemas()const +{ + return schemas_; +} + diff --git a/clickhouse/src/model/DescribeBackupPolicyRequest.cc b/clickhouse/src/model/DescribeBackupPolicyRequest.cc new file mode 100644 index 000000000..9707bec16 --- /dev/null +++ b/clickhouse/src/model/DescribeBackupPolicyRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Clickhouse::Model::DescribeBackupPolicyRequest; + +DescribeBackupPolicyRequest::DescribeBackupPolicyRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "DescribeBackupPolicy") { + setMethod(HttpRequest::Method::Post); +} + +DescribeBackupPolicyRequest::~DescribeBackupPolicyRequest() {} + +long DescribeBackupPolicyRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeBackupPolicyRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeBackupPolicyRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeBackupPolicyRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeBackupPolicyRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeBackupPolicyRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeBackupPolicyRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeBackupPolicyRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeBackupPolicyRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeBackupPolicyRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeBackupPolicyRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeBackupPolicyRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/clickhouse/src/model/DescribeBackupPolicyResult.cc b/clickhouse/src/model/DescribeBackupPolicyResult.cc new file mode 100644 index 000000000..78fe06700 --- /dev/null +++ b/clickhouse/src/model/DescribeBackupPolicyResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +DescribeBackupPolicyResult::DescribeBackupPolicyResult() : + ServiceResult() +{} + +DescribeBackupPolicyResult::DescribeBackupPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeBackupPolicyResult::~DescribeBackupPolicyResult() +{} + +void DescribeBackupPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["PreferredBackupPeriod"].isNull()) + preferredBackupPeriod_ = value["PreferredBackupPeriod"].asString(); + if(!value["Switch"].isNull()) + _switch_ = value["Switch"].asString(); + if(!value["PreferredBackupTime"].isNull()) + preferredBackupTime_ = value["PreferredBackupTime"].asString(); + if(!value["BackupRetentionPeriod"].isNull()) + backupRetentionPeriod_ = std::stoi(value["BackupRetentionPeriod"].asString()); + if(!value["BackupSize"].isNull()) + backupSize_ = value["BackupSize"].asString(); + +} + +std::string DescribeBackupPolicyResult::getPreferredBackupPeriod()const +{ + return preferredBackupPeriod_; +} + +std::string DescribeBackupPolicyResult::get_Switch()const +{ + return _switch_; +} + +std::string DescribeBackupPolicyResult::getPreferredBackupTime()const +{ + return preferredBackupTime_; +} + +std::string DescribeBackupPolicyResult::getBackupSize()const +{ + return backupSize_; +} + +int DescribeBackupPolicyResult::getBackupRetentionPeriod()const +{ + return backupRetentionPeriod_; +} + diff --git a/clickhouse/src/model/DescribeBackupsRequest.cc b/clickhouse/src/model/DescribeBackupsRequest.cc new file mode 100644 index 000000000..54a89c5b9 --- /dev/null +++ b/clickhouse/src/model/DescribeBackupsRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Clickhouse::Model::DescribeBackupsRequest; + +DescribeBackupsRequest::DescribeBackupsRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "DescribeBackups") { + setMethod(HttpRequest::Method::Post); +} + +DescribeBackupsRequest::~DescribeBackupsRequest() {} + +long DescribeBackupsRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeBackupsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeBackupsRequest::getStartTime() const { + return startTime_; +} + +void DescribeBackupsRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); +} + +int DescribeBackupsRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeBackupsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeBackupsRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeBackupsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +int DescribeBackupsRequest::getPageSize() const { + return pageSize_; +} + +void DescribeBackupsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeBackupsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeBackupsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeBackupsRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeBackupsRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeBackupsRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeBackupsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string DescribeBackupsRequest::getBackupId() const { + return backupId_; +} + +void DescribeBackupsRequest::setBackupId(const std::string &backupId) { + backupId_ = backupId; + setParameter(std::string("BackupId"), backupId); +} + +std::string DescribeBackupsRequest::getEndTime() const { + return endTime_; +} + +void DescribeBackupsRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); +} + +long DescribeBackupsRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeBackupsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/clickhouse/src/model/DescribeBackupsResult.cc b/clickhouse/src/model/DescribeBackupsResult.cc new file mode 100644 index 000000000..fdd3fd51a --- /dev/null +++ b/clickhouse/src/model/DescribeBackupsResult.cc @@ -0,0 +1,96 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +DescribeBackupsResult::DescribeBackupsResult() : + ServiceResult() +{} + +DescribeBackupsResult::DescribeBackupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeBackupsResult::~DescribeBackupsResult() +{} + +void DescribeBackupsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allItemsNode = value["Items"]["Backup"]; + for (auto valueItemsBackup : allItemsNode) + { + Backup itemsObject; + if(!valueItemsBackup["DBClusterId"].isNull()) + itemsObject.dBClusterId = valueItemsBackup["DBClusterId"].asString(); + if(!valueItemsBackup["BackupStatus"].isNull()) + itemsObject.backupStatus = valueItemsBackup["BackupStatus"].asString(); + if(!valueItemsBackup["BackupType"].isNull()) + itemsObject.backupType = valueItemsBackup["BackupType"].asString(); + if(!valueItemsBackup["BackupStartTime"].isNull()) + itemsObject.backupStartTime = valueItemsBackup["BackupStartTime"].asString(); + if(!valueItemsBackup["BackupSize"].isNull()) + itemsObject.backupSize = std::stol(valueItemsBackup["BackupSize"].asString()); + if(!valueItemsBackup["BackupEndTime"].isNull()) + itemsObject.backupEndTime = valueItemsBackup["BackupEndTime"].asString(); + if(!valueItemsBackup["BackupSetInfo"].isNull()) + itemsObject.backupSetInfo = valueItemsBackup["BackupSetInfo"].asString(); + if(!valueItemsBackup["BackupId"].isNull()) + itemsObject.backupId = valueItemsBackup["BackupId"].asString(); + if(!valueItemsBackup["BackupMethod"].isNull()) + itemsObject.backupMethod = valueItemsBackup["BackupMethod"].asString(); + if(!valueItemsBackup["ExpireDate"].isNull()) + itemsObject.expireDate = valueItemsBackup["ExpireDate"].asString(); + items_.push_back(itemsObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = value["TotalCount"].asString(); + if(!value["PageSize"].isNull()) + pageSize_ = value["PageSize"].asString(); + if(!value["PageNumber"].isNull()) + pageNumber_ = value["PageNumber"].asString(); + +} + +std::string DescribeBackupsResult::getTotalCount()const +{ + return totalCount_; +} + +std::string DescribeBackupsResult::getPageSize()const +{ + return pageSize_; +} + +std::string DescribeBackupsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeBackupsResult::getItems()const +{ + return items_; +} + diff --git a/clickhouse/src/model/DescribeColumnsRequest.cc b/clickhouse/src/model/DescribeColumnsRequest.cc new file mode 100644 index 000000000..f1405ef46 --- /dev/null +++ b/clickhouse/src/model/DescribeColumnsRequest.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 + +using AlibabaCloud::Clickhouse::Model::DescribeColumnsRequest; + +DescribeColumnsRequest::DescribeColumnsRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "DescribeColumns") { + setMethod(HttpRequest::Method::Post); +} + +DescribeColumnsRequest::~DescribeColumnsRequest() {} + +long DescribeColumnsRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeColumnsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeColumnsRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeColumnsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeColumnsRequest::getTableName() const { + return tableName_; +} + +void DescribeColumnsRequest::setTableName(const std::string &tableName) { + tableName_ = tableName; + setParameter(std::string("TableName"), tableName); +} + +std::string DescribeColumnsRequest::getSchemaName() const { + return schemaName_; +} + +void DescribeColumnsRequest::setSchemaName(const std::string &schemaName) { + schemaName_ = schemaName; + setParameter(std::string("SchemaName"), schemaName); +} + +std::string DescribeColumnsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeColumnsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeColumnsRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeColumnsRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeColumnsRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeColumnsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeColumnsRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeColumnsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/clickhouse/src/model/DescribeColumnsResult.cc b/clickhouse/src/model/DescribeColumnsResult.cc new file mode 100644 index 000000000..e5a58530c --- /dev/null +++ b/clickhouse/src/model/DescribeColumnsResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +DescribeColumnsResult::DescribeColumnsResult() : + ServiceResult() +{} + +DescribeColumnsResult::DescribeColumnsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeColumnsResult::~DescribeColumnsResult() +{} + +void DescribeColumnsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allItemsNode = value["Items"]["Column"]; + for (auto valueItemsColumn : allItemsNode) + { + Column itemsObject; + if(!valueItemsColumn["Type"].isNull()) + itemsObject.type = valueItemsColumn["Type"].asString(); + if(!valueItemsColumn["ColumnName"].isNull()) + itemsObject.columnName = valueItemsColumn["ColumnName"].asString(); + if(!valueItemsColumn["TableName"].isNull()) + itemsObject.tableName = valueItemsColumn["TableName"].asString(); + if(!valueItemsColumn["AutoIncrementColumn"].isNull()) + itemsObject.autoIncrementColumn = valueItemsColumn["AutoIncrementColumn"].asString() == "true"; + if(!valueItemsColumn["DBClusterId"].isNull()) + itemsObject.dBClusterId = valueItemsColumn["DBClusterId"].asString(); + if(!valueItemsColumn["PrimaryKey"].isNull()) + itemsObject.primaryKey = valueItemsColumn["PrimaryKey"].asString() == "true"; + if(!valueItemsColumn["SchemaName"].isNull()) + itemsObject.schemaName = valueItemsColumn["SchemaName"].asString(); + items_.push_back(itemsObject); + } + +} + +std::vector DescribeColumnsResult::getItems()const +{ + return items_; +} + diff --git a/clickhouse/src/model/DescribeConfigHistoryRequest.cc b/clickhouse/src/model/DescribeConfigHistoryRequest.cc new file mode 100644 index 000000000..4a362ae16 --- /dev/null +++ b/clickhouse/src/model/DescribeConfigHistoryRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Clickhouse::Model::DescribeConfigHistoryRequest; + +DescribeConfigHistoryRequest::DescribeConfigHistoryRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "DescribeConfigHistory") { + setMethod(HttpRequest::Method::Get); +} + +DescribeConfigHistoryRequest::~DescribeConfigHistoryRequest() {} + +std::string DescribeConfigHistoryRequest::getStartTime() const { + return startTime_; +} + +void DescribeConfigHistoryRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); +} + +std::string DescribeConfigHistoryRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeConfigHistoryRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeConfigHistoryRequest::getEndTime() const { + return endTime_; +} + +void DescribeConfigHistoryRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); +} + diff --git a/clickhouse/src/model/DescribeConfigHistoryResult.cc b/clickhouse/src/model/DescribeConfigHistoryResult.cc new file mode 100644 index 000000000..d3c0fbd80 --- /dev/null +++ b/clickhouse/src/model/DescribeConfigHistoryResult.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::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +DescribeConfigHistoryResult::DescribeConfigHistoryResult() : + ServiceResult() +{} + +DescribeConfigHistoryResult::DescribeConfigHistoryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeConfigHistoryResult::~DescribeConfigHistoryResult() +{} + +void DescribeConfigHistoryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allConfigHistoryItemsNode = value["ConfigHistoryItems"]["ConfigHistoryItem"]; + for (auto valueConfigHistoryItemsConfigHistoryItem : allConfigHistoryItemsNode) + { + ConfigHistoryItem configHistoryItemsObject; + if(!valueConfigHistoryItemsConfigHistoryItem["Time"].isNull()) + configHistoryItemsObject.time = valueConfigHistoryItemsConfigHistoryItem["Time"].asString(); + if(!valueConfigHistoryItemsConfigHistoryItem["OwnerId"].isNull()) + configHistoryItemsObject.ownerId = valueConfigHistoryItemsConfigHistoryItem["OwnerId"].asString(); + if(!valueConfigHistoryItemsConfigHistoryItem["Reason"].isNull()) + configHistoryItemsObject.reason = valueConfigHistoryItemsConfigHistoryItem["Reason"].asString(); + if(!valueConfigHistoryItemsConfigHistoryItem["Success"].isNull()) + configHistoryItemsObject.success = valueConfigHistoryItemsConfigHistoryItem["Success"].asString() == "true"; + if(!valueConfigHistoryItemsConfigHistoryItem["ChangeId"].isNull()) + configHistoryItemsObject.changeId = valueConfigHistoryItemsConfigHistoryItem["ChangeId"].asString(); + configHistoryItems_.push_back(configHistoryItemsObject); + } + +} + +std::vector DescribeConfigHistoryResult::getConfigHistoryItems()const +{ + return configHistoryItems_; +} + diff --git a/clickhouse/src/model/DescribeConfigVersionDifferenceRequest.cc b/clickhouse/src/model/DescribeConfigVersionDifferenceRequest.cc new file mode 100644 index 000000000..c8fb83cc0 --- /dev/null +++ b/clickhouse/src/model/DescribeConfigVersionDifferenceRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Clickhouse::Model::DescribeConfigVersionDifferenceRequest; + +DescribeConfigVersionDifferenceRequest::DescribeConfigVersionDifferenceRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "DescribeConfigVersionDifference") { + setMethod(HttpRequest::Method::Get); +} + +DescribeConfigVersionDifferenceRequest::~DescribeConfigVersionDifferenceRequest() {} + +std::string DescribeConfigVersionDifferenceRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeConfigVersionDifferenceRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeConfigVersionDifferenceRequest::getChangeId() const { + return changeId_; +} + +void DescribeConfigVersionDifferenceRequest::setChangeId(const std::string &changeId) { + changeId_ = changeId; + setParameter(std::string("ChangeId"), changeId); +} + diff --git a/clickhouse/src/model/DescribeConfigVersionDifferenceResult.cc b/clickhouse/src/model/DescribeConfigVersionDifferenceResult.cc new file mode 100644 index 000000000..18f1a9ca5 --- /dev/null +++ b/clickhouse/src/model/DescribeConfigVersionDifferenceResult.cc @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +DescribeConfigVersionDifferenceResult::DescribeConfigVersionDifferenceResult() : + ServiceResult() +{} + +DescribeConfigVersionDifferenceResult::DescribeConfigVersionDifferenceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeConfigVersionDifferenceResult::~DescribeConfigVersionDifferenceResult() +{} + +void DescribeConfigVersionDifferenceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["OldConfigXML"].isNull()) + oldConfigXML_ = value["OldConfigXML"].asString(); + if(!value["NewConfigXML"].isNull()) + newConfigXML_ = value["NewConfigXML"].asString(); + +} + +std::string DescribeConfigVersionDifferenceResult::getOldConfigXML()const +{ + return oldConfigXML_; +} + +std::string DescribeConfigVersionDifferenceResult::getNewConfigXML()const +{ + return newConfigXML_; +} + diff --git a/clickhouse/src/model/DescribeDBClusterAccessWhiteListRequest.cc b/clickhouse/src/model/DescribeDBClusterAccessWhiteListRequest.cc new file mode 100644 index 000000000..380ad4c8c --- /dev/null +++ b/clickhouse/src/model/DescribeDBClusterAccessWhiteListRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Clickhouse::Model::DescribeDBClusterAccessWhiteListRequest; + +DescribeDBClusterAccessWhiteListRequest::DescribeDBClusterAccessWhiteListRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "DescribeDBClusterAccessWhiteList") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDBClusterAccessWhiteListRequest::~DescribeDBClusterAccessWhiteListRequest() {} + +long DescribeDBClusterAccessWhiteListRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeDBClusterAccessWhiteListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeDBClusterAccessWhiteListRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeDBClusterAccessWhiteListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeDBClusterAccessWhiteListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeDBClusterAccessWhiteListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeDBClusterAccessWhiteListRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeDBClusterAccessWhiteListRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeDBClusterAccessWhiteListRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeDBClusterAccessWhiteListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeDBClusterAccessWhiteListRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeDBClusterAccessWhiteListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/clickhouse/src/model/DescribeDBClusterAccessWhiteListResult.cc b/clickhouse/src/model/DescribeDBClusterAccessWhiteListResult.cc new file mode 100644 index 000000000..61f1f3cbe --- /dev/null +++ b/clickhouse/src/model/DescribeDBClusterAccessWhiteListResult.cc @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +DescribeDBClusterAccessWhiteListResult::DescribeDBClusterAccessWhiteListResult() : + ServiceResult() +{} + +DescribeDBClusterAccessWhiteListResult::DescribeDBClusterAccessWhiteListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBClusterAccessWhiteListResult::~DescribeDBClusterAccessWhiteListResult() +{} + +void DescribeDBClusterAccessWhiteListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDBClusterAccessWhiteListNode = value["DBClusterAccessWhiteList"]["IPArray"]; + for (auto valueDBClusterAccessWhiteListIPArray : allDBClusterAccessWhiteListNode) + { + IPArray dBClusterAccessWhiteListObject; + if(!valueDBClusterAccessWhiteListIPArray["DBClusterIPArrayAttribute"].isNull()) + dBClusterAccessWhiteListObject.dBClusterIPArrayAttribute = valueDBClusterAccessWhiteListIPArray["DBClusterIPArrayAttribute"].asString(); + if(!valueDBClusterAccessWhiteListIPArray["SecurityIPList"].isNull()) + dBClusterAccessWhiteListObject.securityIPList = valueDBClusterAccessWhiteListIPArray["SecurityIPList"].asString(); + if(!valueDBClusterAccessWhiteListIPArray["DBClusterIPArrayName"].isNull()) + dBClusterAccessWhiteListObject.dBClusterIPArrayName = valueDBClusterAccessWhiteListIPArray["DBClusterIPArrayName"].asString(); + dBClusterAccessWhiteList_.push_back(dBClusterAccessWhiteListObject); + } + +} + +std::vector DescribeDBClusterAccessWhiteListResult::getDBClusterAccessWhiteList()const +{ + return dBClusterAccessWhiteList_; +} + diff --git a/clickhouse/src/model/DescribeDBClusterAttributeRequest.cc b/clickhouse/src/model/DescribeDBClusterAttributeRequest.cc new file mode 100644 index 000000000..019317faf --- /dev/null +++ b/clickhouse/src/model/DescribeDBClusterAttributeRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Clickhouse::Model::DescribeDBClusterAttributeRequest; + +DescribeDBClusterAttributeRequest::DescribeDBClusterAttributeRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "DescribeDBClusterAttribute") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDBClusterAttributeRequest::~DescribeDBClusterAttributeRequest() {} + +long DescribeDBClusterAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeDBClusterAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeDBClusterAttributeRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeDBClusterAttributeRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeDBClusterAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeDBClusterAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeDBClusterAttributeRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeDBClusterAttributeRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeDBClusterAttributeRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeDBClusterAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeDBClusterAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeDBClusterAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/clickhouse/src/model/DescribeDBClusterAttributeResult.cc b/clickhouse/src/model/DescribeDBClusterAttributeResult.cc new file mode 100644 index 000000000..c0d862e37 --- /dev/null +++ b/clickhouse/src/model/DescribeDBClusterAttributeResult.cc @@ -0,0 +1,173 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +DescribeDBClusterAttributeResult::DescribeDBClusterAttributeResult() : + ServiceResult() +{} + +DescribeDBClusterAttributeResult::DescribeDBClusterAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBClusterAttributeResult::~DescribeDBClusterAttributeResult() +{} + +void DescribeDBClusterAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dBClusterNode = value["DBCluster"]; + if(!dBClusterNode["VpcId"].isNull()) + dBCluster_.vpcId = dBClusterNode["VpcId"].asString(); + if(!dBClusterNode["SupportBackup"].isNull()) + dBCluster_.supportBackup = std::stoi(dBClusterNode["SupportBackup"].asString()); + if(!dBClusterNode["SupportOss"].isNull()) + dBCluster_.supportOss = std::stoi(dBClusterNode["SupportOss"].asString()); + if(!dBClusterNode["EncryptionType"].isNull()) + dBCluster_.encryptionType = dBClusterNode["EncryptionType"].asString(); + if(!dBClusterNode["DBNodeCount"].isNull()) + dBCluster_.dBNodeCount = std::stol(dBClusterNode["DBNodeCount"].asString()); + if(!dBClusterNode["MaintainTime"].isNull()) + dBCluster_.maintainTime = dBClusterNode["MaintainTime"].asString(); + if(!dBClusterNode["CreateTime"].isNull()) + dBCluster_.createTime = dBClusterNode["CreateTime"].asString(); + if(!dBClusterNode["PayType"].isNull()) + dBCluster_.payType = dBClusterNode["PayType"].asString(); + if(!dBClusterNode["PublicConnectionString"].isNull()) + dBCluster_.publicConnectionString = dBClusterNode["PublicConnectionString"].asString(); + if(!dBClusterNode["StorageType"].isNull()) + dBCluster_.storageType = dBClusterNode["StorageType"].asString(); + if(!dBClusterNode["Port"].isNull()) + dBCluster_.port = std::stoi(dBClusterNode["Port"].asString()); + if(!dBClusterNode["LockMode"].isNull()) + dBCluster_.lockMode = dBClusterNode["LockMode"].asString(); + if(!dBClusterNode["Bid"].isNull()) + dBCluster_.bid = dBClusterNode["Bid"].asString(); + if(!dBClusterNode["EngineVersion"].isNull()) + dBCluster_.engineVersion = dBClusterNode["EngineVersion"].asString(); + if(!dBClusterNode["IsExpired"].isNull()) + dBCluster_.isExpired = dBClusterNode["IsExpired"].asString(); + if(!dBClusterNode["VpcCloudInstanceId"].isNull()) + dBCluster_.vpcCloudInstanceId = dBClusterNode["VpcCloudInstanceId"].asString(); + if(!dBClusterNode["DBClusterId"].isNull()) + dBCluster_.dBClusterId = dBClusterNode["DBClusterId"].asString(); + if(!dBClusterNode["ConnectionString"].isNull()) + dBCluster_.connectionString = dBClusterNode["ConnectionString"].asString(); + if(!dBClusterNode["EncryptionKey"].isNull()) + dBCluster_.encryptionKey = dBClusterNode["EncryptionKey"].asString(); + if(!dBClusterNode["DBClusterType"].isNull()) + dBCluster_.dBClusterType = dBClusterNode["DBClusterType"].asString(); + if(!dBClusterNode["CommodityCode"].isNull()) + dBCluster_.commodityCode = dBClusterNode["CommodityCode"].asString(); + if(!dBClusterNode["ExpireTime"].isNull()) + dBCluster_.expireTime = dBClusterNode["ExpireTime"].asString(); + if(!dBClusterNode["DBNodeStorage"].isNull()) + dBCluster_.dBNodeStorage = std::stol(dBClusterNode["DBNodeStorage"].asString()); + if(!dBClusterNode["DBNodeClass"].isNull()) + dBCluster_.dBNodeClass = dBClusterNode["DBNodeClass"].asString(); + if(!dBClusterNode["AliUid"].isNull()) + dBCluster_.aliUid = dBClusterNode["AliUid"].asString(); + if(!dBClusterNode["LockReason"].isNull()) + dBCluster_.lockReason = dBClusterNode["LockReason"].asString(); + if(!dBClusterNode["RegionId"].isNull()) + dBCluster_.regionId = dBClusterNode["RegionId"].asString(); + if(!dBClusterNode["PublicPort"].isNull()) + dBCluster_.publicPort = dBClusterNode["PublicPort"].asString(); + if(!dBClusterNode["VSwitchId"].isNull()) + dBCluster_.vSwitchId = dBClusterNode["VSwitchId"].asString(); + if(!dBClusterNode["DBClusterStatus"].isNull()) + dBCluster_.dBClusterStatus = dBClusterNode["DBClusterStatus"].asString(); + if(!dBClusterNode["DBClusterNetworkType"].isNull()) + dBCluster_.dBClusterNetworkType = dBClusterNode["DBClusterNetworkType"].asString(); + if(!dBClusterNode["DBClusterDescription"].isNull()) + dBCluster_.dBClusterDescription = dBClusterNode["DBClusterDescription"].asString(); + if(!dBClusterNode["ZoneId"].isNull()) + dBCluster_.zoneId = dBClusterNode["ZoneId"].asString(); + if(!dBClusterNode["Category"].isNull()) + dBCluster_.category = dBClusterNode["Category"].asString(); + if(!dBClusterNode["Engine"].isNull()) + dBCluster_.engine = dBClusterNode["Engine"].asString(); + if(!dBClusterNode["SupportMysqlPort"].isNull()) + dBCluster_.supportMysqlPort = dBClusterNode["SupportMysqlPort"].asString() == "true"; + if(!dBClusterNode["SupportHttpsPort"].isNull()) + dBCluster_.supportHttpsPort = dBClusterNode["SupportHttpsPort"].asString() == "true"; + if(!dBClusterNode["ControlVersion"].isNull()) + dBCluster_.controlVersion = dBClusterNode["ControlVersion"].asString(); + if(!dBClusterNode["PublicIpAddr"].isNull()) + dBCluster_.publicIpAddr = dBClusterNode["PublicIpAddr"].asString(); + if(!dBClusterNode["VpcIpAddr"].isNull()) + dBCluster_.vpcIpAddr = dBClusterNode["VpcIpAddr"].asString(); + if(!dBClusterNode["EngineMinorVersion"].isNull()) + dBCluster_.engineMinorVersion = dBClusterNode["EngineMinorVersion"].asString(); + if(!dBClusterNode["EngineLatestMinorVersion"].isNull()) + dBCluster_.engineLatestMinorVersion = dBClusterNode["EngineLatestMinorVersion"].asString(); + if(!dBClusterNode["MaintainAutoType"].isNull()) + dBCluster_.maintainAutoType = dBClusterNode["MaintainAutoType"].asString() == "true"; + if(!dBClusterNode["ExtStorageType"].isNull()) + dBCluster_.extStorageType = dBClusterNode["ExtStorageType"].asString(); + if(!dBClusterNode["ExtStorageSize"].isNull()) + dBCluster_.extStorageSize = std::stoi(dBClusterNode["ExtStorageSize"].asString()); + if(!dBClusterNode["ResourceGroupId"].isNull()) + dBCluster_.resourceGroupId = dBClusterNode["ResourceGroupId"].asString(); + if(!dBClusterNode["ZookeeperClass"].isNull()) + dBCluster_.zookeeperClass = dBClusterNode["ZookeeperClass"].asString(); + if(!dBClusterNode["AppointmentRestartTime"].isNull()) + dBCluster_.appointmentRestartTime = dBClusterNode["AppointmentRestartTime"].asString(); + if(!dBClusterNode["ZoneIdVswitchMap"].isNull()) + dBCluster_.zoneIdVswitchMap = dBClusterNode["ZoneIdVswitchMap"].asString(); + if(!dBClusterNode["AvailableUpgradeMajorVersion"].isNull()) + dBCluster_.availableUpgradeMajorVersion = dBClusterNode["AvailableUpgradeMajorVersion"].asString(); + if(!dBClusterNode["AppointmentRestartNodeTime"].isNull()) + dBCluster_.appointmentRestartNodeTime = dBClusterNode["AppointmentRestartNodeTime"].asString(); + if(!dBClusterNode["AppointmentRestartNodeList"].isNull()) + dBCluster_.appointmentRestartNodeList = dBClusterNode["AppointmentRestartNodeList"].asString(); + if(!dBClusterNode["AppointmentElectZookeeperTime"].isNull()) + dBCluster_.appointmentElectZookeeperTime = dBClusterNode["AppointmentElectZookeeperTime"].asString(); + if(!dBClusterNode["AppointmentElectZookeeperDisableWrite"].isNull()) + dBCluster_.appointmentElectZookeeperDisableWrite = dBClusterNode["AppointmentElectZookeeperDisableWrite"].asString() == "true"; + auto allTagsNode = dBClusterNode["Tags"]["Tag"]; + for (auto dBClusterNodeTagsTag : allTagsNode) + { + DBCluster::Tag tagObject; + if(!dBClusterNodeTagsTag["Key"].isNull()) + tagObject.key = dBClusterNodeTagsTag["Key"].asString(); + if(!dBClusterNodeTagsTag["Value"].isNull()) + tagObject.value = dBClusterNodeTagsTag["Value"].asString(); + dBCluster_.tags.push_back(tagObject); + } + auto scaleOutStatusNode = dBClusterNode["ScaleOutStatus"]; + if(!scaleOutStatusNode["Progress"].isNull()) + dBCluster_.scaleOutStatus.progress = scaleOutStatusNode["Progress"].asString(); + if(!scaleOutStatusNode["Ratio"].isNull()) + dBCluster_.scaleOutStatus.ratio = scaleOutStatusNode["Ratio"].asString(); + +} + +DescribeDBClusterAttributeResult::DBCluster DescribeDBClusterAttributeResult::getDBCluster()const +{ + return dBCluster_; +} + diff --git a/clickhouse/src/model/DescribeDBClusterConfigInXMLRequest.cc b/clickhouse/src/model/DescribeDBClusterConfigInXMLRequest.cc new file mode 100644 index 000000000..5b6332ea0 --- /dev/null +++ b/clickhouse/src/model/DescribeDBClusterConfigInXMLRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Clickhouse::Model::DescribeDBClusterConfigInXMLRequest; + +DescribeDBClusterConfigInXMLRequest::DescribeDBClusterConfigInXMLRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "DescribeDBClusterConfigInXML") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDBClusterConfigInXMLRequest::~DescribeDBClusterConfigInXMLRequest() {} + +std::string DescribeDBClusterConfigInXMLRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeDBClusterConfigInXMLRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeDBClusterConfigInXMLRequest::getRegionId() const { + return regionId_; +} + +void DescribeDBClusterConfigInXMLRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/clickhouse/src/model/DescribeDBClusterConfigInXMLResult.cc b/clickhouse/src/model/DescribeDBClusterConfigInXMLResult.cc new file mode 100644 index 000000000..16f5b8ed2 --- /dev/null +++ b/clickhouse/src/model/DescribeDBClusterConfigInXMLResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +DescribeDBClusterConfigInXMLResult::DescribeDBClusterConfigInXMLResult() : + ServiceResult() +{} + +DescribeDBClusterConfigInXMLResult::DescribeDBClusterConfigInXMLResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBClusterConfigInXMLResult::~DescribeDBClusterConfigInXMLResult() +{} + +void DescribeDBClusterConfigInXMLResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Config"].isNull()) + config_ = value["Config"].asString(); + +} + +std::string DescribeDBClusterConfigInXMLResult::getConfig()const +{ + return config_; +} + diff --git a/clickhouse/src/model/DescribeDBClusterConfigRequest.cc b/clickhouse/src/model/DescribeDBClusterConfigRequest.cc new file mode 100644 index 000000000..ec5ffb6de --- /dev/null +++ b/clickhouse/src/model/DescribeDBClusterConfigRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Clickhouse::Model::DescribeDBClusterConfigRequest; + +DescribeDBClusterConfigRequest::DescribeDBClusterConfigRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "DescribeDBClusterConfig") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDBClusterConfigRequest::~DescribeDBClusterConfigRequest() {} + +long DescribeDBClusterConfigRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeDBClusterConfigRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeDBClusterConfigRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeDBClusterConfigRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeDBClusterConfigRequest::getRegionId() const { + return regionId_; +} + +void DescribeDBClusterConfigRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeDBClusterConfigRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeDBClusterConfigRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeDBClusterConfigRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeDBClusterConfigRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeDBClusterConfigRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeDBClusterConfigRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeDBClusterConfigRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeDBClusterConfigRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/clickhouse/src/model/DescribeDBClusterConfigResult.cc b/clickhouse/src/model/DescribeDBClusterConfigResult.cc new file mode 100644 index 000000000..1994f7f1b --- /dev/null +++ b/clickhouse/src/model/DescribeDBClusterConfigResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +DescribeDBClusterConfigResult::DescribeDBClusterConfigResult() : + ServiceResult() +{} + +DescribeDBClusterConfigResult::DescribeDBClusterConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBClusterConfigResult::~DescribeDBClusterConfigResult() +{} + +void DescribeDBClusterConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Config"].isNull()) + config_ = value["Config"].asString(); + +} + +std::string DescribeDBClusterConfigResult::getConfig()const +{ + return config_; +} + diff --git a/clickhouse/src/model/DescribeDBClusterNetInfoItemsRequest.cc b/clickhouse/src/model/DescribeDBClusterNetInfoItemsRequest.cc new file mode 100644 index 000000000..7b9d138ef --- /dev/null +++ b/clickhouse/src/model/DescribeDBClusterNetInfoItemsRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Clickhouse::Model::DescribeDBClusterNetInfoItemsRequest; + +DescribeDBClusterNetInfoItemsRequest::DescribeDBClusterNetInfoItemsRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "DescribeDBClusterNetInfoItems") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDBClusterNetInfoItemsRequest::~DescribeDBClusterNetInfoItemsRequest() {} + +long DescribeDBClusterNetInfoItemsRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeDBClusterNetInfoItemsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeDBClusterNetInfoItemsRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeDBClusterNetInfoItemsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeDBClusterNetInfoItemsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeDBClusterNetInfoItemsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeDBClusterNetInfoItemsRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeDBClusterNetInfoItemsRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeDBClusterNetInfoItemsRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeDBClusterNetInfoItemsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeDBClusterNetInfoItemsRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeDBClusterNetInfoItemsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/clickhouse/src/model/DescribeDBClusterNetInfoItemsResult.cc b/clickhouse/src/model/DescribeDBClusterNetInfoItemsResult.cc new file mode 100644 index 000000000..5c49dccec --- /dev/null +++ b/clickhouse/src/model/DescribeDBClusterNetInfoItemsResult.cc @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +DescribeDBClusterNetInfoItemsResult::DescribeDBClusterNetInfoItemsResult() : + ServiceResult() +{} + +DescribeDBClusterNetInfoItemsResult::DescribeDBClusterNetInfoItemsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBClusterNetInfoItemsResult::~DescribeDBClusterNetInfoItemsResult() +{} + +void DescribeDBClusterNetInfoItemsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allNetInfoItemsNode = value["NetInfoItems"]["NetInfoItem"]; + for (auto valueNetInfoItemsNetInfoItem : allNetInfoItemsNode) + { + NetInfoItem netInfoItemsObject; + if(!valueNetInfoItemsNetInfoItem["VpcId"].isNull()) + netInfoItemsObject.vpcId = valueNetInfoItemsNetInfoItem["VpcId"].asString(); + if(!valueNetInfoItemsNetInfoItem["VSwitchId"].isNull()) + netInfoItemsObject.vSwitchId = valueNetInfoItemsNetInfoItem["VSwitchId"].asString(); + if(!valueNetInfoItemsNetInfoItem["ConnectionString"].isNull()) + netInfoItemsObject.connectionString = valueNetInfoItemsNetInfoItem["ConnectionString"].asString(); + if(!valueNetInfoItemsNetInfoItem["JdbcPort"].isNull()) + netInfoItemsObject.jdbcPort = valueNetInfoItemsNetInfoItem["JdbcPort"].asString(); + if(!valueNetInfoItemsNetInfoItem["NetType"].isNull()) + netInfoItemsObject.netType = valueNetInfoItemsNetInfoItem["NetType"].asString(); + if(!valueNetInfoItemsNetInfoItem["HttpPort"].isNull()) + netInfoItemsObject.httpPort = valueNetInfoItemsNetInfoItem["HttpPort"].asString(); + if(!valueNetInfoItemsNetInfoItem["IPAddress"].isNull()) + netInfoItemsObject.iPAddress = valueNetInfoItemsNetInfoItem["IPAddress"].asString(); + if(!valueNetInfoItemsNetInfoItem["HttpsPort"].isNull()) + netInfoItemsObject.httpsPort = valueNetInfoItemsNetInfoItem["HttpsPort"].asString(); + if(!valueNetInfoItemsNetInfoItem["MySQLPort"].isNull()) + netInfoItemsObject.mySQLPort = valueNetInfoItemsNetInfoItem["MySQLPort"].asString(); + netInfoItems_.push_back(netInfoItemsObject); + } + if(!value["ClusterNetworkType"].isNull()) + clusterNetworkType_ = value["ClusterNetworkType"].asString(); + if(!value["EnableSLB"].isNull()) + enableSLB_ = value["EnableSLB"].asString() == "true"; + +} + +std::vector DescribeDBClusterNetInfoItemsResult::getNetInfoItems()const +{ + return netInfoItems_; +} + +std::string DescribeDBClusterNetInfoItemsResult::getClusterNetworkType()const +{ + return clusterNetworkType_; +} + +bool DescribeDBClusterNetInfoItemsResult::getEnableSLB()const +{ + return enableSLB_; +} + diff --git a/clickhouse/src/model/DescribeDBClusterPerformanceRequest.cc b/clickhouse/src/model/DescribeDBClusterPerformanceRequest.cc new file mode 100644 index 000000000..97a86a331 --- /dev/null +++ b/clickhouse/src/model/DescribeDBClusterPerformanceRequest.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Clickhouse::Model::DescribeDBClusterPerformanceRequest; + +DescribeDBClusterPerformanceRequest::DescribeDBClusterPerformanceRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "DescribeDBClusterPerformance") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDBClusterPerformanceRequest::~DescribeDBClusterPerformanceRequest() {} + +long DescribeDBClusterPerformanceRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeDBClusterPerformanceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeDBClusterPerformanceRequest::getStartTime() const { + return startTime_; +} + +void DescribeDBClusterPerformanceRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); +} + +std::string DescribeDBClusterPerformanceRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeDBClusterPerformanceRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeDBClusterPerformanceRequest::getKey() const { + return key_; +} + +void DescribeDBClusterPerformanceRequest::setKey(const std::string &key) { + key_ = key; + setParameter(std::string("Key"), key); +} + +std::string DescribeDBClusterPerformanceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeDBClusterPerformanceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeDBClusterPerformanceRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeDBClusterPerformanceRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeDBClusterPerformanceRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeDBClusterPerformanceRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string DescribeDBClusterPerformanceRequest::getEndTime() const { + return endTime_; +} + +void DescribeDBClusterPerformanceRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); +} + +long DescribeDBClusterPerformanceRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeDBClusterPerformanceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/clickhouse/src/model/DescribeDBClusterPerformanceResult.cc b/clickhouse/src/model/DescribeDBClusterPerformanceResult.cc new file mode 100644 index 000000000..7014c676a --- /dev/null +++ b/clickhouse/src/model/DescribeDBClusterPerformanceResult.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::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +DescribeDBClusterPerformanceResult::DescribeDBClusterPerformanceResult() : + ServiceResult() +{} + +DescribeDBClusterPerformanceResult::DescribeDBClusterPerformanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBClusterPerformanceResult::~DescribeDBClusterPerformanceResult() +{} + +void DescribeDBClusterPerformanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allPerformancesNode = value["Performances"]["PerformanceItem"]; + for (auto valuePerformancesPerformanceItem : allPerformancesNode) + { + PerformanceItem performancesObject; + if(!valuePerformancesPerformanceItem["Key"].isNull()) + performancesObject.key = valuePerformancesPerformanceItem["Key"].asString(); + if(!valuePerformancesPerformanceItem["Unit"].isNull()) + performancesObject.unit = valuePerformancesPerformanceItem["Unit"].asString(); + if(!valuePerformancesPerformanceItem["Name"].isNull()) + performancesObject.name = valuePerformancesPerformanceItem["Name"].asString(); + auto allSeriesNode = valuePerformancesPerformanceItem["Series"]["SeriesItem"]; + for (auto valuePerformancesPerformanceItemSeriesSeriesItem : allSeriesNode) + { + PerformanceItem::SeriesItem seriesObject; + if(!valuePerformancesPerformanceItemSeriesSeriesItem["Name"].isNull()) + seriesObject.name = valuePerformancesPerformanceItemSeriesSeriesItem["Name"].asString(); + auto allValuesNode = valuePerformancesPerformanceItemSeriesSeriesItem["Values"]["ValueItem"]; + for (auto valuePerformancesPerformanceItemSeriesSeriesItemValuesValueItem : allValuesNode) + { + PerformanceItem::SeriesItem::ValueItem valuesObject; + auto allPoint = value["Point"]["Point"]; + for (auto value : allPoint) + valuesObject.point.push_back(value.asString()); + seriesObject.values.push_back(valuesObject); + } + performancesObject.series.push_back(seriesObject); + } + performances_.push_back(performancesObject); + } + if(!value["EndTime"].isNull()) + endTime_ = value["EndTime"].asString(); + if(!value["StartTime"].isNull()) + startTime_ = value["StartTime"].asString(); + if(!value["DBClusterId"].isNull()) + dBClusterId_ = value["DBClusterId"].asString(); + +} + +std::string DescribeDBClusterPerformanceResult::getEndTime()const +{ + return endTime_; +} + +std::string DescribeDBClusterPerformanceResult::getStartTime()const +{ + return startTime_; +} + +std::string DescribeDBClusterPerformanceResult::getDBClusterId()const +{ + return dBClusterId_; +} + +std::vector DescribeDBClusterPerformanceResult::getPerformances()const +{ + return performances_; +} + diff --git a/clickhouse/src/model/DescribeDBClustersRequest.cc b/clickhouse/src/model/DescribeDBClustersRequest.cc new file mode 100644 index 000000000..ec62f5a2d --- /dev/null +++ b/clickhouse/src/model/DescribeDBClustersRequest.cc @@ -0,0 +1,158 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Clickhouse::Model::DescribeDBClustersRequest; + +DescribeDBClustersRequest::DescribeDBClustersRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "DescribeDBClusters") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDBClustersRequest::~DescribeDBClustersRequest() {} + +long DescribeDBClustersRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeDBClustersRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeDBClustersRequest::getDBClusterDescription() const { + return dBClusterDescription_; +} + +void DescribeDBClustersRequest::setDBClusterDescription(const std::string &dBClusterDescription) { + dBClusterDescription_ = dBClusterDescription; + setParameter(std::string("DBClusterDescription"), dBClusterDescription); +} + +std::string DescribeDBClustersRequest::getDBClusterStatus() const { + return dBClusterStatus_; +} + +void DescribeDBClustersRequest::setDBClusterStatus(const std::string &dBClusterStatus) { + dBClusterStatus_ = dBClusterStatus; + setParameter(std::string("DBClusterStatus"), dBClusterStatus); +} + +std::string DescribeDBClustersRequest::getControlVersion() const { + return controlVersion_; +} + +void DescribeDBClustersRequest::setControlVersion(const std::string &controlVersion) { + controlVersion_ = controlVersion; + setParameter(std::string("ControlVersion"), controlVersion); +} + +int DescribeDBClustersRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeDBClustersRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeDBClustersRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeDBClustersRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeDBClustersRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void DescribeDBClustersRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string DescribeDBClustersRequest::getRegionId() const { + return regionId_; +} + +void DescribeDBClustersRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int DescribeDBClustersRequest::getPageSize() const { + return pageSize_; +} + +void DescribeDBClustersRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::vector DescribeDBClustersRequest::getTag() const { + return tag_; +} + +void DescribeDBClustersRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + +std::string DescribeDBClustersRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeDBClustersRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeDBClustersRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeDBClustersRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeDBClustersRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeDBClustersRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeDBClustersRequest::getDBClusterIds() const { + return dBClusterIds_; +} + +void DescribeDBClustersRequest::setDBClusterIds(const std::string &dBClusterIds) { + dBClusterIds_ = dBClusterIds; + setParameter(std::string("DBClusterIds"), dBClusterIds); +} + diff --git a/clickhouse/src/model/DescribeDBClustersResult.cc b/clickhouse/src/model/DescribeDBClustersResult.cc new file mode 100644 index 000000000..960fc4366 --- /dev/null +++ b/clickhouse/src/model/DescribeDBClustersResult.cc @@ -0,0 +1,153 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +DescribeDBClustersResult::DescribeDBClustersResult() : + ServiceResult() +{} + +DescribeDBClustersResult::DescribeDBClustersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBClustersResult::~DescribeDBClustersResult() +{} + +void DescribeDBClustersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDBClustersNode = value["DBClusters"]["DBCluster"]; + for (auto valueDBClustersDBCluster : allDBClustersNode) + { + DBCluster dBClustersObject; + if(!valueDBClustersDBCluster["VpcId"].isNull()) + dBClustersObject.vpcId = valueDBClustersDBCluster["VpcId"].asString(); + if(!valueDBClustersDBCluster["DBNodeCount"].isNull()) + dBClustersObject.dBNodeCount = std::stol(valueDBClustersDBCluster["DBNodeCount"].asString()); + if(!valueDBClustersDBCluster["CreateTime"].isNull()) + dBClustersObject.createTime = valueDBClustersDBCluster["CreateTime"].asString(); + if(!valueDBClustersDBCluster["PayType"].isNull()) + dBClustersObject.payType = valueDBClustersDBCluster["PayType"].asString(); + if(!valueDBClustersDBCluster["StorageType"].isNull()) + dBClustersObject.storageType = valueDBClustersDBCluster["StorageType"].asString(); + if(!valueDBClustersDBCluster["Port"].isNull()) + dBClustersObject.port = std::stoi(valueDBClustersDBCluster["Port"].asString()); + if(!valueDBClustersDBCluster["LockMode"].isNull()) + dBClustersObject.lockMode = valueDBClustersDBCluster["LockMode"].asString(); + if(!valueDBClustersDBCluster["Bid"].isNull()) + dBClustersObject.bid = valueDBClustersDBCluster["Bid"].asString(); + if(!valueDBClustersDBCluster["IsExpired"].isNull()) + dBClustersObject.isExpired = valueDBClustersDBCluster["IsExpired"].asString(); + if(!valueDBClustersDBCluster["VpcCloudInstanceId"].isNull()) + dBClustersObject.vpcCloudInstanceId = valueDBClustersDBCluster["VpcCloudInstanceId"].asString(); + if(!valueDBClustersDBCluster["ScaleOutDisableWriteWindows"].isNull()) + dBClustersObject.scaleOutDisableWriteWindows = valueDBClustersDBCluster["ScaleOutDisableWriteWindows"].asString(); + if(!valueDBClustersDBCluster["DBClusterId"].isNull()) + dBClustersObject.dBClusterId = valueDBClustersDBCluster["DBClusterId"].asString(); + if(!valueDBClustersDBCluster["ConnectionString"].isNull()) + dBClustersObject.connectionString = valueDBClustersDBCluster["ConnectionString"].asString(); + if(!valueDBClustersDBCluster["CommodityCode"].isNull()) + dBClustersObject.commodityCode = valueDBClustersDBCluster["CommodityCode"].asString(); + if(!valueDBClustersDBCluster["ExpireTime"].isNull()) + dBClustersObject.expireTime = valueDBClustersDBCluster["ExpireTime"].asString(); + if(!valueDBClustersDBCluster["DBNodeStorage"].isNull()) + dBClustersObject.dBNodeStorage = std::stol(valueDBClustersDBCluster["DBNodeStorage"].asString()); + if(!valueDBClustersDBCluster["DBNodeClass"].isNull()) + dBClustersObject.dBNodeClass = valueDBClustersDBCluster["DBNodeClass"].asString(); + if(!valueDBClustersDBCluster["AliUid"].isNull()) + dBClustersObject.aliUid = valueDBClustersDBCluster["AliUid"].asString(); + if(!valueDBClustersDBCluster["LockReason"].isNull()) + dBClustersObject.lockReason = valueDBClustersDBCluster["LockReason"].asString(); + if(!valueDBClustersDBCluster["RegionId"].isNull()) + dBClustersObject.regionId = valueDBClustersDBCluster["RegionId"].asString(); + if(!valueDBClustersDBCluster["VSwitchId"].isNull()) + dBClustersObject.vSwitchId = valueDBClustersDBCluster["VSwitchId"].asString(); + if(!valueDBClustersDBCluster["DBClusterStatus"].isNull()) + dBClustersObject.dBClusterStatus = valueDBClustersDBCluster["DBClusterStatus"].asString(); + if(!valueDBClustersDBCluster["DBClusterDescription"].isNull()) + dBClustersObject.dBClusterDescription = valueDBClustersDBCluster["DBClusterDescription"].asString(); + if(!valueDBClustersDBCluster["DBClusterNetworkType"].isNull()) + dBClustersObject.dBClusterNetworkType = valueDBClustersDBCluster["DBClusterNetworkType"].asString(); + if(!valueDBClustersDBCluster["ZoneId"].isNull()) + dBClustersObject.zoneId = valueDBClustersDBCluster["ZoneId"].asString(); + if(!valueDBClustersDBCluster["Category"].isNull()) + dBClustersObject.category = valueDBClustersDBCluster["Category"].asString(); + if(!valueDBClustersDBCluster["ControlVersion"].isNull()) + dBClustersObject.controlVersion = valueDBClustersDBCluster["ControlVersion"].asString(); + if(!valueDBClustersDBCluster["ExtStorageType"].isNull()) + dBClustersObject.extStorageType = valueDBClustersDBCluster["ExtStorageType"].asString(); + if(!valueDBClustersDBCluster["ExtStorageSize"].isNull()) + dBClustersObject.extStorageSize = std::stoi(valueDBClustersDBCluster["ExtStorageSize"].asString()); + if(!valueDBClustersDBCluster["ResourceGroupId"].isNull()) + dBClustersObject.resourceGroupId = valueDBClustersDBCluster["ResourceGroupId"].asString(); + if(!valueDBClustersDBCluster["DbVersion"].isNull()) + dBClustersObject.dbVersion = valueDBClustersDBCluster["DbVersion"].asString(); + auto allTagsNode = valueDBClustersDBCluster["Tags"]["Tag"]; + for (auto valueDBClustersDBClusterTagsTag : allTagsNode) + { + DBCluster::Tag tagsObject; + if(!valueDBClustersDBClusterTagsTag["Key"].isNull()) + tagsObject.key = valueDBClustersDBClusterTagsTag["Key"].asString(); + if(!valueDBClustersDBClusterTagsTag["Value"].isNull()) + tagsObject.value = valueDBClustersDBClusterTagsTag["Value"].asString(); + dBClustersObject.tags.push_back(tagsObject); + } + auto scaleOutStatusNode = value["ScaleOutStatus"]; + if(!scaleOutStatusNode["Progress"].isNull()) + dBClustersObject.scaleOutStatus.progress = scaleOutStatusNode["Progress"].asString(); + if(!scaleOutStatusNode["Ratio"].isNull()) + dBClustersObject.scaleOutStatus.ratio = scaleOutStatusNode["Ratio"].asString(); + dBClusters_.push_back(dBClustersObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + +} + +int DescribeDBClustersResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeDBClustersResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeDBClustersResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeDBClustersResult::getDBClusters()const +{ + return dBClusters_; +} + diff --git a/clickhouse/src/model/DescribeDBConfigRequest.cc b/clickhouse/src/model/DescribeDBConfigRequest.cc new file mode 100644 index 000000000..bf0824e90 --- /dev/null +++ b/clickhouse/src/model/DescribeDBConfigRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Clickhouse::Model::DescribeDBConfigRequest; + +DescribeDBConfigRequest::DescribeDBConfigRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "DescribeDBConfig") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDBConfigRequest::~DescribeDBConfigRequest() {} + +long DescribeDBConfigRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeDBConfigRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeDBConfigRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeDBConfigRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeDBConfigRequest::getRegionId() const { + return regionId_; +} + +void DescribeDBConfigRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeDBConfigRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeDBConfigRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeDBConfigRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeDBConfigRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeDBConfigRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeDBConfigRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeDBConfigRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeDBConfigRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/clickhouse/src/model/DescribeDBConfigResult.cc b/clickhouse/src/model/DescribeDBConfigResult.cc new file mode 100644 index 000000000..6af9462c5 --- /dev/null +++ b/clickhouse/src/model/DescribeDBConfigResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +DescribeDBConfigResult::DescribeDBConfigResult() : + ServiceResult() +{} + +DescribeDBConfigResult::DescribeDBConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBConfigResult::~DescribeDBConfigResult() +{} + +void DescribeDBConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Config"].isNull()) + config_ = value["Config"].asString(); + +} + +std::string DescribeDBConfigResult::getConfig()const +{ + return config_; +} + diff --git a/clickhouse/src/model/DescribeOSSStorageRequest.cc b/clickhouse/src/model/DescribeOSSStorageRequest.cc new file mode 100644 index 000000000..c4a1a33a0 --- /dev/null +++ b/clickhouse/src/model/DescribeOSSStorageRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Clickhouse::Model::DescribeOSSStorageRequest; + +DescribeOSSStorageRequest::DescribeOSSStorageRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "DescribeOSSStorage") { + setMethod(HttpRequest::Method::Post); +} + +DescribeOSSStorageRequest::~DescribeOSSStorageRequest() {} + +long DescribeOSSStorageRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeOSSStorageRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeOSSStorageRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeOSSStorageRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeOSSStorageRequest::getRegionId() const { + return regionId_; +} + +void DescribeOSSStorageRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeOSSStorageRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeOSSStorageRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeOSSStorageRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeOSSStorageRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeOSSStorageRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeOSSStorageRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeOSSStorageRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeOSSStorageRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/clickhouse/src/model/DescribeOSSStorageResult.cc b/clickhouse/src/model/DescribeOSSStorageResult.cc new file mode 100644 index 000000000..012e3a695 --- /dev/null +++ b/clickhouse/src/model/DescribeOSSStorageResult.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::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +DescribeOSSStorageResult::DescribeOSSStorageResult() : + ServiceResult() +{} + +DescribeOSSStorageResult::DescribeOSSStorageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeOSSStorageResult::~DescribeOSSStorageResult() +{} + +void DescribeOSSStorageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Policy"].isNull()) + policy_ = value["Policy"].asString(); + if(!value["State"].isNull()) + state_ = value["State"].asString(); + if(!value["ColdStorage"].isNull()) + coldStorage_ = value["ColdStorage"].asString() == "true"; + if(!value["StorageUsage"].isNull()) + storageUsage_ = value["StorageUsage"].asString(); + +} + +std::string DescribeOSSStorageResult::getPolicy()const +{ + return policy_; +} + +std::string DescribeOSSStorageResult::getState()const +{ + return state_; +} + +bool DescribeOSSStorageResult::getColdStorage()const +{ + return coldStorage_; +} + +std::string DescribeOSSStorageResult::getStorageUsage()const +{ + return storageUsage_; +} + diff --git a/clickhouse/src/model/DescribeProcessListRequest.cc b/clickhouse/src/model/DescribeProcessListRequest.cc new file mode 100644 index 000000000..c26a04917 --- /dev/null +++ b/clickhouse/src/model/DescribeProcessListRequest.cc @@ -0,0 +1,153 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Clickhouse::Model::DescribeProcessListRequest; + +DescribeProcessListRequest::DescribeProcessListRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "DescribeProcessList") { + setMethod(HttpRequest::Method::Post); +} + +DescribeProcessListRequest::~DescribeProcessListRequest() {} + +long DescribeProcessListRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeProcessListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeProcessListRequest::getInitialQueryId() const { + return initialQueryId_; +} + +void DescribeProcessListRequest::setInitialQueryId(const std::string &initialQueryId) { + initialQueryId_ = initialQueryId; + setParameter(std::string("InitialQueryId"), initialQueryId); +} + +int DescribeProcessListRequest::getQueryDurationMs() const { + return queryDurationMs_; +} + +void DescribeProcessListRequest::setQueryDurationMs(int queryDurationMs) { + queryDurationMs_ = queryDurationMs; + setParameter(std::string("QueryDurationMs"), std::to_string(queryDurationMs)); +} + +int DescribeProcessListRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeProcessListRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeProcessListRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeProcessListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeProcessListRequest::getRegionId() const { + return regionId_; +} + +void DescribeProcessListRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int DescribeProcessListRequest::getPageSize() const { + return pageSize_; +} + +void DescribeProcessListRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeProcessListRequest::getInitialUser() const { + return initialUser_; +} + +void DescribeProcessListRequest::setInitialUser(const std::string &initialUser) { + initialUser_ = initialUser; + setParameter(std::string("InitialUser"), initialUser); +} + +std::string DescribeProcessListRequest::getKeyword() const { + return keyword_; +} + +void DescribeProcessListRequest::setKeyword(const std::string &keyword) { + keyword_ = keyword; + setParameter(std::string("Keyword"), keyword); +} + +std::string DescribeProcessListRequest::getOrder() const { + return order_; +} + +void DescribeProcessListRequest::setOrder(const std::string &order) { + order_ = order; + setParameter(std::string("Order"), order); +} + +std::string DescribeProcessListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeProcessListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeProcessListRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeProcessListRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeProcessListRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeProcessListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeProcessListRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeProcessListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/clickhouse/src/model/DescribeProcessListResult.cc b/clickhouse/src/model/DescribeProcessListResult.cc new file mode 100644 index 000000000..96c82cc39 --- /dev/null +++ b/clickhouse/src/model/DescribeProcessListResult.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::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +DescribeProcessListResult::DescribeProcessListResult() : + ServiceResult() +{} + +DescribeProcessListResult::DescribeProcessListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeProcessListResult::~DescribeProcessListResult() +{} + +void DescribeProcessListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto processListNode = value["ProcessList"]; + if(!processListNode["Rows"].isNull()) + processList_.rows = processListNode["Rows"].asString(); + if(!processListNode["RowsBeforeLimitAtLeast"].isNull()) + processList_.rowsBeforeLimitAtLeast = processListNode["RowsBeforeLimitAtLeast"].asString(); + auto allTableSchemaNode = processListNode["TableSchema"]["ResultSet"]; + for (auto processListNodeTableSchemaResultSet : allTableSchemaNode) + { + ProcessList::ResultSet resultSetObject; + if(!processListNodeTableSchemaResultSet["Type"].isNull()) + resultSetObject.type = processListNodeTableSchemaResultSet["Type"].asString(); + if(!processListNodeTableSchemaResultSet["Name"].isNull()) + resultSetObject.name = processListNodeTableSchemaResultSet["Name"].asString(); + processList_.tableSchema.push_back(resultSetObject); + } + auto allDataNode = processListNode["Data"]["ResultSet"]; + for (auto processListNodeDataResultSet : allDataNode) + { + ProcessList::ResultSet1 resultSet1Object; + if(!processListNodeDataResultSet["QueryStartTime"].isNull()) + resultSet1Object.queryStartTime = processListNodeDataResultSet["QueryStartTime"].asString(); + if(!processListNodeDataResultSet["Query"].isNull()) + resultSet1Object.query = processListNodeDataResultSet["Query"].asString(); + if(!processListNodeDataResultSet["InitialAddress"].isNull()) + resultSet1Object.initialAddress = processListNodeDataResultSet["InitialAddress"].asString(); + if(!processListNodeDataResultSet["InitialQueryId"].isNull()) + resultSet1Object.initialQueryId = processListNodeDataResultSet["InitialQueryId"].asString(); + if(!processListNodeDataResultSet["InitialUser"].isNull()) + resultSet1Object.initialUser = processListNodeDataResultSet["InitialUser"].asString(); + if(!processListNodeDataResultSet["QueryDurationMs"].isNull()) + resultSet1Object.queryDurationMs = processListNodeDataResultSet["QueryDurationMs"].asString(); + processList_.data.push_back(resultSet1Object); + } + auto statisticsNode = processListNode["Statistics"]; + if(!statisticsNode["RowsRead"].isNull()) + processList_.statistics.rowsRead = std::stoi(statisticsNode["RowsRead"].asString()); + if(!statisticsNode["ElapsedTime"].isNull()) + processList_.statistics.elapsedTime = std::stof(statisticsNode["ElapsedTime"].asString()); + if(!statisticsNode["BytesRead"].isNull()) + processList_.statistics.bytesRead = std::stoi(statisticsNode["BytesRead"].asString()); + +} + +DescribeProcessListResult::ProcessList DescribeProcessListResult::getProcessList()const +{ + return processList_; +} + diff --git a/clickhouse/src/model/DescribeRegionsRequest.cc b/clickhouse/src/model/DescribeRegionsRequest.cc new file mode 100644 index 000000000..4e6463321 --- /dev/null +++ b/clickhouse/src/model/DescribeRegionsRequest.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 + +using AlibabaCloud::Clickhouse::Model::DescribeRegionsRequest; + +DescribeRegionsRequest::DescribeRegionsRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "DescribeRegions") { + setMethod(HttpRequest::Method::Post); +} + +DescribeRegionsRequest::~DescribeRegionsRequest() {} + +long DescribeRegionsRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeRegionsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeRegionsRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeRegionsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeRegionsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeRegionsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeRegionsRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeRegionsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeRegionsRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeRegionsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/clickhouse/src/model/DescribeRegionsResult.cc b/clickhouse/src/model/DescribeRegionsResult.cc new file mode 100644 index 000000000..500f6b541 --- /dev/null +++ b/clickhouse/src/model/DescribeRegionsResult.cc @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +DescribeRegionsResult::DescribeRegionsResult() : + ServiceResult() +{} + +DescribeRegionsResult::DescribeRegionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRegionsResult::~DescribeRegionsResult() +{} + +void DescribeRegionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allRegionsNode = value["Regions"]["Region"]; + for (auto valueRegionsRegion : allRegionsNode) + { + Region regionsObject; + if(!valueRegionsRegion["RegionId"].isNull()) + regionsObject.regionId = valueRegionsRegion["RegionId"].asString(); + auto allZonesNode = valueRegionsRegion["Zones"]["Zone"]; + for (auto valueRegionsRegionZonesZone : allZonesNode) + { + Region::Zone zonesObject; + if(!valueRegionsRegionZonesZone["ZoneId"].isNull()) + zonesObject.zoneId = valueRegionsRegionZonesZone["ZoneId"].asString(); + if(!valueRegionsRegionZonesZone["VpcEnabled"].isNull()) + zonesObject.vpcEnabled = valueRegionsRegionZonesZone["VpcEnabled"].asString() == "true"; + regionsObject.zones.push_back(zonesObject); + } + regions_.push_back(regionsObject); + } + +} + +std::vector DescribeRegionsResult::getRegions()const +{ + return regions_; +} + diff --git a/clickhouse/src/model/DescribeSchemasRequest.cc b/clickhouse/src/model/DescribeSchemasRequest.cc new file mode 100644 index 000000000..1e2eea85b --- /dev/null +++ b/clickhouse/src/model/DescribeSchemasRequest.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 + +using AlibabaCloud::Clickhouse::Model::DescribeSchemasRequest; + +DescribeSchemasRequest::DescribeSchemasRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "DescribeSchemas") { + setMethod(HttpRequest::Method::Post); +} + +DescribeSchemasRequest::~DescribeSchemasRequest() {} + +long DescribeSchemasRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeSchemasRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeSchemasRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeSchemasRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeSchemasRequest::getTableName() const { + return tableName_; +} + +void DescribeSchemasRequest::setTableName(const std::string &tableName) { + tableName_ = tableName; + setParameter(std::string("TableName"), tableName); +} + +std::string DescribeSchemasRequest::getSchemaName() const { + return schemaName_; +} + +void DescribeSchemasRequest::setSchemaName(const std::string &schemaName) { + schemaName_ = schemaName; + setParameter(std::string("SchemaName"), schemaName); +} + +std::string DescribeSchemasRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeSchemasRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeSchemasRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeSchemasRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeSchemasRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeSchemasRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeSchemasRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeSchemasRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/clickhouse/src/model/DescribeSchemasResult.cc b/clickhouse/src/model/DescribeSchemasResult.cc new file mode 100644 index 000000000..a1741dac3 --- /dev/null +++ b/clickhouse/src/model/DescribeSchemasResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +DescribeSchemasResult::DescribeSchemasResult() : + ServiceResult() +{} + +DescribeSchemasResult::DescribeSchemasResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSchemasResult::~DescribeSchemasResult() +{} + +void DescribeSchemasResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allItemsNode = value["Items"]["Schema"]; + for (auto valueItemsSchema : allItemsNode) + { + Schema itemsObject; + if(!valueItemsSchema["DBClusterId"].isNull()) + itemsObject.dBClusterId = valueItemsSchema["DBClusterId"].asString(); + if(!valueItemsSchema["SchemaName"].isNull()) + itemsObject.schemaName = valueItemsSchema["SchemaName"].asString(); + items_.push_back(itemsObject); + } + +} + +std::vector DescribeSchemasResult::getItems()const +{ + return items_; +} + diff --git a/clickhouse/src/model/DescribeSlowLogRecordsRequest.cc b/clickhouse/src/model/DescribeSlowLogRecordsRequest.cc new file mode 100644 index 000000000..fe20c000f --- /dev/null +++ b/clickhouse/src/model/DescribeSlowLogRecordsRequest.cc @@ -0,0 +1,135 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Clickhouse::Model::DescribeSlowLogRecordsRequest; + +DescribeSlowLogRecordsRequest::DescribeSlowLogRecordsRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "DescribeSlowLogRecords") { + setMethod(HttpRequest::Method::Post); +} + +DescribeSlowLogRecordsRequest::~DescribeSlowLogRecordsRequest() {} + +long DescribeSlowLogRecordsRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeSlowLogRecordsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +int DescribeSlowLogRecordsRequest::getQueryDurationMs() const { + return queryDurationMs_; +} + +void DescribeSlowLogRecordsRequest::setQueryDurationMs(int queryDurationMs) { + queryDurationMs_ = queryDurationMs; + setParameter(std::string("QueryDurationMs"), std::to_string(queryDurationMs)); +} + +std::string DescribeSlowLogRecordsRequest::getStartTime() const { + return startTime_; +} + +void DescribeSlowLogRecordsRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); +} + +int DescribeSlowLogRecordsRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeSlowLogRecordsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeSlowLogRecordsRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeSlowLogRecordsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeSlowLogRecordsRequest::getRegionId() const { + return regionId_; +} + +void DescribeSlowLogRecordsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int DescribeSlowLogRecordsRequest::getPageSize() const { + return pageSize_; +} + +void DescribeSlowLogRecordsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeSlowLogRecordsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeSlowLogRecordsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeSlowLogRecordsRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeSlowLogRecordsRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeSlowLogRecordsRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeSlowLogRecordsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string DescribeSlowLogRecordsRequest::getEndTime() const { + return endTime_; +} + +void DescribeSlowLogRecordsRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); +} + +long DescribeSlowLogRecordsRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeSlowLogRecordsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/clickhouse/src/model/DescribeSlowLogRecordsResult.cc b/clickhouse/src/model/DescribeSlowLogRecordsResult.cc new file mode 100644 index 000000000..be6d5b6ac --- /dev/null +++ b/clickhouse/src/model/DescribeSlowLogRecordsResult.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::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +DescribeSlowLogRecordsResult::DescribeSlowLogRecordsResult() : + ServiceResult() +{} + +DescribeSlowLogRecordsResult::DescribeSlowLogRecordsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSlowLogRecordsResult::~DescribeSlowLogRecordsResult() +{} + +void DescribeSlowLogRecordsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto slowLogRecordsNode = value["SlowLogRecords"]; + if(!slowLogRecordsNode["Rows"].isNull()) + slowLogRecords_.rows = slowLogRecordsNode["Rows"].asString(); + if(!slowLogRecordsNode["RowsBeforeLimitAtLeast"].isNull()) + slowLogRecords_.rowsBeforeLimitAtLeast = slowLogRecordsNode["RowsBeforeLimitAtLeast"].asString(); + auto allTableSchemaNode = slowLogRecordsNode["TableSchema"]["ResultSet"]; + for (auto slowLogRecordsNodeTableSchemaResultSet : allTableSchemaNode) + { + SlowLogRecords::ResultSet resultSetObject; + if(!slowLogRecordsNodeTableSchemaResultSet["Type"].isNull()) + resultSetObject.type = slowLogRecordsNodeTableSchemaResultSet["Type"].asString(); + if(!slowLogRecordsNodeTableSchemaResultSet["Name"].isNull()) + resultSetObject.name = slowLogRecordsNodeTableSchemaResultSet["Name"].asString(); + slowLogRecords_.tableSchema.push_back(resultSetObject); + } + auto allDataNode = slowLogRecordsNode["Data"]["ResultSet"]; + for (auto slowLogRecordsNodeDataResultSet : allDataNode) + { + SlowLogRecords::ResultSet1 resultSet1Object; + if(!slowLogRecordsNodeDataResultSet["Type"].isNull()) + resultSet1Object.type = slowLogRecordsNodeDataResultSet["Type"].asString(); + if(!slowLogRecordsNodeDataResultSet["QueryStartTime"].isNull()) + resultSet1Object.queryStartTime = slowLogRecordsNodeDataResultSet["QueryStartTime"].asString(); + if(!slowLogRecordsNodeDataResultSet["Query"].isNull()) + resultSet1Object.query = slowLogRecordsNodeDataResultSet["Query"].asString(); + if(!slowLogRecordsNodeDataResultSet["ReadRows"].isNull()) + resultSet1Object.readRows = slowLogRecordsNodeDataResultSet["ReadRows"].asString(); + if(!slowLogRecordsNodeDataResultSet["InitialAddress"].isNull()) + resultSet1Object.initialAddress = slowLogRecordsNodeDataResultSet["InitialAddress"].asString(); + if(!slowLogRecordsNodeDataResultSet["MemoryUsage"].isNull()) + resultSet1Object.memoryUsage = slowLogRecordsNodeDataResultSet["MemoryUsage"].asString(); + if(!slowLogRecordsNodeDataResultSet["InitialUser"].isNull()) + resultSet1Object.initialUser = slowLogRecordsNodeDataResultSet["InitialUser"].asString(); + if(!slowLogRecordsNodeDataResultSet["InitialQueryId"].isNull()) + resultSet1Object.initialQueryId = slowLogRecordsNodeDataResultSet["InitialQueryId"].asString(); + if(!slowLogRecordsNodeDataResultSet["ReadBytes"].isNull()) + resultSet1Object.readBytes = slowLogRecordsNodeDataResultSet["ReadBytes"].asString(); + if(!slowLogRecordsNodeDataResultSet["QueryDurationMs"].isNull()) + resultSet1Object.queryDurationMs = slowLogRecordsNodeDataResultSet["QueryDurationMs"].asString(); + if(!slowLogRecordsNodeDataResultSet["ResultBytes"].isNull()) + resultSet1Object.resultBytes = slowLogRecordsNodeDataResultSet["ResultBytes"].asString(); + slowLogRecords_.data.push_back(resultSet1Object); + } + auto statisticsNode = slowLogRecordsNode["Statistics"]; + if(!statisticsNode["RowsRead"].isNull()) + slowLogRecords_.statistics.rowsRead = std::stoi(statisticsNode["RowsRead"].asString()); + if(!statisticsNode["ElapsedTime"].isNull()) + slowLogRecords_.statistics.elapsedTime = std::stof(statisticsNode["ElapsedTime"].asString()); + if(!statisticsNode["BytesRead"].isNull()) + slowLogRecords_.statistics.bytesRead = std::stoi(statisticsNode["BytesRead"].asString()); + +} + +DescribeSlowLogRecordsResult::SlowLogRecords DescribeSlowLogRecordsResult::getSlowLogRecords()const +{ + return slowLogRecords_; +} + diff --git a/clickhouse/src/model/DescribeSynDbTablesRequest.cc b/clickhouse/src/model/DescribeSynDbTablesRequest.cc new file mode 100644 index 000000000..bcaa0874e --- /dev/null +++ b/clickhouse/src/model/DescribeSynDbTablesRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Clickhouse::Model::DescribeSynDbTablesRequest; + +DescribeSynDbTablesRequest::DescribeSynDbTablesRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "DescribeSynDbTables") { + setMethod(HttpRequest::Method::Post); +} + +DescribeSynDbTablesRequest::~DescribeSynDbTablesRequest() {} + +long DescribeSynDbTablesRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeSynDbTablesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeSynDbTablesRequest::getSynDb() const { + return synDb_; +} + +void DescribeSynDbTablesRequest::setSynDb(const std::string &synDb) { + synDb_ = synDb; + setParameter(std::string("SynDb"), synDb); +} + +std::string DescribeSynDbTablesRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeSynDbTablesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeSynDbTablesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeSynDbTablesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeSynDbTablesRequest::getDbClusterId() const { + return dbClusterId_; +} + +void DescribeSynDbTablesRequest::setDbClusterId(const std::string &dbClusterId) { + dbClusterId_ = dbClusterId; + setParameter(std::string("DbClusterId"), dbClusterId); +} + +std::string DescribeSynDbTablesRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeSynDbTablesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeSynDbTablesRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeSynDbTablesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/clickhouse/src/model/DescribeSynDbTablesResult.cc b/clickhouse/src/model/DescribeSynDbTablesResult.cc new file mode 100644 index 000000000..3e57097a9 --- /dev/null +++ b/clickhouse/src/model/DescribeSynDbTablesResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +DescribeSynDbTablesResult::DescribeSynDbTablesResult() : + ServiceResult() +{} + +DescribeSynDbTablesResult::DescribeSynDbTablesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSynDbTablesResult::~DescribeSynDbTablesResult() +{} + +void DescribeSynDbTablesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTables = value["Tables"]["Schema"]; + for (const auto &item : allTables) + tables_.push_back(item.asString()); + +} + +std::vector DescribeSynDbTablesResult::getTables()const +{ + return tables_; +} + diff --git a/clickhouse/src/model/DescribeSynDbsRequest.cc b/clickhouse/src/model/DescribeSynDbsRequest.cc new file mode 100644 index 000000000..7ab812b7e --- /dev/null +++ b/clickhouse/src/model/DescribeSynDbsRequest.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 + +using AlibabaCloud::Clickhouse::Model::DescribeSynDbsRequest; + +DescribeSynDbsRequest::DescribeSynDbsRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "DescribeSynDbs") { + setMethod(HttpRequest::Method::Post); +} + +DescribeSynDbsRequest::~DescribeSynDbsRequest() {} + +long DescribeSynDbsRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeSynDbsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +int DescribeSynDbsRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeSynDbsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeSynDbsRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeSynDbsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +int DescribeSynDbsRequest::getPageSize() const { + return pageSize_; +} + +void DescribeSynDbsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeSynDbsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeSynDbsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeSynDbsRequest::getDbClusterId() const { + return dbClusterId_; +} + +void DescribeSynDbsRequest::setDbClusterId(const std::string &dbClusterId) { + dbClusterId_ = dbClusterId; + setParameter(std::string("DbClusterId"), dbClusterId); +} + +std::string DescribeSynDbsRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeSynDbsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeSynDbsRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeSynDbsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/clickhouse/src/model/DescribeSynDbsResult.cc b/clickhouse/src/model/DescribeSynDbsResult.cc new file mode 100644 index 000000000..fc999a952 --- /dev/null +++ b/clickhouse/src/model/DescribeSynDbsResult.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +DescribeSynDbsResult::DescribeSynDbsResult() : + ServiceResult() +{} + +DescribeSynDbsResult::DescribeSynDbsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSynDbsResult::~DescribeSynDbsResult() +{} + +void DescribeSynDbsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allSynDbsNode = value["SynDbs"]["SynDb"]; + for (auto valueSynDbsSynDb : allSynDbsNode) + { + SynDb synDbsObject; + if(!valueSynDbsSynDb["RdsId"].isNull()) + synDbsObject.rdsId = valueSynDbsSynDb["RdsId"].asString(); + if(!valueSynDbsSynDb["SynDb"].isNull()) + synDbsObject.synDb = valueSynDbsSynDb["SynDb"].asString(); + if(!valueSynDbsSynDb["SynStatus"].isNull()) + synDbsObject.synStatus = valueSynDbsSynDb["SynStatus"].asString() == "true"; + if(!valueSynDbsSynDb["ErrorMsg"].isNull()) + synDbsObject.errorMsg = valueSynDbsSynDb["ErrorMsg"].asString(); + if(!valueSynDbsSynDb["RdsUserName"].isNull()) + synDbsObject.rdsUserName = valueSynDbsSynDb["RdsUserName"].asString(); + if(!valueSynDbsSynDb["RdsPassword"].isNull()) + synDbsObject.rdsPassword = valueSynDbsSynDb["RdsPassword"].asString(); + if(!valueSynDbsSynDb["RdsVpcUrl"].isNull()) + synDbsObject.rdsVpcUrl = valueSynDbsSynDb["RdsVpcUrl"].asString(); + synDbs_.push_back(synDbsObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + +} + +int DescribeSynDbsResult::getTotalCount()const +{ + return totalCount_; +} + +std::vector DescribeSynDbsResult::getSynDbs()const +{ + return synDbs_; +} + +int DescribeSynDbsResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeSynDbsResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/clickhouse/src/model/DescribeTablesRequest.cc b/clickhouse/src/model/DescribeTablesRequest.cc new file mode 100644 index 000000000..aa63b0549 --- /dev/null +++ b/clickhouse/src/model/DescribeTablesRequest.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 + +using AlibabaCloud::Clickhouse::Model::DescribeTablesRequest; + +DescribeTablesRequest::DescribeTablesRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "DescribeTables") { + setMethod(HttpRequest::Method::Post); +} + +DescribeTablesRequest::~DescribeTablesRequest() {} + +long DescribeTablesRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeTablesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeTablesRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeTablesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeTablesRequest::getTableName() const { + return tableName_; +} + +void DescribeTablesRequest::setTableName(const std::string &tableName) { + tableName_ = tableName; + setParameter(std::string("TableName"), tableName); +} + +std::string DescribeTablesRequest::getSchemaName() const { + return schemaName_; +} + +void DescribeTablesRequest::setSchemaName(const std::string &schemaName) { + schemaName_ = schemaName; + setParameter(std::string("SchemaName"), schemaName); +} + +std::string DescribeTablesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeTablesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeTablesRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeTablesRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeTablesRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeTablesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeTablesRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeTablesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/clickhouse/src/model/DescribeTablesResult.cc b/clickhouse/src/model/DescribeTablesResult.cc new file mode 100644 index 000000000..b28008d89 --- /dev/null +++ b/clickhouse/src/model/DescribeTablesResult.cc @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +DescribeTablesResult::DescribeTablesResult() : + ServiceResult() +{} + +DescribeTablesResult::DescribeTablesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeTablesResult::~DescribeTablesResult() +{} + +void DescribeTablesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allItemsNode = value["Items"]["Table"]; + for (auto valueItemsTable : allItemsNode) + { + Table itemsObject; + if(!valueItemsTable["TableName"].isNull()) + itemsObject.tableName = valueItemsTable["TableName"].asString(); + if(!valueItemsTable["DBClusterId"].isNull()) + itemsObject.dBClusterId = valueItemsTable["DBClusterId"].asString(); + if(!valueItemsTable["SchemaName"].isNull()) + itemsObject.schemaName = valueItemsTable["SchemaName"].asString(); + items_.push_back(itemsObject); + } + +} + +std::vector DescribeTablesResult::getItems()const +{ + return items_; +} + diff --git a/clickhouse/src/model/DescribeTransferHistoryRequest.cc b/clickhouse/src/model/DescribeTransferHistoryRequest.cc new file mode 100644 index 000000000..765ce3233 --- /dev/null +++ b/clickhouse/src/model/DescribeTransferHistoryRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Clickhouse::Model::DescribeTransferHistoryRequest; + +DescribeTransferHistoryRequest::DescribeTransferHistoryRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "DescribeTransferHistory") { + setMethod(HttpRequest::Method::Post); +} + +DescribeTransferHistoryRequest::~DescribeTransferHistoryRequest() {} + +long DescribeTransferHistoryRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeTransferHistoryRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeTransferHistoryRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeTransferHistoryRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeTransferHistoryRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeTransferHistoryRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeTransferHistoryRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeTransferHistoryRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeTransferHistoryRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeTransferHistoryRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeTransferHistoryRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeTransferHistoryRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/clickhouse/src/model/DescribeTransferHistoryResult.cc b/clickhouse/src/model/DescribeTransferHistoryResult.cc new file mode 100644 index 000000000..1fd5d582d --- /dev/null +++ b/clickhouse/src/model/DescribeTransferHistoryResult.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +DescribeTransferHistoryResult::DescribeTransferHistoryResult() : + ServiceResult() +{} + +DescribeTransferHistoryResult::DescribeTransferHistoryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeTransferHistoryResult::~DescribeTransferHistoryResult() +{} + +void DescribeTransferHistoryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allHistoryDetailsNode = value["HistoryDetails"]["HistoryDetail"]; + for (auto valueHistoryDetailsHistoryDetail : allHistoryDetailsNode) + { + HistoryDetail historyDetailsObject; + if(!valueHistoryDetailsHistoryDetail["SourceDBCluster"].isNull()) + historyDetailsObject.sourceDBCluster = valueHistoryDetailsHistoryDetail["SourceDBCluster"].asString(); + if(!valueHistoryDetailsHistoryDetail["SourceControlVersion"].isNull()) + historyDetailsObject.sourceControlVersion = valueHistoryDetailsHistoryDetail["SourceControlVersion"].asString(); + if(!valueHistoryDetailsHistoryDetail["TargetDBCluster"].isNull()) + historyDetailsObject.targetDBCluster = valueHistoryDetailsHistoryDetail["TargetDBCluster"].asString(); + if(!valueHistoryDetailsHistoryDetail["TargetControlVersion"].isNull()) + historyDetailsObject.targetControlVersion = valueHistoryDetailsHistoryDetail["TargetControlVersion"].asString(); + if(!valueHistoryDetailsHistoryDetail["Status"].isNull()) + historyDetailsObject.status = valueHistoryDetailsHistoryDetail["Status"].asString(); + if(!valueHistoryDetailsHistoryDetail["Progress"].isNull()) + historyDetailsObject.progress = valueHistoryDetailsHistoryDetail["Progress"].asString(); + if(!valueHistoryDetailsHistoryDetail["DisableWriteWindows"].isNull()) + historyDetailsObject.disableWriteWindows = valueHistoryDetailsHistoryDetail["DisableWriteWindows"].asString(); + if(!valueHistoryDetailsHistoryDetail["UnsyncedBytes"].isNull()) + historyDetailsObject.unsyncedBytes = std::stol(valueHistoryDetailsHistoryDetail["UnsyncedBytes"].asString()); + if(!valueHistoryDetailsHistoryDetail["UnsyncedParts"].isNull()) + historyDetailsObject.unsyncedParts = std::stol(valueHistoryDetailsHistoryDetail["UnsyncedParts"].asString()); + if(!valueHistoryDetailsHistoryDetail["PartsPerMinute"].isNull()) + historyDetailsObject.partsPerMinute = valueHistoryDetailsHistoryDetail["PartsPerMinute"].asString(); + if(!valueHistoryDetailsHistoryDetail["BytesPerMinute"].isNull()) + historyDetailsObject.bytesPerMinute = std::stol(valueHistoryDetailsHistoryDetail["BytesPerMinute"].asString()); + if(!valueHistoryDetailsHistoryDetail["SubJob"].isNull()) + historyDetailsObject.subJob = valueHistoryDetailsHistoryDetail["SubJob"].asString(); + if(!valueHistoryDetailsHistoryDetail["SubJobStatus"].isNull()) + historyDetailsObject.subJobStatus = valueHistoryDetailsHistoryDetail["SubJobStatus"].asString(); + historyDetails_.push_back(historyDetailsObject); + } + +} + +std::vector DescribeTransferHistoryResult::getHistoryDetails()const +{ + return historyDetails_; +} + diff --git a/clickhouse/src/model/KillProcessRequest.cc b/clickhouse/src/model/KillProcessRequest.cc new file mode 100644 index 000000000..a49c45855 --- /dev/null +++ b/clickhouse/src/model/KillProcessRequest.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 + +using AlibabaCloud::Clickhouse::Model::KillProcessRequest; + +KillProcessRequest::KillProcessRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "KillProcess") { + setMethod(HttpRequest::Method::Post); +} + +KillProcessRequest::~KillProcessRequest() {} + +long KillProcessRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void KillProcessRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string KillProcessRequest::getInitialQueryId() const { + return initialQueryId_; +} + +void KillProcessRequest::setInitialQueryId(const std::string &initialQueryId) { + initialQueryId_ = initialQueryId; + setParameter(std::string("InitialQueryId"), initialQueryId); +} + +std::string KillProcessRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void KillProcessRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string KillProcessRequest::getRegionId() const { + return regionId_; +} + +void KillProcessRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string KillProcessRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void KillProcessRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string KillProcessRequest::getDBClusterId() const { + return dBClusterId_; +} + +void KillProcessRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string KillProcessRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void KillProcessRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long KillProcessRequest::getOwnerId() const { + return ownerId_; +} + +void KillProcessRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/clickhouse/src/model/KillProcessResult.cc b/clickhouse/src/model/KillProcessResult.cc new file mode 100644 index 000000000..5a0727f40 --- /dev/null +++ b/clickhouse/src/model/KillProcessResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +KillProcessResult::KillProcessResult() : + ServiceResult() +{} + +KillProcessResult::KillProcessResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +KillProcessResult::~KillProcessResult() +{} + +void KillProcessResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/clickhouse/src/model/ModifyAccountAuthorityRequest.cc b/clickhouse/src/model/ModifyAccountAuthorityRequest.cc new file mode 100644 index 000000000..bf3c3c43e --- /dev/null +++ b/clickhouse/src/model/ModifyAccountAuthorityRequest.cc @@ -0,0 +1,153 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Clickhouse::Model::ModifyAccountAuthorityRequest; + +ModifyAccountAuthorityRequest::ModifyAccountAuthorityRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "ModifyAccountAuthority") { + setMethod(HttpRequest::Method::Post); +} + +ModifyAccountAuthorityRequest::~ModifyAccountAuthorityRequest() {} + +long ModifyAccountAuthorityRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ModifyAccountAuthorityRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ModifyAccountAuthorityRequest::getTotalDictionaries() const { + return totalDictionaries_; +} + +void ModifyAccountAuthorityRequest::setTotalDictionaries(const std::string &totalDictionaries) { + totalDictionaries_ = totalDictionaries; + setParameter(std::string("TotalDictionaries"), totalDictionaries); +} + +std::string ModifyAccountAuthorityRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ModifyAccountAuthorityRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ModifyAccountAuthorityRequest::getAccountName() const { + return accountName_; +} + +void ModifyAccountAuthorityRequest::setAccountName(const std::string &accountName) { + accountName_ = accountName; + setParameter(std::string("AccountName"), accountName); +} + +std::string ModifyAccountAuthorityRequest::getDmlAuthority() const { + return dmlAuthority_; +} + +void ModifyAccountAuthorityRequest::setDmlAuthority(const std::string &dmlAuthority) { + dmlAuthority_ = dmlAuthority; + setParameter(std::string("DmlAuthority"), dmlAuthority); +} + +std::string ModifyAccountAuthorityRequest::getRegionId() const { + return regionId_; +} + +void ModifyAccountAuthorityRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ModifyAccountAuthorityRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyAccountAuthorityRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ModifyAccountAuthorityRequest::getDBClusterId() const { + return dBClusterId_; +} + +void ModifyAccountAuthorityRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string ModifyAccountAuthorityRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyAccountAuthorityRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string ModifyAccountAuthorityRequest::getAllowDatabases() const { + return allowDatabases_; +} + +void ModifyAccountAuthorityRequest::setAllowDatabases(const std::string &allowDatabases) { + allowDatabases_ = allowDatabases; + setParameter(std::string("AllowDatabases"), allowDatabases); +} + +std::string ModifyAccountAuthorityRequest::getAllowDictionaries() const { + return allowDictionaries_; +} + +void ModifyAccountAuthorityRequest::setAllowDictionaries(const std::string &allowDictionaries) { + allowDictionaries_ = allowDictionaries; + setParameter(std::string("AllowDictionaries"), allowDictionaries); +} + +long ModifyAccountAuthorityRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyAccountAuthorityRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +bool ModifyAccountAuthorityRequest::getDdlAuthority() const { + return ddlAuthority_; +} + +void ModifyAccountAuthorityRequest::setDdlAuthority(bool ddlAuthority) { + ddlAuthority_ = ddlAuthority; + setParameter(std::string("DdlAuthority"), ddlAuthority ? "true" : "false"); +} + +std::string ModifyAccountAuthorityRequest::getTotalDatabases() const { + return totalDatabases_; +} + +void ModifyAccountAuthorityRequest::setTotalDatabases(const std::string &totalDatabases) { + totalDatabases_ = totalDatabases; + setParameter(std::string("TotalDatabases"), totalDatabases); +} + diff --git a/clickhouse/src/model/ModifyAccountAuthorityResult.cc b/clickhouse/src/model/ModifyAccountAuthorityResult.cc new file mode 100644 index 000000000..45466d792 --- /dev/null +++ b/clickhouse/src/model/ModifyAccountAuthorityResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +ModifyAccountAuthorityResult::ModifyAccountAuthorityResult() : + ServiceResult() +{} + +ModifyAccountAuthorityResult::ModifyAccountAuthorityResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyAccountAuthorityResult::~ModifyAccountAuthorityResult() +{} + +void ModifyAccountAuthorityResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/clickhouse/src/model/ModifyAccountDescriptionRequest.cc b/clickhouse/src/model/ModifyAccountDescriptionRequest.cc new file mode 100644 index 000000000..32e335dab --- /dev/null +++ b/clickhouse/src/model/ModifyAccountDescriptionRequest.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 + +using AlibabaCloud::Clickhouse::Model::ModifyAccountDescriptionRequest; + +ModifyAccountDescriptionRequest::ModifyAccountDescriptionRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "ModifyAccountDescription") { + setMethod(HttpRequest::Method::Post); +} + +ModifyAccountDescriptionRequest::~ModifyAccountDescriptionRequest() {} + +long ModifyAccountDescriptionRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ModifyAccountDescriptionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ModifyAccountDescriptionRequest::getAccountDescription() const { + return accountDescription_; +} + +void ModifyAccountDescriptionRequest::setAccountDescription(const std::string &accountDescription) { + accountDescription_ = accountDescription; + setParameter(std::string("AccountDescription"), accountDescription); +} + +std::string ModifyAccountDescriptionRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ModifyAccountDescriptionRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ModifyAccountDescriptionRequest::getAccountName() const { + return accountName_; +} + +void ModifyAccountDescriptionRequest::setAccountName(const std::string &accountName) { + accountName_ = accountName; + setParameter(std::string("AccountName"), accountName); +} + +std::string ModifyAccountDescriptionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyAccountDescriptionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ModifyAccountDescriptionRequest::getDBClusterId() const { + return dBClusterId_; +} + +void ModifyAccountDescriptionRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string ModifyAccountDescriptionRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyAccountDescriptionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ModifyAccountDescriptionRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyAccountDescriptionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/clickhouse/src/model/ModifyAccountDescriptionResult.cc b/clickhouse/src/model/ModifyAccountDescriptionResult.cc new file mode 100644 index 000000000..f679f3b1c --- /dev/null +++ b/clickhouse/src/model/ModifyAccountDescriptionResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +ModifyAccountDescriptionResult::ModifyAccountDescriptionResult() : + ServiceResult() +{} + +ModifyAccountDescriptionResult::ModifyAccountDescriptionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyAccountDescriptionResult::~ModifyAccountDescriptionResult() +{} + +void ModifyAccountDescriptionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/clickhouse/src/model/ModifyBackupPolicyRequest.cc b/clickhouse/src/model/ModifyBackupPolicyRequest.cc new file mode 100644 index 000000000..7993240fd --- /dev/null +++ b/clickhouse/src/model/ModifyBackupPolicyRequest.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Clickhouse::Model::ModifyBackupPolicyRequest; + +ModifyBackupPolicyRequest::ModifyBackupPolicyRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "ModifyBackupPolicy") { + setMethod(HttpRequest::Method::Post); +} + +ModifyBackupPolicyRequest::~ModifyBackupPolicyRequest() {} + +long ModifyBackupPolicyRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ModifyBackupPolicyRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ModifyBackupPolicyRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ModifyBackupPolicyRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ModifyBackupPolicyRequest::getPreferredBackupPeriod() const { + return preferredBackupPeriod_; +} + +void ModifyBackupPolicyRequest::setPreferredBackupPeriod(const std::string &preferredBackupPeriod) { + preferredBackupPeriod_ = preferredBackupPeriod; + setParameter(std::string("PreferredBackupPeriod"), preferredBackupPeriod); +} + +std::string ModifyBackupPolicyRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyBackupPolicyRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ModifyBackupPolicyRequest::getDBClusterId() const { + return dBClusterId_; +} + +void ModifyBackupPolicyRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string ModifyBackupPolicyRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyBackupPolicyRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ModifyBackupPolicyRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyBackupPolicyRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ModifyBackupPolicyRequest::getPreferredBackupTime() const { + return preferredBackupTime_; +} + +void ModifyBackupPolicyRequest::setPreferredBackupTime(const std::string &preferredBackupTime) { + preferredBackupTime_ = preferredBackupTime; + setParameter(std::string("PreferredBackupTime"), preferredBackupTime); +} + +std::string ModifyBackupPolicyRequest::getBackupRetentionPeriod() const { + return backupRetentionPeriod_; +} + +void ModifyBackupPolicyRequest::setBackupRetentionPeriod(const std::string &backupRetentionPeriod) { + backupRetentionPeriod_ = backupRetentionPeriod; + setParameter(std::string("BackupRetentionPeriod"), backupRetentionPeriod); +} + diff --git a/clickhouse/src/model/ModifyBackupPolicyResult.cc b/clickhouse/src/model/ModifyBackupPolicyResult.cc new file mode 100644 index 000000000..f01edc39b --- /dev/null +++ b/clickhouse/src/model/ModifyBackupPolicyResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +ModifyBackupPolicyResult::ModifyBackupPolicyResult() : + ServiceResult() +{} + +ModifyBackupPolicyResult::ModifyBackupPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyBackupPolicyResult::~ModifyBackupPolicyResult() +{} + +void ModifyBackupPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/clickhouse/src/model/ModifyDBClusterAccessWhiteListRequest.cc b/clickhouse/src/model/ModifyDBClusterAccessWhiteListRequest.cc new file mode 100644 index 000000000..9c960efc9 --- /dev/null +++ b/clickhouse/src/model/ModifyDBClusterAccessWhiteListRequest.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::Clickhouse::Model::ModifyDBClusterAccessWhiteListRequest; + +ModifyDBClusterAccessWhiteListRequest::ModifyDBClusterAccessWhiteListRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "ModifyDBClusterAccessWhiteList") { + setMethod(HttpRequest::Method::Post); +} + +ModifyDBClusterAccessWhiteListRequest::~ModifyDBClusterAccessWhiteListRequest() {} + +long ModifyDBClusterAccessWhiteListRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ModifyDBClusterAccessWhiteListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ModifyDBClusterAccessWhiteListRequest::getSecurityIps() const { + return securityIps_; +} + +void ModifyDBClusterAccessWhiteListRequest::setSecurityIps(const std::string &securityIps) { + securityIps_ = securityIps; + setParameter(std::string("SecurityIps"), securityIps); +} + +std::string ModifyDBClusterAccessWhiteListRequest::getDBClusterIPArrayAttribute() const { + return dBClusterIPArrayAttribute_; +} + +void ModifyDBClusterAccessWhiteListRequest::setDBClusterIPArrayAttribute(const std::string &dBClusterIPArrayAttribute) { + dBClusterIPArrayAttribute_ = dBClusterIPArrayAttribute; + setParameter(std::string("DBClusterIPArrayAttribute"), dBClusterIPArrayAttribute); +} + +std::string ModifyDBClusterAccessWhiteListRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ModifyDBClusterAccessWhiteListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ModifyDBClusterAccessWhiteListRequest::getModifyMode() const { + return modifyMode_; +} + +void ModifyDBClusterAccessWhiteListRequest::setModifyMode(const std::string &modifyMode) { + modifyMode_ = modifyMode; + setParameter(std::string("ModifyMode"), modifyMode); +} + +std::string ModifyDBClusterAccessWhiteListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyDBClusterAccessWhiteListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ModifyDBClusterAccessWhiteListRequest::getDBClusterId() const { + return dBClusterId_; +} + +void ModifyDBClusterAccessWhiteListRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string ModifyDBClusterAccessWhiteListRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyDBClusterAccessWhiteListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ModifyDBClusterAccessWhiteListRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyDBClusterAccessWhiteListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ModifyDBClusterAccessWhiteListRequest::getDBClusterIPArrayName() const { + return dBClusterIPArrayName_; +} + +void ModifyDBClusterAccessWhiteListRequest::setDBClusterIPArrayName(const std::string &dBClusterIPArrayName) { + dBClusterIPArrayName_ = dBClusterIPArrayName; + setParameter(std::string("DBClusterIPArrayName"), dBClusterIPArrayName); +} + diff --git a/clickhouse/src/model/ModifyDBClusterAccessWhiteListResult.cc b/clickhouse/src/model/ModifyDBClusterAccessWhiteListResult.cc new file mode 100644 index 000000000..5a3decba5 --- /dev/null +++ b/clickhouse/src/model/ModifyDBClusterAccessWhiteListResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +ModifyDBClusterAccessWhiteListResult::ModifyDBClusterAccessWhiteListResult() : + ServiceResult() +{} + +ModifyDBClusterAccessWhiteListResult::ModifyDBClusterAccessWhiteListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBClusterAccessWhiteListResult::~ModifyDBClusterAccessWhiteListResult() +{} + +void ModifyDBClusterAccessWhiteListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/clickhouse/src/model/ModifyDBClusterConfigInXMLRequest.cc b/clickhouse/src/model/ModifyDBClusterConfigInXMLRequest.cc new file mode 100644 index 000000000..e772ef914 --- /dev/null +++ b/clickhouse/src/model/ModifyDBClusterConfigInXMLRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Clickhouse::Model::ModifyDBClusterConfigInXMLRequest; + +ModifyDBClusterConfigInXMLRequest::ModifyDBClusterConfigInXMLRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "ModifyDBClusterConfigInXML") { + setMethod(HttpRequest::Method::Post); +} + +ModifyDBClusterConfigInXMLRequest::~ModifyDBClusterConfigInXMLRequest() {} + +std::string ModifyDBClusterConfigInXMLRequest::getReason() const { + return reason_; +} + +void ModifyDBClusterConfigInXMLRequest::setReason(const std::string &reason) { + reason_ = reason; + setParameter(std::string("Reason"), reason); +} + +std::string ModifyDBClusterConfigInXMLRequest::getDBClusterId() const { + return dBClusterId_; +} + +void ModifyDBClusterConfigInXMLRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string ModifyDBClusterConfigInXMLRequest::getRegionId() const { + return regionId_; +} + +void ModifyDBClusterConfigInXMLRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ModifyDBClusterConfigInXMLRequest::getConfig() const { + return config_; +} + +void ModifyDBClusterConfigInXMLRequest::setConfig(const std::string &config) { + config_ = config; + setParameter(std::string("Config"), config); +} + diff --git a/clickhouse/src/model/ModifyDBClusterConfigInXMLResult.cc b/clickhouse/src/model/ModifyDBClusterConfigInXMLResult.cc new file mode 100644 index 000000000..d22807756 --- /dev/null +++ b/clickhouse/src/model/ModifyDBClusterConfigInXMLResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +ModifyDBClusterConfigInXMLResult::ModifyDBClusterConfigInXMLResult() : + ServiceResult() +{} + +ModifyDBClusterConfigInXMLResult::ModifyDBClusterConfigInXMLResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBClusterConfigInXMLResult::~ModifyDBClusterConfigInXMLResult() +{} + +void ModifyDBClusterConfigInXMLResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/clickhouse/src/model/ModifyDBClusterConfigRequest.cc b/clickhouse/src/model/ModifyDBClusterConfigRequest.cc new file mode 100644 index 000000000..04d1531c9 --- /dev/null +++ b/clickhouse/src/model/ModifyDBClusterConfigRequest.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Clickhouse::Model::ModifyDBClusterConfigRequest; + +ModifyDBClusterConfigRequest::ModifyDBClusterConfigRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "ModifyDBClusterConfig") { + setMethod(HttpRequest::Method::Post); +} + +ModifyDBClusterConfigRequest::~ModifyDBClusterConfigRequest() {} + +std::string ModifyDBClusterConfigRequest::getReason() const { + return reason_; +} + +void ModifyDBClusterConfigRequest::setReason(const std::string &reason) { + reason_ = reason; + setParameter(std::string("Reason"), reason); +} + +long ModifyDBClusterConfigRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ModifyDBClusterConfigRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ModifyDBClusterConfigRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ModifyDBClusterConfigRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ModifyDBClusterConfigRequest::getRegionId() const { + return regionId_; +} + +void ModifyDBClusterConfigRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ModifyDBClusterConfigRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyDBClusterConfigRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ModifyDBClusterConfigRequest::getDBClusterId() const { + return dBClusterId_; +} + +void ModifyDBClusterConfigRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string ModifyDBClusterConfigRequest::getUserConfig() const { + return userConfig_; +} + +void ModifyDBClusterConfigRequest::setUserConfig(const std::string &userConfig) { + userConfig_ = userConfig; + setParameter(std::string("UserConfig"), userConfig); +} + +std::string ModifyDBClusterConfigRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyDBClusterConfigRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ModifyDBClusterConfigRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyDBClusterConfigRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/clickhouse/src/model/ModifyDBClusterConfigResult.cc b/clickhouse/src/model/ModifyDBClusterConfigResult.cc new file mode 100644 index 000000000..5df6f17c2 --- /dev/null +++ b/clickhouse/src/model/ModifyDBClusterConfigResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +ModifyDBClusterConfigResult::ModifyDBClusterConfigResult() : + ServiceResult() +{} + +ModifyDBClusterConfigResult::ModifyDBClusterConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBClusterConfigResult::~ModifyDBClusterConfigResult() +{} + +void ModifyDBClusterConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/clickhouse/src/model/ModifyDBClusterDescriptionRequest.cc b/clickhouse/src/model/ModifyDBClusterDescriptionRequest.cc new file mode 100644 index 000000000..7361d6f72 --- /dev/null +++ b/clickhouse/src/model/ModifyDBClusterDescriptionRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Clickhouse::Model::ModifyDBClusterDescriptionRequest; + +ModifyDBClusterDescriptionRequest::ModifyDBClusterDescriptionRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "ModifyDBClusterDescription") { + setMethod(HttpRequest::Method::Post); +} + +ModifyDBClusterDescriptionRequest::~ModifyDBClusterDescriptionRequest() {} + +long ModifyDBClusterDescriptionRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ModifyDBClusterDescriptionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ModifyDBClusterDescriptionRequest::getDBClusterDescription() const { + return dBClusterDescription_; +} + +void ModifyDBClusterDescriptionRequest::setDBClusterDescription(const std::string &dBClusterDescription) { + dBClusterDescription_ = dBClusterDescription; + setParameter(std::string("DBClusterDescription"), dBClusterDescription); +} + +std::string ModifyDBClusterDescriptionRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ModifyDBClusterDescriptionRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ModifyDBClusterDescriptionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyDBClusterDescriptionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ModifyDBClusterDescriptionRequest::getDBClusterId() const { + return dBClusterId_; +} + +void ModifyDBClusterDescriptionRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string ModifyDBClusterDescriptionRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyDBClusterDescriptionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ModifyDBClusterDescriptionRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyDBClusterDescriptionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/clickhouse/src/model/ModifyDBClusterDescriptionResult.cc b/clickhouse/src/model/ModifyDBClusterDescriptionResult.cc new file mode 100644 index 000000000..c38be4e15 --- /dev/null +++ b/clickhouse/src/model/ModifyDBClusterDescriptionResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +ModifyDBClusterDescriptionResult::ModifyDBClusterDescriptionResult() : + ServiceResult() +{} + +ModifyDBClusterDescriptionResult::ModifyDBClusterDescriptionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBClusterDescriptionResult::~ModifyDBClusterDescriptionResult() +{} + +void ModifyDBClusterDescriptionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/clickhouse/src/model/ModifyDBClusterMaintainTimeRequest.cc b/clickhouse/src/model/ModifyDBClusterMaintainTimeRequest.cc new file mode 100644 index 000000000..1ff179300 --- /dev/null +++ b/clickhouse/src/model/ModifyDBClusterMaintainTimeRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Clickhouse::Model::ModifyDBClusterMaintainTimeRequest; + +ModifyDBClusterMaintainTimeRequest::ModifyDBClusterMaintainTimeRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "ModifyDBClusterMaintainTime") { + setMethod(HttpRequest::Method::Post); +} + +ModifyDBClusterMaintainTimeRequest::~ModifyDBClusterMaintainTimeRequest() {} + +long ModifyDBClusterMaintainTimeRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ModifyDBClusterMaintainTimeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ModifyDBClusterMaintainTimeRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ModifyDBClusterMaintainTimeRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ModifyDBClusterMaintainTimeRequest::getMaintainTime() const { + return maintainTime_; +} + +void ModifyDBClusterMaintainTimeRequest::setMaintainTime(const std::string &maintainTime) { + maintainTime_ = maintainTime; + setParameter(std::string("MaintainTime"), maintainTime); +} + +std::string ModifyDBClusterMaintainTimeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyDBClusterMaintainTimeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ModifyDBClusterMaintainTimeRequest::getDBClusterId() const { + return dBClusterId_; +} + +void ModifyDBClusterMaintainTimeRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string ModifyDBClusterMaintainTimeRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyDBClusterMaintainTimeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ModifyDBClusterMaintainTimeRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyDBClusterMaintainTimeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/clickhouse/src/model/ModifyDBClusterMaintainTimeResult.cc b/clickhouse/src/model/ModifyDBClusterMaintainTimeResult.cc new file mode 100644 index 000000000..3422633b1 --- /dev/null +++ b/clickhouse/src/model/ModifyDBClusterMaintainTimeResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +ModifyDBClusterMaintainTimeResult::ModifyDBClusterMaintainTimeResult() : + ServiceResult() +{} + +ModifyDBClusterMaintainTimeResult::ModifyDBClusterMaintainTimeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBClusterMaintainTimeResult::~ModifyDBClusterMaintainTimeResult() +{} + +void ModifyDBClusterMaintainTimeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/clickhouse/src/model/ModifyDBClusterRequest.cc b/clickhouse/src/model/ModifyDBClusterRequest.cc new file mode 100644 index 000000000..31ef2fdd5 --- /dev/null +++ b/clickhouse/src/model/ModifyDBClusterRequest.cc @@ -0,0 +1,135 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Clickhouse::Model::ModifyDBClusterRequest; + +ModifyDBClusterRequest::ModifyDBClusterRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "ModifyDBCluster") { + setMethod(HttpRequest::Method::Post); +} + +ModifyDBClusterRequest::~ModifyDBClusterRequest() {} + +long ModifyDBClusterRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ModifyDBClusterRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ModifyDBClusterRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ModifyDBClusterRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ModifyDBClusterRequest::getRegionId() const { + return regionId_; +} + +void ModifyDBClusterRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ModifyDBClusterRequest::getDbNodeStorageType() const { + return dbNodeStorageType_; +} + +void ModifyDBClusterRequest::setDbNodeStorageType(const std::string &dbNodeStorageType) { + dbNodeStorageType_ = dbNodeStorageType; + setParameter(std::string("DbNodeStorageType"), dbNodeStorageType); +} + +std::string ModifyDBClusterRequest::getDisableWriteWindows() const { + return disableWriteWindows_; +} + +void ModifyDBClusterRequest::setDisableWriteWindows(const std::string &disableWriteWindows) { + disableWriteWindows_ = disableWriteWindows; + setParameter(std::string("DisableWriteWindows"), disableWriteWindows); +} + +std::string ModifyDBClusterRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyDBClusterRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ModifyDBClusterRequest::getDBClusterId() const { + return dBClusterId_; +} + +void ModifyDBClusterRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string ModifyDBClusterRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyDBClusterRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string ModifyDBClusterRequest::getDBClusterClass() const { + return dBClusterClass_; +} + +void ModifyDBClusterRequest::setDBClusterClass(const std::string &dBClusterClass) { + dBClusterClass_ = dBClusterClass; + setParameter(std::string("DBClusterClass"), dBClusterClass); +} + +long ModifyDBClusterRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyDBClusterRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ModifyDBClusterRequest::getDBNodeGroupCount() const { + return dBNodeGroupCount_; +} + +void ModifyDBClusterRequest::setDBNodeGroupCount(const std::string &dBNodeGroupCount) { + dBNodeGroupCount_ = dBNodeGroupCount; + setParameter(std::string("DBNodeGroupCount"), dBNodeGroupCount); +} + +std::string ModifyDBClusterRequest::getDBNodeStorage() const { + return dBNodeStorage_; +} + +void ModifyDBClusterRequest::setDBNodeStorage(const std::string &dBNodeStorage) { + dBNodeStorage_ = dBNodeStorage; + setParameter(std::string("DBNodeStorage"), dBNodeStorage); +} + diff --git a/clickhouse/src/model/ModifyDBClusterResult.cc b/clickhouse/src/model/ModifyDBClusterResult.cc new file mode 100644 index 000000000..bc6bc60a9 --- /dev/null +++ b/clickhouse/src/model/ModifyDBClusterResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +ModifyDBClusterResult::ModifyDBClusterResult() : + ServiceResult() +{} + +ModifyDBClusterResult::ModifyDBClusterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBClusterResult::~ModifyDBClusterResult() +{} + +void ModifyDBClusterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dBClusterNode = value["DBCluster"]; + if(!dBClusterNode["dbClusterId"].isNull()) + dBCluster_.dbClusterId = dBClusterNode["dbClusterId"].asString(); + if(!dBClusterNode["orderId"].isNull()) + dBCluster_.orderId = dBClusterNode["orderId"].asString(); + +} + +ModifyDBClusterResult::DBCluster ModifyDBClusterResult::getDBCluster()const +{ + return dBCluster_; +} + diff --git a/clickhouse/src/model/ModifyDBConfigRequest.cc b/clickhouse/src/model/ModifyDBConfigRequest.cc new file mode 100644 index 000000000..3c69493d3 --- /dev/null +++ b/clickhouse/src/model/ModifyDBConfigRequest.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 + +using AlibabaCloud::Clickhouse::Model::ModifyDBConfigRequest; + +ModifyDBConfigRequest::ModifyDBConfigRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "ModifyDBConfig") { + setMethod(HttpRequest::Method::Post); +} + +ModifyDBConfigRequest::~ModifyDBConfigRequest() {} + +long ModifyDBConfigRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ModifyDBConfigRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ModifyDBConfigRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ModifyDBConfigRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ModifyDBConfigRequest::getRegionId() const { + return regionId_; +} + +void ModifyDBConfigRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ModifyDBConfigRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyDBConfigRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ModifyDBConfigRequest::getDBClusterId() const { + return dBClusterId_; +} + +void ModifyDBConfigRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string ModifyDBConfigRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyDBConfigRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ModifyDBConfigRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyDBConfigRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ModifyDBConfigRequest::getConfig() const { + return config_; +} + +void ModifyDBConfigRequest::setConfig(const std::string &config) { + config_ = config; + setParameter(std::string("Config"), config); +} + diff --git a/clickhouse/src/model/ModifyDBConfigResult.cc b/clickhouse/src/model/ModifyDBConfigResult.cc new file mode 100644 index 000000000..ad635616e --- /dev/null +++ b/clickhouse/src/model/ModifyDBConfigResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +ModifyDBConfigResult::ModifyDBConfigResult() : + ServiceResult() +{} + +ModifyDBConfigResult::ModifyDBConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBConfigResult::~ModifyDBConfigResult() +{} + +void ModifyDBConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/clickhouse/src/model/ModifyMinorVersionGreadeTypeRequest.cc b/clickhouse/src/model/ModifyMinorVersionGreadeTypeRequest.cc new file mode 100644 index 000000000..59882c4bf --- /dev/null +++ b/clickhouse/src/model/ModifyMinorVersionGreadeTypeRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Clickhouse::Model::ModifyMinorVersionGreadeTypeRequest; + +ModifyMinorVersionGreadeTypeRequest::ModifyMinorVersionGreadeTypeRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "ModifyMinorVersionGreadeType") { + setMethod(HttpRequest::Method::Post); +} + +ModifyMinorVersionGreadeTypeRequest::~ModifyMinorVersionGreadeTypeRequest() {} + +long ModifyMinorVersionGreadeTypeRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ModifyMinorVersionGreadeTypeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ModifyMinorVersionGreadeTypeRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ModifyMinorVersionGreadeTypeRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ModifyMinorVersionGreadeTypeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyMinorVersionGreadeTypeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ModifyMinorVersionGreadeTypeRequest::getDBClusterId() const { + return dBClusterId_; +} + +void ModifyMinorVersionGreadeTypeRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string ModifyMinorVersionGreadeTypeRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyMinorVersionGreadeTypeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ModifyMinorVersionGreadeTypeRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyMinorVersionGreadeTypeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +bool ModifyMinorVersionGreadeTypeRequest::getMaintainAutoType() const { + return maintainAutoType_; +} + +void ModifyMinorVersionGreadeTypeRequest::setMaintainAutoType(bool maintainAutoType) { + maintainAutoType_ = maintainAutoType; + setParameter(std::string("MaintainAutoType"), maintainAutoType ? "true" : "false"); +} + diff --git a/clickhouse/src/model/ModifyMinorVersionGreadeTypeResult.cc b/clickhouse/src/model/ModifyMinorVersionGreadeTypeResult.cc new file mode 100644 index 000000000..f25ef9061 --- /dev/null +++ b/clickhouse/src/model/ModifyMinorVersionGreadeTypeResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +ModifyMinorVersionGreadeTypeResult::ModifyMinorVersionGreadeTypeResult() : + ServiceResult() +{} + +ModifyMinorVersionGreadeTypeResult::ModifyMinorVersionGreadeTypeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyMinorVersionGreadeTypeResult::~ModifyMinorVersionGreadeTypeResult() +{} + +void ModifyMinorVersionGreadeTypeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/clickhouse/src/model/ModifyRDSToClickhouseDbRequest.cc b/clickhouse/src/model/ModifyRDSToClickhouseDbRequest.cc new file mode 100644 index 000000000..db6e792a6 --- /dev/null +++ b/clickhouse/src/model/ModifyRDSToClickhouseDbRequest.cc @@ -0,0 +1,189 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Clickhouse::Model::ModifyRDSToClickhouseDbRequest; + +ModifyRDSToClickhouseDbRequest::ModifyRDSToClickhouseDbRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "ModifyRDSToClickhouseDb") { + setMethod(HttpRequest::Method::Post); +} + +ModifyRDSToClickhouseDbRequest::~ModifyRDSToClickhouseDbRequest() {} + +long ModifyRDSToClickhouseDbRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ModifyRDSToClickhouseDbRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ModifyRDSToClickhouseDbRequest::getRdsVpcId() const { + return rdsVpcId_; +} + +void ModifyRDSToClickhouseDbRequest::setRdsVpcId(const std::string &rdsVpcId) { + rdsVpcId_ = rdsVpcId; + setParameter(std::string("RdsVpcId"), rdsVpcId); +} + +std::string ModifyRDSToClickhouseDbRequest::getCkPassword() const { + return ckPassword_; +} + +void ModifyRDSToClickhouseDbRequest::setCkPassword(const std::string &ckPassword) { + ckPassword_ = ckPassword; + setParameter(std::string("CkPassword"), ckPassword); +} + +std::string ModifyRDSToClickhouseDbRequest::getRdsSynTables() const { + return rdsSynTables_; +} + +void ModifyRDSToClickhouseDbRequest::setRdsSynTables(const std::string &rdsSynTables) { + rdsSynTables_ = rdsSynTables; + setParameter(std::string("RdsSynTables"), rdsSynTables); +} + +std::string ModifyRDSToClickhouseDbRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ModifyRDSToClickhouseDbRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ModifyRDSToClickhouseDbRequest::getRdsPassword() const { + return rdsPassword_; +} + +void ModifyRDSToClickhouseDbRequest::setRdsPassword(const std::string &rdsPassword) { + rdsPassword_ = rdsPassword; + setParameter(std::string("RdsPassword"), rdsPassword); +} + +std::string ModifyRDSToClickhouseDbRequest::getCkUserName() const { + return ckUserName_; +} + +void ModifyRDSToClickhouseDbRequest::setCkUserName(const std::string &ckUserName) { + ckUserName_ = ckUserName; + setParameter(std::string("CkUserName"), ckUserName); +} + +std::string ModifyRDSToClickhouseDbRequest::getRdsSynDb() const { + return rdsSynDb_; +} + +void ModifyRDSToClickhouseDbRequest::setRdsSynDb(const std::string &rdsSynDb) { + rdsSynDb_ = rdsSynDb; + setParameter(std::string("RdsSynDb"), rdsSynDb); +} + +std::string ModifyRDSToClickhouseDbRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyRDSToClickhouseDbRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ModifyRDSToClickhouseDbRequest::getDbClusterId() const { + return dbClusterId_; +} + +void ModifyRDSToClickhouseDbRequest::setDbClusterId(const std::string &dbClusterId) { + dbClusterId_ = dbClusterId; + setParameter(std::string("DbClusterId"), dbClusterId); +} + +std::string ModifyRDSToClickhouseDbRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyRDSToClickhouseDbRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string ModifyRDSToClickhouseDbRequest::getRdsId() const { + return rdsId_; +} + +void ModifyRDSToClickhouseDbRequest::setRdsId(const std::string &rdsId) { + rdsId_ = rdsId; + setParameter(std::string("RdsId"), rdsId); +} + +long ModifyRDSToClickhouseDbRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyRDSToClickhouseDbRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +long ModifyRDSToClickhouseDbRequest::getClickhousePort() const { + return clickhousePort_; +} + +void ModifyRDSToClickhouseDbRequest::setClickhousePort(long clickhousePort) { + clickhousePort_ = clickhousePort; + setParameter(std::string("ClickhousePort"), std::to_string(clickhousePort)); +} + +long ModifyRDSToClickhouseDbRequest::getLimitUpper() const { + return limitUpper_; +} + +void ModifyRDSToClickhouseDbRequest::setLimitUpper(long limitUpper) { + limitUpper_ = limitUpper; + setParameter(std::string("LimitUpper"), std::to_string(limitUpper)); +} + +long ModifyRDSToClickhouseDbRequest::getRdsPort() const { + return rdsPort_; +} + +void ModifyRDSToClickhouseDbRequest::setRdsPort(long rdsPort) { + rdsPort_ = rdsPort; + setParameter(std::string("RdsPort"), std::to_string(rdsPort)); +} + +bool ModifyRDSToClickhouseDbRequest::getSkipUnsupported() const { + return skipUnsupported_; +} + +void ModifyRDSToClickhouseDbRequest::setSkipUnsupported(bool skipUnsupported) { + skipUnsupported_ = skipUnsupported; + setParameter(std::string("SkipUnsupported"), skipUnsupported ? "true" : "false"); +} + +std::string ModifyRDSToClickhouseDbRequest::getRdsUserName() const { + return rdsUserName_; +} + +void ModifyRDSToClickhouseDbRequest::setRdsUserName(const std::string &rdsUserName) { + rdsUserName_ = rdsUserName; + setParameter(std::string("RdsUserName"), rdsUserName); +} + diff --git a/clickhouse/src/model/ModifyRDSToClickhouseDbResult.cc b/clickhouse/src/model/ModifyRDSToClickhouseDbResult.cc new file mode 100644 index 000000000..933b41fd4 --- /dev/null +++ b/clickhouse/src/model/ModifyRDSToClickhouseDbResult.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::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +ModifyRDSToClickhouseDbResult::ModifyRDSToClickhouseDbResult() : + ServiceResult() +{} + +ModifyRDSToClickhouseDbResult::ModifyRDSToClickhouseDbResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyRDSToClickhouseDbResult::~ModifyRDSToClickhouseDbResult() +{} + +void ModifyRDSToClickhouseDbResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Status"].isNull()) + status_ = std::stol(value["Status"].asString()); + if(!value["ErrorMsg"].isNull()) + errorMsg_ = value["ErrorMsg"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stol(value["ErrorCode"].asString()); + +} + +long ModifyRDSToClickhouseDbResult::getStatus()const +{ + return status_; +} + +std::string ModifyRDSToClickhouseDbResult::getErrorMsg()const +{ + return errorMsg_; +} + +long ModifyRDSToClickhouseDbResult::getErrorCode()const +{ + return errorCode_; +} + diff --git a/clickhouse/src/model/ReleaseClusterPublicConnectionRequest.cc b/clickhouse/src/model/ReleaseClusterPublicConnectionRequest.cc new file mode 100644 index 000000000..b4b803667 --- /dev/null +++ b/clickhouse/src/model/ReleaseClusterPublicConnectionRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Clickhouse::Model::ReleaseClusterPublicConnectionRequest; + +ReleaseClusterPublicConnectionRequest::ReleaseClusterPublicConnectionRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "ReleaseClusterPublicConnection") { + setMethod(HttpRequest::Method::Post); +} + +ReleaseClusterPublicConnectionRequest::~ReleaseClusterPublicConnectionRequest() {} + +long ReleaseClusterPublicConnectionRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ReleaseClusterPublicConnectionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ReleaseClusterPublicConnectionRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ReleaseClusterPublicConnectionRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ReleaseClusterPublicConnectionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ReleaseClusterPublicConnectionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ReleaseClusterPublicConnectionRequest::getDBClusterId() const { + return dBClusterId_; +} + +void ReleaseClusterPublicConnectionRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string ReleaseClusterPublicConnectionRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ReleaseClusterPublicConnectionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ReleaseClusterPublicConnectionRequest::getOwnerId() const { + return ownerId_; +} + +void ReleaseClusterPublicConnectionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/clickhouse/src/model/ReleaseClusterPublicConnectionResult.cc b/clickhouse/src/model/ReleaseClusterPublicConnectionResult.cc new file mode 100644 index 000000000..f7ae192e2 --- /dev/null +++ b/clickhouse/src/model/ReleaseClusterPublicConnectionResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +ReleaseClusterPublicConnectionResult::ReleaseClusterPublicConnectionResult() : + ServiceResult() +{} + +ReleaseClusterPublicConnectionResult::ReleaseClusterPublicConnectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReleaseClusterPublicConnectionResult::~ReleaseClusterPublicConnectionResult() +{} + +void ReleaseClusterPublicConnectionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/clickhouse/src/model/ResetAccountPasswordRequest.cc b/clickhouse/src/model/ResetAccountPasswordRequest.cc new file mode 100644 index 000000000..eded3726e --- /dev/null +++ b/clickhouse/src/model/ResetAccountPasswordRequest.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 + +using AlibabaCloud::Clickhouse::Model::ResetAccountPasswordRequest; + +ResetAccountPasswordRequest::ResetAccountPasswordRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "ResetAccountPassword") { + setMethod(HttpRequest::Method::Post); +} + +ResetAccountPasswordRequest::~ResetAccountPasswordRequest() {} + +long ResetAccountPasswordRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ResetAccountPasswordRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ResetAccountPasswordRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ResetAccountPasswordRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ResetAccountPasswordRequest::getAccountName() const { + return accountName_; +} + +void ResetAccountPasswordRequest::setAccountName(const std::string &accountName) { + accountName_ = accountName; + setParameter(std::string("AccountName"), accountName); +} + +std::string ResetAccountPasswordRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ResetAccountPasswordRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ResetAccountPasswordRequest::getDBClusterId() const { + return dBClusterId_; +} + +void ResetAccountPasswordRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string ResetAccountPasswordRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ResetAccountPasswordRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ResetAccountPasswordRequest::getOwnerId() const { + return ownerId_; +} + +void ResetAccountPasswordRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ResetAccountPasswordRequest::getAccountPassword() const { + return accountPassword_; +} + +void ResetAccountPasswordRequest::setAccountPassword(const std::string &accountPassword) { + accountPassword_ = accountPassword; + setParameter(std::string("AccountPassword"), accountPassword); +} + diff --git a/clickhouse/src/model/ResetAccountPasswordResult.cc b/clickhouse/src/model/ResetAccountPasswordResult.cc new file mode 100644 index 000000000..a68502890 --- /dev/null +++ b/clickhouse/src/model/ResetAccountPasswordResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +ResetAccountPasswordResult::ResetAccountPasswordResult() : + ServiceResult() +{} + +ResetAccountPasswordResult::ResetAccountPasswordResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ResetAccountPasswordResult::~ResetAccountPasswordResult() +{} + +void ResetAccountPasswordResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/clickhouse/src/model/RestartInstanceRequest.cc b/clickhouse/src/model/RestartInstanceRequest.cc new file mode 100644 index 000000000..1140b6919 --- /dev/null +++ b/clickhouse/src/model/RestartInstanceRequest.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::Clickhouse::Model::RestartInstanceRequest; + +RestartInstanceRequest::RestartInstanceRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "RestartInstance") { + setMethod(HttpRequest::Method::Post); +} + +RestartInstanceRequest::~RestartInstanceRequest() {} + +long RestartInstanceRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void RestartInstanceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +int RestartInstanceRequest::getPageNumber() const { + return pageNumber_; +} + +void RestartInstanceRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string RestartInstanceRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void RestartInstanceRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string RestartInstanceRequest::getRegionId() const { + return regionId_; +} + +void RestartInstanceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int RestartInstanceRequest::getPageSize() const { + return pageSize_; +} + +void RestartInstanceRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string RestartInstanceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void RestartInstanceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string RestartInstanceRequest::getDBClusterId() const { + return dBClusterId_; +} + +void RestartInstanceRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string RestartInstanceRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void RestartInstanceRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string RestartInstanceRequest::getRestartTime() const { + return restartTime_; +} + +void RestartInstanceRequest::setRestartTime(const std::string &restartTime) { + restartTime_ = restartTime; + setParameter(std::string("RestartTime"), restartTime); +} + +long RestartInstanceRequest::getOwnerId() const { + return ownerId_; +} + +void RestartInstanceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/clickhouse/src/model/RestartInstanceResult.cc b/clickhouse/src/model/RestartInstanceResult.cc new file mode 100644 index 000000000..4c7d2188e --- /dev/null +++ b/clickhouse/src/model/RestartInstanceResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +RestartInstanceResult::RestartInstanceResult() : + ServiceResult() +{} + +RestartInstanceResult::RestartInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RestartInstanceResult::~RestartInstanceResult() +{} + +void RestartInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/clickhouse/src/model/TransferVersionRequest.cc b/clickhouse/src/model/TransferVersionRequest.cc new file mode 100644 index 000000000..77f783d08 --- /dev/null +++ b/clickhouse/src/model/TransferVersionRequest.cc @@ -0,0 +1,180 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Clickhouse::Model::TransferVersionRequest; + +TransferVersionRequest::TransferVersionRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "TransferVersion") { + setMethod(HttpRequest::Method::Post); +} + +TransferVersionRequest::~TransferVersionRequest() {} + +long TransferVersionRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void TransferVersionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +int TransferVersionRequest::getPageNumber() const { + return pageNumber_; +} + +void TransferVersionRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string TransferVersionRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void TransferVersionRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string TransferVersionRequest::getSourceAccount() const { + return sourceAccount_; +} + +void TransferVersionRequest::setSourceAccount(const std::string &sourceAccount) { + sourceAccount_ = sourceAccount; + setParameter(std::string("SourceAccount"), sourceAccount); +} + +std::string TransferVersionRequest::getTargetAccount() const { + return targetAccount_; +} + +void TransferVersionRequest::setTargetAccount(const std::string &targetAccount) { + targetAccount_ = targetAccount; + setParameter(std::string("TargetAccount"), targetAccount); +} + +std::string TransferVersionRequest::getRegionId() const { + return regionId_; +} + +void TransferVersionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string TransferVersionRequest::getSourceClusterName() const { + return sourceClusterName_; +} + +void TransferVersionRequest::setSourceClusterName(const std::string &sourceClusterName) { + sourceClusterName_ = sourceClusterName; + setParameter(std::string("SourceClusterName"), sourceClusterName); +} + +int TransferVersionRequest::getPageSize() const { + return pageSize_; +} + +void TransferVersionRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string TransferVersionRequest::getSourcePassword() const { + return sourcePassword_; +} + +void TransferVersionRequest::setSourcePassword(const std::string &sourcePassword) { + sourcePassword_ = sourcePassword; + setParameter(std::string("SourcePassword"), sourcePassword); +} + +std::string TransferVersionRequest::getDisableWriteWindows() const { + return disableWriteWindows_; +} + +void TransferVersionRequest::setDisableWriteWindows(const std::string &disableWriteWindows) { + disableWriteWindows_ = disableWriteWindows; + setParameter(std::string("DisableWriteWindows"), disableWriteWindows); +} + +std::string TransferVersionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void TransferVersionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string TransferVersionRequest::getDBClusterId() const { + return dBClusterId_; +} + +void TransferVersionRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string TransferVersionRequest::getTargetPassword() const { + return targetPassword_; +} + +void TransferVersionRequest::setTargetPassword(const std::string &targetPassword) { + targetPassword_ = targetPassword; + setParameter(std::string("TargetPassword"), targetPassword); +} + +std::string TransferVersionRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void TransferVersionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long TransferVersionRequest::getOwnerId() const { + return ownerId_; +} + +void TransferVersionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string TransferVersionRequest::getTargetDbClusterId() const { + return targetDbClusterId_; +} + +void TransferVersionRequest::setTargetDbClusterId(const std::string &targetDbClusterId) { + targetDbClusterId_ = targetDbClusterId; + setParameter(std::string("TargetDbClusterId"), targetDbClusterId); +} + +std::string TransferVersionRequest::getSourceShards() const { + return sourceShards_; +} + +void TransferVersionRequest::setSourceShards(const std::string &sourceShards) { + sourceShards_ = sourceShards; + setParameter(std::string("SourceShards"), sourceShards); +} + diff --git a/clickhouse/src/model/TransferVersionResult.cc b/clickhouse/src/model/TransferVersionResult.cc new file mode 100644 index 000000000..9b75961fe --- /dev/null +++ b/clickhouse/src/model/TransferVersionResult.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::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +TransferVersionResult::TransferVersionResult() : + ServiceResult() +{} + +TransferVersionResult::TransferVersionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TransferVersionResult::~TransferVersionResult() +{} + +void TransferVersionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["DBInstanceID"].isNull()) + dBInstanceID_ = std::stoi(value["DBInstanceID"].asString()); + if(!value["DBInstanceName"].isNull()) + dBInstanceName_ = std::stol(value["DBInstanceName"].asString()); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString() == "true"; + +} + +bool TransferVersionResult::getTaskId()const +{ + return taskId_; +} + +int TransferVersionResult::getDBInstanceID()const +{ + return dBInstanceID_; +} + +long TransferVersionResult::getDBInstanceName()const +{ + return dBInstanceName_; +} + diff --git a/clickhouse/src/model/UpgradeMinorVersionRequest.cc b/clickhouse/src/model/UpgradeMinorVersionRequest.cc new file mode 100644 index 000000000..23a4954e2 --- /dev/null +++ b/clickhouse/src/model/UpgradeMinorVersionRequest.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Clickhouse::Model::UpgradeMinorVersionRequest; + +UpgradeMinorVersionRequest::UpgradeMinorVersionRequest() + : RpcServiceRequest("clickhouse", "2019-11-11", "UpgradeMinorVersion") { + setMethod(HttpRequest::Method::Post); +} + +UpgradeMinorVersionRequest::~UpgradeMinorVersionRequest() {} + +long UpgradeMinorVersionRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void UpgradeMinorVersionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +bool UpgradeMinorVersionRequest::getUpgradeImmediately() const { + return upgradeImmediately_; +} + +void UpgradeMinorVersionRequest::setUpgradeImmediately(bool upgradeImmediately) { + upgradeImmediately_ = upgradeImmediately; + setParameter(std::string("UpgradeImmediately"), upgradeImmediately ? "true" : "false"); +} + +std::string UpgradeMinorVersionRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void UpgradeMinorVersionRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string UpgradeMinorVersionRequest::getUpgradeVersion() const { + return upgradeVersion_; +} + +void UpgradeMinorVersionRequest::setUpgradeVersion(const std::string &upgradeVersion) { + upgradeVersion_ = upgradeVersion; + setParameter(std::string("UpgradeVersion"), upgradeVersion); +} + +std::string UpgradeMinorVersionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void UpgradeMinorVersionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string UpgradeMinorVersionRequest::getDBClusterId() const { + return dBClusterId_; +} + +void UpgradeMinorVersionRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string UpgradeMinorVersionRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void UpgradeMinorVersionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long UpgradeMinorVersionRequest::getOwnerId() const { + return ownerId_; +} + +void UpgradeMinorVersionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string UpgradeMinorVersionRequest::getUpgradeTime() const { + return upgradeTime_; +} + +void UpgradeMinorVersionRequest::setUpgradeTime(const std::string &upgradeTime) { + upgradeTime_ = upgradeTime; + setParameter(std::string("UpgradeTime"), upgradeTime); +} + diff --git a/clickhouse/src/model/UpgradeMinorVersionResult.cc b/clickhouse/src/model/UpgradeMinorVersionResult.cc new file mode 100644 index 000000000..9d0329f2d --- /dev/null +++ b/clickhouse/src/model/UpgradeMinorVersionResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Clickhouse; +using namespace AlibabaCloud::Clickhouse::Model; + +UpgradeMinorVersionResult::UpgradeMinorVersionResult() : + ServiceResult() +{} + +UpgradeMinorVersionResult::UpgradeMinorVersionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpgradeMinorVersionResult::~UpgradeMinorVersionResult() +{} + +void UpgradeMinorVersionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} +