diff --git a/CHANGELOG b/CHANGELOG index d64aa928b..235b62433 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2019-05-27 Version: 1.36.33 +1, Initial release of api, including data management api, rule configuration api and system configuration api. + 2019-05-22 Version: 1.36.32 1, Add EndTime parameter to api ModifyPrepayInstanceSpec 2, Add RebootTime parameter to api ModifyPrepayInstanceSpec diff --git a/CMakeLists.txt b/CMakeLists.txt index ada563c1d..7121d321e 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -123,4 +123,5 @@ add_subdirectory(dbs) add_subdirectory(r-kvstore) add_subdirectory(dds) add_subdirectory(yundun-ds) -add_subdirectory(trademark) \ No newline at end of file +add_subdirectory(trademark) +add_subdirectory(sddp) \ No newline at end of file diff --git a/VERSION b/VERSION index 7a3bed6db..2c26b6f89 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.32 \ No newline at end of file +1.36.33 \ No newline at end of file diff --git a/sddp/CMakeLists.txt b/sddp/CMakeLists.txt new file mode 100644 index 000000000..4cbb3aead --- /dev/null +++ b/sddp/CMakeLists.txt @@ -0,0 +1,82 @@ +# +# Copyright 2009-2017 Alibaba Cloud All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include) + +set(sddp_public_header + include/alibabacloud/sddp/SddpClient.h + include/alibabacloud/sddp/SddpExport.h ) + +set(sddp_public_header_model ) + +set(sddp_src + src/SddpClient.cc ) + +add_library(sddp ${LIB_TYPE} + ${sddp_public_header} + ${sddp_public_header_model} + ${sddp_src}) + +set_target_properties(sddp + 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}sddp + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(sddp + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_SDDP_LIBRARY) +endif() + +target_include_directories(sddp + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(sddp + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(sddp + jsoncpp) + target_include_directories(sddp + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(sddp + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(sddp + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(sddp + PRIVATE /usr/include/jsoncpp) + target_link_libraries(sddp + jsoncpp) +endif() + +install(FILES ${sddp_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/sddp) +install(FILES ${sddp_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/sddp/model) +install(TARGETS sddp + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/SddpClient.h b/sddp/include/alibabacloud/sddp/SddpClient.h new file mode 100644 index 000000000..33dece4e2 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/SddpClient.h @@ -0,0 +1,358 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_SDDPCLIENT_H_ +#define ALIBABACLOUD_SDDP_SDDPCLIENT_H_ + +#include +#include +#include +#include +#include "SddpExport.h" +#include "model/DescribeOssObjectDetailRequest.h" +#include "model/DescribeOssObjectDetailResult.h" +#include "model/CreateConfigRequest.h" +#include "model/CreateConfigResult.h" +#include "model/DescribeEventTypesRequest.h" +#include "model/DescribeEventTypesResult.h" +#include "model/DescribePackagesRequest.h" +#include "model/DescribePackagesResult.h" +#include "model/ModifyEventStatusRequest.h" +#include "model/ModifyEventStatusResult.h" +#include "model/DescribeConfigsRequest.h" +#include "model/DescribeConfigsResult.h" +#include "model/DescribeAuthAccountsRequest.h" +#include "model/DescribeAuthAccountsResult.h" +#include "model/DescribeDataAssetsRequest.h" +#include "model/DescribeDataAssetsResult.h" +#include "model/ValidateConnectorRequest.h" +#include "model/ValidateConnectorResult.h" +#include "model/DescribeCloudDatabasesRequest.h" +#include "model/DescribeCloudDatabasesResult.h" +#include "model/CreateRuleRequest.h" +#include "model/CreateRuleResult.h" +#include "model/CreateUserAuthRequest.h" +#include "model/CreateUserAuthResult.h" +#include "model/DeleteRuleRequest.h" +#include "model/DeleteRuleResult.h" +#include "model/DescribeDataHubConnectorsRequest.h" +#include "model/DescribeDataHubConnectorsResult.h" +#include "model/DescribeRulesRequest.h" +#include "model/DescribeRulesResult.h" +#include "model/DescribeDataLimitDetailRequest.h" +#include "model/DescribeDataLimitDetailResult.h" +#include "model/DescribeColumnsRequest.h" +#include "model/DescribeColumnsResult.h" +#include "model/ModifyRuleStatusRequest.h" +#include "model/ModifyRuleStatusResult.h" +#include "model/DeleteDataLimitRequest.h" +#include "model/DeleteDataLimitResult.h" +#include "model/DescribeAccountDetailRequest.h" +#include "model/DescribeAccountDetailResult.h" +#include "model/DescribeDepartsRequest.h" +#include "model/DescribeDepartsResult.h" +#include "model/DescribeDataHubSubscriptionsRequest.h" +#include "model/DescribeDataHubSubscriptionsResult.h" +#include "model/DescribeDataHubTopicsRequest.h" +#include "model/DescribeDataHubTopicsResult.h" +#include "model/DescribeCloudInstancesRequest.h" +#include "model/DescribeCloudInstancesResult.h" +#include "model/DescribeAccountsRequest.h" +#include "model/DescribeAccountsResult.h" +#include "model/DescribeOssObjectsRequest.h" +#include "model/DescribeOssObjectsResult.h" +#include "model/DescribeDataLimitsRequest.h" +#include "model/DescribeDataLimitsResult.h" +#include "model/DescribeEventsRequest.h" +#include "model/DescribeEventsResult.h" +#include "model/CreateDataLimitRequest.h" +#include "model/CreateDataLimitResult.h" +#include "model/ModifyRuleRequest.h" +#include "model/ModifyRuleResult.h" +#include "model/ModifyDataLimitRequest.h" +#include "model/ModifyDataLimitResult.h" +#include "model/DescribeEventDetailRequest.h" +#include "model/DescribeEventDetailResult.h" +#include "model/DescribeTablesRequest.h" +#include "model/DescribeTablesResult.h" +#include "model/DescribePrivilegesRequest.h" +#include "model/DescribePrivilegesResult.h" +#include "model/DescribeDataHubProjectsRequest.h" +#include "model/DescribeDataHubProjectsResult.h" +#include "model/DescribeInstancesRequest.h" +#include "model/DescribeInstancesResult.h" +#include "model/ModifyDefaultLevelRequest.h" +#include "model/ModifyDefaultLevelResult.h" +#include "model/ModifyEventTypeStatusRequest.h" +#include "model/ModifyEventTypeStatusResult.h" +#include "model/DescribeUserStatusRequest.h" +#include "model/DescribeUserStatusResult.h" + + +namespace AlibabaCloud +{ + namespace Sddp + { + class ALIBABACLOUD_SDDP_EXPORT SddpClient : public RpcServiceClient + { + public: + typedef Outcome DescribeOssObjectDetailOutcome; + typedef std::future DescribeOssObjectDetailOutcomeCallable; + typedef std::function&)> DescribeOssObjectDetailAsyncHandler; + typedef Outcome CreateConfigOutcome; + typedef std::future CreateConfigOutcomeCallable; + typedef std::function&)> CreateConfigAsyncHandler; + typedef Outcome DescribeEventTypesOutcome; + typedef std::future DescribeEventTypesOutcomeCallable; + typedef std::function&)> DescribeEventTypesAsyncHandler; + typedef Outcome DescribePackagesOutcome; + typedef std::future DescribePackagesOutcomeCallable; + typedef std::function&)> DescribePackagesAsyncHandler; + typedef Outcome ModifyEventStatusOutcome; + typedef std::future ModifyEventStatusOutcomeCallable; + typedef std::function&)> ModifyEventStatusAsyncHandler; + typedef Outcome DescribeConfigsOutcome; + typedef std::future DescribeConfigsOutcomeCallable; + typedef std::function&)> DescribeConfigsAsyncHandler; + typedef Outcome DescribeAuthAccountsOutcome; + typedef std::future DescribeAuthAccountsOutcomeCallable; + typedef std::function&)> DescribeAuthAccountsAsyncHandler; + typedef Outcome DescribeDataAssetsOutcome; + typedef std::future DescribeDataAssetsOutcomeCallable; + typedef std::function&)> DescribeDataAssetsAsyncHandler; + typedef Outcome ValidateConnectorOutcome; + typedef std::future ValidateConnectorOutcomeCallable; + typedef std::function&)> ValidateConnectorAsyncHandler; + typedef Outcome DescribeCloudDatabasesOutcome; + typedef std::future DescribeCloudDatabasesOutcomeCallable; + typedef std::function&)> DescribeCloudDatabasesAsyncHandler; + typedef Outcome CreateRuleOutcome; + typedef std::future CreateRuleOutcomeCallable; + typedef std::function&)> CreateRuleAsyncHandler; + typedef Outcome CreateUserAuthOutcome; + typedef std::future CreateUserAuthOutcomeCallable; + typedef std::function&)> CreateUserAuthAsyncHandler; + typedef Outcome DeleteRuleOutcome; + typedef std::future DeleteRuleOutcomeCallable; + typedef std::function&)> DeleteRuleAsyncHandler; + typedef Outcome DescribeDataHubConnectorsOutcome; + typedef std::future DescribeDataHubConnectorsOutcomeCallable; + typedef std::function&)> DescribeDataHubConnectorsAsyncHandler; + typedef Outcome DescribeRulesOutcome; + typedef std::future DescribeRulesOutcomeCallable; + typedef std::function&)> DescribeRulesAsyncHandler; + typedef Outcome DescribeDataLimitDetailOutcome; + typedef std::future DescribeDataLimitDetailOutcomeCallable; + typedef std::function&)> DescribeDataLimitDetailAsyncHandler; + typedef Outcome DescribeColumnsOutcome; + typedef std::future DescribeColumnsOutcomeCallable; + typedef std::function&)> DescribeColumnsAsyncHandler; + typedef Outcome ModifyRuleStatusOutcome; + typedef std::future ModifyRuleStatusOutcomeCallable; + typedef std::function&)> ModifyRuleStatusAsyncHandler; + typedef Outcome DeleteDataLimitOutcome; + typedef std::future DeleteDataLimitOutcomeCallable; + typedef std::function&)> DeleteDataLimitAsyncHandler; + typedef Outcome DescribeAccountDetailOutcome; + typedef std::future DescribeAccountDetailOutcomeCallable; + typedef std::function&)> DescribeAccountDetailAsyncHandler; + typedef Outcome DescribeDepartsOutcome; + typedef std::future DescribeDepartsOutcomeCallable; + typedef std::function&)> DescribeDepartsAsyncHandler; + typedef Outcome DescribeDataHubSubscriptionsOutcome; + typedef std::future DescribeDataHubSubscriptionsOutcomeCallable; + typedef std::function&)> DescribeDataHubSubscriptionsAsyncHandler; + typedef Outcome DescribeDataHubTopicsOutcome; + typedef std::future DescribeDataHubTopicsOutcomeCallable; + typedef std::function&)> DescribeDataHubTopicsAsyncHandler; + typedef Outcome DescribeCloudInstancesOutcome; + typedef std::future DescribeCloudInstancesOutcomeCallable; + typedef std::function&)> DescribeCloudInstancesAsyncHandler; + typedef Outcome DescribeAccountsOutcome; + typedef std::future DescribeAccountsOutcomeCallable; + typedef std::function&)> DescribeAccountsAsyncHandler; + typedef Outcome DescribeOssObjectsOutcome; + typedef std::future DescribeOssObjectsOutcomeCallable; + typedef std::function&)> DescribeOssObjectsAsyncHandler; + typedef Outcome DescribeDataLimitsOutcome; + typedef std::future DescribeDataLimitsOutcomeCallable; + typedef std::function&)> DescribeDataLimitsAsyncHandler; + typedef Outcome DescribeEventsOutcome; + typedef std::future DescribeEventsOutcomeCallable; + typedef std::function&)> DescribeEventsAsyncHandler; + typedef Outcome CreateDataLimitOutcome; + typedef std::future CreateDataLimitOutcomeCallable; + typedef std::function&)> CreateDataLimitAsyncHandler; + typedef Outcome ModifyRuleOutcome; + typedef std::future ModifyRuleOutcomeCallable; + typedef std::function&)> ModifyRuleAsyncHandler; + typedef Outcome ModifyDataLimitOutcome; + typedef std::future ModifyDataLimitOutcomeCallable; + typedef std::function&)> ModifyDataLimitAsyncHandler; + typedef Outcome DescribeEventDetailOutcome; + typedef std::future DescribeEventDetailOutcomeCallable; + typedef std::function&)> DescribeEventDetailAsyncHandler; + typedef Outcome DescribeTablesOutcome; + typedef std::future DescribeTablesOutcomeCallable; + typedef std::function&)> DescribeTablesAsyncHandler; + typedef Outcome DescribePrivilegesOutcome; + typedef std::future DescribePrivilegesOutcomeCallable; + typedef std::function&)> DescribePrivilegesAsyncHandler; + typedef Outcome DescribeDataHubProjectsOutcome; + typedef std::future DescribeDataHubProjectsOutcomeCallable; + typedef std::function&)> DescribeDataHubProjectsAsyncHandler; + typedef Outcome DescribeInstancesOutcome; + typedef std::future DescribeInstancesOutcomeCallable; + typedef std::function&)> DescribeInstancesAsyncHandler; + typedef Outcome ModifyDefaultLevelOutcome; + typedef std::future ModifyDefaultLevelOutcomeCallable; + typedef std::function&)> ModifyDefaultLevelAsyncHandler; + typedef Outcome ModifyEventTypeStatusOutcome; + typedef std::future ModifyEventTypeStatusOutcomeCallable; + typedef std::function&)> ModifyEventTypeStatusAsyncHandler; + typedef Outcome DescribeUserStatusOutcome; + typedef std::future DescribeUserStatusOutcomeCallable; + typedef std::function&)> DescribeUserStatusAsyncHandler; + + SddpClient(const Credentials &credentials, const ClientConfiguration &configuration); + SddpClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + SddpClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~SddpClient(); + DescribeOssObjectDetailOutcome describeOssObjectDetail(const Model::DescribeOssObjectDetailRequest &request)const; + void describeOssObjectDetailAsync(const Model::DescribeOssObjectDetailRequest& request, const DescribeOssObjectDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeOssObjectDetailOutcomeCallable describeOssObjectDetailCallable(const Model::DescribeOssObjectDetailRequest& request) const; + CreateConfigOutcome createConfig(const Model::CreateConfigRequest &request)const; + void createConfigAsync(const Model::CreateConfigRequest& request, const CreateConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateConfigOutcomeCallable createConfigCallable(const Model::CreateConfigRequest& request) const; + DescribeEventTypesOutcome describeEventTypes(const Model::DescribeEventTypesRequest &request)const; + void describeEventTypesAsync(const Model::DescribeEventTypesRequest& request, const DescribeEventTypesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeEventTypesOutcomeCallable describeEventTypesCallable(const Model::DescribeEventTypesRequest& request) const; + DescribePackagesOutcome describePackages(const Model::DescribePackagesRequest &request)const; + void describePackagesAsync(const Model::DescribePackagesRequest& request, const DescribePackagesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribePackagesOutcomeCallable describePackagesCallable(const Model::DescribePackagesRequest& request) const; + ModifyEventStatusOutcome modifyEventStatus(const Model::ModifyEventStatusRequest &request)const; + void modifyEventStatusAsync(const Model::ModifyEventStatusRequest& request, const ModifyEventStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyEventStatusOutcomeCallable modifyEventStatusCallable(const Model::ModifyEventStatusRequest& request) const; + DescribeConfigsOutcome describeConfigs(const Model::DescribeConfigsRequest &request)const; + void describeConfigsAsync(const Model::DescribeConfigsRequest& request, const DescribeConfigsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeConfigsOutcomeCallable describeConfigsCallable(const Model::DescribeConfigsRequest& request) const; + DescribeAuthAccountsOutcome describeAuthAccounts(const Model::DescribeAuthAccountsRequest &request)const; + void describeAuthAccountsAsync(const Model::DescribeAuthAccountsRequest& request, const DescribeAuthAccountsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAuthAccountsOutcomeCallable describeAuthAccountsCallable(const Model::DescribeAuthAccountsRequest& request) const; + DescribeDataAssetsOutcome describeDataAssets(const Model::DescribeDataAssetsRequest &request)const; + void describeDataAssetsAsync(const Model::DescribeDataAssetsRequest& request, const DescribeDataAssetsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDataAssetsOutcomeCallable describeDataAssetsCallable(const Model::DescribeDataAssetsRequest& request) const; + ValidateConnectorOutcome validateConnector(const Model::ValidateConnectorRequest &request)const; + void validateConnectorAsync(const Model::ValidateConnectorRequest& request, const ValidateConnectorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ValidateConnectorOutcomeCallable validateConnectorCallable(const Model::ValidateConnectorRequest& request) const; + DescribeCloudDatabasesOutcome describeCloudDatabases(const Model::DescribeCloudDatabasesRequest &request)const; + void describeCloudDatabasesAsync(const Model::DescribeCloudDatabasesRequest& request, const DescribeCloudDatabasesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCloudDatabasesOutcomeCallable describeCloudDatabasesCallable(const Model::DescribeCloudDatabasesRequest& request) const; + CreateRuleOutcome createRule(const Model::CreateRuleRequest &request)const; + void createRuleAsync(const Model::CreateRuleRequest& request, const CreateRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateRuleOutcomeCallable createRuleCallable(const Model::CreateRuleRequest& request) const; + CreateUserAuthOutcome createUserAuth(const Model::CreateUserAuthRequest &request)const; + void createUserAuthAsync(const Model::CreateUserAuthRequest& request, const CreateUserAuthAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateUserAuthOutcomeCallable createUserAuthCallable(const Model::CreateUserAuthRequest& request) const; + DeleteRuleOutcome deleteRule(const Model::DeleteRuleRequest &request)const; + void deleteRuleAsync(const Model::DeleteRuleRequest& request, const DeleteRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteRuleOutcomeCallable deleteRuleCallable(const Model::DeleteRuleRequest& request) const; + DescribeDataHubConnectorsOutcome describeDataHubConnectors(const Model::DescribeDataHubConnectorsRequest &request)const; + void describeDataHubConnectorsAsync(const Model::DescribeDataHubConnectorsRequest& request, const DescribeDataHubConnectorsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDataHubConnectorsOutcomeCallable describeDataHubConnectorsCallable(const Model::DescribeDataHubConnectorsRequest& request) const; + DescribeRulesOutcome describeRules(const Model::DescribeRulesRequest &request)const; + void describeRulesAsync(const Model::DescribeRulesRequest& request, const DescribeRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRulesOutcomeCallable describeRulesCallable(const Model::DescribeRulesRequest& request) const; + DescribeDataLimitDetailOutcome describeDataLimitDetail(const Model::DescribeDataLimitDetailRequest &request)const; + void describeDataLimitDetailAsync(const Model::DescribeDataLimitDetailRequest& request, const DescribeDataLimitDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDataLimitDetailOutcomeCallable describeDataLimitDetailCallable(const Model::DescribeDataLimitDetailRequest& 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; + ModifyRuleStatusOutcome modifyRuleStatus(const Model::ModifyRuleStatusRequest &request)const; + void modifyRuleStatusAsync(const Model::ModifyRuleStatusRequest& request, const ModifyRuleStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyRuleStatusOutcomeCallable modifyRuleStatusCallable(const Model::ModifyRuleStatusRequest& request) const; + DeleteDataLimitOutcome deleteDataLimit(const Model::DeleteDataLimitRequest &request)const; + void deleteDataLimitAsync(const Model::DeleteDataLimitRequest& request, const DeleteDataLimitAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDataLimitOutcomeCallable deleteDataLimitCallable(const Model::DeleteDataLimitRequest& request) const; + DescribeAccountDetailOutcome describeAccountDetail(const Model::DescribeAccountDetailRequest &request)const; + void describeAccountDetailAsync(const Model::DescribeAccountDetailRequest& request, const DescribeAccountDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAccountDetailOutcomeCallable describeAccountDetailCallable(const Model::DescribeAccountDetailRequest& request) const; + DescribeDepartsOutcome describeDeparts(const Model::DescribeDepartsRequest &request)const; + void describeDepartsAsync(const Model::DescribeDepartsRequest& request, const DescribeDepartsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDepartsOutcomeCallable describeDepartsCallable(const Model::DescribeDepartsRequest& request) const; + DescribeDataHubSubscriptionsOutcome describeDataHubSubscriptions(const Model::DescribeDataHubSubscriptionsRequest &request)const; + void describeDataHubSubscriptionsAsync(const Model::DescribeDataHubSubscriptionsRequest& request, const DescribeDataHubSubscriptionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDataHubSubscriptionsOutcomeCallable describeDataHubSubscriptionsCallable(const Model::DescribeDataHubSubscriptionsRequest& request) const; + DescribeDataHubTopicsOutcome describeDataHubTopics(const Model::DescribeDataHubTopicsRequest &request)const; + void describeDataHubTopicsAsync(const Model::DescribeDataHubTopicsRequest& request, const DescribeDataHubTopicsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDataHubTopicsOutcomeCallable describeDataHubTopicsCallable(const Model::DescribeDataHubTopicsRequest& request) const; + DescribeCloudInstancesOutcome describeCloudInstances(const Model::DescribeCloudInstancesRequest &request)const; + void describeCloudInstancesAsync(const Model::DescribeCloudInstancesRequest& request, const DescribeCloudInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCloudInstancesOutcomeCallable describeCloudInstancesCallable(const Model::DescribeCloudInstancesRequest& 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; + DescribeOssObjectsOutcome describeOssObjects(const Model::DescribeOssObjectsRequest &request)const; + void describeOssObjectsAsync(const Model::DescribeOssObjectsRequest& request, const DescribeOssObjectsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeOssObjectsOutcomeCallable describeOssObjectsCallable(const Model::DescribeOssObjectsRequest& request) const; + DescribeDataLimitsOutcome describeDataLimits(const Model::DescribeDataLimitsRequest &request)const; + void describeDataLimitsAsync(const Model::DescribeDataLimitsRequest& request, const DescribeDataLimitsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDataLimitsOutcomeCallable describeDataLimitsCallable(const Model::DescribeDataLimitsRequest& request) const; + DescribeEventsOutcome describeEvents(const Model::DescribeEventsRequest &request)const; + void describeEventsAsync(const Model::DescribeEventsRequest& request, const DescribeEventsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeEventsOutcomeCallable describeEventsCallable(const Model::DescribeEventsRequest& request) const; + CreateDataLimitOutcome createDataLimit(const Model::CreateDataLimitRequest &request)const; + void createDataLimitAsync(const Model::CreateDataLimitRequest& request, const CreateDataLimitAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDataLimitOutcomeCallable createDataLimitCallable(const Model::CreateDataLimitRequest& request) const; + ModifyRuleOutcome modifyRule(const Model::ModifyRuleRequest &request)const; + void modifyRuleAsync(const Model::ModifyRuleRequest& request, const ModifyRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyRuleOutcomeCallable modifyRuleCallable(const Model::ModifyRuleRequest& request) const; + ModifyDataLimitOutcome modifyDataLimit(const Model::ModifyDataLimitRequest &request)const; + void modifyDataLimitAsync(const Model::ModifyDataLimitRequest& request, const ModifyDataLimitAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDataLimitOutcomeCallable modifyDataLimitCallable(const Model::ModifyDataLimitRequest& request) const; + DescribeEventDetailOutcome describeEventDetail(const Model::DescribeEventDetailRequest &request)const; + void describeEventDetailAsync(const Model::DescribeEventDetailRequest& request, const DescribeEventDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeEventDetailOutcomeCallable describeEventDetailCallable(const Model::DescribeEventDetailRequest& 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; + DescribePrivilegesOutcome describePrivileges(const Model::DescribePrivilegesRequest &request)const; + void describePrivilegesAsync(const Model::DescribePrivilegesRequest& request, const DescribePrivilegesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribePrivilegesOutcomeCallable describePrivilegesCallable(const Model::DescribePrivilegesRequest& request) const; + DescribeDataHubProjectsOutcome describeDataHubProjects(const Model::DescribeDataHubProjectsRequest &request)const; + void describeDataHubProjectsAsync(const Model::DescribeDataHubProjectsRequest& request, const DescribeDataHubProjectsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDataHubProjectsOutcomeCallable describeDataHubProjectsCallable(const Model::DescribeDataHubProjectsRequest& request) const; + DescribeInstancesOutcome describeInstances(const Model::DescribeInstancesRequest &request)const; + void describeInstancesAsync(const Model::DescribeInstancesRequest& request, const DescribeInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeInstancesOutcomeCallable describeInstancesCallable(const Model::DescribeInstancesRequest& request) const; + ModifyDefaultLevelOutcome modifyDefaultLevel(const Model::ModifyDefaultLevelRequest &request)const; + void modifyDefaultLevelAsync(const Model::ModifyDefaultLevelRequest& request, const ModifyDefaultLevelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDefaultLevelOutcomeCallable modifyDefaultLevelCallable(const Model::ModifyDefaultLevelRequest& request) const; + ModifyEventTypeStatusOutcome modifyEventTypeStatus(const Model::ModifyEventTypeStatusRequest &request)const; + void modifyEventTypeStatusAsync(const Model::ModifyEventTypeStatusRequest& request, const ModifyEventTypeStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyEventTypeStatusOutcomeCallable modifyEventTypeStatusCallable(const Model::ModifyEventTypeStatusRequest& request) const; + DescribeUserStatusOutcome describeUserStatus(const Model::DescribeUserStatusRequest &request)const; + void describeUserStatusAsync(const Model::DescribeUserStatusRequest& request, const DescribeUserStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeUserStatusOutcomeCallable describeUserStatusCallable(const Model::DescribeUserStatusRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_SDDP_SDDPCLIENT_H_ diff --git a/sddp/include/alibabacloud/sddp/SddpExport.h b/sddp/include/alibabacloud/sddp/SddpExport.h new file mode 100644 index 000000000..2e3f05d7e --- /dev/null +++ b/sddp/include/alibabacloud/sddp/SddpExport.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_SDDP_SDDPEXPORT_H_ +#define ALIBABACLOUD_SDDP_SDDPEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_SDDP_LIBRARY) +# define ALIBABACLOUD_SDDP_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_SDDP_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_SDDP_EXPORT +#endif + +#endif // !ALIBABACLOUD_SDDP_SDDPEXPORT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/CreateConfigRequest.h b/sddp/include/alibabacloud/sddp/model/CreateConfigRequest.h new file mode 100644 index 000000000..ff35d6ba7 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/CreateConfigRequest.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_SDDP_MODEL_CREATECONFIGREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_CREATECONFIGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT CreateConfigRequest : public RpcServiceRequest + { + + public: + CreateConfigRequest(); + ~CreateConfigRequest(); + + std::string getCode()const; + void setCode(const std::string& code); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + int getFeatureType()const; + void setFeatureType(int featureType); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getConfigList()const; + void setConfigList(const std::string& configList); + std::string getLang()const; + void setLang(const std::string& lang); + std::string getValue()const; + void setValue(const std::string& value); + + private: + std::string code_; + std::string sourceIp_; + int featureType_; + std::string description_; + std::string configList_; + std::string lang_; + std::string value_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_CREATECONFIGREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/CreateConfigResult.h b/sddp/include/alibabacloud/sddp/model/CreateConfigResult.h new file mode 100644 index 000000000..b54f0e134 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/CreateConfigResult.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_SDDP_MODEL_CREATECONFIGRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_CREATECONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT CreateConfigResult : public ServiceResult + { + public: + + + CreateConfigResult(); + explicit CreateConfigResult(const std::string &payload); + ~CreateConfigResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_CREATECONFIGRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/CreateDataLimitRequest.h b/sddp/include/alibabacloud/sddp/model/CreateDataLimitRequest.h new file mode 100644 index 000000000..f7ee892b6 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/CreateDataLimitRequest.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_SDDP_MODEL_CREATEDATALIMITREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_CREATEDATALIMITREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT CreateDataLimitRequest : public RpcServiceRequest + { + + public: + CreateDataLimitRequest(); + ~CreateDataLimitRequest(); + + std::string getPassword()const; + void setPassword(const std::string& password); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getConnector()const; + void setConnector(const std::string& connector); + std::string getDataLimitList()const; + void setDataLimitList(const std::string& dataLimitList); + std::string getLang()const; + void setLang(const std::string& lang); + int getResourceType()const; + void setResourceType(int resourceType); + std::string getServiceRegionId()const; + void setServiceRegionId(const std::string& serviceRegionId); + std::string getParentId()const; + void setParentId(const std::string& parentId); + std::string getUserName()const; + void setUserName(const std::string& userName); + + private: + std::string password_; + std::string sourceIp_; + std::string connector_; + std::string dataLimitList_; + std::string lang_; + int resourceType_; + std::string serviceRegionId_; + std::string parentId_; + std::string userName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_CREATEDATALIMITREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/CreateDataLimitResult.h b/sddp/include/alibabacloud/sddp/model/CreateDataLimitResult.h new file mode 100644 index 000000000..d2e14b2e5 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/CreateDataLimitResult.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_SDDP_MODEL_CREATEDATALIMITRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_CREATEDATALIMITRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT CreateDataLimitResult : public ServiceResult + { + public: + + + CreateDataLimitResult(); + explicit CreateDataLimitResult(const std::string &payload); + ~CreateDataLimitResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_CREATEDATALIMITRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/CreateRuleRequest.h b/sddp/include/alibabacloud/sddp/model/CreateRuleRequest.h new file mode 100644 index 000000000..965ece55e --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/CreateRuleRequest.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_SDDP_MODEL_CREATERULEREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_CREATERULEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT CreateRuleRequest : public RpcServiceRequest + { + + public: + CreateRuleRequest(); + ~CreateRuleRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + int getFeatureType()const; + void setFeatureType(int featureType); + std::string getName()const; + void setName(const std::string& name); + long getRiskLevelId()const; + void setRiskLevelId(long riskLevelId); + std::string getLang()const; + void setLang(const std::string& lang); + long getCustomType()const; + void setCustomType(long customType); + int getCategory()const; + void setCategory(int category); + std::string getContent()const; + void setContent(const std::string& content); + + private: + std::string sourceIp_; + int featureType_; + std::string name_; + long riskLevelId_; + std::string lang_; + long customType_; + int category_; + std::string content_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_CREATERULEREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/CreateRuleResult.h b/sddp/include/alibabacloud/sddp/model/CreateRuleResult.h new file mode 100644 index 000000000..c88e32cf5 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/CreateRuleResult.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_SDDP_MODEL_CREATERULERESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_CREATERULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT CreateRuleResult : public ServiceResult + { + public: + + + CreateRuleResult(); + explicit CreateRuleResult(const std::string &payload); + ~CreateRuleResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_CREATERULERESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/CreateUserAuthRequest.h b/sddp/include/alibabacloud/sddp/model/CreateUserAuthRequest.h new file mode 100644 index 000000000..7ce60b79a --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/CreateUserAuthRequest.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_SDDP_MODEL_CREATEUSERAUTHREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_CREATEUSERAUTHREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT CreateUserAuthRequest : public RpcServiceRequest + { + + public: + CreateUserAuthRequest(); + ~CreateUserAuthRequest(); + + long getAccountId()const; + void setAccountId(long accountId); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getAccessKey()const; + void setAccessKey(const std::string& accessKey); + std::string getAccessKeySecret()const; + void setAccessKeySecret(const std::string& accessKeySecret); + std::string getLang()const; + void setLang(const std::string& lang); + + private: + long accountId_; + std::string sourceIp_; + std::string accessKey_; + std::string accessKeySecret_; + std::string lang_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_CREATEUSERAUTHREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/CreateUserAuthResult.h b/sddp/include/alibabacloud/sddp/model/CreateUserAuthResult.h new file mode 100644 index 000000000..a24bc47e2 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/CreateUserAuthResult.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_SDDP_MODEL_CREATEUSERAUTHRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_CREATEUSERAUTHRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT CreateUserAuthResult : public ServiceResult + { + public: + + + CreateUserAuthResult(); + explicit CreateUserAuthResult(const std::string &payload); + ~CreateUserAuthResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_CREATEUSERAUTHRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DeleteDataLimitRequest.h b/sddp/include/alibabacloud/sddp/model/DeleteDataLimitRequest.h new file mode 100644 index 000000000..6e4157b79 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DeleteDataLimitRequest.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_SDDP_MODEL_DELETEDATALIMITREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DELETEDATALIMITREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DeleteDataLimitRequest : public RpcServiceRequest + { + + public: + DeleteDataLimitRequest(); + ~DeleteDataLimitRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + int getFeatureType()const; + void setFeatureType(int featureType); + long getId()const; + void setId(long id); + std::string getLang()const; + void setLang(const std::string& lang); + + private: + std::string sourceIp_; + int featureType_; + long id_; + std::string lang_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DELETEDATALIMITREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DeleteDataLimitResult.h b/sddp/include/alibabacloud/sddp/model/DeleteDataLimitResult.h new file mode 100644 index 000000000..78213a2d5 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DeleteDataLimitResult.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_SDDP_MODEL_DELETEDATALIMITRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DELETEDATALIMITRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DeleteDataLimitResult : public ServiceResult + { + public: + + + DeleteDataLimitResult(); + explicit DeleteDataLimitResult(const std::string &payload); + ~DeleteDataLimitResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DELETEDATALIMITRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DeleteRuleRequest.h b/sddp/include/alibabacloud/sddp/model/DeleteRuleRequest.h new file mode 100644 index 000000000..06de287c9 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DeleteRuleRequest.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_SDDP_MODEL_DELETERULEREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DELETERULEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DeleteRuleRequest : public RpcServiceRequest + { + + public: + DeleteRuleRequest(); + ~DeleteRuleRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + int getFeatureType()const; + void setFeatureType(int featureType); + long getId()const; + void setId(long id); + std::string getLang()const; + void setLang(const std::string& lang); + + private: + std::string sourceIp_; + int featureType_; + long id_; + std::string lang_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DELETERULEREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DeleteRuleResult.h b/sddp/include/alibabacloud/sddp/model/DeleteRuleResult.h new file mode 100644 index 000000000..697fe162e --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DeleteRuleResult.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_SDDP_MODEL_DELETERULERESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DELETERULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DeleteRuleResult : public ServiceResult + { + public: + + + DeleteRuleResult(); + explicit DeleteRuleResult(const std::string &payload); + ~DeleteRuleResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DELETERULERESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeAccountDetailRequest.h b/sddp/include/alibabacloud/sddp/model/DescribeAccountDetailRequest.h new file mode 100644 index 000000000..1e19c6699 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DescribeAccountDetailRequest.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_SDDP_MODEL_DESCRIBEACCOUNTDETAILREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEACCOUNTDETAILREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeAccountDetailRequest : public RpcServiceRequest + { + + public: + DescribeAccountDetailRequest(); + ~DescribeAccountDetailRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getLang()const; + void setLang(const std::string& lang); + long getUserId()const; + void setUserId(long userId); + long getAccountTypeId()const; + void setAccountTypeId(long accountTypeId); + + private: + std::string sourceIp_; + std::string lang_; + long userId_; + long accountTypeId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEACCOUNTDETAILREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeAccountDetailResult.h b/sddp/include/alibabacloud/sddp/model/DescribeAccountDetailResult.h new file mode 100644 index 000000000..1a4fc337c --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DescribeAccountDetailResult.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_SDDP_MODEL_DESCRIBEACCOUNTDETAILRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEACCOUNTDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeAccountDetailResult : public ServiceResult + { + public: + struct Account + { + struct EventCount + { + struct Total + { + long totalCount; + long excludeCount; + long undealCount; + long confirmCount; + }; + Total total; + }; + struct Privilege + { + int useAccountType; + std::string productName; + long useAccountCreateTime; + std::string useAccountId; + std::string useAccountName; + std::string useAccountTypeName; + }; + std::string loginName; + std::string dataInstance; + std::string email; + EventCount eventCount; + long firstLevelDepartId; + long createTime; + std::string deleteStatus; + std::string activeStatus; + std::string telephoneNum; + std::string roleNames; + long loginDataTime; + long userId; + std::string fullName; + std::string loginPolicyName; + long id; + std::string cellphoneNum; + std::vector privilegeList; + std::string firstLevelDepartName; + long aliUid; + }; + + + DescribeAccountDetailResult(); + explicit DescribeAccountDetailResult(const std::string &payload); + ~DescribeAccountDetailResult(); + Account getAccount()const; + + protected: + void parse(const std::string &payload); + private: + Account account_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEACCOUNTDETAILRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeAccountsRequest.h b/sddp/include/alibabacloud/sddp/model/DescribeAccountsRequest.h new file mode 100644 index 000000000..5db6f37d0 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DescribeAccountsRequest.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_SDDP_MODEL_DESCRIBEACCOUNTSREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEACCOUNTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeAccountsRequest : public RpcServiceRequest + { + + public: + DescribeAccountsRequest(); + ~DescribeAccountsRequest(); + + std::string getProductCode()const; + void setProductCode(const std::string& productCode); + std::string getLoginName()const; + void setLoginName(const std::string& loginName); + int getFeatureType()const; + void setFeatureType(int featureType); + std::string getColumnId()const; + void setColumnId(const std::string& columnId); + std::string getPackageId()const; + void setPackageId(const std::string& packageId); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + int getPageSize()const; + void setPageSize(int pageSize); + long getDepartId()const; + void setDepartId(long departId); + int getOperationId()const; + void setOperationId(int operationId); + std::string getTableId()const; + void setTableId(const std::string& tableId); + std::string getLang()const; + void setLang(const std::string& lang); + std::string getKey()const; + void setKey(const std::string& key); + int getQueryType()const; + void setQueryType(int queryType); + + private: + std::string productCode_; + std::string loginName_; + int featureType_; + std::string columnId_; + std::string packageId_; + int currentPage_; + std::string instanceId_; + std::string sourceIp_; + int pageSize_; + long departId_; + int operationId_; + std::string tableId_; + std::string lang_; + std::string key_; + int queryType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEACCOUNTSREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeAccountsResult.h b/sddp/include/alibabacloud/sddp/model/DescribeAccountsResult.h new file mode 100644 index 000000000..39c7a6be6 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DescribeAccountsResult.h @@ -0,0 +1,91 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEACCOUNTSRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEACCOUNTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeAccountsResult : public ServiceResult + { + public: + struct Account + { + struct EventCount + { + struct Total + { + long totalCount; + long excludeCount; + long undealCount; + long confirmCount; + }; + Total total; + }; + std::string loginName; + std::string dataInstance; + std::string email; + EventCount eventCount; + long firstLevelDepartId; + long createTime; + std::string deleteStatus; + std::string activeStatus; + std::string instanceName; + std::string telephoneNum; + long accountTypeId; + std::string roleNames; + long loginDataTime; + long userId; + std::string fullName; + std::string loginPolicyName; + long id; + std::string cellphoneNum; + std::string firstLevelDepartName; + long aliUid; + }; + + + DescribeAccountsResult(); + explicit DescribeAccountsResult(const std::string &payload); + ~DescribeAccountsResult(); + int getTotalCount()const; + int getPageSize()const; + int getCurrentPage()const; + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int currentPage_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEACCOUNTSRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeAuthAccountsRequest.h b/sddp/include/alibabacloud/sddp/model/DescribeAuthAccountsRequest.h new file mode 100644 index 000000000..8302a3aeb --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DescribeAuthAccountsRequest.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_SDDP_MODEL_DESCRIBEAUTHACCOUNTSREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEAUTHACCOUNTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeAuthAccountsRequest : public RpcServiceRequest + { + + public: + DescribeAuthAccountsRequest(); + ~DescribeAuthAccountsRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + int getFeatureType()const; + void setFeatureType(int featureType); + int getPageSize()const; + void setPageSize(int pageSize); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + std::string getLang()const; + void setLang(const std::string& lang); + + private: + std::string sourceIp_; + int featureType_; + int pageSize_; + int currentPage_; + std::string lang_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEAUTHACCOUNTSREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeAuthAccountsResult.h b/sddp/include/alibabacloud/sddp/model/DescribeAuthAccountsResult.h new file mode 100644 index 000000000..0ed3a3d7b --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DescribeAuthAccountsResult.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_SDDP_MODEL_DESCRIBEAUTHACCOUNTSRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEAUTHACCOUNTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeAuthAccountsResult : public ServiceResult + { + public: + struct Account + { + std::string authFullName; + std::string loginName; + std::string fullName; + long id; + std::string authLoginName; + long authTime; + }; + + + DescribeAuthAccountsResult(); + explicit DescribeAuthAccountsResult(const std::string &payload); + ~DescribeAuthAccountsResult(); + int getTotalCount()const; + int getPageSize()const; + int getCurrentPage()const; + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int currentPage_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEAUTHACCOUNTSRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeCloudDatabasesRequest.h b/sddp/include/alibabacloud/sddp/model/DescribeCloudDatabasesRequest.h new file mode 100644 index 000000000..0082c9495 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DescribeCloudDatabasesRequest.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_SDDP_MODEL_DESCRIBECLOUDDATABASESREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBECLOUDDATABASESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeCloudDatabasesRequest : public RpcServiceRequest + { + + public: + DescribeCloudDatabasesRequest(); + ~DescribeCloudDatabasesRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getLang()const; + void setLang(const std::string& lang); + long getResourceType()const; + void setResourceType(long resourceType); + std::string getServiceRegionId()const; + void setServiceRegionId(const std::string& serviceRegionId); + + private: + std::string instanceId_; + std::string sourceIp_; + std::string lang_; + long resourceType_; + std::string serviceRegionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBECLOUDDATABASESREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeCloudDatabasesResult.h b/sddp/include/alibabacloud/sddp/model/DescribeCloudDatabasesResult.h new file mode 100644 index 000000000..e9f1de9ee --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DescribeCloudDatabasesResult.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_SDDP_MODEL_DESCRIBECLOUDDATABASESRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBECLOUDDATABASESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeCloudDatabasesResult : public ServiceResult + { + public: + struct CloudDatabase + { + std::string instanceId; + std::string engine; + std::string name; + }; + + + DescribeCloudDatabasesResult(); + explicit DescribeCloudDatabasesResult(const std::string &payload); + ~DescribeCloudDatabasesResult(); + std::vector getCloudDatabaseList()const; + + protected: + void parse(const std::string &payload); + private: + std::vector cloudDatabaseList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBECLOUDDATABASESRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeCloudInstancesRequest.h b/sddp/include/alibabacloud/sddp/model/DescribeCloudInstancesRequest.h new file mode 100644 index 000000000..f0e3ca7ed --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DescribeCloudInstancesRequest.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_SDDP_MODEL_DESCRIBECLOUDINSTANCESREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBECLOUDINSTANCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeCloudInstancesRequest : public RpcServiceRequest + { + + public: + DescribeCloudInstancesRequest(); + ~DescribeCloudInstancesRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getLang()const; + void setLang(const std::string& lang); + long getResourceType()const; + void setResourceType(long resourceType); + std::string getServiceRegionId()const; + void setServiceRegionId(const std::string& serviceRegionId); + + private: + std::string sourceIp_; + std::string lang_; + long resourceType_; + std::string serviceRegionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBECLOUDINSTANCESREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeCloudInstancesResult.h b/sddp/include/alibabacloud/sddp/model/DescribeCloudInstancesResult.h new file mode 100644 index 000000000..d7c732446 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DescribeCloudInstancesResult.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_SDDP_MODEL_DESCRIBECLOUDINSTANCESRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBECLOUDINSTANCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeCloudInstancesResult : public ServiceResult + { + public: + struct CloudInstance + { + std::string instanceId; + std::string engine; + std::string name; + }; + + + DescribeCloudInstancesResult(); + explicit DescribeCloudInstancesResult(const std::string &payload); + ~DescribeCloudInstancesResult(); + std::vector getCloudInstanceList()const; + + protected: + void parse(const std::string &payload); + private: + std::vector cloudInstanceList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBECLOUDINSTANCESRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeColumnsRequest.h b/sddp/include/alibabacloud/sddp/model/DescribeColumnsRequest.h new file mode 100644 index 000000000..4e5f1902a --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DescribeColumnsRequest.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_SDDP_MODEL_DESCRIBECOLUMNSREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBECOLUMNSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeColumnsRequest : public RpcServiceRequest + { + + public: + DescribeColumnsRequest(); + ~DescribeColumnsRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + int getFeatureType()const; + void setFeatureType(int featureType); + std::string getRiskLevels()const; + void setRiskLevels(const std::string& riskLevels); + std::string getName()const; + void setName(const std::string& name); + int getPageSize()const; + void setPageSize(int pageSize); + long getTableId()const; + void setTableId(long tableId); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + std::string getQueryName()const; + void setQueryName(const std::string& queryName); + std::string getLang()const; + void setLang(const std::string& lang); + long getRuleId()const; + void setRuleId(long ruleId); + + private: + std::string sourceIp_; + int featureType_; + std::string riskLevels_; + std::string name_; + int pageSize_; + long tableId_; + int currentPage_; + std::string queryName_; + std::string lang_; + long ruleId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBECOLUMNSREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeColumnsResult.h b/sddp/include/alibabacloud/sddp/model/DescribeColumnsResult.h new file mode 100644 index 000000000..85bfdea43 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DescribeColumnsResult.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_SDDP_MODEL_DESCRIBECOLUMNSRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBECOLUMNSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeColumnsResult : public ServiceResult + { + public: + struct Column + { + long tableId; + int odpsRiskLevelValue; + long instanceId; + std::string productCode; + long ruleId; + std::string odpsRiskLevelName; + long riskLevelId; + std::string departName; + std::string name; + long creationTime; + bool sensitive; + std::string dataType; + std::string riskLevelName; + long id; + std::string ruleName; + }; + + + DescribeColumnsResult(); + explicit DescribeColumnsResult(const std::string &payload); + ~DescribeColumnsResult(); + int getTotalCount()const; + int getPageSize()const; + int getCurrentPage()const; + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int currentPage_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBECOLUMNSRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeConfigsRequest.h b/sddp/include/alibabacloud/sddp/model/DescribeConfigsRequest.h new file mode 100644 index 000000000..1e13ba241 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DescribeConfigsRequest.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_SDDP_MODEL_DESCRIBECONFIGSREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBECONFIGSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeConfigsRequest : public RpcServiceRequest + { + + public: + DescribeConfigsRequest(); + ~DescribeConfigsRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + int getFeatureType()const; + void setFeatureType(int featureType); + std::string getLang()const; + void setLang(const std::string& lang); + + private: + std::string sourceIp_; + int featureType_; + std::string lang_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBECONFIGSREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeConfigsResult.h b/sddp/include/alibabacloud/sddp/model/DescribeConfigsResult.h new file mode 100644 index 000000000..1580c684a --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DescribeConfigsResult.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_SDDP_MODEL_DESCRIBECONFIGSRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBECONFIGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeConfigsResult : public ServiceResult + { + public: + struct Config + { + std::string defaultValue; + std::string description; + long value; + long id; + int code; + }; + + + DescribeConfigsResult(); + explicit DescribeConfigsResult(const std::string &payload); + ~DescribeConfigsResult(); + std::vector getConfigList()const; + + protected: + void parse(const std::string &payload); + private: + std::vector configList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBECONFIGSRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeDataAssetsRequest.h b/sddp/include/alibabacloud/sddp/model/DescribeDataAssetsRequest.h new file mode 100644 index 000000000..dc34447ba --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DescribeDataAssetsRequest.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_SDDP_MODEL_DESCRIBEDATAASSETSREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAASSETSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeDataAssetsRequest : public RpcServiceRequest + { + + public: + DescribeDataAssetsRequest(); + ~DescribeDataAssetsRequest(); + + int getRangeId()const; + void setRangeId(int rangeId); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + int getFeatureType()const; + void setFeatureType(int featureType); + std::string getRiskLevels()const; + void setRiskLevels(const std::string& riskLevels); + std::string getName()const; + void setName(const std::string& name); + int getPageSize()const; + void setPageSize(int pageSize); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + std::string getLang()const; + void setLang(const std::string& lang); + long getRuleId()const; + void setRuleId(long ruleId); + + private: + int rangeId_; + std::string sourceIp_; + int featureType_; + std::string riskLevels_; + std::string name_; + int pageSize_; + int currentPage_; + std::string lang_; + long ruleId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAASSETSREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeDataAssetsResult.h b/sddp/include/alibabacloud/sddp/model/DescribeDataAssetsResult.h new file mode 100644 index 000000000..7add9fd81 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DescribeDataAssetsResult.h @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAASSETSRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAASSETSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeDataAssetsResult : public ServiceResult + { + public: + struct Asset + { + std::string owner; + std::string productCode; + std::string sensitiveRatio; + std::string objectKey; + std::string odpsRiskLevelName; + std::string productId; + std::string acl; + long riskLevelId; + std::string departName; + std::string name; + int labelsec; + int totalCount; + long creationTime; + bool sensitive; + std::string dataType; + std::string riskLevelName; + long id; + int sensitiveCount; + bool protection; + std::string ruleName; + }; + + + DescribeDataAssetsResult(); + explicit DescribeDataAssetsResult(const std::string &payload); + ~DescribeDataAssetsResult(); + int getTotalCount()const; + int getPageSize()const; + int getCurrentPage()const; + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int currentPage_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAASSETSRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeDataHubConnectorsRequest.h b/sddp/include/alibabacloud/sddp/model/DescribeDataHubConnectorsRequest.h new file mode 100644 index 000000000..224852926 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DescribeDataHubConnectorsRequest.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_SDDP_MODEL_DESCRIBEDATAHUBCONNECTORSREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBCONNECTORSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeDataHubConnectorsRequest : public RpcServiceRequest + { + + public: + DescribeDataHubConnectorsRequest(); + ~DescribeDataHubConnectorsRequest(); + + long getTopicId()const; + void setTopicId(long topicId); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + int getFeatureType()const; + void setFeatureType(int featureType); + int getPageSize()const; + void setPageSize(int pageSize); + long getDepartId()const; + void setDepartId(long departId); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + std::string getLang()const; + void setLang(const std::string& lang); + long getProjectId()const; + void setProjectId(long projectId); + std::string getKey()const; + void setKey(const std::string& key); + + private: + long topicId_; + std::string sourceIp_; + int featureType_; + int pageSize_; + long departId_; + int currentPage_; + std::string lang_; + long projectId_; + std::string key_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBCONNECTORSREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeDataHubConnectorsResult.h b/sddp/include/alibabacloud/sddp/model/DescribeDataHubConnectorsResult.h new file mode 100644 index 000000000..c8795dc24 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DescribeDataHubConnectorsResult.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBCONNECTORSRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBCONNECTORSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeDataHubConnectorsResult : public ServiceResult + { + public: + struct Connector + { + std::string connectorPath; + std::string loginName; + std::string connectorProduct; + std::string description; + long userId; + long creationTime; + std::string displayName; + std::string riskLevelName; + long id; + long riskLevelId; + std::string name; + }; + + + DescribeDataHubConnectorsResult(); + explicit DescribeDataHubConnectorsResult(const std::string &payload); + ~DescribeDataHubConnectorsResult(); + int getTotalCount()const; + int getPageSize()const; + int getCurrentPage()const; + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int currentPage_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBCONNECTORSRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeDataHubProjectsRequest.h b/sddp/include/alibabacloud/sddp/model/DescribeDataHubProjectsRequest.h new file mode 100644 index 000000000..bf01a658c --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DescribeDataHubProjectsRequest.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_SDDP_MODEL_DESCRIBEDATAHUBPROJECTSREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBPROJECTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeDataHubProjectsRequest : public RpcServiceRequest + { + + public: + DescribeDataHubProjectsRequest(); + ~DescribeDataHubProjectsRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + int getFeatureType()const; + void setFeatureType(int featureType); + int getPageSize()const; + void setPageSize(int pageSize); + long getDepartId()const; + void setDepartId(long departId); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + std::string getLang()const; + void setLang(const std::string& lang); + std::string getKey()const; + void setKey(const std::string& key); + int getQueryType()const; + void setQueryType(int queryType); + + private: + std::string sourceIp_; + int featureType_; + int pageSize_; + long departId_; + int currentPage_; + std::string lang_; + std::string key_; + int queryType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBPROJECTSREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeDataHubProjectsResult.h b/sddp/include/alibabacloud/sddp/model/DescribeDataHubProjectsResult.h new file mode 100644 index 000000000..b6b99501a --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DescribeDataHubProjectsResult.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_SDDP_MODEL_DESCRIBEDATAHUBPROJECTSRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBPROJECTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeDataHubProjectsResult : public ServiceResult + { + public: + struct Project + { + std::string loginName; + std::string description; + long userId; + long creationTime; + std::string displayName; + std::string topicTupleCount; + long id; + std::string topicCount; + long topicBlobCount; + std::string name; + }; + + + DescribeDataHubProjectsResult(); + explicit DescribeDataHubProjectsResult(const std::string &payload); + ~DescribeDataHubProjectsResult(); + int getTotalCount()const; + int getPageSize()const; + int getCurrentPage()const; + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int currentPage_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBPROJECTSRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeDataHubSubscriptionsRequest.h b/sddp/include/alibabacloud/sddp/model/DescribeDataHubSubscriptionsRequest.h new file mode 100644 index 000000000..b32491be1 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DescribeDataHubSubscriptionsRequest.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_SDDP_MODEL_DESCRIBEDATAHUBSUBSCRIPTIONSREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBSUBSCRIPTIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeDataHubSubscriptionsRequest : public RpcServiceRequest + { + + public: + DescribeDataHubSubscriptionsRequest(); + ~DescribeDataHubSubscriptionsRequest(); + + long getTopicId()const; + void setTopicId(long topicId); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + int getFeatureType()const; + void setFeatureType(int featureType); + int getPageSize()const; + void setPageSize(int pageSize); + long getDepartId()const; + void setDepartId(long departId); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + std::string getLang()const; + void setLang(const std::string& lang); + long getProjectId()const; + void setProjectId(long projectId); + std::string getKey()const; + void setKey(const std::string& key); + + private: + long topicId_; + std::string sourceIp_; + int featureType_; + int pageSize_; + long departId_; + int currentPage_; + std::string lang_; + long projectId_; + std::string key_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBSUBSCRIPTIONSREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeDataHubSubscriptionsResult.h b/sddp/include/alibabacloud/sddp/model/DescribeDataHubSubscriptionsResult.h new file mode 100644 index 000000000..9f21ae749 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DescribeDataHubSubscriptionsResult.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_SDDP_MODEL_DESCRIBEDATAHUBSUBSCRIPTIONSRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBSUBSCRIPTIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeDataHubSubscriptionsResult : public ServiceResult + { + public: + struct Subscription + { + std::string loginName; + std::string description; + std::string applicationName; + std::string state; + long userId; + long creationTime; + std::string displayName; + std::string subscriptionDisplayName; + long id; + long subscriptionUserId; + std::string subscriptionUserName; + std::string name; + }; + + + DescribeDataHubSubscriptionsResult(); + explicit DescribeDataHubSubscriptionsResult(const std::string &payload); + ~DescribeDataHubSubscriptionsResult(); + int getTotalCount()const; + int getPageSize()const; + int getCurrentPage()const; + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int currentPage_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBSUBSCRIPTIONSRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeDataHubTopicsRequest.h b/sddp/include/alibabacloud/sddp/model/DescribeDataHubTopicsRequest.h new file mode 100644 index 000000000..533104953 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DescribeDataHubTopicsRequest.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_SDDP_MODEL_DESCRIBEDATAHUBTOPICSREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBTOPICSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeDataHubTopicsRequest : public RpcServiceRequest + { + + public: + DescribeDataHubTopicsRequest(); + ~DescribeDataHubTopicsRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + int getFeatureType()const; + void setFeatureType(int featureType); + int getPageSize()const; + void setPageSize(int pageSize); + long getDepartId()const; + void setDepartId(long departId); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + std::string getLang()const; + void setLang(const std::string& lang); + long getProjectId()const; + void setProjectId(long projectId); + std::string getKey()const; + void setKey(const std::string& key); + + private: + std::string sourceIp_; + int featureType_; + int pageSize_; + long departId_; + int currentPage_; + std::string lang_; + long projectId_; + std::string key_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBTOPICSREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeDataHubTopicsResult.h b/sddp/include/alibabacloud/sddp/model/DescribeDataHubTopicsResult.h new file mode 100644 index 000000000..f941f83f1 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DescribeDataHubTopicsResult.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_SDDP_MODEL_DESCRIBEDATAHUBTOPICSRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBTOPICSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeDataHubTopicsResult : public ServiceResult + { + public: + struct Topic + { + int lifeCycle; + std::string loginName; + std::string description; + std::string recordType; + long userId; + long creationTime; + std::string displayName; + long id; + std::string name; + }; + + + DescribeDataHubTopicsResult(); + explicit DescribeDataHubTopicsResult(const std::string &payload); + ~DescribeDataHubTopicsResult(); + int getTotalCount()const; + int getPageSize()const; + int getCurrentPage()const; + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int currentPage_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBTOPICSRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeDataLimitDetailRequest.h b/sddp/include/alibabacloud/sddp/model/DescribeDataLimitDetailRequest.h new file mode 100644 index 000000000..5bea9059a --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DescribeDataLimitDetailRequest.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_SDDP_MODEL_DESCRIBEDATALIMITDETAILREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATALIMITDETAILREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeDataLimitDetailRequest : public RpcServiceRequest + { + + public: + DescribeDataLimitDetailRequest(); + ~DescribeDataLimitDetailRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + long getId()const; + void setId(long id); + int getNetworkType()const; + void setNetworkType(int networkType); + std::string getLang()const; + void setLang(const std::string& lang); + + private: + std::string sourceIp_; + long id_; + int networkType_; + std::string lang_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATALIMITDETAILREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeDataLimitDetailResult.h b/sddp/include/alibabacloud/sddp/model/DescribeDataLimitDetailResult.h new file mode 100644 index 000000000..c7be1bac6 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DescribeDataLimitDetailResult.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_SDDP_MODEL_DESCRIBEDATALIMITDETAILRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATALIMITDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeDataLimitDetailResult : public ServiceResult + { + public: + struct DataLimit + { + std::string parentId; + std::string connector; + long gmtCreate; + std::string userName; + int checkStatus; + std::string regionId; + long id; + std::string checkStatusName; + std::string localName; + }; + + + DescribeDataLimitDetailResult(); + explicit DescribeDataLimitDetailResult(const std::string &payload); + ~DescribeDataLimitDetailResult(); + DataLimit getDataLimit()const; + + protected: + void parse(const std::string &payload); + private: + DataLimit dataLimit_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATALIMITDETAILRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeDataLimitsRequest.h b/sddp/include/alibabacloud/sddp/model/DescribeDataLimitsRequest.h new file mode 100644 index 000000000..d2d8dd673 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DescribeDataLimitsRequest.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_SDDP_MODEL_DESCRIBEDATALIMITSREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATALIMITSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeDataLimitsRequest : public RpcServiceRequest + { + + public: + DescribeDataLimitsRequest(); + ~DescribeDataLimitsRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getLang()const; + void setLang(const std::string& lang); + int getResourceType()const; + void setResourceType(int resourceType); + std::string getParentId()const; + void setParentId(const std::string& parentId); + + private: + std::string sourceIp_; + std::string lang_; + int resourceType_; + std::string parentId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATALIMITSREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeDataLimitsResult.h b/sddp/include/alibabacloud/sddp/model/DescribeDataLimitsResult.h new file mode 100644 index 000000000..5053eca38 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DescribeDataLimitsResult.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_SDDP_MODEL_DESCRIBEDATALIMITSRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATALIMITSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeDataLimitsResult : public ServiceResult + { + public: + struct DataLimit + { + std::string parentId; + std::string connector; + long gmtCreate; + std::string userName; + int checkStatus; + std::string regionId; + long id; + std::string checkStatusName; + std::string localName; + }; + + + DescribeDataLimitsResult(); + explicit DescribeDataLimitsResult(const std::string &payload); + ~DescribeDataLimitsResult(); + std::vector getDataLimitList()const; + + protected: + void parse(const std::string &payload); + private: + std::vector dataLimitList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATALIMITSRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeDepartsRequest.h b/sddp/include/alibabacloud/sddp/model/DescribeDepartsRequest.h new file mode 100644 index 000000000..f3f1a6288 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DescribeDepartsRequest.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_SDDP_MODEL_DESCRIBEDEPARTSREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEDEPARTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeDepartsRequest : public RpcServiceRequest + { + + public: + DescribeDepartsRequest(); + ~DescribeDepartsRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + int getFeatureType()const; + void setFeatureType(int featureType); + int getAccountType()const; + void setAccountType(int accountType); + int getPageSize()const; + void setPageSize(int pageSize); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + std::string getLang()const; + void setLang(const std::string& lang); + std::string getKey()const; + void setKey(const std::string& key); + + private: + std::string sourceIp_; + int featureType_; + int accountType_; + int pageSize_; + int currentPage_; + std::string lang_; + std::string key_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEDEPARTSREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeDepartsResult.h b/sddp/include/alibabacloud/sddp/model/DescribeDepartsResult.h new file mode 100644 index 000000000..480b66603 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DescribeDepartsResult.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_SDDP_MODEL_DESCRIBEDEPARTSRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEDEPARTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeDepartsResult : public ServiceResult + { + public: + struct Depart + { + std::string comment; + long parentDepartId; + int level; + long id; + std::string parentDepartName; + std::string departName; + long departId; + }; + + + DescribeDepartsResult(); + explicit DescribeDepartsResult(const std::string &payload); + ~DescribeDepartsResult(); + int getTotalCount()const; + int getPageSize()const; + int getCurrentPage()const; + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int currentPage_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEDEPARTSRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeEventDetailRequest.h b/sddp/include/alibabacloud/sddp/model/DescribeEventDetailRequest.h new file mode 100644 index 000000000..e2a576123 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DescribeEventDetailRequest.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_SDDP_MODEL_DESCRIBEEVENTDETAILREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEEVENTDETAILREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeEventDetailRequest : public RpcServiceRequest + { + + public: + DescribeEventDetailRequest(); + ~DescribeEventDetailRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + long getFeatureType()const; + void setFeatureType(long featureType); + long getId()const; + void setId(long id); + std::string getLang()const; + void setLang(const std::string& lang); + + private: + std::string sourceIp_; + long featureType_; + long id_; + std::string lang_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEEVENTDETAILREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeEventDetailResult.h b/sddp/include/alibabacloud/sddp/model/DescribeEventDetailResult.h new file mode 100644 index 000000000..419f5f1c2 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DescribeEventDetailResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEEVENTDETAILRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEEVENTDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeEventDetailResult : public ServiceResult + { + public: + struct Event + { + struct Detail + { + struct ContentItem + { + std::string label; + std::string value; + }; + struct ChartItem + { + struct Data + { + std::string x; + std::string y; + }; + std::string yLabel; + std::string label; + Data data; + std::string xLabel; + }; + std::vector content; + std::vector chart; + }; + int status; + std::string loginName; + std::string typeName; + std::string dataInstance; + bool backed; + std::string productCode; + std::string typeCode; + std::string statusName; + std::string subTypeCode; + long alertTime; + std::string departName; + std::string dealReason; + std::string telephoneNum; + std::string dealLoginName; + std::string dealDisplayName; + std::string subTypeName; + long userId; + long eventTime; + long dealUserId; + std::string displayName; + long id; + long dealTime; + Detail detail; + }; + + + DescribeEventDetailResult(); + explicit DescribeEventDetailResult(const std::string &payload); + ~DescribeEventDetailResult(); + Event getEvent()const; + + protected: + void parse(const std::string &payload); + private: + Event event_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEEVENTDETAILRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeEventTypesRequest.h b/sddp/include/alibabacloud/sddp/model/DescribeEventTypesRequest.h new file mode 100644 index 000000000..961ff1bc9 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DescribeEventTypesRequest.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_SDDP_MODEL_DESCRIBEEVENTTYPESREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEEVENTTYPESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeEventTypesRequest : public RpcServiceRequest + { + + public: + DescribeEventTypesRequest(); + ~DescribeEventTypesRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + long getParentTypeId()const; + void setParentTypeId(long parentTypeId); + std::string getLang()const; + void setLang(const std::string& lang); + + private: + std::string sourceIp_; + long parentTypeId_; + std::string lang_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEEVENTTYPESREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeEventTypesResult.h b/sddp/include/alibabacloud/sddp/model/DescribeEventTypesResult.h new file mode 100644 index 000000000..ca1f90bb1 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DescribeEventTypesResult.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_SDDP_MODEL_DESCRIBEEVENTTYPESRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEEVENTTYPESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeEventTypesResult : public ServiceResult + { + public: + struct EventType + { + struct SubType + { + int status; + std::string description; + long id; + std::string code; + std::string name; + }; + std::string description; + std::vector subTypeList; + long id; + std::string code; + std::string name; + }; + + + DescribeEventTypesResult(); + explicit DescribeEventTypesResult(const std::string &payload); + ~DescribeEventTypesResult(); + std::vector getEventTypeList()const; + + protected: + void parse(const std::string &payload); + private: + std::vector eventTypeList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEEVENTTYPESRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeEventsRequest.h b/sddp/include/alibabacloud/sddp/model/DescribeEventsRequest.h new file mode 100644 index 000000000..9cb1cb476 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DescribeEventsRequest.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_SDDP_MODEL_DESCRIBEEVENTSREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEEVENTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeEventsRequest : public RpcServiceRequest + { + + public: + DescribeEventsRequest(); + ~DescribeEventsRequest(); + + std::string getProductCode()const; + void setProductCode(const std::string& productCode); + int getFeatureType()const; + void setFeatureType(int featureType); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + long getUserId()const; + void setUserId(long userId); + std::string getTypeCode()const; + void setTypeCode(const std::string& typeCode); + std::string getSubTypeCode()const; + void setSubTypeCode(const std::string& subTypeCode); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getTargetProductCode()const; + void setTargetProductCode(const std::string& targetProductCode); + int getPageSize()const; + void setPageSize(int pageSize); + long getDepartId()const; + void setDepartId(long departId); + std::string getLang()const; + void setLang(const std::string& lang); + std::string getDealUserId()const; + void setDealUserId(const std::string& dealUserId); + std::string getStatus()const; + void setStatus(const std::string& status); + + private: + std::string productCode_; + int featureType_; + std::string endTime_; + int currentPage_; + std::string startTime_; + long userId_; + std::string typeCode_; + std::string subTypeCode_; + std::string sourceIp_; + std::string targetProductCode_; + int pageSize_; + long departId_; + std::string lang_; + std::string dealUserId_; + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEEVENTSREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeEventsResult.h b/sddp/include/alibabacloud/sddp/model/DescribeEventsResult.h new file mode 100644 index 000000000..c599cea6c --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DescribeEventsResult.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_SDDP_MODEL_DESCRIBEEVENTSRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEEVENTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeEventsResult : public ServiceResult + { + public: + struct Event + { + int status; + std::string loginName; + std::string typeName; + bool backed; + std::string productCode; + std::string typeCode; + std::string statusName; + std::string subTypeCode; + long alertTime; + std::string departName; + std::string telephoneNum; + std::string dealLoginName; + std::string dealDisplayName; + std::string subTypeName; + long userId; + std::string targetProductCode; + long eventTime; + long dealUserId; + std::string displayName; + long id; + long dealTime; + }; + + + DescribeEventsResult(); + explicit DescribeEventsResult(const std::string &payload); + ~DescribeEventsResult(); + int getTotalCount()const; + int getPageSize()const; + int getCurrentPage()const; + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int currentPage_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEEVENTSRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeInstancesRequest.h b/sddp/include/alibabacloud/sddp/model/DescribeInstancesRequest.h new file mode 100644 index 000000000..c09db3807 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DescribeInstancesRequest.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_SDDP_MODEL_DESCRIBEINSTANCESREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEINSTANCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeInstancesRequest : public RpcServiceRequest + { + + public: + DescribeInstancesRequest(); + ~DescribeInstancesRequest(); + + std::string getProductCode()const; + void setProductCode(const std::string& productCode); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + long getProductId()const; + void setProductId(long productId); + int getFeatureType()const; + void setFeatureType(int featureType); + std::string getName()const; + void setName(const std::string& name); + int getPageSize()const; + void setPageSize(int pageSize); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + std::string getQueryName()const; + void setQueryName(const std::string& queryName); + long getRiskLevelId()const; + void setRiskLevelId(long riskLevelId); + std::string getLang()const; + void setLang(const std::string& lang); + long getRuleId()const; + void setRuleId(long ruleId); + int getQueryType()const; + void setQueryType(int queryType); + + private: + std::string productCode_; + std::string sourceIp_; + long productId_; + int featureType_; + std::string name_; + int pageSize_; + int currentPage_; + std::string queryName_; + long riskLevelId_; + std::string lang_; + long ruleId_; + int queryType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEINSTANCESREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeInstancesResult.h b/sddp/include/alibabacloud/sddp/model/DescribeInstancesResult.h new file mode 100644 index 000000000..c1c29b70d --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DescribeInstancesResult.h @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEINSTANCESRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEINSTANCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeInstancesResult : public ServiceResult + { + public: + struct Instance + { + std::string owner; + std::string productCode; + std::string odpsRiskLevelName; + std::string productId; + std::string acl; + long riskLevelId; + std::string departName; + std::string name; + int labelsec; + int totalCount; + long creationTime; + bool sensitive; + std::string riskLevelName; + long id; + int sensitiveCount; + bool protection; + std::string ruleName; + }; + + + DescribeInstancesResult(); + explicit DescribeInstancesResult(const std::string &payload); + ~DescribeInstancesResult(); + int getTotalCount()const; + int getPageSize()const; + int getCurrentPage()const; + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int currentPage_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEINSTANCESRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeOssObjectDetailRequest.h b/sddp/include/alibabacloud/sddp/model/DescribeOssObjectDetailRequest.h new file mode 100644 index 000000000..48960d0fe --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DescribeOssObjectDetailRequest.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_SDDP_MODEL_DESCRIBEOSSOBJECTDETAILREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEOSSOBJECTDETAILREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeOssObjectDetailRequest : public RpcServiceRequest + { + + public: + DescribeOssObjectDetailRequest(); + ~DescribeOssObjectDetailRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + int getFeatureType()const; + void setFeatureType(int featureType); + long getId()const; + void setId(long id); + std::string getLang()const; + void setLang(const std::string& lang); + + private: + std::string sourceIp_; + int featureType_; + long id_; + std::string lang_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEOSSOBJECTDETAILREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeOssObjectDetailResult.h b/sddp/include/alibabacloud/sddp/model/DescribeOssObjectDetailResult.h new file mode 100644 index 000000000..265226f44 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DescribeOssObjectDetailResult.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_SDDP_MODEL_DESCRIBEOSSOBJECTDETAILRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEOSSOBJECTDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeOssObjectDetailResult : public ServiceResult + { + public: + struct OssObjectDetail + { + struct Rule + { + long count; + std::string ruleName; + }; + std::vector ruleList; + std::string bucketName; + std::string categoryName; + std::string riskLevelName; + std::string regionId; + std::string name; + }; + + + DescribeOssObjectDetailResult(); + explicit DescribeOssObjectDetailResult(const std::string &payload); + ~DescribeOssObjectDetailResult(); + OssObjectDetail getOssObjectDetail()const; + + protected: + void parse(const std::string &payload); + private: + OssObjectDetail ossObjectDetail_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEOSSOBJECTDETAILRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeOssObjectsRequest.h b/sddp/include/alibabacloud/sddp/model/DescribeOssObjectsRequest.h new file mode 100644 index 000000000..23b215107 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DescribeOssObjectsRequest.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_SDDP_MODEL_DESCRIBEOSSOBJECTSREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEOSSOBJECTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeOssObjectsRequest : public RpcServiceRequest + { + + public: + DescribeOssObjectsRequest(); + ~DescribeOssObjectsRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + int getFeatureType()const; + void setFeatureType(int featureType); + std::string getName()const; + void setName(const std::string& name); + int getPageSize()const; + void setPageSize(int pageSize); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + std::string getQueryName()const; + void setQueryName(const std::string& queryName); + int getRiskLevelId()const; + void setRiskLevelId(int riskLevelId); + std::string getLang()const; + void setLang(const std::string& lang); + long getRuleId()const; + void setRuleId(long ruleId); + + private: + std::string instanceId_; + std::string sourceIp_; + int featureType_; + std::string name_; + int pageSize_; + int currentPage_; + std::string queryName_; + int riskLevelId_; + std::string lang_; + long ruleId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEOSSOBJECTSREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeOssObjectsResult.h b/sddp/include/alibabacloud/sddp/model/DescribeOssObjectsResult.h new file mode 100644 index 000000000..7112723a5 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DescribeOssObjectsResult.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_SDDP_MODEL_DESCRIBEOSSOBJECTSRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEOSSOBJECTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeOssObjectsResult : public ServiceResult + { + public: + struct Column + { + long category; + long instanceId; + std::string fileId; + long riskLevelName; + long id; + std::string regionId; + long riskLevelId; + std::string name; + }; + + + DescribeOssObjectsResult(); + explicit DescribeOssObjectsResult(const std::string &payload); + ~DescribeOssObjectsResult(); + int getTotalCount()const; + int getPageSize()const; + int getCurrentPage()const; + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int currentPage_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEOSSOBJECTSRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribePackagesRequest.h b/sddp/include/alibabacloud/sddp/model/DescribePackagesRequest.h new file mode 100644 index 000000000..55c980c26 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DescribePackagesRequest.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_SDDP_MODEL_DESCRIBEPACKAGESREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEPACKAGESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribePackagesRequest : public RpcServiceRequest + { + + public: + DescribePackagesRequest(); + ~DescribePackagesRequest(); + + long getInstanceId()const; + void setInstanceId(long instanceId); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + long getProductId()const; + void setProductId(long productId); + int getFeatureType()const; + void setFeatureType(int featureType); + std::string getName()const; + void setName(const std::string& name); + int getPageSize()const; + void setPageSize(int pageSize); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + std::string getQueryName()const; + void setQueryName(const std::string& queryName); + long getRiskLevelId()const; + void setRiskLevelId(long riskLevelId); + std::string getLang()const; + void setLang(const std::string& lang); + long getRuleId()const; + void setRuleId(long ruleId); + int getQueryType()const; + void setQueryType(int queryType); + + private: + long instanceId_; + std::string sourceIp_; + long productId_; + int featureType_; + std::string name_; + int pageSize_; + int currentPage_; + std::string queryName_; + long riskLevelId_; + std::string lang_; + long ruleId_; + int queryType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEPACKAGESREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribePackagesResult.h b/sddp/include/alibabacloud/sddp/model/DescribePackagesResult.h new file mode 100644 index 000000000..a23398810 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DescribePackagesResult.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEPACKAGESRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEPACKAGESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribePackagesResult : public ServiceResult + { + public: + struct Package + { + std::string owner; + int totalCount; + long instanceId; + long creationTime; + bool sensitive; + std::string riskLevelName; + long id; + int sensitiveCount; + long riskLevelId; + std::string departName; + std::string name; + }; + + + DescribePackagesResult(); + explicit DescribePackagesResult(const std::string &payload); + ~DescribePackagesResult(); + int getTotalCount()const; + int getPageSize()const; + int getCurrentPage()const; + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int currentPage_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEPACKAGESRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribePrivilegesRequest.h b/sddp/include/alibabacloud/sddp/model/DescribePrivilegesRequest.h new file mode 100644 index 000000000..2d2284dfc --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DescribePrivilegesRequest.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_SDDP_MODEL_DESCRIBEPRIVILEGESREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEPRIVILEGESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribePrivilegesRequest : public RpcServiceRequest + { + + public: + DescribePrivilegesRequest(); + ~DescribePrivilegesRequest(); + + long getAccountId()const; + void setAccountId(long accountId); + long getUseAccountId()const; + void setUseAccountId(long useAccountId); + std::string getDataTypeIds()const; + void setDataTypeIds(const std::string& dataTypeIds); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + int getFeatureType()const; + void setFeatureType(int featureType); + int getPageSize()const; + void setPageSize(int pageSize); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + std::string getLang()const; + void setLang(const std::string& lang); + std::string getKey()const; + void setKey(const std::string& key); + + private: + long accountId_; + long useAccountId_; + std::string dataTypeIds_; + std::string sourceIp_; + int featureType_; + int pageSize_; + int currentPage_; + std::string lang_; + std::string key_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEPRIVILEGESREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribePrivilegesResult.h b/sddp/include/alibabacloud/sddp/model/DescribePrivilegesResult.h new file mode 100644 index 000000000..162db64e8 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DescribePrivilegesResult.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_SDDP_MODEL_DESCRIBEPRIVILEGESRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEPRIVILEGESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribePrivilegesResult : public ServiceResult + { + public: + struct Privilege + { + int useAccountType; + std::string dataTable; + std::string dataInstance; + long accountId; + std::string productName; + std::string productCode; + std::string resourceName; + std::string operation; + std::string policyCondition; + int accountType; + std::string resourcePath; + std::string dataTypeId; + std::string dataColumn; + std::string dataType; + std::string dataPackage; + std::string sensitive; + long id; + std::string dataTypeName; + long useAccountId; + }; + + + DescribePrivilegesResult(); + explicit DescribePrivilegesResult(const std::string &payload); + ~DescribePrivilegesResult(); + int getTotalCount()const; + int getPageSize()const; + int getCurrentPage()const; + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int currentPage_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEPRIVILEGESRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeRulesRequest.h b/sddp/include/alibabacloud/sddp/model/DescribeRulesRequest.h new file mode 100644 index 000000000..f47e6ca67 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DescribeRulesRequest.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_SDDP_MODEL_DESCRIBERULESREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBERULESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeRulesRequest : public RpcServiceRequest + { + + public: + DescribeRulesRequest(); + ~DescribeRulesRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getName()const; + void setName(const std::string& name); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + long getRiskLevelId()const; + void setRiskLevelId(long riskLevelId); + std::string getLang()const; + void setLang(const std::string& lang); + int getCustomType()const; + void setCustomType(int customType); + int getCategory()const; + void setCategory(int category); + + private: + std::string sourceIp_; + int pageSize_; + std::string name_; + int currentPage_; + long riskLevelId_; + std::string lang_; + int customType_; + int category_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBERULESREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeRulesResult.h b/sddp/include/alibabacloud/sddp/model/DescribeRulesResult.h new file mode 100644 index 000000000..05f374981 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DescribeRulesResult.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_SDDP_MODEL_DESCRIBERULESRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBERULESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeRulesResult : public ServiceResult + { + public: + struct Rule + { + int customType; + int status; + std::string loginName; + std::string description; + int category; + long gmtModified; + long riskLevelId; + std::string departName; + std::string name; + long gmtCreate; + long userId; + std::string content; + std::string displayName; + std::string categoryName; + std::string riskLevelName; + long id; + }; + + + DescribeRulesResult(); + explicit DescribeRulesResult(const std::string &payload); + ~DescribeRulesResult(); + int getTotalCount()const; + int getPageSize()const; + int getCurrentPage()const; + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int currentPage_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBERULESRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeTablesRequest.h b/sddp/include/alibabacloud/sddp/model/DescribeTablesRequest.h new file mode 100644 index 000000000..1995586ce --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DescribeTablesRequest.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_SDDP_MODEL_DESCRIBETABLESREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBETABLESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeTablesRequest : public RpcServiceRequest + { + + public: + DescribeTablesRequest(); + ~DescribeTablesRequest(); + + long getProductId()const; + void setProductId(long productId); + int getFeatureType()const; + void setFeatureType(int featureType); + long getPackageId()const; + void setPackageId(long packageId); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + std::string getQueryName()const; + void setQueryName(const std::string& queryName); + long getRiskLevelId()const; + void setRiskLevelId(long riskLevelId); + long getInstanceId()const; + void setInstanceId(long instanceId); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getName()const; + void setName(const std::string& name); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getLang()const; + void setLang(const std::string& lang); + long getRuleId()const; + void setRuleId(long ruleId); + int getQueryType()const; + void setQueryType(int queryType); + + private: + long productId_; + int featureType_; + long packageId_; + int currentPage_; + std::string queryName_; + long riskLevelId_; + long instanceId_; + std::string sourceIp_; + std::string name_; + int pageSize_; + std::string lang_; + long ruleId_; + int queryType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBETABLESREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeTablesResult.h b/sddp/include/alibabacloud/sddp/model/DescribeTablesResult.h new file mode 100644 index 000000000..29c0b5421 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DescribeTablesResult.h @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBETABLESRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBETABLESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeTablesResult : public ServiceResult + { + public: + struct Table + { + std::string owner; + std::string productCode; + long instanceId; + std::string sensitiveRatio; + std::string productId; + long riskLevelId; + std::string departName; + std::string name; + int totalCount; + long creationTime; + bool sensitive; + std::string riskLevelName; + long id; + int sensitiveCount; + }; + + + DescribeTablesResult(); + explicit DescribeTablesResult(const std::string &payload); + ~DescribeTablesResult(); + int getTotalCount()const; + int getPageSize()const; + int getCurrentPage()const; + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int currentPage_; + std::vector
items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBETABLESRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeUserStatusRequest.h b/sddp/include/alibabacloud/sddp/model/DescribeUserStatusRequest.h new file mode 100644 index 000000000..247e6c5f7 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DescribeUserStatusRequest.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_SDDP_MODEL_DESCRIBEUSERSTATUSREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEUSERSTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeUserStatusRequest : public RpcServiceRequest + { + + public: + DescribeUserStatusRequest(); + ~DescribeUserStatusRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getLang()const; + void setLang(const std::string& lang); + + private: + std::string sourceIp_; + std::string lang_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEUSERSTATUSREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeUserStatusResult.h b/sddp/include/alibabacloud/sddp/model/DescribeUserStatusResult.h new file mode 100644 index 000000000..1c605403b --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/DescribeUserStatusResult.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_SDDP_MODEL_DESCRIBEUSERSTATUSRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEUSERSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeUserStatusResult : public ServiceResult + { + public: + struct UserStatus + { + bool authed; + bool rdsSet; + std::string accessKeyId; + bool ossBucketSet; + bool odpsSet; + bool buyed; + }; + + + DescribeUserStatusResult(); + explicit DescribeUserStatusResult(const std::string &payload); + ~DescribeUserStatusResult(); + UserStatus getUserStatus()const; + + protected: + void parse(const std::string &payload); + private: + UserStatus userStatus_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEUSERSTATUSRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/ModifyDataLimitRequest.h b/sddp/include/alibabacloud/sddp/model/ModifyDataLimitRequest.h new file mode 100644 index 000000000..2ddfd0e95 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/ModifyDataLimitRequest.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_SDDP_MODEL_MODIFYDATALIMITREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_MODIFYDATALIMITREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT ModifyDataLimitRequest : public RpcServiceRequest + { + + public: + ModifyDataLimitRequest(); + ~ModifyDataLimitRequest(); + + std::string getPassword()const; + void setPassword(const std::string& password); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getConnector()const; + void setConnector(const std::string& connector); + long getId()const; + void setId(long id); + std::string getLang()const; + void setLang(const std::string& lang); + int getResourceType()const; + void setResourceType(int resourceType); + std::string getServiceRegionId()const; + void setServiceRegionId(const std::string& serviceRegionId); + std::string getUserName()const; + void setUserName(const std::string& userName); + + private: + std::string password_; + std::string sourceIp_; + std::string connector_; + long id_; + std::string lang_; + int resourceType_; + std::string serviceRegionId_; + std::string userName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_MODIFYDATALIMITREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/ModifyDataLimitResult.h b/sddp/include/alibabacloud/sddp/model/ModifyDataLimitResult.h new file mode 100644 index 000000000..c2e742c0c --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/ModifyDataLimitResult.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_SDDP_MODEL_MODIFYDATALIMITRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_MODIFYDATALIMITRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT ModifyDataLimitResult : public ServiceResult + { + public: + + + ModifyDataLimitResult(); + explicit ModifyDataLimitResult(const std::string &payload); + ~ModifyDataLimitResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_MODIFYDATALIMITRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/ModifyDefaultLevelRequest.h b/sddp/include/alibabacloud/sddp/model/ModifyDefaultLevelRequest.h new file mode 100644 index 000000000..79add419b --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/ModifyDefaultLevelRequest.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_SDDP_MODEL_MODIFYDEFAULTLEVELREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_MODIFYDEFAULTLEVELREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT ModifyDefaultLevelRequest : public RpcServiceRequest + { + + public: + ModifyDefaultLevelRequest(); + ~ModifyDefaultLevelRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + int getFeatureType()const; + void setFeatureType(int featureType); + long getDefaultId()const; + void setDefaultId(long defaultId); + std::string getLang()const; + void setLang(const std::string& lang); + std::string getSensitiveIds()const; + void setSensitiveIds(const std::string& sensitiveIds); + + private: + std::string sourceIp_; + int featureType_; + long defaultId_; + std::string lang_; + std::string sensitiveIds_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_MODIFYDEFAULTLEVELREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/ModifyDefaultLevelResult.h b/sddp/include/alibabacloud/sddp/model/ModifyDefaultLevelResult.h new file mode 100644 index 000000000..c0cd9b8a0 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/ModifyDefaultLevelResult.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_SDDP_MODEL_MODIFYDEFAULTLEVELRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_MODIFYDEFAULTLEVELRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT ModifyDefaultLevelResult : public ServiceResult + { + public: + + + ModifyDefaultLevelResult(); + explicit ModifyDefaultLevelResult(const std::string &payload); + ~ModifyDefaultLevelResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_MODIFYDEFAULTLEVELRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/ModifyEventStatusRequest.h b/sddp/include/alibabacloud/sddp/model/ModifyEventStatusRequest.h new file mode 100644 index 000000000..0122ca23a --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/ModifyEventStatusRequest.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_SDDP_MODEL_MODIFYEVENTSTATUSREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_MODIFYEVENTSTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT ModifyEventStatusRequest : public RpcServiceRequest + { + + public: + ModifyEventStatusRequest(); + ~ModifyEventStatusRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + bool getBacked()const; + void setBacked(bool backed); + int getFeatureType()const; + void setFeatureType(int featureType); + std::string getDealReason()const; + void setDealReason(const std::string& dealReason); + long getId()const; + void setId(long id); + std::string getLang()const; + void setLang(const std::string& lang); + int getStatus()const; + void setStatus(int status); + + private: + std::string sourceIp_; + bool backed_; + int featureType_; + std::string dealReason_; + long id_; + std::string lang_; + int status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_MODIFYEVENTSTATUSREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/ModifyEventStatusResult.h b/sddp/include/alibabacloud/sddp/model/ModifyEventStatusResult.h new file mode 100644 index 000000000..0334ee4be --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/ModifyEventStatusResult.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_SDDP_MODEL_MODIFYEVENTSTATUSRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_MODIFYEVENTSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT ModifyEventStatusResult : public ServiceResult + { + public: + + + ModifyEventStatusResult(); + explicit ModifyEventStatusResult(const std::string &payload); + ~ModifyEventStatusResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_MODIFYEVENTSTATUSRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/ModifyEventTypeStatusRequest.h b/sddp/include/alibabacloud/sddp/model/ModifyEventTypeStatusRequest.h new file mode 100644 index 000000000..93ca7fffe --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/ModifyEventTypeStatusRequest.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_SDDP_MODEL_MODIFYEVENTTYPESTATUSREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_MODIFYEVENTTYPESTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT ModifyEventTypeStatusRequest : public RpcServiceRequest + { + + public: + ModifyEventTypeStatusRequest(); + ~ModifyEventTypeStatusRequest(); + + std::string getSubTypeIds()const; + void setSubTypeIds(const std::string& subTypeIds); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getLang()const; + void setLang(const std::string& lang); + + private: + std::string subTypeIds_; + std::string sourceIp_; + std::string lang_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_MODIFYEVENTTYPESTATUSREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/ModifyEventTypeStatusResult.h b/sddp/include/alibabacloud/sddp/model/ModifyEventTypeStatusResult.h new file mode 100644 index 000000000..d3df811d2 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/ModifyEventTypeStatusResult.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_SDDP_MODEL_MODIFYEVENTTYPESTATUSRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_MODIFYEVENTTYPESTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT ModifyEventTypeStatusResult : public ServiceResult + { + public: + + + ModifyEventTypeStatusResult(); + explicit ModifyEventTypeStatusResult(const std::string &payload); + ~ModifyEventTypeStatusResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_MODIFYEVENTTYPESTATUSRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/ModifyRuleRequest.h b/sddp/include/alibabacloud/sddp/model/ModifyRuleRequest.h new file mode 100644 index 000000000..e48207c52 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/ModifyRuleRequest.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_SDDP_MODEL_MODIFYRULEREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_MODIFYRULEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT ModifyRuleRequest : public RpcServiceRequest + { + + public: + ModifyRuleRequest(); + ~ModifyRuleRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + int getFeatureType()const; + void setFeatureType(int featureType); + std::string getName()const; + void setName(const std::string& name); + long getId()const; + void setId(long id); + long getRiskLevelId()const; + void setRiskLevelId(long riskLevelId); + std::string getLang()const; + void setLang(const std::string& lang); + int getCustomType()const; + void setCustomType(int customType); + int getCategory()const; + void setCategory(int category); + std::string getContent()const; + void setContent(const std::string& content); + + private: + std::string sourceIp_; + int featureType_; + std::string name_; + long id_; + long riskLevelId_; + std::string lang_; + int customType_; + int category_; + std::string content_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_MODIFYRULEREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/ModifyRuleResult.h b/sddp/include/alibabacloud/sddp/model/ModifyRuleResult.h new file mode 100644 index 000000000..b72d60823 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/ModifyRuleResult.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_SDDP_MODEL_MODIFYRULERESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_MODIFYRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT ModifyRuleResult : public ServiceResult + { + public: + + + ModifyRuleResult(); + explicit ModifyRuleResult(const std::string &payload); + ~ModifyRuleResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_MODIFYRULERESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/ModifyRuleStatusRequest.h b/sddp/include/alibabacloud/sddp/model/ModifyRuleStatusRequest.h new file mode 100644 index 000000000..8d043f558 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/ModifyRuleStatusRequest.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_SDDP_MODEL_MODIFYRULESTATUSREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_MODIFYRULESTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT ModifyRuleStatusRequest : public RpcServiceRequest + { + + public: + ModifyRuleStatusRequest(); + ~ModifyRuleStatusRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + int getFeatureType()const; + void setFeatureType(int featureType); + long getId()const; + void setId(long id); + std::string getLang()const; + void setLang(const std::string& lang); + int getStatus()const; + void setStatus(int status); + + private: + std::string sourceIp_; + int featureType_; + long id_; + std::string lang_; + int status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_MODIFYRULESTATUSREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/ModifyRuleStatusResult.h b/sddp/include/alibabacloud/sddp/model/ModifyRuleStatusResult.h new file mode 100644 index 000000000..f3cf3c046 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/ModifyRuleStatusResult.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_SDDP_MODEL_MODIFYRULESTATUSRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_MODIFYRULESTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT ModifyRuleStatusResult : public ServiceResult + { + public: + + + ModifyRuleStatusResult(); + explicit ModifyRuleStatusResult(const std::string &payload); + ~ModifyRuleStatusResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_MODIFYRULESTATUSRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/ValidateConnectorRequest.h b/sddp/include/alibabacloud/sddp/model/ValidateConnectorRequest.h new file mode 100644 index 000000000..1b6c431e8 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/ValidateConnectorRequest.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_SDDP_MODEL_VALIDATECONNECTORREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_VALIDATECONNECTORREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT ValidateConnectorRequest : public RpcServiceRequest + { + + public: + ValidateConnectorRequest(); + ~ValidateConnectorRequest(); + + std::string getPassword()const; + void setPassword(const std::string& password); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getConnector()const; + void setConnector(const std::string& connector); + std::string getLang()const; + void setLang(const std::string& lang); + int getResourceType()const; + void setResourceType(int resourceType); + std::string getServiceRegionId()const; + void setServiceRegionId(const std::string& serviceRegionId); + std::string getParentId()const; + void setParentId(const std::string& parentId); + std::string getUserName()const; + void setUserName(const std::string& userName); + + private: + std::string password_; + std::string sourceIp_; + std::string connector_; + std::string lang_; + int resourceType_; + std::string serviceRegionId_; + std::string parentId_; + std::string userName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_VALIDATECONNECTORREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/ValidateConnectorResult.h b/sddp/include/alibabacloud/sddp/model/ValidateConnectorResult.h new file mode 100644 index 000000000..dd3f724f5 --- /dev/null +++ b/sddp/include/alibabacloud/sddp/model/ValidateConnectorResult.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_SDDP_MODEL_VALIDATECONNECTORRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_VALIDATECONNECTORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT ValidateConnectorResult : public ServiceResult + { + public: + + + ValidateConnectorResult(); + explicit ValidateConnectorResult(const std::string &payload); + ~ValidateConnectorResult(); + bool getConnected()const; + + protected: + void parse(const std::string &payload); + private: + bool connected_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SDDP_MODEL_VALIDATECONNECTORRESULT_H_ \ No newline at end of file diff --git a/sddp/src/SddpClient.cc b/sddp/src/SddpClient.cc new file mode 100644 index 000000000..7f99fbc57 --- /dev/null +++ b/sddp/src/SddpClient.cc @@ -0,0 +1,1457 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +namespace +{ + const std::string SERVICE_NAME = "Sddp"; +} + +SddpClient::SddpClient(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, "sddp"); +} + +SddpClient::SddpClient(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, "sddp"); +} + +SddpClient::SddpClient(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, "sddp"); +} + +SddpClient::~SddpClient() +{} + +SddpClient::DescribeOssObjectDetailOutcome SddpClient::describeOssObjectDetail(const DescribeOssObjectDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeOssObjectDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeOssObjectDetailOutcome(DescribeOssObjectDetailResult(outcome.result())); + else + return DescribeOssObjectDetailOutcome(outcome.error()); +} + +void SddpClient::describeOssObjectDetailAsync(const DescribeOssObjectDetailRequest& request, const DescribeOssObjectDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeOssObjectDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::DescribeOssObjectDetailOutcomeCallable SddpClient::describeOssObjectDetailCallable(const DescribeOssObjectDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeOssObjectDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::CreateConfigOutcome SddpClient::createConfig(const CreateConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateConfigOutcome(CreateConfigResult(outcome.result())); + else + return CreateConfigOutcome(outcome.error()); +} + +void SddpClient::createConfigAsync(const CreateConfigRequest& request, const CreateConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::CreateConfigOutcomeCallable SddpClient::createConfigCallable(const CreateConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::DescribeEventTypesOutcome SddpClient::describeEventTypes(const DescribeEventTypesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeEventTypesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeEventTypesOutcome(DescribeEventTypesResult(outcome.result())); + else + return DescribeEventTypesOutcome(outcome.error()); +} + +void SddpClient::describeEventTypesAsync(const DescribeEventTypesRequest& request, const DescribeEventTypesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeEventTypes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::DescribeEventTypesOutcomeCallable SddpClient::describeEventTypesCallable(const DescribeEventTypesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeEventTypes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::DescribePackagesOutcome SddpClient::describePackages(const DescribePackagesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribePackagesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribePackagesOutcome(DescribePackagesResult(outcome.result())); + else + return DescribePackagesOutcome(outcome.error()); +} + +void SddpClient::describePackagesAsync(const DescribePackagesRequest& request, const DescribePackagesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describePackages(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::DescribePackagesOutcomeCallable SddpClient::describePackagesCallable(const DescribePackagesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describePackages(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::ModifyEventStatusOutcome SddpClient::modifyEventStatus(const ModifyEventStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyEventStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyEventStatusOutcome(ModifyEventStatusResult(outcome.result())); + else + return ModifyEventStatusOutcome(outcome.error()); +} + +void SddpClient::modifyEventStatusAsync(const ModifyEventStatusRequest& request, const ModifyEventStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyEventStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::ModifyEventStatusOutcomeCallable SddpClient::modifyEventStatusCallable(const ModifyEventStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyEventStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::DescribeConfigsOutcome SddpClient::describeConfigs(const DescribeConfigsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeConfigsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeConfigsOutcome(DescribeConfigsResult(outcome.result())); + else + return DescribeConfigsOutcome(outcome.error()); +} + +void SddpClient::describeConfigsAsync(const DescribeConfigsRequest& request, const DescribeConfigsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeConfigs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::DescribeConfigsOutcomeCallable SddpClient::describeConfigsCallable(const DescribeConfigsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeConfigs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::DescribeAuthAccountsOutcome SddpClient::describeAuthAccounts(const DescribeAuthAccountsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAuthAccountsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAuthAccountsOutcome(DescribeAuthAccountsResult(outcome.result())); + else + return DescribeAuthAccountsOutcome(outcome.error()); +} + +void SddpClient::describeAuthAccountsAsync(const DescribeAuthAccountsRequest& request, const DescribeAuthAccountsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAuthAccounts(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::DescribeAuthAccountsOutcomeCallable SddpClient::describeAuthAccountsCallable(const DescribeAuthAccountsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAuthAccounts(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::DescribeDataAssetsOutcome SddpClient::describeDataAssets(const DescribeDataAssetsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDataAssetsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDataAssetsOutcome(DescribeDataAssetsResult(outcome.result())); + else + return DescribeDataAssetsOutcome(outcome.error()); +} + +void SddpClient::describeDataAssetsAsync(const DescribeDataAssetsRequest& request, const DescribeDataAssetsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDataAssets(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::DescribeDataAssetsOutcomeCallable SddpClient::describeDataAssetsCallable(const DescribeDataAssetsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDataAssets(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::ValidateConnectorOutcome SddpClient::validateConnector(const ValidateConnectorRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ValidateConnectorOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ValidateConnectorOutcome(ValidateConnectorResult(outcome.result())); + else + return ValidateConnectorOutcome(outcome.error()); +} + +void SddpClient::validateConnectorAsync(const ValidateConnectorRequest& request, const ValidateConnectorAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, validateConnector(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::ValidateConnectorOutcomeCallable SddpClient::validateConnectorCallable(const ValidateConnectorRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->validateConnector(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::DescribeCloudDatabasesOutcome SddpClient::describeCloudDatabases(const DescribeCloudDatabasesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCloudDatabasesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCloudDatabasesOutcome(DescribeCloudDatabasesResult(outcome.result())); + else + return DescribeCloudDatabasesOutcome(outcome.error()); +} + +void SddpClient::describeCloudDatabasesAsync(const DescribeCloudDatabasesRequest& request, const DescribeCloudDatabasesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCloudDatabases(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::DescribeCloudDatabasesOutcomeCallable SddpClient::describeCloudDatabasesCallable(const DescribeCloudDatabasesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCloudDatabases(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::CreateRuleOutcome SddpClient::createRule(const CreateRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateRuleOutcome(CreateRuleResult(outcome.result())); + else + return CreateRuleOutcome(outcome.error()); +} + +void SddpClient::createRuleAsync(const CreateRuleRequest& request, const CreateRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::CreateRuleOutcomeCallable SddpClient::createRuleCallable(const CreateRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::CreateUserAuthOutcome SddpClient::createUserAuth(const CreateUserAuthRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateUserAuthOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateUserAuthOutcome(CreateUserAuthResult(outcome.result())); + else + return CreateUserAuthOutcome(outcome.error()); +} + +void SddpClient::createUserAuthAsync(const CreateUserAuthRequest& request, const CreateUserAuthAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createUserAuth(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::CreateUserAuthOutcomeCallable SddpClient::createUserAuthCallable(const CreateUserAuthRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createUserAuth(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::DeleteRuleOutcome SddpClient::deleteRule(const DeleteRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteRuleOutcome(DeleteRuleResult(outcome.result())); + else + return DeleteRuleOutcome(outcome.error()); +} + +void SddpClient::deleteRuleAsync(const DeleteRuleRequest& request, const DeleteRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::DeleteRuleOutcomeCallable SddpClient::deleteRuleCallable(const DeleteRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::DescribeDataHubConnectorsOutcome SddpClient::describeDataHubConnectors(const DescribeDataHubConnectorsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDataHubConnectorsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDataHubConnectorsOutcome(DescribeDataHubConnectorsResult(outcome.result())); + else + return DescribeDataHubConnectorsOutcome(outcome.error()); +} + +void SddpClient::describeDataHubConnectorsAsync(const DescribeDataHubConnectorsRequest& request, const DescribeDataHubConnectorsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDataHubConnectors(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::DescribeDataHubConnectorsOutcomeCallable SddpClient::describeDataHubConnectorsCallable(const DescribeDataHubConnectorsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDataHubConnectors(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::DescribeRulesOutcome SddpClient::describeRules(const DescribeRulesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRulesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRulesOutcome(DescribeRulesResult(outcome.result())); + else + return DescribeRulesOutcome(outcome.error()); +} + +void SddpClient::describeRulesAsync(const DescribeRulesRequest& request, const DescribeRulesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRules(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::DescribeRulesOutcomeCallable SddpClient::describeRulesCallable(const DescribeRulesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRules(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::DescribeDataLimitDetailOutcome SddpClient::describeDataLimitDetail(const DescribeDataLimitDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDataLimitDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDataLimitDetailOutcome(DescribeDataLimitDetailResult(outcome.result())); + else + return DescribeDataLimitDetailOutcome(outcome.error()); +} + +void SddpClient::describeDataLimitDetailAsync(const DescribeDataLimitDetailRequest& request, const DescribeDataLimitDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDataLimitDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::DescribeDataLimitDetailOutcomeCallable SddpClient::describeDataLimitDetailCallable(const DescribeDataLimitDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDataLimitDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::DescribeColumnsOutcome SddpClient::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 SddpClient::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)); +} + +SddpClient::DescribeColumnsOutcomeCallable SddpClient::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(); +} + +SddpClient::ModifyRuleStatusOutcome SddpClient::modifyRuleStatus(const ModifyRuleStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyRuleStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyRuleStatusOutcome(ModifyRuleStatusResult(outcome.result())); + else + return ModifyRuleStatusOutcome(outcome.error()); +} + +void SddpClient::modifyRuleStatusAsync(const ModifyRuleStatusRequest& request, const ModifyRuleStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyRuleStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::ModifyRuleStatusOutcomeCallable SddpClient::modifyRuleStatusCallable(const ModifyRuleStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyRuleStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::DeleteDataLimitOutcome SddpClient::deleteDataLimit(const DeleteDataLimitRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDataLimitOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDataLimitOutcome(DeleteDataLimitResult(outcome.result())); + else + return DeleteDataLimitOutcome(outcome.error()); +} + +void SddpClient::deleteDataLimitAsync(const DeleteDataLimitRequest& request, const DeleteDataLimitAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDataLimit(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::DeleteDataLimitOutcomeCallable SddpClient::deleteDataLimitCallable(const DeleteDataLimitRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDataLimit(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::DescribeAccountDetailOutcome SddpClient::describeAccountDetail(const DescribeAccountDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAccountDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAccountDetailOutcome(DescribeAccountDetailResult(outcome.result())); + else + return DescribeAccountDetailOutcome(outcome.error()); +} + +void SddpClient::describeAccountDetailAsync(const DescribeAccountDetailRequest& request, const DescribeAccountDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAccountDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::DescribeAccountDetailOutcomeCallable SddpClient::describeAccountDetailCallable(const DescribeAccountDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAccountDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::DescribeDepartsOutcome SddpClient::describeDeparts(const DescribeDepartsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDepartsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDepartsOutcome(DescribeDepartsResult(outcome.result())); + else + return DescribeDepartsOutcome(outcome.error()); +} + +void SddpClient::describeDepartsAsync(const DescribeDepartsRequest& request, const DescribeDepartsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDeparts(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::DescribeDepartsOutcomeCallable SddpClient::describeDepartsCallable(const DescribeDepartsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDeparts(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::DescribeDataHubSubscriptionsOutcome SddpClient::describeDataHubSubscriptions(const DescribeDataHubSubscriptionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDataHubSubscriptionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDataHubSubscriptionsOutcome(DescribeDataHubSubscriptionsResult(outcome.result())); + else + return DescribeDataHubSubscriptionsOutcome(outcome.error()); +} + +void SddpClient::describeDataHubSubscriptionsAsync(const DescribeDataHubSubscriptionsRequest& request, const DescribeDataHubSubscriptionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDataHubSubscriptions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::DescribeDataHubSubscriptionsOutcomeCallable SddpClient::describeDataHubSubscriptionsCallable(const DescribeDataHubSubscriptionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDataHubSubscriptions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::DescribeDataHubTopicsOutcome SddpClient::describeDataHubTopics(const DescribeDataHubTopicsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDataHubTopicsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDataHubTopicsOutcome(DescribeDataHubTopicsResult(outcome.result())); + else + return DescribeDataHubTopicsOutcome(outcome.error()); +} + +void SddpClient::describeDataHubTopicsAsync(const DescribeDataHubTopicsRequest& request, const DescribeDataHubTopicsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDataHubTopics(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::DescribeDataHubTopicsOutcomeCallable SddpClient::describeDataHubTopicsCallable(const DescribeDataHubTopicsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDataHubTopics(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::DescribeCloudInstancesOutcome SddpClient::describeCloudInstances(const DescribeCloudInstancesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCloudInstancesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCloudInstancesOutcome(DescribeCloudInstancesResult(outcome.result())); + else + return DescribeCloudInstancesOutcome(outcome.error()); +} + +void SddpClient::describeCloudInstancesAsync(const DescribeCloudInstancesRequest& request, const DescribeCloudInstancesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCloudInstances(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::DescribeCloudInstancesOutcomeCallable SddpClient::describeCloudInstancesCallable(const DescribeCloudInstancesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCloudInstances(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::DescribeAccountsOutcome SddpClient::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 SddpClient::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)); +} + +SddpClient::DescribeAccountsOutcomeCallable SddpClient::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(); +} + +SddpClient::DescribeOssObjectsOutcome SddpClient::describeOssObjects(const DescribeOssObjectsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeOssObjectsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeOssObjectsOutcome(DescribeOssObjectsResult(outcome.result())); + else + return DescribeOssObjectsOutcome(outcome.error()); +} + +void SddpClient::describeOssObjectsAsync(const DescribeOssObjectsRequest& request, const DescribeOssObjectsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeOssObjects(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::DescribeOssObjectsOutcomeCallable SddpClient::describeOssObjectsCallable(const DescribeOssObjectsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeOssObjects(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::DescribeDataLimitsOutcome SddpClient::describeDataLimits(const DescribeDataLimitsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDataLimitsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDataLimitsOutcome(DescribeDataLimitsResult(outcome.result())); + else + return DescribeDataLimitsOutcome(outcome.error()); +} + +void SddpClient::describeDataLimitsAsync(const DescribeDataLimitsRequest& request, const DescribeDataLimitsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDataLimits(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::DescribeDataLimitsOutcomeCallable SddpClient::describeDataLimitsCallable(const DescribeDataLimitsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDataLimits(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::DescribeEventsOutcome SddpClient::describeEvents(const DescribeEventsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeEventsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeEventsOutcome(DescribeEventsResult(outcome.result())); + else + return DescribeEventsOutcome(outcome.error()); +} + +void SddpClient::describeEventsAsync(const DescribeEventsRequest& request, const DescribeEventsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeEvents(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::DescribeEventsOutcomeCallable SddpClient::describeEventsCallable(const DescribeEventsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeEvents(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::CreateDataLimitOutcome SddpClient::createDataLimit(const CreateDataLimitRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDataLimitOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDataLimitOutcome(CreateDataLimitResult(outcome.result())); + else + return CreateDataLimitOutcome(outcome.error()); +} + +void SddpClient::createDataLimitAsync(const CreateDataLimitRequest& request, const CreateDataLimitAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDataLimit(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::CreateDataLimitOutcomeCallable SddpClient::createDataLimitCallable(const CreateDataLimitRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDataLimit(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::ModifyRuleOutcome SddpClient::modifyRule(const ModifyRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyRuleOutcome(ModifyRuleResult(outcome.result())); + else + return ModifyRuleOutcome(outcome.error()); +} + +void SddpClient::modifyRuleAsync(const ModifyRuleRequest& request, const ModifyRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::ModifyRuleOutcomeCallable SddpClient::modifyRuleCallable(const ModifyRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::ModifyDataLimitOutcome SddpClient::modifyDataLimit(const ModifyDataLimitRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDataLimitOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDataLimitOutcome(ModifyDataLimitResult(outcome.result())); + else + return ModifyDataLimitOutcome(outcome.error()); +} + +void SddpClient::modifyDataLimitAsync(const ModifyDataLimitRequest& request, const ModifyDataLimitAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDataLimit(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::ModifyDataLimitOutcomeCallable SddpClient::modifyDataLimitCallable(const ModifyDataLimitRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDataLimit(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::DescribeEventDetailOutcome SddpClient::describeEventDetail(const DescribeEventDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeEventDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeEventDetailOutcome(DescribeEventDetailResult(outcome.result())); + else + return DescribeEventDetailOutcome(outcome.error()); +} + +void SddpClient::describeEventDetailAsync(const DescribeEventDetailRequest& request, const DescribeEventDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeEventDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::DescribeEventDetailOutcomeCallable SddpClient::describeEventDetailCallable(const DescribeEventDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeEventDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::DescribeTablesOutcome SddpClient::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 SddpClient::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)); +} + +SddpClient::DescribeTablesOutcomeCallable SddpClient::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(); +} + +SddpClient::DescribePrivilegesOutcome SddpClient::describePrivileges(const DescribePrivilegesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribePrivilegesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribePrivilegesOutcome(DescribePrivilegesResult(outcome.result())); + else + return DescribePrivilegesOutcome(outcome.error()); +} + +void SddpClient::describePrivilegesAsync(const DescribePrivilegesRequest& request, const DescribePrivilegesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describePrivileges(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::DescribePrivilegesOutcomeCallable SddpClient::describePrivilegesCallable(const DescribePrivilegesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describePrivileges(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::DescribeDataHubProjectsOutcome SddpClient::describeDataHubProjects(const DescribeDataHubProjectsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDataHubProjectsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDataHubProjectsOutcome(DescribeDataHubProjectsResult(outcome.result())); + else + return DescribeDataHubProjectsOutcome(outcome.error()); +} + +void SddpClient::describeDataHubProjectsAsync(const DescribeDataHubProjectsRequest& request, const DescribeDataHubProjectsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDataHubProjects(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::DescribeDataHubProjectsOutcomeCallable SddpClient::describeDataHubProjectsCallable(const DescribeDataHubProjectsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDataHubProjects(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::DescribeInstancesOutcome SddpClient::describeInstances(const DescribeInstancesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeInstancesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeInstancesOutcome(DescribeInstancesResult(outcome.result())); + else + return DescribeInstancesOutcome(outcome.error()); +} + +void SddpClient::describeInstancesAsync(const DescribeInstancesRequest& request, const DescribeInstancesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeInstances(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::DescribeInstancesOutcomeCallable SddpClient::describeInstancesCallable(const DescribeInstancesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeInstances(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::ModifyDefaultLevelOutcome SddpClient::modifyDefaultLevel(const ModifyDefaultLevelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDefaultLevelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDefaultLevelOutcome(ModifyDefaultLevelResult(outcome.result())); + else + return ModifyDefaultLevelOutcome(outcome.error()); +} + +void SddpClient::modifyDefaultLevelAsync(const ModifyDefaultLevelRequest& request, const ModifyDefaultLevelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDefaultLevel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::ModifyDefaultLevelOutcomeCallable SddpClient::modifyDefaultLevelCallable(const ModifyDefaultLevelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDefaultLevel(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::ModifyEventTypeStatusOutcome SddpClient::modifyEventTypeStatus(const ModifyEventTypeStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyEventTypeStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyEventTypeStatusOutcome(ModifyEventTypeStatusResult(outcome.result())); + else + return ModifyEventTypeStatusOutcome(outcome.error()); +} + +void SddpClient::modifyEventTypeStatusAsync(const ModifyEventTypeStatusRequest& request, const ModifyEventTypeStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyEventTypeStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::ModifyEventTypeStatusOutcomeCallable SddpClient::modifyEventTypeStatusCallable(const ModifyEventTypeStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyEventTypeStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::DescribeUserStatusOutcome SddpClient::describeUserStatus(const DescribeUserStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeUserStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeUserStatusOutcome(DescribeUserStatusResult(outcome.result())); + else + return DescribeUserStatusOutcome(outcome.error()); +} + +void SddpClient::describeUserStatusAsync(const DescribeUserStatusRequest& request, const DescribeUserStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeUserStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::DescribeUserStatusOutcomeCallable SddpClient::describeUserStatusCallable(const DescribeUserStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeUserStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/sddp/src/model/CreateConfigRequest.cc b/sddp/src/model/CreateConfigRequest.cc new file mode 100644 index 000000000..e82b6e020 --- /dev/null +++ b/sddp/src/model/CreateConfigRequest.cc @@ -0,0 +1,104 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sddp::Model::CreateConfigRequest; + +CreateConfigRequest::CreateConfigRequest() : + RpcServiceRequest("sddp", "2019-01-03", "CreateConfig") +{} + +CreateConfigRequest::~CreateConfigRequest() +{} + +std::string CreateConfigRequest::getCode()const +{ + return code_; +} + +void CreateConfigRequest::setCode(const std::string& code) +{ + code_ = code; + setCoreParameter("Code", code); +} + +std::string CreateConfigRequest::getSourceIp()const +{ + return sourceIp_; +} + +void CreateConfigRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +int CreateConfigRequest::getFeatureType()const +{ + return featureType_; +} + +void CreateConfigRequest::setFeatureType(int featureType) +{ + featureType_ = featureType; + setCoreParameter("FeatureType", std::to_string(featureType)); +} + +std::string CreateConfigRequest::getDescription()const +{ + return description_; +} + +void CreateConfigRequest::setDescription(const std::string& description) +{ + description_ = description; + setCoreParameter("Description", description); +} + +std::string CreateConfigRequest::getConfigList()const +{ + return configList_; +} + +void CreateConfigRequest::setConfigList(const std::string& configList) +{ + configList_ = configList; + setCoreParameter("ConfigList", configList); +} + +std::string CreateConfigRequest::getLang()const +{ + return lang_; +} + +void CreateConfigRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +std::string CreateConfigRequest::getValue()const +{ + return value_; +} + +void CreateConfigRequest::setValue(const std::string& value) +{ + value_ = value; + setCoreParameter("Value", value); +} + diff --git a/sddp/src/model/CreateConfigResult.cc b/sddp/src/model/CreateConfigResult.cc new file mode 100644 index 000000000..67c5f2c84 --- /dev/null +++ b/sddp/src/model/CreateConfigResult.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 +#include + +using namespace AlibabaCloud::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +CreateConfigResult::CreateConfigResult() : + ServiceResult() +{} + +CreateConfigResult::CreateConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateConfigResult::~CreateConfigResult() +{} + +void CreateConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/sddp/src/model/CreateDataLimitRequest.cc b/sddp/src/model/CreateDataLimitRequest.cc new file mode 100644 index 000000000..e792453de --- /dev/null +++ b/sddp/src/model/CreateDataLimitRequest.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::Sddp::Model::CreateDataLimitRequest; + +CreateDataLimitRequest::CreateDataLimitRequest() : + RpcServiceRequest("sddp", "2019-01-03", "CreateDataLimit") +{} + +CreateDataLimitRequest::~CreateDataLimitRequest() +{} + +std::string CreateDataLimitRequest::getPassword()const +{ + return password_; +} + +void CreateDataLimitRequest::setPassword(const std::string& password) +{ + password_ = password; + setCoreParameter("Password", password); +} + +std::string CreateDataLimitRequest::getSourceIp()const +{ + return sourceIp_; +} + +void CreateDataLimitRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string CreateDataLimitRequest::getConnector()const +{ + return connector_; +} + +void CreateDataLimitRequest::setConnector(const std::string& connector) +{ + connector_ = connector; + setCoreParameter("Connector", connector); +} + +std::string CreateDataLimitRequest::getDataLimitList()const +{ + return dataLimitList_; +} + +void CreateDataLimitRequest::setDataLimitList(const std::string& dataLimitList) +{ + dataLimitList_ = dataLimitList; + setCoreParameter("DataLimitList", dataLimitList); +} + +std::string CreateDataLimitRequest::getLang()const +{ + return lang_; +} + +void CreateDataLimitRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +int CreateDataLimitRequest::getResourceType()const +{ + return resourceType_; +} + +void CreateDataLimitRequest::setResourceType(int resourceType) +{ + resourceType_ = resourceType; + setCoreParameter("ResourceType", std::to_string(resourceType)); +} + +std::string CreateDataLimitRequest::getServiceRegionId()const +{ + return serviceRegionId_; +} + +void CreateDataLimitRequest::setServiceRegionId(const std::string& serviceRegionId) +{ + serviceRegionId_ = serviceRegionId; + setCoreParameter("ServiceRegionId", serviceRegionId); +} + +std::string CreateDataLimitRequest::getParentId()const +{ + return parentId_; +} + +void CreateDataLimitRequest::setParentId(const std::string& parentId) +{ + parentId_ = parentId; + setCoreParameter("ParentId", parentId); +} + +std::string CreateDataLimitRequest::getUserName()const +{ + return userName_; +} + +void CreateDataLimitRequest::setUserName(const std::string& userName) +{ + userName_ = userName; + setCoreParameter("UserName", userName); +} + diff --git a/sddp/src/model/CreateDataLimitResult.cc b/sddp/src/model/CreateDataLimitResult.cc new file mode 100644 index 000000000..975692936 --- /dev/null +++ b/sddp/src/model/CreateDataLimitResult.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 +#include + +using namespace AlibabaCloud::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +CreateDataLimitResult::CreateDataLimitResult() : + ServiceResult() +{} + +CreateDataLimitResult::CreateDataLimitResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDataLimitResult::~CreateDataLimitResult() +{} + +void CreateDataLimitResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/sddp/src/model/CreateRuleRequest.cc b/sddp/src/model/CreateRuleRequest.cc new file mode 100644 index 000000000..d29c17120 --- /dev/null +++ b/sddp/src/model/CreateRuleRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sddp::Model::CreateRuleRequest; + +CreateRuleRequest::CreateRuleRequest() : + RpcServiceRequest("sddp", "2019-01-03", "CreateRule") +{} + +CreateRuleRequest::~CreateRuleRequest() +{} + +std::string CreateRuleRequest::getSourceIp()const +{ + return sourceIp_; +} + +void CreateRuleRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +int CreateRuleRequest::getFeatureType()const +{ + return featureType_; +} + +void CreateRuleRequest::setFeatureType(int featureType) +{ + featureType_ = featureType; + setCoreParameter("FeatureType", std::to_string(featureType)); +} + +std::string CreateRuleRequest::getName()const +{ + return name_; +} + +void CreateRuleRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + +long CreateRuleRequest::getRiskLevelId()const +{ + return riskLevelId_; +} + +void CreateRuleRequest::setRiskLevelId(long riskLevelId) +{ + riskLevelId_ = riskLevelId; + setCoreParameter("RiskLevelId", std::to_string(riskLevelId)); +} + +std::string CreateRuleRequest::getLang()const +{ + return lang_; +} + +void CreateRuleRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +long CreateRuleRequest::getCustomType()const +{ + return customType_; +} + +void CreateRuleRequest::setCustomType(long customType) +{ + customType_ = customType; + setCoreParameter("CustomType", std::to_string(customType)); +} + +int CreateRuleRequest::getCategory()const +{ + return category_; +} + +void CreateRuleRequest::setCategory(int category) +{ + category_ = category; + setCoreParameter("Category", std::to_string(category)); +} + +std::string CreateRuleRequest::getContent()const +{ + return content_; +} + +void CreateRuleRequest::setContent(const std::string& content) +{ + content_ = content; + setCoreParameter("Content", content); +} + diff --git a/sddp/src/model/CreateRuleResult.cc b/sddp/src/model/CreateRuleResult.cc new file mode 100644 index 000000000..b54c9b88b --- /dev/null +++ b/sddp/src/model/CreateRuleResult.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 +#include + +using namespace AlibabaCloud::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +CreateRuleResult::CreateRuleResult() : + ServiceResult() +{} + +CreateRuleResult::CreateRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateRuleResult::~CreateRuleResult() +{} + +void CreateRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/sddp/src/model/CreateUserAuthRequest.cc b/sddp/src/model/CreateUserAuthRequest.cc new file mode 100644 index 000000000..d1192798c --- /dev/null +++ b/sddp/src/model/CreateUserAuthRequest.cc @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sddp::Model::CreateUserAuthRequest; + +CreateUserAuthRequest::CreateUserAuthRequest() : + RpcServiceRequest("sddp", "2019-01-03", "CreateUserAuth") +{} + +CreateUserAuthRequest::~CreateUserAuthRequest() +{} + +long CreateUserAuthRequest::getAccountId()const +{ + return accountId_; +} + +void CreateUserAuthRequest::setAccountId(long accountId) +{ + accountId_ = accountId; + setCoreParameter("AccountId", std::to_string(accountId)); +} + +std::string CreateUserAuthRequest::getSourceIp()const +{ + return sourceIp_; +} + +void CreateUserAuthRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string CreateUserAuthRequest::getAccessKey()const +{ + return accessKey_; +} + +void CreateUserAuthRequest::setAccessKey(const std::string& accessKey) +{ + accessKey_ = accessKey; + setCoreParameter("AccessKey", accessKey); +} + +std::string CreateUserAuthRequest::getAccessKeySecret()const +{ + return accessKeySecret_; +} + +void CreateUserAuthRequest::setAccessKeySecret(const std::string& accessKeySecret) +{ + accessKeySecret_ = accessKeySecret; + setCoreParameter("AccessKeySecret", accessKeySecret); +} + +std::string CreateUserAuthRequest::getLang()const +{ + return lang_; +} + +void CreateUserAuthRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + diff --git a/sddp/src/model/CreateUserAuthResult.cc b/sddp/src/model/CreateUserAuthResult.cc new file mode 100644 index 000000000..0f71bdf6f --- /dev/null +++ b/sddp/src/model/CreateUserAuthResult.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 +#include + +using namespace AlibabaCloud::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +CreateUserAuthResult::CreateUserAuthResult() : + ServiceResult() +{} + +CreateUserAuthResult::CreateUserAuthResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateUserAuthResult::~CreateUserAuthResult() +{} + +void CreateUserAuthResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/sddp/src/model/DeleteDataLimitRequest.cc b/sddp/src/model/DeleteDataLimitRequest.cc new file mode 100644 index 000000000..c66e7b22c --- /dev/null +++ b/sddp/src/model/DeleteDataLimitRequest.cc @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sddp::Model::DeleteDataLimitRequest; + +DeleteDataLimitRequest::DeleteDataLimitRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DeleteDataLimit") +{} + +DeleteDataLimitRequest::~DeleteDataLimitRequest() +{} + +std::string DeleteDataLimitRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DeleteDataLimitRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +int DeleteDataLimitRequest::getFeatureType()const +{ + return featureType_; +} + +void DeleteDataLimitRequest::setFeatureType(int featureType) +{ + featureType_ = featureType; + setCoreParameter("FeatureType", std::to_string(featureType)); +} + +long DeleteDataLimitRequest::getId()const +{ + return id_; +} + +void DeleteDataLimitRequest::setId(long id) +{ + id_ = id; + setCoreParameter("Id", std::to_string(id)); +} + +std::string DeleteDataLimitRequest::getLang()const +{ + return lang_; +} + +void DeleteDataLimitRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + diff --git a/sddp/src/model/DeleteDataLimitResult.cc b/sddp/src/model/DeleteDataLimitResult.cc new file mode 100644 index 000000000..673f74ec0 --- /dev/null +++ b/sddp/src/model/DeleteDataLimitResult.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 +#include + +using namespace AlibabaCloud::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +DeleteDataLimitResult::DeleteDataLimitResult() : + ServiceResult() +{} + +DeleteDataLimitResult::DeleteDataLimitResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteDataLimitResult::~DeleteDataLimitResult() +{} + +void DeleteDataLimitResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/sddp/src/model/DeleteRuleRequest.cc b/sddp/src/model/DeleteRuleRequest.cc new file mode 100644 index 000000000..49404650b --- /dev/null +++ b/sddp/src/model/DeleteRuleRequest.cc @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sddp::Model::DeleteRuleRequest; + +DeleteRuleRequest::DeleteRuleRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DeleteRule") +{} + +DeleteRuleRequest::~DeleteRuleRequest() +{} + +std::string DeleteRuleRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DeleteRuleRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +int DeleteRuleRequest::getFeatureType()const +{ + return featureType_; +} + +void DeleteRuleRequest::setFeatureType(int featureType) +{ + featureType_ = featureType; + setCoreParameter("FeatureType", std::to_string(featureType)); +} + +long DeleteRuleRequest::getId()const +{ + return id_; +} + +void DeleteRuleRequest::setId(long id) +{ + id_ = id; + setCoreParameter("Id", std::to_string(id)); +} + +std::string DeleteRuleRequest::getLang()const +{ + return lang_; +} + +void DeleteRuleRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + diff --git a/sddp/src/model/DeleteRuleResult.cc b/sddp/src/model/DeleteRuleResult.cc new file mode 100644 index 000000000..22f43007a --- /dev/null +++ b/sddp/src/model/DeleteRuleResult.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 +#include + +using namespace AlibabaCloud::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +DeleteRuleResult::DeleteRuleResult() : + ServiceResult() +{} + +DeleteRuleResult::DeleteRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteRuleResult::~DeleteRuleResult() +{} + +void DeleteRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/sddp/src/model/DescribeAccountDetailRequest.cc b/sddp/src/model/DescribeAccountDetailRequest.cc new file mode 100644 index 000000000..db7df465c --- /dev/null +++ b/sddp/src/model/DescribeAccountDetailRequest.cc @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sddp::Model::DescribeAccountDetailRequest; + +DescribeAccountDetailRequest::DescribeAccountDetailRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DescribeAccountDetail") +{} + +DescribeAccountDetailRequest::~DescribeAccountDetailRequest() +{} + +std::string DescribeAccountDetailRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeAccountDetailRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string DescribeAccountDetailRequest::getLang()const +{ + return lang_; +} + +void DescribeAccountDetailRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +long DescribeAccountDetailRequest::getUserId()const +{ + return userId_; +} + +void DescribeAccountDetailRequest::setUserId(long userId) +{ + userId_ = userId; + setCoreParameter("UserId", std::to_string(userId)); +} + +long DescribeAccountDetailRequest::getAccountTypeId()const +{ + return accountTypeId_; +} + +void DescribeAccountDetailRequest::setAccountTypeId(long accountTypeId) +{ + accountTypeId_ = accountTypeId; + setCoreParameter("AccountTypeId", std::to_string(accountTypeId)); +} + diff --git a/sddp/src/model/DescribeAccountDetailResult.cc b/sddp/src/model/DescribeAccountDetailResult.cc new file mode 100644 index 000000000..136477fbe --- /dev/null +++ b/sddp/src/model/DescribeAccountDetailResult.cc @@ -0,0 +1,113 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +DescribeAccountDetailResult::DescribeAccountDetailResult() : + ServiceResult() +{} + +DescribeAccountDetailResult::DescribeAccountDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAccountDetailResult::~DescribeAccountDetailResult() +{} + +void DescribeAccountDetailResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto accountNode = value["Account"]; + if(!accountNode["Id"].isNull()) + account_.id = std::stol(accountNode["Id"].asString()); + if(!accountNode["UserId"].isNull()) + account_.userId = std::stol(accountNode["UserId"].asString()); + if(!accountNode["FirstLevelDepartId"].isNull()) + account_.firstLevelDepartId = std::stol(accountNode["FirstLevelDepartId"].asString()); + if(!accountNode["LoginName"].isNull()) + account_.loginName = accountNode["LoginName"].asString(); + if(!accountNode["FullName"].isNull()) + account_.fullName = accountNode["FullName"].asString(); + if(!accountNode["CellphoneNum"].isNull()) + account_.cellphoneNum = accountNode["CellphoneNum"].asString(); + if(!accountNode["TelephoneNum"].isNull()) + account_.telephoneNum = accountNode["TelephoneNum"].asString(); + if(!accountNode["Email"].isNull()) + account_.email = accountNode["Email"].asString(); + if(!accountNode["ActiveStatus"].isNull()) + account_.activeStatus = accountNode["ActiveStatus"].asString(); + if(!accountNode["DeleteStatus"].isNull()) + account_.deleteStatus = accountNode["DeleteStatus"].asString(); + if(!accountNode["DataInstance"].isNull()) + account_.dataInstance = accountNode["DataInstance"].asString(); + if(!accountNode["CreateTime"].isNull()) + account_.createTime = std::stol(accountNode["CreateTime"].asString()); + if(!accountNode["LoginDataTime"].isNull()) + account_.loginDataTime = std::stol(accountNode["LoginDataTime"].asString()); + if(!accountNode["LoginPolicyName"].isNull()) + account_.loginPolicyName = accountNode["LoginPolicyName"].asString(); + if(!accountNode["FirstLevelDepartName"].isNull()) + account_.firstLevelDepartName = accountNode["FirstLevelDepartName"].asString(); + if(!accountNode["RoleNames"].isNull()) + account_.roleNames = accountNode["RoleNames"].asString(); + if(!accountNode["AliUid"].isNull()) + account_.aliUid = std::stol(accountNode["AliUid"].asString()); + auto allPrivilegeList = value["PrivilegeList"]["Privilege"]; + for (auto value : allPrivilegeList) + { + Account::Privilege privilegeObject; + if(!value["ProductName"].isNull()) + privilegeObject.productName = value["ProductName"].asString(); + if(!value["UseAccountId"].isNull()) + privilegeObject.useAccountId = value["UseAccountId"].asString(); + if(!value["UseAccountType"].isNull()) + privilegeObject.useAccountType = std::stoi(value["UseAccountType"].asString()); + if(!value["UseAccountTypeName"].isNull()) + privilegeObject.useAccountTypeName = value["UseAccountTypeName"].asString(); + if(!value["UseAccountCreateTime"].isNull()) + privilegeObject.useAccountCreateTime = std::stol(value["UseAccountCreateTime"].asString()); + if(!value["UseAccountName"].isNull()) + privilegeObject.useAccountName = value["UseAccountName"].asString(); + account_.privilegeList.push_back(privilegeObject); + } + auto eventCountNode = accountNode["EventCount"]; + auto totalNode = eventCountNode["Total"]; + if(!totalNode["TotalCount"].isNull()) + account_.eventCount.total.totalCount = std::stol(totalNode["TotalCount"].asString()); + if(!totalNode["UndealCount"].isNull()) + account_.eventCount.total.undealCount = std::stol(totalNode["UndealCount"].asString()); + if(!totalNode["ConfirmCount"].isNull()) + account_.eventCount.total.confirmCount = std::stol(totalNode["ConfirmCount"].asString()); + if(!totalNode["ExcludeCount"].isNull()) + account_.eventCount.total.excludeCount = std::stol(totalNode["ExcludeCount"].asString()); + +} + +DescribeAccountDetailResult::Account DescribeAccountDetailResult::getAccount()const +{ + return account_; +} + diff --git a/sddp/src/model/DescribeAccountsRequest.cc b/sddp/src/model/DescribeAccountsRequest.cc new file mode 100644 index 000000000..581d3521d --- /dev/null +++ b/sddp/src/model/DescribeAccountsRequest.cc @@ -0,0 +1,192 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp::Model::DescribeAccountsRequest; + +DescribeAccountsRequest::DescribeAccountsRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DescribeAccounts") +{} + +DescribeAccountsRequest::~DescribeAccountsRequest() +{} + +std::string DescribeAccountsRequest::getProductCode()const +{ + return productCode_; +} + +void DescribeAccountsRequest::setProductCode(const std::string& productCode) +{ + productCode_ = productCode; + setCoreParameter("ProductCode", productCode); +} + +std::string DescribeAccountsRequest::getLoginName()const +{ + return loginName_; +} + +void DescribeAccountsRequest::setLoginName(const std::string& loginName) +{ + loginName_ = loginName; + setCoreParameter("LoginName", loginName); +} + +int DescribeAccountsRequest::getFeatureType()const +{ + return featureType_; +} + +void DescribeAccountsRequest::setFeatureType(int featureType) +{ + featureType_ = featureType; + setCoreParameter("FeatureType", std::to_string(featureType)); +} + +std::string DescribeAccountsRequest::getColumnId()const +{ + return columnId_; +} + +void DescribeAccountsRequest::setColumnId(const std::string& columnId) +{ + columnId_ = columnId; + setCoreParameter("ColumnId", columnId); +} + +std::string DescribeAccountsRequest::getPackageId()const +{ + return packageId_; +} + +void DescribeAccountsRequest::setPackageId(const std::string& packageId) +{ + packageId_ = packageId; + setCoreParameter("PackageId", packageId); +} + +int DescribeAccountsRequest::getCurrentPage()const +{ + return currentPage_; +} + +void DescribeAccountsRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setCoreParameter("CurrentPage", std::to_string(currentPage)); +} + +std::string DescribeAccountsRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeAccountsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string DescribeAccountsRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeAccountsRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +int DescribeAccountsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeAccountsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +long DescribeAccountsRequest::getDepartId()const +{ + return departId_; +} + +void DescribeAccountsRequest::setDepartId(long departId) +{ + departId_ = departId; + setCoreParameter("DepartId", std::to_string(departId)); +} + +int DescribeAccountsRequest::getOperationId()const +{ + return operationId_; +} + +void DescribeAccountsRequest::setOperationId(int operationId) +{ + operationId_ = operationId; + setCoreParameter("OperationId", std::to_string(operationId)); +} + +std::string DescribeAccountsRequest::getTableId()const +{ + return tableId_; +} + +void DescribeAccountsRequest::setTableId(const std::string& tableId) +{ + tableId_ = tableId; + setCoreParameter("TableId", tableId); +} + +std::string DescribeAccountsRequest::getLang()const +{ + return lang_; +} + +void DescribeAccountsRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +std::string DescribeAccountsRequest::getKey()const +{ + return key_; +} + +void DescribeAccountsRequest::setKey(const std::string& key) +{ + key_ = key; + setCoreParameter("Key", key); +} + +int DescribeAccountsRequest::getQueryType()const +{ + return queryType_; +} + +void DescribeAccountsRequest::setQueryType(int queryType) +{ + queryType_ = queryType; + setCoreParameter("QueryType", std::to_string(queryType)); +} + diff --git a/sddp/src/model/DescribeAccountsResult.cc b/sddp/src/model/DescribeAccountsResult.cc new file mode 100644 index 000000000..c1b7f90d0 --- /dev/null +++ b/sddp/src/model/DescribeAccountsResult.cc @@ -0,0 +1,125 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp; +using namespace AlibabaCloud::Sddp::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 allItems = value["Items"]["Account"]; + for (auto value : allItems) + { + Account itemsObject; + if(!value["Id"].isNull()) + itemsObject.id = std::stol(value["Id"].asString()); + if(!value["UserId"].isNull()) + itemsObject.userId = std::stol(value["UserId"].asString()); + if(!value["FirstLevelDepartId"].isNull()) + itemsObject.firstLevelDepartId = std::stol(value["FirstLevelDepartId"].asString()); + if(!value["LoginName"].isNull()) + itemsObject.loginName = value["LoginName"].asString(); + if(!value["FullName"].isNull()) + itemsObject.fullName = value["FullName"].asString(); + if(!value["CellphoneNum"].isNull()) + itemsObject.cellphoneNum = value["CellphoneNum"].asString(); + if(!value["TelephoneNum"].isNull()) + itemsObject.telephoneNum = value["TelephoneNum"].asString(); + if(!value["Email"].isNull()) + itemsObject.email = value["Email"].asString(); + if(!value["ActiveStatus"].isNull()) + itemsObject.activeStatus = value["ActiveStatus"].asString(); + if(!value["DeleteStatus"].isNull()) + itemsObject.deleteStatus = value["DeleteStatus"].asString(); + if(!value["DataInstance"].isNull()) + itemsObject.dataInstance = value["DataInstance"].asString(); + if(!value["CreateTime"].isNull()) + itemsObject.createTime = std::stol(value["CreateTime"].asString()); + if(!value["LoginDataTime"].isNull()) + itemsObject.loginDataTime = std::stol(value["LoginDataTime"].asString()); + if(!value["LoginPolicyName"].isNull()) + itemsObject.loginPolicyName = value["LoginPolicyName"].asString(); + if(!value["FirstLevelDepartName"].isNull()) + itemsObject.firstLevelDepartName = value["FirstLevelDepartName"].asString(); + if(!value["RoleNames"].isNull()) + itemsObject.roleNames = value["RoleNames"].asString(); + if(!value["InstanceName"].isNull()) + itemsObject.instanceName = value["InstanceName"].asString(); + if(!value["AliUid"].isNull()) + itemsObject.aliUid = std::stol(value["AliUid"].asString()); + if(!value["AccountTypeId"].isNull()) + itemsObject.accountTypeId = std::stol(value["AccountTypeId"].asString()); + auto eventCountNode = value["EventCount"]; + auto totalNode = eventCountNode["Total"]; + if(!totalNode["TotalCount"].isNull()) + itemsObject.eventCount.total.totalCount = std::stol(totalNode["TotalCount"].asString()); + if(!totalNode["UndealCount"].isNull()) + itemsObject.eventCount.total.undealCount = std::stol(totalNode["UndealCount"].asString()); + if(!totalNode["ConfirmCount"].isNull()) + itemsObject.eventCount.total.confirmCount = std::stol(totalNode["ConfirmCount"].asString()); + if(!totalNode["ExcludeCount"].isNull()) + itemsObject.eventCount.total.excludeCount = std::stol(totalNode["ExcludeCount"].asString()); + items_.push_back(itemsObject); + } + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["CurrentPage"].isNull()) + currentPage_ = std::stoi(value["CurrentPage"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeAccountsResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeAccountsResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeAccountsResult::getCurrentPage()const +{ + return currentPage_; +} + +std::vector DescribeAccountsResult::getItems()const +{ + return items_; +} + diff --git a/sddp/src/model/DescribeAuthAccountsRequest.cc b/sddp/src/model/DescribeAuthAccountsRequest.cc new file mode 100644 index 000000000..b63cdcee4 --- /dev/null +++ b/sddp/src/model/DescribeAuthAccountsRequest.cc @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sddp::Model::DescribeAuthAccountsRequest; + +DescribeAuthAccountsRequest::DescribeAuthAccountsRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DescribeAuthAccounts") +{} + +DescribeAuthAccountsRequest::~DescribeAuthAccountsRequest() +{} + +std::string DescribeAuthAccountsRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeAuthAccountsRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +int DescribeAuthAccountsRequest::getFeatureType()const +{ + return featureType_; +} + +void DescribeAuthAccountsRequest::setFeatureType(int featureType) +{ + featureType_ = featureType; + setCoreParameter("FeatureType", std::to_string(featureType)); +} + +int DescribeAuthAccountsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeAuthAccountsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +int DescribeAuthAccountsRequest::getCurrentPage()const +{ + return currentPage_; +} + +void DescribeAuthAccountsRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setCoreParameter("CurrentPage", std::to_string(currentPage)); +} + +std::string DescribeAuthAccountsRequest::getLang()const +{ + return lang_; +} + +void DescribeAuthAccountsRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + diff --git a/sddp/src/model/DescribeAuthAccountsResult.cc b/sddp/src/model/DescribeAuthAccountsResult.cc new file mode 100644 index 000000000..e8e561b9d --- /dev/null +++ b/sddp/src/model/DescribeAuthAccountsResult.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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +DescribeAuthAccountsResult::DescribeAuthAccountsResult() : + ServiceResult() +{} + +DescribeAuthAccountsResult::DescribeAuthAccountsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAuthAccountsResult::~DescribeAuthAccountsResult() +{} + +void DescribeAuthAccountsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["Account"]; + for (auto value : allItems) + { + Account itemsObject; + if(!value["Id"].isNull()) + itemsObject.id = std::stol(value["Id"].asString()); + if(!value["LoginName"].isNull()) + itemsObject.loginName = value["LoginName"].asString(); + if(!value["FullName"].isNull()) + itemsObject.fullName = value["FullName"].asString(); + if(!value["AuthLoginName"].isNull()) + itemsObject.authLoginName = value["AuthLoginName"].asString(); + if(!value["AuthFullName"].isNull()) + itemsObject.authFullName = value["AuthFullName"].asString(); + if(!value["AuthTime"].isNull()) + itemsObject.authTime = std::stol(value["AuthTime"].asString()); + items_.push_back(itemsObject); + } + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["CurrentPage"].isNull()) + currentPage_ = std::stoi(value["CurrentPage"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeAuthAccountsResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeAuthAccountsResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeAuthAccountsResult::getCurrentPage()const +{ + return currentPage_; +} + +std::vector DescribeAuthAccountsResult::getItems()const +{ + return items_; +} + diff --git a/sddp/src/model/DescribeCloudDatabasesRequest.cc b/sddp/src/model/DescribeCloudDatabasesRequest.cc new file mode 100644 index 000000000..f062ad356 --- /dev/null +++ b/sddp/src/model/DescribeCloudDatabasesRequest.cc @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sddp::Model::DescribeCloudDatabasesRequest; + +DescribeCloudDatabasesRequest::DescribeCloudDatabasesRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DescribeCloudDatabases") +{} + +DescribeCloudDatabasesRequest::~DescribeCloudDatabasesRequest() +{} + +std::string DescribeCloudDatabasesRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeCloudDatabasesRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string DescribeCloudDatabasesRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeCloudDatabasesRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string DescribeCloudDatabasesRequest::getLang()const +{ + return lang_; +} + +void DescribeCloudDatabasesRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +long DescribeCloudDatabasesRequest::getResourceType()const +{ + return resourceType_; +} + +void DescribeCloudDatabasesRequest::setResourceType(long resourceType) +{ + resourceType_ = resourceType; + setCoreParameter("ResourceType", std::to_string(resourceType)); +} + +std::string DescribeCloudDatabasesRequest::getServiceRegionId()const +{ + return serviceRegionId_; +} + +void DescribeCloudDatabasesRequest::setServiceRegionId(const std::string& serviceRegionId) +{ + serviceRegionId_ = serviceRegionId; + setCoreParameter("ServiceRegionId", serviceRegionId); +} + diff --git a/sddp/src/model/DescribeCloudDatabasesResult.cc b/sddp/src/model/DescribeCloudDatabasesResult.cc new file mode 100644 index 000000000..d9d66034e --- /dev/null +++ b/sddp/src/model/DescribeCloudDatabasesResult.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +DescribeCloudDatabasesResult::DescribeCloudDatabasesResult() : + ServiceResult() +{} + +DescribeCloudDatabasesResult::DescribeCloudDatabasesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCloudDatabasesResult::~DescribeCloudDatabasesResult() +{} + +void DescribeCloudDatabasesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allCloudDatabaseList = value["CloudDatabaseList"]["CloudDatabase"]; + for (auto value : allCloudDatabaseList) + { + CloudDatabase cloudDatabaseListObject; + if(!value["Engine"].isNull()) + cloudDatabaseListObject.engine = value["Engine"].asString(); + if(!value["Name"].isNull()) + cloudDatabaseListObject.name = value["Name"].asString(); + if(!value["InstanceId"].isNull()) + cloudDatabaseListObject.instanceId = value["InstanceId"].asString(); + cloudDatabaseList_.push_back(cloudDatabaseListObject); + } + +} + +std::vector DescribeCloudDatabasesResult::getCloudDatabaseList()const +{ + return cloudDatabaseList_; +} + diff --git a/sddp/src/model/DescribeCloudInstancesRequest.cc b/sddp/src/model/DescribeCloudInstancesRequest.cc new file mode 100644 index 000000000..4f0a10763 --- /dev/null +++ b/sddp/src/model/DescribeCloudInstancesRequest.cc @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sddp::Model::DescribeCloudInstancesRequest; + +DescribeCloudInstancesRequest::DescribeCloudInstancesRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DescribeCloudInstances") +{} + +DescribeCloudInstancesRequest::~DescribeCloudInstancesRequest() +{} + +std::string DescribeCloudInstancesRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeCloudInstancesRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string DescribeCloudInstancesRequest::getLang()const +{ + return lang_; +} + +void DescribeCloudInstancesRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +long DescribeCloudInstancesRequest::getResourceType()const +{ + return resourceType_; +} + +void DescribeCloudInstancesRequest::setResourceType(long resourceType) +{ + resourceType_ = resourceType; + setCoreParameter("ResourceType", std::to_string(resourceType)); +} + +std::string DescribeCloudInstancesRequest::getServiceRegionId()const +{ + return serviceRegionId_; +} + +void DescribeCloudInstancesRequest::setServiceRegionId(const std::string& serviceRegionId) +{ + serviceRegionId_ = serviceRegionId; + setCoreParameter("ServiceRegionId", serviceRegionId); +} + diff --git a/sddp/src/model/DescribeCloudInstancesResult.cc b/sddp/src/model/DescribeCloudInstancesResult.cc new file mode 100644 index 000000000..c9f4c76c4 --- /dev/null +++ b/sddp/src/model/DescribeCloudInstancesResult.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +DescribeCloudInstancesResult::DescribeCloudInstancesResult() : + ServiceResult() +{} + +DescribeCloudInstancesResult::DescribeCloudInstancesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCloudInstancesResult::~DescribeCloudInstancesResult() +{} + +void DescribeCloudInstancesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allCloudInstanceList = value["CloudInstanceList"]["CloudInstance"]; + for (auto value : allCloudInstanceList) + { + CloudInstance cloudInstanceListObject; + if(!value["Engine"].isNull()) + cloudInstanceListObject.engine = value["Engine"].asString(); + if(!value["Name"].isNull()) + cloudInstanceListObject.name = value["Name"].asString(); + if(!value["InstanceId"].isNull()) + cloudInstanceListObject.instanceId = value["InstanceId"].asString(); + cloudInstanceList_.push_back(cloudInstanceListObject); + } + +} + +std::vector DescribeCloudInstancesResult::getCloudInstanceList()const +{ + return cloudInstanceList_; +} + diff --git a/sddp/src/model/DescribeColumnsRequest.cc b/sddp/src/model/DescribeColumnsRequest.cc new file mode 100644 index 000000000..fa424f674 --- /dev/null +++ b/sddp/src/model/DescribeColumnsRequest.cc @@ -0,0 +1,137 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp::Model::DescribeColumnsRequest; + +DescribeColumnsRequest::DescribeColumnsRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DescribeColumns") +{} + +DescribeColumnsRequest::~DescribeColumnsRequest() +{} + +std::string DescribeColumnsRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeColumnsRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +int DescribeColumnsRequest::getFeatureType()const +{ + return featureType_; +} + +void DescribeColumnsRequest::setFeatureType(int featureType) +{ + featureType_ = featureType; + setCoreParameter("FeatureType", std::to_string(featureType)); +} + +std::string DescribeColumnsRequest::getRiskLevels()const +{ + return riskLevels_; +} + +void DescribeColumnsRequest::setRiskLevels(const std::string& riskLevels) +{ + riskLevels_ = riskLevels; + setCoreParameter("RiskLevels", riskLevels); +} + +std::string DescribeColumnsRequest::getName()const +{ + return name_; +} + +void DescribeColumnsRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + +int DescribeColumnsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeColumnsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +long DescribeColumnsRequest::getTableId()const +{ + return tableId_; +} + +void DescribeColumnsRequest::setTableId(long tableId) +{ + tableId_ = tableId; + setCoreParameter("TableId", std::to_string(tableId)); +} + +int DescribeColumnsRequest::getCurrentPage()const +{ + return currentPage_; +} + +void DescribeColumnsRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setCoreParameter("CurrentPage", std::to_string(currentPage)); +} + +std::string DescribeColumnsRequest::getQueryName()const +{ + return queryName_; +} + +void DescribeColumnsRequest::setQueryName(const std::string& queryName) +{ + queryName_ = queryName; + setCoreParameter("QueryName", queryName); +} + +std::string DescribeColumnsRequest::getLang()const +{ + return lang_; +} + +void DescribeColumnsRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +long DescribeColumnsRequest::getRuleId()const +{ + return ruleId_; +} + +void DescribeColumnsRequest::setRuleId(long ruleId) +{ + ruleId_ = ruleId; + setCoreParameter("RuleId", std::to_string(ruleId)); +} + diff --git a/sddp/src/model/DescribeColumnsResult.cc b/sddp/src/model/DescribeColumnsResult.cc new file mode 100644 index 000000000..025dc0c77 --- /dev/null +++ b/sddp/src/model/DescribeColumnsResult.cc @@ -0,0 +1,107 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sddp; +using namespace AlibabaCloud::Sddp::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 allItems = value["Items"]["Column"]; + for (auto value : allItems) + { + Column itemsObject; + if(!value["Id"].isNull()) + itemsObject.id = std::stol(value["Id"].asString()); + if(!value["Name"].isNull()) + itemsObject.name = value["Name"].asString(); + if(!value["InstanceId"].isNull()) + itemsObject.instanceId = std::stol(value["InstanceId"].asString()); + if(!value["TableId"].isNull()) + itemsObject.tableId = std::stol(value["TableId"].asString()); + if(!value["CreationTime"].isNull()) + itemsObject.creationTime = std::stol(value["CreationTime"].asString()); + if(!value["Sensitive"].isNull()) + itemsObject.sensitive = value["Sensitive"].asString() == "true"; + if(!value["ProductCode"].isNull()) + itemsObject.productCode = value["ProductCode"].asString(); + if(!value["DataType"].isNull()) + itemsObject.dataType = value["DataType"].asString(); + if(!value["OdpsRiskLevelValue"].isNull()) + itemsObject.odpsRiskLevelValue = std::stoi(value["OdpsRiskLevelValue"].asString()); + if(!value["OdpsRiskLevelName"].isNull()) + itemsObject.odpsRiskLevelName = value["OdpsRiskLevelName"].asString(); + if(!value["RiskLevelId"].isNull()) + itemsObject.riskLevelId = std::stol(value["RiskLevelId"].asString()); + if(!value["RiskLevelName"].isNull()) + itemsObject.riskLevelName = value["RiskLevelName"].asString(); + if(!value["RuleId"].isNull()) + itemsObject.ruleId = std::stol(value["RuleId"].asString()); + if(!value["RuleName"].isNull()) + itemsObject.ruleName = value["RuleName"].asString(); + if(!value["DepartName"].isNull()) + itemsObject.departName = value["DepartName"].asString(); + items_.push_back(itemsObject); + } + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["CurrentPage"].isNull()) + currentPage_ = std::stoi(value["CurrentPage"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeColumnsResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeColumnsResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeColumnsResult::getCurrentPage()const +{ + return currentPage_; +} + +std::vector DescribeColumnsResult::getItems()const +{ + return items_; +} + diff --git a/sddp/src/model/DescribeConfigsRequest.cc b/sddp/src/model/DescribeConfigsRequest.cc new file mode 100644 index 000000000..a292b8259 --- /dev/null +++ b/sddp/src/model/DescribeConfigsRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Sddp::Model::DescribeConfigsRequest; + +DescribeConfigsRequest::DescribeConfigsRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DescribeConfigs") +{} + +DescribeConfigsRequest::~DescribeConfigsRequest() +{} + +std::string DescribeConfigsRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeConfigsRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +int DescribeConfigsRequest::getFeatureType()const +{ + return featureType_; +} + +void DescribeConfigsRequest::setFeatureType(int featureType) +{ + featureType_ = featureType; + setCoreParameter("FeatureType", std::to_string(featureType)); +} + +std::string DescribeConfigsRequest::getLang()const +{ + return lang_; +} + +void DescribeConfigsRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + diff --git a/sddp/src/model/DescribeConfigsResult.cc b/sddp/src/model/DescribeConfigsResult.cc new file mode 100644 index 000000000..6e5042a20 --- /dev/null +++ b/sddp/src/model/DescribeConfigsResult.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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +DescribeConfigsResult::DescribeConfigsResult() : + ServiceResult() +{} + +DescribeConfigsResult::DescribeConfigsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeConfigsResult::~DescribeConfigsResult() +{} + +void DescribeConfigsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allConfigList = value["ConfigList"]["Config"]; + for (auto value : allConfigList) + { + Config configListObject; + if(!value["Id"].isNull()) + configListObject.id = std::stol(value["Id"].asString()); + if(!value["Code"].isNull()) + configListObject.code = std::stoi(value["Code"].asString()); + if(!value["Description"].isNull()) + configListObject.description = value["Description"].asString(); + if(!value["Value"].isNull()) + configListObject.value = std::stol(value["Value"].asString()); + if(!value["DefaultValue"].isNull()) + configListObject.defaultValue = value["DefaultValue"].asString(); + configList_.push_back(configListObject); + } + +} + +std::vector DescribeConfigsResult::getConfigList()const +{ + return configList_; +} + diff --git a/sddp/src/model/DescribeDataAssetsRequest.cc b/sddp/src/model/DescribeDataAssetsRequest.cc new file mode 100644 index 000000000..899ac2119 --- /dev/null +++ b/sddp/src/model/DescribeDataAssetsRequest.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::Sddp::Model::DescribeDataAssetsRequest; + +DescribeDataAssetsRequest::DescribeDataAssetsRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DescribeDataAssets") +{} + +DescribeDataAssetsRequest::~DescribeDataAssetsRequest() +{} + +int DescribeDataAssetsRequest::getRangeId()const +{ + return rangeId_; +} + +void DescribeDataAssetsRequest::setRangeId(int rangeId) +{ + rangeId_ = rangeId; + setCoreParameter("RangeId", std::to_string(rangeId)); +} + +std::string DescribeDataAssetsRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeDataAssetsRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +int DescribeDataAssetsRequest::getFeatureType()const +{ + return featureType_; +} + +void DescribeDataAssetsRequest::setFeatureType(int featureType) +{ + featureType_ = featureType; + setCoreParameter("FeatureType", std::to_string(featureType)); +} + +std::string DescribeDataAssetsRequest::getRiskLevels()const +{ + return riskLevels_; +} + +void DescribeDataAssetsRequest::setRiskLevels(const std::string& riskLevels) +{ + riskLevels_ = riskLevels; + setCoreParameter("RiskLevels", riskLevels); +} + +std::string DescribeDataAssetsRequest::getName()const +{ + return name_; +} + +void DescribeDataAssetsRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + +int DescribeDataAssetsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeDataAssetsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +int DescribeDataAssetsRequest::getCurrentPage()const +{ + return currentPage_; +} + +void DescribeDataAssetsRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setCoreParameter("CurrentPage", std::to_string(currentPage)); +} + +std::string DescribeDataAssetsRequest::getLang()const +{ + return lang_; +} + +void DescribeDataAssetsRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +long DescribeDataAssetsRequest::getRuleId()const +{ + return ruleId_; +} + +void DescribeDataAssetsRequest::setRuleId(long ruleId) +{ + ruleId_ = ruleId; + setCoreParameter("RuleId", std::to_string(ruleId)); +} + diff --git a/sddp/src/model/DescribeDataAssetsResult.cc b/sddp/src/model/DescribeDataAssetsResult.cc new file mode 100644 index 000000000..992b0cd2e --- /dev/null +++ b/sddp/src/model/DescribeDataAssetsResult.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +DescribeDataAssetsResult::DescribeDataAssetsResult() : + ServiceResult() +{} + +DescribeDataAssetsResult::DescribeDataAssetsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDataAssetsResult::~DescribeDataAssetsResult() +{} + +void DescribeDataAssetsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["Asset"]; + for (auto value : allItems) + { + Asset itemsObject; + if(!value["Id"].isNull()) + itemsObject.id = std::stol(value["Id"].asString()); + if(!value["Name"].isNull()) + itemsObject.name = value["Name"].asString(); + if(!value["Owner"].isNull()) + itemsObject.owner = value["Owner"].asString(); + if(!value["CreationTime"].isNull()) + itemsObject.creationTime = std::stol(value["CreationTime"].asString()); + if(!value["ProductId"].isNull()) + itemsObject.productId = value["ProductId"].asString(); + if(!value["ProductCode"].isNull()) + itemsObject.productCode = value["ProductCode"].asString(); + if(!value["Protection"].isNull()) + itemsObject.protection = value["Protection"].asString() == "true"; + if(!value["Labelsec"].isNull()) + itemsObject.labelsec = std::stoi(value["Labelsec"].asString()); + if(!value["OdpsRiskLevelName"].isNull()) + itemsObject.odpsRiskLevelName = value["OdpsRiskLevelName"].asString(); + if(!value["Sensitive"].isNull()) + itemsObject.sensitive = value["Sensitive"].asString() == "true"; + if(!value["RiskLevelId"].isNull()) + itemsObject.riskLevelId = std::stol(value["RiskLevelId"].asString()); + if(!value["RiskLevelName"].isNull()) + itemsObject.riskLevelName = value["RiskLevelName"].asString(); + if(!value["RuleName"].isNull()) + itemsObject.ruleName = value["RuleName"].asString(); + if(!value["DepartName"].isNull()) + itemsObject.departName = value["DepartName"].asString(); + if(!value["TotalCount"].isNull()) + itemsObject.totalCount = std::stoi(value["TotalCount"].asString()); + if(!value["SensitiveCount"].isNull()) + itemsObject.sensitiveCount = std::stoi(value["SensitiveCount"].asString()); + if(!value["Acl"].isNull()) + itemsObject.acl = value["Acl"].asString(); + if(!value["SensitiveRatio"].isNull()) + itemsObject.sensitiveRatio = value["SensitiveRatio"].asString(); + if(!value["DataType"].isNull()) + itemsObject.dataType = value["DataType"].asString(); + if(!value["ObjectKey"].isNull()) + itemsObject.objectKey = value["ObjectKey"].asString(); + items_.push_back(itemsObject); + } + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["CurrentPage"].isNull()) + currentPage_ = std::stoi(value["CurrentPage"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeDataAssetsResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeDataAssetsResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeDataAssetsResult::getCurrentPage()const +{ + return currentPage_; +} + +std::vector DescribeDataAssetsResult::getItems()const +{ + return items_; +} + diff --git a/sddp/src/model/DescribeDataHubConnectorsRequest.cc b/sddp/src/model/DescribeDataHubConnectorsRequest.cc new file mode 100644 index 000000000..ff21280c3 --- /dev/null +++ b/sddp/src/model/DescribeDataHubConnectorsRequest.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::Sddp::Model::DescribeDataHubConnectorsRequest; + +DescribeDataHubConnectorsRequest::DescribeDataHubConnectorsRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DescribeDataHubConnectors") +{} + +DescribeDataHubConnectorsRequest::~DescribeDataHubConnectorsRequest() +{} + +long DescribeDataHubConnectorsRequest::getTopicId()const +{ + return topicId_; +} + +void DescribeDataHubConnectorsRequest::setTopicId(long topicId) +{ + topicId_ = topicId; + setCoreParameter("TopicId", std::to_string(topicId)); +} + +std::string DescribeDataHubConnectorsRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeDataHubConnectorsRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +int DescribeDataHubConnectorsRequest::getFeatureType()const +{ + return featureType_; +} + +void DescribeDataHubConnectorsRequest::setFeatureType(int featureType) +{ + featureType_ = featureType; + setCoreParameter("FeatureType", std::to_string(featureType)); +} + +int DescribeDataHubConnectorsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeDataHubConnectorsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +long DescribeDataHubConnectorsRequest::getDepartId()const +{ + return departId_; +} + +void DescribeDataHubConnectorsRequest::setDepartId(long departId) +{ + departId_ = departId; + setCoreParameter("DepartId", std::to_string(departId)); +} + +int DescribeDataHubConnectorsRequest::getCurrentPage()const +{ + return currentPage_; +} + +void DescribeDataHubConnectorsRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setCoreParameter("CurrentPage", std::to_string(currentPage)); +} + +std::string DescribeDataHubConnectorsRequest::getLang()const +{ + return lang_; +} + +void DescribeDataHubConnectorsRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +long DescribeDataHubConnectorsRequest::getProjectId()const +{ + return projectId_; +} + +void DescribeDataHubConnectorsRequest::setProjectId(long projectId) +{ + projectId_ = projectId; + setCoreParameter("ProjectId", std::to_string(projectId)); +} + +std::string DescribeDataHubConnectorsRequest::getKey()const +{ + return key_; +} + +void DescribeDataHubConnectorsRequest::setKey(const std::string& key) +{ + key_ = key; + setCoreParameter("Key", key); +} + diff --git a/sddp/src/model/DescribeDataHubConnectorsResult.cc b/sddp/src/model/DescribeDataHubConnectorsResult.cc new file mode 100644 index 000000000..08bafd74f --- /dev/null +++ b/sddp/src/model/DescribeDataHubConnectorsResult.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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +DescribeDataHubConnectorsResult::DescribeDataHubConnectorsResult() : + ServiceResult() +{} + +DescribeDataHubConnectorsResult::DescribeDataHubConnectorsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDataHubConnectorsResult::~DescribeDataHubConnectorsResult() +{} + +void DescribeDataHubConnectorsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["Connector"]; + for (auto value : allItems) + { + Connector itemsObject; + if(!value["Id"].isNull()) + itemsObject.id = std::stol(value["Id"].asString()); + if(!value["Name"].isNull()) + itemsObject.name = value["Name"].asString(); + if(!value["Description"].isNull()) + itemsObject.description = value["Description"].asString(); + if(!value["CreationTime"].isNull()) + itemsObject.creationTime = std::stol(value["CreationTime"].asString()); + if(!value["ConnectorProduct"].isNull()) + itemsObject.connectorProduct = value["ConnectorProduct"].asString(); + if(!value["ConnectorPath"].isNull()) + itemsObject.connectorPath = value["ConnectorPath"].asString(); + if(!value["RiskLevelId"].isNull()) + itemsObject.riskLevelId = std::stol(value["RiskLevelId"].asString()); + if(!value["RiskLevelName"].isNull()) + itemsObject.riskLevelName = value["RiskLevelName"].asString(); + if(!value["UserId"].isNull()) + itemsObject.userId = std::stol(value["UserId"].asString()); + if(!value["LoginName"].isNull()) + itemsObject.loginName = value["LoginName"].asString(); + if(!value["DisplayName"].isNull()) + itemsObject.displayName = value["DisplayName"].asString(); + items_.push_back(itemsObject); + } + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["CurrentPage"].isNull()) + currentPage_ = std::stoi(value["CurrentPage"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeDataHubConnectorsResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeDataHubConnectorsResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeDataHubConnectorsResult::getCurrentPage()const +{ + return currentPage_; +} + +std::vector DescribeDataHubConnectorsResult::getItems()const +{ + return items_; +} + diff --git a/sddp/src/model/DescribeDataHubProjectsRequest.cc b/sddp/src/model/DescribeDataHubProjectsRequest.cc new file mode 100644 index 000000000..772812821 --- /dev/null +++ b/sddp/src/model/DescribeDataHubProjectsRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sddp::Model::DescribeDataHubProjectsRequest; + +DescribeDataHubProjectsRequest::DescribeDataHubProjectsRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DescribeDataHubProjects") +{} + +DescribeDataHubProjectsRequest::~DescribeDataHubProjectsRequest() +{} + +std::string DescribeDataHubProjectsRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeDataHubProjectsRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +int DescribeDataHubProjectsRequest::getFeatureType()const +{ + return featureType_; +} + +void DescribeDataHubProjectsRequest::setFeatureType(int featureType) +{ + featureType_ = featureType; + setCoreParameter("FeatureType", std::to_string(featureType)); +} + +int DescribeDataHubProjectsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeDataHubProjectsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +long DescribeDataHubProjectsRequest::getDepartId()const +{ + return departId_; +} + +void DescribeDataHubProjectsRequest::setDepartId(long departId) +{ + departId_ = departId; + setCoreParameter("DepartId", std::to_string(departId)); +} + +int DescribeDataHubProjectsRequest::getCurrentPage()const +{ + return currentPage_; +} + +void DescribeDataHubProjectsRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setCoreParameter("CurrentPage", std::to_string(currentPage)); +} + +std::string DescribeDataHubProjectsRequest::getLang()const +{ + return lang_; +} + +void DescribeDataHubProjectsRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +std::string DescribeDataHubProjectsRequest::getKey()const +{ + return key_; +} + +void DescribeDataHubProjectsRequest::setKey(const std::string& key) +{ + key_ = key; + setCoreParameter("Key", key); +} + +int DescribeDataHubProjectsRequest::getQueryType()const +{ + return queryType_; +} + +void DescribeDataHubProjectsRequest::setQueryType(int queryType) +{ + queryType_ = queryType; + setCoreParameter("QueryType", std::to_string(queryType)); +} + diff --git a/sddp/src/model/DescribeDataHubProjectsResult.cc b/sddp/src/model/DescribeDataHubProjectsResult.cc new file mode 100644 index 000000000..77ff2bad6 --- /dev/null +++ b/sddp/src/model/DescribeDataHubProjectsResult.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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +DescribeDataHubProjectsResult::DescribeDataHubProjectsResult() : + ServiceResult() +{} + +DescribeDataHubProjectsResult::DescribeDataHubProjectsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDataHubProjectsResult::~DescribeDataHubProjectsResult() +{} + +void DescribeDataHubProjectsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["Project"]; + for (auto value : allItems) + { + Project itemsObject; + if(!value["Id"].isNull()) + itemsObject.id = std::stol(value["Id"].asString()); + if(!value["Name"].isNull()) + itemsObject.name = value["Name"].asString(); + if(!value["Description"].isNull()) + itemsObject.description = value["Description"].asString(); + if(!value["CreationTime"].isNull()) + itemsObject.creationTime = std::stol(value["CreationTime"].asString()); + if(!value["TopicCount"].isNull()) + itemsObject.topicCount = value["TopicCount"].asString(); + if(!value["TopicTupleCount"].isNull()) + itemsObject.topicTupleCount = value["TopicTupleCount"].asString(); + if(!value["TopicBlobCount"].isNull()) + itemsObject.topicBlobCount = std::stol(value["TopicBlobCount"].asString()); + if(!value["UserId"].isNull()) + itemsObject.userId = std::stol(value["UserId"].asString()); + if(!value["LoginName"].isNull()) + itemsObject.loginName = value["LoginName"].asString(); + if(!value["DisplayName"].isNull()) + itemsObject.displayName = value["DisplayName"].asString(); + items_.push_back(itemsObject); + } + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["CurrentPage"].isNull()) + currentPage_ = std::stoi(value["CurrentPage"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeDataHubProjectsResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeDataHubProjectsResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeDataHubProjectsResult::getCurrentPage()const +{ + return currentPage_; +} + +std::vector DescribeDataHubProjectsResult::getItems()const +{ + return items_; +} + diff --git a/sddp/src/model/DescribeDataHubSubscriptionsRequest.cc b/sddp/src/model/DescribeDataHubSubscriptionsRequest.cc new file mode 100644 index 000000000..256d75397 --- /dev/null +++ b/sddp/src/model/DescribeDataHubSubscriptionsRequest.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::Sddp::Model::DescribeDataHubSubscriptionsRequest; + +DescribeDataHubSubscriptionsRequest::DescribeDataHubSubscriptionsRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DescribeDataHubSubscriptions") +{} + +DescribeDataHubSubscriptionsRequest::~DescribeDataHubSubscriptionsRequest() +{} + +long DescribeDataHubSubscriptionsRequest::getTopicId()const +{ + return topicId_; +} + +void DescribeDataHubSubscriptionsRequest::setTopicId(long topicId) +{ + topicId_ = topicId; + setCoreParameter("TopicId", std::to_string(topicId)); +} + +std::string DescribeDataHubSubscriptionsRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeDataHubSubscriptionsRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +int DescribeDataHubSubscriptionsRequest::getFeatureType()const +{ + return featureType_; +} + +void DescribeDataHubSubscriptionsRequest::setFeatureType(int featureType) +{ + featureType_ = featureType; + setCoreParameter("FeatureType", std::to_string(featureType)); +} + +int DescribeDataHubSubscriptionsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeDataHubSubscriptionsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +long DescribeDataHubSubscriptionsRequest::getDepartId()const +{ + return departId_; +} + +void DescribeDataHubSubscriptionsRequest::setDepartId(long departId) +{ + departId_ = departId; + setCoreParameter("DepartId", std::to_string(departId)); +} + +int DescribeDataHubSubscriptionsRequest::getCurrentPage()const +{ + return currentPage_; +} + +void DescribeDataHubSubscriptionsRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setCoreParameter("CurrentPage", std::to_string(currentPage)); +} + +std::string DescribeDataHubSubscriptionsRequest::getLang()const +{ + return lang_; +} + +void DescribeDataHubSubscriptionsRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +long DescribeDataHubSubscriptionsRequest::getProjectId()const +{ + return projectId_; +} + +void DescribeDataHubSubscriptionsRequest::setProjectId(long projectId) +{ + projectId_ = projectId; + setCoreParameter("ProjectId", std::to_string(projectId)); +} + +std::string DescribeDataHubSubscriptionsRequest::getKey()const +{ + return key_; +} + +void DescribeDataHubSubscriptionsRequest::setKey(const std::string& key) +{ + key_ = key; + setCoreParameter("Key", key); +} + diff --git a/sddp/src/model/DescribeDataHubSubscriptionsResult.cc b/sddp/src/model/DescribeDataHubSubscriptionsResult.cc new file mode 100644 index 000000000..d1d854ffc --- /dev/null +++ b/sddp/src/model/DescribeDataHubSubscriptionsResult.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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +DescribeDataHubSubscriptionsResult::DescribeDataHubSubscriptionsResult() : + ServiceResult() +{} + +DescribeDataHubSubscriptionsResult::DescribeDataHubSubscriptionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDataHubSubscriptionsResult::~DescribeDataHubSubscriptionsResult() +{} + +void DescribeDataHubSubscriptionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["Subscription"]; + for (auto value : allItems) + { + Subscription itemsObject; + if(!value["Id"].isNull()) + itemsObject.id = std::stol(value["Id"].asString()); + if(!value["Name"].isNull()) + itemsObject.name = value["Name"].asString(); + if(!value["Description"].isNull()) + itemsObject.description = value["Description"].asString(); + if(!value["CreationTime"].isNull()) + itemsObject.creationTime = std::stol(value["CreationTime"].asString()); + if(!value["State"].isNull()) + itemsObject.state = value["State"].asString(); + if(!value["ApplicationName"].isNull()) + itemsObject.applicationName = value["ApplicationName"].asString(); + if(!value["UserId"].isNull()) + itemsObject.userId = std::stol(value["UserId"].asString()); + if(!value["LoginName"].isNull()) + itemsObject.loginName = value["LoginName"].asString(); + if(!value["DisplayName"].isNull()) + itemsObject.displayName = value["DisplayName"].asString(); + if(!value["SubscriptionUserId"].isNull()) + itemsObject.subscriptionUserId = std::stol(value["SubscriptionUserId"].asString()); + if(!value["SubscriptionUserName"].isNull()) + itemsObject.subscriptionUserName = value["SubscriptionUserName"].asString(); + if(!value["SubscriptionDisplayName"].isNull()) + itemsObject.subscriptionDisplayName = value["SubscriptionDisplayName"].asString(); + items_.push_back(itemsObject); + } + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["CurrentPage"].isNull()) + currentPage_ = std::stoi(value["CurrentPage"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeDataHubSubscriptionsResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeDataHubSubscriptionsResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeDataHubSubscriptionsResult::getCurrentPage()const +{ + return currentPage_; +} + +std::vector DescribeDataHubSubscriptionsResult::getItems()const +{ + return items_; +} + diff --git a/sddp/src/model/DescribeDataHubTopicsRequest.cc b/sddp/src/model/DescribeDataHubTopicsRequest.cc new file mode 100644 index 000000000..dc7467b2c --- /dev/null +++ b/sddp/src/model/DescribeDataHubTopicsRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sddp::Model::DescribeDataHubTopicsRequest; + +DescribeDataHubTopicsRequest::DescribeDataHubTopicsRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DescribeDataHubTopics") +{} + +DescribeDataHubTopicsRequest::~DescribeDataHubTopicsRequest() +{} + +std::string DescribeDataHubTopicsRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeDataHubTopicsRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +int DescribeDataHubTopicsRequest::getFeatureType()const +{ + return featureType_; +} + +void DescribeDataHubTopicsRequest::setFeatureType(int featureType) +{ + featureType_ = featureType; + setCoreParameter("FeatureType", std::to_string(featureType)); +} + +int DescribeDataHubTopicsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeDataHubTopicsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +long DescribeDataHubTopicsRequest::getDepartId()const +{ + return departId_; +} + +void DescribeDataHubTopicsRequest::setDepartId(long departId) +{ + departId_ = departId; + setCoreParameter("DepartId", std::to_string(departId)); +} + +int DescribeDataHubTopicsRequest::getCurrentPage()const +{ + return currentPage_; +} + +void DescribeDataHubTopicsRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setCoreParameter("CurrentPage", std::to_string(currentPage)); +} + +std::string DescribeDataHubTopicsRequest::getLang()const +{ + return lang_; +} + +void DescribeDataHubTopicsRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +long DescribeDataHubTopicsRequest::getProjectId()const +{ + return projectId_; +} + +void DescribeDataHubTopicsRequest::setProjectId(long projectId) +{ + projectId_ = projectId; + setCoreParameter("ProjectId", std::to_string(projectId)); +} + +std::string DescribeDataHubTopicsRequest::getKey()const +{ + return key_; +} + +void DescribeDataHubTopicsRequest::setKey(const std::string& key) +{ + key_ = key; + setCoreParameter("Key", key); +} + diff --git a/sddp/src/model/DescribeDataHubTopicsResult.cc b/sddp/src/model/DescribeDataHubTopicsResult.cc new file mode 100644 index 000000000..b7efa6380 --- /dev/null +++ b/sddp/src/model/DescribeDataHubTopicsResult.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +DescribeDataHubTopicsResult::DescribeDataHubTopicsResult() : + ServiceResult() +{} + +DescribeDataHubTopicsResult::DescribeDataHubTopicsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDataHubTopicsResult::~DescribeDataHubTopicsResult() +{} + +void DescribeDataHubTopicsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["Topic"]; + for (auto value : allItems) + { + Topic itemsObject; + if(!value["Id"].isNull()) + itemsObject.id = std::stol(value["Id"].asString()); + if(!value["Name"].isNull()) + itemsObject.name = value["Name"].asString(); + if(!value["Description"].isNull()) + itemsObject.description = value["Description"].asString(); + if(!value["CreationTime"].isNull()) + itemsObject.creationTime = std::stol(value["CreationTime"].asString()); + if(!value["RecordType"].isNull()) + itemsObject.recordType = value["RecordType"].asString(); + if(!value["LifeCycle"].isNull()) + itemsObject.lifeCycle = std::stoi(value["LifeCycle"].asString()); + if(!value["UserId"].isNull()) + itemsObject.userId = std::stol(value["UserId"].asString()); + if(!value["LoginName"].isNull()) + itemsObject.loginName = value["LoginName"].asString(); + if(!value["DisplayName"].isNull()) + itemsObject.displayName = value["DisplayName"].asString(); + items_.push_back(itemsObject); + } + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["CurrentPage"].isNull()) + currentPage_ = std::stoi(value["CurrentPage"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeDataHubTopicsResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeDataHubTopicsResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeDataHubTopicsResult::getCurrentPage()const +{ + return currentPage_; +} + +std::vector DescribeDataHubTopicsResult::getItems()const +{ + return items_; +} + diff --git a/sddp/src/model/DescribeDataLimitDetailRequest.cc b/sddp/src/model/DescribeDataLimitDetailRequest.cc new file mode 100644 index 000000000..568009515 --- /dev/null +++ b/sddp/src/model/DescribeDataLimitDetailRequest.cc @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sddp::Model::DescribeDataLimitDetailRequest; + +DescribeDataLimitDetailRequest::DescribeDataLimitDetailRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DescribeDataLimitDetail") +{} + +DescribeDataLimitDetailRequest::~DescribeDataLimitDetailRequest() +{} + +std::string DescribeDataLimitDetailRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeDataLimitDetailRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +long DescribeDataLimitDetailRequest::getId()const +{ + return id_; +} + +void DescribeDataLimitDetailRequest::setId(long id) +{ + id_ = id; + setCoreParameter("Id", std::to_string(id)); +} + +int DescribeDataLimitDetailRequest::getNetworkType()const +{ + return networkType_; +} + +void DescribeDataLimitDetailRequest::setNetworkType(int networkType) +{ + networkType_ = networkType; + setCoreParameter("NetworkType", std::to_string(networkType)); +} + +std::string DescribeDataLimitDetailRequest::getLang()const +{ + return lang_; +} + +void DescribeDataLimitDetailRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + diff --git a/sddp/src/model/DescribeDataLimitDetailResult.cc b/sddp/src/model/DescribeDataLimitDetailResult.cc new file mode 100644 index 000000000..0ac82e3d9 --- /dev/null +++ b/sddp/src/model/DescribeDataLimitDetailResult.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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +DescribeDataLimitDetailResult::DescribeDataLimitDetailResult() : + ServiceResult() +{} + +DescribeDataLimitDetailResult::DescribeDataLimitDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDataLimitDetailResult::~DescribeDataLimitDetailResult() +{} + +void DescribeDataLimitDetailResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto dataLimitNode = value["DataLimit"]; + if(!dataLimitNode["RegionId"].isNull()) + dataLimit_.regionId = dataLimitNode["RegionId"].asString(); + if(!dataLimitNode["LocalName"].isNull()) + dataLimit_.localName = dataLimitNode["LocalName"].asString(); + if(!dataLimitNode["ParentId"].isNull()) + dataLimit_.parentId = dataLimitNode["ParentId"].asString(); + if(!dataLimitNode["Id"].isNull()) + dataLimit_.id = std::stol(dataLimitNode["Id"].asString()); + if(!dataLimitNode["UserName"].isNull()) + dataLimit_.userName = dataLimitNode["UserName"].asString(); + if(!dataLimitNode["GmtCreate"].isNull()) + dataLimit_.gmtCreate = std::stol(dataLimitNode["GmtCreate"].asString()); + if(!dataLimitNode["Connector"].isNull()) + dataLimit_.connector = dataLimitNode["Connector"].asString(); + if(!dataLimitNode["CheckStatus"].isNull()) + dataLimit_.checkStatus = std::stoi(dataLimitNode["CheckStatus"].asString()); + if(!dataLimitNode["CheckStatusName"].isNull()) + dataLimit_.checkStatusName = dataLimitNode["CheckStatusName"].asString(); + +} + +DescribeDataLimitDetailResult::DataLimit DescribeDataLimitDetailResult::getDataLimit()const +{ + return dataLimit_; +} + diff --git a/sddp/src/model/DescribeDataLimitsRequest.cc b/sddp/src/model/DescribeDataLimitsRequest.cc new file mode 100644 index 000000000..56a48e824 --- /dev/null +++ b/sddp/src/model/DescribeDataLimitsRequest.cc @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sddp::Model::DescribeDataLimitsRequest; + +DescribeDataLimitsRequest::DescribeDataLimitsRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DescribeDataLimits") +{} + +DescribeDataLimitsRequest::~DescribeDataLimitsRequest() +{} + +std::string DescribeDataLimitsRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeDataLimitsRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string DescribeDataLimitsRequest::getLang()const +{ + return lang_; +} + +void DescribeDataLimitsRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +int DescribeDataLimitsRequest::getResourceType()const +{ + return resourceType_; +} + +void DescribeDataLimitsRequest::setResourceType(int resourceType) +{ + resourceType_ = resourceType; + setCoreParameter("ResourceType", std::to_string(resourceType)); +} + +std::string DescribeDataLimitsRequest::getParentId()const +{ + return parentId_; +} + +void DescribeDataLimitsRequest::setParentId(const std::string& parentId) +{ + parentId_ = parentId; + setCoreParameter("ParentId", parentId); +} + diff --git a/sddp/src/model/DescribeDataLimitsResult.cc b/sddp/src/model/DescribeDataLimitsResult.cc new file mode 100644 index 000000000..97e8da4e1 --- /dev/null +++ b/sddp/src/model/DescribeDataLimitsResult.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +DescribeDataLimitsResult::DescribeDataLimitsResult() : + ServiceResult() +{} + +DescribeDataLimitsResult::DescribeDataLimitsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDataLimitsResult::~DescribeDataLimitsResult() +{} + +void DescribeDataLimitsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allDataLimitList = value["DataLimitList"]["DataLimit"]; + for (auto value : allDataLimitList) + { + DataLimit dataLimitListObject; + if(!value["RegionId"].isNull()) + dataLimitListObject.regionId = value["RegionId"].asString(); + if(!value["LocalName"].isNull()) + dataLimitListObject.localName = value["LocalName"].asString(); + if(!value["ParentId"].isNull()) + dataLimitListObject.parentId = value["ParentId"].asString(); + if(!value["Id"].isNull()) + dataLimitListObject.id = std::stol(value["Id"].asString()); + if(!value["UserName"].isNull()) + dataLimitListObject.userName = value["UserName"].asString(); + if(!value["GmtCreate"].isNull()) + dataLimitListObject.gmtCreate = std::stol(value["GmtCreate"].asString()); + if(!value["Connector"].isNull()) + dataLimitListObject.connector = value["Connector"].asString(); + if(!value["CheckStatus"].isNull()) + dataLimitListObject.checkStatus = std::stoi(value["CheckStatus"].asString()); + if(!value["CheckStatusName"].isNull()) + dataLimitListObject.checkStatusName = value["CheckStatusName"].asString(); + dataLimitList_.push_back(dataLimitListObject); + } + +} + +std::vector DescribeDataLimitsResult::getDataLimitList()const +{ + return dataLimitList_; +} + diff --git a/sddp/src/model/DescribeDepartsRequest.cc b/sddp/src/model/DescribeDepartsRequest.cc new file mode 100644 index 000000000..1379d49b1 --- /dev/null +++ b/sddp/src/model/DescribeDepartsRequest.cc @@ -0,0 +1,104 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sddp::Model::DescribeDepartsRequest; + +DescribeDepartsRequest::DescribeDepartsRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DescribeDeparts") +{} + +DescribeDepartsRequest::~DescribeDepartsRequest() +{} + +std::string DescribeDepartsRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeDepartsRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +int DescribeDepartsRequest::getFeatureType()const +{ + return featureType_; +} + +void DescribeDepartsRequest::setFeatureType(int featureType) +{ + featureType_ = featureType; + setCoreParameter("FeatureType", std::to_string(featureType)); +} + +int DescribeDepartsRequest::getAccountType()const +{ + return accountType_; +} + +void DescribeDepartsRequest::setAccountType(int accountType) +{ + accountType_ = accountType; + setCoreParameter("AccountType", std::to_string(accountType)); +} + +int DescribeDepartsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeDepartsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +int DescribeDepartsRequest::getCurrentPage()const +{ + return currentPage_; +} + +void DescribeDepartsRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setCoreParameter("CurrentPage", std::to_string(currentPage)); +} + +std::string DescribeDepartsRequest::getLang()const +{ + return lang_; +} + +void DescribeDepartsRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +std::string DescribeDepartsRequest::getKey()const +{ + return key_; +} + +void DescribeDepartsRequest::setKey(const std::string& key) +{ + key_ = key; + setCoreParameter("Key", key); +} + diff --git a/sddp/src/model/DescribeDepartsResult.cc b/sddp/src/model/DescribeDepartsResult.cc new file mode 100644 index 000000000..2bc465d68 --- /dev/null +++ b/sddp/src/model/DescribeDepartsResult.cc @@ -0,0 +1,91 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +DescribeDepartsResult::DescribeDepartsResult() : + ServiceResult() +{} + +DescribeDepartsResult::DescribeDepartsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDepartsResult::~DescribeDepartsResult() +{} + +void DescribeDepartsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["Depart"]; + for (auto value : allItems) + { + Depart itemsObject; + if(!value["Id"].isNull()) + itemsObject.id = std::stol(value["Id"].asString()); + if(!value["DepartId"].isNull()) + itemsObject.departId = std::stol(value["DepartId"].asString()); + if(!value["DepartName"].isNull()) + itemsObject.departName = value["DepartName"].asString(); + if(!value["Comment"].isNull()) + itemsObject.comment = value["Comment"].asString(); + if(!value["ParentDepartId"].isNull()) + itemsObject.parentDepartId = std::stol(value["ParentDepartId"].asString()); + if(!value["ParentDepartName"].isNull()) + itemsObject.parentDepartName = value["ParentDepartName"].asString(); + if(!value["Level"].isNull()) + itemsObject.level = std::stoi(value["Level"].asString()); + items_.push_back(itemsObject); + } + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["CurrentPage"].isNull()) + currentPage_ = std::stoi(value["CurrentPage"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeDepartsResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeDepartsResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeDepartsResult::getCurrentPage()const +{ + return currentPage_; +} + +std::vector DescribeDepartsResult::getItems()const +{ + return items_; +} + diff --git a/sddp/src/model/DescribeEventDetailRequest.cc b/sddp/src/model/DescribeEventDetailRequest.cc new file mode 100644 index 000000000..2b9ba1c51 --- /dev/null +++ b/sddp/src/model/DescribeEventDetailRequest.cc @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sddp::Model::DescribeEventDetailRequest; + +DescribeEventDetailRequest::DescribeEventDetailRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DescribeEventDetail") +{} + +DescribeEventDetailRequest::~DescribeEventDetailRequest() +{} + +std::string DescribeEventDetailRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeEventDetailRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +long DescribeEventDetailRequest::getFeatureType()const +{ + return featureType_; +} + +void DescribeEventDetailRequest::setFeatureType(long featureType) +{ + featureType_ = featureType; + setCoreParameter("FeatureType", std::to_string(featureType)); +} + +long DescribeEventDetailRequest::getId()const +{ + return id_; +} + +void DescribeEventDetailRequest::setId(long id) +{ + id_ = id; + setCoreParameter("Id", std::to_string(id)); +} + +std::string DescribeEventDetailRequest::getLang()const +{ + return lang_; +} + +void DescribeEventDetailRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + diff --git a/sddp/src/model/DescribeEventDetailResult.cc b/sddp/src/model/DescribeEventDetailResult.cc new file mode 100644 index 000000000..635f1f98d --- /dev/null +++ b/sddp/src/model/DescribeEventDetailResult.cc @@ -0,0 +1,123 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +DescribeEventDetailResult::DescribeEventDetailResult() : + ServiceResult() +{} + +DescribeEventDetailResult::DescribeEventDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeEventDetailResult::~DescribeEventDetailResult() +{} + +void DescribeEventDetailResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto eventNode = value["Event"]; + if(!eventNode["Id"].isNull()) + event_.id = std::stol(eventNode["Id"].asString()); + if(!eventNode["UserId"].isNull()) + event_.userId = std::stol(eventNode["UserId"].asString()); + if(!eventNode["LoginName"].isNull()) + event_.loginName = eventNode["LoginName"].asString(); + if(!eventNode["DisplayName"].isNull()) + event_.displayName = eventNode["DisplayName"].asString(); + if(!eventNode["ProductCode"].isNull()) + event_.productCode = eventNode["ProductCode"].asString(); + if(!eventNode["TypeCode"].isNull()) + event_.typeCode = eventNode["TypeCode"].asString(); + if(!eventNode["TypeName"].isNull()) + event_.typeName = eventNode["TypeName"].asString(); + if(!eventNode["TelephoneNum"].isNull()) + event_.telephoneNum = eventNode["TelephoneNum"].asString(); + if(!eventNode["SubTypeCode"].isNull()) + event_.subTypeCode = eventNode["SubTypeCode"].asString(); + if(!eventNode["SubTypeName"].isNull()) + event_.subTypeName = eventNode["SubTypeName"].asString(); + if(!eventNode["AlertTime"].isNull()) + event_.alertTime = std::stol(eventNode["AlertTime"].asString()); + if(!eventNode["DataInstance"].isNull()) + event_.dataInstance = eventNode["DataInstance"].asString(); + if(!eventNode["EventTime"].isNull()) + event_.eventTime = std::stol(eventNode["EventTime"].asString()); + if(!eventNode["Status"].isNull()) + event_.status = std::stoi(eventNode["Status"].asString()); + if(!eventNode["StatusName"].isNull()) + event_.statusName = eventNode["StatusName"].asString(); + if(!eventNode["DealUserId"].isNull()) + event_.dealUserId = std::stol(eventNode["DealUserId"].asString()); + if(!eventNode["DealLoginName"].isNull()) + event_.dealLoginName = eventNode["DealLoginName"].asString(); + if(!eventNode["DealDisplayName"].isNull()) + event_.dealDisplayName = eventNode["DealDisplayName"].asString(); + if(!eventNode["DealTime"].isNull()) + event_.dealTime = std::stol(eventNode["DealTime"].asString()); + if(!eventNode["DepartName"].isNull()) + event_.departName = eventNode["DepartName"].asString(); + if(!eventNode["Backed"].isNull()) + event_.backed = eventNode["Backed"].asString() == "true"; + if(!eventNode["DealReason"].isNull()) + event_.dealReason = eventNode["DealReason"].asString(); + auto detailNode = eventNode["Detail"]; + auto allContent = value["Content"]["ContentItem"]; + for (auto value : allContent) + { + Event::Detail::ContentItem contentItemObject; + if(!value["Label"].isNull()) + contentItemObject.label = value["Label"].asString(); + if(!value["Value"].isNull()) + contentItemObject.value = value["Value"].asString(); + event_.detail.content.push_back(contentItemObject); + } + auto allChart = value["Chart"]["ChartItem"]; + for (auto value : allChart) + { + Event::Detail::ChartItem chartItemObject; + if(!value["Label"].isNull()) + chartItemObject.label = value["Label"].asString(); + if(!value["XLabel"].isNull()) + chartItemObject.xLabel = value["XLabel"].asString(); + if(!value["YLabel"].isNull()) + chartItemObject.yLabel = value["YLabel"].asString(); + auto dataNode = value["Data"]; + if(!dataNode["X"].isNull()) + chartItemObject.data.x = dataNode["X"].asString(); + if(!dataNode["Y"].isNull()) + chartItemObject.data.y = dataNode["Y"].asString(); + event_.detail.chart.push_back(chartItemObject); + } + +} + +DescribeEventDetailResult::Event DescribeEventDetailResult::getEvent()const +{ + return event_; +} + diff --git a/sddp/src/model/DescribeEventTypesRequest.cc b/sddp/src/model/DescribeEventTypesRequest.cc new file mode 100644 index 000000000..df8b78af2 --- /dev/null +++ b/sddp/src/model/DescribeEventTypesRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Sddp::Model::DescribeEventTypesRequest; + +DescribeEventTypesRequest::DescribeEventTypesRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DescribeEventTypes") +{} + +DescribeEventTypesRequest::~DescribeEventTypesRequest() +{} + +std::string DescribeEventTypesRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeEventTypesRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +long DescribeEventTypesRequest::getParentTypeId()const +{ + return parentTypeId_; +} + +void DescribeEventTypesRequest::setParentTypeId(long parentTypeId) +{ + parentTypeId_ = parentTypeId; + setCoreParameter("ParentTypeId", std::to_string(parentTypeId)); +} + +std::string DescribeEventTypesRequest::getLang()const +{ + return lang_; +} + +void DescribeEventTypesRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + diff --git a/sddp/src/model/DescribeEventTypesResult.cc b/sddp/src/model/DescribeEventTypesResult.cc new file mode 100644 index 000000000..262aa5e46 --- /dev/null +++ b/sddp/src/model/DescribeEventTypesResult.cc @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +DescribeEventTypesResult::DescribeEventTypesResult() : + ServiceResult() +{} + +DescribeEventTypesResult::DescribeEventTypesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeEventTypesResult::~DescribeEventTypesResult() +{} + +void DescribeEventTypesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allEventTypeList = value["EventTypeList"]["EventType"]; + for (auto value : allEventTypeList) + { + EventType eventTypeListObject; + if(!value["Id"].isNull()) + eventTypeListObject.id = std::stol(value["Id"].asString()); + if(!value["Name"].isNull()) + eventTypeListObject.name = value["Name"].asString(); + if(!value["Code"].isNull()) + eventTypeListObject.code = value["Code"].asString(); + if(!value["Description"].isNull()) + eventTypeListObject.description = value["Description"].asString(); + auto allSubTypeList = value["SubTypeList"]["SubType"]; + for (auto value : allSubTypeList) + { + EventType::SubType subTypeListObject; + if(!value["Id"].isNull()) + subTypeListObject.id = std::stol(value["Id"].asString()); + if(!value["Name"].isNull()) + subTypeListObject.name = value["Name"].asString(); + if(!value["Code"].isNull()) + subTypeListObject.code = value["Code"].asString(); + if(!value["Description"].isNull()) + subTypeListObject.description = value["Description"].asString(); + if(!value["Status"].isNull()) + subTypeListObject.status = std::stoi(value["Status"].asString()); + eventTypeListObject.subTypeList.push_back(subTypeListObject); + } + eventTypeList_.push_back(eventTypeListObject); + } + +} + +std::vector DescribeEventTypesResult::getEventTypeList()const +{ + return eventTypeList_; +} + diff --git a/sddp/src/model/DescribeEventsRequest.cc b/sddp/src/model/DescribeEventsRequest.cc new file mode 100644 index 000000000..251475f4b --- /dev/null +++ b/sddp/src/model/DescribeEventsRequest.cc @@ -0,0 +1,192 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp::Model::DescribeEventsRequest; + +DescribeEventsRequest::DescribeEventsRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DescribeEvents") +{} + +DescribeEventsRequest::~DescribeEventsRequest() +{} + +std::string DescribeEventsRequest::getProductCode()const +{ + return productCode_; +} + +void DescribeEventsRequest::setProductCode(const std::string& productCode) +{ + productCode_ = productCode; + setCoreParameter("ProductCode", productCode); +} + +int DescribeEventsRequest::getFeatureType()const +{ + return featureType_; +} + +void DescribeEventsRequest::setFeatureType(int featureType) +{ + featureType_ = featureType; + setCoreParameter("FeatureType", std::to_string(featureType)); +} + +std::string DescribeEventsRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeEventsRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +int DescribeEventsRequest::getCurrentPage()const +{ + return currentPage_; +} + +void DescribeEventsRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setCoreParameter("CurrentPage", std::to_string(currentPage)); +} + +std::string DescribeEventsRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeEventsRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +long DescribeEventsRequest::getUserId()const +{ + return userId_; +} + +void DescribeEventsRequest::setUserId(long userId) +{ + userId_ = userId; + setCoreParameter("UserId", std::to_string(userId)); +} + +std::string DescribeEventsRequest::getTypeCode()const +{ + return typeCode_; +} + +void DescribeEventsRequest::setTypeCode(const std::string& typeCode) +{ + typeCode_ = typeCode; + setCoreParameter("TypeCode", typeCode); +} + +std::string DescribeEventsRequest::getSubTypeCode()const +{ + return subTypeCode_; +} + +void DescribeEventsRequest::setSubTypeCode(const std::string& subTypeCode) +{ + subTypeCode_ = subTypeCode; + setCoreParameter("SubTypeCode", subTypeCode); +} + +std::string DescribeEventsRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeEventsRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string DescribeEventsRequest::getTargetProductCode()const +{ + return targetProductCode_; +} + +void DescribeEventsRequest::setTargetProductCode(const std::string& targetProductCode) +{ + targetProductCode_ = targetProductCode; + setCoreParameter("TargetProductCode", targetProductCode); +} + +int DescribeEventsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeEventsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +long DescribeEventsRequest::getDepartId()const +{ + return departId_; +} + +void DescribeEventsRequest::setDepartId(long departId) +{ + departId_ = departId; + setCoreParameter("DepartId", std::to_string(departId)); +} + +std::string DescribeEventsRequest::getLang()const +{ + return lang_; +} + +void DescribeEventsRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +std::string DescribeEventsRequest::getDealUserId()const +{ + return dealUserId_; +} + +void DescribeEventsRequest::setDealUserId(const std::string& dealUserId) +{ + dealUserId_ = dealUserId; + setCoreParameter("DealUserId", dealUserId); +} + +std::string DescribeEventsRequest::getStatus()const +{ + return status_; +} + +void DescribeEventsRequest::setStatus(const std::string& status) +{ + status_ = status; + setCoreParameter("Status", status); +} + diff --git a/sddp/src/model/DescribeEventsResult.cc b/sddp/src/model/DescribeEventsResult.cc new file mode 100644 index 000000000..3a90e7432 --- /dev/null +++ b/sddp/src/model/DescribeEventsResult.cc @@ -0,0 +1,119 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +DescribeEventsResult::DescribeEventsResult() : + ServiceResult() +{} + +DescribeEventsResult::DescribeEventsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeEventsResult::~DescribeEventsResult() +{} + +void DescribeEventsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["Event"]; + for (auto value : allItems) + { + Event itemsObject; + if(!value["Id"].isNull()) + itemsObject.id = std::stol(value["Id"].asString()); + if(!value["UserId"].isNull()) + itemsObject.userId = std::stol(value["UserId"].asString()); + if(!value["LoginName"].isNull()) + itemsObject.loginName = value["LoginName"].asString(); + if(!value["DisplayName"].isNull()) + itemsObject.displayName = value["DisplayName"].asString(); + if(!value["ProductCode"].isNull()) + itemsObject.productCode = value["ProductCode"].asString(); + if(!value["TargetProductCode"].isNull()) + itemsObject.targetProductCode = value["TargetProductCode"].asString(); + if(!value["TypeCode"].isNull()) + itemsObject.typeCode = value["TypeCode"].asString(); + if(!value["TypeName"].isNull()) + itemsObject.typeName = value["TypeName"].asString(); + if(!value["TelephoneNum"].isNull()) + itemsObject.telephoneNum = value["TelephoneNum"].asString(); + if(!value["SubTypeCode"].isNull()) + itemsObject.subTypeCode = value["SubTypeCode"].asString(); + if(!value["SubTypeName"].isNull()) + itemsObject.subTypeName = value["SubTypeName"].asString(); + if(!value["AlertTime"].isNull()) + itemsObject.alertTime = std::stol(value["AlertTime"].asString()); + if(!value["EventTime"].isNull()) + itemsObject.eventTime = std::stol(value["EventTime"].asString()); + if(!value["Status"].isNull()) + itemsObject.status = std::stoi(value["Status"].asString()); + if(!value["StatusName"].isNull()) + itemsObject.statusName = value["StatusName"].asString(); + if(!value["DealUserId"].isNull()) + itemsObject.dealUserId = std::stol(value["DealUserId"].asString()); + if(!value["DealLoginName"].isNull()) + itemsObject.dealLoginName = value["DealLoginName"].asString(); + if(!value["DealDisplayName"].isNull()) + itemsObject.dealDisplayName = value["DealDisplayName"].asString(); + if(!value["DealTime"].isNull()) + itemsObject.dealTime = std::stol(value["DealTime"].asString()); + if(!value["DepartName"].isNull()) + itemsObject.departName = value["DepartName"].asString(); + if(!value["Backed"].isNull()) + itemsObject.backed = value["Backed"].asString() == "true"; + items_.push_back(itemsObject); + } + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["CurrentPage"].isNull()) + currentPage_ = std::stoi(value["CurrentPage"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeEventsResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeEventsResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeEventsResult::getCurrentPage()const +{ + return currentPage_; +} + +std::vector DescribeEventsResult::getItems()const +{ + return items_; +} + diff --git a/sddp/src/model/DescribeInstancesRequest.cc b/sddp/src/model/DescribeInstancesRequest.cc new file mode 100644 index 000000000..5d57970d6 --- /dev/null +++ b/sddp/src/model/DescribeInstancesRequest.cc @@ -0,0 +1,159 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp::Model::DescribeInstancesRequest; + +DescribeInstancesRequest::DescribeInstancesRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DescribeInstances") +{} + +DescribeInstancesRequest::~DescribeInstancesRequest() +{} + +std::string DescribeInstancesRequest::getProductCode()const +{ + return productCode_; +} + +void DescribeInstancesRequest::setProductCode(const std::string& productCode) +{ + productCode_ = productCode; + setCoreParameter("ProductCode", productCode); +} + +std::string DescribeInstancesRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeInstancesRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +long DescribeInstancesRequest::getProductId()const +{ + return productId_; +} + +void DescribeInstancesRequest::setProductId(long productId) +{ + productId_ = productId; + setCoreParameter("ProductId", std::to_string(productId)); +} + +int DescribeInstancesRequest::getFeatureType()const +{ + return featureType_; +} + +void DescribeInstancesRequest::setFeatureType(int featureType) +{ + featureType_ = featureType; + setCoreParameter("FeatureType", std::to_string(featureType)); +} + +std::string DescribeInstancesRequest::getName()const +{ + return name_; +} + +void DescribeInstancesRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + +int DescribeInstancesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeInstancesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +int DescribeInstancesRequest::getCurrentPage()const +{ + return currentPage_; +} + +void DescribeInstancesRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setCoreParameter("CurrentPage", std::to_string(currentPage)); +} + +std::string DescribeInstancesRequest::getQueryName()const +{ + return queryName_; +} + +void DescribeInstancesRequest::setQueryName(const std::string& queryName) +{ + queryName_ = queryName; + setCoreParameter("QueryName", queryName); +} + +long DescribeInstancesRequest::getRiskLevelId()const +{ + return riskLevelId_; +} + +void DescribeInstancesRequest::setRiskLevelId(long riskLevelId) +{ + riskLevelId_ = riskLevelId; + setCoreParameter("RiskLevelId", std::to_string(riskLevelId)); +} + +std::string DescribeInstancesRequest::getLang()const +{ + return lang_; +} + +void DescribeInstancesRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +long DescribeInstancesRequest::getRuleId()const +{ + return ruleId_; +} + +void DescribeInstancesRequest::setRuleId(long ruleId) +{ + ruleId_ = ruleId; + setCoreParameter("RuleId", std::to_string(ruleId)); +} + +int DescribeInstancesRequest::getQueryType()const +{ + return queryType_; +} + +void DescribeInstancesRequest::setQueryType(int queryType) +{ + queryType_ = queryType; + setCoreParameter("QueryType", std::to_string(queryType)); +} + diff --git a/sddp/src/model/DescribeInstancesResult.cc b/sddp/src/model/DescribeInstancesResult.cc new file mode 100644 index 000000000..7776fe1e5 --- /dev/null +++ b/sddp/src/model/DescribeInstancesResult.cc @@ -0,0 +1,111 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +DescribeInstancesResult::DescribeInstancesResult() : + ServiceResult() +{} + +DescribeInstancesResult::DescribeInstancesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeInstancesResult::~DescribeInstancesResult() +{} + +void DescribeInstancesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["Instance"]; + for (auto value : allItems) + { + Instance itemsObject; + if(!value["Id"].isNull()) + itemsObject.id = std::stol(value["Id"].asString()); + if(!value["Name"].isNull()) + itemsObject.name = value["Name"].asString(); + if(!value["Owner"].isNull()) + itemsObject.owner = value["Owner"].asString(); + if(!value["CreationTime"].isNull()) + itemsObject.creationTime = std::stol(value["CreationTime"].asString()); + if(!value["ProductId"].isNull()) + itemsObject.productId = value["ProductId"].asString(); + if(!value["ProductCode"].isNull()) + itemsObject.productCode = value["ProductCode"].asString(); + if(!value["Protection"].isNull()) + itemsObject.protection = value["Protection"].asString() == "true"; + if(!value["Labelsec"].isNull()) + itemsObject.labelsec = std::stoi(value["Labelsec"].asString()); + if(!value["OdpsRiskLevelName"].isNull()) + itemsObject.odpsRiskLevelName = value["OdpsRiskLevelName"].asString(); + if(!value["Sensitive"].isNull()) + itemsObject.sensitive = value["Sensitive"].asString() == "true"; + if(!value["RiskLevelId"].isNull()) + itemsObject.riskLevelId = std::stol(value["RiskLevelId"].asString()); + if(!value["RiskLevelName"].isNull()) + itemsObject.riskLevelName = value["RiskLevelName"].asString(); + if(!value["RuleName"].isNull()) + itemsObject.ruleName = value["RuleName"].asString(); + if(!value["DepartName"].isNull()) + itemsObject.departName = value["DepartName"].asString(); + if(!value["TotalCount"].isNull()) + itemsObject.totalCount = std::stoi(value["TotalCount"].asString()); + if(!value["SensitiveCount"].isNull()) + itemsObject.sensitiveCount = std::stoi(value["SensitiveCount"].asString()); + if(!value["Acl"].isNull()) + itemsObject.acl = value["Acl"].asString(); + items_.push_back(itemsObject); + } + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["CurrentPage"].isNull()) + currentPage_ = std::stoi(value["CurrentPage"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeInstancesResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeInstancesResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeInstancesResult::getCurrentPage()const +{ + return currentPage_; +} + +std::vector DescribeInstancesResult::getItems()const +{ + return items_; +} + diff --git a/sddp/src/model/DescribeOssObjectDetailRequest.cc b/sddp/src/model/DescribeOssObjectDetailRequest.cc new file mode 100644 index 000000000..588879217 --- /dev/null +++ b/sddp/src/model/DescribeOssObjectDetailRequest.cc @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sddp::Model::DescribeOssObjectDetailRequest; + +DescribeOssObjectDetailRequest::DescribeOssObjectDetailRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DescribeOssObjectDetail") +{} + +DescribeOssObjectDetailRequest::~DescribeOssObjectDetailRequest() +{} + +std::string DescribeOssObjectDetailRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeOssObjectDetailRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +int DescribeOssObjectDetailRequest::getFeatureType()const +{ + return featureType_; +} + +void DescribeOssObjectDetailRequest::setFeatureType(int featureType) +{ + featureType_ = featureType; + setCoreParameter("FeatureType", std::to_string(featureType)); +} + +long DescribeOssObjectDetailRequest::getId()const +{ + return id_; +} + +void DescribeOssObjectDetailRequest::setId(long id) +{ + id_ = id; + setCoreParameter("Id", std::to_string(id)); +} + +std::string DescribeOssObjectDetailRequest::getLang()const +{ + return lang_; +} + +void DescribeOssObjectDetailRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + diff --git a/sddp/src/model/DescribeOssObjectDetailResult.cc b/sddp/src/model/DescribeOssObjectDetailResult.cc new file mode 100644 index 000000000..8deca0ff7 --- /dev/null +++ b/sddp/src/model/DescribeOssObjectDetailResult.cc @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +DescribeOssObjectDetailResult::DescribeOssObjectDetailResult() : + ServiceResult() +{} + +DescribeOssObjectDetailResult::DescribeOssObjectDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeOssObjectDetailResult::~DescribeOssObjectDetailResult() +{} + +void DescribeOssObjectDetailResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto ossObjectDetailNode = value["OssObjectDetail"]; + if(!ossObjectDetailNode["Name"].isNull()) + ossObjectDetail_.name = ossObjectDetailNode["Name"].asString(); + if(!ossObjectDetailNode["RegionId"].isNull()) + ossObjectDetail_.regionId = ossObjectDetailNode["RegionId"].asString(); + if(!ossObjectDetailNode["RiskLevelName"].isNull()) + ossObjectDetail_.riskLevelName = ossObjectDetailNode["RiskLevelName"].asString(); + if(!ossObjectDetailNode["BucketName"].isNull()) + ossObjectDetail_.bucketName = ossObjectDetailNode["BucketName"].asString(); + if(!ossObjectDetailNode["CategoryName"].isNull()) + ossObjectDetail_.categoryName = ossObjectDetailNode["CategoryName"].asString(); + auto allRuleList = value["RuleList"]["Rule"]; + for (auto value : allRuleList) + { + OssObjectDetail::Rule ruleObject; + if(!value["RuleName"].isNull()) + ruleObject.ruleName = value["RuleName"].asString(); + if(!value["Count"].isNull()) + ruleObject.count = std::stol(value["Count"].asString()); + ossObjectDetail_.ruleList.push_back(ruleObject); + } + +} + +DescribeOssObjectDetailResult::OssObjectDetail DescribeOssObjectDetailResult::getOssObjectDetail()const +{ + return ossObjectDetail_; +} + diff --git a/sddp/src/model/DescribeOssObjectsRequest.cc b/sddp/src/model/DescribeOssObjectsRequest.cc new file mode 100644 index 000000000..5fd92a9dc --- /dev/null +++ b/sddp/src/model/DescribeOssObjectsRequest.cc @@ -0,0 +1,137 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp::Model::DescribeOssObjectsRequest; + +DescribeOssObjectsRequest::DescribeOssObjectsRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DescribeOssObjects") +{} + +DescribeOssObjectsRequest::~DescribeOssObjectsRequest() +{} + +std::string DescribeOssObjectsRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeOssObjectsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string DescribeOssObjectsRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeOssObjectsRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +int DescribeOssObjectsRequest::getFeatureType()const +{ + return featureType_; +} + +void DescribeOssObjectsRequest::setFeatureType(int featureType) +{ + featureType_ = featureType; + setCoreParameter("FeatureType", std::to_string(featureType)); +} + +std::string DescribeOssObjectsRequest::getName()const +{ + return name_; +} + +void DescribeOssObjectsRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + +int DescribeOssObjectsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeOssObjectsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +int DescribeOssObjectsRequest::getCurrentPage()const +{ + return currentPage_; +} + +void DescribeOssObjectsRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setCoreParameter("CurrentPage", std::to_string(currentPage)); +} + +std::string DescribeOssObjectsRequest::getQueryName()const +{ + return queryName_; +} + +void DescribeOssObjectsRequest::setQueryName(const std::string& queryName) +{ + queryName_ = queryName; + setCoreParameter("QueryName", queryName); +} + +int DescribeOssObjectsRequest::getRiskLevelId()const +{ + return riskLevelId_; +} + +void DescribeOssObjectsRequest::setRiskLevelId(int riskLevelId) +{ + riskLevelId_ = riskLevelId; + setCoreParameter("RiskLevelId", std::to_string(riskLevelId)); +} + +std::string DescribeOssObjectsRequest::getLang()const +{ + return lang_; +} + +void DescribeOssObjectsRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +long DescribeOssObjectsRequest::getRuleId()const +{ + return ruleId_; +} + +void DescribeOssObjectsRequest::setRuleId(long ruleId) +{ + ruleId_ = ruleId; + setCoreParameter("RuleId", std::to_string(ruleId)); +} + diff --git a/sddp/src/model/DescribeOssObjectsResult.cc b/sddp/src/model/DescribeOssObjectsResult.cc new file mode 100644 index 000000000..e3c29914b --- /dev/null +++ b/sddp/src/model/DescribeOssObjectsResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +DescribeOssObjectsResult::DescribeOssObjectsResult() : + ServiceResult() +{} + +DescribeOssObjectsResult::DescribeOssObjectsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeOssObjectsResult::~DescribeOssObjectsResult() +{} + +void DescribeOssObjectsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["Column"]; + for (auto value : allItems) + { + Column itemsObject; + if(!value["Id"].isNull()) + itemsObject.id = std::stol(value["Id"].asString()); + if(!value["Name"].isNull()) + itemsObject.name = value["Name"].asString(); + if(!value["RegionId"].isNull()) + itemsObject.regionId = value["RegionId"].asString(); + if(!value["RiskLevelId"].isNull()) + itemsObject.riskLevelId = std::stol(value["RiskLevelId"].asString()); + if(!value["Category"].isNull()) + itemsObject.category = std::stol(value["Category"].asString()); + if(!value["InstanceId"].isNull()) + itemsObject.instanceId = std::stol(value["InstanceId"].asString()); + if(!value["FileId"].isNull()) + itemsObject.fileId = value["FileId"].asString(); + if(!value["RiskLevelName"].isNull()) + itemsObject.riskLevelName = std::stol(value["RiskLevelName"].asString()); + items_.push_back(itemsObject); + } + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["CurrentPage"].isNull()) + currentPage_ = std::stoi(value["CurrentPage"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeOssObjectsResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeOssObjectsResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeOssObjectsResult::getCurrentPage()const +{ + return currentPage_; +} + +std::vector DescribeOssObjectsResult::getItems()const +{ + return items_; +} + diff --git a/sddp/src/model/DescribePackagesRequest.cc b/sddp/src/model/DescribePackagesRequest.cc new file mode 100644 index 000000000..d57e25718 --- /dev/null +++ b/sddp/src/model/DescribePackagesRequest.cc @@ -0,0 +1,159 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp::Model::DescribePackagesRequest; + +DescribePackagesRequest::DescribePackagesRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DescribePackages") +{} + +DescribePackagesRequest::~DescribePackagesRequest() +{} + +long DescribePackagesRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribePackagesRequest::setInstanceId(long instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", std::to_string(instanceId)); +} + +std::string DescribePackagesRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribePackagesRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +long DescribePackagesRequest::getProductId()const +{ + return productId_; +} + +void DescribePackagesRequest::setProductId(long productId) +{ + productId_ = productId; + setCoreParameter("ProductId", std::to_string(productId)); +} + +int DescribePackagesRequest::getFeatureType()const +{ + return featureType_; +} + +void DescribePackagesRequest::setFeatureType(int featureType) +{ + featureType_ = featureType; + setCoreParameter("FeatureType", std::to_string(featureType)); +} + +std::string DescribePackagesRequest::getName()const +{ + return name_; +} + +void DescribePackagesRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + +int DescribePackagesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribePackagesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +int DescribePackagesRequest::getCurrentPage()const +{ + return currentPage_; +} + +void DescribePackagesRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setCoreParameter("CurrentPage", std::to_string(currentPage)); +} + +std::string DescribePackagesRequest::getQueryName()const +{ + return queryName_; +} + +void DescribePackagesRequest::setQueryName(const std::string& queryName) +{ + queryName_ = queryName; + setCoreParameter("QueryName", queryName); +} + +long DescribePackagesRequest::getRiskLevelId()const +{ + return riskLevelId_; +} + +void DescribePackagesRequest::setRiskLevelId(long riskLevelId) +{ + riskLevelId_ = riskLevelId; + setCoreParameter("RiskLevelId", std::to_string(riskLevelId)); +} + +std::string DescribePackagesRequest::getLang()const +{ + return lang_; +} + +void DescribePackagesRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +long DescribePackagesRequest::getRuleId()const +{ + return ruleId_; +} + +void DescribePackagesRequest::setRuleId(long ruleId) +{ + ruleId_ = ruleId; + setCoreParameter("RuleId", std::to_string(ruleId)); +} + +int DescribePackagesRequest::getQueryType()const +{ + return queryType_; +} + +void DescribePackagesRequest::setQueryType(int queryType) +{ + queryType_ = queryType; + setCoreParameter("QueryType", std::to_string(queryType)); +} + diff --git a/sddp/src/model/DescribePackagesResult.cc b/sddp/src/model/DescribePackagesResult.cc new file mode 100644 index 000000000..a4a465f40 --- /dev/null +++ b/sddp/src/model/DescribePackagesResult.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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +DescribePackagesResult::DescribePackagesResult() : + ServiceResult() +{} + +DescribePackagesResult::DescribePackagesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribePackagesResult::~DescribePackagesResult() +{} + +void DescribePackagesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["Package"]; + for (auto value : allItems) + { + Package itemsObject; + if(!value["Id"].isNull()) + itemsObject.id = std::stol(value["Id"].asString()); + if(!value["Name"].isNull()) + itemsObject.name = value["Name"].asString(); + if(!value["Owner"].isNull()) + itemsObject.owner = value["Owner"].asString(); + if(!value["CreationTime"].isNull()) + itemsObject.creationTime = std::stol(value["CreationTime"].asString()); + if(!value["Sensitive"].isNull()) + itemsObject.sensitive = value["Sensitive"].asString() == "true"; + if(!value["RiskLevelId"].isNull()) + itemsObject.riskLevelId = std::stol(value["RiskLevelId"].asString()); + if(!value["RiskLevelName"].isNull()) + itemsObject.riskLevelName = value["RiskLevelName"].asString(); + if(!value["DepartName"].isNull()) + itemsObject.departName = value["DepartName"].asString(); + if(!value["TotalCount"].isNull()) + itemsObject.totalCount = std::stoi(value["TotalCount"].asString()); + if(!value["SensitiveCount"].isNull()) + itemsObject.sensitiveCount = std::stoi(value["SensitiveCount"].asString()); + if(!value["InstanceId"].isNull()) + itemsObject.instanceId = std::stol(value["InstanceId"].asString()); + items_.push_back(itemsObject); + } + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["CurrentPage"].isNull()) + currentPage_ = std::stoi(value["CurrentPage"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribePackagesResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribePackagesResult::getPageSize()const +{ + return pageSize_; +} + +int DescribePackagesResult::getCurrentPage()const +{ + return currentPage_; +} + +std::vector DescribePackagesResult::getItems()const +{ + return items_; +} + diff --git a/sddp/src/model/DescribePrivilegesRequest.cc b/sddp/src/model/DescribePrivilegesRequest.cc new file mode 100644 index 000000000..54e4c139f --- /dev/null +++ b/sddp/src/model/DescribePrivilegesRequest.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::Sddp::Model::DescribePrivilegesRequest; + +DescribePrivilegesRequest::DescribePrivilegesRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DescribePrivileges") +{} + +DescribePrivilegesRequest::~DescribePrivilegesRequest() +{} + +long DescribePrivilegesRequest::getAccountId()const +{ + return accountId_; +} + +void DescribePrivilegesRequest::setAccountId(long accountId) +{ + accountId_ = accountId; + setCoreParameter("AccountId", std::to_string(accountId)); +} + +long DescribePrivilegesRequest::getUseAccountId()const +{ + return useAccountId_; +} + +void DescribePrivilegesRequest::setUseAccountId(long useAccountId) +{ + useAccountId_ = useAccountId; + setCoreParameter("UseAccountId", std::to_string(useAccountId)); +} + +std::string DescribePrivilegesRequest::getDataTypeIds()const +{ + return dataTypeIds_; +} + +void DescribePrivilegesRequest::setDataTypeIds(const std::string& dataTypeIds) +{ + dataTypeIds_ = dataTypeIds; + setCoreParameter("DataTypeIds", dataTypeIds); +} + +std::string DescribePrivilegesRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribePrivilegesRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +int DescribePrivilegesRequest::getFeatureType()const +{ + return featureType_; +} + +void DescribePrivilegesRequest::setFeatureType(int featureType) +{ + featureType_ = featureType; + setCoreParameter("FeatureType", std::to_string(featureType)); +} + +int DescribePrivilegesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribePrivilegesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +int DescribePrivilegesRequest::getCurrentPage()const +{ + return currentPage_; +} + +void DescribePrivilegesRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setCoreParameter("CurrentPage", std::to_string(currentPage)); +} + +std::string DescribePrivilegesRequest::getLang()const +{ + return lang_; +} + +void DescribePrivilegesRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +std::string DescribePrivilegesRequest::getKey()const +{ + return key_; +} + +void DescribePrivilegesRequest::setKey(const std::string& key) +{ + key_ = key; + setCoreParameter("Key", key); +} + diff --git a/sddp/src/model/DescribePrivilegesResult.cc b/sddp/src/model/DescribePrivilegesResult.cc new file mode 100644 index 000000000..e2120dcca --- /dev/null +++ b/sddp/src/model/DescribePrivilegesResult.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +DescribePrivilegesResult::DescribePrivilegesResult() : + ServiceResult() +{} + +DescribePrivilegesResult::DescribePrivilegesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribePrivilegesResult::~DescribePrivilegesResult() +{} + +void DescribePrivilegesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["Privilege"]; + for (auto value : allItems) + { + Privilege itemsObject; + if(!value["Id"].isNull()) + itemsObject.id = std::stol(value["Id"].asString()); + if(!value["AccountId"].isNull()) + itemsObject.accountId = std::stol(value["AccountId"].asString()); + if(!value["AccountType"].isNull()) + itemsObject.accountType = std::stoi(value["AccountType"].asString()); + if(!value["UseAccountId"].isNull()) + itemsObject.useAccountId = std::stol(value["UseAccountId"].asString()); + if(!value["UseAccountType"].isNull()) + itemsObject.useAccountType = std::stoi(value["UseAccountType"].asString()); + if(!value["ProductName"].isNull()) + itemsObject.productName = value["ProductName"].asString(); + if(!value["productCode"].isNull()) + itemsObject.productCode = value["productCode"].asString(); + if(!value["DataType"].isNull()) + itemsObject.dataType = value["DataType"].asString(); + if(!value["DataTypeId"].isNull()) + itemsObject.dataTypeId = value["DataTypeId"].asString(); + if(!value["DataTypeName"].isNull()) + itemsObject.dataTypeName = value["DataTypeName"].asString(); + if(!value["DataInstance"].isNull()) + itemsObject.dataInstance = value["DataInstance"].asString(); + if(!value["DataTable"].isNull()) + itemsObject.dataTable = value["DataTable"].asString(); + if(!value["DataColumn"].isNull()) + itemsObject.dataColumn = value["DataColumn"].asString(); + if(!value["DataPackage"].isNull()) + itemsObject.dataPackage = value["DataPackage"].asString(); + if(!value["ResourceName"].isNull()) + itemsObject.resourceName = value["ResourceName"].asString(); + if(!value["ResourcePath"].isNull()) + itemsObject.resourcePath = value["ResourcePath"].asString(); + if(!value["Operation"].isNull()) + itemsObject.operation = value["Operation"].asString(); + if(!value["PolicyCondition"].isNull()) + itemsObject.policyCondition = value["PolicyCondition"].asString(); + if(!value["Sensitive"].isNull()) + itemsObject.sensitive = value["Sensitive"].asString(); + items_.push_back(itemsObject); + } + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["CurrentPage"].isNull()) + currentPage_ = std::stoi(value["CurrentPage"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribePrivilegesResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribePrivilegesResult::getPageSize()const +{ + return pageSize_; +} + +int DescribePrivilegesResult::getCurrentPage()const +{ + return currentPage_; +} + +std::vector DescribePrivilegesResult::getItems()const +{ + return items_; +} + diff --git a/sddp/src/model/DescribeRulesRequest.cc b/sddp/src/model/DescribeRulesRequest.cc new file mode 100644 index 000000000..1c14af25a --- /dev/null +++ b/sddp/src/model/DescribeRulesRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sddp::Model::DescribeRulesRequest; + +DescribeRulesRequest::DescribeRulesRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DescribeRules") +{} + +DescribeRulesRequest::~DescribeRulesRequest() +{} + +std::string DescribeRulesRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeRulesRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +int DescribeRulesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeRulesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeRulesRequest::getName()const +{ + return name_; +} + +void DescribeRulesRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + +int DescribeRulesRequest::getCurrentPage()const +{ + return currentPage_; +} + +void DescribeRulesRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setCoreParameter("CurrentPage", std::to_string(currentPage)); +} + +long DescribeRulesRequest::getRiskLevelId()const +{ + return riskLevelId_; +} + +void DescribeRulesRequest::setRiskLevelId(long riskLevelId) +{ + riskLevelId_ = riskLevelId; + setCoreParameter("RiskLevelId", std::to_string(riskLevelId)); +} + +std::string DescribeRulesRequest::getLang()const +{ + return lang_; +} + +void DescribeRulesRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +int DescribeRulesRequest::getCustomType()const +{ + return customType_; +} + +void DescribeRulesRequest::setCustomType(int customType) +{ + customType_ = customType; + setCoreParameter("CustomType", std::to_string(customType)); +} + +int DescribeRulesRequest::getCategory()const +{ + return category_; +} + +void DescribeRulesRequest::setCategory(int category) +{ + category_ = category; + setCoreParameter("Category", std::to_string(category)); +} + diff --git a/sddp/src/model/DescribeRulesResult.cc b/sddp/src/model/DescribeRulesResult.cc new file mode 100644 index 000000000..cbd98845f --- /dev/null +++ b/sddp/src/model/DescribeRulesResult.cc @@ -0,0 +1,109 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +DescribeRulesResult::DescribeRulesResult() : + ServiceResult() +{} + +DescribeRulesResult::DescribeRulesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRulesResult::~DescribeRulesResult() +{} + +void DescribeRulesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["Rule"]; + for (auto value : allItems) + { + Rule itemsObject; + if(!value["Id"].isNull()) + itemsObject.id = std::stol(value["Id"].asString()); + if(!value["GmtCreate"].isNull()) + itemsObject.gmtCreate = std::stol(value["GmtCreate"].asString()); + if(!value["GmtModified"].isNull()) + itemsObject.gmtModified = std::stol(value["GmtModified"].asString()); + if(!value["CustomType"].isNull()) + itemsObject.customType = std::stoi(value["CustomType"].asString()); + if(!value["Name"].isNull()) + itemsObject.name = value["Name"].asString(); + if(!value["Description"].isNull()) + itemsObject.description = value["Description"].asString(); + if(!value["UserId"].isNull()) + itemsObject.userId = std::stol(value["UserId"].asString()); + if(!value["LoginName"].isNull()) + itemsObject.loginName = value["LoginName"].asString(); + if(!value["DisplayName"].isNull()) + itemsObject.displayName = value["DisplayName"].asString(); + if(!value["Category"].isNull()) + itemsObject.category = std::stoi(value["Category"].asString()); + if(!value["CategoryName"].isNull()) + itemsObject.categoryName = value["CategoryName"].asString(); + if(!value["Status"].isNull()) + itemsObject.status = std::stoi(value["Status"].asString()); + if(!value["RiskLevelName"].isNull()) + itemsObject.riskLevelName = value["RiskLevelName"].asString(); + if(!value["RiskLevelId"].isNull()) + itemsObject.riskLevelId = std::stol(value["RiskLevelId"].asString()); + if(!value["Content"].isNull()) + itemsObject.content = value["Content"].asString(); + if(!value["DepartName"].isNull()) + itemsObject.departName = value["DepartName"].asString(); + items_.push_back(itemsObject); + } + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["CurrentPage"].isNull()) + currentPage_ = std::stoi(value["CurrentPage"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeRulesResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeRulesResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeRulesResult::getCurrentPage()const +{ + return currentPage_; +} + +std::vector DescribeRulesResult::getItems()const +{ + return items_; +} + diff --git a/sddp/src/model/DescribeTablesRequest.cc b/sddp/src/model/DescribeTablesRequest.cc new file mode 100644 index 000000000..fcee40691 --- /dev/null +++ b/sddp/src/model/DescribeTablesRequest.cc @@ -0,0 +1,170 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp::Model::DescribeTablesRequest; + +DescribeTablesRequest::DescribeTablesRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DescribeTables") +{} + +DescribeTablesRequest::~DescribeTablesRequest() +{} + +long DescribeTablesRequest::getProductId()const +{ + return productId_; +} + +void DescribeTablesRequest::setProductId(long productId) +{ + productId_ = productId; + setCoreParameter("ProductId", std::to_string(productId)); +} + +int DescribeTablesRequest::getFeatureType()const +{ + return featureType_; +} + +void DescribeTablesRequest::setFeatureType(int featureType) +{ + featureType_ = featureType; + setCoreParameter("FeatureType", std::to_string(featureType)); +} + +long DescribeTablesRequest::getPackageId()const +{ + return packageId_; +} + +void DescribeTablesRequest::setPackageId(long packageId) +{ + packageId_ = packageId; + setCoreParameter("PackageId", std::to_string(packageId)); +} + +int DescribeTablesRequest::getCurrentPage()const +{ + return currentPage_; +} + +void DescribeTablesRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setCoreParameter("CurrentPage", std::to_string(currentPage)); +} + +std::string DescribeTablesRequest::getQueryName()const +{ + return queryName_; +} + +void DescribeTablesRequest::setQueryName(const std::string& queryName) +{ + queryName_ = queryName; + setCoreParameter("QueryName", queryName); +} + +long DescribeTablesRequest::getRiskLevelId()const +{ + return riskLevelId_; +} + +void DescribeTablesRequest::setRiskLevelId(long riskLevelId) +{ + riskLevelId_ = riskLevelId; + setCoreParameter("RiskLevelId", std::to_string(riskLevelId)); +} + +long DescribeTablesRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeTablesRequest::setInstanceId(long instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", std::to_string(instanceId)); +} + +std::string DescribeTablesRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeTablesRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string DescribeTablesRequest::getName()const +{ + return name_; +} + +void DescribeTablesRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + +int DescribeTablesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeTablesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeTablesRequest::getLang()const +{ + return lang_; +} + +void DescribeTablesRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +long DescribeTablesRequest::getRuleId()const +{ + return ruleId_; +} + +void DescribeTablesRequest::setRuleId(long ruleId) +{ + ruleId_ = ruleId; + setCoreParameter("RuleId", std::to_string(ruleId)); +} + +int DescribeTablesRequest::getQueryType()const +{ + return queryType_; +} + +void DescribeTablesRequest::setQueryType(int queryType) +{ + queryType_ = queryType; + setCoreParameter("QueryType", std::to_string(queryType)); +} + diff --git a/sddp/src/model/DescribeTablesResult.cc b/sddp/src/model/DescribeTablesResult.cc new file mode 100644 index 000000000..668f1381b --- /dev/null +++ b/sddp/src/model/DescribeTablesResult.cc @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sddp; +using namespace AlibabaCloud::Sddp::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 allItems = value["Items"]["Table"]; + for (auto value : allItems) + { + Table itemsObject; + if(!value["Id"].isNull()) + itemsObject.id = std::stol(value["Id"].asString()); + if(!value["Name"].isNull()) + itemsObject.name = value["Name"].asString(); + if(!value["Owner"].isNull()) + itemsObject.owner = value["Owner"].asString(); + if(!value["CreationTime"].isNull()) + itemsObject.creationTime = std::stol(value["CreationTime"].asString()); + if(!value["ProductId"].isNull()) + itemsObject.productId = value["ProductId"].asString(); + if(!value["ProductCode"].isNull()) + itemsObject.productCode = value["ProductCode"].asString(); + if(!value["Sensitive"].isNull()) + itemsObject.sensitive = value["Sensitive"].asString() == "true"; + if(!value["RiskLevelId"].isNull()) + itemsObject.riskLevelId = std::stol(value["RiskLevelId"].asString()); + if(!value["RiskLevelName"].isNull()) + itemsObject.riskLevelName = value["RiskLevelName"].asString(); + if(!value["DepartName"].isNull()) + itemsObject.departName = value["DepartName"].asString(); + if(!value["TotalCount"].isNull()) + itemsObject.totalCount = std::stoi(value["TotalCount"].asString()); + if(!value["SensitiveCount"].isNull()) + itemsObject.sensitiveCount = std::stoi(value["SensitiveCount"].asString()); + if(!value["SensitiveRatio"].isNull()) + itemsObject.sensitiveRatio = value["SensitiveRatio"].asString(); + if(!value["InstanceId"].isNull()) + itemsObject.instanceId = std::stol(value["InstanceId"].asString()); + items_.push_back(itemsObject); + } + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["CurrentPage"].isNull()) + currentPage_ = std::stoi(value["CurrentPage"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeTablesResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeTablesResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeTablesResult::getCurrentPage()const +{ + return currentPage_; +} + +std::vector DescribeTablesResult::getItems()const +{ + return items_; +} + diff --git a/sddp/src/model/DescribeUserStatusRequest.cc b/sddp/src/model/DescribeUserStatusRequest.cc new file mode 100644 index 000000000..01f37a44b --- /dev/null +++ b/sddp/src/model/DescribeUserStatusRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Sddp::Model::DescribeUserStatusRequest; + +DescribeUserStatusRequest::DescribeUserStatusRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DescribeUserStatus") +{} + +DescribeUserStatusRequest::~DescribeUserStatusRequest() +{} + +std::string DescribeUserStatusRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeUserStatusRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string DescribeUserStatusRequest::getLang()const +{ + return lang_; +} + +void DescribeUserStatusRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + diff --git a/sddp/src/model/DescribeUserStatusResult.cc b/sddp/src/model/DescribeUserStatusResult.cc new file mode 100644 index 000000000..7349bdd1d --- /dev/null +++ b/sddp/src/model/DescribeUserStatusResult.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 +#include + +using namespace AlibabaCloud::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +DescribeUserStatusResult::DescribeUserStatusResult() : + ServiceResult() +{} + +DescribeUserStatusResult::DescribeUserStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeUserStatusResult::~DescribeUserStatusResult() +{} + +void DescribeUserStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto userStatusNode = value["UserStatus"]; + if(!userStatusNode["Authed"].isNull()) + userStatus_.authed = userStatusNode["Authed"].asString() == "true"; + if(!userStatusNode["Buyed"].isNull()) + userStatus_.buyed = userStatusNode["Buyed"].asString() == "true"; + if(!userStatusNode["OssBucketSet"].isNull()) + userStatus_.ossBucketSet = userStatusNode["OssBucketSet"].asString() == "true"; + if(!userStatusNode["OdpsSet"].isNull()) + userStatus_.odpsSet = userStatusNode["OdpsSet"].asString() == "true"; + if(!userStatusNode["RdsSet"].isNull()) + userStatus_.rdsSet = userStatusNode["RdsSet"].asString() == "true"; + if(!userStatusNode["AccessKeyId"].isNull()) + userStatus_.accessKeyId = userStatusNode["AccessKeyId"].asString(); + +} + +DescribeUserStatusResult::UserStatus DescribeUserStatusResult::getUserStatus()const +{ + return userStatus_; +} + diff --git a/sddp/src/model/ModifyDataLimitRequest.cc b/sddp/src/model/ModifyDataLimitRequest.cc new file mode 100644 index 000000000..c9a7e0450 --- /dev/null +++ b/sddp/src/model/ModifyDataLimitRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sddp::Model::ModifyDataLimitRequest; + +ModifyDataLimitRequest::ModifyDataLimitRequest() : + RpcServiceRequest("sddp", "2019-01-03", "ModifyDataLimit") +{} + +ModifyDataLimitRequest::~ModifyDataLimitRequest() +{} + +std::string ModifyDataLimitRequest::getPassword()const +{ + return password_; +} + +void ModifyDataLimitRequest::setPassword(const std::string& password) +{ + password_ = password; + setCoreParameter("Password", password); +} + +std::string ModifyDataLimitRequest::getSourceIp()const +{ + return sourceIp_; +} + +void ModifyDataLimitRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string ModifyDataLimitRequest::getConnector()const +{ + return connector_; +} + +void ModifyDataLimitRequest::setConnector(const std::string& connector) +{ + connector_ = connector; + setCoreParameter("Connector", connector); +} + +long ModifyDataLimitRequest::getId()const +{ + return id_; +} + +void ModifyDataLimitRequest::setId(long id) +{ + id_ = id; + setCoreParameter("Id", std::to_string(id)); +} + +std::string ModifyDataLimitRequest::getLang()const +{ + return lang_; +} + +void ModifyDataLimitRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +int ModifyDataLimitRequest::getResourceType()const +{ + return resourceType_; +} + +void ModifyDataLimitRequest::setResourceType(int resourceType) +{ + resourceType_ = resourceType; + setCoreParameter("ResourceType", std::to_string(resourceType)); +} + +std::string ModifyDataLimitRequest::getServiceRegionId()const +{ + return serviceRegionId_; +} + +void ModifyDataLimitRequest::setServiceRegionId(const std::string& serviceRegionId) +{ + serviceRegionId_ = serviceRegionId; + setCoreParameter("ServiceRegionId", serviceRegionId); +} + +std::string ModifyDataLimitRequest::getUserName()const +{ + return userName_; +} + +void ModifyDataLimitRequest::setUserName(const std::string& userName) +{ + userName_ = userName; + setCoreParameter("UserName", userName); +} + diff --git a/sddp/src/model/ModifyDataLimitResult.cc b/sddp/src/model/ModifyDataLimitResult.cc new file mode 100644 index 000000000..4bbfb7b36 --- /dev/null +++ b/sddp/src/model/ModifyDataLimitResult.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 +#include + +using namespace AlibabaCloud::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +ModifyDataLimitResult::ModifyDataLimitResult() : + ServiceResult() +{} + +ModifyDataLimitResult::ModifyDataLimitResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDataLimitResult::~ModifyDataLimitResult() +{} + +void ModifyDataLimitResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/sddp/src/model/ModifyDefaultLevelRequest.cc b/sddp/src/model/ModifyDefaultLevelRequest.cc new file mode 100644 index 000000000..b50e0a80e --- /dev/null +++ b/sddp/src/model/ModifyDefaultLevelRequest.cc @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sddp::Model::ModifyDefaultLevelRequest; + +ModifyDefaultLevelRequest::ModifyDefaultLevelRequest() : + RpcServiceRequest("sddp", "2019-01-03", "ModifyDefaultLevel") +{} + +ModifyDefaultLevelRequest::~ModifyDefaultLevelRequest() +{} + +std::string ModifyDefaultLevelRequest::getSourceIp()const +{ + return sourceIp_; +} + +void ModifyDefaultLevelRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +int ModifyDefaultLevelRequest::getFeatureType()const +{ + return featureType_; +} + +void ModifyDefaultLevelRequest::setFeatureType(int featureType) +{ + featureType_ = featureType; + setCoreParameter("FeatureType", std::to_string(featureType)); +} + +long ModifyDefaultLevelRequest::getDefaultId()const +{ + return defaultId_; +} + +void ModifyDefaultLevelRequest::setDefaultId(long defaultId) +{ + defaultId_ = defaultId; + setCoreParameter("DefaultId", std::to_string(defaultId)); +} + +std::string ModifyDefaultLevelRequest::getLang()const +{ + return lang_; +} + +void ModifyDefaultLevelRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +std::string ModifyDefaultLevelRequest::getSensitiveIds()const +{ + return sensitiveIds_; +} + +void ModifyDefaultLevelRequest::setSensitiveIds(const std::string& sensitiveIds) +{ + sensitiveIds_ = sensitiveIds; + setCoreParameter("SensitiveIds", sensitiveIds); +} + diff --git a/sddp/src/model/ModifyDefaultLevelResult.cc b/sddp/src/model/ModifyDefaultLevelResult.cc new file mode 100644 index 000000000..fc8d02087 --- /dev/null +++ b/sddp/src/model/ModifyDefaultLevelResult.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 +#include + +using namespace AlibabaCloud::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +ModifyDefaultLevelResult::ModifyDefaultLevelResult() : + ServiceResult() +{} + +ModifyDefaultLevelResult::ModifyDefaultLevelResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDefaultLevelResult::~ModifyDefaultLevelResult() +{} + +void ModifyDefaultLevelResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/sddp/src/model/ModifyEventStatusRequest.cc b/sddp/src/model/ModifyEventStatusRequest.cc new file mode 100644 index 000000000..dcb3d1363 --- /dev/null +++ b/sddp/src/model/ModifyEventStatusRequest.cc @@ -0,0 +1,104 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sddp::Model::ModifyEventStatusRequest; + +ModifyEventStatusRequest::ModifyEventStatusRequest() : + RpcServiceRequest("sddp", "2019-01-03", "ModifyEventStatus") +{} + +ModifyEventStatusRequest::~ModifyEventStatusRequest() +{} + +std::string ModifyEventStatusRequest::getSourceIp()const +{ + return sourceIp_; +} + +void ModifyEventStatusRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +bool ModifyEventStatusRequest::getBacked()const +{ + return backed_; +} + +void ModifyEventStatusRequest::setBacked(bool backed) +{ + backed_ = backed; + setCoreParameter("Backed", backed ? "true" : "false"); +} + +int ModifyEventStatusRequest::getFeatureType()const +{ + return featureType_; +} + +void ModifyEventStatusRequest::setFeatureType(int featureType) +{ + featureType_ = featureType; + setCoreParameter("FeatureType", std::to_string(featureType)); +} + +std::string ModifyEventStatusRequest::getDealReason()const +{ + return dealReason_; +} + +void ModifyEventStatusRequest::setDealReason(const std::string& dealReason) +{ + dealReason_ = dealReason; + setCoreParameter("DealReason", dealReason); +} + +long ModifyEventStatusRequest::getId()const +{ + return id_; +} + +void ModifyEventStatusRequest::setId(long id) +{ + id_ = id; + setCoreParameter("Id", std::to_string(id)); +} + +std::string ModifyEventStatusRequest::getLang()const +{ + return lang_; +} + +void ModifyEventStatusRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +int ModifyEventStatusRequest::getStatus()const +{ + return status_; +} + +void ModifyEventStatusRequest::setStatus(int status) +{ + status_ = status; + setCoreParameter("Status", std::to_string(status)); +} + diff --git a/sddp/src/model/ModifyEventStatusResult.cc b/sddp/src/model/ModifyEventStatusResult.cc new file mode 100644 index 000000000..8d9fbea93 --- /dev/null +++ b/sddp/src/model/ModifyEventStatusResult.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 +#include + +using namespace AlibabaCloud::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +ModifyEventStatusResult::ModifyEventStatusResult() : + ServiceResult() +{} + +ModifyEventStatusResult::ModifyEventStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyEventStatusResult::~ModifyEventStatusResult() +{} + +void ModifyEventStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/sddp/src/model/ModifyEventTypeStatusRequest.cc b/sddp/src/model/ModifyEventTypeStatusRequest.cc new file mode 100644 index 000000000..ad22e4f20 --- /dev/null +++ b/sddp/src/model/ModifyEventTypeStatusRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Sddp::Model::ModifyEventTypeStatusRequest; + +ModifyEventTypeStatusRequest::ModifyEventTypeStatusRequest() : + RpcServiceRequest("sddp", "2019-01-03", "ModifyEventTypeStatus") +{} + +ModifyEventTypeStatusRequest::~ModifyEventTypeStatusRequest() +{} + +std::string ModifyEventTypeStatusRequest::getSubTypeIds()const +{ + return subTypeIds_; +} + +void ModifyEventTypeStatusRequest::setSubTypeIds(const std::string& subTypeIds) +{ + subTypeIds_ = subTypeIds; + setCoreParameter("SubTypeIds", subTypeIds); +} + +std::string ModifyEventTypeStatusRequest::getSourceIp()const +{ + return sourceIp_; +} + +void ModifyEventTypeStatusRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string ModifyEventTypeStatusRequest::getLang()const +{ + return lang_; +} + +void ModifyEventTypeStatusRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + diff --git a/sddp/src/model/ModifyEventTypeStatusResult.cc b/sddp/src/model/ModifyEventTypeStatusResult.cc new file mode 100644 index 000000000..205cbd151 --- /dev/null +++ b/sddp/src/model/ModifyEventTypeStatusResult.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 +#include + +using namespace AlibabaCloud::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +ModifyEventTypeStatusResult::ModifyEventTypeStatusResult() : + ServiceResult() +{} + +ModifyEventTypeStatusResult::ModifyEventTypeStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyEventTypeStatusResult::~ModifyEventTypeStatusResult() +{} + +void ModifyEventTypeStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/sddp/src/model/ModifyRuleRequest.cc b/sddp/src/model/ModifyRuleRequest.cc new file mode 100644 index 000000000..8d3642938 --- /dev/null +++ b/sddp/src/model/ModifyRuleRequest.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::Sddp::Model::ModifyRuleRequest; + +ModifyRuleRequest::ModifyRuleRequest() : + RpcServiceRequest("sddp", "2019-01-03", "ModifyRule") +{} + +ModifyRuleRequest::~ModifyRuleRequest() +{} + +std::string ModifyRuleRequest::getSourceIp()const +{ + return sourceIp_; +} + +void ModifyRuleRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +int ModifyRuleRequest::getFeatureType()const +{ + return featureType_; +} + +void ModifyRuleRequest::setFeatureType(int featureType) +{ + featureType_ = featureType; + setCoreParameter("FeatureType", std::to_string(featureType)); +} + +std::string ModifyRuleRequest::getName()const +{ + return name_; +} + +void ModifyRuleRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + +long ModifyRuleRequest::getId()const +{ + return id_; +} + +void ModifyRuleRequest::setId(long id) +{ + id_ = id; + setCoreParameter("Id", std::to_string(id)); +} + +long ModifyRuleRequest::getRiskLevelId()const +{ + return riskLevelId_; +} + +void ModifyRuleRequest::setRiskLevelId(long riskLevelId) +{ + riskLevelId_ = riskLevelId; + setCoreParameter("RiskLevelId", std::to_string(riskLevelId)); +} + +std::string ModifyRuleRequest::getLang()const +{ + return lang_; +} + +void ModifyRuleRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +int ModifyRuleRequest::getCustomType()const +{ + return customType_; +} + +void ModifyRuleRequest::setCustomType(int customType) +{ + customType_ = customType; + setCoreParameter("CustomType", std::to_string(customType)); +} + +int ModifyRuleRequest::getCategory()const +{ + return category_; +} + +void ModifyRuleRequest::setCategory(int category) +{ + category_ = category; + setCoreParameter("Category", std::to_string(category)); +} + +std::string ModifyRuleRequest::getContent()const +{ + return content_; +} + +void ModifyRuleRequest::setContent(const std::string& content) +{ + content_ = content; + setCoreParameter("Content", content); +} + diff --git a/sddp/src/model/ModifyRuleResult.cc b/sddp/src/model/ModifyRuleResult.cc new file mode 100644 index 000000000..cb45aa225 --- /dev/null +++ b/sddp/src/model/ModifyRuleResult.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 +#include + +using namespace AlibabaCloud::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +ModifyRuleResult::ModifyRuleResult() : + ServiceResult() +{} + +ModifyRuleResult::ModifyRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyRuleResult::~ModifyRuleResult() +{} + +void ModifyRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/sddp/src/model/ModifyRuleStatusRequest.cc b/sddp/src/model/ModifyRuleStatusRequest.cc new file mode 100644 index 000000000..4bf639e74 --- /dev/null +++ b/sddp/src/model/ModifyRuleStatusRequest.cc @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sddp::Model::ModifyRuleStatusRequest; + +ModifyRuleStatusRequest::ModifyRuleStatusRequest() : + RpcServiceRequest("sddp", "2019-01-03", "ModifyRuleStatus") +{} + +ModifyRuleStatusRequest::~ModifyRuleStatusRequest() +{} + +std::string ModifyRuleStatusRequest::getSourceIp()const +{ + return sourceIp_; +} + +void ModifyRuleStatusRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +int ModifyRuleStatusRequest::getFeatureType()const +{ + return featureType_; +} + +void ModifyRuleStatusRequest::setFeatureType(int featureType) +{ + featureType_ = featureType; + setCoreParameter("FeatureType", std::to_string(featureType)); +} + +long ModifyRuleStatusRequest::getId()const +{ + return id_; +} + +void ModifyRuleStatusRequest::setId(long id) +{ + id_ = id; + setCoreParameter("Id", std::to_string(id)); +} + +std::string ModifyRuleStatusRequest::getLang()const +{ + return lang_; +} + +void ModifyRuleStatusRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +int ModifyRuleStatusRequest::getStatus()const +{ + return status_; +} + +void ModifyRuleStatusRequest::setStatus(int status) +{ + status_ = status; + setCoreParameter("Status", std::to_string(status)); +} + diff --git a/sddp/src/model/ModifyRuleStatusResult.cc b/sddp/src/model/ModifyRuleStatusResult.cc new file mode 100644 index 000000000..2349ea355 --- /dev/null +++ b/sddp/src/model/ModifyRuleStatusResult.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 +#include + +using namespace AlibabaCloud::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +ModifyRuleStatusResult::ModifyRuleStatusResult() : + ServiceResult() +{} + +ModifyRuleStatusResult::ModifyRuleStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyRuleStatusResult::~ModifyRuleStatusResult() +{} + +void ModifyRuleStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/sddp/src/model/ValidateConnectorRequest.cc b/sddp/src/model/ValidateConnectorRequest.cc new file mode 100644 index 000000000..6eaae5314 --- /dev/null +++ b/sddp/src/model/ValidateConnectorRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sddp::Model::ValidateConnectorRequest; + +ValidateConnectorRequest::ValidateConnectorRequest() : + RpcServiceRequest("sddp", "2019-01-03", "ValidateConnector") +{} + +ValidateConnectorRequest::~ValidateConnectorRequest() +{} + +std::string ValidateConnectorRequest::getPassword()const +{ + return password_; +} + +void ValidateConnectorRequest::setPassword(const std::string& password) +{ + password_ = password; + setCoreParameter("Password", password); +} + +std::string ValidateConnectorRequest::getSourceIp()const +{ + return sourceIp_; +} + +void ValidateConnectorRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string ValidateConnectorRequest::getConnector()const +{ + return connector_; +} + +void ValidateConnectorRequest::setConnector(const std::string& connector) +{ + connector_ = connector; + setCoreParameter("Connector", connector); +} + +std::string ValidateConnectorRequest::getLang()const +{ + return lang_; +} + +void ValidateConnectorRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +int ValidateConnectorRequest::getResourceType()const +{ + return resourceType_; +} + +void ValidateConnectorRequest::setResourceType(int resourceType) +{ + resourceType_ = resourceType; + setCoreParameter("ResourceType", std::to_string(resourceType)); +} + +std::string ValidateConnectorRequest::getServiceRegionId()const +{ + return serviceRegionId_; +} + +void ValidateConnectorRequest::setServiceRegionId(const std::string& serviceRegionId) +{ + serviceRegionId_ = serviceRegionId; + setCoreParameter("ServiceRegionId", serviceRegionId); +} + +std::string ValidateConnectorRequest::getParentId()const +{ + return parentId_; +} + +void ValidateConnectorRequest::setParentId(const std::string& parentId) +{ + parentId_ = parentId; + setCoreParameter("ParentId", parentId); +} + +std::string ValidateConnectorRequest::getUserName()const +{ + return userName_; +} + +void ValidateConnectorRequest::setUserName(const std::string& userName) +{ + userName_ = userName; + setCoreParameter("UserName", userName); +} + diff --git a/sddp/src/model/ValidateConnectorResult.cc b/sddp/src/model/ValidateConnectorResult.cc new file mode 100644 index 000000000..906e37a60 --- /dev/null +++ b/sddp/src/model/ValidateConnectorResult.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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +ValidateConnectorResult::ValidateConnectorResult() : + ServiceResult() +{} + +ValidateConnectorResult::ValidateConnectorResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ValidateConnectorResult::~ValidateConnectorResult() +{} + +void ValidateConnectorResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Connected"].isNull()) + connected_ = value["Connected"].asString() == "true"; + +} + +bool ValidateConnectorResult::getConnected()const +{ + return connected_; +} +