diff --git a/CHANGELOG b/CHANGELOG index 5442b7823..3d2634615 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2019-06-03 Version: 1.36.41 +1, Add openapi of ACL. + 2019-05-31 Version: 1.36.40 1, add api 'search traces count' 2, add page index for api 'searchTraces' diff --git a/VERSION b/VERSION index 48b0ed4f3..a51f54a47 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.40 \ No newline at end of file +1.36.41 \ No newline at end of file diff --git a/smartag/CMakeLists.txt b/smartag/CMakeLists.txt index acc048147..01603aff3 100644 --- a/smartag/CMakeLists.txt +++ b/smartag/CMakeLists.txt @@ -1,166 +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) - +# +# Copyright 2009-2017 Alibaba Cloud All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT 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(smartag_public_header include/alibabacloud/smartag/SmartagClient.h - include/alibabacloud/smartag/SmartagExport.h ) - -set(smartag_public_header_model - include/alibabacloud/smartag/model/DescribeSmartAccessGatewaysRequest.h - include/alibabacloud/smartag/model/DescribeSmartAccessGatewaysResult.h - include/alibabacloud/smartag/model/SwitchCloudBoxHaStateRequest.h - include/alibabacloud/smartag/model/SwitchCloudBoxHaStateResult.h - include/alibabacloud/smartag/model/UnbindSmartAccessGatewayRequest.h - include/alibabacloud/smartag/model/UnbindSmartAccessGatewayResult.h - include/alibabacloud/smartag/model/CreateSmartAccessGatewayRequest.h - include/alibabacloud/smartag/model/CreateSmartAccessGatewayResult.h - include/alibabacloud/smartag/model/DeleteDedicatedLineBackupRequest.h - include/alibabacloud/smartag/model/DeleteDedicatedLineBackupResult.h - include/alibabacloud/smartag/model/UnlockSmartAccessGatewayRequest.h - include/alibabacloud/smartag/model/UnlockSmartAccessGatewayResult.h - include/alibabacloud/smartag/model/ActivateSmartAccessGatewayRequest.h - include/alibabacloud/smartag/model/ActivateSmartAccessGatewayResult.h - include/alibabacloud/smartag/model/CreateDedicatedLineBackupRequest.h - include/alibabacloud/smartag/model/CreateDedicatedLineBackupResult.h - include/alibabacloud/smartag/model/DescribeSmartAccessGatewayHaRequest.h - include/alibabacloud/smartag/model/DescribeSmartAccessGatewayHaResult.h - include/alibabacloud/smartag/model/ModifyCloudConnectNetworkRequest.h - include/alibabacloud/smartag/model/ModifyCloudConnectNetworkResult.h - include/alibabacloud/smartag/model/DeleteCloudConnectNetworkRequest.h - include/alibabacloud/smartag/model/DeleteCloudConnectNetworkResult.h - include/alibabacloud/smartag/model/CreateCloudConnectNetworkRequest.h - include/alibabacloud/smartag/model/CreateCloudConnectNetworkResult.h - include/alibabacloud/smartag/model/RebootSmartAccessGatewayRequest.h - include/alibabacloud/smartag/model/RebootSmartAccessGatewayResult.h - include/alibabacloud/smartag/model/BindSmartAccessGatewayRequest.h - include/alibabacloud/smartag/model/BindSmartAccessGatewayResult.h - include/alibabacloud/smartag/model/DescribeRegionsRequest.h - include/alibabacloud/smartag/model/DescribeRegionsResult.h - include/alibabacloud/smartag/model/GetSmartAccessGatewayUseLimitRequest.h - include/alibabacloud/smartag/model/GetSmartAccessGatewayUseLimitResult.h - include/alibabacloud/smartag/model/ModifySmartAccessGatewayRequest.h - include/alibabacloud/smartag/model/ModifySmartAccessGatewayResult.h - include/alibabacloud/smartag/model/DescribeCloudConnectNetworksRequest.h - include/alibabacloud/smartag/model/DescribeCloudConnectNetworksResult.h - include/alibabacloud/smartag/model/DescribeSmartAccessGatewayVersionsRequest.h - include/alibabacloud/smartag/model/DescribeSmartAccessGatewayVersionsResult.h - include/alibabacloud/smartag/model/UpdateSmartAccessGatewayVersionRequest.h - include/alibabacloud/smartag/model/UpdateSmartAccessGatewayVersionResult.h - include/alibabacloud/smartag/model/GetCloudConnectNetworkUseLimitRequest.h - include/alibabacloud/smartag/model/GetCloudConnectNetworkUseLimitResult.h ) - + include/alibabacloud/smartag/SmartagExport.h ) + +set(smartag_public_header_model ) + set(smartag_src - src/SmartagClient.cc - src/model/DescribeSmartAccessGatewaysRequest.cc - src/model/DescribeSmartAccessGatewaysResult.cc - src/model/SwitchCloudBoxHaStateRequest.cc - src/model/SwitchCloudBoxHaStateResult.cc - src/model/UnbindSmartAccessGatewayRequest.cc - src/model/UnbindSmartAccessGatewayResult.cc - src/model/CreateSmartAccessGatewayRequest.cc - src/model/CreateSmartAccessGatewayResult.cc - src/model/DeleteDedicatedLineBackupRequest.cc - src/model/DeleteDedicatedLineBackupResult.cc - src/model/UnlockSmartAccessGatewayRequest.cc - src/model/UnlockSmartAccessGatewayResult.cc - src/model/ActivateSmartAccessGatewayRequest.cc - src/model/ActivateSmartAccessGatewayResult.cc - src/model/CreateDedicatedLineBackupRequest.cc - src/model/CreateDedicatedLineBackupResult.cc - src/model/DescribeSmartAccessGatewayHaRequest.cc - src/model/DescribeSmartAccessGatewayHaResult.cc - src/model/ModifyCloudConnectNetworkRequest.cc - src/model/ModifyCloudConnectNetworkResult.cc - src/model/DeleteCloudConnectNetworkRequest.cc - src/model/DeleteCloudConnectNetworkResult.cc - src/model/CreateCloudConnectNetworkRequest.cc - src/model/CreateCloudConnectNetworkResult.cc - src/model/RebootSmartAccessGatewayRequest.cc - src/model/RebootSmartAccessGatewayResult.cc - src/model/BindSmartAccessGatewayRequest.cc - src/model/BindSmartAccessGatewayResult.cc - src/model/DescribeRegionsRequest.cc - src/model/DescribeRegionsResult.cc - src/model/GetSmartAccessGatewayUseLimitRequest.cc - src/model/GetSmartAccessGatewayUseLimitResult.cc - src/model/ModifySmartAccessGatewayRequest.cc - src/model/ModifySmartAccessGatewayResult.cc - src/model/DescribeCloudConnectNetworksRequest.cc - src/model/DescribeCloudConnectNetworksResult.cc - src/model/DescribeSmartAccessGatewayVersionsRequest.cc - src/model/DescribeSmartAccessGatewayVersionsResult.cc - src/model/UpdateSmartAccessGatewayVersionRequest.cc - src/model/UpdateSmartAccessGatewayVersionResult.cc - src/model/GetCloudConnectNetworkUseLimitRequest.cc - src/model/GetCloudConnectNetworkUseLimitResult.cc ) - -add_library(smartag ${LIB_TYPE} - ${smartag_public_header} - ${smartag_public_header_model} - ${smartag_src}) - -set_target_properties(smartag - 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}smartag - ) - -if(${LIB_TYPE} STREQUAL "SHARED") - set_target_properties(smartag - PROPERTIES - DEFINE_SYMBOL ALIBABACLOUD_SMARTAG_LIBRARY) -endif() - -target_include_directories(smartag - PRIVATE include - ${CMAKE_SOURCE_DIR}/core/include - ) -target_link_libraries(smartag - core) - -if(CMAKE_HOST_WIN32) - ExternalProject_Get_Property(jsoncpp INSTALL_DIR) - set(jsoncpp_install_dir ${INSTALL_DIR}) - add_dependencies(smartag - jsoncpp) - target_include_directories(smartag - PRIVATE ${jsoncpp_install_dir}/include) - target_link_libraries(smartag - ${jsoncpp_install_dir}/lib/jsoncpp.lib) - set_target_properties(smartag - PROPERTIES - COMPILE_OPTIONS "/bigobj") -else() - target_include_directories(smartag - PRIVATE /usr/include/jsoncpp) - target_link_libraries(smartag - jsoncpp) -endif() - -install(FILES ${smartag_public_header} - DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/smartag) -install(FILES ${smartag_public_header_model} - DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/smartag/model) -install(TARGETS smartag - ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} - LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} - RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + src/SmartagClient.cc ) + +add_library(smartag ${LIB_TYPE} + ${smartag_public_header} + ${smartag_public_header_model} + ${smartag_src}) + +set_target_properties(smartag + 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}smartag + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(smartag + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_SMARTAG_LIBRARY) +endif() + +target_include_directories(smartag + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(smartag + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(smartag + jsoncpp) + target_include_directories(smartag + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(smartag + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(smartag + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(smartag + PRIVATE /usr/include/jsoncpp) + target_link_libraries(smartag + jsoncpp) +endif() + +install(FILES ${smartag_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/smartag) +install(FILES ${smartag_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/smartag/model) +install(TARGETS smartag + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} ) \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/SmartagClient.h b/smartag/include/alibabacloud/smartag/SmartagClient.h index 1c601e0e6..3eb7c0f40 100644 --- a/smartag/include/alibabacloud/smartag/SmartagClient.h +++ b/smartag/include/alibabacloud/smartag/SmartagClient.h @@ -1,214 +1,574 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_SMARTAGCLIENT_H_ -#define ALIBABACLOUD_SMARTAG_SMARTAGCLIENT_H_ - -#include -#include -#include -#include -#include "SmartagExport.h" -#include "model/DescribeSmartAccessGatewaysRequest.h" -#include "model/DescribeSmartAccessGatewaysResult.h" +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_SMARTAGCLIENT_H_ +#define ALIBABACLOUD_SMARTAG_SMARTAGCLIENT_H_ + +#include +#include +#include +#include +#include "SmartagExport.h" +#include "model/GrantInstanceToCbnRequest.h" +#include "model/GrantInstanceToCbnResult.h" +#include "model/DeleteNetworkOptimizationRequest.h" +#include "model/DeleteNetworkOptimizationResult.h" +#include "model/AddNetworkOptimizationSettingRequest.h" +#include "model/AddNetworkOptimizationSettingResult.h" +#include "model/ActivateSmartAccessGatewayRequest.h" +#include "model/ActivateSmartAccessGatewayResult.h" +#include "model/DeleteACLRuleRequest.h" +#include "model/DeleteACLRuleResult.h" +#include "model/ModifyNetworkOptimizationRequest.h" +#include "model/ModifyNetworkOptimizationResult.h" +#include "model/CreateSmartAccessGatewayClientUserRequest.h" +#include "model/CreateSmartAccessGatewayClientUserResult.h" +#include "model/UnicomSignConfirmRequest.h" +#include "model/UnicomSignConfirmResult.h" +#include "model/AddACLRuleRequest.h" +#include "model/AddACLRuleResult.h" +#include "model/DisassociateACLRequest.h" +#include "model/DisassociateACLResult.h" +#include "model/BindSmartAccessGatewayRequest.h" +#include "model/BindSmartAccessGatewayResult.h" +#include "model/CreateNetworkOptimizationRequest.h" +#include "model/CreateNetworkOptimizationResult.h" +#include "model/DeleteSAGLinkLevelHaRequest.h" +#include "model/DeleteSAGLinkLevelHaResult.h" +#include "model/DeleteSmartAccessGatewayClientUserRequest.h" +#include "model/DeleteSmartAccessGatewayClientUserResult.h" +#include "model/KickOutClientsRequest.h" +#include "model/KickOutClientsResult.h" +#include "model/SwitchSAGHaStateRequest.h" +#include "model/SwitchSAGHaStateResult.h" +#include "model/DescribeSagRouteableAddressRequest.h" +#include "model/DescribeSagRouteableAddressResult.h" +#include "model/DescribeGrantRulesRequest.h" +#include "model/DescribeGrantRulesResult.h" #include "model/SwitchCloudBoxHaStateRequest.h" #include "model/SwitchCloudBoxHaStateResult.h" #include "model/UnbindSmartAccessGatewayRequest.h" #include "model/UnbindSmartAccessGatewayResult.h" #include "model/CreateSmartAccessGatewayRequest.h" #include "model/CreateSmartAccessGatewayResult.h" -#include "model/DeleteDedicatedLineBackupRequest.h" -#include "model/DeleteDedicatedLineBackupResult.h" -#include "model/UnlockSmartAccessGatewayRequest.h" -#include "model/UnlockSmartAccessGatewayResult.h" -#include "model/ActivateSmartAccessGatewayRequest.h" -#include "model/ActivateSmartAccessGatewayResult.h" -#include "model/CreateDedicatedLineBackupRequest.h" -#include "model/CreateDedicatedLineBackupResult.h" -#include "model/DescribeSmartAccessGatewayHaRequest.h" -#include "model/DescribeSmartAccessGatewayHaResult.h" +#include "model/AttachNetworkOptimizationSagsRequest.h" +#include "model/AttachNetworkOptimizationSagsResult.h" +#include "model/ClearSagRouteableAddressRequest.h" +#include "model/ClearSagRouteableAddressResult.h" #include "model/ModifyCloudConnectNetworkRequest.h" #include "model/ModifyCloudConnectNetworkResult.h" -#include "model/DeleteCloudConnectNetworkRequest.h" -#include "model/DeleteCloudConnectNetworkResult.h" -#include "model/CreateCloudConnectNetworkRequest.h" -#include "model/CreateCloudConnectNetworkResult.h" -#include "model/RebootSmartAccessGatewayRequest.h" -#include "model/RebootSmartAccessGatewayResult.h" -#include "model/BindSmartAccessGatewayRequest.h" -#include "model/BindSmartAccessGatewayResult.h" -#include "model/DescribeRegionsRequest.h" -#include "model/DescribeRegionsResult.h" -#include "model/GetSmartAccessGatewayUseLimitRequest.h" -#include "model/GetSmartAccessGatewayUseLimitResult.h" -#include "model/ModifySmartAccessGatewayRequest.h" -#include "model/ModifySmartAccessGatewayResult.h" -#include "model/DescribeCloudConnectNetworksRequest.h" -#include "model/DescribeCloudConnectNetworksResult.h" +#include "model/DeleteACLRequest.h" +#include "model/DeleteACLResult.h" +#include "model/DescribeSagOnlineClientStatisticsRequest.h" +#include "model/DescribeSagOnlineClientStatisticsResult.h" +#include "model/DowngradeSmartAccessGatewayRequest.h" +#include "model/DowngradeSmartAccessGatewayResult.h" +#include "model/AssociateACLRequest.h" +#include "model/AssociateACLResult.h" #include "model/DescribeSmartAccessGatewayVersionsRequest.h" #include "model/DescribeSmartAccessGatewayVersionsResult.h" #include "model/UpdateSmartAccessGatewayVersionRequest.h" #include "model/UpdateSmartAccessGatewayVersionResult.h" +#include "model/ModifySmartAccessGatewayRequest.h" +#include "model/ModifySmartAccessGatewayResult.h" +#include "model/RevokeInstanceFromCbnRequest.h" +#include "model/RevokeInstanceFromCbnResult.h" +#include "model/ModifySerialNumberRequest.h" +#include "model/ModifySerialNumberResult.h" +#include "model/DescribeACLAttributeRequest.h" +#include "model/DescribeACLAttributeResult.h" +#include "model/DeleteDedicatedLineBackupRequest.h" +#include "model/DeleteDedicatedLineBackupResult.h" +#include "model/ResetSmartAccessGatewayClientUserPasswordRequest.h" +#include "model/ResetSmartAccessGatewayClientUserPasswordResult.h" +#include "model/DescribeACLsRequest.h" +#include "model/DescribeACLsResult.h" +#include "model/UnlockSmartAccessGatewayRequest.h" +#include "model/UnlockSmartAccessGatewayResult.h" +#include "model/CreateSAGLinkLevelHaRequest.h" +#include "model/CreateSAGLinkLevelHaResult.h" +#include "model/DescribeSmartAccessGatewayHaRequest.h" +#include "model/DescribeSmartAccessGatewayHaResult.h" +#include "model/CreateSmartAccessGatewaySoftwareRequest.h" +#include "model/CreateSmartAccessGatewaySoftwareResult.h" +#include "model/DescribeNetworkOptimizationSettingsRequest.h" +#include "model/DescribeNetworkOptimizationSettingsResult.h" +#include "model/DeleteCloudConnectNetworkRequest.h" +#include "model/DeleteCloudConnectNetworkResult.h" +#include "model/CreateACLRequest.h" +#include "model/CreateACLResult.h" +#include "model/DescribeNetworkOptimizationSagsRequest.h" +#include "model/DescribeNetworkOptimizationSagsResult.h" +#include "model/CreateCloudConnectNetworkRequest.h" +#include "model/CreateCloudConnectNetworkResult.h" +#include "model/RebootSmartAccessGatewayRequest.h" +#include "model/RebootSmartAccessGatewayResult.h" +#include "model/DescribeRegionsRequest.h" +#include "model/DescribeRegionsResult.h" +#include "model/DescribeCloudConnectNetworksRequest.h" +#include "model/DescribeCloudConnectNetworksResult.h" +#include "model/ModifyACLRuleRequest.h" +#include "model/ModifyACLRuleResult.h" +#include "model/ModifySmartAccessGatewayClientUserRequest.h" +#include "model/ModifySmartAccessGatewayClientUserResult.h" +#include "model/DeleteNetworkOptimizationSettingRequest.h" +#include "model/DeleteNetworkOptimizationSettingResult.h" #include "model/GetCloudConnectNetworkUseLimitRequest.h" #include "model/GetCloudConnectNetworkUseLimitResult.h" - - -namespace AlibabaCloud -{ - namespace Smartag - { - class ALIBABACLOUD_SMARTAG_EXPORT SmartagClient : public RpcServiceClient - { - public: - typedef Outcome DescribeSmartAccessGatewaysOutcome; - typedef std::future DescribeSmartAccessGatewaysOutcomeCallable; - typedef std::function&)> DescribeSmartAccessGatewaysAsyncHandler; - typedef Outcome SwitchCloudBoxHaStateOutcome; - typedef std::future SwitchCloudBoxHaStateOutcomeCallable; - typedef std::function&)> SwitchCloudBoxHaStateAsyncHandler; - typedef Outcome UnbindSmartAccessGatewayOutcome; - typedef std::future UnbindSmartAccessGatewayOutcomeCallable; - typedef std::function&)> UnbindSmartAccessGatewayAsyncHandler; - typedef Outcome CreateSmartAccessGatewayOutcome; - typedef std::future CreateSmartAccessGatewayOutcomeCallable; - typedef std::function&)> CreateSmartAccessGatewayAsyncHandler; - typedef Outcome DeleteDedicatedLineBackupOutcome; - typedef std::future DeleteDedicatedLineBackupOutcomeCallable; - typedef std::function&)> DeleteDedicatedLineBackupAsyncHandler; - typedef Outcome UnlockSmartAccessGatewayOutcome; - typedef std::future UnlockSmartAccessGatewayOutcomeCallable; - typedef std::function&)> UnlockSmartAccessGatewayAsyncHandler; - typedef Outcome ActivateSmartAccessGatewayOutcome; - typedef std::future ActivateSmartAccessGatewayOutcomeCallable; +#include "model/DescribeSmartAccessGatewaysRequest.h" +#include "model/DescribeSmartAccessGatewaysResult.h" +#include "model/UpgradeSmartAccessGatewayRequest.h" +#include "model/UpgradeSmartAccessGatewayResult.h" +#include "model/DescribeUserOnlineClientsRequest.h" +#include "model/DescribeUserOnlineClientsResult.h" +#include "model/DetachNetworkOptimizationSagsRequest.h" +#include "model/DetachNetworkOptimizationSagsResult.h" +#include "model/DescribeUserOnlineClientStatisticsRequest.h" +#include "model/DescribeUserOnlineClientStatisticsResult.h" +#include "model/CreateDedicatedLineBackupRequest.h" +#include "model/CreateDedicatedLineBackupResult.h" +#include "model/DescribeUserFlowStatisticsRequest.h" +#include "model/DescribeUserFlowStatisticsResult.h" +#include "model/SetSagRouteableAddressRequest.h" +#include "model/SetSagRouteableAddressResult.h" +#include "model/ModifyACLRequest.h" +#include "model/ModifyACLResult.h" +#include "model/DescribeSmartAccessGatewayClientUsersRequest.h" +#include "model/DescribeSmartAccessGatewayClientUsersResult.h" +#include "model/GetSmartAccessGatewayUseLimitRequest.h" +#include "model/GetSmartAccessGatewayUseLimitResult.h" +#include "model/UnicomOrderConfirmRequest.h" +#include "model/UnicomOrderConfirmResult.h" +#include "model/DescribeNetworkOptimizationsRequest.h" +#include "model/DescribeNetworkOptimizationsResult.h" + + +namespace AlibabaCloud +{ + namespace Smartag + { + class ALIBABACLOUD_SMARTAG_EXPORT SmartagClient : public RpcServiceClient + { + public: + typedef Outcome GrantInstanceToCbnOutcome; + typedef std::future GrantInstanceToCbnOutcomeCallable; + typedef std::function&)> GrantInstanceToCbnAsyncHandler; + typedef Outcome DeleteNetworkOptimizationOutcome; + typedef std::future DeleteNetworkOptimizationOutcomeCallable; + typedef std::function&)> DeleteNetworkOptimizationAsyncHandler; + typedef Outcome AddNetworkOptimizationSettingOutcome; + typedef std::future AddNetworkOptimizationSettingOutcomeCallable; + typedef std::function&)> AddNetworkOptimizationSettingAsyncHandler; + typedef Outcome ActivateSmartAccessGatewayOutcome; + typedef std::future ActivateSmartAccessGatewayOutcomeCallable; typedef std::function&)> ActivateSmartAccessGatewayAsyncHandler; - typedef Outcome CreateDedicatedLineBackupOutcome; - typedef std::future CreateDedicatedLineBackupOutcomeCallable; - typedef std::function&)> CreateDedicatedLineBackupAsyncHandler; - typedef Outcome DescribeSmartAccessGatewayHaOutcome; - typedef std::future DescribeSmartAccessGatewayHaOutcomeCallable; - typedef std::function&)> DescribeSmartAccessGatewayHaAsyncHandler; - typedef Outcome ModifyCloudConnectNetworkOutcome; - typedef std::future ModifyCloudConnectNetworkOutcomeCallable; - typedef std::function&)> ModifyCloudConnectNetworkAsyncHandler; - typedef Outcome DeleteCloudConnectNetworkOutcome; - typedef std::future DeleteCloudConnectNetworkOutcomeCallable; - typedef std::function&)> DeleteCloudConnectNetworkAsyncHandler; - typedef Outcome CreateCloudConnectNetworkOutcome; - typedef std::future CreateCloudConnectNetworkOutcomeCallable; - typedef std::function&)> CreateCloudConnectNetworkAsyncHandler; - typedef Outcome RebootSmartAccessGatewayOutcome; - typedef std::future RebootSmartAccessGatewayOutcomeCallable; - typedef std::function&)> RebootSmartAccessGatewayAsyncHandler; - typedef Outcome BindSmartAccessGatewayOutcome; - typedef std::future BindSmartAccessGatewayOutcomeCallable; + typedef Outcome DeleteACLRuleOutcome; + typedef std::future DeleteACLRuleOutcomeCallable; + typedef std::function&)> DeleteACLRuleAsyncHandler; + typedef Outcome ModifyNetworkOptimizationOutcome; + typedef std::future ModifyNetworkOptimizationOutcomeCallable; + typedef std::function&)> ModifyNetworkOptimizationAsyncHandler; + typedef Outcome CreateSmartAccessGatewayClientUserOutcome; + typedef std::future CreateSmartAccessGatewayClientUserOutcomeCallable; + typedef std::function&)> CreateSmartAccessGatewayClientUserAsyncHandler; + typedef Outcome UnicomSignConfirmOutcome; + typedef std::future UnicomSignConfirmOutcomeCallable; + typedef std::function&)> UnicomSignConfirmAsyncHandler; + typedef Outcome AddACLRuleOutcome; + typedef std::future AddACLRuleOutcomeCallable; + typedef std::function&)> AddACLRuleAsyncHandler; + typedef Outcome DisassociateACLOutcome; + typedef std::future DisassociateACLOutcomeCallable; + typedef std::function&)> DisassociateACLAsyncHandler; + typedef Outcome BindSmartAccessGatewayOutcome; + typedef std::future BindSmartAccessGatewayOutcomeCallable; typedef std::function&)> BindSmartAccessGatewayAsyncHandler; - typedef Outcome DescribeRegionsOutcome; - typedef std::future DescribeRegionsOutcomeCallable; - typedef std::function&)> DescribeRegionsAsyncHandler; - typedef Outcome GetSmartAccessGatewayUseLimitOutcome; - typedef std::future GetSmartAccessGatewayUseLimitOutcomeCallable; - typedef std::function&)> GetSmartAccessGatewayUseLimitAsyncHandler; - typedef Outcome ModifySmartAccessGatewayOutcome; - typedef std::future ModifySmartAccessGatewayOutcomeCallable; - typedef std::function&)> ModifySmartAccessGatewayAsyncHandler; - typedef Outcome DescribeCloudConnectNetworksOutcome; - typedef std::future DescribeCloudConnectNetworksOutcomeCallable; - typedef std::function&)> DescribeCloudConnectNetworksAsyncHandler; - typedef Outcome DescribeSmartAccessGatewayVersionsOutcome; - typedef std::future DescribeSmartAccessGatewayVersionsOutcomeCallable; + typedef Outcome CreateNetworkOptimizationOutcome; + typedef std::future CreateNetworkOptimizationOutcomeCallable; + typedef std::function&)> CreateNetworkOptimizationAsyncHandler; + typedef Outcome DeleteSAGLinkLevelHaOutcome; + typedef std::future DeleteSAGLinkLevelHaOutcomeCallable; + typedef std::function&)> DeleteSAGLinkLevelHaAsyncHandler; + typedef Outcome DeleteSmartAccessGatewayClientUserOutcome; + typedef std::future DeleteSmartAccessGatewayClientUserOutcomeCallable; + typedef std::function&)> DeleteSmartAccessGatewayClientUserAsyncHandler; + typedef Outcome KickOutClientsOutcome; + typedef std::future KickOutClientsOutcomeCallable; + typedef std::function&)> KickOutClientsAsyncHandler; + typedef Outcome SwitchSAGHaStateOutcome; + typedef std::future SwitchSAGHaStateOutcomeCallable; + typedef std::function&)> SwitchSAGHaStateAsyncHandler; + typedef Outcome DescribeSagRouteableAddressOutcome; + typedef std::future DescribeSagRouteableAddressOutcomeCallable; + typedef std::function&)> DescribeSagRouteableAddressAsyncHandler; + typedef Outcome DescribeGrantRulesOutcome; + typedef std::future DescribeGrantRulesOutcomeCallable; + typedef std::function&)> DescribeGrantRulesAsyncHandler; + typedef Outcome SwitchCloudBoxHaStateOutcome; + typedef std::future SwitchCloudBoxHaStateOutcomeCallable; + typedef std::function&)> SwitchCloudBoxHaStateAsyncHandler; + typedef Outcome UnbindSmartAccessGatewayOutcome; + typedef std::future UnbindSmartAccessGatewayOutcomeCallable; + typedef std::function&)> UnbindSmartAccessGatewayAsyncHandler; + typedef Outcome CreateSmartAccessGatewayOutcome; + typedef std::future CreateSmartAccessGatewayOutcomeCallable; + typedef std::function&)> CreateSmartAccessGatewayAsyncHandler; + typedef Outcome AttachNetworkOptimizationSagsOutcome; + typedef std::future AttachNetworkOptimizationSagsOutcomeCallable; + typedef std::function&)> AttachNetworkOptimizationSagsAsyncHandler; + typedef Outcome ClearSagRouteableAddressOutcome; + typedef std::future ClearSagRouteableAddressOutcomeCallable; + typedef std::function&)> ClearSagRouteableAddressAsyncHandler; + typedef Outcome ModifyCloudConnectNetworkOutcome; + typedef std::future ModifyCloudConnectNetworkOutcomeCallable; + typedef std::function&)> ModifyCloudConnectNetworkAsyncHandler; + typedef Outcome DeleteACLOutcome; + typedef std::future DeleteACLOutcomeCallable; + typedef std::function&)> DeleteACLAsyncHandler; + typedef Outcome DescribeSagOnlineClientStatisticsOutcome; + typedef std::future DescribeSagOnlineClientStatisticsOutcomeCallable; + typedef std::function&)> DescribeSagOnlineClientStatisticsAsyncHandler; + typedef Outcome DowngradeSmartAccessGatewayOutcome; + typedef std::future DowngradeSmartAccessGatewayOutcomeCallable; + typedef std::function&)> DowngradeSmartAccessGatewayAsyncHandler; + typedef Outcome AssociateACLOutcome; + typedef std::future AssociateACLOutcomeCallable; + typedef std::function&)> AssociateACLAsyncHandler; + typedef Outcome DescribeSmartAccessGatewayVersionsOutcome; + typedef std::future DescribeSmartAccessGatewayVersionsOutcomeCallable; typedef std::function&)> DescribeSmartAccessGatewayVersionsAsyncHandler; - typedef Outcome UpdateSmartAccessGatewayVersionOutcome; - typedef std::future UpdateSmartAccessGatewayVersionOutcomeCallable; + typedef Outcome UpdateSmartAccessGatewayVersionOutcome; + typedef std::future UpdateSmartAccessGatewayVersionOutcomeCallable; typedef std::function&)> UpdateSmartAccessGatewayVersionAsyncHandler; - typedef Outcome GetCloudConnectNetworkUseLimitOutcome; - typedef std::future GetCloudConnectNetworkUseLimitOutcomeCallable; + typedef Outcome ModifySmartAccessGatewayOutcome; + typedef std::future ModifySmartAccessGatewayOutcomeCallable; + typedef std::function&)> ModifySmartAccessGatewayAsyncHandler; + typedef Outcome RevokeInstanceFromCbnOutcome; + typedef std::future RevokeInstanceFromCbnOutcomeCallable; + typedef std::function&)> RevokeInstanceFromCbnAsyncHandler; + typedef Outcome ModifySerialNumberOutcome; + typedef std::future ModifySerialNumberOutcomeCallable; + typedef std::function&)> ModifySerialNumberAsyncHandler; + typedef Outcome DescribeACLAttributeOutcome; + typedef std::future DescribeACLAttributeOutcomeCallable; + typedef std::function&)> DescribeACLAttributeAsyncHandler; + typedef Outcome DeleteDedicatedLineBackupOutcome; + typedef std::future DeleteDedicatedLineBackupOutcomeCallable; + typedef std::function&)> DeleteDedicatedLineBackupAsyncHandler; + typedef Outcome ResetSmartAccessGatewayClientUserPasswordOutcome; + typedef std::future ResetSmartAccessGatewayClientUserPasswordOutcomeCallable; + typedef std::function&)> ResetSmartAccessGatewayClientUserPasswordAsyncHandler; + typedef Outcome DescribeACLsOutcome; + typedef std::future DescribeACLsOutcomeCallable; + typedef std::function&)> DescribeACLsAsyncHandler; + typedef Outcome UnlockSmartAccessGatewayOutcome; + typedef std::future UnlockSmartAccessGatewayOutcomeCallable; + typedef std::function&)> UnlockSmartAccessGatewayAsyncHandler; + typedef Outcome CreateSAGLinkLevelHaOutcome; + typedef std::future CreateSAGLinkLevelHaOutcomeCallable; + typedef std::function&)> CreateSAGLinkLevelHaAsyncHandler; + typedef Outcome DescribeSmartAccessGatewayHaOutcome; + typedef std::future DescribeSmartAccessGatewayHaOutcomeCallable; + typedef std::function&)> DescribeSmartAccessGatewayHaAsyncHandler; + typedef Outcome CreateSmartAccessGatewaySoftwareOutcome; + typedef std::future CreateSmartAccessGatewaySoftwareOutcomeCallable; + typedef std::function&)> CreateSmartAccessGatewaySoftwareAsyncHandler; + typedef Outcome DescribeNetworkOptimizationSettingsOutcome; + typedef std::future DescribeNetworkOptimizationSettingsOutcomeCallable; + typedef std::function&)> DescribeNetworkOptimizationSettingsAsyncHandler; + typedef Outcome DeleteCloudConnectNetworkOutcome; + typedef std::future DeleteCloudConnectNetworkOutcomeCallable; + typedef std::function&)> DeleteCloudConnectNetworkAsyncHandler; + typedef Outcome CreateACLOutcome; + typedef std::future CreateACLOutcomeCallable; + typedef std::function&)> CreateACLAsyncHandler; + typedef Outcome DescribeNetworkOptimizationSagsOutcome; + typedef std::future DescribeNetworkOptimizationSagsOutcomeCallable; + typedef std::function&)> DescribeNetworkOptimizationSagsAsyncHandler; + typedef Outcome CreateCloudConnectNetworkOutcome; + typedef std::future CreateCloudConnectNetworkOutcomeCallable; + typedef std::function&)> CreateCloudConnectNetworkAsyncHandler; + typedef Outcome RebootSmartAccessGatewayOutcome; + typedef std::future RebootSmartAccessGatewayOutcomeCallable; + typedef std::function&)> RebootSmartAccessGatewayAsyncHandler; + typedef Outcome DescribeRegionsOutcome; + typedef std::future DescribeRegionsOutcomeCallable; + typedef std::function&)> DescribeRegionsAsyncHandler; + typedef Outcome DescribeCloudConnectNetworksOutcome; + typedef std::future DescribeCloudConnectNetworksOutcomeCallable; + typedef std::function&)> DescribeCloudConnectNetworksAsyncHandler; + typedef Outcome ModifyACLRuleOutcome; + typedef std::future ModifyACLRuleOutcomeCallable; + typedef std::function&)> ModifyACLRuleAsyncHandler; + typedef Outcome ModifySmartAccessGatewayClientUserOutcome; + typedef std::future ModifySmartAccessGatewayClientUserOutcomeCallable; + typedef std::function&)> ModifySmartAccessGatewayClientUserAsyncHandler; + typedef Outcome DeleteNetworkOptimizationSettingOutcome; + typedef std::future DeleteNetworkOptimizationSettingOutcomeCallable; + typedef std::function&)> DeleteNetworkOptimizationSettingAsyncHandler; + typedef Outcome GetCloudConnectNetworkUseLimitOutcome; + typedef std::future GetCloudConnectNetworkUseLimitOutcomeCallable; typedef std::function&)> GetCloudConnectNetworkUseLimitAsyncHandler; - - SmartagClient(const Credentials &credentials, const ClientConfiguration &configuration); - SmartagClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); - SmartagClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); - ~SmartagClient(); - DescribeSmartAccessGatewaysOutcome describeSmartAccessGateways(const Model::DescribeSmartAccessGatewaysRequest &request)const; - void describeSmartAccessGatewaysAsync(const Model::DescribeSmartAccessGatewaysRequest& request, const DescribeSmartAccessGatewaysAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeSmartAccessGatewaysOutcomeCallable describeSmartAccessGatewaysCallable(const Model::DescribeSmartAccessGatewaysRequest& request) const; - SwitchCloudBoxHaStateOutcome switchCloudBoxHaState(const Model::SwitchCloudBoxHaStateRequest &request)const; - void switchCloudBoxHaStateAsync(const Model::SwitchCloudBoxHaStateRequest& request, const SwitchCloudBoxHaStateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SwitchCloudBoxHaStateOutcomeCallable switchCloudBoxHaStateCallable(const Model::SwitchCloudBoxHaStateRequest& request) const; - UnbindSmartAccessGatewayOutcome unbindSmartAccessGateway(const Model::UnbindSmartAccessGatewayRequest &request)const; - void unbindSmartAccessGatewayAsync(const Model::UnbindSmartAccessGatewayRequest& request, const UnbindSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UnbindSmartAccessGatewayOutcomeCallable unbindSmartAccessGatewayCallable(const Model::UnbindSmartAccessGatewayRequest& request) const; - CreateSmartAccessGatewayOutcome createSmartAccessGateway(const Model::CreateSmartAccessGatewayRequest &request)const; - void createSmartAccessGatewayAsync(const Model::CreateSmartAccessGatewayRequest& request, const CreateSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateSmartAccessGatewayOutcomeCallable createSmartAccessGatewayCallable(const Model::CreateSmartAccessGatewayRequest& request) const; - DeleteDedicatedLineBackupOutcome deleteDedicatedLineBackup(const Model::DeleteDedicatedLineBackupRequest &request)const; - void deleteDedicatedLineBackupAsync(const Model::DeleteDedicatedLineBackupRequest& request, const DeleteDedicatedLineBackupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteDedicatedLineBackupOutcomeCallable deleteDedicatedLineBackupCallable(const Model::DeleteDedicatedLineBackupRequest& request) const; - UnlockSmartAccessGatewayOutcome unlockSmartAccessGateway(const Model::UnlockSmartAccessGatewayRequest &request)const; - void unlockSmartAccessGatewayAsync(const Model::UnlockSmartAccessGatewayRequest& request, const UnlockSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UnlockSmartAccessGatewayOutcomeCallable unlockSmartAccessGatewayCallable(const Model::UnlockSmartAccessGatewayRequest& request) const; - ActivateSmartAccessGatewayOutcome activateSmartAccessGateway(const Model::ActivateSmartAccessGatewayRequest &request)const; - void activateSmartAccessGatewayAsync(const Model::ActivateSmartAccessGatewayRequest& request, const ActivateSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + typedef Outcome DescribeSmartAccessGatewaysOutcome; + typedef std::future DescribeSmartAccessGatewaysOutcomeCallable; + typedef std::function&)> DescribeSmartAccessGatewaysAsyncHandler; + typedef Outcome UpgradeSmartAccessGatewayOutcome; + typedef std::future UpgradeSmartAccessGatewayOutcomeCallable; + typedef std::function&)> UpgradeSmartAccessGatewayAsyncHandler; + typedef Outcome DescribeUserOnlineClientsOutcome; + typedef std::future DescribeUserOnlineClientsOutcomeCallable; + typedef std::function&)> DescribeUserOnlineClientsAsyncHandler; + typedef Outcome DetachNetworkOptimizationSagsOutcome; + typedef std::future DetachNetworkOptimizationSagsOutcomeCallable; + typedef std::function&)> DetachNetworkOptimizationSagsAsyncHandler; + typedef Outcome DescribeUserOnlineClientStatisticsOutcome; + typedef std::future DescribeUserOnlineClientStatisticsOutcomeCallable; + typedef std::function&)> DescribeUserOnlineClientStatisticsAsyncHandler; + typedef Outcome CreateDedicatedLineBackupOutcome; + typedef std::future CreateDedicatedLineBackupOutcomeCallable; + typedef std::function&)> CreateDedicatedLineBackupAsyncHandler; + typedef Outcome DescribeUserFlowStatisticsOutcome; + typedef std::future DescribeUserFlowStatisticsOutcomeCallable; + typedef std::function&)> DescribeUserFlowStatisticsAsyncHandler; + typedef Outcome SetSagRouteableAddressOutcome; + typedef std::future SetSagRouteableAddressOutcomeCallable; + typedef std::function&)> SetSagRouteableAddressAsyncHandler; + typedef Outcome ModifyACLOutcome; + typedef std::future ModifyACLOutcomeCallable; + typedef std::function&)> ModifyACLAsyncHandler; + typedef Outcome DescribeSmartAccessGatewayClientUsersOutcome; + typedef std::future DescribeSmartAccessGatewayClientUsersOutcomeCallable; + typedef std::function&)> DescribeSmartAccessGatewayClientUsersAsyncHandler; + typedef Outcome GetSmartAccessGatewayUseLimitOutcome; + typedef std::future GetSmartAccessGatewayUseLimitOutcomeCallable; + typedef std::function&)> GetSmartAccessGatewayUseLimitAsyncHandler; + typedef Outcome UnicomOrderConfirmOutcome; + typedef std::future UnicomOrderConfirmOutcomeCallable; + typedef std::function&)> UnicomOrderConfirmAsyncHandler; + typedef Outcome DescribeNetworkOptimizationsOutcome; + typedef std::future DescribeNetworkOptimizationsOutcomeCallable; + typedef std::function&)> DescribeNetworkOptimizationsAsyncHandler; + + SmartagClient(const Credentials &credentials, const ClientConfiguration &configuration); + SmartagClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + SmartagClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~SmartagClient(); + GrantInstanceToCbnOutcome grantInstanceToCbn(const Model::GrantInstanceToCbnRequest &request)const; + void grantInstanceToCbnAsync(const Model::GrantInstanceToCbnRequest& request, const GrantInstanceToCbnAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GrantInstanceToCbnOutcomeCallable grantInstanceToCbnCallable(const Model::GrantInstanceToCbnRequest& request) const; + DeleteNetworkOptimizationOutcome deleteNetworkOptimization(const Model::DeleteNetworkOptimizationRequest &request)const; + void deleteNetworkOptimizationAsync(const Model::DeleteNetworkOptimizationRequest& request, const DeleteNetworkOptimizationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteNetworkOptimizationOutcomeCallable deleteNetworkOptimizationCallable(const Model::DeleteNetworkOptimizationRequest& request) const; + AddNetworkOptimizationSettingOutcome addNetworkOptimizationSetting(const Model::AddNetworkOptimizationSettingRequest &request)const; + void addNetworkOptimizationSettingAsync(const Model::AddNetworkOptimizationSettingRequest& request, const AddNetworkOptimizationSettingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddNetworkOptimizationSettingOutcomeCallable addNetworkOptimizationSettingCallable(const Model::AddNetworkOptimizationSettingRequest& request) const; + ActivateSmartAccessGatewayOutcome activateSmartAccessGateway(const Model::ActivateSmartAccessGatewayRequest &request)const; + void activateSmartAccessGatewayAsync(const Model::ActivateSmartAccessGatewayRequest& request, const ActivateSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ActivateSmartAccessGatewayOutcomeCallable activateSmartAccessGatewayCallable(const Model::ActivateSmartAccessGatewayRequest& request) const; - CreateDedicatedLineBackupOutcome createDedicatedLineBackup(const Model::CreateDedicatedLineBackupRequest &request)const; - void createDedicatedLineBackupAsync(const Model::CreateDedicatedLineBackupRequest& request, const CreateDedicatedLineBackupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateDedicatedLineBackupOutcomeCallable createDedicatedLineBackupCallable(const Model::CreateDedicatedLineBackupRequest& request) const; - DescribeSmartAccessGatewayHaOutcome describeSmartAccessGatewayHa(const Model::DescribeSmartAccessGatewayHaRequest &request)const; - void describeSmartAccessGatewayHaAsync(const Model::DescribeSmartAccessGatewayHaRequest& request, const DescribeSmartAccessGatewayHaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeSmartAccessGatewayHaOutcomeCallable describeSmartAccessGatewayHaCallable(const Model::DescribeSmartAccessGatewayHaRequest& request) const; - ModifyCloudConnectNetworkOutcome modifyCloudConnectNetwork(const Model::ModifyCloudConnectNetworkRequest &request)const; - void modifyCloudConnectNetworkAsync(const Model::ModifyCloudConnectNetworkRequest& request, const ModifyCloudConnectNetworkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyCloudConnectNetworkOutcomeCallable modifyCloudConnectNetworkCallable(const Model::ModifyCloudConnectNetworkRequest& request) const; - DeleteCloudConnectNetworkOutcome deleteCloudConnectNetwork(const Model::DeleteCloudConnectNetworkRequest &request)const; - void deleteCloudConnectNetworkAsync(const Model::DeleteCloudConnectNetworkRequest& request, const DeleteCloudConnectNetworkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteCloudConnectNetworkOutcomeCallable deleteCloudConnectNetworkCallable(const Model::DeleteCloudConnectNetworkRequest& request) const; - CreateCloudConnectNetworkOutcome createCloudConnectNetwork(const Model::CreateCloudConnectNetworkRequest &request)const; - void createCloudConnectNetworkAsync(const Model::CreateCloudConnectNetworkRequest& request, const CreateCloudConnectNetworkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateCloudConnectNetworkOutcomeCallable createCloudConnectNetworkCallable(const Model::CreateCloudConnectNetworkRequest& request) const; - RebootSmartAccessGatewayOutcome rebootSmartAccessGateway(const Model::RebootSmartAccessGatewayRequest &request)const; - void rebootSmartAccessGatewayAsync(const Model::RebootSmartAccessGatewayRequest& request, const RebootSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - RebootSmartAccessGatewayOutcomeCallable rebootSmartAccessGatewayCallable(const Model::RebootSmartAccessGatewayRequest& request) const; - BindSmartAccessGatewayOutcome bindSmartAccessGateway(const Model::BindSmartAccessGatewayRequest &request)const; - void bindSmartAccessGatewayAsync(const Model::BindSmartAccessGatewayRequest& request, const BindSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteACLRuleOutcome deleteACLRule(const Model::DeleteACLRuleRequest &request)const; + void deleteACLRuleAsync(const Model::DeleteACLRuleRequest& request, const DeleteACLRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteACLRuleOutcomeCallable deleteACLRuleCallable(const Model::DeleteACLRuleRequest& request) const; + ModifyNetworkOptimizationOutcome modifyNetworkOptimization(const Model::ModifyNetworkOptimizationRequest &request)const; + void modifyNetworkOptimizationAsync(const Model::ModifyNetworkOptimizationRequest& request, const ModifyNetworkOptimizationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyNetworkOptimizationOutcomeCallable modifyNetworkOptimizationCallable(const Model::ModifyNetworkOptimizationRequest& request) const; + CreateSmartAccessGatewayClientUserOutcome createSmartAccessGatewayClientUser(const Model::CreateSmartAccessGatewayClientUserRequest &request)const; + void createSmartAccessGatewayClientUserAsync(const Model::CreateSmartAccessGatewayClientUserRequest& request, const CreateSmartAccessGatewayClientUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateSmartAccessGatewayClientUserOutcomeCallable createSmartAccessGatewayClientUserCallable(const Model::CreateSmartAccessGatewayClientUserRequest& request) const; + UnicomSignConfirmOutcome unicomSignConfirm(const Model::UnicomSignConfirmRequest &request)const; + void unicomSignConfirmAsync(const Model::UnicomSignConfirmRequest& request, const UnicomSignConfirmAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnicomSignConfirmOutcomeCallable unicomSignConfirmCallable(const Model::UnicomSignConfirmRequest& request) const; + AddACLRuleOutcome addACLRule(const Model::AddACLRuleRequest &request)const; + void addACLRuleAsync(const Model::AddACLRuleRequest& request, const AddACLRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddACLRuleOutcomeCallable addACLRuleCallable(const Model::AddACLRuleRequest& request) const; + DisassociateACLOutcome disassociateACL(const Model::DisassociateACLRequest &request)const; + void disassociateACLAsync(const Model::DisassociateACLRequest& request, const DisassociateACLAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DisassociateACLOutcomeCallable disassociateACLCallable(const Model::DisassociateACLRequest& request) const; + BindSmartAccessGatewayOutcome bindSmartAccessGateway(const Model::BindSmartAccessGatewayRequest &request)const; + void bindSmartAccessGatewayAsync(const Model::BindSmartAccessGatewayRequest& request, const BindSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; BindSmartAccessGatewayOutcomeCallable bindSmartAccessGatewayCallable(const Model::BindSmartAccessGatewayRequest& request) const; - DescribeRegionsOutcome describeRegions(const Model::DescribeRegionsRequest &request)const; - void describeRegionsAsync(const Model::DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeRegionsOutcomeCallable describeRegionsCallable(const Model::DescribeRegionsRequest& request) const; - GetSmartAccessGatewayUseLimitOutcome getSmartAccessGatewayUseLimit(const Model::GetSmartAccessGatewayUseLimitRequest &request)const; - void getSmartAccessGatewayUseLimitAsync(const Model::GetSmartAccessGatewayUseLimitRequest& request, const GetSmartAccessGatewayUseLimitAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetSmartAccessGatewayUseLimitOutcomeCallable getSmartAccessGatewayUseLimitCallable(const Model::GetSmartAccessGatewayUseLimitRequest& request) const; - ModifySmartAccessGatewayOutcome modifySmartAccessGateway(const Model::ModifySmartAccessGatewayRequest &request)const; - void modifySmartAccessGatewayAsync(const Model::ModifySmartAccessGatewayRequest& request, const ModifySmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifySmartAccessGatewayOutcomeCallable modifySmartAccessGatewayCallable(const Model::ModifySmartAccessGatewayRequest& request) const; - DescribeCloudConnectNetworksOutcome describeCloudConnectNetworks(const Model::DescribeCloudConnectNetworksRequest &request)const; - void describeCloudConnectNetworksAsync(const Model::DescribeCloudConnectNetworksRequest& request, const DescribeCloudConnectNetworksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeCloudConnectNetworksOutcomeCallable describeCloudConnectNetworksCallable(const Model::DescribeCloudConnectNetworksRequest& request) const; - DescribeSmartAccessGatewayVersionsOutcome describeSmartAccessGatewayVersions(const Model::DescribeSmartAccessGatewayVersionsRequest &request)const; - void describeSmartAccessGatewayVersionsAsync(const Model::DescribeSmartAccessGatewayVersionsRequest& request, const DescribeSmartAccessGatewayVersionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateNetworkOptimizationOutcome createNetworkOptimization(const Model::CreateNetworkOptimizationRequest &request)const; + void createNetworkOptimizationAsync(const Model::CreateNetworkOptimizationRequest& request, const CreateNetworkOptimizationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateNetworkOptimizationOutcomeCallable createNetworkOptimizationCallable(const Model::CreateNetworkOptimizationRequest& request) const; + DeleteSAGLinkLevelHaOutcome deleteSAGLinkLevelHa(const Model::DeleteSAGLinkLevelHaRequest &request)const; + void deleteSAGLinkLevelHaAsync(const Model::DeleteSAGLinkLevelHaRequest& request, const DeleteSAGLinkLevelHaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteSAGLinkLevelHaOutcomeCallable deleteSAGLinkLevelHaCallable(const Model::DeleteSAGLinkLevelHaRequest& request) const; + DeleteSmartAccessGatewayClientUserOutcome deleteSmartAccessGatewayClientUser(const Model::DeleteSmartAccessGatewayClientUserRequest &request)const; + void deleteSmartAccessGatewayClientUserAsync(const Model::DeleteSmartAccessGatewayClientUserRequest& request, const DeleteSmartAccessGatewayClientUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteSmartAccessGatewayClientUserOutcomeCallable deleteSmartAccessGatewayClientUserCallable(const Model::DeleteSmartAccessGatewayClientUserRequest& request) const; + KickOutClientsOutcome kickOutClients(const Model::KickOutClientsRequest &request)const; + void kickOutClientsAsync(const Model::KickOutClientsRequest& request, const KickOutClientsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + KickOutClientsOutcomeCallable kickOutClientsCallable(const Model::KickOutClientsRequest& request) const; + SwitchSAGHaStateOutcome switchSAGHaState(const Model::SwitchSAGHaStateRequest &request)const; + void switchSAGHaStateAsync(const Model::SwitchSAGHaStateRequest& request, const SwitchSAGHaStateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SwitchSAGHaStateOutcomeCallable switchSAGHaStateCallable(const Model::SwitchSAGHaStateRequest& request) const; + DescribeSagRouteableAddressOutcome describeSagRouteableAddress(const Model::DescribeSagRouteableAddressRequest &request)const; + void describeSagRouteableAddressAsync(const Model::DescribeSagRouteableAddressRequest& request, const DescribeSagRouteableAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSagRouteableAddressOutcomeCallable describeSagRouteableAddressCallable(const Model::DescribeSagRouteableAddressRequest& request) const; + DescribeGrantRulesOutcome describeGrantRules(const Model::DescribeGrantRulesRequest &request)const; + void describeGrantRulesAsync(const Model::DescribeGrantRulesRequest& request, const DescribeGrantRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGrantRulesOutcomeCallable describeGrantRulesCallable(const Model::DescribeGrantRulesRequest& request) const; + SwitchCloudBoxHaStateOutcome switchCloudBoxHaState(const Model::SwitchCloudBoxHaStateRequest &request)const; + void switchCloudBoxHaStateAsync(const Model::SwitchCloudBoxHaStateRequest& request, const SwitchCloudBoxHaStateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SwitchCloudBoxHaStateOutcomeCallable switchCloudBoxHaStateCallable(const Model::SwitchCloudBoxHaStateRequest& request) const; + UnbindSmartAccessGatewayOutcome unbindSmartAccessGateway(const Model::UnbindSmartAccessGatewayRequest &request)const; + void unbindSmartAccessGatewayAsync(const Model::UnbindSmartAccessGatewayRequest& request, const UnbindSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnbindSmartAccessGatewayOutcomeCallable unbindSmartAccessGatewayCallable(const Model::UnbindSmartAccessGatewayRequest& request) const; + CreateSmartAccessGatewayOutcome createSmartAccessGateway(const Model::CreateSmartAccessGatewayRequest &request)const; + void createSmartAccessGatewayAsync(const Model::CreateSmartAccessGatewayRequest& request, const CreateSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateSmartAccessGatewayOutcomeCallable createSmartAccessGatewayCallable(const Model::CreateSmartAccessGatewayRequest& request) const; + AttachNetworkOptimizationSagsOutcome attachNetworkOptimizationSags(const Model::AttachNetworkOptimizationSagsRequest &request)const; + void attachNetworkOptimizationSagsAsync(const Model::AttachNetworkOptimizationSagsRequest& request, const AttachNetworkOptimizationSagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AttachNetworkOptimizationSagsOutcomeCallable attachNetworkOptimizationSagsCallable(const Model::AttachNetworkOptimizationSagsRequest& request) const; + ClearSagRouteableAddressOutcome clearSagRouteableAddress(const Model::ClearSagRouteableAddressRequest &request)const; + void clearSagRouteableAddressAsync(const Model::ClearSagRouteableAddressRequest& request, const ClearSagRouteableAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ClearSagRouteableAddressOutcomeCallable clearSagRouteableAddressCallable(const Model::ClearSagRouteableAddressRequest& request) const; + ModifyCloudConnectNetworkOutcome modifyCloudConnectNetwork(const Model::ModifyCloudConnectNetworkRequest &request)const; + void modifyCloudConnectNetworkAsync(const Model::ModifyCloudConnectNetworkRequest& request, const ModifyCloudConnectNetworkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyCloudConnectNetworkOutcomeCallable modifyCloudConnectNetworkCallable(const Model::ModifyCloudConnectNetworkRequest& request) const; + DeleteACLOutcome deleteACL(const Model::DeleteACLRequest &request)const; + void deleteACLAsync(const Model::DeleteACLRequest& request, const DeleteACLAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteACLOutcomeCallable deleteACLCallable(const Model::DeleteACLRequest& request) const; + DescribeSagOnlineClientStatisticsOutcome describeSagOnlineClientStatistics(const Model::DescribeSagOnlineClientStatisticsRequest &request)const; + void describeSagOnlineClientStatisticsAsync(const Model::DescribeSagOnlineClientStatisticsRequest& request, const DescribeSagOnlineClientStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSagOnlineClientStatisticsOutcomeCallable describeSagOnlineClientStatisticsCallable(const Model::DescribeSagOnlineClientStatisticsRequest& request) const; + DowngradeSmartAccessGatewayOutcome downgradeSmartAccessGateway(const Model::DowngradeSmartAccessGatewayRequest &request)const; + void downgradeSmartAccessGatewayAsync(const Model::DowngradeSmartAccessGatewayRequest& request, const DowngradeSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DowngradeSmartAccessGatewayOutcomeCallable downgradeSmartAccessGatewayCallable(const Model::DowngradeSmartAccessGatewayRequest& request) const; + AssociateACLOutcome associateACL(const Model::AssociateACLRequest &request)const; + void associateACLAsync(const Model::AssociateACLRequest& request, const AssociateACLAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AssociateACLOutcomeCallable associateACLCallable(const Model::AssociateACLRequest& request) const; + DescribeSmartAccessGatewayVersionsOutcome describeSmartAccessGatewayVersions(const Model::DescribeSmartAccessGatewayVersionsRequest &request)const; + void describeSmartAccessGatewayVersionsAsync(const Model::DescribeSmartAccessGatewayVersionsRequest& request, const DescribeSmartAccessGatewayVersionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSmartAccessGatewayVersionsOutcomeCallable describeSmartAccessGatewayVersionsCallable(const Model::DescribeSmartAccessGatewayVersionsRequest& request) const; - UpdateSmartAccessGatewayVersionOutcome updateSmartAccessGatewayVersion(const Model::UpdateSmartAccessGatewayVersionRequest &request)const; - void updateSmartAccessGatewayVersionAsync(const Model::UpdateSmartAccessGatewayVersionRequest& request, const UpdateSmartAccessGatewayVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateSmartAccessGatewayVersionOutcome updateSmartAccessGatewayVersion(const Model::UpdateSmartAccessGatewayVersionRequest &request)const; + void updateSmartAccessGatewayVersionAsync(const Model::UpdateSmartAccessGatewayVersionRequest& request, const UpdateSmartAccessGatewayVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateSmartAccessGatewayVersionOutcomeCallable updateSmartAccessGatewayVersionCallable(const Model::UpdateSmartAccessGatewayVersionRequest& request) const; - GetCloudConnectNetworkUseLimitOutcome getCloudConnectNetworkUseLimit(const Model::GetCloudConnectNetworkUseLimitRequest &request)const; - void getCloudConnectNetworkUseLimitAsync(const Model::GetCloudConnectNetworkUseLimitRequest& request, const GetCloudConnectNetworkUseLimitAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifySmartAccessGatewayOutcome modifySmartAccessGateway(const Model::ModifySmartAccessGatewayRequest &request)const; + void modifySmartAccessGatewayAsync(const Model::ModifySmartAccessGatewayRequest& request, const ModifySmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifySmartAccessGatewayOutcomeCallable modifySmartAccessGatewayCallable(const Model::ModifySmartAccessGatewayRequest& request) const; + RevokeInstanceFromCbnOutcome revokeInstanceFromCbn(const Model::RevokeInstanceFromCbnRequest &request)const; + void revokeInstanceFromCbnAsync(const Model::RevokeInstanceFromCbnRequest& request, const RevokeInstanceFromCbnAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RevokeInstanceFromCbnOutcomeCallable revokeInstanceFromCbnCallable(const Model::RevokeInstanceFromCbnRequest& request) const; + ModifySerialNumberOutcome modifySerialNumber(const Model::ModifySerialNumberRequest &request)const; + void modifySerialNumberAsync(const Model::ModifySerialNumberRequest& request, const ModifySerialNumberAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifySerialNumberOutcomeCallable modifySerialNumberCallable(const Model::ModifySerialNumberRequest& request) const; + DescribeACLAttributeOutcome describeACLAttribute(const Model::DescribeACLAttributeRequest &request)const; + void describeACLAttributeAsync(const Model::DescribeACLAttributeRequest& request, const DescribeACLAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeACLAttributeOutcomeCallable describeACLAttributeCallable(const Model::DescribeACLAttributeRequest& request) const; + DeleteDedicatedLineBackupOutcome deleteDedicatedLineBackup(const Model::DeleteDedicatedLineBackupRequest &request)const; + void deleteDedicatedLineBackupAsync(const Model::DeleteDedicatedLineBackupRequest& request, const DeleteDedicatedLineBackupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDedicatedLineBackupOutcomeCallable deleteDedicatedLineBackupCallable(const Model::DeleteDedicatedLineBackupRequest& request) const; + ResetSmartAccessGatewayClientUserPasswordOutcome resetSmartAccessGatewayClientUserPassword(const Model::ResetSmartAccessGatewayClientUserPasswordRequest &request)const; + void resetSmartAccessGatewayClientUserPasswordAsync(const Model::ResetSmartAccessGatewayClientUserPasswordRequest& request, const ResetSmartAccessGatewayClientUserPasswordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ResetSmartAccessGatewayClientUserPasswordOutcomeCallable resetSmartAccessGatewayClientUserPasswordCallable(const Model::ResetSmartAccessGatewayClientUserPasswordRequest& request) const; + DescribeACLsOutcome describeACLs(const Model::DescribeACLsRequest &request)const; + void describeACLsAsync(const Model::DescribeACLsRequest& request, const DescribeACLsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeACLsOutcomeCallable describeACLsCallable(const Model::DescribeACLsRequest& request) const; + UnlockSmartAccessGatewayOutcome unlockSmartAccessGateway(const Model::UnlockSmartAccessGatewayRequest &request)const; + void unlockSmartAccessGatewayAsync(const Model::UnlockSmartAccessGatewayRequest& request, const UnlockSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnlockSmartAccessGatewayOutcomeCallable unlockSmartAccessGatewayCallable(const Model::UnlockSmartAccessGatewayRequest& request) const; + CreateSAGLinkLevelHaOutcome createSAGLinkLevelHa(const Model::CreateSAGLinkLevelHaRequest &request)const; + void createSAGLinkLevelHaAsync(const Model::CreateSAGLinkLevelHaRequest& request, const CreateSAGLinkLevelHaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateSAGLinkLevelHaOutcomeCallable createSAGLinkLevelHaCallable(const Model::CreateSAGLinkLevelHaRequest& request) const; + DescribeSmartAccessGatewayHaOutcome describeSmartAccessGatewayHa(const Model::DescribeSmartAccessGatewayHaRequest &request)const; + void describeSmartAccessGatewayHaAsync(const Model::DescribeSmartAccessGatewayHaRequest& request, const DescribeSmartAccessGatewayHaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSmartAccessGatewayHaOutcomeCallable describeSmartAccessGatewayHaCallable(const Model::DescribeSmartAccessGatewayHaRequest& request) const; + CreateSmartAccessGatewaySoftwareOutcome createSmartAccessGatewaySoftware(const Model::CreateSmartAccessGatewaySoftwareRequest &request)const; + void createSmartAccessGatewaySoftwareAsync(const Model::CreateSmartAccessGatewaySoftwareRequest& request, const CreateSmartAccessGatewaySoftwareAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateSmartAccessGatewaySoftwareOutcomeCallable createSmartAccessGatewaySoftwareCallable(const Model::CreateSmartAccessGatewaySoftwareRequest& request) const; + DescribeNetworkOptimizationSettingsOutcome describeNetworkOptimizationSettings(const Model::DescribeNetworkOptimizationSettingsRequest &request)const; + void describeNetworkOptimizationSettingsAsync(const Model::DescribeNetworkOptimizationSettingsRequest& request, const DescribeNetworkOptimizationSettingsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeNetworkOptimizationSettingsOutcomeCallable describeNetworkOptimizationSettingsCallable(const Model::DescribeNetworkOptimizationSettingsRequest& request) const; + DeleteCloudConnectNetworkOutcome deleteCloudConnectNetwork(const Model::DeleteCloudConnectNetworkRequest &request)const; + void deleteCloudConnectNetworkAsync(const Model::DeleteCloudConnectNetworkRequest& request, const DeleteCloudConnectNetworkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteCloudConnectNetworkOutcomeCallable deleteCloudConnectNetworkCallable(const Model::DeleteCloudConnectNetworkRequest& request) const; + CreateACLOutcome createACL(const Model::CreateACLRequest &request)const; + void createACLAsync(const Model::CreateACLRequest& request, const CreateACLAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateACLOutcomeCallable createACLCallable(const Model::CreateACLRequest& request) const; + DescribeNetworkOptimizationSagsOutcome describeNetworkOptimizationSags(const Model::DescribeNetworkOptimizationSagsRequest &request)const; + void describeNetworkOptimizationSagsAsync(const Model::DescribeNetworkOptimizationSagsRequest& request, const DescribeNetworkOptimizationSagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeNetworkOptimizationSagsOutcomeCallable describeNetworkOptimizationSagsCallable(const Model::DescribeNetworkOptimizationSagsRequest& request) const; + CreateCloudConnectNetworkOutcome createCloudConnectNetwork(const Model::CreateCloudConnectNetworkRequest &request)const; + void createCloudConnectNetworkAsync(const Model::CreateCloudConnectNetworkRequest& request, const CreateCloudConnectNetworkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateCloudConnectNetworkOutcomeCallable createCloudConnectNetworkCallable(const Model::CreateCloudConnectNetworkRequest& request) const; + RebootSmartAccessGatewayOutcome rebootSmartAccessGateway(const Model::RebootSmartAccessGatewayRequest &request)const; + void rebootSmartAccessGatewayAsync(const Model::RebootSmartAccessGatewayRequest& request, const RebootSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RebootSmartAccessGatewayOutcomeCallable rebootSmartAccessGatewayCallable(const Model::RebootSmartAccessGatewayRequest& request) const; + DescribeRegionsOutcome describeRegions(const Model::DescribeRegionsRequest &request)const; + void describeRegionsAsync(const Model::DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRegionsOutcomeCallable describeRegionsCallable(const Model::DescribeRegionsRequest& request) const; + DescribeCloudConnectNetworksOutcome describeCloudConnectNetworks(const Model::DescribeCloudConnectNetworksRequest &request)const; + void describeCloudConnectNetworksAsync(const Model::DescribeCloudConnectNetworksRequest& request, const DescribeCloudConnectNetworksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCloudConnectNetworksOutcomeCallable describeCloudConnectNetworksCallable(const Model::DescribeCloudConnectNetworksRequest& request) const; + ModifyACLRuleOutcome modifyACLRule(const Model::ModifyACLRuleRequest &request)const; + void modifyACLRuleAsync(const Model::ModifyACLRuleRequest& request, const ModifyACLRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyACLRuleOutcomeCallable modifyACLRuleCallable(const Model::ModifyACLRuleRequest& request) const; + ModifySmartAccessGatewayClientUserOutcome modifySmartAccessGatewayClientUser(const Model::ModifySmartAccessGatewayClientUserRequest &request)const; + void modifySmartAccessGatewayClientUserAsync(const Model::ModifySmartAccessGatewayClientUserRequest& request, const ModifySmartAccessGatewayClientUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifySmartAccessGatewayClientUserOutcomeCallable modifySmartAccessGatewayClientUserCallable(const Model::ModifySmartAccessGatewayClientUserRequest& request) const; + DeleteNetworkOptimizationSettingOutcome deleteNetworkOptimizationSetting(const Model::DeleteNetworkOptimizationSettingRequest &request)const; + void deleteNetworkOptimizationSettingAsync(const Model::DeleteNetworkOptimizationSettingRequest& request, const DeleteNetworkOptimizationSettingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteNetworkOptimizationSettingOutcomeCallable deleteNetworkOptimizationSettingCallable(const Model::DeleteNetworkOptimizationSettingRequest& request) const; + GetCloudConnectNetworkUseLimitOutcome getCloudConnectNetworkUseLimit(const Model::GetCloudConnectNetworkUseLimitRequest &request)const; + void getCloudConnectNetworkUseLimitAsync(const Model::GetCloudConnectNetworkUseLimitRequest& request, const GetCloudConnectNetworkUseLimitAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetCloudConnectNetworkUseLimitOutcomeCallable getCloudConnectNetworkUseLimitCallable(const Model::GetCloudConnectNetworkUseLimitRequest& request) const; - - private: - std::shared_ptr endpointProvider_; - }; - } -} - -#endif // !ALIBABACLOUD_SMARTAG_SMARTAGCLIENT_H_ + DescribeSmartAccessGatewaysOutcome describeSmartAccessGateways(const Model::DescribeSmartAccessGatewaysRequest &request)const; + void describeSmartAccessGatewaysAsync(const Model::DescribeSmartAccessGatewaysRequest& request, const DescribeSmartAccessGatewaysAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSmartAccessGatewaysOutcomeCallable describeSmartAccessGatewaysCallable(const Model::DescribeSmartAccessGatewaysRequest& request) const; + UpgradeSmartAccessGatewayOutcome upgradeSmartAccessGateway(const Model::UpgradeSmartAccessGatewayRequest &request)const; + void upgradeSmartAccessGatewayAsync(const Model::UpgradeSmartAccessGatewayRequest& request, const UpgradeSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpgradeSmartAccessGatewayOutcomeCallable upgradeSmartAccessGatewayCallable(const Model::UpgradeSmartAccessGatewayRequest& request) const; + DescribeUserOnlineClientsOutcome describeUserOnlineClients(const Model::DescribeUserOnlineClientsRequest &request)const; + void describeUserOnlineClientsAsync(const Model::DescribeUserOnlineClientsRequest& request, const DescribeUserOnlineClientsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeUserOnlineClientsOutcomeCallable describeUserOnlineClientsCallable(const Model::DescribeUserOnlineClientsRequest& request) const; + DetachNetworkOptimizationSagsOutcome detachNetworkOptimizationSags(const Model::DetachNetworkOptimizationSagsRequest &request)const; + void detachNetworkOptimizationSagsAsync(const Model::DetachNetworkOptimizationSagsRequest& request, const DetachNetworkOptimizationSagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetachNetworkOptimizationSagsOutcomeCallable detachNetworkOptimizationSagsCallable(const Model::DetachNetworkOptimizationSagsRequest& request) const; + DescribeUserOnlineClientStatisticsOutcome describeUserOnlineClientStatistics(const Model::DescribeUserOnlineClientStatisticsRequest &request)const; + void describeUserOnlineClientStatisticsAsync(const Model::DescribeUserOnlineClientStatisticsRequest& request, const DescribeUserOnlineClientStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeUserOnlineClientStatisticsOutcomeCallable describeUserOnlineClientStatisticsCallable(const Model::DescribeUserOnlineClientStatisticsRequest& request) const; + CreateDedicatedLineBackupOutcome createDedicatedLineBackup(const Model::CreateDedicatedLineBackupRequest &request)const; + void createDedicatedLineBackupAsync(const Model::CreateDedicatedLineBackupRequest& request, const CreateDedicatedLineBackupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDedicatedLineBackupOutcomeCallable createDedicatedLineBackupCallable(const Model::CreateDedicatedLineBackupRequest& request) const; + DescribeUserFlowStatisticsOutcome describeUserFlowStatistics(const Model::DescribeUserFlowStatisticsRequest &request)const; + void describeUserFlowStatisticsAsync(const Model::DescribeUserFlowStatisticsRequest& request, const DescribeUserFlowStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeUserFlowStatisticsOutcomeCallable describeUserFlowStatisticsCallable(const Model::DescribeUserFlowStatisticsRequest& request) const; + SetSagRouteableAddressOutcome setSagRouteableAddress(const Model::SetSagRouteableAddressRequest &request)const; + void setSagRouteableAddressAsync(const Model::SetSagRouteableAddressRequest& request, const SetSagRouteableAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetSagRouteableAddressOutcomeCallable setSagRouteableAddressCallable(const Model::SetSagRouteableAddressRequest& request) const; + ModifyACLOutcome modifyACL(const Model::ModifyACLRequest &request)const; + void modifyACLAsync(const Model::ModifyACLRequest& request, const ModifyACLAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyACLOutcomeCallable modifyACLCallable(const Model::ModifyACLRequest& request) const; + DescribeSmartAccessGatewayClientUsersOutcome describeSmartAccessGatewayClientUsers(const Model::DescribeSmartAccessGatewayClientUsersRequest &request)const; + void describeSmartAccessGatewayClientUsersAsync(const Model::DescribeSmartAccessGatewayClientUsersRequest& request, const DescribeSmartAccessGatewayClientUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSmartAccessGatewayClientUsersOutcomeCallable describeSmartAccessGatewayClientUsersCallable(const Model::DescribeSmartAccessGatewayClientUsersRequest& request) const; + GetSmartAccessGatewayUseLimitOutcome getSmartAccessGatewayUseLimit(const Model::GetSmartAccessGatewayUseLimitRequest &request)const; + void getSmartAccessGatewayUseLimitAsync(const Model::GetSmartAccessGatewayUseLimitRequest& request, const GetSmartAccessGatewayUseLimitAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSmartAccessGatewayUseLimitOutcomeCallable getSmartAccessGatewayUseLimitCallable(const Model::GetSmartAccessGatewayUseLimitRequest& request) const; + UnicomOrderConfirmOutcome unicomOrderConfirm(const Model::UnicomOrderConfirmRequest &request)const; + void unicomOrderConfirmAsync(const Model::UnicomOrderConfirmRequest& request, const UnicomOrderConfirmAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnicomOrderConfirmOutcomeCallable unicomOrderConfirmCallable(const Model::UnicomOrderConfirmRequest& request) const; + DescribeNetworkOptimizationsOutcome describeNetworkOptimizations(const Model::DescribeNetworkOptimizationsRequest &request)const; + void describeNetworkOptimizationsAsync(const Model::DescribeNetworkOptimizationsRequest& request, const DescribeNetworkOptimizationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeNetworkOptimizationsOutcomeCallable describeNetworkOptimizationsCallable(const Model::DescribeNetworkOptimizationsRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_SMARTAG_SMARTAGCLIENT_H_ diff --git a/smartag/include/alibabacloud/smartag/SmartagExport.h b/smartag/include/alibabacloud/smartag/SmartagExport.h index 7ec35bccb..72c3c14e7 100644 --- a/smartag/include/alibabacloud/smartag/SmartagExport.h +++ b/smartag/include/alibabacloud/smartag/SmartagExport.h @@ -1,32 +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_SMARTAG_SMARTAGEXPORT_H_ -#define ALIBABACLOUD_SMARTAG_SMARTAGEXPORT_H_ - -#include - -#if defined(ALIBABACLOUD_SHARED) -# if defined(ALIBABACLOUD_SMARTAG_LIBRARY) -# define ALIBABACLOUD_SMARTAG_EXPORT ALIBABACLOUD_DECL_EXPORT -# else -# define ALIBABACLOUD_SMARTAG_EXPORT ALIBABACLOUD_DECL_IMPORT -# endif -#else -# define ALIBABACLOUD_SMARTAG_EXPORT -#endif - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_SMARTAGEXPORT_H_ +#define ALIBABACLOUD_SMARTAG_SMARTAGEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_SMARTAG_LIBRARY) +# define ALIBABACLOUD_SMARTAG_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_SMARTAG_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_SMARTAG_EXPORT +#endif + #endif // !ALIBABACLOUD_SMARTAG_SMARTAGEXPORT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ActivateSmartAccessGatewayRequest.h b/smartag/include/alibabacloud/smartag/model/ActivateSmartAccessGatewayRequest.h index 76f2d0764..685d2dd78 100644 --- a/smartag/include/alibabacloud/smartag/model/ActivateSmartAccessGatewayRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ActivateSmartAccessGatewayRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_ACTIVATESMARTACCESSGATEWAYREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_ACTIVATESMARTACCESSGATEWAYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ActivateSmartAccessGatewayRequest : public RpcServiceRequest - { - - public: - ActivateSmartAccessGatewayRequest(); - ~ActivateSmartAccessGatewayRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_ACTIVATESMARTACCESSGATEWAYREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_ACTIVATESMARTACCESSGATEWAYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ActivateSmartAccessGatewayRequest : public RpcServiceRequest + { + + public: + ActivateSmartAccessGatewayRequest(); + ~ActivateSmartAccessGatewayRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setSmartAGId(const std::string& smartAGId); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; std::string ownerAccount_; std::string smartAGId_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_ACTIVATESMARTACCESSGATEWAYREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ActivateSmartAccessGatewayResult.h b/smartag/include/alibabacloud/smartag/model/ActivateSmartAccessGatewayResult.h index faad4c911..70a295d85 100644 --- a/smartag/include/alibabacloud/smartag/model/ActivateSmartAccessGatewayResult.h +++ b/smartag/include/alibabacloud/smartag/model/ActivateSmartAccessGatewayResult.h @@ -1,49 +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_SMARTAG_MODEL_ACTIVATESMARTACCESSGATEWAYRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_ACTIVATESMARTACCESSGATEWAYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ActivateSmartAccessGatewayResult : public ServiceResult - { - public: - - - ActivateSmartAccessGatewayResult(); - explicit ActivateSmartAccessGatewayResult(const std::string &payload); - ~ActivateSmartAccessGatewayResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_ACTIVATESMARTACCESSGATEWAYRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_ACTIVATESMARTACCESSGATEWAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ActivateSmartAccessGatewayResult : public ServiceResult + { + public: + + + ActivateSmartAccessGatewayResult(); + explicit ActivateSmartAccessGatewayResult(const std::string &payload); + ~ActivateSmartAccessGatewayResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_ACTIVATESMARTACCESSGATEWAYRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/AddACLRuleRequest.h b/smartag/include/alibabacloud/smartag/model/AddACLRuleRequest.h new file mode 100644 index 000000000..22f6d2e91 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/AddACLRuleRequest.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_SMARTAG_MODEL_ADDACLRULEREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_ADDACLRULEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT AddACLRuleRequest : public RpcServiceRequest + { + + public: + AddACLRuleRequest(); + ~AddACLRuleRequest(); + + std::string getAclId()const; + void setAclId(const std::string& aclId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourcePortRange()const; + void setSourcePortRange(const std::string& sourcePortRange); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getIpProtocol()const; + void setIpProtocol(const std::string& ipProtocol); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSourceCidr()const; + void setSourceCidr(const std::string& sourceCidr); + std::string getDescription()const; + void setDescription(const std::string& description); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPriority()const; + void setPriority(int priority); + std::string getDestCidr()const; + void setDestCidr(const std::string& destCidr); + std::string getDestPortRange()const; + void setDestPortRange(const std::string& destPortRange); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getDirection()const; + void setDirection(const std::string& direction); + std::string getPolicy()const; + void setPolicy(const std::string& policy); + + private: + std::string aclId_; + long resourceOwnerId_; + std::string sourcePortRange_; + std::string resourceOwnerAccount_; + std::string ipProtocol_; + std::string ownerAccount_; + std::string sourceCidr_; + std::string description_; + long ownerId_; + int priority_; + std::string destCidr_; + std::string destPortRange_; + std::string regionId_; + std::string direction_; + std::string policy_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_ADDACLRULEREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/AddACLRuleResult.h b/smartag/include/alibabacloud/smartag/model/AddACLRuleResult.h new file mode 100644 index 000000000..302fe03ae --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/AddACLRuleResult.h @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_ADDACLRULERESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_ADDACLRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT AddACLRuleResult : public ServiceResult + { + public: + + + AddACLRuleResult(); + explicit AddACLRuleResult(const std::string &payload); + ~AddACLRuleResult(); + std::string getPolicy()const; + long getGmtCreate()const; + std::string getDescription()const; + std::string getDestCidr()const; + std::string getSourcePortRange()const; + std::string getSourceCidr()const; + int getPriority()const; + std::string getAclId()const; + std::string getAcrId()const; + std::string getIpProtocol()const; + std::string getDestPortRange()const; + std::string getDirection()const; + + protected: + void parse(const std::string &payload); + private: + std::string policy_; + long gmtCreate_; + std::string description_; + std::string destCidr_; + std::string sourcePortRange_; + std::string sourceCidr_; + int priority_; + std::string aclId_; + std::string acrId_; + std::string ipProtocol_; + std::string destPortRange_; + std::string direction_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_ADDACLRULERESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/AddNetworkOptimizationSettingRequest.h b/smartag/include/alibabacloud/smartag/model/AddNetworkOptimizationSettingRequest.h new file mode 100644 index 000000000..ca0c68653 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/AddNetworkOptimizationSettingRequest.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_SMARTAG_MODEL_ADDNETWORKOPTIMIZATIONSETTINGREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_ADDNETWORKOPTIMIZATIONSETTINGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT AddNetworkOptimizationSettingRequest : public RpcServiceRequest + { + + public: + AddNetworkOptimizationSettingRequest(); + ~AddNetworkOptimizationSettingRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getNetworkOptId()const; + void setNetworkOptId(const std::string& networkOptId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDomain()const; + void setDomain(const std::string& domain); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getType()const; + void setType(const std::string& type); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string networkOptId_; + std::string ownerAccount_; + std::string domain_; + long ownerId_; + std::string type_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_ADDNETWORKOPTIMIZATIONSETTINGREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/AddNetworkOptimizationSettingResult.h b/smartag/include/alibabacloud/smartag/model/AddNetworkOptimizationSettingResult.h new file mode 100644 index 000000000..e0b29320d --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/AddNetworkOptimizationSettingResult.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_SMARTAG_MODEL_ADDNETWORKOPTIMIZATIONSETTINGRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_ADDNETWORKOPTIMIZATIONSETTINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT AddNetworkOptimizationSettingResult : public ServiceResult + { + public: + + + AddNetworkOptimizationSettingResult(); + explicit AddNetworkOptimizationSettingResult(const std::string &payload); + ~AddNetworkOptimizationSettingResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_ADDNETWORKOPTIMIZATIONSETTINGRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/AssociateACLRequest.h b/smartag/include/alibabacloud/smartag/model/AssociateACLRequest.h new file mode 100644 index 000000000..597bdb7d7 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/AssociateACLRequest.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_SMARTAG_MODEL_ASSOCIATEACLREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_ASSOCIATEACLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT AssociateACLRequest : public RpcServiceRequest + { + + public: + AssociateACLRequest(); + ~AssociateACLRequest(); + + std::string getAclId()const; + void setAclId(const std::string& aclId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSmartAGId()const; + void setSmartAGId(const std::string& smartAGId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string aclId_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string smartAGId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_ASSOCIATEACLREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/AssociateACLResult.h b/smartag/include/alibabacloud/smartag/model/AssociateACLResult.h new file mode 100644 index 000000000..3a5d7a8ad --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/AssociateACLResult.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_SMARTAG_MODEL_ASSOCIATEACLRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_ASSOCIATEACLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT AssociateACLResult : public ServiceResult + { + public: + + + AssociateACLResult(); + explicit AssociateACLResult(const std::string &payload); + ~AssociateACLResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_ASSOCIATEACLRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/AttachNetworkOptimizationSagsRequest.h b/smartag/include/alibabacloud/smartag/model/AttachNetworkOptimizationSagsRequest.h new file mode 100644 index 000000000..302ca3165 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/AttachNetworkOptimizationSagsRequest.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_SMARTAG_MODEL_ATTACHNETWORKOPTIMIZATIONSAGSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_ATTACHNETWORKOPTIMIZATIONSAGSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT AttachNetworkOptimizationSagsRequest : public RpcServiceRequest + { + + public: + AttachNetworkOptimizationSagsRequest(); + ~AttachNetworkOptimizationSagsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getNetworkOptId()const; + void setNetworkOptId(const std::string& networkOptId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::vector getSmartAGIds()const; + void setSmartAGIds(const std::vector& smartAGIds); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string networkOptId_; + std::string ownerAccount_; + std::vector smartAGIds_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_ATTACHNETWORKOPTIMIZATIONSAGSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/AttachNetworkOptimizationSagsResult.h b/smartag/include/alibabacloud/smartag/model/AttachNetworkOptimizationSagsResult.h new file mode 100644 index 000000000..4cb995463 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/AttachNetworkOptimizationSagsResult.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_SMARTAG_MODEL_ATTACHNETWORKOPTIMIZATIONSAGSRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_ATTACHNETWORKOPTIMIZATIONSAGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT AttachNetworkOptimizationSagsResult : public ServiceResult + { + public: + + + AttachNetworkOptimizationSagsResult(); + explicit AttachNetworkOptimizationSagsResult(const std::string &payload); + ~AttachNetworkOptimizationSagsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_ATTACHNETWORKOPTIMIZATIONSAGSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/BindSmartAccessGatewayRequest.h b/smartag/include/alibabacloud/smartag/model/BindSmartAccessGatewayRequest.h index d27a7801f..36ccfbc41 100644 --- a/smartag/include/alibabacloud/smartag/model/BindSmartAccessGatewayRequest.h +++ b/smartag/include/alibabacloud/smartag/model/BindSmartAccessGatewayRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_BINDSMARTACCESSGATEWAYREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_BINDSMARTACCESSGATEWAYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT BindSmartAccessGatewayRequest : public RpcServiceRequest - { - - public: - BindSmartAccessGatewayRequest(); - ~BindSmartAccessGatewayRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_BINDSMARTACCESSGATEWAYREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_BINDSMARTACCESSGATEWAYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT BindSmartAccessGatewayRequest : public RpcServiceRequest + { + + public: + BindSmartAccessGatewayRequest(); + ~BindSmartAccessGatewayRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setSmartAGId(const std::string& smartAGId); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string ccnId_; std::string smartAGId_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_BINDSMARTACCESSGATEWAYREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/BindSmartAccessGatewayResult.h b/smartag/include/alibabacloud/smartag/model/BindSmartAccessGatewayResult.h index 3db2cf6e9..0ba86b631 100644 --- a/smartag/include/alibabacloud/smartag/model/BindSmartAccessGatewayResult.h +++ b/smartag/include/alibabacloud/smartag/model/BindSmartAccessGatewayResult.h @@ -1,49 +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_SMARTAG_MODEL_BINDSMARTACCESSGATEWAYRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_BINDSMARTACCESSGATEWAYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT BindSmartAccessGatewayResult : public ServiceResult - { - public: - - - BindSmartAccessGatewayResult(); - explicit BindSmartAccessGatewayResult(const std::string &payload); - ~BindSmartAccessGatewayResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_BINDSMARTACCESSGATEWAYRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_BINDSMARTACCESSGATEWAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT BindSmartAccessGatewayResult : public ServiceResult + { + public: + + + BindSmartAccessGatewayResult(); + explicit BindSmartAccessGatewayResult(const std::string &payload); + ~BindSmartAccessGatewayResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_BINDSMARTACCESSGATEWAYRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ClearSagRouteableAddressRequest.h b/smartag/include/alibabacloud/smartag/model/ClearSagRouteableAddressRequest.h new file mode 100644 index 000000000..b3f5d88a5 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/ClearSagRouteableAddressRequest.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_SMARTAG_MODEL_CLEARSAGROUTEABLEADDRESSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CLEARSAGROUTEABLEADDRESSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ClearSagRouteableAddressRequest : public RpcServiceRequest + { + + public: + ClearSagRouteableAddressRequest(); + ~ClearSagRouteableAddressRequest(); + + std::string getAccess_key_id()const; + void setAccess_key_id(const std::string& access_key_id); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getSagId()const; + void setSagId(const std::string& sagId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string access_key_id_; + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string sagId_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_CLEARSAGROUTEABLEADDRESSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ClearSagRouteableAddressResult.h b/smartag/include/alibabacloud/smartag/model/ClearSagRouteableAddressResult.h new file mode 100644 index 000000000..c69872c50 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/ClearSagRouteableAddressResult.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_SMARTAG_MODEL_CLEARSAGROUTEABLEADDRESSRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CLEARSAGROUTEABLEADDRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ClearSagRouteableAddressResult : public ServiceResult + { + public: + + + ClearSagRouteableAddressResult(); + explicit ClearSagRouteableAddressResult(const std::string &payload); + ~ClearSagRouteableAddressResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_CLEARSAGROUTEABLEADDRESSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/CreateACLRequest.h b/smartag/include/alibabacloud/smartag/model/CreateACLRequest.h new file mode 100644 index 000000000..b9a0fa7c5 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/CreateACLRequest.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_SMARTAG_MODEL_CREATEACLREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATEACLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT CreateACLRequest : public RpcServiceRequest + { + + public: + CreateACLRequest(); + ~CreateACLRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getName()const; + void setName(const std::string& name); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string name_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATEACLREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/CreateACLResult.h b/smartag/include/alibabacloud/smartag/model/CreateACLResult.h new file mode 100644 index 000000000..74e39f3df --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/CreateACLResult.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_SMARTAG_MODEL_CREATEACLRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATEACLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT CreateACLResult : public ServiceResult + { + public: + + + CreateACLResult(); + explicit CreateACLResult(const std::string &payload); + ~CreateACLResult(); + std::string getAclId()const; + + protected: + void parse(const std::string &payload); + private: + std::string aclId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATEACLRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/CreateCloudConnectNetworkRequest.h b/smartag/include/alibabacloud/smartag/model/CreateCloudConnectNetworkRequest.h index b2379a782..c37ce675f 100644 --- a/smartag/include/alibabacloud/smartag/model/CreateCloudConnectNetworkRequest.h +++ b/smartag/include/alibabacloud/smartag/model/CreateCloudConnectNetworkRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATECLOUDCONNECTNETWORKREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_CREATECLOUDCONNECTNETWORKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT CreateCloudConnectNetworkRequest : public RpcServiceRequest - { - - public: - CreateCloudConnectNetworkRequest(); - ~CreateCloudConnectNetworkRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATECLOUDCONNECTNETWORKREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATECLOUDCONNECTNETWORKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT CreateCloudConnectNetworkRequest : public RpcServiceRequest + { + + public: + CreateCloudConnectNetworkRequest(); + ~CreateCloudConnectNetworkRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -45,25 +45,31 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); std::string getName()const; void setName(const std::string& name); + std::string getCidrBlock()const; + void setCidrBlock(const std::string& cidrBlock); std::string getDescription()const; void setDescription(const std::string& description); + std::string getSnatCidrBlock()const; + void setSnatCidrBlock(const std::string& snatCidrBlock); bool getIsDefault()const; void setIsDefault(bool isDefault); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; std::string ownerAccount_; std::string name_; + std::string cidrBlock_; std::string description_; + std::string snatCidrBlock_; bool isDefault_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATECLOUDCONNECTNETWORKREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/CreateCloudConnectNetworkResult.h b/smartag/include/alibabacloud/smartag/model/CreateCloudConnectNetworkResult.h index ed765c840..09426e8e3 100644 --- a/smartag/include/alibabacloud/smartag/model/CreateCloudConnectNetworkResult.h +++ b/smartag/include/alibabacloud/smartag/model/CreateCloudConnectNetworkResult.h @@ -1,57 +1,61 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATECLOUDCONNECTNETWORKRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_CREATECLOUDCONNECTNETWORKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT CreateCloudConnectNetworkResult : public ServiceResult - { - public: - - - CreateCloudConnectNetworkResult(); - explicit CreateCloudConnectNetworkResult(const std::string &payload); - ~CreateCloudConnectNetworkResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATECLOUDCONNECTNETWORKRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATECLOUDCONNECTNETWORKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT CreateCloudConnectNetworkResult : public ServiceResult + { + public: + + + CreateCloudConnectNetworkResult(); + explicit CreateCloudConnectNetworkResult(const std::string &payload); + ~CreateCloudConnectNetworkResult(); std::string getStatus()const; std::string getDescription()const; std::string getCcnId()const; + std::string getCidrBlock()const; + std::string getSnatCidrBlock()const; std::string getName()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string status_; std::string description_; std::string ccnId_; + std::string cidrBlock_; + std::string snatCidrBlock_; std::string name_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATECLOUDCONNECTNETWORKRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/CreateDedicatedLineBackupRequest.h b/smartag/include/alibabacloud/smartag/model/CreateDedicatedLineBackupRequest.h index 76c0e7af8..96ca89b30 100644 --- a/smartag/include/alibabacloud/smartag/model/CreateDedicatedLineBackupRequest.h +++ b/smartag/include/alibabacloud/smartag/model/CreateDedicatedLineBackupRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATEDEDICATEDLINEBACKUPREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_CREATEDEDICATEDLINEBACKUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT CreateDedicatedLineBackupRequest : public RpcServiceRequest - { - - public: - CreateDedicatedLineBackupRequest(); - ~CreateDedicatedLineBackupRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATEDEDICATEDLINEBACKUPREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATEDEDICATEDLINEBACKUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT CreateDedicatedLineBackupRequest : public RpcServiceRequest + { + + public: + CreateDedicatedLineBackupRequest(); + ~CreateDedicatedLineBackupRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setVbrId(const std::string& vbrId); std::string getVbrRegionId()const; void setVbrRegionId(const std::string& vbrRegionId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; @@ -61,9 +61,9 @@ namespace AlibabaCloud long ownerId_; std::string vbrId_; std::string vbrRegionId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATEDEDICATEDLINEBACKUPREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/CreateDedicatedLineBackupResult.h b/smartag/include/alibabacloud/smartag/model/CreateDedicatedLineBackupResult.h index 0ebfff1ad..5c2739b28 100644 --- a/smartag/include/alibabacloud/smartag/model/CreateDedicatedLineBackupResult.h +++ b/smartag/include/alibabacloud/smartag/model/CreateDedicatedLineBackupResult.h @@ -1,49 +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_SMARTAG_MODEL_CREATEDEDICATEDLINEBACKUPRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_CREATEDEDICATEDLINEBACKUPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT CreateDedicatedLineBackupResult : public ServiceResult - { - public: - - - CreateDedicatedLineBackupResult(); - explicit CreateDedicatedLineBackupResult(const std::string &payload); - ~CreateDedicatedLineBackupResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATEDEDICATEDLINEBACKUPRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATEDEDICATEDLINEBACKUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT CreateDedicatedLineBackupResult : public ServiceResult + { + public: + + + CreateDedicatedLineBackupResult(); + explicit CreateDedicatedLineBackupResult(const std::string &payload); + ~CreateDedicatedLineBackupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATEDEDICATEDLINEBACKUPRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/CreateNetworkOptimizationRequest.h b/smartag/include/alibabacloud/smartag/model/CreateNetworkOptimizationRequest.h new file mode 100644 index 000000000..57318dbcc --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/CreateNetworkOptimizationRequest.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_SMARTAG_MODEL_CREATENETWORKOPTIMIZATIONREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATENETWORKOPTIMIZATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT CreateNetworkOptimizationRequest : public RpcServiceRequest + { + + public: + CreateNetworkOptimizationRequest(); + ~CreateNetworkOptimizationRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getName()const; + void setName(const std::string& name); + std::string getCcnId()const; + void setCcnId(const std::string& ccnId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string name_; + std::string ccnId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATENETWORKOPTIMIZATIONREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/CreateNetworkOptimizationResult.h b/smartag/include/alibabacloud/smartag/model/CreateNetworkOptimizationResult.h new file mode 100644 index 000000000..e3ce14e44 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/CreateNetworkOptimizationResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATENETWORKOPTIMIZATIONRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATENETWORKOPTIMIZATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT CreateNetworkOptimizationResult : public ServiceResult + { + public: + + + CreateNetworkOptimizationResult(); + explicit CreateNetworkOptimizationResult(const std::string &payload); + ~CreateNetworkOptimizationResult(); + std::string getState()const; + std::string getNetworkOptId()const; + std::string getName()const; + + protected: + void parse(const std::string &payload); + private: + std::string state_; + std::string networkOptId_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATENETWORKOPTIMIZATIONRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/CreateSAGLinkLevelHaRequest.h b/smartag/include/alibabacloud/smartag/model/CreateSAGLinkLevelHaRequest.h new file mode 100644 index 000000000..6e96421dc --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/CreateSAGLinkLevelHaRequest.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_SMARTAG_MODEL_CREATESAGLINKLEVELHAREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATESAGLINKLEVELHAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT CreateSAGLinkLevelHaRequest : public RpcServiceRequest + { + + public: + CreateSAGLinkLevelHaRequest(); + ~CreateSAGLinkLevelHaRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getBackupLinkId()const; + void setBackupLinkId(const std::string& backupLinkId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getHaType()const; + void setHaType(const std::string& haType); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getMainLinkRegionId()const; + void setMainLinkRegionId(const std::string& mainLinkRegionId); + std::string getSmartAGId()const; + void setSmartAGId(const std::string& smartAGId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getMainLinkId()const; + void setMainLinkId(const std::string& mainLinkId); + std::string getBackupLinkRegionId()const; + void setBackupLinkRegionId(const std::string& backupLinkRegionId); + + private: + long resourceOwnerId_; + std::string backupLinkId_; + std::string resourceOwnerAccount_; + std::string haType_; + std::string ownerAccount_; + std::string mainLinkRegionId_; + std::string smartAGId_; + long ownerId_; + std::string mainLinkId_; + std::string backupLinkRegionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATESAGLINKLEVELHAREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/CreateSAGLinkLevelHaResult.h b/smartag/include/alibabacloud/smartag/model/CreateSAGLinkLevelHaResult.h new file mode 100644 index 000000000..5e3fc21e8 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/CreateSAGLinkLevelHaResult.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_SMARTAG_MODEL_CREATESAGLINKLEVELHARESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATESAGLINKLEVELHARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT CreateSAGLinkLevelHaResult : public ServiceResult + { + public: + + + CreateSAGLinkLevelHaResult(); + explicit CreateSAGLinkLevelHaResult(const std::string &payload); + ~CreateSAGLinkLevelHaResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATESAGLINKLEVELHARESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewayClientUserRequest.h b/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewayClientUserRequest.h new file mode 100644 index 000000000..b8a0873a9 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewayClientUserRequest.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_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYCLIENTUSERREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYCLIENTUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT CreateSmartAccessGatewayClientUserRequest : public RpcServiceRequest + { + + public: + CreateSmartAccessGatewayClientUserRequest(); + ~CreateSmartAccessGatewayClientUserRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + long getBandwidth()const; + void setBandwidth(long bandwidth); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getClientIp()const; + void setClientIp(const std::string& clientIp); + std::string getSmartAGId()const; + void setSmartAGId(const std::string& smartAGId); + std::string getUserMail()const; + void setUserMail(const std::string& userMail); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getUserName()const; + void setUserName(const std::string& userName); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + long bandwidth_; + std::string ownerAccount_; + std::string clientIp_; + std::string smartAGId_; + std::string userMail_; + long ownerId_; + std::string userName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYCLIENTUSERREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewayClientUserResult.h b/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewayClientUserResult.h new file mode 100644 index 000000000..ab6c65c1f --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewayClientUserResult.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_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYCLIENTUSERRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYCLIENTUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT CreateSmartAccessGatewayClientUserResult : public ServiceResult + { + public: + + + CreateSmartAccessGatewayClientUserResult(); + explicit CreateSmartAccessGatewayClientUserResult(const std::string &payload); + ~CreateSmartAccessGatewayClientUserResult(); + std::string getUserName()const; + std::string getUserMail()const; + int getBandwidth()const; + std::string getClientIp()const; + + protected: + void parse(const std::string &payload); + private: + std::string userName_; + std::string userMail_; + int bandwidth_; + std::string clientIp_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYCLIENTUSERRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewayRequest.h b/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewayRequest.h index 34b997391..c547f5197 100644 --- a/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewayRequest.h +++ b/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewayRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT CreateSmartAccessGatewayRequest : public RpcServiceRequest - { - - public: - CreateSmartAccessGatewayRequest(); - ~CreateSmartAccessGatewayRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT CreateSmartAccessGatewayRequest : public RpcServiceRequest + { + + public: + CreateSmartAccessGatewayRequest(); + ~CreateSmartAccessGatewayRequest(); + int getMaxBandWidth()const; void setMaxBandWidth(int maxBandWidth); long getResourceOwnerId()const; @@ -47,8 +47,12 @@ namespace AlibabaCloud void setReceiverDistrict(const std::string& receiverDistrict); std::string getRegionId()const; void setRegionId(const std::string& regionId); + int getUserCount()const; + void setUserCount(int userCount); std::string getReceiverAddress()const; void setReceiverAddress(const std::string& receiverAddress); + std::string getInstanceType()const; + void setInstanceType(const std::string& instanceType); std::string getBuyerMessage()const; void setBuyerMessage(const std::string& buyerMessage); std::string getHardWareSpec()const; @@ -83,17 +87,21 @@ namespace AlibabaCloud void setReceiverCountry(const std::string& receiverCountry); std::string getChargeType()const; void setChargeType(const std::string& chargeType); + long getDataPlan()const; + void setDataPlan(long dataPlan); std::string getReceiverZip()const; void setReceiverZip(const std::string& receiverZip); - - private: + + private: int maxBandWidth_; long resourceOwnerId_; std::string description_; std::string receiverTown_; std::string receiverDistrict_; std::string regionId_; + int userCount_; std::string receiverAddress_; + std::string instanceType_; std::string buyerMessage_; std::string hardWareSpec_; std::string receiverEmail_; @@ -111,10 +119,11 @@ namespace AlibabaCloud std::string name_; std::string receiverCountry_; std::string chargeType_; + long dataPlan_; std::string receiverZip_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewayResult.h b/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewayResult.h index 08feea37b..ccb27bffe 100644 --- a/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewayResult.h +++ b/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewayResult.h @@ -1,57 +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_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT CreateSmartAccessGatewayResult : public ServiceResult - { - public: - - - CreateSmartAccessGatewayResult(); - explicit CreateSmartAccessGatewayResult(const std::string &payload); - ~CreateSmartAccessGatewayResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT CreateSmartAccessGatewayResult : public ServiceResult + { + public: + + + CreateSmartAccessGatewayResult(); + explicit CreateSmartAccessGatewayResult(const std::string &payload); + ~CreateSmartAccessGatewayResult(); std::string getDescription()const; std::string getSmartAGId()const; std::string getOrderId()const; std::string getName()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string description_; std::string smartAGId_; std::string orderId_; std::string name_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewaySoftwareRequest.h b/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewaySoftwareRequest.h new file mode 100644 index 000000000..b18d0de58 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewaySoftwareRequest.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_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYSOFTWAREREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYSOFTWAREREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT CreateSmartAccessGatewaySoftwareRequest : public RpcServiceRequest + { + + public: + CreateSmartAccessGatewaySoftwareRequest(); + ~CreateSmartAccessGatewaySoftwareRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getPeriod()const; + void setPeriod(int period); + bool getAutoPay()const; + void setAutoPay(bool autoPay); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getUserCount()const; + void setUserCount(int userCount); + std::string getChargeType()const; + void setChargeType(const std::string& chargeType); + long getOwnerId()const; + void setOwnerId(long ownerId); + long getDataPlan()const; + void setDataPlan(long dataPlan); + + private: + long resourceOwnerId_; + int period_; + bool autoPay_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + int userCount_; + std::string chargeType_; + long ownerId_; + long dataPlan_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYSOFTWAREREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewaySoftwareResult.h b/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewaySoftwareResult.h new file mode 100644 index 000000000..58df30383 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewaySoftwareResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYSOFTWARERESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYSOFTWARERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT CreateSmartAccessGatewaySoftwareResult : public ServiceResult + { + public: + + + CreateSmartAccessGatewaySoftwareResult(); + explicit CreateSmartAccessGatewaySoftwareResult(const std::string &payload); + ~CreateSmartAccessGatewaySoftwareResult(); + std::string getSmartAGId()const; + std::string getOrderId()const; + + protected: + void parse(const std::string &payload); + private: + std::string smartAGId_; + std::string orderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYSOFTWARERESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteACLRequest.h b/smartag/include/alibabacloud/smartag/model/DeleteACLRequest.h new file mode 100644 index 000000000..58e0bfaa7 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DeleteACLRequest.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_SMARTAG_MODEL_DELETEACLREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETEACLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DeleteACLRequest : public RpcServiceRequest + { + + public: + DeleteACLRequest(); + ~DeleteACLRequest(); + + std::string getAclId()const; + void setAclId(const std::string& aclId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string aclId_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETEACLREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteACLResult.h b/smartag/include/alibabacloud/smartag/model/DeleteACLResult.h new file mode 100644 index 000000000..3a3d89e7a --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DeleteACLResult.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_SMARTAG_MODEL_DELETEACLRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETEACLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DeleteACLResult : public ServiceResult + { + public: + + + DeleteACLResult(); + explicit DeleteACLResult(const std::string &payload); + ~DeleteACLResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETEACLRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteACLRuleRequest.h b/smartag/include/alibabacloud/smartag/model/DeleteACLRuleRequest.h new file mode 100644 index 000000000..bf57a7afc --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DeleteACLRuleRequest.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_SMARTAG_MODEL_DELETEACLRULEREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETEACLRULEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DeleteACLRuleRequest : public RpcServiceRequest + { + + public: + DeleteACLRuleRequest(); + ~DeleteACLRuleRequest(); + + std::string getAclId()const; + void setAclId(const std::string& aclId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAcrId()const; + void setAcrId(const std::string& acrId); + + private: + std::string aclId_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + long ownerId_; + std::string acrId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETEACLRULEREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteACLRuleResult.h b/smartag/include/alibabacloud/smartag/model/DeleteACLRuleResult.h new file mode 100644 index 000000000..d56715a9d --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DeleteACLRuleResult.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_SMARTAG_MODEL_DELETEACLRULERESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETEACLRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DeleteACLRuleResult : public ServiceResult + { + public: + + + DeleteACLRuleResult(); + explicit DeleteACLRuleResult(const std::string &payload); + ~DeleteACLRuleResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETEACLRULERESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteCloudConnectNetworkRequest.h b/smartag/include/alibabacloud/smartag/model/DeleteCloudConnectNetworkRequest.h index 6141d86b8..b5a641724 100644 --- a/smartag/include/alibabacloud/smartag/model/DeleteCloudConnectNetworkRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DeleteCloudConnectNetworkRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETECLOUDCONNECTNETWORKREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DELETECLOUDCONNECTNETWORKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DeleteCloudConnectNetworkRequest : public RpcServiceRequest - { - - public: - DeleteCloudConnectNetworkRequest(); - ~DeleteCloudConnectNetworkRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETECLOUDCONNECTNETWORKREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETECLOUDCONNECTNETWORKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DeleteCloudConnectNetworkRequest : public RpcServiceRequest + { + + public: + DeleteCloudConnectNetworkRequest(); + ~DeleteCloudConnectNetworkRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setCcnId(const std::string& ccnId); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; std::string ownerAccount_; std::string ccnId_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETECLOUDCONNECTNETWORKREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteCloudConnectNetworkResult.h b/smartag/include/alibabacloud/smartag/model/DeleteCloudConnectNetworkResult.h index acdf384d8..7af197ba8 100644 --- a/smartag/include/alibabacloud/smartag/model/DeleteCloudConnectNetworkResult.h +++ b/smartag/include/alibabacloud/smartag/model/DeleteCloudConnectNetworkResult.h @@ -1,49 +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_SMARTAG_MODEL_DELETECLOUDCONNECTNETWORKRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DELETECLOUDCONNECTNETWORKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DeleteCloudConnectNetworkResult : public ServiceResult - { - public: - - - DeleteCloudConnectNetworkResult(); - explicit DeleteCloudConnectNetworkResult(const std::string &payload); - ~DeleteCloudConnectNetworkResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETECLOUDCONNECTNETWORKRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETECLOUDCONNECTNETWORKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DeleteCloudConnectNetworkResult : public ServiceResult + { + public: + + + DeleteCloudConnectNetworkResult(); + explicit DeleteCloudConnectNetworkResult(const std::string &payload); + ~DeleteCloudConnectNetworkResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETECLOUDCONNECTNETWORKRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteDedicatedLineBackupRequest.h b/smartag/include/alibabacloud/smartag/model/DeleteDedicatedLineBackupRequest.h index c5378283a..ec00872d1 100644 --- a/smartag/include/alibabacloud/smartag/model/DeleteDedicatedLineBackupRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DeleteDedicatedLineBackupRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETEDEDICATEDLINEBACKUPREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DELETEDEDICATEDLINEBACKUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DeleteDedicatedLineBackupRequest : public RpcServiceRequest - { - - public: - DeleteDedicatedLineBackupRequest(); - ~DeleteDedicatedLineBackupRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETEDEDICATEDLINEBACKUPREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETEDEDICATEDLINEBACKUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DeleteDedicatedLineBackupRequest : public RpcServiceRequest + { + + public: + DeleteDedicatedLineBackupRequest(); + ~DeleteDedicatedLineBackupRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setSmartAGId(const std::string& smartAGId); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; std::string ownerAccount_; std::string smartAGId_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETEDEDICATEDLINEBACKUPREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteDedicatedLineBackupResult.h b/smartag/include/alibabacloud/smartag/model/DeleteDedicatedLineBackupResult.h index b4af6f4f5..f9ab316ac 100644 --- a/smartag/include/alibabacloud/smartag/model/DeleteDedicatedLineBackupResult.h +++ b/smartag/include/alibabacloud/smartag/model/DeleteDedicatedLineBackupResult.h @@ -1,49 +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_SMARTAG_MODEL_DELETEDEDICATEDLINEBACKUPRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DELETEDEDICATEDLINEBACKUPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DeleteDedicatedLineBackupResult : public ServiceResult - { - public: - - - DeleteDedicatedLineBackupResult(); - explicit DeleteDedicatedLineBackupResult(const std::string &payload); - ~DeleteDedicatedLineBackupResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETEDEDICATEDLINEBACKUPRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETEDEDICATEDLINEBACKUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DeleteDedicatedLineBackupResult : public ServiceResult + { + public: + + + DeleteDedicatedLineBackupResult(); + explicit DeleteDedicatedLineBackupResult(const std::string &payload); + ~DeleteDedicatedLineBackupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETEDEDICATEDLINEBACKUPRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteNetworkOptimizationRequest.h b/smartag/include/alibabacloud/smartag/model/DeleteNetworkOptimizationRequest.h new file mode 100644 index 000000000..749ea0842 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DeleteNetworkOptimizationRequest.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_SMARTAG_MODEL_DELETENETWORKOPTIMIZATIONREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETENETWORKOPTIMIZATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DeleteNetworkOptimizationRequest : public RpcServiceRequest + { + + public: + DeleteNetworkOptimizationRequest(); + ~DeleteNetworkOptimizationRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getNetworkOptId()const; + void setNetworkOptId(const std::string& networkOptId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string networkOptId_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETENETWORKOPTIMIZATIONREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteNetworkOptimizationResult.h b/smartag/include/alibabacloud/smartag/model/DeleteNetworkOptimizationResult.h new file mode 100644 index 000000000..e0ed9d0e9 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DeleteNetworkOptimizationResult.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_SMARTAG_MODEL_DELETENETWORKOPTIMIZATIONRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETENETWORKOPTIMIZATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DeleteNetworkOptimizationResult : public ServiceResult + { + public: + + + DeleteNetworkOptimizationResult(); + explicit DeleteNetworkOptimizationResult(const std::string &payload); + ~DeleteNetworkOptimizationResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETENETWORKOPTIMIZATIONRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteNetworkOptimizationSettingRequest.h b/smartag/include/alibabacloud/smartag/model/DeleteNetworkOptimizationSettingRequest.h new file mode 100644 index 000000000..ea0acdac1 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DeleteNetworkOptimizationSettingRequest.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_SMARTAG_MODEL_DELETENETWORKOPTIMIZATIONSETTINGREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETENETWORKOPTIMIZATIONSETTINGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DeleteNetworkOptimizationSettingRequest : public RpcServiceRequest + { + + public: + DeleteNetworkOptimizationSettingRequest(); + ~DeleteNetworkOptimizationSettingRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getNetworkOptId()const; + void setNetworkOptId(const std::string& networkOptId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDomain()const; + void setDomain(const std::string& domain); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getType()const; + void setType(const std::string& type); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string networkOptId_; + std::string ownerAccount_; + std::string domain_; + long ownerId_; + std::string type_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETENETWORKOPTIMIZATIONSETTINGREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteNetworkOptimizationSettingResult.h b/smartag/include/alibabacloud/smartag/model/DeleteNetworkOptimizationSettingResult.h new file mode 100644 index 000000000..8e3ff3840 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DeleteNetworkOptimizationSettingResult.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_SMARTAG_MODEL_DELETENETWORKOPTIMIZATIONSETTINGRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETENETWORKOPTIMIZATIONSETTINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DeleteNetworkOptimizationSettingResult : public ServiceResult + { + public: + + + DeleteNetworkOptimizationSettingResult(); + explicit DeleteNetworkOptimizationSettingResult(const std::string &payload); + ~DeleteNetworkOptimizationSettingResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETENETWORKOPTIMIZATIONSETTINGRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteSAGLinkLevelHaRequest.h b/smartag/include/alibabacloud/smartag/model/DeleteSAGLinkLevelHaRequest.h new file mode 100644 index 000000000..9e0844c68 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DeleteSAGLinkLevelHaRequest.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_SMARTAG_MODEL_DELETESAGLINKLEVELHAREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETESAGLINKLEVELHAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DeleteSAGLinkLevelHaRequest : public RpcServiceRequest + { + + public: + DeleteSAGLinkLevelHaRequest(); + ~DeleteSAGLinkLevelHaRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getHaType()const; + void setHaType(const std::string& haType); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSmartAGId()const; + void setSmartAGId(const std::string& smartAGId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string haType_; + std::string ownerAccount_; + std::string smartAGId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETESAGLINKLEVELHAREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteSAGLinkLevelHaResult.h b/smartag/include/alibabacloud/smartag/model/DeleteSAGLinkLevelHaResult.h new file mode 100644 index 000000000..33641e09c --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DeleteSAGLinkLevelHaResult.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_SMARTAG_MODEL_DELETESAGLINKLEVELHARESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETESAGLINKLEVELHARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DeleteSAGLinkLevelHaResult : public ServiceResult + { + public: + + + DeleteSAGLinkLevelHaResult(); + explicit DeleteSAGLinkLevelHaResult(const std::string &payload); + ~DeleteSAGLinkLevelHaResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETESAGLINKLEVELHARESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteSmartAccessGatewayClientUserRequest.h b/smartag/include/alibabacloud/smartag/model/DeleteSmartAccessGatewayClientUserRequest.h new file mode 100644 index 000000000..0e7e4c881 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DeleteSmartAccessGatewayClientUserRequest.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_SMARTAG_MODEL_DELETESMARTACCESSGATEWAYCLIENTUSERREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETESMARTACCESSGATEWAYCLIENTUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DeleteSmartAccessGatewayClientUserRequest : public RpcServiceRequest + { + + public: + DeleteSmartAccessGatewayClientUserRequest(); + ~DeleteSmartAccessGatewayClientUserRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSmartAGId()const; + void setSmartAGId(const std::string& smartAGId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getUserName()const; + void setUserName(const std::string& userName); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string smartAGId_; + long ownerId_; + std::string userName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETESMARTACCESSGATEWAYCLIENTUSERREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteSmartAccessGatewayClientUserResult.h b/smartag/include/alibabacloud/smartag/model/DeleteSmartAccessGatewayClientUserResult.h new file mode 100644 index 000000000..601ed03b9 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DeleteSmartAccessGatewayClientUserResult.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_SMARTAG_MODEL_DELETESMARTACCESSGATEWAYCLIENTUSERRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETESMARTACCESSGATEWAYCLIENTUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DeleteSmartAccessGatewayClientUserResult : public ServiceResult + { + public: + + + DeleteSmartAccessGatewayClientUserResult(); + explicit DeleteSmartAccessGatewayClientUserResult(const std::string &payload); + ~DeleteSmartAccessGatewayClientUserResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETESMARTACCESSGATEWAYCLIENTUSERRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeACLAttributeRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeACLAttributeRequest.h new file mode 100644 index 000000000..a293b8782 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DescribeACLAttributeRequest.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_SMARTAG_MODEL_DESCRIBEACLATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEACLATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeACLAttributeRequest : public RpcServiceRequest + { + + public: + DescribeACLAttributeRequest(); + ~DescribeACLAttributeRequest(); + + std::string getAclId()const; + void setAclId(const std::string& aclId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getDirection()const; + void setDirection(const std::string& direction); + std::string getOrder()const; + void setOrder(const std::string& order); + + private: + std::string aclId_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + int pageSize_; + long ownerId_; + int pageNumber_; + std::string direction_; + std::string order_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEACLATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeACLAttributeResult.h b/smartag/include/alibabacloud/smartag/model/DescribeACLAttributeResult.h new file mode 100644 index 000000000..503632e96 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DescribeACLAttributeResult.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_SMARTAG_MODEL_DESCRIBEACLATTRIBUTERESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEACLATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeACLAttributeResult : public ServiceResult + { + public: + struct Acr + { + std::string policy; + long gmtCreate; + std::string description; + std::string destCidr; + std::string sourcePortRange; + std::string sourceCidr; + int priority; + std::string aclId; + std::string acrId; + std::string ipProtocol; + std::string destPortRange; + std::string direction; + }; + + + DescribeACLAttributeResult(); + explicit DescribeACLAttributeResult(const std::string &payload); + ~DescribeACLAttributeResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getAcrs()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector acrs_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEACLATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeACLsRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeACLsRequest.h new file mode 100644 index 000000000..8da872acd --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DescribeACLsRequest.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_SMARTAG_MODEL_DESCRIBEACLSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEACLSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeACLsRequest : public RpcServiceRequest + { + + public: + DescribeACLsRequest(); + ~DescribeACLsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getAclIds()const; + void setAclIds(const std::string& aclIds); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getName()const; + void setName(const std::string& name); + int getPageSize()const; + void setPageSize(int pageSize); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string aclIds_; + std::string ownerAccount_; + std::string name_; + int pageSize_; + long ownerId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEACLSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeACLsResult.h b/smartag/include/alibabacloud/smartag/model/DescribeACLsResult.h new file mode 100644 index 000000000..74d3b2be5 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DescribeACLsResult.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_SMARTAG_MODEL_DESCRIBEACLSRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEACLSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeACLsResult : public ServiceResult + { + public: + struct Acl + { + std::string sagCount; + std::string aclId; + std::string name; + }; + + + DescribeACLsResult(); + explicit DescribeACLsResult(const std::string &payload); + ~DescribeACLsResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getAcls()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector acls_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEACLSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeCloudConnectNetworksRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeCloudConnectNetworksRequest.h index 52e15a56f..2fa726fa8 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeCloudConnectNetworksRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeCloudConnectNetworksRequest.h @@ -1,40 +1,45 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBECLOUDCONNECTNETWORKSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBECLOUDCONNECTNETWORKSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeCloudConnectNetworksRequest : public RpcServiceRequest - { - - public: - DescribeCloudConnectNetworksRequest(); - ~DescribeCloudConnectNetworksRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBECLOUDCONNECTNETWORKSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBECLOUDCONNECTNETWORKSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeCloudConnectNetworksRequest : public RpcServiceRequest + { + struct Tag + { + std::string value; + std::string key; + }; + + public: + DescribeCloudConnectNetworksRequest(); + ~DescribeCloudConnectNetworksRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -49,12 +54,14 @@ namespace AlibabaCloud void setCcnId(const std::string& ccnId); std::string getPageSize()const; void setPageSize(const std::string& pageSize); + std::vector getTag()const; + void setTag(const std::vector& tag); long getOwnerId()const; void setOwnerId(long ownerId); std::string getPageNumber()const; void setPageNumber(const std::string& pageNumber); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; @@ -62,11 +69,12 @@ namespace AlibabaCloud std::string name_; std::string ccnId_; std::string pageSize_; + std::vector tag_; long ownerId_; std::string pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBECLOUDCONNECTNETWORKSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeCloudConnectNetworksResult.h b/smartag/include/alibabacloud/smartag/model/DescribeCloudConnectNetworksResult.h index d5589c694..c271e133f 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeCloudConnectNetworksResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeCloudConnectNetworksResult.h @@ -1,69 +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_SMARTAG_MODEL_DESCRIBECLOUDCONNECTNETWORKSRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBECLOUDCONNECTNETWORKSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeCloudConnectNetworksResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBECLOUDCONNECTNETWORKSRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBECLOUDCONNECTNETWORKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeCloudConnectNetworksResult : public ServiceResult + { + public: struct CloudConnectNetwork { + struct Tag + { + std::string value; + std::string key; + }; bool isDefault; std::string description; std::string ccnId; std::string availableCloudBoxCount; long createTime; std::string associatedCenOwnerId; + std::string cidrBlock; std::string associatedCenId; + std::string snatCidrBlock; + std::vector tags; std::string associatedCloudBoxCount; std::string name; }; - - - DescribeCloudConnectNetworksResult(); - explicit DescribeCloudConnectNetworksResult(const std::string &payload); - ~DescribeCloudConnectNetworksResult(); + + + DescribeCloudConnectNetworksResult(); + explicit DescribeCloudConnectNetworksResult(const std::string &payload); + ~DescribeCloudConnectNetworksResult(); std::vector getCloudConnectNetworks()const; int getTotalCount()const; int getPageSize()const; int getPageNumber()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector cloudConnectNetworks_; int totalCount_; int pageSize_; int pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBECLOUDCONNECTNETWORKSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeGrantRulesRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeGrantRulesRequest.h new file mode 100644 index 000000000..803b92ceb --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DescribeGrantRulesRequest.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_SMARTAG_MODEL_DESCRIBEGRANTRULESREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEGRANTRULESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeGrantRulesRequest : public RpcServiceRequest + { + + public: + DescribeGrantRulesRequest(); + ~DescribeGrantRulesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getPageSize()const; + void setPageSize(const std::string& pageSize); + std::string getAssociatedCcnId()const; + void setAssociatedCcnId(const std::string& associatedCcnId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getPageNumber()const; + void setPageNumber(const std::string& pageNumber); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string pageSize_; + std::string associatedCcnId_; + long ownerId_; + std::string pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEGRANTRULESREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeGrantRulesResult.h b/smartag/include/alibabacloud/smartag/model/DescribeGrantRulesResult.h new file mode 100644 index 000000000..a12098fd0 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DescribeGrantRulesResult.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_SMARTAG_MODEL_DESCRIBEGRANTRULESRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEGRANTRULESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeGrantRulesResult : public ServiceResult + { + public: + struct GrantRule + { + long gmtCreate; + long cenUid; + std::string ccnInstanceId; + std::string grantRuleId; + long ccnId; + std::string cenInstanceId; + long gmtModified; + std::string regionId; + }; + + + DescribeGrantRulesResult(); + explicit DescribeGrantRulesResult(const std::string &payload); + ~DescribeGrantRulesResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getGrantRules()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector grantRules_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEGRANTRULESRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationSagsRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationSagsRequest.h new file mode 100644 index 000000000..365a2f4b2 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationSagsRequest.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_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSAGSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSAGSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeNetworkOptimizationSagsRequest : public RpcServiceRequest + { + + public: + DescribeNetworkOptimizationSagsRequest(); + ~DescribeNetworkOptimizationSagsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getNetworkOptId()const; + void setNetworkOptId(const std::string& networkOptId); + int getPageNo()const; + void setPageNo(int pageNo); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string networkOptId_; + int pageNo_; + std::string ownerAccount_; + int pageSize_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSAGSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationSagsResult.h b/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationSagsResult.h new file mode 100644 index 000000000..75eef72de --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationSagsResult.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_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSAGSRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSAGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeNetworkOptimizationSagsResult : public ServiceResult + { + public: + struct SmartAccessGateway + { + long endTime; + std::string instanceId; + std::string state; + long createTime; + std::string maxBandwidth; + std::string name; + }; + + + DescribeNetworkOptimizationSagsResult(); + explicit DescribeNetworkOptimizationSagsResult(const std::string &payload); + ~DescribeNetworkOptimizationSagsResult(); + int getTotalCount()const; + int getPageSize()const; + std::vector getSmartAccessGateways()const; + int getPageNo()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + std::vector smartAccessGateways_; + int pageNo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSAGSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationSettingsRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationSettingsRequest.h new file mode 100644 index 000000000..32eb09a2e --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationSettingsRequest.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_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSETTINGSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSETTINGSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeNetworkOptimizationSettingsRequest : public RpcServiceRequest + { + + public: + DescribeNetworkOptimizationSettingsRequest(); + ~DescribeNetworkOptimizationSettingsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getNetworkOptId()const; + void setNetworkOptId(const std::string& networkOptId); + int getPageNo()const; + void setPageNo(int pageNo); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string networkOptId_; + int pageNo_; + std::string ownerAccount_; + int pageSize_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSETTINGSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationSettingsResult.h b/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationSettingsResult.h new file mode 100644 index 000000000..fd709e831 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationSettingsResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSETTINGSRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSETTINGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeNetworkOptimizationSettingsResult : public ServiceResult + { + public: + struct Setting + { + std::string type; + std::string domain; + }; + + + DescribeNetworkOptimizationSettingsResult(); + explicit DescribeNetworkOptimizationSettingsResult(const std::string &payload); + ~DescribeNetworkOptimizationSettingsResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNo()const; + std::vector getSettings()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNo_; + std::vector settings_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSETTINGSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationsRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationsRequest.h new file mode 100644 index 000000000..69d109c5d --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationsRequest.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_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeNetworkOptimizationsRequest : public RpcServiceRequest + { + + public: + DescribeNetworkOptimizationsRequest(); + ~DescribeNetworkOptimizationsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getNetworkOptId()const; + void setNetworkOptId(const std::string& networkOptId); + int getPageNo()const; + void setPageNo(int pageNo); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getCcnId()const; + void setCcnId(const std::string& ccnId); + std::string getName()const; + void setName(const std::string& name); + int getPageSize()const; + void setPageSize(int pageSize); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string networkOptId_; + int pageNo_; + std::string ownerAccount_; + std::string ccnId_; + std::string name_; + int pageSize_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationsResult.h b/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationsResult.h new file mode 100644 index 000000000..e5eb25d37 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationsResult.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_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeNetworkOptimizationsResult : public ServiceResult + { + public: + struct NetworkOptimization + { + int sagCount; + std::string instanceId; + std::string state; + long createTime; + std::string ccnId; + std::string name; + }; + + + DescribeNetworkOptimizationsResult(); + explicit DescribeNetworkOptimizationsResult(const std::string &payload); + ~DescribeNetworkOptimizationsResult(); + std::vector getNetworkOptimizations()const; + int getTotalCount()const; + int getPageSize()const; + int getPageNo()const; + + protected: + void parse(const std::string &payload); + private: + std::vector networkOptimizations_; + int totalCount_; + int pageSize_; + int pageNo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeRegionsRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeRegionsRequest.h index 3c930f868..7568b1aa9 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeRegionsRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeRegionsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEREGIONSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEREGIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeRegionsRequest : public RpcServiceRequest - { - - public: - DescribeRegionsRequest(); - ~DescribeRegionsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEREGIONSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEREGIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeRegionsRequest : public RpcServiceRequest + { + + public: + DescribeRegionsRequest(); + ~DescribeRegionsRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setAcceptLanguage(const std::string& acceptLanguage); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string ownerAccount_; std::string acceptLanguage_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEREGIONSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeRegionsResult.h b/smartag/include/alibabacloud/smartag/model/DescribeRegionsResult.h index f0a3c2300..ff2a704a8 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeRegionsResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeRegionsResult.h @@ -1,57 +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_SMARTAG_MODEL_DESCRIBEREGIONSRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEREGIONSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeRegionsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEREGIONSRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEREGIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeRegionsResult : public ServiceResult + { + public: struct Region { std::string regionId; std::string regionEndpoint; std::string localName; }; - - - DescribeRegionsResult(); - explicit DescribeRegionsResult(const std::string &payload); - ~DescribeRegionsResult(); + + + DescribeRegionsResult(); + explicit DescribeRegionsResult(const std::string &payload); + ~DescribeRegionsResult(); std::vector getRegions()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector regions_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEREGIONSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagOnlineClientStatisticsRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeSagOnlineClientStatisticsRequest.h new file mode 100644 index 000000000..b22f8d14a --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagOnlineClientStatisticsRequest.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_SMARTAG_MODEL_DESCRIBESAGONLINECLIENTSTATISTICSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGONLINECLIENTSTATISTICSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagOnlineClientStatisticsRequest : public RpcServiceRequest + { + + public: + DescribeSagOnlineClientStatisticsRequest(); + ~DescribeSagOnlineClientStatisticsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::vector getSmartAGIds()const; + void setSmartAGIds(const std::vector& smartAGIds); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::vector smartAGIds_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGONLINECLIENTSTATISTICSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagOnlineClientStatisticsResult.h b/smartag/include/alibabacloud/smartag/model/DescribeSagOnlineClientStatisticsResult.h new file mode 100644 index 000000000..eb943a6bd --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagOnlineClientStatisticsResult.h @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGONLINECLIENTSTATISTICSRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGONLINECLIENTSTATISTICSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagOnlineClientStatisticsResult : public ServiceResult + { + public: + struct Statistics + { + std::string onlineCount; + std::string smartAGId; + }; + + + DescribeSagOnlineClientStatisticsResult(); + explicit DescribeSagOnlineClientStatisticsResult(const std::string &payload); + ~DescribeSagOnlineClientStatisticsResult(); + std::vector getSagStatistics()const; + + protected: + void parse(const std::string &payload); + private: + std::vector sagStatistics_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGONLINECLIENTSTATISTICSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagRouteableAddressRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeSagRouteableAddressRequest.h new file mode 100644 index 000000000..ec8ddc23a --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagRouteableAddressRequest.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_SMARTAG_MODEL_DESCRIBESAGROUTEABLEADDRESSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGROUTEABLEADDRESSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagRouteableAddressRequest : public RpcServiceRequest + { + + public: + DescribeSagRouteableAddressRequest(); + ~DescribeSagRouteableAddressRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getSagId()const; + void setSagId(const std::string& sagId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string sagId_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGROUTEABLEADDRESSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagRouteableAddressResult.h b/smartag/include/alibabacloud/smartag/model/DescribeSagRouteableAddressResult.h new file mode 100644 index 000000000..cb59ceebe --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagRouteableAddressResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGROUTEABLEADDRESSRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGROUTEABLEADDRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagRouteableAddressResult : public ServiceResult + { + public: + + + DescribeSagRouteableAddressResult(); + explicit DescribeSagRouteableAddressResult(const std::string &payload); + ~DescribeSagRouteableAddressResult(); + std::string getOrigin()const; + std::string getRouteableAddress()const; + + protected: + void parse(const std::string &payload); + private: + std::string origin_; + std::string routeableAddress_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGROUTEABLEADDRESSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayClientUsersRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayClientUsersRequest.h new file mode 100644 index 000000000..03eb9f95d --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayClientUsersRequest.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_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYCLIENTUSERSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYCLIENTUSERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeSmartAccessGatewayClientUsersRequest : public RpcServiceRequest + { + + public: + DescribeSmartAccessGatewayClientUsersRequest(); + ~DescribeSmartAccessGatewayClientUsersRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getPageNo()const; + void setPageNo(int pageNo); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getSmartAGId()const; + void setSmartAGId(const std::string& smartAGId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getUserName()const; + void setUserName(const std::string& userName); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + int pageNo_; + std::string ownerAccount_; + int pageSize_; + std::string smartAGId_; + long ownerId_; + std::string userName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYCLIENTUSERSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayClientUsersResult.h b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayClientUsersResult.h new file mode 100644 index 000000000..c54379d9f --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayClientUsersResult.h @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYCLIENTUSERSRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYCLIENTUSERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeSmartAccessGatewayClientUsersResult : public ServiceResult + { + public: + struct User + { + std::string userName; + std::string userMail; + int bandwidth; + std::string clientIp; + }; + + + DescribeSmartAccessGatewayClientUsersResult(); + explicit DescribeSmartAccessGatewayClientUsersResult(const std::string &payload); + ~DescribeSmartAccessGatewayClientUsersResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNo()const; + std::vector getUsers()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNo_; + std::vector users_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYCLIENTUSERSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayHaRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayHaRequest.h index 2b4820c1a..52287fbc0 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayHaRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayHaRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYHAREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYHAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeSmartAccessGatewayHaRequest : public RpcServiceRequest - { - - public: - DescribeSmartAccessGatewayHaRequest(); - ~DescribeSmartAccessGatewayHaRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYHAREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYHAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeSmartAccessGatewayHaRequest : public RpcServiceRequest + { + + public: + DescribeSmartAccessGatewayHaRequest(); + ~DescribeSmartAccessGatewayHaRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setSmartAGId(const std::string& smartAGId); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; std::string ownerAccount_; std::string smartAGId_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYHAREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayHaResult.h b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayHaResult.h index 67342a2bd..822b5b9fa 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayHaResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayHaResult.h @@ -1,67 +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_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYHARESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYHARESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeSmartAccessGatewayHaResult : public ServiceResult - { - public: - - - DescribeSmartAccessGatewayHaResult(); - explicit DescribeSmartAccessGatewayHaResult(const std::string &payload); - ~DescribeSmartAccessGatewayHaResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYHARESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYHARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeSmartAccessGatewayHaResult : public ServiceResult + { + public: + struct LinkBackupInfoListItem + { + std::string backupLinkState; + std::string mainLinkState; + std::string backupLinkId; + std::string linkLevelBackupType; + std::string mainLinkId; + std::string linkLevelBackupState; + }; + + + DescribeSmartAccessGatewayHaResult(); + explicit DescribeSmartAccessGatewayHaResult(const std::string &payload); + ~DescribeSmartAccessGatewayHaResult(); std::string getDeviceLevelBackupState()const; - std::string getBackupLinkId()const; + std::vector getLinkBackupInfoList()const; std::string getBackupDeviceId()const; - std::string getLinkLevelBackupType()const; - std::string getMainLinkId()const; std::string getSmartAGId()const; std::string getDeviceLevelBackupType()const; - std::string getLinkLevelBackupState()const; std::string getMainDeviceId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string deviceLevelBackupState_; - std::string backupLinkId_; + std::vector linkBackupInfoList_; std::string backupDeviceId_; - std::string linkLevelBackupType_; - std::string mainLinkId_; std::string smartAGId_; std::string deviceLevelBackupType_; - std::string linkLevelBackupState_; std::string mainDeviceId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYHARESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayVersionsRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayVersionsRequest.h index 9d64ac9d5..d40df9fc2 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayVersionsRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayVersionsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYVERSIONSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYVERSIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeSmartAccessGatewayVersionsRequest : public RpcServiceRequest - { - - public: - DescribeSmartAccessGatewayVersionsRequest(); - ~DescribeSmartAccessGatewayVersionsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYVERSIONSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYVERSIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeSmartAccessGatewayVersionsRequest : public RpcServiceRequest + { + + public: + DescribeSmartAccessGatewayVersionsRequest(); + ~DescribeSmartAccessGatewayVersionsRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -43,18 +43,21 @@ namespace AlibabaCloud void setRegionId(const std::string& regionId); std::string getOwnerAccount()const; void setOwnerAccount(const std::string& ownerAccount); + std::string getSmartAGId()const; + void setSmartAGId(const std::string& smartAGId); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; std::string ownerAccount_; + std::string smartAGId_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYVERSIONSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayVersionsResult.h b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayVersionsResult.h index 9149511ba..0fe6745ad 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayVersionsResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayVersionsResult.h @@ -1,57 +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_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYVERSIONSRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYVERSIONSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeSmartAccessGatewayVersionsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYVERSIONSRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYVERSIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeSmartAccessGatewayVersionsResult : public ServiceResult + { + public: struct SmartAGVersion { std::string versionCode; long createTime; std::string versionName; }; - - - DescribeSmartAccessGatewayVersionsResult(); - explicit DescribeSmartAccessGatewayVersionsResult(const std::string &payload); - ~DescribeSmartAccessGatewayVersionsResult(); + + + DescribeSmartAccessGatewayVersionsResult(); + explicit DescribeSmartAccessGatewayVersionsResult(const std::string &payload); + ~DescribeSmartAccessGatewayVersionsResult(); std::vector getSmartAGVersions()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector smartAGVersions_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYVERSIONSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewaysRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewaysRequest.h index 7f1982dc7..6fdb7f831 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewaysRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewaysRequest.h @@ -1,78 +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_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeSmartAccessGatewaysRequest : public RpcServiceRequest - { - - public: - DescribeSmartAccessGatewaysRequest(); - ~DescribeSmartAccessGatewaysRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeSmartAccessGatewaysRequest : public RpcServiceRequest + { + + public: + DescribeSmartAccessGatewaysRequest(); + ~DescribeSmartAccessGatewaysRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); + std::string getSerialNumber()const; + void setSerialNumber(const std::string& serialNumber); std::string getResourceOwnerAccount()const; void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); + std::string getAclIds()const; + void setAclIds(const std::string& aclIds); std::string getOwnerAccount()const; void setOwnerAccount(const std::string& ownerAccount); + std::string getAssociatedCcnId()const; + void setAssociatedCcnId(const std::string& associatedCcnId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getUnboundAclIds()const; + void setUnboundAclIds(const std::string& unboundAclIds); + std::string getPageNumber()const; + void setPageNumber(const std::string& pageNumber); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); std::string getName()const; void setName(const std::string& name); std::string getPageSize()const; void setPageSize(const std::string& pageSize); - std::string getAssociatedCcnId()const; - void setAssociatedCcnId(const std::string& associatedCcnId); std::string getSmartAGId()const; void setSmartAGId(const std::string& smartAGId); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getPageNumber()const; - void setPageNumber(const std::string& pageNumber); + std::string getInstanceType()const; + void setInstanceType(const std::string& instanceType); std::string getStatus()const; void setStatus(const std::string& status); - - private: + + private: long resourceOwnerId_; + std::string serialNumber_; std::string resourceOwnerAccount_; - std::string regionId_; + std::string aclIds_; std::string ownerAccount_; + std::string associatedCcnId_; + long ownerId_; + std::string unboundAclIds_; + std::string pageNumber_; + std::string regionId_; std::string name_; std::string pageSize_; - std::string associatedCcnId_; std::string smartAGId_; - long ownerId_; - std::string pageNumber_; + std::string instanceType_; std::string status_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewaysResult.h b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewaysResult.h index ea904e6ca..09bb51547 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewaysResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewaysResult.h @@ -1,45 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYSRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeSmartAccessGatewaysResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYSRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeSmartAccessGatewaysResult : public ServiceResult + { + public: struct SmartAccessGateway { + struct SnatEntry + { + std::string cidrBlock; + std::string snatIp; + }; std::string status; std::string description; + std::vector snatEntries; long endTime; + int userCount; std::string maxBandwidth; std::string associatedCcnName; long createTime; + long dataPlan; std::string cidrBlock; std::string city; std::string hardwareVersion; @@ -49,27 +57,28 @@ namespace AlibabaCloud std::string associatedCcnId; std::string smartAGId; int securityLockThreshold; + std::string aclIds; }; - - - DescribeSmartAccessGatewaysResult(); - explicit DescribeSmartAccessGatewaysResult(const std::string &payload); - ~DescribeSmartAccessGatewaysResult(); + + + DescribeSmartAccessGatewaysResult(); + explicit DescribeSmartAccessGatewaysResult(const std::string &payload); + ~DescribeSmartAccessGatewaysResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getSmartAccessGateways()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; std::vector smartAccessGateways_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeUserFlowStatisticsRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeUserFlowStatisticsRequest.h new file mode 100644 index 000000000..893c2d358 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DescribeUserFlowStatisticsRequest.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_SMARTAG_MODEL_DESCRIBEUSERFLOWSTATISTICSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERFLOWSTATISTICSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeUserFlowStatisticsRequest : public RpcServiceRequest + { + + public: + DescribeUserFlowStatisticsRequest(); + ~DescribeUserFlowStatisticsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSmartAGId()const; + void setSmartAGId(const std::string& smartAGId); + std::string getStatisticsDate()const; + void setStatisticsDate(const std::string& statisticsDate); + std::vector getUserNames()const; + void setUserNames(const std::vector& userNames); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string smartAGId_; + std::string statisticsDate_; + std::vector userNames_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERFLOWSTATISTICSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeUserFlowStatisticsResult.h b/smartag/include/alibabacloud/smartag/model/DescribeUserFlowStatisticsResult.h new file mode 100644 index 000000000..9a4ba73a5 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DescribeUserFlowStatisticsResult.h @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERFLOWSTATISTICSRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERFLOWSTATISTICSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeUserFlowStatisticsResult : public ServiceResult + { + public: + struct Statistics + { + std::string userName; + std::string totalBytes; + }; + + + DescribeUserFlowStatisticsResult(); + explicit DescribeUserFlowStatisticsResult(const std::string &payload); + ~DescribeUserFlowStatisticsResult(); + std::vector getSagStatistics()const; + + protected: + void parse(const std::string &payload); + private: + std::vector sagStatistics_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERFLOWSTATISTICSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeUserOnlineClientStatisticsRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeUserOnlineClientStatisticsRequest.h new file mode 100644 index 000000000..192bc3868 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DescribeUserOnlineClientStatisticsRequest.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_SMARTAG_MODEL_DESCRIBEUSERONLINECLIENTSTATISTICSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERONLINECLIENTSTATISTICSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeUserOnlineClientStatisticsRequest : public RpcServiceRequest + { + + public: + DescribeUserOnlineClientStatisticsRequest(); + ~DescribeUserOnlineClientStatisticsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSmartAGId()const; + void setSmartAGId(const std::string& smartAGId); + std::vector getUserNames()const; + void setUserNames(const std::vector& userNames); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string smartAGId_; + std::vector userNames_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERONLINECLIENTSTATISTICSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeUserOnlineClientStatisticsResult.h b/smartag/include/alibabacloud/smartag/model/DescribeUserOnlineClientStatisticsResult.h new file mode 100644 index 000000000..503420232 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DescribeUserOnlineClientStatisticsResult.h @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERONLINECLIENTSTATISTICSRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERONLINECLIENTSTATISTICSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeUserOnlineClientStatisticsResult : public ServiceResult + { + public: + struct Statistics + { + std::string userName; + std::string onlineCount; + }; + + + DescribeUserOnlineClientStatisticsResult(); + explicit DescribeUserOnlineClientStatisticsResult(const std::string &payload); + ~DescribeUserOnlineClientStatisticsResult(); + std::vector getUserStatistics()const; + + protected: + void parse(const std::string &payload); + private: + std::vector userStatistics_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERONLINECLIENTSTATISTICSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeUserOnlineClientsRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeUserOnlineClientsRequest.h new file mode 100644 index 000000000..8fe6ad1b7 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DescribeUserOnlineClientsRequest.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_SMARTAG_MODEL_DESCRIBEUSERONLINECLIENTSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERONLINECLIENTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeUserOnlineClientsRequest : public RpcServiceRequest + { + + public: + DescribeUserOnlineClientsRequest(); + ~DescribeUserOnlineClientsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSmartAGId()const; + void setSmartAGId(const std::string& smartAGId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getUserName()const; + void setUserName(const std::string& userName); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string smartAGId_; + long ownerId_; + std::string userName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERONLINECLIENTSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeUserOnlineClientsResult.h b/smartag/include/alibabacloud/smartag/model/DescribeUserOnlineClientsResult.h new file mode 100644 index 000000000..8eb17c870 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DescribeUserOnlineClientsResult.h @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERONLINECLIENTSRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERONLINECLIENTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeUserOnlineClientsResult : public ServiceResult + { + public: + struct User + { + std::string onlineTime; + std::string clientIp; + }; + + + DescribeUserOnlineClientsResult(); + explicit DescribeUserOnlineClientsResult(const std::string &payload); + ~DescribeUserOnlineClientsResult(); + std::vector getUsers()const; + + protected: + void parse(const std::string &payload); + private: + std::vector users_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERONLINECLIENTSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DetachNetworkOptimizationSagsRequest.h b/smartag/include/alibabacloud/smartag/model/DetachNetworkOptimizationSagsRequest.h new file mode 100644 index 000000000..104e7e562 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DetachNetworkOptimizationSagsRequest.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_SMARTAG_MODEL_DETACHNETWORKOPTIMIZATIONSAGSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DETACHNETWORKOPTIMIZATIONSAGSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DetachNetworkOptimizationSagsRequest : public RpcServiceRequest + { + + public: + DetachNetworkOptimizationSagsRequest(); + ~DetachNetworkOptimizationSagsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getNetworkOptId()const; + void setNetworkOptId(const std::string& networkOptId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::vector getSmartAGIds()const; + void setSmartAGIds(const std::vector& smartAGIds); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string networkOptId_; + std::string ownerAccount_; + std::vector smartAGIds_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DETACHNETWORKOPTIMIZATIONSAGSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DetachNetworkOptimizationSagsResult.h b/smartag/include/alibabacloud/smartag/model/DetachNetworkOptimizationSagsResult.h new file mode 100644 index 000000000..d17a4923e --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DetachNetworkOptimizationSagsResult.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_SMARTAG_MODEL_DETACHNETWORKOPTIMIZATIONSAGSRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DETACHNETWORKOPTIMIZATIONSAGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DetachNetworkOptimizationSagsResult : public ServiceResult + { + public: + + + DetachNetworkOptimizationSagsResult(); + explicit DetachNetworkOptimizationSagsResult(const std::string &payload); + ~DetachNetworkOptimizationSagsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DETACHNETWORKOPTIMIZATIONSAGSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DisassociateACLRequest.h b/smartag/include/alibabacloud/smartag/model/DisassociateACLRequest.h new file mode 100644 index 000000000..d3367b01e --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DisassociateACLRequest.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_SMARTAG_MODEL_DISASSOCIATEACLREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DISASSOCIATEACLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DisassociateACLRequest : public RpcServiceRequest + { + + public: + DisassociateACLRequest(); + ~DisassociateACLRequest(); + + std::string getAclId()const; + void setAclId(const std::string& aclId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSmartAGId()const; + void setSmartAGId(const std::string& smartAGId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string aclId_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string smartAGId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DISASSOCIATEACLREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DisassociateACLResult.h b/smartag/include/alibabacloud/smartag/model/DisassociateACLResult.h new file mode 100644 index 000000000..6bfc119f1 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DisassociateACLResult.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_SMARTAG_MODEL_DISASSOCIATEACLRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DISASSOCIATEACLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DisassociateACLResult : public ServiceResult + { + public: + + + DisassociateACLResult(); + explicit DisassociateACLResult(const std::string &payload); + ~DisassociateACLResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DISASSOCIATEACLRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DowngradeSmartAccessGatewayRequest.h b/smartag/include/alibabacloud/smartag/model/DowngradeSmartAccessGatewayRequest.h new file mode 100644 index 000000000..476228473 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DowngradeSmartAccessGatewayRequest.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_SMARTAG_MODEL_DOWNGRADESMARTACCESSGATEWAYREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DOWNGRADESMARTACCESSGATEWAYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DowngradeSmartAccessGatewayRequest : public RpcServiceRequest + { + + public: + DowngradeSmartAccessGatewayRequest(); + ~DowngradeSmartAccessGatewayRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + bool getAutoPay()const; + void setAutoPay(bool autoPay); + long getBandWidthSpec()const; + void setBandWidthSpec(long bandWidthSpec); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getUserCount()const; + void setUserCount(int userCount); + std::string getSmartAGId()const; + void setSmartAGId(const std::string& smartAGId); + long getOwnerId()const; + void setOwnerId(long ownerId); + long getDataPlan()const; + void setDataPlan(long dataPlan); + + private: + long resourceOwnerId_; + bool autoPay_; + long bandWidthSpec_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + int userCount_; + std::string smartAGId_; + long ownerId_; + long dataPlan_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DOWNGRADESMARTACCESSGATEWAYREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DowngradeSmartAccessGatewayResult.h b/smartag/include/alibabacloud/smartag/model/DowngradeSmartAccessGatewayResult.h new file mode 100644 index 000000000..512378449 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DowngradeSmartAccessGatewayResult.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_SMARTAG_MODEL_DOWNGRADESMARTACCESSGATEWAYRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DOWNGRADESMARTACCESSGATEWAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DowngradeSmartAccessGatewayResult : public ServiceResult + { + public: + + + DowngradeSmartAccessGatewayResult(); + explicit DowngradeSmartAccessGatewayResult(const std::string &payload); + ~DowngradeSmartAccessGatewayResult(); + std::string getOrderId()const; + + protected: + void parse(const std::string &payload); + private: + std::string orderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DOWNGRADESMARTACCESSGATEWAYRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/GetCloudConnectNetworkUseLimitRequest.h b/smartag/include/alibabacloud/smartag/model/GetCloudConnectNetworkUseLimitRequest.h index 1e1f529e6..145abdf84 100644 --- a/smartag/include/alibabacloud/smartag/model/GetCloudConnectNetworkUseLimitRequest.h +++ b/smartag/include/alibabacloud/smartag/model/GetCloudConnectNetworkUseLimitRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_GETCLOUDCONNECTNETWORKUSELIMITREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_GETCLOUDCONNECTNETWORKUSELIMITREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT GetCloudConnectNetworkUseLimitRequest : public RpcServiceRequest - { - - public: - GetCloudConnectNetworkUseLimitRequest(); - ~GetCloudConnectNetworkUseLimitRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_GETCLOUDCONNECTNETWORKUSELIMITREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_GETCLOUDCONNECTNETWORKUSELIMITREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT GetCloudConnectNetworkUseLimitRequest : public RpcServiceRequest + { + + public: + GetCloudConnectNetworkUseLimitRequest(); + ~GetCloudConnectNetworkUseLimitRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; std::string ownerAccount_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_GETCLOUDCONNECTNETWORKUSELIMITREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/GetCloudConnectNetworkUseLimitResult.h b/smartag/include/alibabacloud/smartag/model/GetCloudConnectNetworkUseLimitResult.h index bfee30bd6..b4d340e87 100644 --- a/smartag/include/alibabacloud/smartag/model/GetCloudConnectNetworkUseLimitResult.h +++ b/smartag/include/alibabacloud/smartag/model/GetCloudConnectNetworkUseLimitResult.h @@ -1,53 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_GETCLOUDCONNECTNETWORKUSELIMITRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_GETCLOUDCONNECTNETWORKUSELIMITRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT GetCloudConnectNetworkUseLimitResult : public ServiceResult - { - public: - - - GetCloudConnectNetworkUseLimitResult(); - explicit GetCloudConnectNetworkUseLimitResult(const std::string &payload); - ~GetCloudConnectNetworkUseLimitResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_GETCLOUDCONNECTNETWORKUSELIMITRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_GETCLOUDCONNECTNETWORKUSELIMITRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT GetCloudConnectNetworkUseLimitResult : public ServiceResult + { + public: + + + GetCloudConnectNetworkUseLimitResult(); + explicit GetCloudConnectNetworkUseLimitResult(const std::string &payload); + ~GetCloudConnectNetworkUseLimitResult(); int getUsedAmount()const; int getTotalAmount()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int usedAmount_; int totalAmount_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_GETCLOUDCONNECTNETWORKUSELIMITRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/GetSmartAccessGatewayUseLimitRequest.h b/smartag/include/alibabacloud/smartag/model/GetSmartAccessGatewayUseLimitRequest.h index cfd50d0ac..973c4cac6 100644 --- a/smartag/include/alibabacloud/smartag/model/GetSmartAccessGatewayUseLimitRequest.h +++ b/smartag/include/alibabacloud/smartag/model/GetSmartAccessGatewayUseLimitRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_GETSMARTACCESSGATEWAYUSELIMITREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_GETSMARTACCESSGATEWAYUSELIMITREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT GetSmartAccessGatewayUseLimitRequest : public RpcServiceRequest - { - - public: - GetSmartAccessGatewayUseLimitRequest(); - ~GetSmartAccessGatewayUseLimitRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_GETSMARTACCESSGATEWAYUSELIMITREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_GETSMARTACCESSGATEWAYUSELIMITREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT GetSmartAccessGatewayUseLimitRequest : public RpcServiceRequest + { + + public: + GetSmartAccessGatewayUseLimitRequest(); + ~GetSmartAccessGatewayUseLimitRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; std::string ownerAccount_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_GETSMARTACCESSGATEWAYUSELIMITREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/GetSmartAccessGatewayUseLimitResult.h b/smartag/include/alibabacloud/smartag/model/GetSmartAccessGatewayUseLimitResult.h index 6f799d750..2b6354754 100644 --- a/smartag/include/alibabacloud/smartag/model/GetSmartAccessGatewayUseLimitResult.h +++ b/smartag/include/alibabacloud/smartag/model/GetSmartAccessGatewayUseLimitResult.h @@ -1,53 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_GETSMARTACCESSGATEWAYUSELIMITRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_GETSMARTACCESSGATEWAYUSELIMITRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT GetSmartAccessGatewayUseLimitResult : public ServiceResult - { - public: - - - GetSmartAccessGatewayUseLimitResult(); - explicit GetSmartAccessGatewayUseLimitResult(const std::string &payload); - ~GetSmartAccessGatewayUseLimitResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_GETSMARTACCESSGATEWAYUSELIMITRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_GETSMARTACCESSGATEWAYUSELIMITRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT GetSmartAccessGatewayUseLimitResult : public ServiceResult + { + public: + + + GetSmartAccessGatewayUseLimitResult(); + explicit GetSmartAccessGatewayUseLimitResult(const std::string &payload); + ~GetSmartAccessGatewayUseLimitResult(); int getUsedAmount()const; int getTotalAmount()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int usedAmount_; int totalAmount_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_GETSMARTACCESSGATEWAYUSELIMITRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/GrantInstanceToCbnRequest.h b/smartag/include/alibabacloud/smartag/model/GrantInstanceToCbnRequest.h new file mode 100644 index 000000000..626e286c1 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/GrantInstanceToCbnRequest.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_SMARTAG_MODEL_GRANTINSTANCETOCBNREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_GRANTINSTANCETOCBNREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT GrantInstanceToCbnRequest : public RpcServiceRequest + { + + public: + GrantInstanceToCbnRequest(); + ~GrantInstanceToCbnRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getCenUid()const; + void setCenUid(const std::string& cenUid); + std::string getCenInstanceId()const; + void setCenInstanceId(const std::string& cenInstanceId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getCcnInstanceId()const; + void setCcnInstanceId(const std::string& ccnInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string cenUid_; + std::string cenInstanceId_; + std::string ownerAccount_; + std::string ccnInstanceId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_GRANTINSTANCETOCBNREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/GrantInstanceToCbnResult.h b/smartag/include/alibabacloud/smartag/model/GrantInstanceToCbnResult.h new file mode 100644 index 000000000..9d551b431 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/GrantInstanceToCbnResult.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_SMARTAG_MODEL_GRANTINSTANCETOCBNRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_GRANTINSTANCETOCBNRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT GrantInstanceToCbnResult : public ServiceResult + { + public: + + + GrantInstanceToCbnResult(); + explicit GrantInstanceToCbnResult(const std::string &payload); + ~GrantInstanceToCbnResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_GRANTINSTANCETOCBNRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/KickOutClientsRequest.h b/smartag/include/alibabacloud/smartag/model/KickOutClientsRequest.h new file mode 100644 index 000000000..3c9ef3622 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/KickOutClientsRequest.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_SMARTAG_MODEL_KICKOUTCLIENTSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_KICKOUTCLIENTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT KickOutClientsRequest : public RpcServiceRequest + { + + public: + KickOutClientsRequest(); + ~KickOutClientsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSmartAGId()const; + void setSmartAGId(const std::string& smartAGId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getUsername()const; + void setUsername(const std::string& username); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string smartAGId_; + long ownerId_; + std::string username_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_KICKOUTCLIENTSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/KickOutClientsResult.h b/smartag/include/alibabacloud/smartag/model/KickOutClientsResult.h new file mode 100644 index 000000000..76b66f961 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/KickOutClientsResult.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_SMARTAG_MODEL_KICKOUTCLIENTSRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_KICKOUTCLIENTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT KickOutClientsResult : public ServiceResult + { + public: + + + KickOutClientsResult(); + explicit KickOutClientsResult(const std::string &payload); + ~KickOutClientsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_KICKOUTCLIENTSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ModifyACLRequest.h b/smartag/include/alibabacloud/smartag/model/ModifyACLRequest.h new file mode 100644 index 000000000..e9a165864 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/ModifyACLRequest.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_SMARTAG_MODEL_MODIFYACLREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYACLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ModifyACLRequest : public RpcServiceRequest + { + + public: + ModifyACLRequest(); + ~ModifyACLRequest(); + + std::string getAclId()const; + void setAclId(const std::string& aclId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getName()const; + void setName(const std::string& name); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string aclId_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string name_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYACLREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ModifyACLResult.h b/smartag/include/alibabacloud/smartag/model/ModifyACLResult.h new file mode 100644 index 000000000..221629d9a --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/ModifyACLResult.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_SMARTAG_MODEL_MODIFYACLRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYACLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ModifyACLResult : public ServiceResult + { + public: + + + ModifyACLResult(); + explicit ModifyACLResult(const std::string &payload); + ~ModifyACLResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYACLRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ModifyACLRuleRequest.h b/smartag/include/alibabacloud/smartag/model/ModifyACLRuleRequest.h new file mode 100644 index 000000000..d782ff939 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/ModifyACLRuleRequest.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_SMARTAG_MODEL_MODIFYACLRULEREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYACLRULEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ModifyACLRuleRequest : public RpcServiceRequest + { + + public: + ModifyACLRuleRequest(); + ~ModifyACLRuleRequest(); + + std::string getAclId()const; + void setAclId(const std::string& aclId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourcePortRange()const; + void setSourcePortRange(const std::string& sourcePortRange); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getIpProtocol()const; + void setIpProtocol(const std::string& ipProtocol); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSourceCidr()const; + void setSourceCidr(const std::string& sourceCidr); + std::string getDescription()const; + void setDescription(const std::string& description); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPriority()const; + void setPriority(int priority); + std::string getAcrId()const; + void setAcrId(const std::string& acrId); + std::string getDestCidr()const; + void setDestCidr(const std::string& destCidr); + std::string getDestPortRange()const; + void setDestPortRange(const std::string& destPortRange); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getDirection()const; + void setDirection(const std::string& direction); + std::string getPolicy()const; + void setPolicy(const std::string& policy); + + private: + std::string aclId_; + long resourceOwnerId_; + std::string sourcePortRange_; + std::string resourceOwnerAccount_; + std::string ipProtocol_; + std::string ownerAccount_; + std::string sourceCidr_; + std::string description_; + long ownerId_; + int priority_; + std::string acrId_; + std::string destCidr_; + std::string destPortRange_; + std::string regionId_; + std::string direction_; + std::string policy_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYACLRULEREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ModifyACLRuleResult.h b/smartag/include/alibabacloud/smartag/model/ModifyACLRuleResult.h new file mode 100644 index 000000000..f9139697b --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/ModifyACLRuleResult.h @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYACLRULERESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYACLRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ModifyACLRuleResult : public ServiceResult + { + public: + + + ModifyACLRuleResult(); + explicit ModifyACLRuleResult(const std::string &payload); + ~ModifyACLRuleResult(); + std::string getPolicy()const; + long getGmtCreate()const; + std::string getDescription()const; + std::string getDestCidr()const; + std::string getSourcePortRange()const; + std::string getSourceCidr()const; + int getPriority()const; + std::string getAclId()const; + std::string getAcrId()const; + std::string getIpProtocol()const; + std::string getDestPortRange()const; + std::string getDirection()const; + + protected: + void parse(const std::string &payload); + private: + std::string policy_; + long gmtCreate_; + std::string description_; + std::string destCidr_; + std::string sourcePortRange_; + std::string sourceCidr_; + int priority_; + std::string aclId_; + std::string acrId_; + std::string ipProtocol_; + std::string destPortRange_; + std::string direction_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYACLRULERESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ModifyCloudConnectNetworkRequest.h b/smartag/include/alibabacloud/smartag/model/ModifyCloudConnectNetworkRequest.h index 08e83f04c..eb293a302 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifyCloudConnectNetworkRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ModifyCloudConnectNetworkRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYCLOUDCONNECTNETWORKREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYCLOUDCONNECTNETWORKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifyCloudConnectNetworkRequest : public RpcServiceRequest - { - - public: - ModifyCloudConnectNetworkRequest(); - ~ModifyCloudConnectNetworkRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYCLOUDCONNECTNETWORKREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYCLOUDCONNECTNETWORKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ModifyCloudConnectNetworkRequest : public RpcServiceRequest + { + + public: + ModifyCloudConnectNetworkRequest(); + ~ModifyCloudConnectNetworkRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -47,23 +47,29 @@ namespace AlibabaCloud void setCcnId(const std::string& ccnId); std::string getName()const; void setName(const std::string& name); + std::string getCidrBlock()const; + void setCidrBlock(const std::string& cidrBlock); std::string getDescription()const; void setDescription(const std::string& description); + std::string getSnatCidrBlock()const; + void setSnatCidrBlock(const std::string& snatCidrBlock); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; std::string ownerAccount_; std::string ccnId_; std::string name_; + std::string cidrBlock_; std::string description_; + std::string snatCidrBlock_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYCLOUDCONNECTNETWORKREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ModifyCloudConnectNetworkResult.h b/smartag/include/alibabacloud/smartag/model/ModifyCloudConnectNetworkResult.h index b235ebf4d..94dea1c78 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifyCloudConnectNetworkResult.h +++ b/smartag/include/alibabacloud/smartag/model/ModifyCloudConnectNetworkResult.h @@ -1,49 +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_SMARTAG_MODEL_MODIFYCLOUDCONNECTNETWORKRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYCLOUDCONNECTNETWORKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifyCloudConnectNetworkResult : public ServiceResult - { - public: - - - ModifyCloudConnectNetworkResult(); - explicit ModifyCloudConnectNetworkResult(const std::string &payload); - ~ModifyCloudConnectNetworkResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYCLOUDCONNECTNETWORKRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYCLOUDCONNECTNETWORKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ModifyCloudConnectNetworkResult : public ServiceResult + { + public: + + + ModifyCloudConnectNetworkResult(); + explicit ModifyCloudConnectNetworkResult(const std::string &payload); + ~ModifyCloudConnectNetworkResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYCLOUDCONNECTNETWORKRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ModifyNetworkOptimizationRequest.h b/smartag/include/alibabacloud/smartag/model/ModifyNetworkOptimizationRequest.h new file mode 100644 index 000000000..d6b30b5be --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/ModifyNetworkOptimizationRequest.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_SMARTAG_MODEL_MODIFYNETWORKOPTIMIZATIONREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYNETWORKOPTIMIZATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ModifyNetworkOptimizationRequest : public RpcServiceRequest + { + + public: + ModifyNetworkOptimizationRequest(); + ~ModifyNetworkOptimizationRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getNetworkOptId()const; + void setNetworkOptId(const std::string& networkOptId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getName()const; + void setName(const std::string& name); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string networkOptId_; + std::string ownerAccount_; + std::string name_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYNETWORKOPTIMIZATIONREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ModifyNetworkOptimizationResult.h b/smartag/include/alibabacloud/smartag/model/ModifyNetworkOptimizationResult.h new file mode 100644 index 000000000..6ad58003f --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/ModifyNetworkOptimizationResult.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_SMARTAG_MODEL_MODIFYNETWORKOPTIMIZATIONRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYNETWORKOPTIMIZATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ModifyNetworkOptimizationResult : public ServiceResult + { + public: + + + ModifyNetworkOptimizationResult(); + explicit ModifyNetworkOptimizationResult(const std::string &payload); + ~ModifyNetworkOptimizationResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYNETWORKOPTIMIZATIONRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ModifySerialNumberRequest.h b/smartag/include/alibabacloud/smartag/model/ModifySerialNumberRequest.h new file mode 100644 index 000000000..9d240d6ad --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/ModifySerialNumberRequest.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_SMARTAG_MODEL_MODIFYSERIALNUMBERREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSERIALNUMBERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ModifySerialNumberRequest : public RpcServiceRequest + { + + public: + ModifySerialNumberRequest(); + ~ModifySerialNumberRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSerialNumber()const; + void setSerialNumber(const std::string& serialNumber); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSmartAGId()const; + void setSmartAGId(const std::string& smartAGId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string serialNumber_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string smartAGId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSERIALNUMBERREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ModifySerialNumberResult.h b/smartag/include/alibabacloud/smartag/model/ModifySerialNumberResult.h new file mode 100644 index 000000000..db2be2985 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/ModifySerialNumberResult.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_SMARTAG_MODEL_MODIFYSERIALNUMBERRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSERIALNUMBERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ModifySerialNumberResult : public ServiceResult + { + public: + + + ModifySerialNumberResult(); + explicit ModifySerialNumberResult(const std::string &payload); + ~ModifySerialNumberResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSERIALNUMBERRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ModifySmartAccessGatewayClientUserRequest.h b/smartag/include/alibabacloud/smartag/model/ModifySmartAccessGatewayClientUserRequest.h new file mode 100644 index 000000000..dbc5465e2 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/ModifySmartAccessGatewayClientUserRequest.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_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYCLIENTUSERREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYCLIENTUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ModifySmartAccessGatewayClientUserRequest : public RpcServiceRequest + { + + public: + ModifySmartAccessGatewayClientUserRequest(); + ~ModifySmartAccessGatewayClientUserRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getBandwidth()const; + void setBandwidth(int bandwidth); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSmartAGId()const; + void setSmartAGId(const std::string& smartAGId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getUserName()const; + void setUserName(const std::string& userName); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + int bandwidth_; + std::string ownerAccount_; + std::string smartAGId_; + long ownerId_; + std::string userName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYCLIENTUSERREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ModifySmartAccessGatewayClientUserResult.h b/smartag/include/alibabacloud/smartag/model/ModifySmartAccessGatewayClientUserResult.h new file mode 100644 index 000000000..d02180787 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/ModifySmartAccessGatewayClientUserResult.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_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYCLIENTUSERRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYCLIENTUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ModifySmartAccessGatewayClientUserResult : public ServiceResult + { + public: + + + ModifySmartAccessGatewayClientUserResult(); + explicit ModifySmartAccessGatewayClientUserResult(const std::string &payload); + ~ModifySmartAccessGatewayClientUserResult(); + std::string getUserName()const; + std::string getUserMail()const; + int getBandwidth()const; + std::string getClientIp()const; + + protected: + void parse(const std::string &payload); + private: + std::string userName_; + std::string userMail_; + int bandwidth_; + std::string clientIp_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYCLIENTUSERRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ModifySmartAccessGatewayRequest.h b/smartag/include/alibabacloud/smartag/model/ModifySmartAccessGatewayRequest.h index 52d6988a9..919539f0e 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifySmartAccessGatewayRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ModifySmartAccessGatewayRequest.h @@ -1,78 +1,86 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifySmartAccessGatewayRequest : public RpcServiceRequest - { - - public: - ModifySmartAccessGatewayRequest(); - ~ModifySmartAccessGatewayRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ModifySmartAccessGatewayRequest : public RpcServiceRequest + { + struct SnatEntries + { + std::string cidrBlock; + std::string snatIp; + }; + + public: + ModifySmartAccessGatewayRequest(); + ~ModifySmartAccessGatewayRequest(); + + std::vector getSnatEntries()const; + void setSnatEntries(const std::vector& snatEntries); long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; void setResourceOwnerAccount(const std::string& resourceOwnerAccount); std::string getCity()const; void setCity(const std::string& city); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); std::string getOwnerAccount()const; void setOwnerAccount(const std::string& ownerAccount); - std::string getName()const; - void setName(const std::string& name); - std::string getCidrBlock()const; - void setCidrBlock(const std::string& cidrBlock); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); std::string getDescription()const; void setDescription(const std::string& description); long getOwnerId()const; void setOwnerId(long ownerId); int getSecurityLockThreshold()const; void setSecurityLockThreshold(int securityLockThreshold); - - private: + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getName()const; + void setName(const std::string& name); + std::string getCidrBlock()const; + void setCidrBlock(const std::string& cidrBlock); + std::string getSmartAGId()const; + void setSmartAGId(const std::string& smartAGId); + + private: + std::vector snatEntries_; long resourceOwnerId_; std::string resourceOwnerAccount_; std::string city_; - std::string regionId_; std::string ownerAccount_; - std::string name_; - std::string cidrBlock_; - std::string smartAGId_; std::string description_; long ownerId_; int securityLockThreshold_; - - }; - } - } -} + std::string regionId_; + std::string name_; + std::string cidrBlock_; + std::string smartAGId_; + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ModifySmartAccessGatewayResult.h b/smartag/include/alibabacloud/smartag/model/ModifySmartAccessGatewayResult.h index 1cb2a1107..9e7f23a53 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifySmartAccessGatewayResult.h +++ b/smartag/include/alibabacloud/smartag/model/ModifySmartAccessGatewayResult.h @@ -1,49 +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_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifySmartAccessGatewayResult : public ServiceResult - { - public: - - - ModifySmartAccessGatewayResult(); - explicit ModifySmartAccessGatewayResult(const std::string &payload); - ~ModifySmartAccessGatewayResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ModifySmartAccessGatewayResult : public ServiceResult + { + public: + + + ModifySmartAccessGatewayResult(); + explicit ModifySmartAccessGatewayResult(const std::string &payload); + ~ModifySmartAccessGatewayResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/RebootSmartAccessGatewayRequest.h b/smartag/include/alibabacloud/smartag/model/RebootSmartAccessGatewayRequest.h index a50b8fac7..9575d5985 100644 --- a/smartag/include/alibabacloud/smartag/model/RebootSmartAccessGatewayRequest.h +++ b/smartag/include/alibabacloud/smartag/model/RebootSmartAccessGatewayRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_REBOOTSMARTACCESSGATEWAYREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_REBOOTSMARTACCESSGATEWAYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT RebootSmartAccessGatewayRequest : public RpcServiceRequest - { - - public: - RebootSmartAccessGatewayRequest(); - ~RebootSmartAccessGatewayRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_REBOOTSMARTACCESSGATEWAYREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_REBOOTSMARTACCESSGATEWAYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT RebootSmartAccessGatewayRequest : public RpcServiceRequest + { + + public: + RebootSmartAccessGatewayRequest(); + ~RebootSmartAccessGatewayRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getSerialNumber()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setSmartAGId(const std::string& smartAGId); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string serialNumber_; std::string resourceOwnerAccount_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string ownerAccount_; std::string smartAGId_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_REBOOTSMARTACCESSGATEWAYREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/RebootSmartAccessGatewayResult.h b/smartag/include/alibabacloud/smartag/model/RebootSmartAccessGatewayResult.h index 4bc07797b..be92d5fd2 100644 --- a/smartag/include/alibabacloud/smartag/model/RebootSmartAccessGatewayResult.h +++ b/smartag/include/alibabacloud/smartag/model/RebootSmartAccessGatewayResult.h @@ -1,49 +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_SMARTAG_MODEL_REBOOTSMARTACCESSGATEWAYRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_REBOOTSMARTACCESSGATEWAYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT RebootSmartAccessGatewayResult : public ServiceResult - { - public: - - - RebootSmartAccessGatewayResult(); - explicit RebootSmartAccessGatewayResult(const std::string &payload); - ~RebootSmartAccessGatewayResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_REBOOTSMARTACCESSGATEWAYRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_REBOOTSMARTACCESSGATEWAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT RebootSmartAccessGatewayResult : public ServiceResult + { + public: + + + RebootSmartAccessGatewayResult(); + explicit RebootSmartAccessGatewayResult(const std::string &payload); + ~RebootSmartAccessGatewayResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_REBOOTSMARTACCESSGATEWAYRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ResetSmartAccessGatewayClientUserPasswordRequest.h b/smartag/include/alibabacloud/smartag/model/ResetSmartAccessGatewayClientUserPasswordRequest.h new file mode 100644 index 000000000..c602bab0a --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/ResetSmartAccessGatewayClientUserPasswordRequest.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_SMARTAG_MODEL_RESETSMARTACCESSGATEWAYCLIENTUSERPASSWORDREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_RESETSMARTACCESSGATEWAYCLIENTUSERPASSWORDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ResetSmartAccessGatewayClientUserPasswordRequest : public RpcServiceRequest + { + + public: + ResetSmartAccessGatewayClientUserPasswordRequest(); + ~ResetSmartAccessGatewayClientUserPasswordRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSmartAGId()const; + void setSmartAGId(const std::string& smartAGId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getUserName()const; + void setUserName(const std::string& userName); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string smartAGId_; + long ownerId_; + std::string userName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_RESETSMARTACCESSGATEWAYCLIENTUSERPASSWORDREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ResetSmartAccessGatewayClientUserPasswordResult.h b/smartag/include/alibabacloud/smartag/model/ResetSmartAccessGatewayClientUserPasswordResult.h new file mode 100644 index 000000000..289c52a31 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/ResetSmartAccessGatewayClientUserPasswordResult.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_SMARTAG_MODEL_RESETSMARTACCESSGATEWAYCLIENTUSERPASSWORDRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_RESETSMARTACCESSGATEWAYCLIENTUSERPASSWORDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ResetSmartAccessGatewayClientUserPasswordResult : public ServiceResult + { + public: + + + ResetSmartAccessGatewayClientUserPasswordResult(); + explicit ResetSmartAccessGatewayClientUserPasswordResult(const std::string &payload); + ~ResetSmartAccessGatewayClientUserPasswordResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_RESETSMARTACCESSGATEWAYCLIENTUSERPASSWORDRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/RevokeInstanceFromCbnRequest.h b/smartag/include/alibabacloud/smartag/model/RevokeInstanceFromCbnRequest.h new file mode 100644 index 000000000..d011cab5c --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/RevokeInstanceFromCbnRequest.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_SMARTAG_MODEL_REVOKEINSTANCEFROMCBNREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_REVOKEINSTANCEFROMCBNREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT RevokeInstanceFromCbnRequest : public RpcServiceRequest + { + + public: + RevokeInstanceFromCbnRequest(); + ~RevokeInstanceFromCbnRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getCenInstanceId()const; + void setCenInstanceId(const std::string& cenInstanceId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getCcnInstanceId()const; + void setCcnInstanceId(const std::string& ccnInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string cenInstanceId_; + std::string ownerAccount_; + std::string ccnInstanceId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_REVOKEINSTANCEFROMCBNREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/RevokeInstanceFromCbnResult.h b/smartag/include/alibabacloud/smartag/model/RevokeInstanceFromCbnResult.h new file mode 100644 index 000000000..941d78cb4 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/RevokeInstanceFromCbnResult.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_SMARTAG_MODEL_REVOKEINSTANCEFROMCBNRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_REVOKEINSTANCEFROMCBNRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT RevokeInstanceFromCbnResult : public ServiceResult + { + public: + + + RevokeInstanceFromCbnResult(); + explicit RevokeInstanceFromCbnResult(const std::string &payload); + ~RevokeInstanceFromCbnResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_REVOKEINSTANCEFROMCBNRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/SetSagRouteableAddressRequest.h b/smartag/include/alibabacloud/smartag/model/SetSagRouteableAddressRequest.h new file mode 100644 index 000000000..7db8f6f49 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/SetSagRouteableAddressRequest.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_SMARTAG_MODEL_SETSAGROUTEABLEADDRESSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_SETSAGROUTEABLEADDRESSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT SetSagRouteableAddressRequest : public RpcServiceRequest + { + + public: + SetSagRouteableAddressRequest(); + ~SetSagRouteableAddressRequest(); + + std::string getAccess_key_id()const; + void setAccess_key_id(const std::string& access_key_id); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getSagId()const; + void setSagId(const std::string& sagId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getRouteableAddress()const; + void setRouteableAddress(const std::string& routeableAddress); + + private: + std::string access_key_id_; + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string sagId_; + std::string ownerAccount_; + long ownerId_; + std::string routeableAddress_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_SETSAGROUTEABLEADDRESSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/SetSagRouteableAddressResult.h b/smartag/include/alibabacloud/smartag/model/SetSagRouteableAddressResult.h new file mode 100644 index 000000000..a2196cfad --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/SetSagRouteableAddressResult.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_SMARTAG_MODEL_SETSAGROUTEABLEADDRESSRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_SETSAGROUTEABLEADDRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT SetSagRouteableAddressResult : public ServiceResult + { + public: + + + SetSagRouteableAddressResult(); + explicit SetSagRouteableAddressResult(const std::string &payload); + ~SetSagRouteableAddressResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_SETSAGROUTEABLEADDRESSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/SwitchCloudBoxHaStateRequest.h b/smartag/include/alibabacloud/smartag/model/SwitchCloudBoxHaStateRequest.h index a8b3c55ec..34fb25e2d 100644 --- a/smartag/include/alibabacloud/smartag/model/SwitchCloudBoxHaStateRequest.h +++ b/smartag/include/alibabacloud/smartag/model/SwitchCloudBoxHaStateRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_SWITCHCLOUDBOXHASTATEREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_SWITCHCLOUDBOXHASTATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT SwitchCloudBoxHaStateRequest : public RpcServiceRequest - { - - public: - SwitchCloudBoxHaStateRequest(); - ~SwitchCloudBoxHaStateRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_SWITCHCLOUDBOXHASTATEREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_SWITCHCLOUDBOXHASTATEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT SwitchCloudBoxHaStateRequest : public RpcServiceRequest + { + + public: + SwitchCloudBoxHaStateRequest(); + ~SwitchCloudBoxHaStateRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setSmartAGId(const std::string& smartAGId); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; std::string ownerAccount_; std::string smartAGId_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_SWITCHCLOUDBOXHASTATEREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/SwitchCloudBoxHaStateResult.h b/smartag/include/alibabacloud/smartag/model/SwitchCloudBoxHaStateResult.h index 0a1166903..ff261e6be 100644 --- a/smartag/include/alibabacloud/smartag/model/SwitchCloudBoxHaStateResult.h +++ b/smartag/include/alibabacloud/smartag/model/SwitchCloudBoxHaStateResult.h @@ -1,49 +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_SMARTAG_MODEL_SWITCHCLOUDBOXHASTATERESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_SWITCHCLOUDBOXHASTATERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT SwitchCloudBoxHaStateResult : public ServiceResult - { - public: - - - SwitchCloudBoxHaStateResult(); - explicit SwitchCloudBoxHaStateResult(const std::string &payload); - ~SwitchCloudBoxHaStateResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_SWITCHCLOUDBOXHASTATERESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_SWITCHCLOUDBOXHASTATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT SwitchCloudBoxHaStateResult : public ServiceResult + { + public: + + + SwitchCloudBoxHaStateResult(); + explicit SwitchCloudBoxHaStateResult(const std::string &payload); + ~SwitchCloudBoxHaStateResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_SWITCHCLOUDBOXHASTATERESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/SwitchSAGHaStateRequest.h b/smartag/include/alibabacloud/smartag/model/SwitchSAGHaStateRequest.h new file mode 100644 index 000000000..0771eab90 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/SwitchSAGHaStateRequest.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_SMARTAG_MODEL_SWITCHSAGHASTATEREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_SWITCHSAGHASTATEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT SwitchSAGHaStateRequest : public RpcServiceRequest + { + + public: + SwitchSAGHaStateRequest(); + ~SwitchSAGHaStateRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getHaType()const; + void setHaType(const std::string& haType); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSmartAGId()const; + void setSmartAGId(const std::string& smartAGId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string haType_; + std::string ownerAccount_; + std::string smartAGId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_SWITCHSAGHASTATEREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/SwitchSAGHaStateResult.h b/smartag/include/alibabacloud/smartag/model/SwitchSAGHaStateResult.h new file mode 100644 index 000000000..06c29045b --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/SwitchSAGHaStateResult.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_SMARTAG_MODEL_SWITCHSAGHASTATERESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_SWITCHSAGHASTATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT SwitchSAGHaStateResult : public ServiceResult + { + public: + + + SwitchSAGHaStateResult(); + explicit SwitchSAGHaStateResult(const std::string &payload); + ~SwitchSAGHaStateResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_SWITCHSAGHASTATERESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/UnbindSmartAccessGatewayRequest.h b/smartag/include/alibabacloud/smartag/model/UnbindSmartAccessGatewayRequest.h index 92d6aec55..50ba12d04 100644 --- a/smartag/include/alibabacloud/smartag/model/UnbindSmartAccessGatewayRequest.h +++ b/smartag/include/alibabacloud/smartag/model/UnbindSmartAccessGatewayRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_UNBINDSMARTACCESSGATEWAYREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_UNBINDSMARTACCESSGATEWAYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT UnbindSmartAccessGatewayRequest : public RpcServiceRequest - { - - public: - UnbindSmartAccessGatewayRequest(); - ~UnbindSmartAccessGatewayRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_UNBINDSMARTACCESSGATEWAYREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_UNBINDSMARTACCESSGATEWAYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT UnbindSmartAccessGatewayRequest : public RpcServiceRequest + { + + public: + UnbindSmartAccessGatewayRequest(); + ~UnbindSmartAccessGatewayRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setSmartAGId(const std::string& smartAGId); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string ccnId_; std::string smartAGId_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_UNBINDSMARTACCESSGATEWAYREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/UnbindSmartAccessGatewayResult.h b/smartag/include/alibabacloud/smartag/model/UnbindSmartAccessGatewayResult.h index 9a7b954a9..fa405aecb 100644 --- a/smartag/include/alibabacloud/smartag/model/UnbindSmartAccessGatewayResult.h +++ b/smartag/include/alibabacloud/smartag/model/UnbindSmartAccessGatewayResult.h @@ -1,49 +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_SMARTAG_MODEL_UNBINDSMARTACCESSGATEWAYRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_UNBINDSMARTACCESSGATEWAYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT UnbindSmartAccessGatewayResult : public ServiceResult - { - public: - - - UnbindSmartAccessGatewayResult(); - explicit UnbindSmartAccessGatewayResult(const std::string &payload); - ~UnbindSmartAccessGatewayResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_UNBINDSMARTACCESSGATEWAYRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_UNBINDSMARTACCESSGATEWAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT UnbindSmartAccessGatewayResult : public ServiceResult + { + public: + + + UnbindSmartAccessGatewayResult(); + explicit UnbindSmartAccessGatewayResult(const std::string &payload); + ~UnbindSmartAccessGatewayResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_UNBINDSMARTACCESSGATEWAYRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/UnicomOrderConfirmRequest.h b/smartag/include/alibabacloud/smartag/model/UnicomOrderConfirmRequest.h new file mode 100644 index 000000000..0b522b18b --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/UnicomOrderConfirmRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_UNICOMORDERCONFIRMREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_UNICOMORDERCONFIRMREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT UnicomOrderConfirmRequest : public RpcServiceRequest + { + struct OrderItem + { + std::string scItemName; + std::string itemAmount; + std::vector snList; + std::string orderItemId; + std::string scItemCode; + int itemQuantity; + std::string tradeId; + std::string tradeItemId; + }; + + public: + UnicomOrderConfirmRequest(); + ~UnicomOrderConfirmRequest(); + + std::string getTmsCode()const; + void setTmsCode(const std::string& tmsCode); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::vector getOrderItem()const; + void setOrderItem(const std::vector& orderItem); + std::string getOwnerUserId()const; + void setOwnerUserId(const std::string& ownerUserId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOrderPostFee()const; + void setOrderPostFee(long orderPostFee); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getTmsOrderCode()const; + void setTmsOrderCode(const std::string& tmsOrderCode); + std::string getTradeId()const; + void setTradeId(const std::string& tradeId); + + private: + std::string tmsCode_; + long resourceOwnerId_; + std::vector orderItem_; + std::string ownerUserId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + long orderPostFee_; + long ownerId_; + std::string tmsOrderCode_; + std::string tradeId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_UNICOMORDERCONFIRMREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/UnicomOrderConfirmResult.h b/smartag/include/alibabacloud/smartag/model/UnicomOrderConfirmResult.h new file mode 100644 index 000000000..0f307465d --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/UnicomOrderConfirmResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_UNICOMORDERCONFIRMRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_UNICOMORDERCONFIRMRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT UnicomOrderConfirmResult : public ServiceResult + { + public: + + + UnicomOrderConfirmResult(); + explicit UnicomOrderConfirmResult(const std::string &payload); + ~UnicomOrderConfirmResult(); + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_UNICOMORDERCONFIRMRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/UnicomSignConfirmRequest.h b/smartag/include/alibabacloud/smartag/model/UnicomSignConfirmRequest.h new file mode 100644 index 000000000..0867c5101 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/UnicomSignConfirmRequest.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_SMARTAG_MODEL_UNICOMSIGNCONFIRMREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_UNICOMSIGNCONFIRMREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT UnicomSignConfirmRequest : public RpcServiceRequest + { + struct TmsOrder + { + std::string tmsCode; + std::string signingTime; + std::string tmsOrderCode; + std::string tradeId; + }; + + public: + UnicomSignConfirmRequest(); + ~UnicomSignConfirmRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::vector getTmsOrder()const; + void setTmsOrder(const std::vector& tmsOrder); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::vector tmsOrder_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_UNICOMSIGNCONFIRMREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/UnicomSignConfirmResult.h b/smartag/include/alibabacloud/smartag/model/UnicomSignConfirmResult.h new file mode 100644 index 000000000..662da973d --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/UnicomSignConfirmResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_UNICOMSIGNCONFIRMRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_UNICOMSIGNCONFIRMRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT UnicomSignConfirmResult : public ServiceResult + { + public: + + + UnicomSignConfirmResult(); + explicit UnicomSignConfirmResult(const std::string &payload); + ~UnicomSignConfirmResult(); + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_UNICOMSIGNCONFIRMRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/UnlockSmartAccessGatewayRequest.h b/smartag/include/alibabacloud/smartag/model/UnlockSmartAccessGatewayRequest.h index 8368a11d3..d5b0a5fbd 100644 --- a/smartag/include/alibabacloud/smartag/model/UnlockSmartAccessGatewayRequest.h +++ b/smartag/include/alibabacloud/smartag/model/UnlockSmartAccessGatewayRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_UNLOCKSMARTACCESSGATEWAYREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_UNLOCKSMARTACCESSGATEWAYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT UnlockSmartAccessGatewayRequest : public RpcServiceRequest - { - - public: - UnlockSmartAccessGatewayRequest(); - ~UnlockSmartAccessGatewayRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_UNLOCKSMARTACCESSGATEWAYREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_UNLOCKSMARTACCESSGATEWAYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT UnlockSmartAccessGatewayRequest : public RpcServiceRequest + { + + public: + UnlockSmartAccessGatewayRequest(); + ~UnlockSmartAccessGatewayRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setSmartAGId(const std::string& smartAGId); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; std::string ownerAccount_; std::string smartAGId_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_UNLOCKSMARTACCESSGATEWAYREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/UnlockSmartAccessGatewayResult.h b/smartag/include/alibabacloud/smartag/model/UnlockSmartAccessGatewayResult.h index ccb3453a0..37038ebda 100644 --- a/smartag/include/alibabacloud/smartag/model/UnlockSmartAccessGatewayResult.h +++ b/smartag/include/alibabacloud/smartag/model/UnlockSmartAccessGatewayResult.h @@ -1,49 +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_SMARTAG_MODEL_UNLOCKSMARTACCESSGATEWAYRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_UNLOCKSMARTACCESSGATEWAYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT UnlockSmartAccessGatewayResult : public ServiceResult - { - public: - - - UnlockSmartAccessGatewayResult(); - explicit UnlockSmartAccessGatewayResult(const std::string &payload); - ~UnlockSmartAccessGatewayResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_UNLOCKSMARTACCESSGATEWAYRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_UNLOCKSMARTACCESSGATEWAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT UnlockSmartAccessGatewayResult : public ServiceResult + { + public: + + + UnlockSmartAccessGatewayResult(); + explicit UnlockSmartAccessGatewayResult(const std::string &payload); + ~UnlockSmartAccessGatewayResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_UNLOCKSMARTACCESSGATEWAYRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/UpdateSmartAccessGatewayVersionRequest.h b/smartag/include/alibabacloud/smartag/model/UpdateSmartAccessGatewayVersionRequest.h index 287b7eb4e..d9d1400b4 100644 --- a/smartag/include/alibabacloud/smartag/model/UpdateSmartAccessGatewayVersionRequest.h +++ b/smartag/include/alibabacloud/smartag/model/UpdateSmartAccessGatewayVersionRequest.h @@ -1,42 +1,44 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTACCESSGATEWAYVERSIONREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTACCESSGATEWAYVERSIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT UpdateSmartAccessGatewayVersionRequest : public RpcServiceRequest - { - - public: - UpdateSmartAccessGatewayVersionRequest(); - ~UpdateSmartAccessGatewayVersionRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTACCESSGATEWAYVERSIONREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTACCESSGATEWAYVERSIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT UpdateSmartAccessGatewayVersionRequest : public RpcServiceRequest + { + + public: + UpdateSmartAccessGatewayVersionRequest(); + ~UpdateSmartAccessGatewayVersionRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); + std::string getSerialNumber()const; + void setSerialNumber(const std::string& serialNumber); std::string getResourceOwnerAccount()const; void setResourceOwnerAccount(const std::string& resourceOwnerAccount); std::string getRegionId()const; @@ -49,18 +51,19 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getVersionCode()const; void setVersionCode(const std::string& versionCode); - - private: + + private: long resourceOwnerId_; + std::string serialNumber_; std::string resourceOwnerAccount_; std::string regionId_; std::string ownerAccount_; std::string smartAGId_; long ownerId_; std::string versionCode_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTACCESSGATEWAYVERSIONREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/UpdateSmartAccessGatewayVersionResult.h b/smartag/include/alibabacloud/smartag/model/UpdateSmartAccessGatewayVersionResult.h index c224d4f37..e59815a53 100644 --- a/smartag/include/alibabacloud/smartag/model/UpdateSmartAccessGatewayVersionResult.h +++ b/smartag/include/alibabacloud/smartag/model/UpdateSmartAccessGatewayVersionResult.h @@ -1,49 +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_SMARTAG_MODEL_UPDATESMARTACCESSGATEWAYVERSIONRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTACCESSGATEWAYVERSIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT UpdateSmartAccessGatewayVersionResult : public ServiceResult - { - public: - - - UpdateSmartAccessGatewayVersionResult(); - explicit UpdateSmartAccessGatewayVersionResult(const std::string &payload); - ~UpdateSmartAccessGatewayVersionResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTACCESSGATEWAYVERSIONRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTACCESSGATEWAYVERSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT UpdateSmartAccessGatewayVersionResult : public ServiceResult + { + public: + + + UpdateSmartAccessGatewayVersionResult(); + explicit UpdateSmartAccessGatewayVersionResult(const std::string &payload); + ~UpdateSmartAccessGatewayVersionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTACCESSGATEWAYVERSIONRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/UpgradeSmartAccessGatewayRequest.h b/smartag/include/alibabacloud/smartag/model/UpgradeSmartAccessGatewayRequest.h new file mode 100644 index 000000000..f3aad262e --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/UpgradeSmartAccessGatewayRequest.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_SMARTAG_MODEL_UPGRADESMARTACCESSGATEWAYREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_UPGRADESMARTACCESSGATEWAYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT UpgradeSmartAccessGatewayRequest : public RpcServiceRequest + { + + public: + UpgradeSmartAccessGatewayRequest(); + ~UpgradeSmartAccessGatewayRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + bool getAutoPay()const; + void setAutoPay(bool autoPay); + long getBandWidthSpec()const; + void setBandWidthSpec(long bandWidthSpec); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getUserCount()const; + void setUserCount(int userCount); + std::string getSmartAGId()const; + void setSmartAGId(const std::string& smartAGId); + long getOwnerId()const; + void setOwnerId(long ownerId); + long getDataPlan()const; + void setDataPlan(long dataPlan); + + private: + long resourceOwnerId_; + bool autoPay_; + long bandWidthSpec_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + int userCount_; + std::string smartAGId_; + long ownerId_; + long dataPlan_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_UPGRADESMARTACCESSGATEWAYREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/UpgradeSmartAccessGatewayResult.h b/smartag/include/alibabacloud/smartag/model/UpgradeSmartAccessGatewayResult.h new file mode 100644 index 000000000..45f9229b5 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/UpgradeSmartAccessGatewayResult.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_SMARTAG_MODEL_UPGRADESMARTACCESSGATEWAYRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_UPGRADESMARTACCESSGATEWAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT UpgradeSmartAccessGatewayResult : public ServiceResult + { + public: + + + UpgradeSmartAccessGatewayResult(); + explicit UpgradeSmartAccessGatewayResult(const std::string &payload); + ~UpgradeSmartAccessGatewayResult(); + std::string getOrderId()const; + + protected: + void parse(const std::string &payload); + private: + std::string orderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_UPGRADESMARTACCESSGATEWAYRESULT_H_ \ No newline at end of file diff --git a/smartag/src/SmartagClient.cc b/smartag/src/SmartagClient.cc index fb17674d8..86d772680 100644 --- a/smartag/src/SmartagClient.cc +++ b/smartag/src/SmartagClient.cc @@ -1,809 +1,2429 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -namespace -{ - const std::string SERVICE_NAME = "Smartag"; -} - -SmartagClient::SmartagClient(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, "smartag"); -} - -SmartagClient::SmartagClient(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, "smartag"); -} - -SmartagClient::SmartagClient(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, "smartag"); -} - -SmartagClient::~SmartagClient() -{} - -SmartagClient::DescribeSmartAccessGatewaysOutcome SmartagClient::describeSmartAccessGateways(const DescribeSmartAccessGatewaysRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeSmartAccessGatewaysOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeSmartAccessGatewaysOutcome(DescribeSmartAccessGatewaysResult(outcome.result())); - else - return DescribeSmartAccessGatewaysOutcome(outcome.error()); -} - -void SmartagClient::describeSmartAccessGatewaysAsync(const DescribeSmartAccessGatewaysRequest& request, const DescribeSmartAccessGatewaysAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeSmartAccessGateways(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::DescribeSmartAccessGatewaysOutcomeCallable SmartagClient::describeSmartAccessGatewaysCallable(const DescribeSmartAccessGatewaysRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeSmartAccessGateways(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ -SmartagClient::SwitchCloudBoxHaStateOutcome SmartagClient::switchCloudBoxHaState(const SwitchCloudBoxHaStateRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SwitchCloudBoxHaStateOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SwitchCloudBoxHaStateOutcome(SwitchCloudBoxHaStateResult(outcome.result())); - else - return SwitchCloudBoxHaStateOutcome(outcome.error()); -} - -void SmartagClient::switchCloudBoxHaStateAsync(const SwitchCloudBoxHaStateRequest& request, const SwitchCloudBoxHaStateAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, switchCloudBoxHaState(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::SwitchCloudBoxHaStateOutcomeCallable SmartagClient::switchCloudBoxHaStateCallable(const SwitchCloudBoxHaStateRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->switchCloudBoxHaState(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} +#include +#include -SmartagClient::UnbindSmartAccessGatewayOutcome SmartagClient::unbindSmartAccessGateway(const UnbindSmartAccessGatewayRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UnbindSmartAccessGatewayOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UnbindSmartAccessGatewayOutcome(UnbindSmartAccessGatewayResult(outcome.result())); - else - return UnbindSmartAccessGatewayOutcome(outcome.error()); -} - -void SmartagClient::unbindSmartAccessGatewayAsync(const UnbindSmartAccessGatewayRequest& request, const UnbindSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, unbindSmartAccessGateway(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::UnbindSmartAccessGatewayOutcomeCallable SmartagClient::unbindSmartAccessGatewayCallable(const UnbindSmartAccessGatewayRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->unbindSmartAccessGateway(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} +using namespace AlibabaCloud; +using namespace AlibabaCloud::Location; +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; -SmartagClient::CreateSmartAccessGatewayOutcome SmartagClient::createSmartAccessGateway(const CreateSmartAccessGatewayRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateSmartAccessGatewayOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateSmartAccessGatewayOutcome(CreateSmartAccessGatewayResult(outcome.result())); - else - return CreateSmartAccessGatewayOutcome(outcome.error()); -} - -void SmartagClient::createSmartAccessGatewayAsync(const CreateSmartAccessGatewayRequest& request, const CreateSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createSmartAccessGateway(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::CreateSmartAccessGatewayOutcomeCallable SmartagClient::createSmartAccessGatewayCallable(const CreateSmartAccessGatewayRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createSmartAccessGateway(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} +namespace +{ + const std::string SERVICE_NAME = "Smartag"; +} -SmartagClient::DeleteDedicatedLineBackupOutcome SmartagClient::deleteDedicatedLineBackup(const DeleteDedicatedLineBackupRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteDedicatedLineBackupOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteDedicatedLineBackupOutcome(DeleteDedicatedLineBackupResult(outcome.result())); - else - return DeleteDedicatedLineBackupOutcome(outcome.error()); -} - -void SmartagClient::deleteDedicatedLineBackupAsync(const DeleteDedicatedLineBackupRequest& request, const DeleteDedicatedLineBackupAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteDedicatedLineBackup(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::DeleteDedicatedLineBackupOutcomeCallable SmartagClient::deleteDedicatedLineBackupCallable(const DeleteDedicatedLineBackupRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteDedicatedLineBackup(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} +SmartagClient::SmartagClient(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, "smartag"); +} -SmartagClient::UnlockSmartAccessGatewayOutcome SmartagClient::unlockSmartAccessGateway(const UnlockSmartAccessGatewayRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UnlockSmartAccessGatewayOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UnlockSmartAccessGatewayOutcome(UnlockSmartAccessGatewayResult(outcome.result())); - else - return UnlockSmartAccessGatewayOutcome(outcome.error()); -} - -void SmartagClient::unlockSmartAccessGatewayAsync(const UnlockSmartAccessGatewayRequest& request, const UnlockSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, unlockSmartAccessGateway(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::UnlockSmartAccessGatewayOutcomeCallable SmartagClient::unlockSmartAccessGatewayCallable(const UnlockSmartAccessGatewayRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->unlockSmartAccessGateway(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} +SmartagClient::SmartagClient(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, "smartag"); +} -SmartagClient::ActivateSmartAccessGatewayOutcome SmartagClient::activateSmartAccessGateway(const ActivateSmartAccessGatewayRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ActivateSmartAccessGatewayOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ActivateSmartAccessGatewayOutcome(ActivateSmartAccessGatewayResult(outcome.result())); - else - return ActivateSmartAccessGatewayOutcome(outcome.error()); -} - -void SmartagClient::activateSmartAccessGatewayAsync(const ActivateSmartAccessGatewayRequest& request, const ActivateSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, activateSmartAccessGateway(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::ActivateSmartAccessGatewayOutcomeCallable SmartagClient::activateSmartAccessGatewayCallable(const ActivateSmartAccessGatewayRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->activateSmartAccessGateway(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} +SmartagClient::SmartagClient(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, "smartag"); +} -SmartagClient::CreateDedicatedLineBackupOutcome SmartagClient::createDedicatedLineBackup(const CreateDedicatedLineBackupRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateDedicatedLineBackupOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateDedicatedLineBackupOutcome(CreateDedicatedLineBackupResult(outcome.result())); - else - return CreateDedicatedLineBackupOutcome(outcome.error()); -} - -void SmartagClient::createDedicatedLineBackupAsync(const CreateDedicatedLineBackupRequest& request, const CreateDedicatedLineBackupAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createDedicatedLineBackup(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::CreateDedicatedLineBackupOutcomeCallable SmartagClient::createDedicatedLineBackupCallable(const CreateDedicatedLineBackupRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createDedicatedLineBackup(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} +SmartagClient::~SmartagClient() +{} -SmartagClient::DescribeSmartAccessGatewayHaOutcome SmartagClient::describeSmartAccessGatewayHa(const DescribeSmartAccessGatewayHaRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeSmartAccessGatewayHaOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeSmartAccessGatewayHaOutcome(DescribeSmartAccessGatewayHaResult(outcome.result())); - else - return DescribeSmartAccessGatewayHaOutcome(outcome.error()); -} - -void SmartagClient::describeSmartAccessGatewayHaAsync(const DescribeSmartAccessGatewayHaRequest& request, const DescribeSmartAccessGatewayHaAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeSmartAccessGatewayHa(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::DescribeSmartAccessGatewayHaOutcomeCallable SmartagClient::describeSmartAccessGatewayHaCallable(const DescribeSmartAccessGatewayHaRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeSmartAccessGatewayHa(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} +SmartagClient::GrantInstanceToCbnOutcome SmartagClient::grantInstanceToCbn(const GrantInstanceToCbnRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GrantInstanceToCbnOutcome(endpointOutcome.error()); -SmartagClient::ModifyCloudConnectNetworkOutcome SmartagClient::modifyCloudConnectNetwork(const ModifyCloudConnectNetworkRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyCloudConnectNetworkOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyCloudConnectNetworkOutcome(ModifyCloudConnectNetworkResult(outcome.result())); - else - return ModifyCloudConnectNetworkOutcome(outcome.error()); -} - -void SmartagClient::modifyCloudConnectNetworkAsync(const ModifyCloudConnectNetworkRequest& request, const ModifyCloudConnectNetworkAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyCloudConnectNetwork(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::ModifyCloudConnectNetworkOutcomeCallable SmartagClient::modifyCloudConnectNetworkCallable(const ModifyCloudConnectNetworkRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyCloudConnectNetwork(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} + auto outcome = makeRequest(endpointOutcome.result(), request); -SmartagClient::DeleteCloudConnectNetworkOutcome SmartagClient::deleteCloudConnectNetwork(const DeleteCloudConnectNetworkRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteCloudConnectNetworkOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteCloudConnectNetworkOutcome(DeleteCloudConnectNetworkResult(outcome.result())); - else - return DeleteCloudConnectNetworkOutcome(outcome.error()); -} - -void SmartagClient::deleteCloudConnectNetworkAsync(const DeleteCloudConnectNetworkRequest& request, const DeleteCloudConnectNetworkAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteCloudConnectNetwork(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::DeleteCloudConnectNetworkOutcomeCallable SmartagClient::deleteCloudConnectNetworkCallable(const DeleteCloudConnectNetworkRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteCloudConnectNetwork(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} + if (outcome.isSuccess()) + return GrantInstanceToCbnOutcome(GrantInstanceToCbnResult(outcome.result())); + else + return GrantInstanceToCbnOutcome(outcome.error()); +} -SmartagClient::CreateCloudConnectNetworkOutcome SmartagClient::createCloudConnectNetwork(const CreateCloudConnectNetworkRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateCloudConnectNetworkOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateCloudConnectNetworkOutcome(CreateCloudConnectNetworkResult(outcome.result())); - else - return CreateCloudConnectNetworkOutcome(outcome.error()); -} - -void SmartagClient::createCloudConnectNetworkAsync(const CreateCloudConnectNetworkRequest& request, const CreateCloudConnectNetworkAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createCloudConnectNetwork(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::CreateCloudConnectNetworkOutcomeCallable SmartagClient::createCloudConnectNetworkCallable(const CreateCloudConnectNetworkRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createCloudConnectNetwork(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} +void SmartagClient::grantInstanceToCbnAsync(const GrantInstanceToCbnRequest& request, const GrantInstanceToCbnAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, grantInstanceToCbn(request), context); + }; -SmartagClient::RebootSmartAccessGatewayOutcome SmartagClient::rebootSmartAccessGateway(const RebootSmartAccessGatewayRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return RebootSmartAccessGatewayOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return RebootSmartAccessGatewayOutcome(RebootSmartAccessGatewayResult(outcome.result())); - else - return RebootSmartAccessGatewayOutcome(outcome.error()); -} - -void SmartagClient::rebootSmartAccessGatewayAsync(const RebootSmartAccessGatewayRequest& request, const RebootSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, rebootSmartAccessGateway(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::RebootSmartAccessGatewayOutcomeCallable SmartagClient::rebootSmartAccessGatewayCallable(const RebootSmartAccessGatewayRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->rebootSmartAccessGateway(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} + asyncExecute(new Runnable(fn)); +} -SmartagClient::BindSmartAccessGatewayOutcome SmartagClient::bindSmartAccessGateway(const BindSmartAccessGatewayRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return BindSmartAccessGatewayOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return BindSmartAccessGatewayOutcome(BindSmartAccessGatewayResult(outcome.result())); - else - return BindSmartAccessGatewayOutcome(outcome.error()); -} - -void SmartagClient::bindSmartAccessGatewayAsync(const BindSmartAccessGatewayRequest& request, const BindSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, bindSmartAccessGateway(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::BindSmartAccessGatewayOutcomeCallable SmartagClient::bindSmartAccessGatewayCallable(const BindSmartAccessGatewayRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->bindSmartAccessGateway(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} +SmartagClient::GrantInstanceToCbnOutcomeCallable SmartagClient::grantInstanceToCbnCallable(const GrantInstanceToCbnRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->grantInstanceToCbn(request); + }); -SmartagClient::DescribeRegionsOutcome SmartagClient::describeRegions(const DescribeRegionsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeRegionsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeRegionsOutcome(DescribeRegionsResult(outcome.result())); - else - return DescribeRegionsOutcome(outcome.error()); -} - -void SmartagClient::describeRegionsAsync(const DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeRegions(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::DescribeRegionsOutcomeCallable SmartagClient::describeRegionsCallable(const DescribeRegionsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeRegions(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} -SmartagClient::GetSmartAccessGatewayUseLimitOutcome SmartagClient::getSmartAccessGatewayUseLimit(const GetSmartAccessGatewayUseLimitRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetSmartAccessGatewayUseLimitOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetSmartAccessGatewayUseLimitOutcome(GetSmartAccessGatewayUseLimitResult(outcome.result())); - else - return GetSmartAccessGatewayUseLimitOutcome(outcome.error()); -} - -void SmartagClient::getSmartAccessGatewayUseLimitAsync(const GetSmartAccessGatewayUseLimitRequest& request, const GetSmartAccessGatewayUseLimitAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getSmartAccessGatewayUseLimit(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::GetSmartAccessGatewayUseLimitOutcomeCallable SmartagClient::getSmartAccessGatewayUseLimitCallable(const GetSmartAccessGatewayUseLimitRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getSmartAccessGatewayUseLimit(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} +SmartagClient::DeleteNetworkOptimizationOutcome SmartagClient::deleteNetworkOptimization(const DeleteNetworkOptimizationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteNetworkOptimizationOutcome(endpointOutcome.error()); -SmartagClient::ModifySmartAccessGatewayOutcome SmartagClient::modifySmartAccessGateway(const ModifySmartAccessGatewayRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifySmartAccessGatewayOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifySmartAccessGatewayOutcome(ModifySmartAccessGatewayResult(outcome.result())); - else - return ModifySmartAccessGatewayOutcome(outcome.error()); -} - -void SmartagClient::modifySmartAccessGatewayAsync(const ModifySmartAccessGatewayRequest& request, const ModifySmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifySmartAccessGateway(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::ModifySmartAccessGatewayOutcomeCallable SmartagClient::modifySmartAccessGatewayCallable(const ModifySmartAccessGatewayRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifySmartAccessGateway(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} + auto outcome = makeRequest(endpointOutcome.result(), request); -SmartagClient::DescribeCloudConnectNetworksOutcome SmartagClient::describeCloudConnectNetworks(const DescribeCloudConnectNetworksRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeCloudConnectNetworksOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeCloudConnectNetworksOutcome(DescribeCloudConnectNetworksResult(outcome.result())); - else - return DescribeCloudConnectNetworksOutcome(outcome.error()); -} - -void SmartagClient::describeCloudConnectNetworksAsync(const DescribeCloudConnectNetworksRequest& request, const DescribeCloudConnectNetworksAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeCloudConnectNetworks(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::DescribeCloudConnectNetworksOutcomeCallable SmartagClient::describeCloudConnectNetworksCallable(const DescribeCloudConnectNetworksRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeCloudConnectNetworks(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} + if (outcome.isSuccess()) + return DeleteNetworkOptimizationOutcome(DeleteNetworkOptimizationResult(outcome.result())); + else + return DeleteNetworkOptimizationOutcome(outcome.error()); +} -SmartagClient::DescribeSmartAccessGatewayVersionsOutcome SmartagClient::describeSmartAccessGatewayVersions(const DescribeSmartAccessGatewayVersionsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeSmartAccessGatewayVersionsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeSmartAccessGatewayVersionsOutcome(DescribeSmartAccessGatewayVersionsResult(outcome.result())); - else - return DescribeSmartAccessGatewayVersionsOutcome(outcome.error()); -} - -void SmartagClient::describeSmartAccessGatewayVersionsAsync(const DescribeSmartAccessGatewayVersionsRequest& request, const DescribeSmartAccessGatewayVersionsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeSmartAccessGatewayVersions(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::DescribeSmartAccessGatewayVersionsOutcomeCallable SmartagClient::describeSmartAccessGatewayVersionsCallable(const DescribeSmartAccessGatewayVersionsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeSmartAccessGatewayVersions(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} +void SmartagClient::deleteNetworkOptimizationAsync(const DeleteNetworkOptimizationRequest& request, const DeleteNetworkOptimizationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteNetworkOptimization(request), context); + }; -SmartagClient::UpdateSmartAccessGatewayVersionOutcome SmartagClient::updateSmartAccessGatewayVersion(const UpdateSmartAccessGatewayVersionRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UpdateSmartAccessGatewayVersionOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UpdateSmartAccessGatewayVersionOutcome(UpdateSmartAccessGatewayVersionResult(outcome.result())); - else - return UpdateSmartAccessGatewayVersionOutcome(outcome.error()); -} - -void SmartagClient::updateSmartAccessGatewayVersionAsync(const UpdateSmartAccessGatewayVersionRequest& request, const UpdateSmartAccessGatewayVersionAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, updateSmartAccessGatewayVersion(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::UpdateSmartAccessGatewayVersionOutcomeCallable SmartagClient::updateSmartAccessGatewayVersionCallable(const UpdateSmartAccessGatewayVersionRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->updateSmartAccessGatewayVersion(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} + asyncExecute(new Runnable(fn)); +} -SmartagClient::GetCloudConnectNetworkUseLimitOutcome SmartagClient::getCloudConnectNetworkUseLimit(const GetCloudConnectNetworkUseLimitRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetCloudConnectNetworkUseLimitOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetCloudConnectNetworkUseLimitOutcome(GetCloudConnectNetworkUseLimitResult(outcome.result())); - else - return GetCloudConnectNetworkUseLimitOutcome(outcome.error()); -} - -void SmartagClient::getCloudConnectNetworkUseLimitAsync(const GetCloudConnectNetworkUseLimitRequest& request, const GetCloudConnectNetworkUseLimitAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getCloudConnectNetworkUseLimit(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::GetCloudConnectNetworkUseLimitOutcomeCallable SmartagClient::getCloudConnectNetworkUseLimitCallable(const GetCloudConnectNetworkUseLimitRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getCloudConnectNetworkUseLimit(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} +SmartagClient::DeleteNetworkOptimizationOutcomeCallable SmartagClient::deleteNetworkOptimizationCallable(const DeleteNetworkOptimizationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteNetworkOptimization(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::AddNetworkOptimizationSettingOutcome SmartagClient::addNetworkOptimizationSetting(const AddNetworkOptimizationSettingRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddNetworkOptimizationSettingOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddNetworkOptimizationSettingOutcome(AddNetworkOptimizationSettingResult(outcome.result())); + else + return AddNetworkOptimizationSettingOutcome(outcome.error()); +} + +void SmartagClient::addNetworkOptimizationSettingAsync(const AddNetworkOptimizationSettingRequest& request, const AddNetworkOptimizationSettingAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addNetworkOptimizationSetting(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::AddNetworkOptimizationSettingOutcomeCallable SmartagClient::addNetworkOptimizationSettingCallable(const AddNetworkOptimizationSettingRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addNetworkOptimizationSetting(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::ActivateSmartAccessGatewayOutcome SmartagClient::activateSmartAccessGateway(const ActivateSmartAccessGatewayRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ActivateSmartAccessGatewayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ActivateSmartAccessGatewayOutcome(ActivateSmartAccessGatewayResult(outcome.result())); + else + return ActivateSmartAccessGatewayOutcome(outcome.error()); +} + +void SmartagClient::activateSmartAccessGatewayAsync(const ActivateSmartAccessGatewayRequest& request, const ActivateSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, activateSmartAccessGateway(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::ActivateSmartAccessGatewayOutcomeCallable SmartagClient::activateSmartAccessGatewayCallable(const ActivateSmartAccessGatewayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->activateSmartAccessGateway(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DeleteACLRuleOutcome SmartagClient::deleteACLRule(const DeleteACLRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteACLRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteACLRuleOutcome(DeleteACLRuleResult(outcome.result())); + else + return DeleteACLRuleOutcome(outcome.error()); +} + +void SmartagClient::deleteACLRuleAsync(const DeleteACLRuleRequest& request, const DeleteACLRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteACLRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DeleteACLRuleOutcomeCallable SmartagClient::deleteACLRuleCallable(const DeleteACLRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteACLRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::ModifyNetworkOptimizationOutcome SmartagClient::modifyNetworkOptimization(const ModifyNetworkOptimizationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyNetworkOptimizationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyNetworkOptimizationOutcome(ModifyNetworkOptimizationResult(outcome.result())); + else + return ModifyNetworkOptimizationOutcome(outcome.error()); +} + +void SmartagClient::modifyNetworkOptimizationAsync(const ModifyNetworkOptimizationRequest& request, const ModifyNetworkOptimizationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyNetworkOptimization(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::ModifyNetworkOptimizationOutcomeCallable SmartagClient::modifyNetworkOptimizationCallable(const ModifyNetworkOptimizationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyNetworkOptimization(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::CreateSmartAccessGatewayClientUserOutcome SmartagClient::createSmartAccessGatewayClientUser(const CreateSmartAccessGatewayClientUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateSmartAccessGatewayClientUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateSmartAccessGatewayClientUserOutcome(CreateSmartAccessGatewayClientUserResult(outcome.result())); + else + return CreateSmartAccessGatewayClientUserOutcome(outcome.error()); +} + +void SmartagClient::createSmartAccessGatewayClientUserAsync(const CreateSmartAccessGatewayClientUserRequest& request, const CreateSmartAccessGatewayClientUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createSmartAccessGatewayClientUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::CreateSmartAccessGatewayClientUserOutcomeCallable SmartagClient::createSmartAccessGatewayClientUserCallable(const CreateSmartAccessGatewayClientUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createSmartAccessGatewayClientUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::UnicomSignConfirmOutcome SmartagClient::unicomSignConfirm(const UnicomSignConfirmRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UnicomSignConfirmOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnicomSignConfirmOutcome(UnicomSignConfirmResult(outcome.result())); + else + return UnicomSignConfirmOutcome(outcome.error()); +} + +void SmartagClient::unicomSignConfirmAsync(const UnicomSignConfirmRequest& request, const UnicomSignConfirmAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unicomSignConfirm(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::UnicomSignConfirmOutcomeCallable SmartagClient::unicomSignConfirmCallable(const UnicomSignConfirmRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unicomSignConfirm(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::AddACLRuleOutcome SmartagClient::addACLRule(const AddACLRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddACLRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddACLRuleOutcome(AddACLRuleResult(outcome.result())); + else + return AddACLRuleOutcome(outcome.error()); +} + +void SmartagClient::addACLRuleAsync(const AddACLRuleRequest& request, const AddACLRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addACLRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::AddACLRuleOutcomeCallable SmartagClient::addACLRuleCallable(const AddACLRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addACLRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DisassociateACLOutcome SmartagClient::disassociateACL(const DisassociateACLRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DisassociateACLOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DisassociateACLOutcome(DisassociateACLResult(outcome.result())); + else + return DisassociateACLOutcome(outcome.error()); +} + +void SmartagClient::disassociateACLAsync(const DisassociateACLRequest& request, const DisassociateACLAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, disassociateACL(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DisassociateACLOutcomeCallable SmartagClient::disassociateACLCallable(const DisassociateACLRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->disassociateACL(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::BindSmartAccessGatewayOutcome SmartagClient::bindSmartAccessGateway(const BindSmartAccessGatewayRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BindSmartAccessGatewayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BindSmartAccessGatewayOutcome(BindSmartAccessGatewayResult(outcome.result())); + else + return BindSmartAccessGatewayOutcome(outcome.error()); +} + +void SmartagClient::bindSmartAccessGatewayAsync(const BindSmartAccessGatewayRequest& request, const BindSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, bindSmartAccessGateway(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::BindSmartAccessGatewayOutcomeCallable SmartagClient::bindSmartAccessGatewayCallable(const BindSmartAccessGatewayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->bindSmartAccessGateway(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::CreateNetworkOptimizationOutcome SmartagClient::createNetworkOptimization(const CreateNetworkOptimizationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateNetworkOptimizationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateNetworkOptimizationOutcome(CreateNetworkOptimizationResult(outcome.result())); + else + return CreateNetworkOptimizationOutcome(outcome.error()); +} + +void SmartagClient::createNetworkOptimizationAsync(const CreateNetworkOptimizationRequest& request, const CreateNetworkOptimizationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createNetworkOptimization(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::CreateNetworkOptimizationOutcomeCallable SmartagClient::createNetworkOptimizationCallable(const CreateNetworkOptimizationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createNetworkOptimization(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DeleteSAGLinkLevelHaOutcome SmartagClient::deleteSAGLinkLevelHa(const DeleteSAGLinkLevelHaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteSAGLinkLevelHaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteSAGLinkLevelHaOutcome(DeleteSAGLinkLevelHaResult(outcome.result())); + else + return DeleteSAGLinkLevelHaOutcome(outcome.error()); +} + +void SmartagClient::deleteSAGLinkLevelHaAsync(const DeleteSAGLinkLevelHaRequest& request, const DeleteSAGLinkLevelHaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteSAGLinkLevelHa(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DeleteSAGLinkLevelHaOutcomeCallable SmartagClient::deleteSAGLinkLevelHaCallable(const DeleteSAGLinkLevelHaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteSAGLinkLevelHa(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DeleteSmartAccessGatewayClientUserOutcome SmartagClient::deleteSmartAccessGatewayClientUser(const DeleteSmartAccessGatewayClientUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteSmartAccessGatewayClientUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteSmartAccessGatewayClientUserOutcome(DeleteSmartAccessGatewayClientUserResult(outcome.result())); + else + return DeleteSmartAccessGatewayClientUserOutcome(outcome.error()); +} + +void SmartagClient::deleteSmartAccessGatewayClientUserAsync(const DeleteSmartAccessGatewayClientUserRequest& request, const DeleteSmartAccessGatewayClientUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteSmartAccessGatewayClientUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DeleteSmartAccessGatewayClientUserOutcomeCallable SmartagClient::deleteSmartAccessGatewayClientUserCallable(const DeleteSmartAccessGatewayClientUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteSmartAccessGatewayClientUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::KickOutClientsOutcome SmartagClient::kickOutClients(const KickOutClientsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return KickOutClientsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return KickOutClientsOutcome(KickOutClientsResult(outcome.result())); + else + return KickOutClientsOutcome(outcome.error()); +} + +void SmartagClient::kickOutClientsAsync(const KickOutClientsRequest& request, const KickOutClientsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, kickOutClients(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::KickOutClientsOutcomeCallable SmartagClient::kickOutClientsCallable(const KickOutClientsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->kickOutClients(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::SwitchSAGHaStateOutcome SmartagClient::switchSAGHaState(const SwitchSAGHaStateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SwitchSAGHaStateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SwitchSAGHaStateOutcome(SwitchSAGHaStateResult(outcome.result())); + else + return SwitchSAGHaStateOutcome(outcome.error()); +} + +void SmartagClient::switchSAGHaStateAsync(const SwitchSAGHaStateRequest& request, const SwitchSAGHaStateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, switchSAGHaState(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::SwitchSAGHaStateOutcomeCallable SmartagClient::switchSAGHaStateCallable(const SwitchSAGHaStateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->switchSAGHaState(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DescribeSagRouteableAddressOutcome SmartagClient::describeSagRouteableAddress(const DescribeSagRouteableAddressRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSagRouteableAddressOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSagRouteableAddressOutcome(DescribeSagRouteableAddressResult(outcome.result())); + else + return DescribeSagRouteableAddressOutcome(outcome.error()); +} + +void SmartagClient::describeSagRouteableAddressAsync(const DescribeSagRouteableAddressRequest& request, const DescribeSagRouteableAddressAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSagRouteableAddress(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DescribeSagRouteableAddressOutcomeCallable SmartagClient::describeSagRouteableAddressCallable(const DescribeSagRouteableAddressRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSagRouteableAddress(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DescribeGrantRulesOutcome SmartagClient::describeGrantRules(const DescribeGrantRulesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGrantRulesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGrantRulesOutcome(DescribeGrantRulesResult(outcome.result())); + else + return DescribeGrantRulesOutcome(outcome.error()); +} + +void SmartagClient::describeGrantRulesAsync(const DescribeGrantRulesRequest& request, const DescribeGrantRulesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGrantRules(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DescribeGrantRulesOutcomeCallable SmartagClient::describeGrantRulesCallable(const DescribeGrantRulesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGrantRules(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::SwitchCloudBoxHaStateOutcome SmartagClient::switchCloudBoxHaState(const SwitchCloudBoxHaStateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SwitchCloudBoxHaStateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SwitchCloudBoxHaStateOutcome(SwitchCloudBoxHaStateResult(outcome.result())); + else + return SwitchCloudBoxHaStateOutcome(outcome.error()); +} + +void SmartagClient::switchCloudBoxHaStateAsync(const SwitchCloudBoxHaStateRequest& request, const SwitchCloudBoxHaStateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, switchCloudBoxHaState(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::SwitchCloudBoxHaStateOutcomeCallable SmartagClient::switchCloudBoxHaStateCallable(const SwitchCloudBoxHaStateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->switchCloudBoxHaState(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::UnbindSmartAccessGatewayOutcome SmartagClient::unbindSmartAccessGateway(const UnbindSmartAccessGatewayRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UnbindSmartAccessGatewayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnbindSmartAccessGatewayOutcome(UnbindSmartAccessGatewayResult(outcome.result())); + else + return UnbindSmartAccessGatewayOutcome(outcome.error()); +} + +void SmartagClient::unbindSmartAccessGatewayAsync(const UnbindSmartAccessGatewayRequest& request, const UnbindSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unbindSmartAccessGateway(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::UnbindSmartAccessGatewayOutcomeCallable SmartagClient::unbindSmartAccessGatewayCallable(const UnbindSmartAccessGatewayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unbindSmartAccessGateway(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::CreateSmartAccessGatewayOutcome SmartagClient::createSmartAccessGateway(const CreateSmartAccessGatewayRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateSmartAccessGatewayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateSmartAccessGatewayOutcome(CreateSmartAccessGatewayResult(outcome.result())); + else + return CreateSmartAccessGatewayOutcome(outcome.error()); +} + +void SmartagClient::createSmartAccessGatewayAsync(const CreateSmartAccessGatewayRequest& request, const CreateSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createSmartAccessGateway(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::CreateSmartAccessGatewayOutcomeCallable SmartagClient::createSmartAccessGatewayCallable(const CreateSmartAccessGatewayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createSmartAccessGateway(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::AttachNetworkOptimizationSagsOutcome SmartagClient::attachNetworkOptimizationSags(const AttachNetworkOptimizationSagsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AttachNetworkOptimizationSagsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AttachNetworkOptimizationSagsOutcome(AttachNetworkOptimizationSagsResult(outcome.result())); + else + return AttachNetworkOptimizationSagsOutcome(outcome.error()); +} + +void SmartagClient::attachNetworkOptimizationSagsAsync(const AttachNetworkOptimizationSagsRequest& request, const AttachNetworkOptimizationSagsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, attachNetworkOptimizationSags(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::AttachNetworkOptimizationSagsOutcomeCallable SmartagClient::attachNetworkOptimizationSagsCallable(const AttachNetworkOptimizationSagsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->attachNetworkOptimizationSags(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::ClearSagRouteableAddressOutcome SmartagClient::clearSagRouteableAddress(const ClearSagRouteableAddressRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ClearSagRouteableAddressOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ClearSagRouteableAddressOutcome(ClearSagRouteableAddressResult(outcome.result())); + else + return ClearSagRouteableAddressOutcome(outcome.error()); +} + +void SmartagClient::clearSagRouteableAddressAsync(const ClearSagRouteableAddressRequest& request, const ClearSagRouteableAddressAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, clearSagRouteableAddress(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::ClearSagRouteableAddressOutcomeCallable SmartagClient::clearSagRouteableAddressCallable(const ClearSagRouteableAddressRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->clearSagRouteableAddress(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::ModifyCloudConnectNetworkOutcome SmartagClient::modifyCloudConnectNetwork(const ModifyCloudConnectNetworkRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyCloudConnectNetworkOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyCloudConnectNetworkOutcome(ModifyCloudConnectNetworkResult(outcome.result())); + else + return ModifyCloudConnectNetworkOutcome(outcome.error()); +} + +void SmartagClient::modifyCloudConnectNetworkAsync(const ModifyCloudConnectNetworkRequest& request, const ModifyCloudConnectNetworkAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyCloudConnectNetwork(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::ModifyCloudConnectNetworkOutcomeCallable SmartagClient::modifyCloudConnectNetworkCallable(const ModifyCloudConnectNetworkRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyCloudConnectNetwork(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DeleteACLOutcome SmartagClient::deleteACL(const DeleteACLRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteACLOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteACLOutcome(DeleteACLResult(outcome.result())); + else + return DeleteACLOutcome(outcome.error()); +} + +void SmartagClient::deleteACLAsync(const DeleteACLRequest& request, const DeleteACLAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteACL(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DeleteACLOutcomeCallable SmartagClient::deleteACLCallable(const DeleteACLRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteACL(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DescribeSagOnlineClientStatisticsOutcome SmartagClient::describeSagOnlineClientStatistics(const DescribeSagOnlineClientStatisticsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSagOnlineClientStatisticsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSagOnlineClientStatisticsOutcome(DescribeSagOnlineClientStatisticsResult(outcome.result())); + else + return DescribeSagOnlineClientStatisticsOutcome(outcome.error()); +} + +void SmartagClient::describeSagOnlineClientStatisticsAsync(const DescribeSagOnlineClientStatisticsRequest& request, const DescribeSagOnlineClientStatisticsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSagOnlineClientStatistics(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DescribeSagOnlineClientStatisticsOutcomeCallable SmartagClient::describeSagOnlineClientStatisticsCallable(const DescribeSagOnlineClientStatisticsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSagOnlineClientStatistics(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DowngradeSmartAccessGatewayOutcome SmartagClient::downgradeSmartAccessGateway(const DowngradeSmartAccessGatewayRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DowngradeSmartAccessGatewayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DowngradeSmartAccessGatewayOutcome(DowngradeSmartAccessGatewayResult(outcome.result())); + else + return DowngradeSmartAccessGatewayOutcome(outcome.error()); +} + +void SmartagClient::downgradeSmartAccessGatewayAsync(const DowngradeSmartAccessGatewayRequest& request, const DowngradeSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, downgradeSmartAccessGateway(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DowngradeSmartAccessGatewayOutcomeCallable SmartagClient::downgradeSmartAccessGatewayCallable(const DowngradeSmartAccessGatewayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->downgradeSmartAccessGateway(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::AssociateACLOutcome SmartagClient::associateACL(const AssociateACLRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AssociateACLOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AssociateACLOutcome(AssociateACLResult(outcome.result())); + else + return AssociateACLOutcome(outcome.error()); +} + +void SmartagClient::associateACLAsync(const AssociateACLRequest& request, const AssociateACLAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, associateACL(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::AssociateACLOutcomeCallable SmartagClient::associateACLCallable(const AssociateACLRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->associateACL(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DescribeSmartAccessGatewayVersionsOutcome SmartagClient::describeSmartAccessGatewayVersions(const DescribeSmartAccessGatewayVersionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSmartAccessGatewayVersionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSmartAccessGatewayVersionsOutcome(DescribeSmartAccessGatewayVersionsResult(outcome.result())); + else + return DescribeSmartAccessGatewayVersionsOutcome(outcome.error()); +} + +void SmartagClient::describeSmartAccessGatewayVersionsAsync(const DescribeSmartAccessGatewayVersionsRequest& request, const DescribeSmartAccessGatewayVersionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSmartAccessGatewayVersions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DescribeSmartAccessGatewayVersionsOutcomeCallable SmartagClient::describeSmartAccessGatewayVersionsCallable(const DescribeSmartAccessGatewayVersionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSmartAccessGatewayVersions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::UpdateSmartAccessGatewayVersionOutcome SmartagClient::updateSmartAccessGatewayVersion(const UpdateSmartAccessGatewayVersionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateSmartAccessGatewayVersionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateSmartAccessGatewayVersionOutcome(UpdateSmartAccessGatewayVersionResult(outcome.result())); + else + return UpdateSmartAccessGatewayVersionOutcome(outcome.error()); +} + +void SmartagClient::updateSmartAccessGatewayVersionAsync(const UpdateSmartAccessGatewayVersionRequest& request, const UpdateSmartAccessGatewayVersionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateSmartAccessGatewayVersion(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::UpdateSmartAccessGatewayVersionOutcomeCallable SmartagClient::updateSmartAccessGatewayVersionCallable(const UpdateSmartAccessGatewayVersionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateSmartAccessGatewayVersion(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::ModifySmartAccessGatewayOutcome SmartagClient::modifySmartAccessGateway(const ModifySmartAccessGatewayRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifySmartAccessGatewayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifySmartAccessGatewayOutcome(ModifySmartAccessGatewayResult(outcome.result())); + else + return ModifySmartAccessGatewayOutcome(outcome.error()); +} + +void SmartagClient::modifySmartAccessGatewayAsync(const ModifySmartAccessGatewayRequest& request, const ModifySmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifySmartAccessGateway(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::ModifySmartAccessGatewayOutcomeCallable SmartagClient::modifySmartAccessGatewayCallable(const ModifySmartAccessGatewayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifySmartAccessGateway(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::RevokeInstanceFromCbnOutcome SmartagClient::revokeInstanceFromCbn(const RevokeInstanceFromCbnRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RevokeInstanceFromCbnOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RevokeInstanceFromCbnOutcome(RevokeInstanceFromCbnResult(outcome.result())); + else + return RevokeInstanceFromCbnOutcome(outcome.error()); +} + +void SmartagClient::revokeInstanceFromCbnAsync(const RevokeInstanceFromCbnRequest& request, const RevokeInstanceFromCbnAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, revokeInstanceFromCbn(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::RevokeInstanceFromCbnOutcomeCallable SmartagClient::revokeInstanceFromCbnCallable(const RevokeInstanceFromCbnRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->revokeInstanceFromCbn(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::ModifySerialNumberOutcome SmartagClient::modifySerialNumber(const ModifySerialNumberRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifySerialNumberOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifySerialNumberOutcome(ModifySerialNumberResult(outcome.result())); + else + return ModifySerialNumberOutcome(outcome.error()); +} + +void SmartagClient::modifySerialNumberAsync(const ModifySerialNumberRequest& request, const ModifySerialNumberAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifySerialNumber(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::ModifySerialNumberOutcomeCallable SmartagClient::modifySerialNumberCallable(const ModifySerialNumberRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifySerialNumber(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DescribeACLAttributeOutcome SmartagClient::describeACLAttribute(const DescribeACLAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeACLAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeACLAttributeOutcome(DescribeACLAttributeResult(outcome.result())); + else + return DescribeACLAttributeOutcome(outcome.error()); +} + +void SmartagClient::describeACLAttributeAsync(const DescribeACLAttributeRequest& request, const DescribeACLAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeACLAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DescribeACLAttributeOutcomeCallable SmartagClient::describeACLAttributeCallable(const DescribeACLAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeACLAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DeleteDedicatedLineBackupOutcome SmartagClient::deleteDedicatedLineBackup(const DeleteDedicatedLineBackupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDedicatedLineBackupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDedicatedLineBackupOutcome(DeleteDedicatedLineBackupResult(outcome.result())); + else + return DeleteDedicatedLineBackupOutcome(outcome.error()); +} + +void SmartagClient::deleteDedicatedLineBackupAsync(const DeleteDedicatedLineBackupRequest& request, const DeleteDedicatedLineBackupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDedicatedLineBackup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DeleteDedicatedLineBackupOutcomeCallable SmartagClient::deleteDedicatedLineBackupCallable(const DeleteDedicatedLineBackupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDedicatedLineBackup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::ResetSmartAccessGatewayClientUserPasswordOutcome SmartagClient::resetSmartAccessGatewayClientUserPassword(const ResetSmartAccessGatewayClientUserPasswordRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ResetSmartAccessGatewayClientUserPasswordOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ResetSmartAccessGatewayClientUserPasswordOutcome(ResetSmartAccessGatewayClientUserPasswordResult(outcome.result())); + else + return ResetSmartAccessGatewayClientUserPasswordOutcome(outcome.error()); +} + +void SmartagClient::resetSmartAccessGatewayClientUserPasswordAsync(const ResetSmartAccessGatewayClientUserPasswordRequest& request, const ResetSmartAccessGatewayClientUserPasswordAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, resetSmartAccessGatewayClientUserPassword(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::ResetSmartAccessGatewayClientUserPasswordOutcomeCallable SmartagClient::resetSmartAccessGatewayClientUserPasswordCallable(const ResetSmartAccessGatewayClientUserPasswordRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->resetSmartAccessGatewayClientUserPassword(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DescribeACLsOutcome SmartagClient::describeACLs(const DescribeACLsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeACLsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeACLsOutcome(DescribeACLsResult(outcome.result())); + else + return DescribeACLsOutcome(outcome.error()); +} + +void SmartagClient::describeACLsAsync(const DescribeACLsRequest& request, const DescribeACLsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeACLs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DescribeACLsOutcomeCallable SmartagClient::describeACLsCallable(const DescribeACLsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeACLs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::UnlockSmartAccessGatewayOutcome SmartagClient::unlockSmartAccessGateway(const UnlockSmartAccessGatewayRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UnlockSmartAccessGatewayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnlockSmartAccessGatewayOutcome(UnlockSmartAccessGatewayResult(outcome.result())); + else + return UnlockSmartAccessGatewayOutcome(outcome.error()); +} + +void SmartagClient::unlockSmartAccessGatewayAsync(const UnlockSmartAccessGatewayRequest& request, const UnlockSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unlockSmartAccessGateway(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::UnlockSmartAccessGatewayOutcomeCallable SmartagClient::unlockSmartAccessGatewayCallable(const UnlockSmartAccessGatewayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unlockSmartAccessGateway(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::CreateSAGLinkLevelHaOutcome SmartagClient::createSAGLinkLevelHa(const CreateSAGLinkLevelHaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateSAGLinkLevelHaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateSAGLinkLevelHaOutcome(CreateSAGLinkLevelHaResult(outcome.result())); + else + return CreateSAGLinkLevelHaOutcome(outcome.error()); +} + +void SmartagClient::createSAGLinkLevelHaAsync(const CreateSAGLinkLevelHaRequest& request, const CreateSAGLinkLevelHaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createSAGLinkLevelHa(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::CreateSAGLinkLevelHaOutcomeCallable SmartagClient::createSAGLinkLevelHaCallable(const CreateSAGLinkLevelHaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createSAGLinkLevelHa(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DescribeSmartAccessGatewayHaOutcome SmartagClient::describeSmartAccessGatewayHa(const DescribeSmartAccessGatewayHaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSmartAccessGatewayHaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSmartAccessGatewayHaOutcome(DescribeSmartAccessGatewayHaResult(outcome.result())); + else + return DescribeSmartAccessGatewayHaOutcome(outcome.error()); +} + +void SmartagClient::describeSmartAccessGatewayHaAsync(const DescribeSmartAccessGatewayHaRequest& request, const DescribeSmartAccessGatewayHaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSmartAccessGatewayHa(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DescribeSmartAccessGatewayHaOutcomeCallable SmartagClient::describeSmartAccessGatewayHaCallable(const DescribeSmartAccessGatewayHaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSmartAccessGatewayHa(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::CreateSmartAccessGatewaySoftwareOutcome SmartagClient::createSmartAccessGatewaySoftware(const CreateSmartAccessGatewaySoftwareRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateSmartAccessGatewaySoftwareOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateSmartAccessGatewaySoftwareOutcome(CreateSmartAccessGatewaySoftwareResult(outcome.result())); + else + return CreateSmartAccessGatewaySoftwareOutcome(outcome.error()); +} + +void SmartagClient::createSmartAccessGatewaySoftwareAsync(const CreateSmartAccessGatewaySoftwareRequest& request, const CreateSmartAccessGatewaySoftwareAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createSmartAccessGatewaySoftware(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::CreateSmartAccessGatewaySoftwareOutcomeCallable SmartagClient::createSmartAccessGatewaySoftwareCallable(const CreateSmartAccessGatewaySoftwareRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createSmartAccessGatewaySoftware(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DescribeNetworkOptimizationSettingsOutcome SmartagClient::describeNetworkOptimizationSettings(const DescribeNetworkOptimizationSettingsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeNetworkOptimizationSettingsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeNetworkOptimizationSettingsOutcome(DescribeNetworkOptimizationSettingsResult(outcome.result())); + else + return DescribeNetworkOptimizationSettingsOutcome(outcome.error()); +} + +void SmartagClient::describeNetworkOptimizationSettingsAsync(const DescribeNetworkOptimizationSettingsRequest& request, const DescribeNetworkOptimizationSettingsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeNetworkOptimizationSettings(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DescribeNetworkOptimizationSettingsOutcomeCallable SmartagClient::describeNetworkOptimizationSettingsCallable(const DescribeNetworkOptimizationSettingsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeNetworkOptimizationSettings(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DeleteCloudConnectNetworkOutcome SmartagClient::deleteCloudConnectNetwork(const DeleteCloudConnectNetworkRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteCloudConnectNetworkOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteCloudConnectNetworkOutcome(DeleteCloudConnectNetworkResult(outcome.result())); + else + return DeleteCloudConnectNetworkOutcome(outcome.error()); +} + +void SmartagClient::deleteCloudConnectNetworkAsync(const DeleteCloudConnectNetworkRequest& request, const DeleteCloudConnectNetworkAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteCloudConnectNetwork(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DeleteCloudConnectNetworkOutcomeCallable SmartagClient::deleteCloudConnectNetworkCallable(const DeleteCloudConnectNetworkRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteCloudConnectNetwork(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::CreateACLOutcome SmartagClient::createACL(const CreateACLRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateACLOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateACLOutcome(CreateACLResult(outcome.result())); + else + return CreateACLOutcome(outcome.error()); +} + +void SmartagClient::createACLAsync(const CreateACLRequest& request, const CreateACLAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createACL(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::CreateACLOutcomeCallable SmartagClient::createACLCallable(const CreateACLRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createACL(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DescribeNetworkOptimizationSagsOutcome SmartagClient::describeNetworkOptimizationSags(const DescribeNetworkOptimizationSagsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeNetworkOptimizationSagsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeNetworkOptimizationSagsOutcome(DescribeNetworkOptimizationSagsResult(outcome.result())); + else + return DescribeNetworkOptimizationSagsOutcome(outcome.error()); +} + +void SmartagClient::describeNetworkOptimizationSagsAsync(const DescribeNetworkOptimizationSagsRequest& request, const DescribeNetworkOptimizationSagsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeNetworkOptimizationSags(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DescribeNetworkOptimizationSagsOutcomeCallable SmartagClient::describeNetworkOptimizationSagsCallable(const DescribeNetworkOptimizationSagsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeNetworkOptimizationSags(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::CreateCloudConnectNetworkOutcome SmartagClient::createCloudConnectNetwork(const CreateCloudConnectNetworkRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateCloudConnectNetworkOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateCloudConnectNetworkOutcome(CreateCloudConnectNetworkResult(outcome.result())); + else + return CreateCloudConnectNetworkOutcome(outcome.error()); +} + +void SmartagClient::createCloudConnectNetworkAsync(const CreateCloudConnectNetworkRequest& request, const CreateCloudConnectNetworkAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createCloudConnectNetwork(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::CreateCloudConnectNetworkOutcomeCallable SmartagClient::createCloudConnectNetworkCallable(const CreateCloudConnectNetworkRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createCloudConnectNetwork(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::RebootSmartAccessGatewayOutcome SmartagClient::rebootSmartAccessGateway(const RebootSmartAccessGatewayRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RebootSmartAccessGatewayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RebootSmartAccessGatewayOutcome(RebootSmartAccessGatewayResult(outcome.result())); + else + return RebootSmartAccessGatewayOutcome(outcome.error()); +} + +void SmartagClient::rebootSmartAccessGatewayAsync(const RebootSmartAccessGatewayRequest& request, const RebootSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, rebootSmartAccessGateway(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::RebootSmartAccessGatewayOutcomeCallable SmartagClient::rebootSmartAccessGatewayCallable(const RebootSmartAccessGatewayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->rebootSmartAccessGateway(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DescribeRegionsOutcome SmartagClient::describeRegions(const DescribeRegionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRegionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRegionsOutcome(DescribeRegionsResult(outcome.result())); + else + return DescribeRegionsOutcome(outcome.error()); +} + +void SmartagClient::describeRegionsAsync(const DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRegions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DescribeRegionsOutcomeCallable SmartagClient::describeRegionsCallable(const DescribeRegionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRegions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DescribeCloudConnectNetworksOutcome SmartagClient::describeCloudConnectNetworks(const DescribeCloudConnectNetworksRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCloudConnectNetworksOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCloudConnectNetworksOutcome(DescribeCloudConnectNetworksResult(outcome.result())); + else + return DescribeCloudConnectNetworksOutcome(outcome.error()); +} + +void SmartagClient::describeCloudConnectNetworksAsync(const DescribeCloudConnectNetworksRequest& request, const DescribeCloudConnectNetworksAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCloudConnectNetworks(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DescribeCloudConnectNetworksOutcomeCallable SmartagClient::describeCloudConnectNetworksCallable(const DescribeCloudConnectNetworksRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCloudConnectNetworks(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::ModifyACLRuleOutcome SmartagClient::modifyACLRule(const ModifyACLRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyACLRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyACLRuleOutcome(ModifyACLRuleResult(outcome.result())); + else + return ModifyACLRuleOutcome(outcome.error()); +} + +void SmartagClient::modifyACLRuleAsync(const ModifyACLRuleRequest& request, const ModifyACLRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyACLRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::ModifyACLRuleOutcomeCallable SmartagClient::modifyACLRuleCallable(const ModifyACLRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyACLRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::ModifySmartAccessGatewayClientUserOutcome SmartagClient::modifySmartAccessGatewayClientUser(const ModifySmartAccessGatewayClientUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifySmartAccessGatewayClientUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifySmartAccessGatewayClientUserOutcome(ModifySmartAccessGatewayClientUserResult(outcome.result())); + else + return ModifySmartAccessGatewayClientUserOutcome(outcome.error()); +} + +void SmartagClient::modifySmartAccessGatewayClientUserAsync(const ModifySmartAccessGatewayClientUserRequest& request, const ModifySmartAccessGatewayClientUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifySmartAccessGatewayClientUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::ModifySmartAccessGatewayClientUserOutcomeCallable SmartagClient::modifySmartAccessGatewayClientUserCallable(const ModifySmartAccessGatewayClientUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifySmartAccessGatewayClientUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DeleteNetworkOptimizationSettingOutcome SmartagClient::deleteNetworkOptimizationSetting(const DeleteNetworkOptimizationSettingRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteNetworkOptimizationSettingOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteNetworkOptimizationSettingOutcome(DeleteNetworkOptimizationSettingResult(outcome.result())); + else + return DeleteNetworkOptimizationSettingOutcome(outcome.error()); +} + +void SmartagClient::deleteNetworkOptimizationSettingAsync(const DeleteNetworkOptimizationSettingRequest& request, const DeleteNetworkOptimizationSettingAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteNetworkOptimizationSetting(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DeleteNetworkOptimizationSettingOutcomeCallable SmartagClient::deleteNetworkOptimizationSettingCallable(const DeleteNetworkOptimizationSettingRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteNetworkOptimizationSetting(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::GetCloudConnectNetworkUseLimitOutcome SmartagClient::getCloudConnectNetworkUseLimit(const GetCloudConnectNetworkUseLimitRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetCloudConnectNetworkUseLimitOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetCloudConnectNetworkUseLimitOutcome(GetCloudConnectNetworkUseLimitResult(outcome.result())); + else + return GetCloudConnectNetworkUseLimitOutcome(outcome.error()); +} + +void SmartagClient::getCloudConnectNetworkUseLimitAsync(const GetCloudConnectNetworkUseLimitRequest& request, const GetCloudConnectNetworkUseLimitAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getCloudConnectNetworkUseLimit(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::GetCloudConnectNetworkUseLimitOutcomeCallable SmartagClient::getCloudConnectNetworkUseLimitCallable(const GetCloudConnectNetworkUseLimitRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getCloudConnectNetworkUseLimit(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DescribeSmartAccessGatewaysOutcome SmartagClient::describeSmartAccessGateways(const DescribeSmartAccessGatewaysRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSmartAccessGatewaysOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSmartAccessGatewaysOutcome(DescribeSmartAccessGatewaysResult(outcome.result())); + else + return DescribeSmartAccessGatewaysOutcome(outcome.error()); +} + +void SmartagClient::describeSmartAccessGatewaysAsync(const DescribeSmartAccessGatewaysRequest& request, const DescribeSmartAccessGatewaysAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSmartAccessGateways(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DescribeSmartAccessGatewaysOutcomeCallable SmartagClient::describeSmartAccessGatewaysCallable(const DescribeSmartAccessGatewaysRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSmartAccessGateways(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::UpgradeSmartAccessGatewayOutcome SmartagClient::upgradeSmartAccessGateway(const UpgradeSmartAccessGatewayRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpgradeSmartAccessGatewayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpgradeSmartAccessGatewayOutcome(UpgradeSmartAccessGatewayResult(outcome.result())); + else + return UpgradeSmartAccessGatewayOutcome(outcome.error()); +} + +void SmartagClient::upgradeSmartAccessGatewayAsync(const UpgradeSmartAccessGatewayRequest& request, const UpgradeSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, upgradeSmartAccessGateway(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::UpgradeSmartAccessGatewayOutcomeCallable SmartagClient::upgradeSmartAccessGatewayCallable(const UpgradeSmartAccessGatewayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->upgradeSmartAccessGateway(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DescribeUserOnlineClientsOutcome SmartagClient::describeUserOnlineClients(const DescribeUserOnlineClientsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeUserOnlineClientsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeUserOnlineClientsOutcome(DescribeUserOnlineClientsResult(outcome.result())); + else + return DescribeUserOnlineClientsOutcome(outcome.error()); +} + +void SmartagClient::describeUserOnlineClientsAsync(const DescribeUserOnlineClientsRequest& request, const DescribeUserOnlineClientsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeUserOnlineClients(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DescribeUserOnlineClientsOutcomeCallable SmartagClient::describeUserOnlineClientsCallable(const DescribeUserOnlineClientsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeUserOnlineClients(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DetachNetworkOptimizationSagsOutcome SmartagClient::detachNetworkOptimizationSags(const DetachNetworkOptimizationSagsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DetachNetworkOptimizationSagsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetachNetworkOptimizationSagsOutcome(DetachNetworkOptimizationSagsResult(outcome.result())); + else + return DetachNetworkOptimizationSagsOutcome(outcome.error()); +} + +void SmartagClient::detachNetworkOptimizationSagsAsync(const DetachNetworkOptimizationSagsRequest& request, const DetachNetworkOptimizationSagsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detachNetworkOptimizationSags(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DetachNetworkOptimizationSagsOutcomeCallable SmartagClient::detachNetworkOptimizationSagsCallable(const DetachNetworkOptimizationSagsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detachNetworkOptimizationSags(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DescribeUserOnlineClientStatisticsOutcome SmartagClient::describeUserOnlineClientStatistics(const DescribeUserOnlineClientStatisticsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeUserOnlineClientStatisticsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeUserOnlineClientStatisticsOutcome(DescribeUserOnlineClientStatisticsResult(outcome.result())); + else + return DescribeUserOnlineClientStatisticsOutcome(outcome.error()); +} + +void SmartagClient::describeUserOnlineClientStatisticsAsync(const DescribeUserOnlineClientStatisticsRequest& request, const DescribeUserOnlineClientStatisticsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeUserOnlineClientStatistics(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DescribeUserOnlineClientStatisticsOutcomeCallable SmartagClient::describeUserOnlineClientStatisticsCallable(const DescribeUserOnlineClientStatisticsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeUserOnlineClientStatistics(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::CreateDedicatedLineBackupOutcome SmartagClient::createDedicatedLineBackup(const CreateDedicatedLineBackupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDedicatedLineBackupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDedicatedLineBackupOutcome(CreateDedicatedLineBackupResult(outcome.result())); + else + return CreateDedicatedLineBackupOutcome(outcome.error()); +} + +void SmartagClient::createDedicatedLineBackupAsync(const CreateDedicatedLineBackupRequest& request, const CreateDedicatedLineBackupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDedicatedLineBackup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::CreateDedicatedLineBackupOutcomeCallable SmartagClient::createDedicatedLineBackupCallable(const CreateDedicatedLineBackupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDedicatedLineBackup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DescribeUserFlowStatisticsOutcome SmartagClient::describeUserFlowStatistics(const DescribeUserFlowStatisticsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeUserFlowStatisticsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeUserFlowStatisticsOutcome(DescribeUserFlowStatisticsResult(outcome.result())); + else + return DescribeUserFlowStatisticsOutcome(outcome.error()); +} + +void SmartagClient::describeUserFlowStatisticsAsync(const DescribeUserFlowStatisticsRequest& request, const DescribeUserFlowStatisticsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeUserFlowStatistics(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DescribeUserFlowStatisticsOutcomeCallable SmartagClient::describeUserFlowStatisticsCallable(const DescribeUserFlowStatisticsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeUserFlowStatistics(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::SetSagRouteableAddressOutcome SmartagClient::setSagRouteableAddress(const SetSagRouteableAddressRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetSagRouteableAddressOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetSagRouteableAddressOutcome(SetSagRouteableAddressResult(outcome.result())); + else + return SetSagRouteableAddressOutcome(outcome.error()); +} + +void SmartagClient::setSagRouteableAddressAsync(const SetSagRouteableAddressRequest& request, const SetSagRouteableAddressAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setSagRouteableAddress(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::SetSagRouteableAddressOutcomeCallable SmartagClient::setSagRouteableAddressCallable(const SetSagRouteableAddressRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setSagRouteableAddress(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::ModifyACLOutcome SmartagClient::modifyACL(const ModifyACLRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyACLOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyACLOutcome(ModifyACLResult(outcome.result())); + else + return ModifyACLOutcome(outcome.error()); +} + +void SmartagClient::modifyACLAsync(const ModifyACLRequest& request, const ModifyACLAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyACL(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::ModifyACLOutcomeCallable SmartagClient::modifyACLCallable(const ModifyACLRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyACL(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DescribeSmartAccessGatewayClientUsersOutcome SmartagClient::describeSmartAccessGatewayClientUsers(const DescribeSmartAccessGatewayClientUsersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSmartAccessGatewayClientUsersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSmartAccessGatewayClientUsersOutcome(DescribeSmartAccessGatewayClientUsersResult(outcome.result())); + else + return DescribeSmartAccessGatewayClientUsersOutcome(outcome.error()); +} + +void SmartagClient::describeSmartAccessGatewayClientUsersAsync(const DescribeSmartAccessGatewayClientUsersRequest& request, const DescribeSmartAccessGatewayClientUsersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSmartAccessGatewayClientUsers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DescribeSmartAccessGatewayClientUsersOutcomeCallable SmartagClient::describeSmartAccessGatewayClientUsersCallable(const DescribeSmartAccessGatewayClientUsersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSmartAccessGatewayClientUsers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::GetSmartAccessGatewayUseLimitOutcome SmartagClient::getSmartAccessGatewayUseLimit(const GetSmartAccessGatewayUseLimitRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSmartAccessGatewayUseLimitOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSmartAccessGatewayUseLimitOutcome(GetSmartAccessGatewayUseLimitResult(outcome.result())); + else + return GetSmartAccessGatewayUseLimitOutcome(outcome.error()); +} + +void SmartagClient::getSmartAccessGatewayUseLimitAsync(const GetSmartAccessGatewayUseLimitRequest& request, const GetSmartAccessGatewayUseLimitAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSmartAccessGatewayUseLimit(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::GetSmartAccessGatewayUseLimitOutcomeCallable SmartagClient::getSmartAccessGatewayUseLimitCallable(const GetSmartAccessGatewayUseLimitRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSmartAccessGatewayUseLimit(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::UnicomOrderConfirmOutcome SmartagClient::unicomOrderConfirm(const UnicomOrderConfirmRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UnicomOrderConfirmOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnicomOrderConfirmOutcome(UnicomOrderConfirmResult(outcome.result())); + else + return UnicomOrderConfirmOutcome(outcome.error()); +} + +void SmartagClient::unicomOrderConfirmAsync(const UnicomOrderConfirmRequest& request, const UnicomOrderConfirmAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unicomOrderConfirm(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::UnicomOrderConfirmOutcomeCallable SmartagClient::unicomOrderConfirmCallable(const UnicomOrderConfirmRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unicomOrderConfirm(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DescribeNetworkOptimizationsOutcome SmartagClient::describeNetworkOptimizations(const DescribeNetworkOptimizationsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeNetworkOptimizationsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeNetworkOptimizationsOutcome(DescribeNetworkOptimizationsResult(outcome.result())); + else + return DescribeNetworkOptimizationsOutcome(outcome.error()); +} + +void SmartagClient::describeNetworkOptimizationsAsync(const DescribeNetworkOptimizationsRequest& request, const DescribeNetworkOptimizationsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeNetworkOptimizations(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DescribeNetworkOptimizationsOutcomeCallable SmartagClient::describeNetworkOptimizationsCallable(const DescribeNetworkOptimizationsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeNetworkOptimizations(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} diff --git a/smartag/src/model/ActivateSmartAccessGatewayRequest.cc b/smartag/src/model/ActivateSmartAccessGatewayRequest.cc index 0ef5379d5..dad94e73b 100644 --- a/smartag/src/model/ActivateSmartAccessGatewayRequest.cc +++ b/smartag/src/model/ActivateSmartAccessGatewayRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Smartag::Model::ActivateSmartAccessGatewayRequest; - -ActivateSmartAccessGatewayRequest::ActivateSmartAccessGatewayRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ActivateSmartAccessGateway") -{} - -ActivateSmartAccessGatewayRequest::~ActivateSmartAccessGatewayRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::ActivateSmartAccessGatewayRequest; + +ActivateSmartAccessGatewayRequest::ActivateSmartAccessGatewayRequest() : + RpcServiceRequest("smartag", "2018-03-13", "ActivateSmartAccessGateway") +{} + +ActivateSmartAccessGatewayRequest::~ActivateSmartAccessGatewayRequest() +{} + long ActivateSmartAccessGatewayRequest::getResourceOwnerId()const { return resourceOwnerId_; @@ -33,7 +33,7 @@ long ActivateSmartAccessGatewayRequest::getResourceOwnerId()const void ActivateSmartAccessGatewayRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ActivateSmartAccessGatewayRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string ActivateSmartAccessGatewayRequest::getResourceOwnerAccount()const void ActivateSmartAccessGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ActivateSmartAccessGatewayRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string ActivateSmartAccessGatewayRequest::getRegionId()const void ActivateSmartAccessGatewayRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ActivateSmartAccessGatewayRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string ActivateSmartAccessGatewayRequest::getOwnerAccount()const void ActivateSmartAccessGatewayRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string ActivateSmartAccessGatewayRequest::getSmartAGId()const @@ -77,7 +77,7 @@ std::string ActivateSmartAccessGatewayRequest::getSmartAGId()const void ActivateSmartAccessGatewayRequest::setSmartAGId(const std::string& smartAGId) { smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); + setCoreParameter("SmartAGId", smartAGId); } long ActivateSmartAccessGatewayRequest::getOwnerId()const @@ -88,6 +88,6 @@ long ActivateSmartAccessGatewayRequest::getOwnerId()const void ActivateSmartAccessGatewayRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/smartag/src/model/ActivateSmartAccessGatewayResult.cc b/smartag/src/model/ActivateSmartAccessGatewayResult.cc index eb129d04f..368f2d5a4 100644 --- a/smartag/src/model/ActivateSmartAccessGatewayResult.cc +++ b/smartag/src/model/ActivateSmartAccessGatewayResult.cc @@ -1,45 +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::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -ActivateSmartAccessGatewayResult::ActivateSmartAccessGatewayResult() : - ServiceResult() -{} - -ActivateSmartAccessGatewayResult::ActivateSmartAccessGatewayResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ActivateSmartAccessGatewayResult::~ActivateSmartAccessGatewayResult() -{} - -void ActivateSmartAccessGatewayResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +ActivateSmartAccessGatewayResult::ActivateSmartAccessGatewayResult() : + ServiceResult() +{} + +ActivateSmartAccessGatewayResult::ActivateSmartAccessGatewayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ActivateSmartAccessGatewayResult::~ActivateSmartAccessGatewayResult() +{} + +void ActivateSmartAccessGatewayResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/AddACLRuleRequest.cc b/smartag/src/model/AddACLRuleRequest.cc new file mode 100644 index 000000000..f14d5e51e --- /dev/null +++ b/smartag/src/model/AddACLRuleRequest.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::Smartag::Model::AddACLRuleRequest; + +AddACLRuleRequest::AddACLRuleRequest() : + RpcServiceRequest("smartag", "2018-03-13", "AddACLRule") +{} + +AddACLRuleRequest::~AddACLRuleRequest() +{} + +std::string AddACLRuleRequest::getAclId()const +{ + return aclId_; +} + +void AddACLRuleRequest::setAclId(const std::string& aclId) +{ + aclId_ = aclId; + setCoreParameter("AclId", aclId); +} + +long AddACLRuleRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AddACLRuleRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AddACLRuleRequest::getSourcePortRange()const +{ + return sourcePortRange_; +} + +void AddACLRuleRequest::setSourcePortRange(const std::string& sourcePortRange) +{ + sourcePortRange_ = sourcePortRange; + setCoreParameter("SourcePortRange", sourcePortRange); +} + +std::string AddACLRuleRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void AddACLRuleRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string AddACLRuleRequest::getIpProtocol()const +{ + return ipProtocol_; +} + +void AddACLRuleRequest::setIpProtocol(const std::string& ipProtocol) +{ + ipProtocol_ = ipProtocol; + setCoreParameter("IpProtocol", ipProtocol); +} + +std::string AddACLRuleRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void AddACLRuleRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string AddACLRuleRequest::getSourceCidr()const +{ + return sourceCidr_; +} + +void AddACLRuleRequest::setSourceCidr(const std::string& sourceCidr) +{ + sourceCidr_ = sourceCidr; + setCoreParameter("SourceCidr", sourceCidr); +} + +std::string AddACLRuleRequest::getDescription()const +{ + return description_; +} + +void AddACLRuleRequest::setDescription(const std::string& description) +{ + description_ = description; + setCoreParameter("Description", description); +} + +long AddACLRuleRequest::getOwnerId()const +{ + return ownerId_; +} + +void AddACLRuleRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +int AddACLRuleRequest::getPriority()const +{ + return priority_; +} + +void AddACLRuleRequest::setPriority(int priority) +{ + priority_ = priority; + setCoreParameter("Priority", std::to_string(priority)); +} + +std::string AddACLRuleRequest::getDestCidr()const +{ + return destCidr_; +} + +void AddACLRuleRequest::setDestCidr(const std::string& destCidr) +{ + destCidr_ = destCidr; + setCoreParameter("DestCidr", destCidr); +} + +std::string AddACLRuleRequest::getDestPortRange()const +{ + return destPortRange_; +} + +void AddACLRuleRequest::setDestPortRange(const std::string& destPortRange) +{ + destPortRange_ = destPortRange; + setCoreParameter("DestPortRange", destPortRange); +} + +std::string AddACLRuleRequest::getRegionId()const +{ + return regionId_; +} + +void AddACLRuleRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string AddACLRuleRequest::getDirection()const +{ + return direction_; +} + +void AddACLRuleRequest::setDirection(const std::string& direction) +{ + direction_ = direction; + setCoreParameter("Direction", direction); +} + +std::string AddACLRuleRequest::getPolicy()const +{ + return policy_; +} + +void AddACLRuleRequest::setPolicy(const std::string& policy) +{ + policy_ = policy; + setCoreParameter("Policy", policy); +} + diff --git a/smartag/src/model/AddACLRuleResult.cc b/smartag/src/model/AddACLRuleResult.cc new file mode 100644 index 000000000..0a8af5f73 --- /dev/null +++ b/smartag/src/model/AddACLRuleResult.cc @@ -0,0 +1,129 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +AddACLRuleResult::AddACLRuleResult() : + ServiceResult() +{} + +AddACLRuleResult::AddACLRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddACLRuleResult::~AddACLRuleResult() +{} + +void AddACLRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["AcrId"].isNull()) + acrId_ = value["AcrId"].asString(); + if(!value["AclId"].isNull()) + aclId_ = value["AclId"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["Direction"].isNull()) + direction_ = value["Direction"].asString(); + if(!value["SourceCidr"].isNull()) + sourceCidr_ = value["SourceCidr"].asString(); + if(!value["DestCidr"].isNull()) + destCidr_ = value["DestCidr"].asString(); + if(!value["IpProtocol"].isNull()) + ipProtocol_ = value["IpProtocol"].asString(); + if(!value["SourcePortRange"].isNull()) + sourcePortRange_ = value["SourcePortRange"].asString(); + if(!value["DestPortRange"].isNull()) + destPortRange_ = value["DestPortRange"].asString(); + if(!value["Policy"].isNull()) + policy_ = value["Policy"].asString(); + if(!value["Priority"].isNull()) + priority_ = std::stoi(value["Priority"].asString()); + if(!value["GmtCreate"].isNull()) + gmtCreate_ = std::stol(value["GmtCreate"].asString()); + +} + +std::string AddACLRuleResult::getPolicy()const +{ + return policy_; +} + +long AddACLRuleResult::getGmtCreate()const +{ + return gmtCreate_; +} + +std::string AddACLRuleResult::getDescription()const +{ + return description_; +} + +std::string AddACLRuleResult::getDestCidr()const +{ + return destCidr_; +} + +std::string AddACLRuleResult::getSourcePortRange()const +{ + return sourcePortRange_; +} + +std::string AddACLRuleResult::getSourceCidr()const +{ + return sourceCidr_; +} + +int AddACLRuleResult::getPriority()const +{ + return priority_; +} + +std::string AddACLRuleResult::getAclId()const +{ + return aclId_; +} + +std::string AddACLRuleResult::getAcrId()const +{ + return acrId_; +} + +std::string AddACLRuleResult::getIpProtocol()const +{ + return ipProtocol_; +} + +std::string AddACLRuleResult::getDestPortRange()const +{ + return destPortRange_; +} + +std::string AddACLRuleResult::getDirection()const +{ + return direction_; +} + diff --git a/smartag/src/model/AddNetworkOptimizationSettingRequest.cc b/smartag/src/model/AddNetworkOptimizationSettingRequest.cc new file mode 100644 index 000000000..b48f6805b --- /dev/null +++ b/smartag/src/model/AddNetworkOptimizationSettingRequest.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::Smartag::Model::AddNetworkOptimizationSettingRequest; + +AddNetworkOptimizationSettingRequest::AddNetworkOptimizationSettingRequest() : + RpcServiceRequest("smartag", "2018-03-13", "AddNetworkOptimizationSetting") +{} + +AddNetworkOptimizationSettingRequest::~AddNetworkOptimizationSettingRequest() +{} + +long AddNetworkOptimizationSettingRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AddNetworkOptimizationSettingRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AddNetworkOptimizationSettingRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void AddNetworkOptimizationSettingRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string AddNetworkOptimizationSettingRequest::getRegionId()const +{ + return regionId_; +} + +void AddNetworkOptimizationSettingRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string AddNetworkOptimizationSettingRequest::getNetworkOptId()const +{ + return networkOptId_; +} + +void AddNetworkOptimizationSettingRequest::setNetworkOptId(const std::string& networkOptId) +{ + networkOptId_ = networkOptId; + setCoreParameter("NetworkOptId", networkOptId); +} + +std::string AddNetworkOptimizationSettingRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void AddNetworkOptimizationSettingRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string AddNetworkOptimizationSettingRequest::getDomain()const +{ + return domain_; +} + +void AddNetworkOptimizationSettingRequest::setDomain(const std::string& domain) +{ + domain_ = domain; + setCoreParameter("Domain", domain); +} + +long AddNetworkOptimizationSettingRequest::getOwnerId()const +{ + return ownerId_; +} + +void AddNetworkOptimizationSettingRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string AddNetworkOptimizationSettingRequest::getType()const +{ + return type_; +} + +void AddNetworkOptimizationSettingRequest::setType(const std::string& type) +{ + type_ = type; + setCoreParameter("Type", type); +} + diff --git a/smartag/src/model/AddNetworkOptimizationSettingResult.cc b/smartag/src/model/AddNetworkOptimizationSettingResult.cc new file mode 100644 index 000000000..283eaafb2 --- /dev/null +++ b/smartag/src/model/AddNetworkOptimizationSettingResult.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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +AddNetworkOptimizationSettingResult::AddNetworkOptimizationSettingResult() : + ServiceResult() +{} + +AddNetworkOptimizationSettingResult::AddNetworkOptimizationSettingResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddNetworkOptimizationSettingResult::~AddNetworkOptimizationSettingResult() +{} + +void AddNetworkOptimizationSettingResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/AssociateACLRequest.cc b/smartag/src/model/AssociateACLRequest.cc new file mode 100644 index 000000000..caba88cac --- /dev/null +++ b/smartag/src/model/AssociateACLRequest.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::Smartag::Model::AssociateACLRequest; + +AssociateACLRequest::AssociateACLRequest() : + RpcServiceRequest("smartag", "2018-03-13", "AssociateACL") +{} + +AssociateACLRequest::~AssociateACLRequest() +{} + +std::string AssociateACLRequest::getAclId()const +{ + return aclId_; +} + +void AssociateACLRequest::setAclId(const std::string& aclId) +{ + aclId_ = aclId; + setCoreParameter("AclId", aclId); +} + +long AssociateACLRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AssociateACLRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AssociateACLRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void AssociateACLRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string AssociateACLRequest::getRegionId()const +{ + return regionId_; +} + +void AssociateACLRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string AssociateACLRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void AssociateACLRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string AssociateACLRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void AssociateACLRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setCoreParameter("SmartAGId", smartAGId); +} + +long AssociateACLRequest::getOwnerId()const +{ + return ownerId_; +} + +void AssociateACLRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/smartag/src/model/AssociateACLResult.cc b/smartag/src/model/AssociateACLResult.cc new file mode 100644 index 000000000..4ba4fbc00 --- /dev/null +++ b/smartag/src/model/AssociateACLResult.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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +AssociateACLResult::AssociateACLResult() : + ServiceResult() +{} + +AssociateACLResult::AssociateACLResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AssociateACLResult::~AssociateACLResult() +{} + +void AssociateACLResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/AttachNetworkOptimizationSagsRequest.cc b/smartag/src/model/AttachNetworkOptimizationSagsRequest.cc new file mode 100644 index 000000000..be33718b4 --- /dev/null +++ b/smartag/src/model/AttachNetworkOptimizationSagsRequest.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 + +using AlibabaCloud::Smartag::Model::AttachNetworkOptimizationSagsRequest; + +AttachNetworkOptimizationSagsRequest::AttachNetworkOptimizationSagsRequest() : + RpcServiceRequest("smartag", "2018-03-13", "AttachNetworkOptimizationSags") +{} + +AttachNetworkOptimizationSagsRequest::~AttachNetworkOptimizationSagsRequest() +{} + +long AttachNetworkOptimizationSagsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AttachNetworkOptimizationSagsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AttachNetworkOptimizationSagsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void AttachNetworkOptimizationSagsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string AttachNetworkOptimizationSagsRequest::getRegionId()const +{ + return regionId_; +} + +void AttachNetworkOptimizationSagsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string AttachNetworkOptimizationSagsRequest::getNetworkOptId()const +{ + return networkOptId_; +} + +void AttachNetworkOptimizationSagsRequest::setNetworkOptId(const std::string& networkOptId) +{ + networkOptId_ = networkOptId; + setCoreParameter("NetworkOptId", networkOptId); +} + +std::string AttachNetworkOptimizationSagsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void AttachNetworkOptimizationSagsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::vector AttachNetworkOptimizationSagsRequest::getSmartAGIds()const +{ + return smartAGIds_; +} + +void AttachNetworkOptimizationSagsRequest::setSmartAGIds(const std::vector& smartAGIds) +{ + smartAGIds_ = smartAGIds; + for(int i = 0; i!= smartAGIds.size(); i++) + setCoreParameter("SmartAGIds."+ std::to_string(i), smartAGIds.at(i)); +} + +long AttachNetworkOptimizationSagsRequest::getOwnerId()const +{ + return ownerId_; +} + +void AttachNetworkOptimizationSagsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/smartag/src/model/AttachNetworkOptimizationSagsResult.cc b/smartag/src/model/AttachNetworkOptimizationSagsResult.cc new file mode 100644 index 000000000..dc4a62983 --- /dev/null +++ b/smartag/src/model/AttachNetworkOptimizationSagsResult.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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +AttachNetworkOptimizationSagsResult::AttachNetworkOptimizationSagsResult() : + ServiceResult() +{} + +AttachNetworkOptimizationSagsResult::AttachNetworkOptimizationSagsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AttachNetworkOptimizationSagsResult::~AttachNetworkOptimizationSagsResult() +{} + +void AttachNetworkOptimizationSagsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/BindSmartAccessGatewayRequest.cc b/smartag/src/model/BindSmartAccessGatewayRequest.cc index e3ab8d359..f1269cfcd 100644 --- a/smartag/src/model/BindSmartAccessGatewayRequest.cc +++ b/smartag/src/model/BindSmartAccessGatewayRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Smartag::Model::BindSmartAccessGatewayRequest; - -BindSmartAccessGatewayRequest::BindSmartAccessGatewayRequest() : - RpcServiceRequest("smartag", "2018-03-13", "BindSmartAccessGateway") -{} - -BindSmartAccessGatewayRequest::~BindSmartAccessGatewayRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::BindSmartAccessGatewayRequest; + +BindSmartAccessGatewayRequest::BindSmartAccessGatewayRequest() : + RpcServiceRequest("smartag", "2018-03-13", "BindSmartAccessGateway") +{} + +BindSmartAccessGatewayRequest::~BindSmartAccessGatewayRequest() +{} + long BindSmartAccessGatewayRequest::getResourceOwnerId()const { return resourceOwnerId_; @@ -33,7 +33,7 @@ long BindSmartAccessGatewayRequest::getResourceOwnerId()const void BindSmartAccessGatewayRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string BindSmartAccessGatewayRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string BindSmartAccessGatewayRequest::getResourceOwnerAccount()const void BindSmartAccessGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string BindSmartAccessGatewayRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string BindSmartAccessGatewayRequest::getRegionId()const void BindSmartAccessGatewayRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string BindSmartAccessGatewayRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string BindSmartAccessGatewayRequest::getOwnerAccount()const void BindSmartAccessGatewayRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string BindSmartAccessGatewayRequest::getCcnId()const @@ -77,7 +77,7 @@ std::string BindSmartAccessGatewayRequest::getCcnId()const void BindSmartAccessGatewayRequest::setCcnId(const std::string& ccnId) { ccnId_ = ccnId; - setParameter("CcnId", ccnId); + setCoreParameter("CcnId", ccnId); } std::string BindSmartAccessGatewayRequest::getSmartAGId()const @@ -88,7 +88,7 @@ std::string BindSmartAccessGatewayRequest::getSmartAGId()const void BindSmartAccessGatewayRequest::setSmartAGId(const std::string& smartAGId) { smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); + setCoreParameter("SmartAGId", smartAGId); } long BindSmartAccessGatewayRequest::getOwnerId()const @@ -99,6 +99,6 @@ long BindSmartAccessGatewayRequest::getOwnerId()const void BindSmartAccessGatewayRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/smartag/src/model/BindSmartAccessGatewayResult.cc b/smartag/src/model/BindSmartAccessGatewayResult.cc index 4309193d9..1f660021d 100644 --- a/smartag/src/model/BindSmartAccessGatewayResult.cc +++ b/smartag/src/model/BindSmartAccessGatewayResult.cc @@ -1,45 +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::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -BindSmartAccessGatewayResult::BindSmartAccessGatewayResult() : - ServiceResult() -{} - -BindSmartAccessGatewayResult::BindSmartAccessGatewayResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -BindSmartAccessGatewayResult::~BindSmartAccessGatewayResult() -{} - -void BindSmartAccessGatewayResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +BindSmartAccessGatewayResult::BindSmartAccessGatewayResult() : + ServiceResult() +{} + +BindSmartAccessGatewayResult::BindSmartAccessGatewayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +BindSmartAccessGatewayResult::~BindSmartAccessGatewayResult() +{} + +void BindSmartAccessGatewayResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/ClearSagRouteableAddressRequest.cc b/smartag/src/model/ClearSagRouteableAddressRequest.cc new file mode 100644 index 000000000..a48633b43 --- /dev/null +++ b/smartag/src/model/ClearSagRouteableAddressRequest.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::Smartag::Model::ClearSagRouteableAddressRequest; + +ClearSagRouteableAddressRequest::ClearSagRouteableAddressRequest() : + RpcServiceRequest("smartag", "2018-03-13", "ClearSagRouteableAddress") +{} + +ClearSagRouteableAddressRequest::~ClearSagRouteableAddressRequest() +{} + +std::string ClearSagRouteableAddressRequest::getAccess_key_id()const +{ + return access_key_id_; +} + +void ClearSagRouteableAddressRequest::setAccess_key_id(const std::string& access_key_id) +{ + access_key_id_ = access_key_id; + setCoreParameter("Access_key_id", access_key_id); +} + +long ClearSagRouteableAddressRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ClearSagRouteableAddressRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ClearSagRouteableAddressRequest::getRegionId()const +{ + return regionId_; +} + +void ClearSagRouteableAddressRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ClearSagRouteableAddressRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ClearSagRouteableAddressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ClearSagRouteableAddressRequest::getSagId()const +{ + return sagId_; +} + +void ClearSagRouteableAddressRequest::setSagId(const std::string& sagId) +{ + sagId_ = sagId; + setCoreParameter("SagId", sagId); +} + +std::string ClearSagRouteableAddressRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ClearSagRouteableAddressRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +long ClearSagRouteableAddressRequest::getOwnerId()const +{ + return ownerId_; +} + +void ClearSagRouteableAddressRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/smartag/src/model/ClearSagRouteableAddressResult.cc b/smartag/src/model/ClearSagRouteableAddressResult.cc new file mode 100644 index 000000000..ee9ddfa5e --- /dev/null +++ b/smartag/src/model/ClearSagRouteableAddressResult.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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +ClearSagRouteableAddressResult::ClearSagRouteableAddressResult() : + ServiceResult() +{} + +ClearSagRouteableAddressResult::ClearSagRouteableAddressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ClearSagRouteableAddressResult::~ClearSagRouteableAddressResult() +{} + +void ClearSagRouteableAddressResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/CreateACLRequest.cc b/smartag/src/model/CreateACLRequest.cc new file mode 100644 index 000000000..4436f90a4 --- /dev/null +++ b/smartag/src/model/CreateACLRequest.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 + +using AlibabaCloud::Smartag::Model::CreateACLRequest; + +CreateACLRequest::CreateACLRequest() : + RpcServiceRequest("smartag", "2018-03-13", "CreateACL") +{} + +CreateACLRequest::~CreateACLRequest() +{} + +long CreateACLRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateACLRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateACLRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateACLRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateACLRequest::getRegionId()const +{ + return regionId_; +} + +void CreateACLRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string CreateACLRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateACLRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string CreateACLRequest::getName()const +{ + return name_; +} + +void CreateACLRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + +long CreateACLRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateACLRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/smartag/src/model/CreateACLResult.cc b/smartag/src/model/CreateACLResult.cc new file mode 100644 index 000000000..62a2e3e38 --- /dev/null +++ b/smartag/src/model/CreateACLResult.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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +CreateACLResult::CreateACLResult() : + ServiceResult() +{} + +CreateACLResult::CreateACLResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateACLResult::~CreateACLResult() +{} + +void CreateACLResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["AclId"].isNull()) + aclId_ = value["AclId"].asString(); + +} + +std::string CreateACLResult::getAclId()const +{ + return aclId_; +} + diff --git a/smartag/src/model/CreateCloudConnectNetworkRequest.cc b/smartag/src/model/CreateCloudConnectNetworkRequest.cc index e31e991c9..46a4a71ff 100644 --- a/smartag/src/model/CreateCloudConnectNetworkRequest.cc +++ b/smartag/src/model/CreateCloudConnectNetworkRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Smartag::Model::CreateCloudConnectNetworkRequest; - -CreateCloudConnectNetworkRequest::CreateCloudConnectNetworkRequest() : - RpcServiceRequest("smartag", "2018-03-13", "CreateCloudConnectNetwork") -{} - -CreateCloudConnectNetworkRequest::~CreateCloudConnectNetworkRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::CreateCloudConnectNetworkRequest; + +CreateCloudConnectNetworkRequest::CreateCloudConnectNetworkRequest() : + RpcServiceRequest("smartag", "2018-03-13", "CreateCloudConnectNetwork") +{} + +CreateCloudConnectNetworkRequest::~CreateCloudConnectNetworkRequest() +{} + long CreateCloudConnectNetworkRequest::getResourceOwnerId()const { return resourceOwnerId_; @@ -33,7 +33,7 @@ long CreateCloudConnectNetworkRequest::getResourceOwnerId()const void CreateCloudConnectNetworkRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateCloudConnectNetworkRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string CreateCloudConnectNetworkRequest::getResourceOwnerAccount()const void CreateCloudConnectNetworkRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string CreateCloudConnectNetworkRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string CreateCloudConnectNetworkRequest::getRegionId()const void CreateCloudConnectNetworkRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateCloudConnectNetworkRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string CreateCloudConnectNetworkRequest::getOwnerAccount()const void CreateCloudConnectNetworkRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string CreateCloudConnectNetworkRequest::getName()const @@ -77,7 +77,18 @@ std::string CreateCloudConnectNetworkRequest::getName()const void CreateCloudConnectNetworkRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); +} + +std::string CreateCloudConnectNetworkRequest::getCidrBlock()const +{ + return cidrBlock_; +} + +void CreateCloudConnectNetworkRequest::setCidrBlock(const std::string& cidrBlock) +{ + cidrBlock_ = cidrBlock; + setCoreParameter("CidrBlock", cidrBlock); } std::string CreateCloudConnectNetworkRequest::getDescription()const @@ -88,7 +99,18 @@ std::string CreateCloudConnectNetworkRequest::getDescription()const void CreateCloudConnectNetworkRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); +} + +std::string CreateCloudConnectNetworkRequest::getSnatCidrBlock()const +{ + return snatCidrBlock_; +} + +void CreateCloudConnectNetworkRequest::setSnatCidrBlock(const std::string& snatCidrBlock) +{ + snatCidrBlock_ = snatCidrBlock; + setCoreParameter("SnatCidrBlock", snatCidrBlock); } bool CreateCloudConnectNetworkRequest::getIsDefault()const @@ -99,7 +121,7 @@ bool CreateCloudConnectNetworkRequest::getIsDefault()const void CreateCloudConnectNetworkRequest::setIsDefault(bool isDefault) { isDefault_ = isDefault; - setParameter("IsDefault", std::to_string(isDefault)); + setCoreParameter("IsDefault", isDefault ? "true" : "false"); } long CreateCloudConnectNetworkRequest::getOwnerId()const @@ -110,6 +132,6 @@ long CreateCloudConnectNetworkRequest::getOwnerId()const void CreateCloudConnectNetworkRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/smartag/src/model/CreateCloudConnectNetworkResult.cc b/smartag/src/model/CreateCloudConnectNetworkResult.cc index aa5bdfcb9..162e6ae9c 100644 --- a/smartag/src/model/CreateCloudConnectNetworkResult.cc +++ b/smartag/src/model/CreateCloudConnectNetworkResult.cc @@ -1,45 +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::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -CreateCloudConnectNetworkResult::CreateCloudConnectNetworkResult() : - ServiceResult() -{} - -CreateCloudConnectNetworkResult::CreateCloudConnectNetworkResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateCloudConnectNetworkResult::~CreateCloudConnectNetworkResult() -{} - -void CreateCloudConnectNetworkResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +CreateCloudConnectNetworkResult::CreateCloudConnectNetworkResult() : + ServiceResult() +{} + +CreateCloudConnectNetworkResult::CreateCloudConnectNetworkResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateCloudConnectNetworkResult::~CreateCloudConnectNetworkResult() +{} + +void CreateCloudConnectNetworkResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); if(!value["CcnId"].isNull()) ccnId_ = value["CcnId"].asString(); if(!value["Name"].isNull()) @@ -48,9 +48,13 @@ void CreateCloudConnectNetworkResult::parse(const std::string &payload) status_ = value["Status"].asString(); if(!value["Description"].isNull()) description_ = value["Description"].asString(); - -} - + if(!value["SnatCidrBlock"].isNull()) + snatCidrBlock_ = value["SnatCidrBlock"].asString(); + if(!value["CidrBlock"].isNull()) + cidrBlock_ = value["CidrBlock"].asString(); + +} + std::string CreateCloudConnectNetworkResult::getStatus()const { return status_; @@ -66,6 +70,16 @@ std::string CreateCloudConnectNetworkResult::getCcnId()const return ccnId_; } +std::string CreateCloudConnectNetworkResult::getCidrBlock()const +{ + return cidrBlock_; +} + +std::string CreateCloudConnectNetworkResult::getSnatCidrBlock()const +{ + return snatCidrBlock_; +} + std::string CreateCloudConnectNetworkResult::getName()const { return name_; diff --git a/smartag/src/model/CreateDedicatedLineBackupRequest.cc b/smartag/src/model/CreateDedicatedLineBackupRequest.cc index ac53dd68f..6558281bd 100644 --- a/smartag/src/model/CreateDedicatedLineBackupRequest.cc +++ b/smartag/src/model/CreateDedicatedLineBackupRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Smartag::Model::CreateDedicatedLineBackupRequest; - -CreateDedicatedLineBackupRequest::CreateDedicatedLineBackupRequest() : - RpcServiceRequest("smartag", "2018-03-13", "CreateDedicatedLineBackup") -{} - -CreateDedicatedLineBackupRequest::~CreateDedicatedLineBackupRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::CreateDedicatedLineBackupRequest; + +CreateDedicatedLineBackupRequest::CreateDedicatedLineBackupRequest() : + RpcServiceRequest("smartag", "2018-03-13", "CreateDedicatedLineBackup") +{} + +CreateDedicatedLineBackupRequest::~CreateDedicatedLineBackupRequest() +{} + long CreateDedicatedLineBackupRequest::getResourceOwnerId()const { return resourceOwnerId_; @@ -33,7 +33,7 @@ long CreateDedicatedLineBackupRequest::getResourceOwnerId()const void CreateDedicatedLineBackupRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateDedicatedLineBackupRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string CreateDedicatedLineBackupRequest::getResourceOwnerAccount()const void CreateDedicatedLineBackupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string CreateDedicatedLineBackupRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string CreateDedicatedLineBackupRequest::getRegionId()const void CreateDedicatedLineBackupRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateDedicatedLineBackupRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string CreateDedicatedLineBackupRequest::getOwnerAccount()const void CreateDedicatedLineBackupRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string CreateDedicatedLineBackupRequest::getSmartAGId()const @@ -77,7 +77,7 @@ std::string CreateDedicatedLineBackupRequest::getSmartAGId()const void CreateDedicatedLineBackupRequest::setSmartAGId(const std::string& smartAGId) { smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); + setCoreParameter("SmartAGId", smartAGId); } long CreateDedicatedLineBackupRequest::getOwnerId()const @@ -88,7 +88,7 @@ long CreateDedicatedLineBackupRequest::getOwnerId()const void CreateDedicatedLineBackupRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string CreateDedicatedLineBackupRequest::getVbrId()const @@ -99,7 +99,7 @@ std::string CreateDedicatedLineBackupRequest::getVbrId()const void CreateDedicatedLineBackupRequest::setVbrId(const std::string& vbrId) { vbrId_ = vbrId; - setParameter("VbrId", vbrId); + setCoreParameter("VbrId", vbrId); } std::string CreateDedicatedLineBackupRequest::getVbrRegionId()const @@ -110,6 +110,6 @@ std::string CreateDedicatedLineBackupRequest::getVbrRegionId()const void CreateDedicatedLineBackupRequest::setVbrRegionId(const std::string& vbrRegionId) { vbrRegionId_ = vbrRegionId; - setParameter("VbrRegionId", vbrRegionId); + setCoreParameter("VbrRegionId", vbrRegionId); } diff --git a/smartag/src/model/CreateDedicatedLineBackupResult.cc b/smartag/src/model/CreateDedicatedLineBackupResult.cc index 6340af5b7..df5e7ed4f 100644 --- a/smartag/src/model/CreateDedicatedLineBackupResult.cc +++ b/smartag/src/model/CreateDedicatedLineBackupResult.cc @@ -1,45 +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::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -CreateDedicatedLineBackupResult::CreateDedicatedLineBackupResult() : - ServiceResult() -{} - -CreateDedicatedLineBackupResult::CreateDedicatedLineBackupResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateDedicatedLineBackupResult::~CreateDedicatedLineBackupResult() -{} - -void CreateDedicatedLineBackupResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +CreateDedicatedLineBackupResult::CreateDedicatedLineBackupResult() : + ServiceResult() +{} + +CreateDedicatedLineBackupResult::CreateDedicatedLineBackupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDedicatedLineBackupResult::~CreateDedicatedLineBackupResult() +{} + +void CreateDedicatedLineBackupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/CreateNetworkOptimizationRequest.cc b/smartag/src/model/CreateNetworkOptimizationRequest.cc new file mode 100644 index 000000000..e401eb88c --- /dev/null +++ b/smartag/src/model/CreateNetworkOptimizationRequest.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::Smartag::Model::CreateNetworkOptimizationRequest; + +CreateNetworkOptimizationRequest::CreateNetworkOptimizationRequest() : + RpcServiceRequest("smartag", "2018-03-13", "CreateNetworkOptimization") +{} + +CreateNetworkOptimizationRequest::~CreateNetworkOptimizationRequest() +{} + +long CreateNetworkOptimizationRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateNetworkOptimizationRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateNetworkOptimizationRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateNetworkOptimizationRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateNetworkOptimizationRequest::getRegionId()const +{ + return regionId_; +} + +void CreateNetworkOptimizationRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string CreateNetworkOptimizationRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateNetworkOptimizationRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string CreateNetworkOptimizationRequest::getName()const +{ + return name_; +} + +void CreateNetworkOptimizationRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + +std::string CreateNetworkOptimizationRequest::getCcnId()const +{ + return ccnId_; +} + +void CreateNetworkOptimizationRequest::setCcnId(const std::string& ccnId) +{ + ccnId_ = ccnId; + setCoreParameter("CcnId", ccnId); +} + +long CreateNetworkOptimizationRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateNetworkOptimizationRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/smartag/src/model/CreateNetworkOptimizationResult.cc b/smartag/src/model/CreateNetworkOptimizationResult.cc new file mode 100644 index 000000000..7e029c476 --- /dev/null +++ b/smartag/src/model/CreateNetworkOptimizationResult.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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +CreateNetworkOptimizationResult::CreateNetworkOptimizationResult() : + ServiceResult() +{} + +CreateNetworkOptimizationResult::CreateNetworkOptimizationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateNetworkOptimizationResult::~CreateNetworkOptimizationResult() +{} + +void CreateNetworkOptimizationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["NetworkOptId"].isNull()) + networkOptId_ = value["NetworkOptId"].asString(); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); + if(!value["State"].isNull()) + state_ = value["State"].asString(); + +} + +std::string CreateNetworkOptimizationResult::getState()const +{ + return state_; +} + +std::string CreateNetworkOptimizationResult::getNetworkOptId()const +{ + return networkOptId_; +} + +std::string CreateNetworkOptimizationResult::getName()const +{ + return name_; +} + diff --git a/smartag/src/model/CreateSAGLinkLevelHaRequest.cc b/smartag/src/model/CreateSAGLinkLevelHaRequest.cc new file mode 100644 index 000000000..af4da0426 --- /dev/null +++ b/smartag/src/model/CreateSAGLinkLevelHaRequest.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::Smartag::Model::CreateSAGLinkLevelHaRequest; + +CreateSAGLinkLevelHaRequest::CreateSAGLinkLevelHaRequest() : + RpcServiceRequest("smartag", "2018-03-13", "CreateSAGLinkLevelHa") +{} + +CreateSAGLinkLevelHaRequest::~CreateSAGLinkLevelHaRequest() +{} + +long CreateSAGLinkLevelHaRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateSAGLinkLevelHaRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateSAGLinkLevelHaRequest::getBackupLinkId()const +{ + return backupLinkId_; +} + +void CreateSAGLinkLevelHaRequest::setBackupLinkId(const std::string& backupLinkId) +{ + backupLinkId_ = backupLinkId; + setCoreParameter("BackupLinkId", backupLinkId); +} + +std::string CreateSAGLinkLevelHaRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateSAGLinkLevelHaRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateSAGLinkLevelHaRequest::getHaType()const +{ + return haType_; +} + +void CreateSAGLinkLevelHaRequest::setHaType(const std::string& haType) +{ + haType_ = haType; + setCoreParameter("HaType", haType); +} + +std::string CreateSAGLinkLevelHaRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateSAGLinkLevelHaRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string CreateSAGLinkLevelHaRequest::getMainLinkRegionId()const +{ + return mainLinkRegionId_; +} + +void CreateSAGLinkLevelHaRequest::setMainLinkRegionId(const std::string& mainLinkRegionId) +{ + mainLinkRegionId_ = mainLinkRegionId; + setCoreParameter("MainLinkRegionId", mainLinkRegionId); +} + +std::string CreateSAGLinkLevelHaRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void CreateSAGLinkLevelHaRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setCoreParameter("SmartAGId", smartAGId); +} + +long CreateSAGLinkLevelHaRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateSAGLinkLevelHaRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateSAGLinkLevelHaRequest::getMainLinkId()const +{ + return mainLinkId_; +} + +void CreateSAGLinkLevelHaRequest::setMainLinkId(const std::string& mainLinkId) +{ + mainLinkId_ = mainLinkId; + setCoreParameter("MainLinkId", mainLinkId); +} + +std::string CreateSAGLinkLevelHaRequest::getBackupLinkRegionId()const +{ + return backupLinkRegionId_; +} + +void CreateSAGLinkLevelHaRequest::setBackupLinkRegionId(const std::string& backupLinkRegionId) +{ + backupLinkRegionId_ = backupLinkRegionId; + setCoreParameter("BackupLinkRegionId", backupLinkRegionId); +} + diff --git a/smartag/src/model/CreateSAGLinkLevelHaResult.cc b/smartag/src/model/CreateSAGLinkLevelHaResult.cc new file mode 100644 index 000000000..8206286ef --- /dev/null +++ b/smartag/src/model/CreateSAGLinkLevelHaResult.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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +CreateSAGLinkLevelHaResult::CreateSAGLinkLevelHaResult() : + ServiceResult() +{} + +CreateSAGLinkLevelHaResult::CreateSAGLinkLevelHaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateSAGLinkLevelHaResult::~CreateSAGLinkLevelHaResult() +{} + +void CreateSAGLinkLevelHaResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/CreateSmartAccessGatewayClientUserRequest.cc b/smartag/src/model/CreateSmartAccessGatewayClientUserRequest.cc new file mode 100644 index 000000000..8f8efa170 --- /dev/null +++ b/smartag/src/model/CreateSmartAccessGatewayClientUserRequest.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::Smartag::Model::CreateSmartAccessGatewayClientUserRequest; + +CreateSmartAccessGatewayClientUserRequest::CreateSmartAccessGatewayClientUserRequest() : + RpcServiceRequest("smartag", "2018-03-13", "CreateSmartAccessGatewayClientUser") +{} + +CreateSmartAccessGatewayClientUserRequest::~CreateSmartAccessGatewayClientUserRequest() +{} + +long CreateSmartAccessGatewayClientUserRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateSmartAccessGatewayClientUserRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateSmartAccessGatewayClientUserRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateSmartAccessGatewayClientUserRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateSmartAccessGatewayClientUserRequest::getRegionId()const +{ + return regionId_; +} + +void CreateSmartAccessGatewayClientUserRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +long CreateSmartAccessGatewayClientUserRequest::getBandwidth()const +{ + return bandwidth_; +} + +void CreateSmartAccessGatewayClientUserRequest::setBandwidth(long bandwidth) +{ + bandwidth_ = bandwidth; + setCoreParameter("Bandwidth", std::to_string(bandwidth)); +} + +std::string CreateSmartAccessGatewayClientUserRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateSmartAccessGatewayClientUserRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string CreateSmartAccessGatewayClientUserRequest::getClientIp()const +{ + return clientIp_; +} + +void CreateSmartAccessGatewayClientUserRequest::setClientIp(const std::string& clientIp) +{ + clientIp_ = clientIp; + setCoreParameter("ClientIp", clientIp); +} + +std::string CreateSmartAccessGatewayClientUserRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void CreateSmartAccessGatewayClientUserRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setCoreParameter("SmartAGId", smartAGId); +} + +std::string CreateSmartAccessGatewayClientUserRequest::getUserMail()const +{ + return userMail_; +} + +void CreateSmartAccessGatewayClientUserRequest::setUserMail(const std::string& userMail) +{ + userMail_ = userMail; + setCoreParameter("UserMail", userMail); +} + +long CreateSmartAccessGatewayClientUserRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateSmartAccessGatewayClientUserRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateSmartAccessGatewayClientUserRequest::getUserName()const +{ + return userName_; +} + +void CreateSmartAccessGatewayClientUserRequest::setUserName(const std::string& userName) +{ + userName_ = userName; + setCoreParameter("UserName", userName); +} + diff --git a/smartag/src/model/CreateSmartAccessGatewayClientUserResult.cc b/smartag/src/model/CreateSmartAccessGatewayClientUserResult.cc new file mode 100644 index 000000000..de09fe0d6 --- /dev/null +++ b/smartag/src/model/CreateSmartAccessGatewayClientUserResult.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +CreateSmartAccessGatewayClientUserResult::CreateSmartAccessGatewayClientUserResult() : + ServiceResult() +{} + +CreateSmartAccessGatewayClientUserResult::CreateSmartAccessGatewayClientUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateSmartAccessGatewayClientUserResult::~CreateSmartAccessGatewayClientUserResult() +{} + +void CreateSmartAccessGatewayClientUserResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["ClientIp"].isNull()) + clientIp_ = value["ClientIp"].asString(); + if(!value["UserMail"].isNull()) + userMail_ = value["UserMail"].asString(); + if(!value["UserName"].isNull()) + userName_ = value["UserName"].asString(); + if(!value["Bandwidth"].isNull()) + bandwidth_ = std::stoi(value["Bandwidth"].asString()); + +} + +std::string CreateSmartAccessGatewayClientUserResult::getUserName()const +{ + return userName_; +} + +std::string CreateSmartAccessGatewayClientUserResult::getUserMail()const +{ + return userMail_; +} + +int CreateSmartAccessGatewayClientUserResult::getBandwidth()const +{ + return bandwidth_; +} + +std::string CreateSmartAccessGatewayClientUserResult::getClientIp()const +{ + return clientIp_; +} + diff --git a/smartag/src/model/CreateSmartAccessGatewayRequest.cc b/smartag/src/model/CreateSmartAccessGatewayRequest.cc index ba9d436eb..fcb2ef52c 100644 --- a/smartag/src/model/CreateSmartAccessGatewayRequest.cc +++ b/smartag/src/model/CreateSmartAccessGatewayRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Smartag::Model::CreateSmartAccessGatewayRequest; - -CreateSmartAccessGatewayRequest::CreateSmartAccessGatewayRequest() : - RpcServiceRequest("smartag", "2018-03-13", "CreateSmartAccessGateway") -{} - -CreateSmartAccessGatewayRequest::~CreateSmartAccessGatewayRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::CreateSmartAccessGatewayRequest; + +CreateSmartAccessGatewayRequest::CreateSmartAccessGatewayRequest() : + RpcServiceRequest("smartag", "2018-03-13", "CreateSmartAccessGateway") +{} + +CreateSmartAccessGatewayRequest::~CreateSmartAccessGatewayRequest() +{} + int CreateSmartAccessGatewayRequest::getMaxBandWidth()const { return maxBandWidth_; @@ -33,7 +33,7 @@ int CreateSmartAccessGatewayRequest::getMaxBandWidth()const void CreateSmartAccessGatewayRequest::setMaxBandWidth(int maxBandWidth) { maxBandWidth_ = maxBandWidth; - setParameter("MaxBandWidth", std::to_string(maxBandWidth)); + setCoreParameter("MaxBandWidth", std::to_string(maxBandWidth)); } long CreateSmartAccessGatewayRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long CreateSmartAccessGatewayRequest::getResourceOwnerId()const void CreateSmartAccessGatewayRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateSmartAccessGatewayRequest::getDescription()const @@ -55,7 +55,7 @@ std::string CreateSmartAccessGatewayRequest::getDescription()const void CreateSmartAccessGatewayRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } std::string CreateSmartAccessGatewayRequest::getReceiverTown()const @@ -66,7 +66,7 @@ std::string CreateSmartAccessGatewayRequest::getReceiverTown()const void CreateSmartAccessGatewayRequest::setReceiverTown(const std::string& receiverTown) { receiverTown_ = receiverTown; - setParameter("ReceiverTown", receiverTown); + setCoreParameter("ReceiverTown", receiverTown); } std::string CreateSmartAccessGatewayRequest::getReceiverDistrict()const @@ -77,7 +77,7 @@ std::string CreateSmartAccessGatewayRequest::getReceiverDistrict()const void CreateSmartAccessGatewayRequest::setReceiverDistrict(const std::string& receiverDistrict) { receiverDistrict_ = receiverDistrict; - setParameter("ReceiverDistrict", receiverDistrict); + setCoreParameter("ReceiverDistrict", receiverDistrict); } std::string CreateSmartAccessGatewayRequest::getRegionId()const @@ -88,7 +88,18 @@ std::string CreateSmartAccessGatewayRequest::getRegionId()const void CreateSmartAccessGatewayRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); +} + +int CreateSmartAccessGatewayRequest::getUserCount()const +{ + return userCount_; +} + +void CreateSmartAccessGatewayRequest::setUserCount(int userCount) +{ + userCount_ = userCount; + setCoreParameter("UserCount", std::to_string(userCount)); } std::string CreateSmartAccessGatewayRequest::getReceiverAddress()const @@ -99,7 +110,18 @@ std::string CreateSmartAccessGatewayRequest::getReceiverAddress()const void CreateSmartAccessGatewayRequest::setReceiverAddress(const std::string& receiverAddress) { receiverAddress_ = receiverAddress; - setParameter("ReceiverAddress", receiverAddress); + setCoreParameter("ReceiverAddress", receiverAddress); +} + +std::string CreateSmartAccessGatewayRequest::getInstanceType()const +{ + return instanceType_; +} + +void CreateSmartAccessGatewayRequest::setInstanceType(const std::string& instanceType) +{ + instanceType_ = instanceType; + setCoreParameter("InstanceType", instanceType); } std::string CreateSmartAccessGatewayRequest::getBuyerMessage()const @@ -110,7 +132,7 @@ std::string CreateSmartAccessGatewayRequest::getBuyerMessage()const void CreateSmartAccessGatewayRequest::setBuyerMessage(const std::string& buyerMessage) { buyerMessage_ = buyerMessage; - setParameter("BuyerMessage", buyerMessage); + setCoreParameter("BuyerMessage", buyerMessage); } std::string CreateSmartAccessGatewayRequest::getHardWareSpec()const @@ -121,7 +143,7 @@ std::string CreateSmartAccessGatewayRequest::getHardWareSpec()const void CreateSmartAccessGatewayRequest::setHardWareSpec(const std::string& hardWareSpec) { hardWareSpec_ = hardWareSpec; - setParameter("HardWareSpec", hardWareSpec); + setCoreParameter("HardWareSpec", hardWareSpec); } std::string CreateSmartAccessGatewayRequest::getReceiverEmail()const @@ -132,7 +154,7 @@ std::string CreateSmartAccessGatewayRequest::getReceiverEmail()const void CreateSmartAccessGatewayRequest::setReceiverEmail(const std::string& receiverEmail) { receiverEmail_ = receiverEmail; - setParameter("ReceiverEmail", receiverEmail); + setCoreParameter("ReceiverEmail", receiverEmail); } std::string CreateSmartAccessGatewayRequest::getReceiverState()const @@ -143,7 +165,7 @@ std::string CreateSmartAccessGatewayRequest::getReceiverState()const void CreateSmartAccessGatewayRequest::setReceiverState(const std::string& receiverState) { receiverState_ = receiverState; - setParameter("ReceiverState", receiverState); + setCoreParameter("ReceiverState", receiverState); } std::string CreateSmartAccessGatewayRequest::getReceiverCity()const @@ -154,7 +176,7 @@ std::string CreateSmartAccessGatewayRequest::getReceiverCity()const void CreateSmartAccessGatewayRequest::setReceiverCity(const std::string& receiverCity) { receiverCity_ = receiverCity; - setParameter("ReceiverCity", receiverCity); + setCoreParameter("ReceiverCity", receiverCity); } int CreateSmartAccessGatewayRequest::getPeriod()const @@ -165,7 +187,7 @@ int CreateSmartAccessGatewayRequest::getPeriod()const void CreateSmartAccessGatewayRequest::setPeriod(int period) { period_ = period; - setParameter("Period", std::to_string(period)); + setCoreParameter("Period", std::to_string(period)); } bool CreateSmartAccessGatewayRequest::getAutoPay()const @@ -176,7 +198,7 @@ bool CreateSmartAccessGatewayRequest::getAutoPay()const void CreateSmartAccessGatewayRequest::setAutoPay(bool autoPay) { autoPay_ = autoPay; - setParameter("AutoPay", std::to_string(autoPay)); + setCoreParameter("AutoPay", autoPay ? "true" : "false"); } std::string CreateSmartAccessGatewayRequest::getReceiverMobile()const @@ -187,7 +209,7 @@ std::string CreateSmartAccessGatewayRequest::getReceiverMobile()const void CreateSmartAccessGatewayRequest::setReceiverMobile(const std::string& receiverMobile) { receiverMobile_ = receiverMobile; - setParameter("ReceiverMobile", receiverMobile); + setCoreParameter("ReceiverMobile", receiverMobile); } std::string CreateSmartAccessGatewayRequest::getResourceOwnerAccount()const @@ -198,7 +220,7 @@ std::string CreateSmartAccessGatewayRequest::getResourceOwnerAccount()const void CreateSmartAccessGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string CreateSmartAccessGatewayRequest::getOwnerAccount()const @@ -209,7 +231,7 @@ std::string CreateSmartAccessGatewayRequest::getOwnerAccount()const void CreateSmartAccessGatewayRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long CreateSmartAccessGatewayRequest::getOwnerId()const @@ -220,7 +242,7 @@ long CreateSmartAccessGatewayRequest::getOwnerId()const void CreateSmartAccessGatewayRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string CreateSmartAccessGatewayRequest::getReceiverPhone()const @@ -231,7 +253,7 @@ std::string CreateSmartAccessGatewayRequest::getReceiverPhone()const void CreateSmartAccessGatewayRequest::setReceiverPhone(const std::string& receiverPhone) { receiverPhone_ = receiverPhone; - setParameter("ReceiverPhone", receiverPhone); + setCoreParameter("ReceiverPhone", receiverPhone); } std::string CreateSmartAccessGatewayRequest::getReceiverName()const @@ -242,7 +264,7 @@ std::string CreateSmartAccessGatewayRequest::getReceiverName()const void CreateSmartAccessGatewayRequest::setReceiverName(const std::string& receiverName) { receiverName_ = receiverName; - setParameter("ReceiverName", receiverName); + setCoreParameter("ReceiverName", receiverName); } std::string CreateSmartAccessGatewayRequest::getHaType()const @@ -253,7 +275,7 @@ std::string CreateSmartAccessGatewayRequest::getHaType()const void CreateSmartAccessGatewayRequest::setHaType(const std::string& haType) { haType_ = haType; - setParameter("HaType", haType); + setCoreParameter("HaType", haType); } std::string CreateSmartAccessGatewayRequest::getName()const @@ -264,7 +286,7 @@ std::string CreateSmartAccessGatewayRequest::getName()const void CreateSmartAccessGatewayRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string CreateSmartAccessGatewayRequest::getReceiverCountry()const @@ -275,7 +297,7 @@ std::string CreateSmartAccessGatewayRequest::getReceiverCountry()const void CreateSmartAccessGatewayRequest::setReceiverCountry(const std::string& receiverCountry) { receiverCountry_ = receiverCountry; - setParameter("ReceiverCountry", receiverCountry); + setCoreParameter("ReceiverCountry", receiverCountry); } std::string CreateSmartAccessGatewayRequest::getChargeType()const @@ -286,7 +308,18 @@ std::string CreateSmartAccessGatewayRequest::getChargeType()const void CreateSmartAccessGatewayRequest::setChargeType(const std::string& chargeType) { chargeType_ = chargeType; - setParameter("ChargeType", chargeType); + setCoreParameter("ChargeType", chargeType); +} + +long CreateSmartAccessGatewayRequest::getDataPlan()const +{ + return dataPlan_; +} + +void CreateSmartAccessGatewayRequest::setDataPlan(long dataPlan) +{ + dataPlan_ = dataPlan; + setCoreParameter("DataPlan", std::to_string(dataPlan)); } std::string CreateSmartAccessGatewayRequest::getReceiverZip()const @@ -297,6 +330,6 @@ std::string CreateSmartAccessGatewayRequest::getReceiverZip()const void CreateSmartAccessGatewayRequest::setReceiverZip(const std::string& receiverZip) { receiverZip_ = receiverZip; - setParameter("ReceiverZip", receiverZip); + setCoreParameter("ReceiverZip", receiverZip); } diff --git a/smartag/src/model/CreateSmartAccessGatewayResult.cc b/smartag/src/model/CreateSmartAccessGatewayResult.cc index b3eb439ff..4f8fd4ad0 100644 --- a/smartag/src/model/CreateSmartAccessGatewayResult.cc +++ b/smartag/src/model/CreateSmartAccessGatewayResult.cc @@ -1,45 +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::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -CreateSmartAccessGatewayResult::CreateSmartAccessGatewayResult() : - ServiceResult() -{} - -CreateSmartAccessGatewayResult::CreateSmartAccessGatewayResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateSmartAccessGatewayResult::~CreateSmartAccessGatewayResult() -{} - -void CreateSmartAccessGatewayResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +CreateSmartAccessGatewayResult::CreateSmartAccessGatewayResult() : + ServiceResult() +{} + +CreateSmartAccessGatewayResult::CreateSmartAccessGatewayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateSmartAccessGatewayResult::~CreateSmartAccessGatewayResult() +{} + +void CreateSmartAccessGatewayResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); if(!value["SmartAGId"].isNull()) smartAGId_ = value["SmartAGId"].asString(); if(!value["Name"].isNull()) @@ -48,9 +48,9 @@ void CreateSmartAccessGatewayResult::parse(const std::string &payload) orderId_ = value["OrderId"].asString(); if(!value["Description"].isNull()) description_ = value["Description"].asString(); - -} - + +} + std::string CreateSmartAccessGatewayResult::getDescription()const { return description_; diff --git a/smartag/src/model/CreateSmartAccessGatewaySoftwareRequest.cc b/smartag/src/model/CreateSmartAccessGatewaySoftwareRequest.cc new file mode 100644 index 000000000..aad500f6d --- /dev/null +++ b/smartag/src/model/CreateSmartAccessGatewaySoftwareRequest.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::Smartag::Model::CreateSmartAccessGatewaySoftwareRequest; + +CreateSmartAccessGatewaySoftwareRequest::CreateSmartAccessGatewaySoftwareRequest() : + RpcServiceRequest("smartag", "2018-03-13", "CreateSmartAccessGatewaySoftware") +{} + +CreateSmartAccessGatewaySoftwareRequest::~CreateSmartAccessGatewaySoftwareRequest() +{} + +long CreateSmartAccessGatewaySoftwareRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateSmartAccessGatewaySoftwareRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int CreateSmartAccessGatewaySoftwareRequest::getPeriod()const +{ + return period_; +} + +void CreateSmartAccessGatewaySoftwareRequest::setPeriod(int period) +{ + period_ = period; + setCoreParameter("Period", std::to_string(period)); +} + +bool CreateSmartAccessGatewaySoftwareRequest::getAutoPay()const +{ + return autoPay_; +} + +void CreateSmartAccessGatewaySoftwareRequest::setAutoPay(bool autoPay) +{ + autoPay_ = autoPay; + setCoreParameter("AutoPay", autoPay ? "true" : "false"); +} + +std::string CreateSmartAccessGatewaySoftwareRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateSmartAccessGatewaySoftwareRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateSmartAccessGatewaySoftwareRequest::getRegionId()const +{ + return regionId_; +} + +void CreateSmartAccessGatewaySoftwareRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string CreateSmartAccessGatewaySoftwareRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateSmartAccessGatewaySoftwareRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +int CreateSmartAccessGatewaySoftwareRequest::getUserCount()const +{ + return userCount_; +} + +void CreateSmartAccessGatewaySoftwareRequest::setUserCount(int userCount) +{ + userCount_ = userCount; + setCoreParameter("UserCount", std::to_string(userCount)); +} + +std::string CreateSmartAccessGatewaySoftwareRequest::getChargeType()const +{ + return chargeType_; +} + +void CreateSmartAccessGatewaySoftwareRequest::setChargeType(const std::string& chargeType) +{ + chargeType_ = chargeType; + setCoreParameter("ChargeType", chargeType); +} + +long CreateSmartAccessGatewaySoftwareRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateSmartAccessGatewaySoftwareRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +long CreateSmartAccessGatewaySoftwareRequest::getDataPlan()const +{ + return dataPlan_; +} + +void CreateSmartAccessGatewaySoftwareRequest::setDataPlan(long dataPlan) +{ + dataPlan_ = dataPlan; + setCoreParameter("DataPlan", std::to_string(dataPlan)); +} + diff --git a/smartag/src/model/CreateSmartAccessGatewaySoftwareResult.cc b/smartag/src/model/CreateSmartAccessGatewaySoftwareResult.cc new file mode 100644 index 000000000..8dd75dccc --- /dev/null +++ b/smartag/src/model/CreateSmartAccessGatewaySoftwareResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +CreateSmartAccessGatewaySoftwareResult::CreateSmartAccessGatewaySoftwareResult() : + ServiceResult() +{} + +CreateSmartAccessGatewaySoftwareResult::CreateSmartAccessGatewaySoftwareResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateSmartAccessGatewaySoftwareResult::~CreateSmartAccessGatewaySoftwareResult() +{} + +void CreateSmartAccessGatewaySoftwareResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["SmartAGId"].isNull()) + smartAGId_ = value["SmartAGId"].asString(); + if(!value["OrderId"].isNull()) + orderId_ = value["OrderId"].asString(); + +} + +std::string CreateSmartAccessGatewaySoftwareResult::getSmartAGId()const +{ + return smartAGId_; +} + +std::string CreateSmartAccessGatewaySoftwareResult::getOrderId()const +{ + return orderId_; +} + diff --git a/smartag/src/model/DeleteACLRequest.cc b/smartag/src/model/DeleteACLRequest.cc new file mode 100644 index 000000000..23578858f --- /dev/null +++ b/smartag/src/model/DeleteACLRequest.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 + +using AlibabaCloud::Smartag::Model::DeleteACLRequest; + +DeleteACLRequest::DeleteACLRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DeleteACL") +{} + +DeleteACLRequest::~DeleteACLRequest() +{} + +std::string DeleteACLRequest::getAclId()const +{ + return aclId_; +} + +void DeleteACLRequest::setAclId(const std::string& aclId) +{ + aclId_ = aclId; + setCoreParameter("AclId", aclId); +} + +long DeleteACLRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteACLRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteACLRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteACLRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteACLRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteACLRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DeleteACLRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteACLRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +long DeleteACLRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteACLRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/smartag/src/model/DeleteACLResult.cc b/smartag/src/model/DeleteACLResult.cc new file mode 100644 index 000000000..d9afa09af --- /dev/null +++ b/smartag/src/model/DeleteACLResult.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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DeleteACLResult::DeleteACLResult() : + ServiceResult() +{} + +DeleteACLResult::DeleteACLResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteACLResult::~DeleteACLResult() +{} + +void DeleteACLResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/DeleteACLRuleRequest.cc b/smartag/src/model/DeleteACLRuleRequest.cc new file mode 100644 index 000000000..43b943b6f --- /dev/null +++ b/smartag/src/model/DeleteACLRuleRequest.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::Smartag::Model::DeleteACLRuleRequest; + +DeleteACLRuleRequest::DeleteACLRuleRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DeleteACLRule") +{} + +DeleteACLRuleRequest::~DeleteACLRuleRequest() +{} + +std::string DeleteACLRuleRequest::getAclId()const +{ + return aclId_; +} + +void DeleteACLRuleRequest::setAclId(const std::string& aclId) +{ + aclId_ = aclId; + setCoreParameter("AclId", aclId); +} + +long DeleteACLRuleRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteACLRuleRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteACLRuleRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteACLRuleRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteACLRuleRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteACLRuleRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DeleteACLRuleRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteACLRuleRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +long DeleteACLRuleRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteACLRuleRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeleteACLRuleRequest::getAcrId()const +{ + return acrId_; +} + +void DeleteACLRuleRequest::setAcrId(const std::string& acrId) +{ + acrId_ = acrId; + setCoreParameter("AcrId", acrId); +} + diff --git a/smartag/src/model/DeleteACLRuleResult.cc b/smartag/src/model/DeleteACLRuleResult.cc new file mode 100644 index 000000000..e3e9b5cf3 --- /dev/null +++ b/smartag/src/model/DeleteACLRuleResult.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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DeleteACLRuleResult::DeleteACLRuleResult() : + ServiceResult() +{} + +DeleteACLRuleResult::DeleteACLRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteACLRuleResult::~DeleteACLRuleResult() +{} + +void DeleteACLRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/DeleteCloudConnectNetworkRequest.cc b/smartag/src/model/DeleteCloudConnectNetworkRequest.cc index 46c460a9e..1e8c82d3b 100644 --- a/smartag/src/model/DeleteCloudConnectNetworkRequest.cc +++ b/smartag/src/model/DeleteCloudConnectNetworkRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Smartag::Model::DeleteCloudConnectNetworkRequest; - -DeleteCloudConnectNetworkRequest::DeleteCloudConnectNetworkRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DeleteCloudConnectNetwork") -{} - -DeleteCloudConnectNetworkRequest::~DeleteCloudConnectNetworkRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::DeleteCloudConnectNetworkRequest; + +DeleteCloudConnectNetworkRequest::DeleteCloudConnectNetworkRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DeleteCloudConnectNetwork") +{} + +DeleteCloudConnectNetworkRequest::~DeleteCloudConnectNetworkRequest() +{} + long DeleteCloudConnectNetworkRequest::getResourceOwnerId()const { return resourceOwnerId_; @@ -33,7 +33,7 @@ long DeleteCloudConnectNetworkRequest::getResourceOwnerId()const void DeleteCloudConnectNetworkRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteCloudConnectNetworkRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DeleteCloudConnectNetworkRequest::getResourceOwnerAccount()const void DeleteCloudConnectNetworkRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeleteCloudConnectNetworkRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string DeleteCloudConnectNetworkRequest::getRegionId()const void DeleteCloudConnectNetworkRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteCloudConnectNetworkRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string DeleteCloudConnectNetworkRequest::getOwnerAccount()const void DeleteCloudConnectNetworkRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DeleteCloudConnectNetworkRequest::getCcnId()const @@ -77,7 +77,7 @@ std::string DeleteCloudConnectNetworkRequest::getCcnId()const void DeleteCloudConnectNetworkRequest::setCcnId(const std::string& ccnId) { ccnId_ = ccnId; - setParameter("CcnId", ccnId); + setCoreParameter("CcnId", ccnId); } long DeleteCloudConnectNetworkRequest::getOwnerId()const @@ -88,6 +88,6 @@ long DeleteCloudConnectNetworkRequest::getOwnerId()const void DeleteCloudConnectNetworkRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/smartag/src/model/DeleteCloudConnectNetworkResult.cc b/smartag/src/model/DeleteCloudConnectNetworkResult.cc index 0f6f2fc0a..89741ea19 100644 --- a/smartag/src/model/DeleteCloudConnectNetworkResult.cc +++ b/smartag/src/model/DeleteCloudConnectNetworkResult.cc @@ -1,45 +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::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -DeleteCloudConnectNetworkResult::DeleteCloudConnectNetworkResult() : - ServiceResult() -{} - -DeleteCloudConnectNetworkResult::DeleteCloudConnectNetworkResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteCloudConnectNetworkResult::~DeleteCloudConnectNetworkResult() -{} - -void DeleteCloudConnectNetworkResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DeleteCloudConnectNetworkResult::DeleteCloudConnectNetworkResult() : + ServiceResult() +{} + +DeleteCloudConnectNetworkResult::DeleteCloudConnectNetworkResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteCloudConnectNetworkResult::~DeleteCloudConnectNetworkResult() +{} + +void DeleteCloudConnectNetworkResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/DeleteDedicatedLineBackupRequest.cc b/smartag/src/model/DeleteDedicatedLineBackupRequest.cc index 75a107f7c..f7e616a1c 100644 --- a/smartag/src/model/DeleteDedicatedLineBackupRequest.cc +++ b/smartag/src/model/DeleteDedicatedLineBackupRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Smartag::Model::DeleteDedicatedLineBackupRequest; - -DeleteDedicatedLineBackupRequest::DeleteDedicatedLineBackupRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DeleteDedicatedLineBackup") -{} - -DeleteDedicatedLineBackupRequest::~DeleteDedicatedLineBackupRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::DeleteDedicatedLineBackupRequest; + +DeleteDedicatedLineBackupRequest::DeleteDedicatedLineBackupRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DeleteDedicatedLineBackup") +{} + +DeleteDedicatedLineBackupRequest::~DeleteDedicatedLineBackupRequest() +{} + long DeleteDedicatedLineBackupRequest::getResourceOwnerId()const { return resourceOwnerId_; @@ -33,7 +33,7 @@ long DeleteDedicatedLineBackupRequest::getResourceOwnerId()const void DeleteDedicatedLineBackupRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteDedicatedLineBackupRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DeleteDedicatedLineBackupRequest::getResourceOwnerAccount()const void DeleteDedicatedLineBackupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeleteDedicatedLineBackupRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string DeleteDedicatedLineBackupRequest::getRegionId()const void DeleteDedicatedLineBackupRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteDedicatedLineBackupRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string DeleteDedicatedLineBackupRequest::getOwnerAccount()const void DeleteDedicatedLineBackupRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DeleteDedicatedLineBackupRequest::getSmartAGId()const @@ -77,7 +77,7 @@ std::string DeleteDedicatedLineBackupRequest::getSmartAGId()const void DeleteDedicatedLineBackupRequest::setSmartAGId(const std::string& smartAGId) { smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); + setCoreParameter("SmartAGId", smartAGId); } long DeleteDedicatedLineBackupRequest::getOwnerId()const @@ -88,6 +88,6 @@ long DeleteDedicatedLineBackupRequest::getOwnerId()const void DeleteDedicatedLineBackupRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/smartag/src/model/DeleteDedicatedLineBackupResult.cc b/smartag/src/model/DeleteDedicatedLineBackupResult.cc index 8cc19dd3d..96c8751ea 100644 --- a/smartag/src/model/DeleteDedicatedLineBackupResult.cc +++ b/smartag/src/model/DeleteDedicatedLineBackupResult.cc @@ -1,45 +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::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -DeleteDedicatedLineBackupResult::DeleteDedicatedLineBackupResult() : - ServiceResult() -{} - -DeleteDedicatedLineBackupResult::DeleteDedicatedLineBackupResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteDedicatedLineBackupResult::~DeleteDedicatedLineBackupResult() -{} - -void DeleteDedicatedLineBackupResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DeleteDedicatedLineBackupResult::DeleteDedicatedLineBackupResult() : + ServiceResult() +{} + +DeleteDedicatedLineBackupResult::DeleteDedicatedLineBackupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteDedicatedLineBackupResult::~DeleteDedicatedLineBackupResult() +{} + +void DeleteDedicatedLineBackupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/DeleteNetworkOptimizationRequest.cc b/smartag/src/model/DeleteNetworkOptimizationRequest.cc new file mode 100644 index 000000000..ccaff056b --- /dev/null +++ b/smartag/src/model/DeleteNetworkOptimizationRequest.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 + +using AlibabaCloud::Smartag::Model::DeleteNetworkOptimizationRequest; + +DeleteNetworkOptimizationRequest::DeleteNetworkOptimizationRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DeleteNetworkOptimization") +{} + +DeleteNetworkOptimizationRequest::~DeleteNetworkOptimizationRequest() +{} + +long DeleteNetworkOptimizationRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteNetworkOptimizationRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteNetworkOptimizationRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteNetworkOptimizationRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteNetworkOptimizationRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteNetworkOptimizationRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DeleteNetworkOptimizationRequest::getNetworkOptId()const +{ + return networkOptId_; +} + +void DeleteNetworkOptimizationRequest::setNetworkOptId(const std::string& networkOptId) +{ + networkOptId_ = networkOptId; + setCoreParameter("NetworkOptId", networkOptId); +} + +std::string DeleteNetworkOptimizationRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteNetworkOptimizationRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +long DeleteNetworkOptimizationRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteNetworkOptimizationRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/smartag/src/model/DeleteNetworkOptimizationResult.cc b/smartag/src/model/DeleteNetworkOptimizationResult.cc new file mode 100644 index 000000000..5ec35af54 --- /dev/null +++ b/smartag/src/model/DeleteNetworkOptimizationResult.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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DeleteNetworkOptimizationResult::DeleteNetworkOptimizationResult() : + ServiceResult() +{} + +DeleteNetworkOptimizationResult::DeleteNetworkOptimizationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteNetworkOptimizationResult::~DeleteNetworkOptimizationResult() +{} + +void DeleteNetworkOptimizationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/DeleteNetworkOptimizationSettingRequest.cc b/smartag/src/model/DeleteNetworkOptimizationSettingRequest.cc new file mode 100644 index 000000000..412a2b587 --- /dev/null +++ b/smartag/src/model/DeleteNetworkOptimizationSettingRequest.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::Smartag::Model::DeleteNetworkOptimizationSettingRequest; + +DeleteNetworkOptimizationSettingRequest::DeleteNetworkOptimizationSettingRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DeleteNetworkOptimizationSetting") +{} + +DeleteNetworkOptimizationSettingRequest::~DeleteNetworkOptimizationSettingRequest() +{} + +long DeleteNetworkOptimizationSettingRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteNetworkOptimizationSettingRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteNetworkOptimizationSettingRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteNetworkOptimizationSettingRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteNetworkOptimizationSettingRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteNetworkOptimizationSettingRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DeleteNetworkOptimizationSettingRequest::getNetworkOptId()const +{ + return networkOptId_; +} + +void DeleteNetworkOptimizationSettingRequest::setNetworkOptId(const std::string& networkOptId) +{ + networkOptId_ = networkOptId; + setCoreParameter("NetworkOptId", networkOptId); +} + +std::string DeleteNetworkOptimizationSettingRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteNetworkOptimizationSettingRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DeleteNetworkOptimizationSettingRequest::getDomain()const +{ + return domain_; +} + +void DeleteNetworkOptimizationSettingRequest::setDomain(const std::string& domain) +{ + domain_ = domain; + setCoreParameter("Domain", domain); +} + +long DeleteNetworkOptimizationSettingRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteNetworkOptimizationSettingRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeleteNetworkOptimizationSettingRequest::getType()const +{ + return type_; +} + +void DeleteNetworkOptimizationSettingRequest::setType(const std::string& type) +{ + type_ = type; + setCoreParameter("Type", type); +} + diff --git a/smartag/src/model/DeleteNetworkOptimizationSettingResult.cc b/smartag/src/model/DeleteNetworkOptimizationSettingResult.cc new file mode 100644 index 000000000..9887a5309 --- /dev/null +++ b/smartag/src/model/DeleteNetworkOptimizationSettingResult.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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DeleteNetworkOptimizationSettingResult::DeleteNetworkOptimizationSettingResult() : + ServiceResult() +{} + +DeleteNetworkOptimizationSettingResult::DeleteNetworkOptimizationSettingResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteNetworkOptimizationSettingResult::~DeleteNetworkOptimizationSettingResult() +{} + +void DeleteNetworkOptimizationSettingResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/DeleteSAGLinkLevelHaRequest.cc b/smartag/src/model/DeleteSAGLinkLevelHaRequest.cc new file mode 100644 index 000000000..c24ffa885 --- /dev/null +++ b/smartag/src/model/DeleteSAGLinkLevelHaRequest.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::Smartag::Model::DeleteSAGLinkLevelHaRequest; + +DeleteSAGLinkLevelHaRequest::DeleteSAGLinkLevelHaRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DeleteSAGLinkLevelHa") +{} + +DeleteSAGLinkLevelHaRequest::~DeleteSAGLinkLevelHaRequest() +{} + +long DeleteSAGLinkLevelHaRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteSAGLinkLevelHaRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteSAGLinkLevelHaRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteSAGLinkLevelHaRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteSAGLinkLevelHaRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteSAGLinkLevelHaRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DeleteSAGLinkLevelHaRequest::getHaType()const +{ + return haType_; +} + +void DeleteSAGLinkLevelHaRequest::setHaType(const std::string& haType) +{ + haType_ = haType; + setCoreParameter("HaType", haType); +} + +std::string DeleteSAGLinkLevelHaRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteSAGLinkLevelHaRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DeleteSAGLinkLevelHaRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void DeleteSAGLinkLevelHaRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setCoreParameter("SmartAGId", smartAGId); +} + +long DeleteSAGLinkLevelHaRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteSAGLinkLevelHaRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/smartag/src/model/DeleteSAGLinkLevelHaResult.cc b/smartag/src/model/DeleteSAGLinkLevelHaResult.cc new file mode 100644 index 000000000..09945a714 --- /dev/null +++ b/smartag/src/model/DeleteSAGLinkLevelHaResult.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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DeleteSAGLinkLevelHaResult::DeleteSAGLinkLevelHaResult() : + ServiceResult() +{} + +DeleteSAGLinkLevelHaResult::DeleteSAGLinkLevelHaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteSAGLinkLevelHaResult::~DeleteSAGLinkLevelHaResult() +{} + +void DeleteSAGLinkLevelHaResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/DeleteSmartAccessGatewayClientUserRequest.cc b/smartag/src/model/DeleteSmartAccessGatewayClientUserRequest.cc new file mode 100644 index 000000000..072144127 --- /dev/null +++ b/smartag/src/model/DeleteSmartAccessGatewayClientUserRequest.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::Smartag::Model::DeleteSmartAccessGatewayClientUserRequest; + +DeleteSmartAccessGatewayClientUserRequest::DeleteSmartAccessGatewayClientUserRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DeleteSmartAccessGatewayClientUser") +{} + +DeleteSmartAccessGatewayClientUserRequest::~DeleteSmartAccessGatewayClientUserRequest() +{} + +long DeleteSmartAccessGatewayClientUserRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteSmartAccessGatewayClientUserRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteSmartAccessGatewayClientUserRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteSmartAccessGatewayClientUserRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteSmartAccessGatewayClientUserRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteSmartAccessGatewayClientUserRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DeleteSmartAccessGatewayClientUserRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteSmartAccessGatewayClientUserRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DeleteSmartAccessGatewayClientUserRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void DeleteSmartAccessGatewayClientUserRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setCoreParameter("SmartAGId", smartAGId); +} + +long DeleteSmartAccessGatewayClientUserRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteSmartAccessGatewayClientUserRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeleteSmartAccessGatewayClientUserRequest::getUserName()const +{ + return userName_; +} + +void DeleteSmartAccessGatewayClientUserRequest::setUserName(const std::string& userName) +{ + userName_ = userName; + setCoreParameter("UserName", userName); +} + diff --git a/smartag/src/model/DeleteSmartAccessGatewayClientUserResult.cc b/smartag/src/model/DeleteSmartAccessGatewayClientUserResult.cc new file mode 100644 index 000000000..4bca9ded0 --- /dev/null +++ b/smartag/src/model/DeleteSmartAccessGatewayClientUserResult.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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DeleteSmartAccessGatewayClientUserResult::DeleteSmartAccessGatewayClientUserResult() : + ServiceResult() +{} + +DeleteSmartAccessGatewayClientUserResult::DeleteSmartAccessGatewayClientUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteSmartAccessGatewayClientUserResult::~DeleteSmartAccessGatewayClientUserResult() +{} + +void DeleteSmartAccessGatewayClientUserResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/DescribeACLAttributeRequest.cc b/smartag/src/model/DescribeACLAttributeRequest.cc new file mode 100644 index 000000000..0fb1f99dc --- /dev/null +++ b/smartag/src/model/DescribeACLAttributeRequest.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::Smartag::Model::DescribeACLAttributeRequest; + +DescribeACLAttributeRequest::DescribeACLAttributeRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DescribeACLAttribute") +{} + +DescribeACLAttributeRequest::~DescribeACLAttributeRequest() +{} + +std::string DescribeACLAttributeRequest::getAclId()const +{ + return aclId_; +} + +void DescribeACLAttributeRequest::setAclId(const std::string& aclId) +{ + aclId_ = aclId; + setCoreParameter("AclId", aclId); +} + +long DescribeACLAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeACLAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeACLAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeACLAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeACLAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeACLAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeACLAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeACLAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +int DescribeACLAttributeRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeACLAttributeRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +long DescribeACLAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeACLAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeACLAttributeRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeACLAttributeRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeACLAttributeRequest::getDirection()const +{ + return direction_; +} + +void DescribeACLAttributeRequest::setDirection(const std::string& direction) +{ + direction_ = direction; + setCoreParameter("Direction", direction); +} + +std::string DescribeACLAttributeRequest::getOrder()const +{ + return order_; +} + +void DescribeACLAttributeRequest::setOrder(const std::string& order) +{ + order_ = order; + setCoreParameter("Order", order); +} + diff --git a/smartag/src/model/DescribeACLAttributeResult.cc b/smartag/src/model/DescribeACLAttributeResult.cc new file mode 100644 index 000000000..e33aa8054 --- /dev/null +++ b/smartag/src/model/DescribeACLAttributeResult.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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DescribeACLAttributeResult::DescribeACLAttributeResult() : + ServiceResult() +{} + +DescribeACLAttributeResult::DescribeACLAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeACLAttributeResult::~DescribeACLAttributeResult() +{} + +void DescribeACLAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allAcrs = value["Acrs"]["Acr"]; + for (auto value : allAcrs) + { + Acr acrsObject; + if(!value["AcrId"].isNull()) + acrsObject.acrId = value["AcrId"].asString(); + if(!value["Description"].isNull()) + acrsObject.description = value["Description"].asString(); + if(!value["Direction"].isNull()) + acrsObject.direction = value["Direction"].asString(); + if(!value["SourceCidr"].isNull()) + acrsObject.sourceCidr = value["SourceCidr"].asString(); + if(!value["DestCidr"].isNull()) + acrsObject.destCidr = value["DestCidr"].asString(); + if(!value["IpProtocol"].isNull()) + acrsObject.ipProtocol = value["IpProtocol"].asString(); + if(!value["SourcePortRange"].isNull()) + acrsObject.sourcePortRange = value["SourcePortRange"].asString(); + if(!value["DestPortRange"].isNull()) + acrsObject.destPortRange = value["DestPortRange"].asString(); + if(!value["Policy"].isNull()) + acrsObject.policy = value["Policy"].asString(); + if(!value["Priority"].isNull()) + acrsObject.priority = std::stoi(value["Priority"].asString()); + if(!value["GmtCreate"].isNull()) + acrsObject.gmtCreate = std::stol(value["GmtCreate"].asString()); + if(!value["AclId"].isNull()) + acrsObject.aclId = value["AclId"].asString(); + acrs_.push_back(acrsObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeACLAttributeResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeACLAttributeResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeACLAttributeResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeACLAttributeResult::getAcrs()const +{ + return acrs_; +} + diff --git a/smartag/src/model/DescribeACLsRequest.cc b/smartag/src/model/DescribeACLsRequest.cc new file mode 100644 index 000000000..a49061527 --- /dev/null +++ b/smartag/src/model/DescribeACLsRequest.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::Smartag::Model::DescribeACLsRequest; + +DescribeACLsRequest::DescribeACLsRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DescribeACLs") +{} + +DescribeACLsRequest::~DescribeACLsRequest() +{} + +long DescribeACLsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeACLsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeACLsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeACLsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeACLsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeACLsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeACLsRequest::getAclIds()const +{ + return aclIds_; +} + +void DescribeACLsRequest::setAclIds(const std::string& aclIds) +{ + aclIds_ = aclIds; + setCoreParameter("AclIds", aclIds); +} + +std::string DescribeACLsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeACLsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeACLsRequest::getName()const +{ + return name_; +} + +void DescribeACLsRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + +int DescribeACLsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeACLsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +long DescribeACLsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeACLsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeACLsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeACLsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/smartag/src/model/DescribeACLsResult.cc b/smartag/src/model/DescribeACLsResult.cc new file mode 100644 index 000000000..97ddddaf1 --- /dev/null +++ b/smartag/src/model/DescribeACLsResult.cc @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DescribeACLsResult::DescribeACLsResult() : + ServiceResult() +{} + +DescribeACLsResult::DescribeACLsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeACLsResult::~DescribeACLsResult() +{} + +void DescribeACLsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allAcls = value["Acls"]["Acl"]; + for (auto value : allAcls) + { + Acl aclsObject; + if(!value["AclId"].isNull()) + aclsObject.aclId = value["AclId"].asString(); + if(!value["Name"].isNull()) + aclsObject.name = value["Name"].asString(); + if(!value["SagCount"].isNull()) + aclsObject.sagCount = value["SagCount"].asString(); + acls_.push_back(aclsObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeACLsResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeACLsResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeACLsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeACLsResult::getAcls()const +{ + return acls_; +} + diff --git a/smartag/src/model/DescribeCloudConnectNetworksRequest.cc b/smartag/src/model/DescribeCloudConnectNetworksRequest.cc index 396d42006..c88fe9354 100644 --- a/smartag/src/model/DescribeCloudConnectNetworksRequest.cc +++ b/smartag/src/model/DescribeCloudConnectNetworksRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Smartag::Model::DescribeCloudConnectNetworksRequest; - -DescribeCloudConnectNetworksRequest::DescribeCloudConnectNetworksRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeCloudConnectNetworks") -{} - -DescribeCloudConnectNetworksRequest::~DescribeCloudConnectNetworksRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::DescribeCloudConnectNetworksRequest; + +DescribeCloudConnectNetworksRequest::DescribeCloudConnectNetworksRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DescribeCloudConnectNetworks") +{} + +DescribeCloudConnectNetworksRequest::~DescribeCloudConnectNetworksRequest() +{} + long DescribeCloudConnectNetworksRequest::getResourceOwnerId()const { return resourceOwnerId_; @@ -33,7 +33,7 @@ long DescribeCloudConnectNetworksRequest::getResourceOwnerId()const void DescribeCloudConnectNetworksRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeCloudConnectNetworksRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DescribeCloudConnectNetworksRequest::getResourceOwnerAccount()const void DescribeCloudConnectNetworksRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeCloudConnectNetworksRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string DescribeCloudConnectNetworksRequest::getRegionId()const void DescribeCloudConnectNetworksRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeCloudConnectNetworksRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string DescribeCloudConnectNetworksRequest::getOwnerAccount()const void DescribeCloudConnectNetworksRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DescribeCloudConnectNetworksRequest::getName()const @@ -77,7 +77,7 @@ std::string DescribeCloudConnectNetworksRequest::getName()const void DescribeCloudConnectNetworksRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string DescribeCloudConnectNetworksRequest::getCcnId()const @@ -88,7 +88,7 @@ std::string DescribeCloudConnectNetworksRequest::getCcnId()const void DescribeCloudConnectNetworksRequest::setCcnId(const std::string& ccnId) { ccnId_ = ccnId; - setParameter("CcnId", ccnId); + setCoreParameter("CcnId", ccnId); } std::string DescribeCloudConnectNetworksRequest::getPageSize()const @@ -99,7 +99,24 @@ std::string DescribeCloudConnectNetworksRequest::getPageSize()const void DescribeCloudConnectNetworksRequest::setPageSize(const std::string& pageSize) { pageSize_ = pageSize; - setParameter("PageSize", pageSize); + setCoreParameter("PageSize", pageSize); +} + +std::vector DescribeCloudConnectNetworksRequest::getTag()const +{ + return tag_; +} + +void DescribeCloudConnectNetworksRequest::setTag(const std::vector& tag) +{ + tag_ = tag; + int i = 0; + for(int i = 0; i!= tag.size(); i++) { + auto obj = tag.at(i); + std::string str ="Tag."+ std::to_string(i); + setCoreParameter(str + ".Value", obj.value); + setCoreParameter(str + ".Key", obj.key); + } } long DescribeCloudConnectNetworksRequest::getOwnerId()const @@ -110,7 +127,7 @@ long DescribeCloudConnectNetworksRequest::getOwnerId()const void DescribeCloudConnectNetworksRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeCloudConnectNetworksRequest::getPageNumber()const @@ -121,6 +138,6 @@ std::string DescribeCloudConnectNetworksRequest::getPageNumber()const void DescribeCloudConnectNetworksRequest::setPageNumber(const std::string& pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", pageNumber); + setCoreParameter("PageNumber", pageNumber); } diff --git a/smartag/src/model/DescribeCloudConnectNetworksResult.cc b/smartag/src/model/DescribeCloudConnectNetworksResult.cc index a7fddf698..f6739b3ae 100644 --- a/smartag/src/model/DescribeCloudConnectNetworksResult.cc +++ b/smartag/src/model/DescribeCloudConnectNetworksResult.cc @@ -1,45 +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::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -DescribeCloudConnectNetworksResult::DescribeCloudConnectNetworksResult() : - ServiceResult() -{} - -DescribeCloudConnectNetworksResult::DescribeCloudConnectNetworksResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeCloudConnectNetworksResult::~DescribeCloudConnectNetworksResult() -{} - -void DescribeCloudConnectNetworksResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DescribeCloudConnectNetworksResult::DescribeCloudConnectNetworksResult() : + ServiceResult() +{} + +DescribeCloudConnectNetworksResult::DescribeCloudConnectNetworksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCloudConnectNetworksResult::~DescribeCloudConnectNetworksResult() +{} + +void DescribeCloudConnectNetworksResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); auto allCloudConnectNetworks = value["CloudConnectNetworks"]["CloudConnectNetwork"]; for (auto value : allCloudConnectNetworks) { @@ -62,6 +62,20 @@ void DescribeCloudConnectNetworksResult::parse(const std::string &payload) cloudConnectNetworksObject.createTime = std::stol(value["CreateTime"].asString()); if(!value["IsDefault"].isNull()) cloudConnectNetworksObject.isDefault = value["IsDefault"].asString() == "true"; + if(!value["CidrBlock"].isNull()) + cloudConnectNetworksObject.cidrBlock = value["CidrBlock"].asString(); + if(!value["SnatCidrBlock"].isNull()) + cloudConnectNetworksObject.snatCidrBlock = value["SnatCidrBlock"].asString(); + auto allTags = value["Tags"]["Tag"]; + for (auto value : allTags) + { + CloudConnectNetwork::Tag tagsObject; + if(!value["Key"].isNull()) + tagsObject.key = value["Key"].asString(); + if(!value["Value"].isNull()) + tagsObject.value = value["Value"].asString(); + cloudConnectNetworksObject.tags.push_back(tagsObject); + } cloudConnectNetworks_.push_back(cloudConnectNetworksObject); } if(!value["TotalCount"].isNull()) @@ -70,9 +84,9 @@ void DescribeCloudConnectNetworksResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); - -} - + +} + std::vector DescribeCloudConnectNetworksResult::getCloudConnectNetworks()const { return cloudConnectNetworks_; diff --git a/smartag/src/model/DescribeGrantRulesRequest.cc b/smartag/src/model/DescribeGrantRulesRequest.cc new file mode 100644 index 000000000..b69e4f6ce --- /dev/null +++ b/smartag/src/model/DescribeGrantRulesRequest.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::Smartag::Model::DescribeGrantRulesRequest; + +DescribeGrantRulesRequest::DescribeGrantRulesRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DescribeGrantRules") +{} + +DescribeGrantRulesRequest::~DescribeGrantRulesRequest() +{} + +long DescribeGrantRulesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeGrantRulesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeGrantRulesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeGrantRulesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeGrantRulesRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeGrantRulesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeGrantRulesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeGrantRulesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeGrantRulesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeGrantRulesRequest::setPageSize(const std::string& pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", pageSize); +} + +std::string DescribeGrantRulesRequest::getAssociatedCcnId()const +{ + return associatedCcnId_; +} + +void DescribeGrantRulesRequest::setAssociatedCcnId(const std::string& associatedCcnId) +{ + associatedCcnId_ = associatedCcnId; + setCoreParameter("AssociatedCcnId", associatedCcnId); +} + +long DescribeGrantRulesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeGrantRulesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeGrantRulesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeGrantRulesRequest::setPageNumber(const std::string& pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", pageNumber); +} + diff --git a/smartag/src/model/DescribeGrantRulesResult.cc b/smartag/src/model/DescribeGrantRulesResult.cc new file mode 100644 index 000000000..dd3258a19 --- /dev/null +++ b/smartag/src/model/DescribeGrantRulesResult.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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DescribeGrantRulesResult::DescribeGrantRulesResult() : + ServiceResult() +{} + +DescribeGrantRulesResult::DescribeGrantRulesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeGrantRulesResult::~DescribeGrantRulesResult() +{} + +void DescribeGrantRulesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allGrantRules = value["GrantRules"]["GrantRule"]; + for (auto value : allGrantRules) + { + GrantRule grantRulesObject; + if(!value["GrantRuleId"].isNull()) + grantRulesObject.grantRuleId = value["GrantRuleId"].asString(); + if(!value["CenUid"].isNull()) + grantRulesObject.cenUid = std::stol(value["CenUid"].asString()); + if(!value["CcnId"].isNull()) + grantRulesObject.ccnId = std::stol(value["CcnId"].asString()); + if(!value["CenInstanceId"].isNull()) + grantRulesObject.cenInstanceId = value["CenInstanceId"].asString(); + if(!value["CcnInstanceId"].isNull()) + grantRulesObject.ccnInstanceId = value["CcnInstanceId"].asString(); + if(!value["GmtCreate"].isNull()) + grantRulesObject.gmtCreate = std::stol(value["GmtCreate"].asString()); + if(!value["GmtModified"].isNull()) + grantRulesObject.gmtModified = std::stol(value["GmtModified"].asString()); + if(!value["RegionId"].isNull()) + grantRulesObject.regionId = value["RegionId"].asString(); + grantRules_.push_back(grantRulesObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeGrantRulesResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeGrantRulesResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeGrantRulesResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeGrantRulesResult::getGrantRules()const +{ + return grantRules_; +} + diff --git a/smartag/src/model/DescribeNetworkOptimizationSagsRequest.cc b/smartag/src/model/DescribeNetworkOptimizationSagsRequest.cc new file mode 100644 index 000000000..9fbe8c9b3 --- /dev/null +++ b/smartag/src/model/DescribeNetworkOptimizationSagsRequest.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::Smartag::Model::DescribeNetworkOptimizationSagsRequest; + +DescribeNetworkOptimizationSagsRequest::DescribeNetworkOptimizationSagsRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DescribeNetworkOptimizationSags") +{} + +DescribeNetworkOptimizationSagsRequest::~DescribeNetworkOptimizationSagsRequest() +{} + +long DescribeNetworkOptimizationSagsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeNetworkOptimizationSagsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeNetworkOptimizationSagsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeNetworkOptimizationSagsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeNetworkOptimizationSagsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeNetworkOptimizationSagsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeNetworkOptimizationSagsRequest::getNetworkOptId()const +{ + return networkOptId_; +} + +void DescribeNetworkOptimizationSagsRequest::setNetworkOptId(const std::string& networkOptId) +{ + networkOptId_ = networkOptId; + setCoreParameter("NetworkOptId", networkOptId); +} + +int DescribeNetworkOptimizationSagsRequest::getPageNo()const +{ + return pageNo_; +} + +void DescribeNetworkOptimizationSagsRequest::setPageNo(int pageNo) +{ + pageNo_ = pageNo; + setCoreParameter("PageNo", std::to_string(pageNo)); +} + +std::string DescribeNetworkOptimizationSagsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeNetworkOptimizationSagsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +int DescribeNetworkOptimizationSagsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeNetworkOptimizationSagsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +long DescribeNetworkOptimizationSagsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeNetworkOptimizationSagsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/smartag/src/model/DescribeNetworkOptimizationSagsResult.cc b/smartag/src/model/DescribeNetworkOptimizationSagsResult.cc new file mode 100644 index 000000000..82b7dc6ea --- /dev/null +++ b/smartag/src/model/DescribeNetworkOptimizationSagsResult.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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DescribeNetworkOptimizationSagsResult::DescribeNetworkOptimizationSagsResult() : + ServiceResult() +{} + +DescribeNetworkOptimizationSagsResult::DescribeNetworkOptimizationSagsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeNetworkOptimizationSagsResult::~DescribeNetworkOptimizationSagsResult() +{} + +void DescribeNetworkOptimizationSagsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allSmartAccessGateways = value["SmartAccessGateways"]["SmartAccessGateway"]; + for (auto value : allSmartAccessGateways) + { + SmartAccessGateway smartAccessGatewaysObject; + if(!value["InstanceId"].isNull()) + smartAccessGatewaysObject.instanceId = value["InstanceId"].asString(); + if(!value["Name"].isNull()) + smartAccessGatewaysObject.name = value["Name"].asString(); + if(!value["State"].isNull()) + smartAccessGatewaysObject.state = value["State"].asString(); + if(!value["CreateTime"].isNull()) + smartAccessGatewaysObject.createTime = std::stol(value["CreateTime"].asString()); + if(!value["EndTime"].isNull()) + smartAccessGatewaysObject.endTime = std::stol(value["EndTime"].asString()); + if(!value["MaxBandwidth"].isNull()) + smartAccessGatewaysObject.maxBandwidth = value["MaxBandwidth"].asString(); + smartAccessGateways_.push_back(smartAccessGatewaysObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageNo"].isNull()) + pageNo_ = std::stoi(value["PageNo"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeNetworkOptimizationSagsResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeNetworkOptimizationSagsResult::getPageSize()const +{ + return pageSize_; +} + +std::vector DescribeNetworkOptimizationSagsResult::getSmartAccessGateways()const +{ + return smartAccessGateways_; +} + +int DescribeNetworkOptimizationSagsResult::getPageNo()const +{ + return pageNo_; +} + diff --git a/smartag/src/model/DescribeNetworkOptimizationSettingsRequest.cc b/smartag/src/model/DescribeNetworkOptimizationSettingsRequest.cc new file mode 100644 index 000000000..8f635c256 --- /dev/null +++ b/smartag/src/model/DescribeNetworkOptimizationSettingsRequest.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::Smartag::Model::DescribeNetworkOptimizationSettingsRequest; + +DescribeNetworkOptimizationSettingsRequest::DescribeNetworkOptimizationSettingsRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DescribeNetworkOptimizationSettings") +{} + +DescribeNetworkOptimizationSettingsRequest::~DescribeNetworkOptimizationSettingsRequest() +{} + +long DescribeNetworkOptimizationSettingsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeNetworkOptimizationSettingsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeNetworkOptimizationSettingsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeNetworkOptimizationSettingsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeNetworkOptimizationSettingsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeNetworkOptimizationSettingsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeNetworkOptimizationSettingsRequest::getNetworkOptId()const +{ + return networkOptId_; +} + +void DescribeNetworkOptimizationSettingsRequest::setNetworkOptId(const std::string& networkOptId) +{ + networkOptId_ = networkOptId; + setCoreParameter("NetworkOptId", networkOptId); +} + +int DescribeNetworkOptimizationSettingsRequest::getPageNo()const +{ + return pageNo_; +} + +void DescribeNetworkOptimizationSettingsRequest::setPageNo(int pageNo) +{ + pageNo_ = pageNo; + setCoreParameter("PageNo", std::to_string(pageNo)); +} + +std::string DescribeNetworkOptimizationSettingsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeNetworkOptimizationSettingsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +int DescribeNetworkOptimizationSettingsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeNetworkOptimizationSettingsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +long DescribeNetworkOptimizationSettingsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeNetworkOptimizationSettingsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/smartag/src/model/DescribeNetworkOptimizationSettingsResult.cc b/smartag/src/model/DescribeNetworkOptimizationSettingsResult.cc new file mode 100644 index 000000000..8888ecc89 --- /dev/null +++ b/smartag/src/model/DescribeNetworkOptimizationSettingsResult.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DescribeNetworkOptimizationSettingsResult::DescribeNetworkOptimizationSettingsResult() : + ServiceResult() +{} + +DescribeNetworkOptimizationSettingsResult::DescribeNetworkOptimizationSettingsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeNetworkOptimizationSettingsResult::~DescribeNetworkOptimizationSettingsResult() +{} + +void DescribeNetworkOptimizationSettingsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allSettings = value["Settings"]["Setting"]; + for (auto value : allSettings) + { + Setting settingsObject; + if(!value["Domain"].isNull()) + settingsObject.domain = value["Domain"].asString(); + if(!value["Type"].isNull()) + settingsObject.type = value["Type"].asString(); + settings_.push_back(settingsObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageNo"].isNull()) + pageNo_ = std::stoi(value["PageNo"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeNetworkOptimizationSettingsResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeNetworkOptimizationSettingsResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeNetworkOptimizationSettingsResult::getPageNo()const +{ + return pageNo_; +} + +std::vector DescribeNetworkOptimizationSettingsResult::getSettings()const +{ + return settings_; +} + diff --git a/smartag/src/model/DescribeNetworkOptimizationsRequest.cc b/smartag/src/model/DescribeNetworkOptimizationsRequest.cc new file mode 100644 index 000000000..71125fb16 --- /dev/null +++ b/smartag/src/model/DescribeNetworkOptimizationsRequest.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::Smartag::Model::DescribeNetworkOptimizationsRequest; + +DescribeNetworkOptimizationsRequest::DescribeNetworkOptimizationsRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DescribeNetworkOptimizations") +{} + +DescribeNetworkOptimizationsRequest::~DescribeNetworkOptimizationsRequest() +{} + +long DescribeNetworkOptimizationsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeNetworkOptimizationsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeNetworkOptimizationsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeNetworkOptimizationsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeNetworkOptimizationsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeNetworkOptimizationsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeNetworkOptimizationsRequest::getNetworkOptId()const +{ + return networkOptId_; +} + +void DescribeNetworkOptimizationsRequest::setNetworkOptId(const std::string& networkOptId) +{ + networkOptId_ = networkOptId; + setCoreParameter("NetworkOptId", networkOptId); +} + +int DescribeNetworkOptimizationsRequest::getPageNo()const +{ + return pageNo_; +} + +void DescribeNetworkOptimizationsRequest::setPageNo(int pageNo) +{ + pageNo_ = pageNo; + setCoreParameter("PageNo", std::to_string(pageNo)); +} + +std::string DescribeNetworkOptimizationsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeNetworkOptimizationsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeNetworkOptimizationsRequest::getCcnId()const +{ + return ccnId_; +} + +void DescribeNetworkOptimizationsRequest::setCcnId(const std::string& ccnId) +{ + ccnId_ = ccnId; + setCoreParameter("CcnId", ccnId); +} + +std::string DescribeNetworkOptimizationsRequest::getName()const +{ + return name_; +} + +void DescribeNetworkOptimizationsRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + +int DescribeNetworkOptimizationsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeNetworkOptimizationsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +long DescribeNetworkOptimizationsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeNetworkOptimizationsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/smartag/src/model/DescribeNetworkOptimizationsResult.cc b/smartag/src/model/DescribeNetworkOptimizationsResult.cc new file mode 100644 index 000000000..5f860e639 --- /dev/null +++ b/smartag/src/model/DescribeNetworkOptimizationsResult.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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DescribeNetworkOptimizationsResult::DescribeNetworkOptimizationsResult() : + ServiceResult() +{} + +DescribeNetworkOptimizationsResult::DescribeNetworkOptimizationsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeNetworkOptimizationsResult::~DescribeNetworkOptimizationsResult() +{} + +void DescribeNetworkOptimizationsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allNetworkOptimizations = value["NetworkOptimizations"]["NetworkOptimization"]; + for (auto value : allNetworkOptimizations) + { + NetworkOptimization networkOptimizationsObject; + if(!value["InstanceId"].isNull()) + networkOptimizationsObject.instanceId = value["InstanceId"].asString(); + if(!value["Name"].isNull()) + networkOptimizationsObject.name = value["Name"].asString(); + if(!value["State"].isNull()) + networkOptimizationsObject.state = value["State"].asString(); + if(!value["CreateTime"].isNull()) + networkOptimizationsObject.createTime = std::stol(value["CreateTime"].asString()); + if(!value["SagCount"].isNull()) + networkOptimizationsObject.sagCount = std::stoi(value["SagCount"].asString()); + if(!value["CcnId"].isNull()) + networkOptimizationsObject.ccnId = value["CcnId"].asString(); + networkOptimizations_.push_back(networkOptimizationsObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageNo"].isNull()) + pageNo_ = std::stoi(value["PageNo"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +std::vector DescribeNetworkOptimizationsResult::getNetworkOptimizations()const +{ + return networkOptimizations_; +} + +int DescribeNetworkOptimizationsResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeNetworkOptimizationsResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeNetworkOptimizationsResult::getPageNo()const +{ + return pageNo_; +} + diff --git a/smartag/src/model/DescribeRegionsRequest.cc b/smartag/src/model/DescribeRegionsRequest.cc index 7538b77ce..40c2fde54 100644 --- a/smartag/src/model/DescribeRegionsRequest.cc +++ b/smartag/src/model/DescribeRegionsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Smartag::Model::DescribeRegionsRequest; - -DescribeRegionsRequest::DescribeRegionsRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeRegions") -{} - -DescribeRegionsRequest::~DescribeRegionsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::DescribeRegionsRequest; + +DescribeRegionsRequest::DescribeRegionsRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DescribeRegions") +{} + +DescribeRegionsRequest::~DescribeRegionsRequest() +{} + long DescribeRegionsRequest::getResourceOwnerId()const { return resourceOwnerId_; @@ -33,7 +33,7 @@ long DescribeRegionsRequest::getResourceOwnerId()const void DescribeRegionsRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeRegionsRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DescribeRegionsRequest::getResourceOwnerAccount()const void DescribeRegionsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeRegionsRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string DescribeRegionsRequest::getOwnerAccount()const void DescribeRegionsRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DescribeRegionsRequest::getAcceptLanguage()const @@ -66,7 +66,7 @@ std::string DescribeRegionsRequest::getAcceptLanguage()const void DescribeRegionsRequest::setAcceptLanguage(const std::string& acceptLanguage) { acceptLanguage_ = acceptLanguage; - setParameter("AcceptLanguage", acceptLanguage); + setCoreParameter("AcceptLanguage", acceptLanguage); } long DescribeRegionsRequest::getOwnerId()const @@ -77,6 +77,6 @@ long DescribeRegionsRequest::getOwnerId()const void DescribeRegionsRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/smartag/src/model/DescribeRegionsResult.cc b/smartag/src/model/DescribeRegionsResult.cc index 6732c1a53..d1a27f845 100644 --- a/smartag/src/model/DescribeRegionsResult.cc +++ b/smartag/src/model/DescribeRegionsResult.cc @@ -1,45 +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::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -DescribeRegionsResult::DescribeRegionsResult() : - ServiceResult() -{} - -DescribeRegionsResult::DescribeRegionsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeRegionsResult::~DescribeRegionsResult() -{} - -void DescribeRegionsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DescribeRegionsResult::DescribeRegionsResult() : + ServiceResult() +{} + +DescribeRegionsResult::DescribeRegionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRegionsResult::~DescribeRegionsResult() +{} + +void DescribeRegionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); auto allRegions = value["Regions"]["Region"]; for (auto value : allRegions) { @@ -52,9 +52,9 @@ void DescribeRegionsResult::parse(const std::string &payload) regionsObject.regionEndpoint = value["RegionEndpoint"].asString(); regions_.push_back(regionsObject); } - -} - + +} + std::vector DescribeRegionsResult::getRegions()const { return regions_; diff --git a/smartag/src/model/DescribeSagOnlineClientStatisticsRequest.cc b/smartag/src/model/DescribeSagOnlineClientStatisticsRequest.cc new file mode 100644 index 000000000..c812ba390 --- /dev/null +++ b/smartag/src/model/DescribeSagOnlineClientStatisticsRequest.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::DescribeSagOnlineClientStatisticsRequest; + +DescribeSagOnlineClientStatisticsRequest::DescribeSagOnlineClientStatisticsRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DescribeSagOnlineClientStatistics") +{} + +DescribeSagOnlineClientStatisticsRequest::~DescribeSagOnlineClientStatisticsRequest() +{} + +long DescribeSagOnlineClientStatisticsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeSagOnlineClientStatisticsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeSagOnlineClientStatisticsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeSagOnlineClientStatisticsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeSagOnlineClientStatisticsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeSagOnlineClientStatisticsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeSagOnlineClientStatisticsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeSagOnlineClientStatisticsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::vector DescribeSagOnlineClientStatisticsRequest::getSmartAGIds()const +{ + return smartAGIds_; +} + +void DescribeSagOnlineClientStatisticsRequest::setSmartAGIds(const std::vector& smartAGIds) +{ + smartAGIds_ = smartAGIds; + for(int i = 0; i!= smartAGIds.size(); i++) + setCoreParameter("SmartAGIds."+ std::to_string(i), smartAGIds.at(i)); +} + +long DescribeSagOnlineClientStatisticsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeSagOnlineClientStatisticsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/smartag/src/model/DescribeSagOnlineClientStatisticsResult.cc b/smartag/src/model/DescribeSagOnlineClientStatisticsResult.cc new file mode 100644 index 000000000..8643285fb --- /dev/null +++ b/smartag/src/model/DescribeSagOnlineClientStatisticsResult.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 +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DescribeSagOnlineClientStatisticsResult::DescribeSagOnlineClientStatisticsResult() : + ServiceResult() +{} + +DescribeSagOnlineClientStatisticsResult::DescribeSagOnlineClientStatisticsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSagOnlineClientStatisticsResult::~DescribeSagOnlineClientStatisticsResult() +{} + +void DescribeSagOnlineClientStatisticsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allSagStatistics = value["SagStatistics"]["Statistics"]; + for (auto value : allSagStatistics) + { + Statistics sagStatisticsObject; + if(!value["SmartAGId"].isNull()) + sagStatisticsObject.smartAGId = value["SmartAGId"].asString(); + if(!value["OnlineCount"].isNull()) + sagStatisticsObject.onlineCount = value["OnlineCount"].asString(); + sagStatistics_.push_back(sagStatisticsObject); + } + +} + +std::vector DescribeSagOnlineClientStatisticsResult::getSagStatistics()const +{ + return sagStatistics_; +} + diff --git a/smartag/src/model/DescribeSagRouteableAddressRequest.cc b/smartag/src/model/DescribeSagRouteableAddressRequest.cc new file mode 100644 index 000000000..11b15423a --- /dev/null +++ b/smartag/src/model/DescribeSagRouteableAddressRequest.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 + +using AlibabaCloud::Smartag::Model::DescribeSagRouteableAddressRequest; + +DescribeSagRouteableAddressRequest::DescribeSagRouteableAddressRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DescribeSagRouteableAddress") +{} + +DescribeSagRouteableAddressRequest::~DescribeSagRouteableAddressRequest() +{} + +long DescribeSagRouteableAddressRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeSagRouteableAddressRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeSagRouteableAddressRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeSagRouteableAddressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeSagRouteableAddressRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeSagRouteableAddressRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeSagRouteableAddressRequest::getSagId()const +{ + return sagId_; +} + +void DescribeSagRouteableAddressRequest::setSagId(const std::string& sagId) +{ + sagId_ = sagId; + setCoreParameter("SagId", sagId); +} + +std::string DescribeSagRouteableAddressRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeSagRouteableAddressRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +long DescribeSagRouteableAddressRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeSagRouteableAddressRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/smartag/src/model/DescribeSagRouteableAddressResult.cc b/smartag/src/model/DescribeSagRouteableAddressResult.cc new file mode 100644 index 000000000..0197b305f --- /dev/null +++ b/smartag/src/model/DescribeSagRouteableAddressResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DescribeSagRouteableAddressResult::DescribeSagRouteableAddressResult() : + ServiceResult() +{} + +DescribeSagRouteableAddressResult::DescribeSagRouteableAddressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSagRouteableAddressResult::~DescribeSagRouteableAddressResult() +{} + +void DescribeSagRouteableAddressResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["RouteableAddress"].isNull()) + routeableAddress_ = value["RouteableAddress"].asString(); + if(!value["Origin"].isNull()) + origin_ = value["Origin"].asString(); + +} + +std::string DescribeSagRouteableAddressResult::getOrigin()const +{ + return origin_; +} + +std::string DescribeSagRouteableAddressResult::getRouteableAddress()const +{ + return routeableAddress_; +} + diff --git a/smartag/src/model/DescribeSmartAccessGatewayClientUsersRequest.cc b/smartag/src/model/DescribeSmartAccessGatewayClientUsersRequest.cc new file mode 100644 index 000000000..d915e4470 --- /dev/null +++ b/smartag/src/model/DescribeSmartAccessGatewayClientUsersRequest.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::Smartag::Model::DescribeSmartAccessGatewayClientUsersRequest; + +DescribeSmartAccessGatewayClientUsersRequest::DescribeSmartAccessGatewayClientUsersRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DescribeSmartAccessGatewayClientUsers") +{} + +DescribeSmartAccessGatewayClientUsersRequest::~DescribeSmartAccessGatewayClientUsersRequest() +{} + +long DescribeSmartAccessGatewayClientUsersRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeSmartAccessGatewayClientUsersRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeSmartAccessGatewayClientUsersRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeSmartAccessGatewayClientUsersRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeSmartAccessGatewayClientUsersRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeSmartAccessGatewayClientUsersRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +int DescribeSmartAccessGatewayClientUsersRequest::getPageNo()const +{ + return pageNo_; +} + +void DescribeSmartAccessGatewayClientUsersRequest::setPageNo(int pageNo) +{ + pageNo_ = pageNo; + setCoreParameter("PageNo", std::to_string(pageNo)); +} + +std::string DescribeSmartAccessGatewayClientUsersRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeSmartAccessGatewayClientUsersRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +int DescribeSmartAccessGatewayClientUsersRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeSmartAccessGatewayClientUsersRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeSmartAccessGatewayClientUsersRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void DescribeSmartAccessGatewayClientUsersRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setCoreParameter("SmartAGId", smartAGId); +} + +long DescribeSmartAccessGatewayClientUsersRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeSmartAccessGatewayClientUsersRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeSmartAccessGatewayClientUsersRequest::getUserName()const +{ + return userName_; +} + +void DescribeSmartAccessGatewayClientUsersRequest::setUserName(const std::string& userName) +{ + userName_ = userName; + setCoreParameter("UserName", userName); +} + diff --git a/smartag/src/model/DescribeSmartAccessGatewayClientUsersResult.cc b/smartag/src/model/DescribeSmartAccessGatewayClientUsersResult.cc new file mode 100644 index 000000000..ac1ca0f57 --- /dev/null +++ b/smartag/src/model/DescribeSmartAccessGatewayClientUsersResult.cc @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DescribeSmartAccessGatewayClientUsersResult::DescribeSmartAccessGatewayClientUsersResult() : + ServiceResult() +{} + +DescribeSmartAccessGatewayClientUsersResult::DescribeSmartAccessGatewayClientUsersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSmartAccessGatewayClientUsersResult::~DescribeSmartAccessGatewayClientUsersResult() +{} + +void DescribeSmartAccessGatewayClientUsersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allUsers = value["Users"]["User"]; + for (auto value : allUsers) + { + User usersObject; + if(!value["ClientIp"].isNull()) + usersObject.clientIp = value["ClientIp"].asString(); + if(!value["UserMail"].isNull()) + usersObject.userMail = value["UserMail"].asString(); + if(!value["UserName"].isNull()) + usersObject.userName = value["UserName"].asString(); + if(!value["Bandwidth"].isNull()) + usersObject.bandwidth = std::stoi(value["Bandwidth"].asString()); + users_.push_back(usersObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageNo"].isNull()) + pageNo_ = std::stoi(value["PageNo"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeSmartAccessGatewayClientUsersResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeSmartAccessGatewayClientUsersResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeSmartAccessGatewayClientUsersResult::getPageNo()const +{ + return pageNo_; +} + +std::vector DescribeSmartAccessGatewayClientUsersResult::getUsers()const +{ + return users_; +} + diff --git a/smartag/src/model/DescribeSmartAccessGatewayHaRequest.cc b/smartag/src/model/DescribeSmartAccessGatewayHaRequest.cc index b8a3b5719..9c6a60d2f 100644 --- a/smartag/src/model/DescribeSmartAccessGatewayHaRequest.cc +++ b/smartag/src/model/DescribeSmartAccessGatewayHaRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Smartag::Model::DescribeSmartAccessGatewayHaRequest; - -DescribeSmartAccessGatewayHaRequest::DescribeSmartAccessGatewayHaRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeSmartAccessGatewayHa") -{} - -DescribeSmartAccessGatewayHaRequest::~DescribeSmartAccessGatewayHaRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::DescribeSmartAccessGatewayHaRequest; + +DescribeSmartAccessGatewayHaRequest::DescribeSmartAccessGatewayHaRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DescribeSmartAccessGatewayHa") +{} + +DescribeSmartAccessGatewayHaRequest::~DescribeSmartAccessGatewayHaRequest() +{} + long DescribeSmartAccessGatewayHaRequest::getResourceOwnerId()const { return resourceOwnerId_; @@ -33,7 +33,7 @@ long DescribeSmartAccessGatewayHaRequest::getResourceOwnerId()const void DescribeSmartAccessGatewayHaRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeSmartAccessGatewayHaRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DescribeSmartAccessGatewayHaRequest::getResourceOwnerAccount()const void DescribeSmartAccessGatewayHaRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeSmartAccessGatewayHaRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string DescribeSmartAccessGatewayHaRequest::getRegionId()const void DescribeSmartAccessGatewayHaRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeSmartAccessGatewayHaRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string DescribeSmartAccessGatewayHaRequest::getOwnerAccount()const void DescribeSmartAccessGatewayHaRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DescribeSmartAccessGatewayHaRequest::getSmartAGId()const @@ -77,7 +77,7 @@ std::string DescribeSmartAccessGatewayHaRequest::getSmartAGId()const void DescribeSmartAccessGatewayHaRequest::setSmartAGId(const std::string& smartAGId) { smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); + setCoreParameter("SmartAGId", smartAGId); } long DescribeSmartAccessGatewayHaRequest::getOwnerId()const @@ -88,6 +88,6 @@ long DescribeSmartAccessGatewayHaRequest::getOwnerId()const void DescribeSmartAccessGatewayHaRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/smartag/src/model/DescribeSmartAccessGatewayHaResult.cc b/smartag/src/model/DescribeSmartAccessGatewayHaResult.cc index 72d4c3d4b..97b256ad0 100644 --- a/smartag/src/model/DescribeSmartAccessGatewayHaResult.cc +++ b/smartag/src/model/DescribeSmartAccessGatewayHaResult.cc @@ -1,45 +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::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -DescribeSmartAccessGatewayHaResult::DescribeSmartAccessGatewayHaResult() : - ServiceResult() -{} - -DescribeSmartAccessGatewayHaResult::DescribeSmartAccessGatewayHaResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeSmartAccessGatewayHaResult::~DescribeSmartAccessGatewayHaResult() -{} - -void DescribeSmartAccessGatewayHaResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DescribeSmartAccessGatewayHaResult::DescribeSmartAccessGatewayHaResult() : + ServiceResult() +{} + +DescribeSmartAccessGatewayHaResult::DescribeSmartAccessGatewayHaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSmartAccessGatewayHaResult::~DescribeSmartAccessGatewayHaResult() +{} + +void DescribeSmartAccessGatewayHaResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allLinkBackupInfoList = value["LinkBackupInfoList"]["LinkBackupInfoListItem"]; + for (auto value : allLinkBackupInfoList) + { + LinkBackupInfoListItem linkBackupInfoListObject; + if(!value["LinkLevelBackupState"].isNull()) + linkBackupInfoListObject.linkLevelBackupState = value["LinkLevelBackupState"].asString(); + if(!value["LinkLevelBackupType"].isNull()) + linkBackupInfoListObject.linkLevelBackupType = value["LinkLevelBackupType"].asString(); + if(!value["MainLinkId"].isNull()) + linkBackupInfoListObject.mainLinkId = value["MainLinkId"].asString(); + if(!value["MainLinkState"].isNull()) + linkBackupInfoListObject.mainLinkState = value["MainLinkState"].asString(); + if(!value["BackupLinkId"].isNull()) + linkBackupInfoListObject.backupLinkId = value["BackupLinkId"].asString(); + if(!value["BackupLinkState"].isNull()) + linkBackupInfoListObject.backupLinkState = value["BackupLinkState"].asString(); + linkBackupInfoList_.push_back(linkBackupInfoListObject); + } if(!value["DeviceLevelBackupState"].isNull()) deviceLevelBackupState_ = value["DeviceLevelBackupState"].asString(); if(!value["DeviceLevelBackupType"].isNull()) @@ -48,27 +66,19 @@ void DescribeSmartAccessGatewayHaResult::parse(const std::string &payload) mainDeviceId_ = value["MainDeviceId"].asString(); if(!value["BackupDeviceId"].isNull()) backupDeviceId_ = value["BackupDeviceId"].asString(); - if(!value["LinkLevelBackupState"].isNull()) - linkLevelBackupState_ = value["LinkLevelBackupState"].asString(); - if(!value["LinkLevelBackupType"].isNull()) - linkLevelBackupType_ = value["LinkLevelBackupType"].asString(); - if(!value["MainLinkId"].isNull()) - mainLinkId_ = value["MainLinkId"].asString(); - if(!value["BackupLinkId"].isNull()) - backupLinkId_ = value["BackupLinkId"].asString(); if(!value["SmartAGId"].isNull()) smartAGId_ = value["SmartAGId"].asString(); - -} - + +} + std::string DescribeSmartAccessGatewayHaResult::getDeviceLevelBackupState()const { return deviceLevelBackupState_; } -std::string DescribeSmartAccessGatewayHaResult::getBackupLinkId()const +std::vector DescribeSmartAccessGatewayHaResult::getLinkBackupInfoList()const { - return backupLinkId_; + return linkBackupInfoList_; } std::string DescribeSmartAccessGatewayHaResult::getBackupDeviceId()const @@ -76,16 +86,6 @@ std::string DescribeSmartAccessGatewayHaResult::getBackupDeviceId()const return backupDeviceId_; } -std::string DescribeSmartAccessGatewayHaResult::getLinkLevelBackupType()const -{ - return linkLevelBackupType_; -} - -std::string DescribeSmartAccessGatewayHaResult::getMainLinkId()const -{ - return mainLinkId_; -} - std::string DescribeSmartAccessGatewayHaResult::getSmartAGId()const { return smartAGId_; @@ -96,11 +96,6 @@ std::string DescribeSmartAccessGatewayHaResult::getDeviceLevelBackupType()const return deviceLevelBackupType_; } -std::string DescribeSmartAccessGatewayHaResult::getLinkLevelBackupState()const -{ - return linkLevelBackupState_; -} - std::string DescribeSmartAccessGatewayHaResult::getMainDeviceId()const { return mainDeviceId_; diff --git a/smartag/src/model/DescribeSmartAccessGatewayVersionsRequest.cc b/smartag/src/model/DescribeSmartAccessGatewayVersionsRequest.cc index 8316c87a1..df4849817 100644 --- a/smartag/src/model/DescribeSmartAccessGatewayVersionsRequest.cc +++ b/smartag/src/model/DescribeSmartAccessGatewayVersionsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Smartag::Model::DescribeSmartAccessGatewayVersionsRequest; - -DescribeSmartAccessGatewayVersionsRequest::DescribeSmartAccessGatewayVersionsRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeSmartAccessGatewayVersions") -{} - -DescribeSmartAccessGatewayVersionsRequest::~DescribeSmartAccessGatewayVersionsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::DescribeSmartAccessGatewayVersionsRequest; + +DescribeSmartAccessGatewayVersionsRequest::DescribeSmartAccessGatewayVersionsRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DescribeSmartAccessGatewayVersions") +{} + +DescribeSmartAccessGatewayVersionsRequest::~DescribeSmartAccessGatewayVersionsRequest() +{} + long DescribeSmartAccessGatewayVersionsRequest::getResourceOwnerId()const { return resourceOwnerId_; @@ -33,7 +33,7 @@ long DescribeSmartAccessGatewayVersionsRequest::getResourceOwnerId()const void DescribeSmartAccessGatewayVersionsRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeSmartAccessGatewayVersionsRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DescribeSmartAccessGatewayVersionsRequest::getResourceOwnerAccount() void DescribeSmartAccessGatewayVersionsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeSmartAccessGatewayVersionsRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string DescribeSmartAccessGatewayVersionsRequest::getRegionId()const void DescribeSmartAccessGatewayVersionsRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeSmartAccessGatewayVersionsRequest::getOwnerAccount()const @@ -66,7 +66,18 @@ std::string DescribeSmartAccessGatewayVersionsRequest::getOwnerAccount()const void DescribeSmartAccessGatewayVersionsRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeSmartAccessGatewayVersionsRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void DescribeSmartAccessGatewayVersionsRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setCoreParameter("SmartAGId", smartAGId); } long DescribeSmartAccessGatewayVersionsRequest::getOwnerId()const @@ -77,6 +88,6 @@ long DescribeSmartAccessGatewayVersionsRequest::getOwnerId()const void DescribeSmartAccessGatewayVersionsRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/smartag/src/model/DescribeSmartAccessGatewayVersionsResult.cc b/smartag/src/model/DescribeSmartAccessGatewayVersionsResult.cc index c66852078..adb60a2c9 100644 --- a/smartag/src/model/DescribeSmartAccessGatewayVersionsResult.cc +++ b/smartag/src/model/DescribeSmartAccessGatewayVersionsResult.cc @@ -1,45 +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::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -DescribeSmartAccessGatewayVersionsResult::DescribeSmartAccessGatewayVersionsResult() : - ServiceResult() -{} - -DescribeSmartAccessGatewayVersionsResult::DescribeSmartAccessGatewayVersionsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeSmartAccessGatewayVersionsResult::~DescribeSmartAccessGatewayVersionsResult() -{} - -void DescribeSmartAccessGatewayVersionsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DescribeSmartAccessGatewayVersionsResult::DescribeSmartAccessGatewayVersionsResult() : + ServiceResult() +{} + +DescribeSmartAccessGatewayVersionsResult::DescribeSmartAccessGatewayVersionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSmartAccessGatewayVersionsResult::~DescribeSmartAccessGatewayVersionsResult() +{} + +void DescribeSmartAccessGatewayVersionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); auto allSmartAGVersions = value["SmartAGVersions"]["SmartAGVersion"]; for (auto value : allSmartAGVersions) { @@ -52,9 +52,9 @@ void DescribeSmartAccessGatewayVersionsResult::parse(const std::string &payload) smartAGVersionsObject.createTime = std::stol(value["CreateTime"].asString()); smartAGVersions_.push_back(smartAGVersionsObject); } - -} - + +} + std::vector DescribeSmartAccessGatewayVersionsResult::getSmartAGVersions()const { return smartAGVersions_; diff --git a/smartag/src/model/DescribeSmartAccessGatewaysRequest.cc b/smartag/src/model/DescribeSmartAccessGatewaysRequest.cc index 2f6314fb0..881dd8538 100644 --- a/smartag/src/model/DescribeSmartAccessGatewaysRequest.cc +++ b/smartag/src/model/DescribeSmartAccessGatewaysRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Smartag::Model::DescribeSmartAccessGatewaysRequest; - -DescribeSmartAccessGatewaysRequest::DescribeSmartAccessGatewaysRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeSmartAccessGateways") -{} - -DescribeSmartAccessGatewaysRequest::~DescribeSmartAccessGatewaysRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::DescribeSmartAccessGatewaysRequest; + +DescribeSmartAccessGatewaysRequest::DescribeSmartAccessGatewaysRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DescribeSmartAccessGateways") +{} + +DescribeSmartAccessGatewaysRequest::~DescribeSmartAccessGatewaysRequest() +{} + long DescribeSmartAccessGatewaysRequest::getResourceOwnerId()const { return resourceOwnerId_; @@ -33,7 +33,18 @@ long DescribeSmartAccessGatewaysRequest::getResourceOwnerId()const void DescribeSmartAccessGatewaysRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeSmartAccessGatewaysRequest::getSerialNumber()const +{ + return serialNumber_; +} + +void DescribeSmartAccessGatewaysRequest::setSerialNumber(const std::string& serialNumber) +{ + serialNumber_ = serialNumber; + setCoreParameter("SerialNumber", serialNumber); } std::string DescribeSmartAccessGatewaysRequest::getResourceOwnerAccount()const @@ -44,18 +55,18 @@ std::string DescribeSmartAccessGatewaysRequest::getResourceOwnerAccount()const void DescribeSmartAccessGatewaysRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } -std::string DescribeSmartAccessGatewaysRequest::getRegionId()const +std::string DescribeSmartAccessGatewaysRequest::getAclIds()const { - return regionId_; + return aclIds_; } -void DescribeSmartAccessGatewaysRequest::setRegionId(const std::string& regionId) +void DescribeSmartAccessGatewaysRequest::setAclIds(const std::string& aclIds) { - regionId_ = regionId; - setParameter("RegionId", regionId); + aclIds_ = aclIds; + setCoreParameter("AclIds", aclIds); } std::string DescribeSmartAccessGatewaysRequest::getOwnerAccount()const @@ -66,29 +77,7 @@ std::string DescribeSmartAccessGatewaysRequest::getOwnerAccount()const void DescribeSmartAccessGatewaysRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); -} - -std::string DescribeSmartAccessGatewaysRequest::getName()const -{ - return name_; -} - -void DescribeSmartAccessGatewaysRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); -} - -std::string DescribeSmartAccessGatewaysRequest::getPageSize()const -{ - return pageSize_; -} - -void DescribeSmartAccessGatewaysRequest::setPageSize(const std::string& pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", pageSize); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DescribeSmartAccessGatewaysRequest::getAssociatedCcnId()const @@ -99,18 +88,7 @@ std::string DescribeSmartAccessGatewaysRequest::getAssociatedCcnId()const void DescribeSmartAccessGatewaysRequest::setAssociatedCcnId(const std::string& associatedCcnId) { associatedCcnId_ = associatedCcnId; - setParameter("AssociatedCcnId", associatedCcnId); -} - -std::string DescribeSmartAccessGatewaysRequest::getSmartAGId()const -{ - return smartAGId_; -} - -void DescribeSmartAccessGatewaysRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); + setCoreParameter("AssociatedCcnId", associatedCcnId); } long DescribeSmartAccessGatewaysRequest::getOwnerId()const @@ -121,7 +99,18 @@ long DescribeSmartAccessGatewaysRequest::getOwnerId()const void DescribeSmartAccessGatewaysRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeSmartAccessGatewaysRequest::getUnboundAclIds()const +{ + return unboundAclIds_; +} + +void DescribeSmartAccessGatewaysRequest::setUnboundAclIds(const std::string& unboundAclIds) +{ + unboundAclIds_ = unboundAclIds; + setCoreParameter("UnboundAclIds", unboundAclIds); } std::string DescribeSmartAccessGatewaysRequest::getPageNumber()const @@ -132,7 +121,62 @@ std::string DescribeSmartAccessGatewaysRequest::getPageNumber()const void DescribeSmartAccessGatewaysRequest::setPageNumber(const std::string& pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", pageNumber); + setCoreParameter("PageNumber", pageNumber); +} + +std::string DescribeSmartAccessGatewaysRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeSmartAccessGatewaysRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeSmartAccessGatewaysRequest::getName()const +{ + return name_; +} + +void DescribeSmartAccessGatewaysRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + +std::string DescribeSmartAccessGatewaysRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeSmartAccessGatewaysRequest::setPageSize(const std::string& pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", pageSize); +} + +std::string DescribeSmartAccessGatewaysRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void DescribeSmartAccessGatewaysRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setCoreParameter("SmartAGId", smartAGId); +} + +std::string DescribeSmartAccessGatewaysRequest::getInstanceType()const +{ + return instanceType_; +} + +void DescribeSmartAccessGatewaysRequest::setInstanceType(const std::string& instanceType) +{ + instanceType_ = instanceType; + setCoreParameter("InstanceType", instanceType); } std::string DescribeSmartAccessGatewaysRequest::getStatus()const @@ -143,6 +187,6 @@ std::string DescribeSmartAccessGatewaysRequest::getStatus()const void DescribeSmartAccessGatewaysRequest::setStatus(const std::string& status) { status_ = status; - setParameter("Status", status); + setCoreParameter("Status", status); } diff --git a/smartag/src/model/DescribeSmartAccessGatewaysResult.cc b/smartag/src/model/DescribeSmartAccessGatewaysResult.cc index 0b76f8598..75d9a43b3 100644 --- a/smartag/src/model/DescribeSmartAccessGatewaysResult.cc +++ b/smartag/src/model/DescribeSmartAccessGatewaysResult.cc @@ -1,45 +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::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -DescribeSmartAccessGatewaysResult::DescribeSmartAccessGatewaysResult() : - ServiceResult() -{} - -DescribeSmartAccessGatewaysResult::DescribeSmartAccessGatewaysResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeSmartAccessGatewaysResult::~DescribeSmartAccessGatewaysResult() -{} - -void DescribeSmartAccessGatewaysResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DescribeSmartAccessGatewaysResult::DescribeSmartAccessGatewaysResult() : + ServiceResult() +{} + +DescribeSmartAccessGatewaysResult::DescribeSmartAccessGatewaysResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSmartAccessGatewaysResult::~DescribeSmartAccessGatewaysResult() +{} + +void DescribeSmartAccessGatewaysResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); auto allSmartAccessGateways = value["SmartAccessGateways"]["SmartAccessGateway"]; for (auto value : allSmartAccessGateways) { @@ -74,6 +74,22 @@ void DescribeSmartAccessGatewaysResult::parse(const std::string &payload) smartAccessGatewaysObject.serialNumber = value["SerialNumber"].asString(); if(!value["SecurityLockThreshold"].isNull()) smartAccessGatewaysObject.securityLockThreshold = std::stoi(value["SecurityLockThreshold"].asString()); + if(!value["AclIds"].isNull()) + smartAccessGatewaysObject.aclIds = value["AclIds"].asString(); + if(!value["DataPlan"].isNull()) + smartAccessGatewaysObject.dataPlan = std::stol(value["DataPlan"].asString()); + if(!value["UserCount"].isNull()) + smartAccessGatewaysObject.userCount = std::stoi(value["UserCount"].asString()); + auto allSnatEntries = value["SnatEntries"]["SnatEntry"]; + for (auto value : allSnatEntries) + { + SmartAccessGateway::SnatEntry snatEntriesObject; + if(!value["CidrBlock"].isNull()) + snatEntriesObject.cidrBlock = value["CidrBlock"].asString(); + if(!value["SnatIp"].isNull()) + snatEntriesObject.snatIp = value["SnatIp"].asString(); + smartAccessGatewaysObject.snatEntries.push_back(snatEntriesObject); + } smartAccessGateways_.push_back(smartAccessGatewaysObject); } if(!value["TotalCount"].isNull()) @@ -82,9 +98,9 @@ void DescribeSmartAccessGatewaysResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); - -} - + +} + int DescribeSmartAccessGatewaysResult::getTotalCount()const { return totalCount_; diff --git a/smartag/src/model/DescribeUserFlowStatisticsRequest.cc b/smartag/src/model/DescribeUserFlowStatisticsRequest.cc new file mode 100644 index 000000000..08df46f27 --- /dev/null +++ b/smartag/src/model/DescribeUserFlowStatisticsRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::DescribeUserFlowStatisticsRequest; + +DescribeUserFlowStatisticsRequest::DescribeUserFlowStatisticsRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DescribeUserFlowStatistics") +{} + +DescribeUserFlowStatisticsRequest::~DescribeUserFlowStatisticsRequest() +{} + +long DescribeUserFlowStatisticsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeUserFlowStatisticsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeUserFlowStatisticsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeUserFlowStatisticsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeUserFlowStatisticsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeUserFlowStatisticsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeUserFlowStatisticsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeUserFlowStatisticsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeUserFlowStatisticsRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void DescribeUserFlowStatisticsRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setCoreParameter("SmartAGId", smartAGId); +} + +std::string DescribeUserFlowStatisticsRequest::getStatisticsDate()const +{ + return statisticsDate_; +} + +void DescribeUserFlowStatisticsRequest::setStatisticsDate(const std::string& statisticsDate) +{ + statisticsDate_ = statisticsDate; + setCoreParameter("StatisticsDate", statisticsDate); +} + +std::vector DescribeUserFlowStatisticsRequest::getUserNames()const +{ + return userNames_; +} + +void DescribeUserFlowStatisticsRequest::setUserNames(const std::vector& userNames) +{ + userNames_ = userNames; + for(int i = 0; i!= userNames.size(); i++) + setCoreParameter("UserNames."+ std::to_string(i), userNames.at(i)); +} + +long DescribeUserFlowStatisticsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeUserFlowStatisticsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/smartag/src/model/DescribeUserFlowStatisticsResult.cc b/smartag/src/model/DescribeUserFlowStatisticsResult.cc new file mode 100644 index 000000000..22bacdf7b --- /dev/null +++ b/smartag/src/model/DescribeUserFlowStatisticsResult.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 +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DescribeUserFlowStatisticsResult::DescribeUserFlowStatisticsResult() : + ServiceResult() +{} + +DescribeUserFlowStatisticsResult::DescribeUserFlowStatisticsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeUserFlowStatisticsResult::~DescribeUserFlowStatisticsResult() +{} + +void DescribeUserFlowStatisticsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allSagStatistics = value["SagStatistics"]["Statistics"]; + for (auto value : allSagStatistics) + { + Statistics sagStatisticsObject; + if(!value["UserName"].isNull()) + sagStatisticsObject.userName = value["UserName"].asString(); + if(!value["TotalBytes"].isNull()) + sagStatisticsObject.totalBytes = value["TotalBytes"].asString(); + sagStatistics_.push_back(sagStatisticsObject); + } + +} + +std::vector DescribeUserFlowStatisticsResult::getSagStatistics()const +{ + return sagStatistics_; +} + diff --git a/smartag/src/model/DescribeUserOnlineClientStatisticsRequest.cc b/smartag/src/model/DescribeUserOnlineClientStatisticsRequest.cc new file mode 100644 index 000000000..c4db2d116 --- /dev/null +++ b/smartag/src/model/DescribeUserOnlineClientStatisticsRequest.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 + +using AlibabaCloud::Smartag::Model::DescribeUserOnlineClientStatisticsRequest; + +DescribeUserOnlineClientStatisticsRequest::DescribeUserOnlineClientStatisticsRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DescribeUserOnlineClientStatistics") +{} + +DescribeUserOnlineClientStatisticsRequest::~DescribeUserOnlineClientStatisticsRequest() +{} + +long DescribeUserOnlineClientStatisticsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeUserOnlineClientStatisticsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeUserOnlineClientStatisticsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeUserOnlineClientStatisticsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeUserOnlineClientStatisticsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeUserOnlineClientStatisticsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeUserOnlineClientStatisticsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeUserOnlineClientStatisticsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeUserOnlineClientStatisticsRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void DescribeUserOnlineClientStatisticsRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setCoreParameter("SmartAGId", smartAGId); +} + +std::vector DescribeUserOnlineClientStatisticsRequest::getUserNames()const +{ + return userNames_; +} + +void DescribeUserOnlineClientStatisticsRequest::setUserNames(const std::vector& userNames) +{ + userNames_ = userNames; + for(int i = 0; i!= userNames.size(); i++) + setCoreParameter("UserNames."+ std::to_string(i), userNames.at(i)); +} + +long DescribeUserOnlineClientStatisticsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeUserOnlineClientStatisticsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/smartag/src/model/DescribeUserOnlineClientStatisticsResult.cc b/smartag/src/model/DescribeUserOnlineClientStatisticsResult.cc new file mode 100644 index 000000000..3eca53219 --- /dev/null +++ b/smartag/src/model/DescribeUserOnlineClientStatisticsResult.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 +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DescribeUserOnlineClientStatisticsResult::DescribeUserOnlineClientStatisticsResult() : + ServiceResult() +{} + +DescribeUserOnlineClientStatisticsResult::DescribeUserOnlineClientStatisticsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeUserOnlineClientStatisticsResult::~DescribeUserOnlineClientStatisticsResult() +{} + +void DescribeUserOnlineClientStatisticsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allUserStatistics = value["UserStatistics"]["Statistics"]; + for (auto value : allUserStatistics) + { + Statistics userStatisticsObject; + if(!value["UserName"].isNull()) + userStatisticsObject.userName = value["UserName"].asString(); + if(!value["OnlineCount"].isNull()) + userStatisticsObject.onlineCount = value["OnlineCount"].asString(); + userStatistics_.push_back(userStatisticsObject); + } + +} + +std::vector DescribeUserOnlineClientStatisticsResult::getUserStatistics()const +{ + return userStatistics_; +} + diff --git a/smartag/src/model/DescribeUserOnlineClientsRequest.cc b/smartag/src/model/DescribeUserOnlineClientsRequest.cc new file mode 100644 index 000000000..5153df30c --- /dev/null +++ b/smartag/src/model/DescribeUserOnlineClientsRequest.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::Smartag::Model::DescribeUserOnlineClientsRequest; + +DescribeUserOnlineClientsRequest::DescribeUserOnlineClientsRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DescribeUserOnlineClients") +{} + +DescribeUserOnlineClientsRequest::~DescribeUserOnlineClientsRequest() +{} + +long DescribeUserOnlineClientsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeUserOnlineClientsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeUserOnlineClientsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeUserOnlineClientsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeUserOnlineClientsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeUserOnlineClientsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeUserOnlineClientsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeUserOnlineClientsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeUserOnlineClientsRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void DescribeUserOnlineClientsRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setCoreParameter("SmartAGId", smartAGId); +} + +long DescribeUserOnlineClientsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeUserOnlineClientsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeUserOnlineClientsRequest::getUserName()const +{ + return userName_; +} + +void DescribeUserOnlineClientsRequest::setUserName(const std::string& userName) +{ + userName_ = userName; + setCoreParameter("UserName", userName); +} + diff --git a/smartag/src/model/DescribeUserOnlineClientsResult.cc b/smartag/src/model/DescribeUserOnlineClientsResult.cc new file mode 100644 index 000000000..9b9975ff7 --- /dev/null +++ b/smartag/src/model/DescribeUserOnlineClientsResult.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 +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DescribeUserOnlineClientsResult::DescribeUserOnlineClientsResult() : + ServiceResult() +{} + +DescribeUserOnlineClientsResult::DescribeUserOnlineClientsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeUserOnlineClientsResult::~DescribeUserOnlineClientsResult() +{} + +void DescribeUserOnlineClientsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allUsers = value["Users"]["User"]; + for (auto value : allUsers) + { + User usersObject; + if(!value["ClientIp"].isNull()) + usersObject.clientIp = value["ClientIp"].asString(); + if(!value["OnlineTime"].isNull()) + usersObject.onlineTime = value["OnlineTime"].asString(); + users_.push_back(usersObject); + } + +} + +std::vector DescribeUserOnlineClientsResult::getUsers()const +{ + return users_; +} + diff --git a/smartag/src/model/DetachNetworkOptimizationSagsRequest.cc b/smartag/src/model/DetachNetworkOptimizationSagsRequest.cc new file mode 100644 index 000000000..acca70563 --- /dev/null +++ b/smartag/src/model/DetachNetworkOptimizationSagsRequest.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 + +using AlibabaCloud::Smartag::Model::DetachNetworkOptimizationSagsRequest; + +DetachNetworkOptimizationSagsRequest::DetachNetworkOptimizationSagsRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DetachNetworkOptimizationSags") +{} + +DetachNetworkOptimizationSagsRequest::~DetachNetworkOptimizationSagsRequest() +{} + +long DetachNetworkOptimizationSagsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DetachNetworkOptimizationSagsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DetachNetworkOptimizationSagsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DetachNetworkOptimizationSagsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DetachNetworkOptimizationSagsRequest::getRegionId()const +{ + return regionId_; +} + +void DetachNetworkOptimizationSagsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DetachNetworkOptimizationSagsRequest::getNetworkOptId()const +{ + return networkOptId_; +} + +void DetachNetworkOptimizationSagsRequest::setNetworkOptId(const std::string& networkOptId) +{ + networkOptId_ = networkOptId; + setCoreParameter("NetworkOptId", networkOptId); +} + +std::string DetachNetworkOptimizationSagsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DetachNetworkOptimizationSagsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::vector DetachNetworkOptimizationSagsRequest::getSmartAGIds()const +{ + return smartAGIds_; +} + +void DetachNetworkOptimizationSagsRequest::setSmartAGIds(const std::vector& smartAGIds) +{ + smartAGIds_ = smartAGIds; + for(int i = 0; i!= smartAGIds.size(); i++) + setCoreParameter("SmartAGIds."+ std::to_string(i), smartAGIds.at(i)); +} + +long DetachNetworkOptimizationSagsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DetachNetworkOptimizationSagsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/smartag/src/model/DetachNetworkOptimizationSagsResult.cc b/smartag/src/model/DetachNetworkOptimizationSagsResult.cc new file mode 100644 index 000000000..b46bafbfa --- /dev/null +++ b/smartag/src/model/DetachNetworkOptimizationSagsResult.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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DetachNetworkOptimizationSagsResult::DetachNetworkOptimizationSagsResult() : + ServiceResult() +{} + +DetachNetworkOptimizationSagsResult::DetachNetworkOptimizationSagsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DetachNetworkOptimizationSagsResult::~DetachNetworkOptimizationSagsResult() +{} + +void DetachNetworkOptimizationSagsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/DisassociateACLRequest.cc b/smartag/src/model/DisassociateACLRequest.cc new file mode 100644 index 000000000..7113c0c1e --- /dev/null +++ b/smartag/src/model/DisassociateACLRequest.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::Smartag::Model::DisassociateACLRequest; + +DisassociateACLRequest::DisassociateACLRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DisassociateACL") +{} + +DisassociateACLRequest::~DisassociateACLRequest() +{} + +std::string DisassociateACLRequest::getAclId()const +{ + return aclId_; +} + +void DisassociateACLRequest::setAclId(const std::string& aclId) +{ + aclId_ = aclId; + setCoreParameter("AclId", aclId); +} + +long DisassociateACLRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DisassociateACLRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DisassociateACLRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DisassociateACLRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DisassociateACLRequest::getRegionId()const +{ + return regionId_; +} + +void DisassociateACLRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DisassociateACLRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DisassociateACLRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DisassociateACLRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void DisassociateACLRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setCoreParameter("SmartAGId", smartAGId); +} + +long DisassociateACLRequest::getOwnerId()const +{ + return ownerId_; +} + +void DisassociateACLRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/smartag/src/model/DisassociateACLResult.cc b/smartag/src/model/DisassociateACLResult.cc new file mode 100644 index 000000000..e068e7f18 --- /dev/null +++ b/smartag/src/model/DisassociateACLResult.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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DisassociateACLResult::DisassociateACLResult() : + ServiceResult() +{} + +DisassociateACLResult::DisassociateACLResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DisassociateACLResult::~DisassociateACLResult() +{} + +void DisassociateACLResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/DowngradeSmartAccessGatewayRequest.cc b/smartag/src/model/DowngradeSmartAccessGatewayRequest.cc new file mode 100644 index 000000000..0df9461aa --- /dev/null +++ b/smartag/src/model/DowngradeSmartAccessGatewayRequest.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::Smartag::Model::DowngradeSmartAccessGatewayRequest; + +DowngradeSmartAccessGatewayRequest::DowngradeSmartAccessGatewayRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DowngradeSmartAccessGateway") +{} + +DowngradeSmartAccessGatewayRequest::~DowngradeSmartAccessGatewayRequest() +{} + +long DowngradeSmartAccessGatewayRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DowngradeSmartAccessGatewayRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +bool DowngradeSmartAccessGatewayRequest::getAutoPay()const +{ + return autoPay_; +} + +void DowngradeSmartAccessGatewayRequest::setAutoPay(bool autoPay) +{ + autoPay_ = autoPay; + setCoreParameter("AutoPay", autoPay ? "true" : "false"); +} + +long DowngradeSmartAccessGatewayRequest::getBandWidthSpec()const +{ + return bandWidthSpec_; +} + +void DowngradeSmartAccessGatewayRequest::setBandWidthSpec(long bandWidthSpec) +{ + bandWidthSpec_ = bandWidthSpec; + setCoreParameter("BandWidthSpec", std::to_string(bandWidthSpec)); +} + +std::string DowngradeSmartAccessGatewayRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DowngradeSmartAccessGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DowngradeSmartAccessGatewayRequest::getRegionId()const +{ + return regionId_; +} + +void DowngradeSmartAccessGatewayRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DowngradeSmartAccessGatewayRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DowngradeSmartAccessGatewayRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +int DowngradeSmartAccessGatewayRequest::getUserCount()const +{ + return userCount_; +} + +void DowngradeSmartAccessGatewayRequest::setUserCount(int userCount) +{ + userCount_ = userCount; + setCoreParameter("UserCount", std::to_string(userCount)); +} + +std::string DowngradeSmartAccessGatewayRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void DowngradeSmartAccessGatewayRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setCoreParameter("SmartAGId", smartAGId); +} + +long DowngradeSmartAccessGatewayRequest::getOwnerId()const +{ + return ownerId_; +} + +void DowngradeSmartAccessGatewayRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +long DowngradeSmartAccessGatewayRequest::getDataPlan()const +{ + return dataPlan_; +} + +void DowngradeSmartAccessGatewayRequest::setDataPlan(long dataPlan) +{ + dataPlan_ = dataPlan; + setCoreParameter("DataPlan", std::to_string(dataPlan)); +} + diff --git a/smartag/src/model/DowngradeSmartAccessGatewayResult.cc b/smartag/src/model/DowngradeSmartAccessGatewayResult.cc new file mode 100644 index 000000000..accea503b --- /dev/null +++ b/smartag/src/model/DowngradeSmartAccessGatewayResult.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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DowngradeSmartAccessGatewayResult::DowngradeSmartAccessGatewayResult() : + ServiceResult() +{} + +DowngradeSmartAccessGatewayResult::DowngradeSmartAccessGatewayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DowngradeSmartAccessGatewayResult::~DowngradeSmartAccessGatewayResult() +{} + +void DowngradeSmartAccessGatewayResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["OrderId"].isNull()) + orderId_ = value["OrderId"].asString(); + +} + +std::string DowngradeSmartAccessGatewayResult::getOrderId()const +{ + return orderId_; +} + diff --git a/smartag/src/model/GetCloudConnectNetworkUseLimitRequest.cc b/smartag/src/model/GetCloudConnectNetworkUseLimitRequest.cc index b9a58b926..74d53dd37 100644 --- a/smartag/src/model/GetCloudConnectNetworkUseLimitRequest.cc +++ b/smartag/src/model/GetCloudConnectNetworkUseLimitRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Smartag::Model::GetCloudConnectNetworkUseLimitRequest; - -GetCloudConnectNetworkUseLimitRequest::GetCloudConnectNetworkUseLimitRequest() : - RpcServiceRequest("smartag", "2018-03-13", "GetCloudConnectNetworkUseLimit") -{} - -GetCloudConnectNetworkUseLimitRequest::~GetCloudConnectNetworkUseLimitRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::GetCloudConnectNetworkUseLimitRequest; + +GetCloudConnectNetworkUseLimitRequest::GetCloudConnectNetworkUseLimitRequest() : + RpcServiceRequest("smartag", "2018-03-13", "GetCloudConnectNetworkUseLimit") +{} + +GetCloudConnectNetworkUseLimitRequest::~GetCloudConnectNetworkUseLimitRequest() +{} + long GetCloudConnectNetworkUseLimitRequest::getResourceOwnerId()const { return resourceOwnerId_; @@ -33,7 +33,7 @@ long GetCloudConnectNetworkUseLimitRequest::getResourceOwnerId()const void GetCloudConnectNetworkUseLimitRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string GetCloudConnectNetworkUseLimitRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string GetCloudConnectNetworkUseLimitRequest::getResourceOwnerAccount()cons void GetCloudConnectNetworkUseLimitRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string GetCloudConnectNetworkUseLimitRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string GetCloudConnectNetworkUseLimitRequest::getRegionId()const void GetCloudConnectNetworkUseLimitRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string GetCloudConnectNetworkUseLimitRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string GetCloudConnectNetworkUseLimitRequest::getOwnerAccount()const void GetCloudConnectNetworkUseLimitRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long GetCloudConnectNetworkUseLimitRequest::getOwnerId()const @@ -77,6 +77,6 @@ long GetCloudConnectNetworkUseLimitRequest::getOwnerId()const void GetCloudConnectNetworkUseLimitRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/smartag/src/model/GetCloudConnectNetworkUseLimitResult.cc b/smartag/src/model/GetCloudConnectNetworkUseLimitResult.cc index dba346fac..55e8f5a92 100644 --- a/smartag/src/model/GetCloudConnectNetworkUseLimitResult.cc +++ b/smartag/src/model/GetCloudConnectNetworkUseLimitResult.cc @@ -1,52 +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::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -GetCloudConnectNetworkUseLimitResult::GetCloudConnectNetworkUseLimitResult() : - ServiceResult() -{} - -GetCloudConnectNetworkUseLimitResult::GetCloudConnectNetworkUseLimitResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetCloudConnectNetworkUseLimitResult::~GetCloudConnectNetworkUseLimitResult() -{} - -void GetCloudConnectNetworkUseLimitResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +GetCloudConnectNetworkUseLimitResult::GetCloudConnectNetworkUseLimitResult() : + ServiceResult() +{} + +GetCloudConnectNetworkUseLimitResult::GetCloudConnectNetworkUseLimitResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetCloudConnectNetworkUseLimitResult::~GetCloudConnectNetworkUseLimitResult() +{} + +void GetCloudConnectNetworkUseLimitResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); if(!value["TotalAmount"].isNull()) totalAmount_ = std::stoi(value["TotalAmount"].asString()); if(!value["UsedAmount"].isNull()) usedAmount_ = std::stoi(value["UsedAmount"].asString()); - -} - + +} + int GetCloudConnectNetworkUseLimitResult::getUsedAmount()const { return usedAmount_; diff --git a/smartag/src/model/GetSmartAccessGatewayUseLimitRequest.cc b/smartag/src/model/GetSmartAccessGatewayUseLimitRequest.cc index 7764c8484..5565e386e 100644 --- a/smartag/src/model/GetSmartAccessGatewayUseLimitRequest.cc +++ b/smartag/src/model/GetSmartAccessGatewayUseLimitRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Smartag::Model::GetSmartAccessGatewayUseLimitRequest; - -GetSmartAccessGatewayUseLimitRequest::GetSmartAccessGatewayUseLimitRequest() : - RpcServiceRequest("smartag", "2018-03-13", "GetSmartAccessGatewayUseLimit") -{} - -GetSmartAccessGatewayUseLimitRequest::~GetSmartAccessGatewayUseLimitRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::GetSmartAccessGatewayUseLimitRequest; + +GetSmartAccessGatewayUseLimitRequest::GetSmartAccessGatewayUseLimitRequest() : + RpcServiceRequest("smartag", "2018-03-13", "GetSmartAccessGatewayUseLimit") +{} + +GetSmartAccessGatewayUseLimitRequest::~GetSmartAccessGatewayUseLimitRequest() +{} + long GetSmartAccessGatewayUseLimitRequest::getResourceOwnerId()const { return resourceOwnerId_; @@ -33,7 +33,7 @@ long GetSmartAccessGatewayUseLimitRequest::getResourceOwnerId()const void GetSmartAccessGatewayUseLimitRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string GetSmartAccessGatewayUseLimitRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string GetSmartAccessGatewayUseLimitRequest::getResourceOwnerAccount()const void GetSmartAccessGatewayUseLimitRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string GetSmartAccessGatewayUseLimitRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string GetSmartAccessGatewayUseLimitRequest::getRegionId()const void GetSmartAccessGatewayUseLimitRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string GetSmartAccessGatewayUseLimitRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string GetSmartAccessGatewayUseLimitRequest::getOwnerAccount()const void GetSmartAccessGatewayUseLimitRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long GetSmartAccessGatewayUseLimitRequest::getOwnerId()const @@ -77,6 +77,6 @@ long GetSmartAccessGatewayUseLimitRequest::getOwnerId()const void GetSmartAccessGatewayUseLimitRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/smartag/src/model/GetSmartAccessGatewayUseLimitResult.cc b/smartag/src/model/GetSmartAccessGatewayUseLimitResult.cc index 91328ff8d..5736e6ba1 100644 --- a/smartag/src/model/GetSmartAccessGatewayUseLimitResult.cc +++ b/smartag/src/model/GetSmartAccessGatewayUseLimitResult.cc @@ -1,52 +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::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -GetSmartAccessGatewayUseLimitResult::GetSmartAccessGatewayUseLimitResult() : - ServiceResult() -{} - -GetSmartAccessGatewayUseLimitResult::GetSmartAccessGatewayUseLimitResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetSmartAccessGatewayUseLimitResult::~GetSmartAccessGatewayUseLimitResult() -{} - -void GetSmartAccessGatewayUseLimitResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +GetSmartAccessGatewayUseLimitResult::GetSmartAccessGatewayUseLimitResult() : + ServiceResult() +{} + +GetSmartAccessGatewayUseLimitResult::GetSmartAccessGatewayUseLimitResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetSmartAccessGatewayUseLimitResult::~GetSmartAccessGatewayUseLimitResult() +{} + +void GetSmartAccessGatewayUseLimitResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); if(!value["TotalAmount"].isNull()) totalAmount_ = std::stoi(value["TotalAmount"].asString()); if(!value["UsedAmount"].isNull()) usedAmount_ = std::stoi(value["UsedAmount"].asString()); - -} - + +} + int GetSmartAccessGatewayUseLimitResult::getUsedAmount()const { return usedAmount_; diff --git a/smartag/src/model/GrantInstanceToCbnRequest.cc b/smartag/src/model/GrantInstanceToCbnRequest.cc new file mode 100644 index 000000000..cb0c4e318 --- /dev/null +++ b/smartag/src/model/GrantInstanceToCbnRequest.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::Smartag::Model::GrantInstanceToCbnRequest; + +GrantInstanceToCbnRequest::GrantInstanceToCbnRequest() : + RpcServiceRequest("smartag", "2018-03-13", "GrantInstanceToCbn") +{} + +GrantInstanceToCbnRequest::~GrantInstanceToCbnRequest() +{} + +long GrantInstanceToCbnRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void GrantInstanceToCbnRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string GrantInstanceToCbnRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void GrantInstanceToCbnRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string GrantInstanceToCbnRequest::getRegionId()const +{ + return regionId_; +} + +void GrantInstanceToCbnRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string GrantInstanceToCbnRequest::getCenUid()const +{ + return cenUid_; +} + +void GrantInstanceToCbnRequest::setCenUid(const std::string& cenUid) +{ + cenUid_ = cenUid; + setCoreParameter("CenUid", cenUid); +} + +std::string GrantInstanceToCbnRequest::getCenInstanceId()const +{ + return cenInstanceId_; +} + +void GrantInstanceToCbnRequest::setCenInstanceId(const std::string& cenInstanceId) +{ + cenInstanceId_ = cenInstanceId; + setCoreParameter("CenInstanceId", cenInstanceId); +} + +std::string GrantInstanceToCbnRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void GrantInstanceToCbnRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string GrantInstanceToCbnRequest::getCcnInstanceId()const +{ + return ccnInstanceId_; +} + +void GrantInstanceToCbnRequest::setCcnInstanceId(const std::string& ccnInstanceId) +{ + ccnInstanceId_ = ccnInstanceId; + setCoreParameter("CcnInstanceId", ccnInstanceId); +} + +long GrantInstanceToCbnRequest::getOwnerId()const +{ + return ownerId_; +} + +void GrantInstanceToCbnRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/smartag/src/model/GrantInstanceToCbnResult.cc b/smartag/src/model/GrantInstanceToCbnResult.cc new file mode 100644 index 000000000..fb18a5c67 --- /dev/null +++ b/smartag/src/model/GrantInstanceToCbnResult.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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +GrantInstanceToCbnResult::GrantInstanceToCbnResult() : + ServiceResult() +{} + +GrantInstanceToCbnResult::GrantInstanceToCbnResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GrantInstanceToCbnResult::~GrantInstanceToCbnResult() +{} + +void GrantInstanceToCbnResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/KickOutClientsRequest.cc b/smartag/src/model/KickOutClientsRequest.cc new file mode 100644 index 000000000..3113df39e --- /dev/null +++ b/smartag/src/model/KickOutClientsRequest.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::Smartag::Model::KickOutClientsRequest; + +KickOutClientsRequest::KickOutClientsRequest() : + RpcServiceRequest("smartag", "2018-03-13", "KickOutClients") +{} + +KickOutClientsRequest::~KickOutClientsRequest() +{} + +long KickOutClientsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void KickOutClientsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string KickOutClientsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void KickOutClientsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string KickOutClientsRequest::getRegionId()const +{ + return regionId_; +} + +void KickOutClientsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string KickOutClientsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void KickOutClientsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string KickOutClientsRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void KickOutClientsRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setCoreParameter("SmartAGId", smartAGId); +} + +long KickOutClientsRequest::getOwnerId()const +{ + return ownerId_; +} + +void KickOutClientsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string KickOutClientsRequest::getUsername()const +{ + return username_; +} + +void KickOutClientsRequest::setUsername(const std::string& username) +{ + username_ = username; + setCoreParameter("Username", username); +} + diff --git a/smartag/src/model/KickOutClientsResult.cc b/smartag/src/model/KickOutClientsResult.cc new file mode 100644 index 000000000..809ecc1bc --- /dev/null +++ b/smartag/src/model/KickOutClientsResult.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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +KickOutClientsResult::KickOutClientsResult() : + ServiceResult() +{} + +KickOutClientsResult::KickOutClientsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +KickOutClientsResult::~KickOutClientsResult() +{} + +void KickOutClientsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/ModifyACLRequest.cc b/smartag/src/model/ModifyACLRequest.cc new file mode 100644 index 000000000..8e40aeb40 --- /dev/null +++ b/smartag/src/model/ModifyACLRequest.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::Smartag::Model::ModifyACLRequest; + +ModifyACLRequest::ModifyACLRequest() : + RpcServiceRequest("smartag", "2018-03-13", "ModifyACL") +{} + +ModifyACLRequest::~ModifyACLRequest() +{} + +std::string ModifyACLRequest::getAclId()const +{ + return aclId_; +} + +void ModifyACLRequest::setAclId(const std::string& aclId) +{ + aclId_ = aclId; + setCoreParameter("AclId", aclId); +} + +long ModifyACLRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyACLRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyACLRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyACLRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyACLRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyACLRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ModifyACLRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyACLRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyACLRequest::getName()const +{ + return name_; +} + +void ModifyACLRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + +long ModifyACLRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyACLRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/smartag/src/model/ModifyACLResult.cc b/smartag/src/model/ModifyACLResult.cc new file mode 100644 index 000000000..234a87e51 --- /dev/null +++ b/smartag/src/model/ModifyACLResult.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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +ModifyACLResult::ModifyACLResult() : + ServiceResult() +{} + +ModifyACLResult::ModifyACLResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyACLResult::~ModifyACLResult() +{} + +void ModifyACLResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/ModifyACLRuleRequest.cc b/smartag/src/model/ModifyACLRuleRequest.cc new file mode 100644 index 000000000..5aa6f6f2b --- /dev/null +++ b/smartag/src/model/ModifyACLRuleRequest.cc @@ -0,0 +1,203 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::ModifyACLRuleRequest; + +ModifyACLRuleRequest::ModifyACLRuleRequest() : + RpcServiceRequest("smartag", "2018-03-13", "ModifyACLRule") +{} + +ModifyACLRuleRequest::~ModifyACLRuleRequest() +{} + +std::string ModifyACLRuleRequest::getAclId()const +{ + return aclId_; +} + +void ModifyACLRuleRequest::setAclId(const std::string& aclId) +{ + aclId_ = aclId; + setCoreParameter("AclId", aclId); +} + +long ModifyACLRuleRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyACLRuleRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyACLRuleRequest::getSourcePortRange()const +{ + return sourcePortRange_; +} + +void ModifyACLRuleRequest::setSourcePortRange(const std::string& sourcePortRange) +{ + sourcePortRange_ = sourcePortRange; + setCoreParameter("SourcePortRange", sourcePortRange); +} + +std::string ModifyACLRuleRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyACLRuleRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyACLRuleRequest::getIpProtocol()const +{ + return ipProtocol_; +} + +void ModifyACLRuleRequest::setIpProtocol(const std::string& ipProtocol) +{ + ipProtocol_ = ipProtocol; + setCoreParameter("IpProtocol", ipProtocol); +} + +std::string ModifyACLRuleRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyACLRuleRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyACLRuleRequest::getSourceCidr()const +{ + return sourceCidr_; +} + +void ModifyACLRuleRequest::setSourceCidr(const std::string& sourceCidr) +{ + sourceCidr_ = sourceCidr; + setCoreParameter("SourceCidr", sourceCidr); +} + +std::string ModifyACLRuleRequest::getDescription()const +{ + return description_; +} + +void ModifyACLRuleRequest::setDescription(const std::string& description) +{ + description_ = description; + setCoreParameter("Description", description); +} + +long ModifyACLRuleRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyACLRuleRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +int ModifyACLRuleRequest::getPriority()const +{ + return priority_; +} + +void ModifyACLRuleRequest::setPriority(int priority) +{ + priority_ = priority; + setCoreParameter("Priority", std::to_string(priority)); +} + +std::string ModifyACLRuleRequest::getAcrId()const +{ + return acrId_; +} + +void ModifyACLRuleRequest::setAcrId(const std::string& acrId) +{ + acrId_ = acrId; + setCoreParameter("AcrId", acrId); +} + +std::string ModifyACLRuleRequest::getDestCidr()const +{ + return destCidr_; +} + +void ModifyACLRuleRequest::setDestCidr(const std::string& destCidr) +{ + destCidr_ = destCidr; + setCoreParameter("DestCidr", destCidr); +} + +std::string ModifyACLRuleRequest::getDestPortRange()const +{ + return destPortRange_; +} + +void ModifyACLRuleRequest::setDestPortRange(const std::string& destPortRange) +{ + destPortRange_ = destPortRange; + setCoreParameter("DestPortRange", destPortRange); +} + +std::string ModifyACLRuleRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyACLRuleRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ModifyACLRuleRequest::getDirection()const +{ + return direction_; +} + +void ModifyACLRuleRequest::setDirection(const std::string& direction) +{ + direction_ = direction; + setCoreParameter("Direction", direction); +} + +std::string ModifyACLRuleRequest::getPolicy()const +{ + return policy_; +} + +void ModifyACLRuleRequest::setPolicy(const std::string& policy) +{ + policy_ = policy; + setCoreParameter("Policy", policy); +} + diff --git a/smartag/src/model/ModifyACLRuleResult.cc b/smartag/src/model/ModifyACLRuleResult.cc new file mode 100644 index 000000000..a2738a734 --- /dev/null +++ b/smartag/src/model/ModifyACLRuleResult.cc @@ -0,0 +1,129 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +ModifyACLRuleResult::ModifyACLRuleResult() : + ServiceResult() +{} + +ModifyACLRuleResult::ModifyACLRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyACLRuleResult::~ModifyACLRuleResult() +{} + +void ModifyACLRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["AcrId"].isNull()) + acrId_ = value["AcrId"].asString(); + if(!value["AclId"].isNull()) + aclId_ = value["AclId"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["Direction"].isNull()) + direction_ = value["Direction"].asString(); + if(!value["SourceCidr"].isNull()) + sourceCidr_ = value["SourceCidr"].asString(); + if(!value["DestCidr"].isNull()) + destCidr_ = value["DestCidr"].asString(); + if(!value["IpProtocol"].isNull()) + ipProtocol_ = value["IpProtocol"].asString(); + if(!value["SourcePortRange"].isNull()) + sourcePortRange_ = value["SourcePortRange"].asString(); + if(!value["DestPortRange"].isNull()) + destPortRange_ = value["DestPortRange"].asString(); + if(!value["Policy"].isNull()) + policy_ = value["Policy"].asString(); + if(!value["Priority"].isNull()) + priority_ = std::stoi(value["Priority"].asString()); + if(!value["GmtCreate"].isNull()) + gmtCreate_ = std::stol(value["GmtCreate"].asString()); + +} + +std::string ModifyACLRuleResult::getPolicy()const +{ + return policy_; +} + +long ModifyACLRuleResult::getGmtCreate()const +{ + return gmtCreate_; +} + +std::string ModifyACLRuleResult::getDescription()const +{ + return description_; +} + +std::string ModifyACLRuleResult::getDestCidr()const +{ + return destCidr_; +} + +std::string ModifyACLRuleResult::getSourcePortRange()const +{ + return sourcePortRange_; +} + +std::string ModifyACLRuleResult::getSourceCidr()const +{ + return sourceCidr_; +} + +int ModifyACLRuleResult::getPriority()const +{ + return priority_; +} + +std::string ModifyACLRuleResult::getAclId()const +{ + return aclId_; +} + +std::string ModifyACLRuleResult::getAcrId()const +{ + return acrId_; +} + +std::string ModifyACLRuleResult::getIpProtocol()const +{ + return ipProtocol_; +} + +std::string ModifyACLRuleResult::getDestPortRange()const +{ + return destPortRange_; +} + +std::string ModifyACLRuleResult::getDirection()const +{ + return direction_; +} + diff --git a/smartag/src/model/ModifyCloudConnectNetworkRequest.cc b/smartag/src/model/ModifyCloudConnectNetworkRequest.cc index 25a915958..2e1412ebb 100644 --- a/smartag/src/model/ModifyCloudConnectNetworkRequest.cc +++ b/smartag/src/model/ModifyCloudConnectNetworkRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Smartag::Model::ModifyCloudConnectNetworkRequest; - -ModifyCloudConnectNetworkRequest::ModifyCloudConnectNetworkRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ModifyCloudConnectNetwork") -{} - -ModifyCloudConnectNetworkRequest::~ModifyCloudConnectNetworkRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::ModifyCloudConnectNetworkRequest; + +ModifyCloudConnectNetworkRequest::ModifyCloudConnectNetworkRequest() : + RpcServiceRequest("smartag", "2018-03-13", "ModifyCloudConnectNetwork") +{} + +ModifyCloudConnectNetworkRequest::~ModifyCloudConnectNetworkRequest() +{} + long ModifyCloudConnectNetworkRequest::getResourceOwnerId()const { return resourceOwnerId_; @@ -33,7 +33,7 @@ long ModifyCloudConnectNetworkRequest::getResourceOwnerId()const void ModifyCloudConnectNetworkRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyCloudConnectNetworkRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string ModifyCloudConnectNetworkRequest::getResourceOwnerAccount()const void ModifyCloudConnectNetworkRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ModifyCloudConnectNetworkRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string ModifyCloudConnectNetworkRequest::getRegionId()const void ModifyCloudConnectNetworkRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifyCloudConnectNetworkRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string ModifyCloudConnectNetworkRequest::getOwnerAccount()const void ModifyCloudConnectNetworkRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string ModifyCloudConnectNetworkRequest::getCcnId()const @@ -77,7 +77,7 @@ std::string ModifyCloudConnectNetworkRequest::getCcnId()const void ModifyCloudConnectNetworkRequest::setCcnId(const std::string& ccnId) { ccnId_ = ccnId; - setParameter("CcnId", ccnId); + setCoreParameter("CcnId", ccnId); } std::string ModifyCloudConnectNetworkRequest::getName()const @@ -88,7 +88,18 @@ std::string ModifyCloudConnectNetworkRequest::getName()const void ModifyCloudConnectNetworkRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); +} + +std::string ModifyCloudConnectNetworkRequest::getCidrBlock()const +{ + return cidrBlock_; +} + +void ModifyCloudConnectNetworkRequest::setCidrBlock(const std::string& cidrBlock) +{ + cidrBlock_ = cidrBlock; + setCoreParameter("CidrBlock", cidrBlock); } std::string ModifyCloudConnectNetworkRequest::getDescription()const @@ -99,7 +110,18 @@ std::string ModifyCloudConnectNetworkRequest::getDescription()const void ModifyCloudConnectNetworkRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); +} + +std::string ModifyCloudConnectNetworkRequest::getSnatCidrBlock()const +{ + return snatCidrBlock_; +} + +void ModifyCloudConnectNetworkRequest::setSnatCidrBlock(const std::string& snatCidrBlock) +{ + snatCidrBlock_ = snatCidrBlock; + setCoreParameter("SnatCidrBlock", snatCidrBlock); } long ModifyCloudConnectNetworkRequest::getOwnerId()const @@ -110,6 +132,6 @@ long ModifyCloudConnectNetworkRequest::getOwnerId()const void ModifyCloudConnectNetworkRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/smartag/src/model/ModifyCloudConnectNetworkResult.cc b/smartag/src/model/ModifyCloudConnectNetworkResult.cc index e650bb240..698dc3a95 100644 --- a/smartag/src/model/ModifyCloudConnectNetworkResult.cc +++ b/smartag/src/model/ModifyCloudConnectNetworkResult.cc @@ -1,45 +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::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -ModifyCloudConnectNetworkResult::ModifyCloudConnectNetworkResult() : - ServiceResult() -{} - -ModifyCloudConnectNetworkResult::ModifyCloudConnectNetworkResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyCloudConnectNetworkResult::~ModifyCloudConnectNetworkResult() -{} - -void ModifyCloudConnectNetworkResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +ModifyCloudConnectNetworkResult::ModifyCloudConnectNetworkResult() : + ServiceResult() +{} + +ModifyCloudConnectNetworkResult::ModifyCloudConnectNetworkResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyCloudConnectNetworkResult::~ModifyCloudConnectNetworkResult() +{} + +void ModifyCloudConnectNetworkResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/ModifyNetworkOptimizationRequest.cc b/smartag/src/model/ModifyNetworkOptimizationRequest.cc new file mode 100644 index 000000000..b1f315ab3 --- /dev/null +++ b/smartag/src/model/ModifyNetworkOptimizationRequest.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::Smartag::Model::ModifyNetworkOptimizationRequest; + +ModifyNetworkOptimizationRequest::ModifyNetworkOptimizationRequest() : + RpcServiceRequest("smartag", "2018-03-13", "ModifyNetworkOptimization") +{} + +ModifyNetworkOptimizationRequest::~ModifyNetworkOptimizationRequest() +{} + +long ModifyNetworkOptimizationRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyNetworkOptimizationRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyNetworkOptimizationRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyNetworkOptimizationRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyNetworkOptimizationRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyNetworkOptimizationRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ModifyNetworkOptimizationRequest::getNetworkOptId()const +{ + return networkOptId_; +} + +void ModifyNetworkOptimizationRequest::setNetworkOptId(const std::string& networkOptId) +{ + networkOptId_ = networkOptId; + setCoreParameter("NetworkOptId", networkOptId); +} + +std::string ModifyNetworkOptimizationRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyNetworkOptimizationRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyNetworkOptimizationRequest::getName()const +{ + return name_; +} + +void ModifyNetworkOptimizationRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + +long ModifyNetworkOptimizationRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyNetworkOptimizationRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/smartag/src/model/ModifyNetworkOptimizationResult.cc b/smartag/src/model/ModifyNetworkOptimizationResult.cc new file mode 100644 index 000000000..0433d74a9 --- /dev/null +++ b/smartag/src/model/ModifyNetworkOptimizationResult.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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +ModifyNetworkOptimizationResult::ModifyNetworkOptimizationResult() : + ServiceResult() +{} + +ModifyNetworkOptimizationResult::ModifyNetworkOptimizationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyNetworkOptimizationResult::~ModifyNetworkOptimizationResult() +{} + +void ModifyNetworkOptimizationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/ModifySerialNumberRequest.cc b/smartag/src/model/ModifySerialNumberRequest.cc new file mode 100644 index 000000000..fc339ae52 --- /dev/null +++ b/smartag/src/model/ModifySerialNumberRequest.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::Smartag::Model::ModifySerialNumberRequest; + +ModifySerialNumberRequest::ModifySerialNumberRequest() : + RpcServiceRequest("smartag", "2018-03-13", "ModifySerialNumber") +{} + +ModifySerialNumberRequest::~ModifySerialNumberRequest() +{} + +long ModifySerialNumberRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifySerialNumberRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifySerialNumberRequest::getSerialNumber()const +{ + return serialNumber_; +} + +void ModifySerialNumberRequest::setSerialNumber(const std::string& serialNumber) +{ + serialNumber_ = serialNumber; + setCoreParameter("SerialNumber", serialNumber); +} + +std::string ModifySerialNumberRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifySerialNumberRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifySerialNumberRequest::getRegionId()const +{ + return regionId_; +} + +void ModifySerialNumberRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ModifySerialNumberRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifySerialNumberRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string ModifySerialNumberRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void ModifySerialNumberRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setCoreParameter("SmartAGId", smartAGId); +} + +long ModifySerialNumberRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifySerialNumberRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/smartag/src/model/ModifySerialNumberResult.cc b/smartag/src/model/ModifySerialNumberResult.cc new file mode 100644 index 000000000..04bcad212 --- /dev/null +++ b/smartag/src/model/ModifySerialNumberResult.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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +ModifySerialNumberResult::ModifySerialNumberResult() : + ServiceResult() +{} + +ModifySerialNumberResult::ModifySerialNumberResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifySerialNumberResult::~ModifySerialNumberResult() +{} + +void ModifySerialNumberResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/ModifySmartAccessGatewayClientUserRequest.cc b/smartag/src/model/ModifySmartAccessGatewayClientUserRequest.cc new file mode 100644 index 000000000..3ea714318 --- /dev/null +++ b/smartag/src/model/ModifySmartAccessGatewayClientUserRequest.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::Smartag::Model::ModifySmartAccessGatewayClientUserRequest; + +ModifySmartAccessGatewayClientUserRequest::ModifySmartAccessGatewayClientUserRequest() : + RpcServiceRequest("smartag", "2018-03-13", "ModifySmartAccessGatewayClientUser") +{} + +ModifySmartAccessGatewayClientUserRequest::~ModifySmartAccessGatewayClientUserRequest() +{} + +long ModifySmartAccessGatewayClientUserRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifySmartAccessGatewayClientUserRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifySmartAccessGatewayClientUserRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifySmartAccessGatewayClientUserRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifySmartAccessGatewayClientUserRequest::getRegionId()const +{ + return regionId_; +} + +void ModifySmartAccessGatewayClientUserRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +int ModifySmartAccessGatewayClientUserRequest::getBandwidth()const +{ + return bandwidth_; +} + +void ModifySmartAccessGatewayClientUserRequest::setBandwidth(int bandwidth) +{ + bandwidth_ = bandwidth; + setCoreParameter("Bandwidth", std::to_string(bandwidth)); +} + +std::string ModifySmartAccessGatewayClientUserRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifySmartAccessGatewayClientUserRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string ModifySmartAccessGatewayClientUserRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void ModifySmartAccessGatewayClientUserRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setCoreParameter("SmartAGId", smartAGId); +} + +long ModifySmartAccessGatewayClientUserRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifySmartAccessGatewayClientUserRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifySmartAccessGatewayClientUserRequest::getUserName()const +{ + return userName_; +} + +void ModifySmartAccessGatewayClientUserRequest::setUserName(const std::string& userName) +{ + userName_ = userName; + setCoreParameter("UserName", userName); +} + diff --git a/smartag/src/model/ModifySmartAccessGatewayClientUserResult.cc b/smartag/src/model/ModifySmartAccessGatewayClientUserResult.cc new file mode 100644 index 000000000..5eaa1d75f --- /dev/null +++ b/smartag/src/model/ModifySmartAccessGatewayClientUserResult.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +ModifySmartAccessGatewayClientUserResult::ModifySmartAccessGatewayClientUserResult() : + ServiceResult() +{} + +ModifySmartAccessGatewayClientUserResult::ModifySmartAccessGatewayClientUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifySmartAccessGatewayClientUserResult::~ModifySmartAccessGatewayClientUserResult() +{} + +void ModifySmartAccessGatewayClientUserResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["ClientIp"].isNull()) + clientIp_ = value["ClientIp"].asString(); + if(!value["UserMail"].isNull()) + userMail_ = value["UserMail"].asString(); + if(!value["UserName"].isNull()) + userName_ = value["UserName"].asString(); + if(!value["Bandwidth"].isNull()) + bandwidth_ = std::stoi(value["Bandwidth"].asString()); + +} + +std::string ModifySmartAccessGatewayClientUserResult::getUserName()const +{ + return userName_; +} + +std::string ModifySmartAccessGatewayClientUserResult::getUserMail()const +{ + return userMail_; +} + +int ModifySmartAccessGatewayClientUserResult::getBandwidth()const +{ + return bandwidth_; +} + +std::string ModifySmartAccessGatewayClientUserResult::getClientIp()const +{ + return clientIp_; +} + diff --git a/smartag/src/model/ModifySmartAccessGatewayRequest.cc b/smartag/src/model/ModifySmartAccessGatewayRequest.cc index 616e6d3f9..84da372d0 100644 --- a/smartag/src/model/ModifySmartAccessGatewayRequest.cc +++ b/smartag/src/model/ModifySmartAccessGatewayRequest.cc @@ -1,30 +1,47 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::ModifySmartAccessGatewayRequest; - -ModifySmartAccessGatewayRequest::ModifySmartAccessGatewayRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ModifySmartAccessGateway") -{} - -ModifySmartAccessGatewayRequest::~ModifySmartAccessGatewayRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::ModifySmartAccessGatewayRequest; + +ModifySmartAccessGatewayRequest::ModifySmartAccessGatewayRequest() : + RpcServiceRequest("smartag", "2018-03-13", "ModifySmartAccessGateway") +{} + +ModifySmartAccessGatewayRequest::~ModifySmartAccessGatewayRequest() +{} + +std::vector ModifySmartAccessGatewayRequest::getSnatEntries()const +{ + return snatEntries_; +} + +void ModifySmartAccessGatewayRequest::setSnatEntries(const std::vector& snatEntries) +{ + snatEntries_ = snatEntries; + int i = 0; + for(int i = 0; i!= snatEntries.size(); i++) { + auto obj = snatEntries.at(i); + std::string str ="SnatEntries."+ std::to_string(i); + setCoreParameter(str + ".CidrBlock", obj.cidrBlock); + setCoreParameter(str + ".SnatIp", obj.snatIp); + } +} + long ModifySmartAccessGatewayRequest::getResourceOwnerId()const { return resourceOwnerId_; @@ -33,7 +50,7 @@ long ModifySmartAccessGatewayRequest::getResourceOwnerId()const void ModifySmartAccessGatewayRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifySmartAccessGatewayRequest::getResourceOwnerAccount()const @@ -44,7 +61,7 @@ std::string ModifySmartAccessGatewayRequest::getResourceOwnerAccount()const void ModifySmartAccessGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ModifySmartAccessGatewayRequest::getCity()const @@ -55,18 +72,7 @@ std::string ModifySmartAccessGatewayRequest::getCity()const void ModifySmartAccessGatewayRequest::setCity(const std::string& city) { city_ = city; - setParameter("City", city); -} - -std::string ModifySmartAccessGatewayRequest::getRegionId()const -{ - return regionId_; -} - -void ModifySmartAccessGatewayRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("City", city); } std::string ModifySmartAccessGatewayRequest::getOwnerAccount()const @@ -77,40 +83,7 @@ std::string ModifySmartAccessGatewayRequest::getOwnerAccount()const void ModifySmartAccessGatewayRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); -} - -std::string ModifySmartAccessGatewayRequest::getName()const -{ - return name_; -} - -void ModifySmartAccessGatewayRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); -} - -std::string ModifySmartAccessGatewayRequest::getCidrBlock()const -{ - return cidrBlock_; -} - -void ModifySmartAccessGatewayRequest::setCidrBlock(const std::string& cidrBlock) -{ - cidrBlock_ = cidrBlock; - setParameter("CidrBlock", cidrBlock); -} - -std::string ModifySmartAccessGatewayRequest::getSmartAGId()const -{ - return smartAGId_; -} - -void ModifySmartAccessGatewayRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); + setCoreParameter("OwnerAccount", ownerAccount); } std::string ModifySmartAccessGatewayRequest::getDescription()const @@ -121,7 +94,7 @@ std::string ModifySmartAccessGatewayRequest::getDescription()const void ModifySmartAccessGatewayRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } long ModifySmartAccessGatewayRequest::getOwnerId()const @@ -132,7 +105,7 @@ long ModifySmartAccessGatewayRequest::getOwnerId()const void ModifySmartAccessGatewayRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } int ModifySmartAccessGatewayRequest::getSecurityLockThreshold()const @@ -143,6 +116,50 @@ int ModifySmartAccessGatewayRequest::getSecurityLockThreshold()const void ModifySmartAccessGatewayRequest::setSecurityLockThreshold(int securityLockThreshold) { securityLockThreshold_ = securityLockThreshold; - setParameter("SecurityLockThreshold", std::to_string(securityLockThreshold)); + setCoreParameter("SecurityLockThreshold", std::to_string(securityLockThreshold)); +} + +std::string ModifySmartAccessGatewayRequest::getRegionId()const +{ + return regionId_; +} + +void ModifySmartAccessGatewayRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ModifySmartAccessGatewayRequest::getName()const +{ + return name_; +} + +void ModifySmartAccessGatewayRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + +std::string ModifySmartAccessGatewayRequest::getCidrBlock()const +{ + return cidrBlock_; +} + +void ModifySmartAccessGatewayRequest::setCidrBlock(const std::string& cidrBlock) +{ + cidrBlock_ = cidrBlock; + setCoreParameter("CidrBlock", cidrBlock); +} + +std::string ModifySmartAccessGatewayRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void ModifySmartAccessGatewayRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setCoreParameter("SmartAGId", smartAGId); } diff --git a/smartag/src/model/ModifySmartAccessGatewayResult.cc b/smartag/src/model/ModifySmartAccessGatewayResult.cc index b8be412f6..196a52b86 100644 --- a/smartag/src/model/ModifySmartAccessGatewayResult.cc +++ b/smartag/src/model/ModifySmartAccessGatewayResult.cc @@ -1,45 +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::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -ModifySmartAccessGatewayResult::ModifySmartAccessGatewayResult() : - ServiceResult() -{} - -ModifySmartAccessGatewayResult::ModifySmartAccessGatewayResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifySmartAccessGatewayResult::~ModifySmartAccessGatewayResult() -{} - -void ModifySmartAccessGatewayResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +ModifySmartAccessGatewayResult::ModifySmartAccessGatewayResult() : + ServiceResult() +{} + +ModifySmartAccessGatewayResult::ModifySmartAccessGatewayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifySmartAccessGatewayResult::~ModifySmartAccessGatewayResult() +{} + +void ModifySmartAccessGatewayResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/RebootSmartAccessGatewayRequest.cc b/smartag/src/model/RebootSmartAccessGatewayRequest.cc index 17f0a05ce..7cf4ed741 100644 --- a/smartag/src/model/RebootSmartAccessGatewayRequest.cc +++ b/smartag/src/model/RebootSmartAccessGatewayRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Smartag::Model::RebootSmartAccessGatewayRequest; - -RebootSmartAccessGatewayRequest::RebootSmartAccessGatewayRequest() : - RpcServiceRequest("smartag", "2018-03-13", "RebootSmartAccessGateway") -{} - -RebootSmartAccessGatewayRequest::~RebootSmartAccessGatewayRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::RebootSmartAccessGatewayRequest; + +RebootSmartAccessGatewayRequest::RebootSmartAccessGatewayRequest() : + RpcServiceRequest("smartag", "2018-03-13", "RebootSmartAccessGateway") +{} + +RebootSmartAccessGatewayRequest::~RebootSmartAccessGatewayRequest() +{} + long RebootSmartAccessGatewayRequest::getResourceOwnerId()const { return resourceOwnerId_; @@ -33,7 +33,7 @@ long RebootSmartAccessGatewayRequest::getResourceOwnerId()const void RebootSmartAccessGatewayRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string RebootSmartAccessGatewayRequest::getSerialNumber()const @@ -44,7 +44,7 @@ std::string RebootSmartAccessGatewayRequest::getSerialNumber()const void RebootSmartAccessGatewayRequest::setSerialNumber(const std::string& serialNumber) { serialNumber_ = serialNumber; - setParameter("SerialNumber", serialNumber); + setCoreParameter("SerialNumber", serialNumber); } std::string RebootSmartAccessGatewayRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string RebootSmartAccessGatewayRequest::getResourceOwnerAccount()const void RebootSmartAccessGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string RebootSmartAccessGatewayRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string RebootSmartAccessGatewayRequest::getRegionId()const void RebootSmartAccessGatewayRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string RebootSmartAccessGatewayRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string RebootSmartAccessGatewayRequest::getOwnerAccount()const void RebootSmartAccessGatewayRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string RebootSmartAccessGatewayRequest::getSmartAGId()const @@ -88,7 +88,7 @@ std::string RebootSmartAccessGatewayRequest::getSmartAGId()const void RebootSmartAccessGatewayRequest::setSmartAGId(const std::string& smartAGId) { smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); + setCoreParameter("SmartAGId", smartAGId); } long RebootSmartAccessGatewayRequest::getOwnerId()const @@ -99,6 +99,6 @@ long RebootSmartAccessGatewayRequest::getOwnerId()const void RebootSmartAccessGatewayRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/smartag/src/model/RebootSmartAccessGatewayResult.cc b/smartag/src/model/RebootSmartAccessGatewayResult.cc index d1c24b094..e33e76256 100644 --- a/smartag/src/model/RebootSmartAccessGatewayResult.cc +++ b/smartag/src/model/RebootSmartAccessGatewayResult.cc @@ -1,45 +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::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -RebootSmartAccessGatewayResult::RebootSmartAccessGatewayResult() : - ServiceResult() -{} - -RebootSmartAccessGatewayResult::RebootSmartAccessGatewayResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -RebootSmartAccessGatewayResult::~RebootSmartAccessGatewayResult() -{} - -void RebootSmartAccessGatewayResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +RebootSmartAccessGatewayResult::RebootSmartAccessGatewayResult() : + ServiceResult() +{} + +RebootSmartAccessGatewayResult::RebootSmartAccessGatewayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RebootSmartAccessGatewayResult::~RebootSmartAccessGatewayResult() +{} + +void RebootSmartAccessGatewayResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/ResetSmartAccessGatewayClientUserPasswordRequest.cc b/smartag/src/model/ResetSmartAccessGatewayClientUserPasswordRequest.cc new file mode 100644 index 000000000..5c92ab511 --- /dev/null +++ b/smartag/src/model/ResetSmartAccessGatewayClientUserPasswordRequest.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::Smartag::Model::ResetSmartAccessGatewayClientUserPasswordRequest; + +ResetSmartAccessGatewayClientUserPasswordRequest::ResetSmartAccessGatewayClientUserPasswordRequest() : + RpcServiceRequest("smartag", "2018-03-13", "ResetSmartAccessGatewayClientUserPassword") +{} + +ResetSmartAccessGatewayClientUserPasswordRequest::~ResetSmartAccessGatewayClientUserPasswordRequest() +{} + +long ResetSmartAccessGatewayClientUserPasswordRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ResetSmartAccessGatewayClientUserPasswordRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ResetSmartAccessGatewayClientUserPasswordRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ResetSmartAccessGatewayClientUserPasswordRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ResetSmartAccessGatewayClientUserPasswordRequest::getRegionId()const +{ + return regionId_; +} + +void ResetSmartAccessGatewayClientUserPasswordRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ResetSmartAccessGatewayClientUserPasswordRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ResetSmartAccessGatewayClientUserPasswordRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string ResetSmartAccessGatewayClientUserPasswordRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void ResetSmartAccessGatewayClientUserPasswordRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setCoreParameter("SmartAGId", smartAGId); +} + +long ResetSmartAccessGatewayClientUserPasswordRequest::getOwnerId()const +{ + return ownerId_; +} + +void ResetSmartAccessGatewayClientUserPasswordRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ResetSmartAccessGatewayClientUserPasswordRequest::getUserName()const +{ + return userName_; +} + +void ResetSmartAccessGatewayClientUserPasswordRequest::setUserName(const std::string& userName) +{ + userName_ = userName; + setCoreParameter("UserName", userName); +} + diff --git a/smartag/src/model/ResetSmartAccessGatewayClientUserPasswordResult.cc b/smartag/src/model/ResetSmartAccessGatewayClientUserPasswordResult.cc new file mode 100644 index 000000000..9fbadac95 --- /dev/null +++ b/smartag/src/model/ResetSmartAccessGatewayClientUserPasswordResult.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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +ResetSmartAccessGatewayClientUserPasswordResult::ResetSmartAccessGatewayClientUserPasswordResult() : + ServiceResult() +{} + +ResetSmartAccessGatewayClientUserPasswordResult::ResetSmartAccessGatewayClientUserPasswordResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ResetSmartAccessGatewayClientUserPasswordResult::~ResetSmartAccessGatewayClientUserPasswordResult() +{} + +void ResetSmartAccessGatewayClientUserPasswordResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/RevokeInstanceFromCbnRequest.cc b/smartag/src/model/RevokeInstanceFromCbnRequest.cc new file mode 100644 index 000000000..d0812464e --- /dev/null +++ b/smartag/src/model/RevokeInstanceFromCbnRequest.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::Smartag::Model::RevokeInstanceFromCbnRequest; + +RevokeInstanceFromCbnRequest::RevokeInstanceFromCbnRequest() : + RpcServiceRequest("smartag", "2018-03-13", "RevokeInstanceFromCbn") +{} + +RevokeInstanceFromCbnRequest::~RevokeInstanceFromCbnRequest() +{} + +long RevokeInstanceFromCbnRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void RevokeInstanceFromCbnRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string RevokeInstanceFromCbnRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void RevokeInstanceFromCbnRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string RevokeInstanceFromCbnRequest::getRegionId()const +{ + return regionId_; +} + +void RevokeInstanceFromCbnRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string RevokeInstanceFromCbnRequest::getCenInstanceId()const +{ + return cenInstanceId_; +} + +void RevokeInstanceFromCbnRequest::setCenInstanceId(const std::string& cenInstanceId) +{ + cenInstanceId_ = cenInstanceId; + setCoreParameter("CenInstanceId", cenInstanceId); +} + +std::string RevokeInstanceFromCbnRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void RevokeInstanceFromCbnRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string RevokeInstanceFromCbnRequest::getCcnInstanceId()const +{ + return ccnInstanceId_; +} + +void RevokeInstanceFromCbnRequest::setCcnInstanceId(const std::string& ccnInstanceId) +{ + ccnInstanceId_ = ccnInstanceId; + setCoreParameter("CcnInstanceId", ccnInstanceId); +} + +long RevokeInstanceFromCbnRequest::getOwnerId()const +{ + return ownerId_; +} + +void RevokeInstanceFromCbnRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/smartag/src/model/RevokeInstanceFromCbnResult.cc b/smartag/src/model/RevokeInstanceFromCbnResult.cc new file mode 100644 index 000000000..9f0dcec9f --- /dev/null +++ b/smartag/src/model/RevokeInstanceFromCbnResult.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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +RevokeInstanceFromCbnResult::RevokeInstanceFromCbnResult() : + ServiceResult() +{} + +RevokeInstanceFromCbnResult::RevokeInstanceFromCbnResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RevokeInstanceFromCbnResult::~RevokeInstanceFromCbnResult() +{} + +void RevokeInstanceFromCbnResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/SetSagRouteableAddressRequest.cc b/smartag/src/model/SetSagRouteableAddressRequest.cc new file mode 100644 index 000000000..65b948a8b --- /dev/null +++ b/smartag/src/model/SetSagRouteableAddressRequest.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::Smartag::Model::SetSagRouteableAddressRequest; + +SetSagRouteableAddressRequest::SetSagRouteableAddressRequest() : + RpcServiceRequest("smartag", "2018-03-13", "SetSagRouteableAddress") +{} + +SetSagRouteableAddressRequest::~SetSagRouteableAddressRequest() +{} + +std::string SetSagRouteableAddressRequest::getAccess_key_id()const +{ + return access_key_id_; +} + +void SetSagRouteableAddressRequest::setAccess_key_id(const std::string& access_key_id) +{ + access_key_id_ = access_key_id; + setCoreParameter("Access_key_id", access_key_id); +} + +long SetSagRouteableAddressRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void SetSagRouteableAddressRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string SetSagRouteableAddressRequest::getRegionId()const +{ + return regionId_; +} + +void SetSagRouteableAddressRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string SetSagRouteableAddressRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void SetSagRouteableAddressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string SetSagRouteableAddressRequest::getSagId()const +{ + return sagId_; +} + +void SetSagRouteableAddressRequest::setSagId(const std::string& sagId) +{ + sagId_ = sagId; + setCoreParameter("SagId", sagId); +} + +std::string SetSagRouteableAddressRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void SetSagRouteableAddressRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +long SetSagRouteableAddressRequest::getOwnerId()const +{ + return ownerId_; +} + +void SetSagRouteableAddressRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string SetSagRouteableAddressRequest::getRouteableAddress()const +{ + return routeableAddress_; +} + +void SetSagRouteableAddressRequest::setRouteableAddress(const std::string& routeableAddress) +{ + routeableAddress_ = routeableAddress; + setCoreParameter("RouteableAddress", routeableAddress); +} + diff --git a/smartag/src/model/SetSagRouteableAddressResult.cc b/smartag/src/model/SetSagRouteableAddressResult.cc new file mode 100644 index 000000000..029ab8367 --- /dev/null +++ b/smartag/src/model/SetSagRouteableAddressResult.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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +SetSagRouteableAddressResult::SetSagRouteableAddressResult() : + ServiceResult() +{} + +SetSagRouteableAddressResult::SetSagRouteableAddressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetSagRouteableAddressResult::~SetSagRouteableAddressResult() +{} + +void SetSagRouteableAddressResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/SwitchCloudBoxHaStateRequest.cc b/smartag/src/model/SwitchCloudBoxHaStateRequest.cc index 92dbd9b26..ad9b6c0f6 100644 --- a/smartag/src/model/SwitchCloudBoxHaStateRequest.cc +++ b/smartag/src/model/SwitchCloudBoxHaStateRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Smartag::Model::SwitchCloudBoxHaStateRequest; - -SwitchCloudBoxHaStateRequest::SwitchCloudBoxHaStateRequest() : - RpcServiceRequest("smartag", "2018-03-13", "SwitchCloudBoxHaState") -{} - -SwitchCloudBoxHaStateRequest::~SwitchCloudBoxHaStateRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::SwitchCloudBoxHaStateRequest; + +SwitchCloudBoxHaStateRequest::SwitchCloudBoxHaStateRequest() : + RpcServiceRequest("smartag", "2018-03-13", "SwitchCloudBoxHaState") +{} + +SwitchCloudBoxHaStateRequest::~SwitchCloudBoxHaStateRequest() +{} + long SwitchCloudBoxHaStateRequest::getResourceOwnerId()const { return resourceOwnerId_; @@ -33,7 +33,7 @@ long SwitchCloudBoxHaStateRequest::getResourceOwnerId()const void SwitchCloudBoxHaStateRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string SwitchCloudBoxHaStateRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string SwitchCloudBoxHaStateRequest::getResourceOwnerAccount()const void SwitchCloudBoxHaStateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string SwitchCloudBoxHaStateRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string SwitchCloudBoxHaStateRequest::getRegionId()const void SwitchCloudBoxHaStateRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string SwitchCloudBoxHaStateRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string SwitchCloudBoxHaStateRequest::getOwnerAccount()const void SwitchCloudBoxHaStateRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string SwitchCloudBoxHaStateRequest::getSmartAGId()const @@ -77,7 +77,7 @@ std::string SwitchCloudBoxHaStateRequest::getSmartAGId()const void SwitchCloudBoxHaStateRequest::setSmartAGId(const std::string& smartAGId) { smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); + setCoreParameter("SmartAGId", smartAGId); } long SwitchCloudBoxHaStateRequest::getOwnerId()const @@ -88,6 +88,6 @@ long SwitchCloudBoxHaStateRequest::getOwnerId()const void SwitchCloudBoxHaStateRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/smartag/src/model/SwitchCloudBoxHaStateResult.cc b/smartag/src/model/SwitchCloudBoxHaStateResult.cc index 7a7119a71..da745e468 100644 --- a/smartag/src/model/SwitchCloudBoxHaStateResult.cc +++ b/smartag/src/model/SwitchCloudBoxHaStateResult.cc @@ -1,45 +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::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -SwitchCloudBoxHaStateResult::SwitchCloudBoxHaStateResult() : - ServiceResult() -{} - -SwitchCloudBoxHaStateResult::SwitchCloudBoxHaStateResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SwitchCloudBoxHaStateResult::~SwitchCloudBoxHaStateResult() -{} - -void SwitchCloudBoxHaStateResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +SwitchCloudBoxHaStateResult::SwitchCloudBoxHaStateResult() : + ServiceResult() +{} + +SwitchCloudBoxHaStateResult::SwitchCloudBoxHaStateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SwitchCloudBoxHaStateResult::~SwitchCloudBoxHaStateResult() +{} + +void SwitchCloudBoxHaStateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/SwitchSAGHaStateRequest.cc b/smartag/src/model/SwitchSAGHaStateRequest.cc new file mode 100644 index 000000000..42ade4304 --- /dev/null +++ b/smartag/src/model/SwitchSAGHaStateRequest.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::Smartag::Model::SwitchSAGHaStateRequest; + +SwitchSAGHaStateRequest::SwitchSAGHaStateRequest() : + RpcServiceRequest("smartag", "2018-03-13", "SwitchSAGHaState") +{} + +SwitchSAGHaStateRequest::~SwitchSAGHaStateRequest() +{} + +long SwitchSAGHaStateRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void SwitchSAGHaStateRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string SwitchSAGHaStateRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void SwitchSAGHaStateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string SwitchSAGHaStateRequest::getRegionId()const +{ + return regionId_; +} + +void SwitchSAGHaStateRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string SwitchSAGHaStateRequest::getHaType()const +{ + return haType_; +} + +void SwitchSAGHaStateRequest::setHaType(const std::string& haType) +{ + haType_ = haType; + setCoreParameter("HaType", haType); +} + +std::string SwitchSAGHaStateRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void SwitchSAGHaStateRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string SwitchSAGHaStateRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void SwitchSAGHaStateRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setCoreParameter("SmartAGId", smartAGId); +} + +long SwitchSAGHaStateRequest::getOwnerId()const +{ + return ownerId_; +} + +void SwitchSAGHaStateRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/smartag/src/model/SwitchSAGHaStateResult.cc b/smartag/src/model/SwitchSAGHaStateResult.cc new file mode 100644 index 000000000..2c5aa42f0 --- /dev/null +++ b/smartag/src/model/SwitchSAGHaStateResult.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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +SwitchSAGHaStateResult::SwitchSAGHaStateResult() : + ServiceResult() +{} + +SwitchSAGHaStateResult::SwitchSAGHaStateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SwitchSAGHaStateResult::~SwitchSAGHaStateResult() +{} + +void SwitchSAGHaStateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/UnbindSmartAccessGatewayRequest.cc b/smartag/src/model/UnbindSmartAccessGatewayRequest.cc index 701477f18..980f0579f 100644 --- a/smartag/src/model/UnbindSmartAccessGatewayRequest.cc +++ b/smartag/src/model/UnbindSmartAccessGatewayRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Smartag::Model::UnbindSmartAccessGatewayRequest; - -UnbindSmartAccessGatewayRequest::UnbindSmartAccessGatewayRequest() : - RpcServiceRequest("smartag", "2018-03-13", "UnbindSmartAccessGateway") -{} - -UnbindSmartAccessGatewayRequest::~UnbindSmartAccessGatewayRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::UnbindSmartAccessGatewayRequest; + +UnbindSmartAccessGatewayRequest::UnbindSmartAccessGatewayRequest() : + RpcServiceRequest("smartag", "2018-03-13", "UnbindSmartAccessGateway") +{} + +UnbindSmartAccessGatewayRequest::~UnbindSmartAccessGatewayRequest() +{} + long UnbindSmartAccessGatewayRequest::getResourceOwnerId()const { return resourceOwnerId_; @@ -33,7 +33,7 @@ long UnbindSmartAccessGatewayRequest::getResourceOwnerId()const void UnbindSmartAccessGatewayRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string UnbindSmartAccessGatewayRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string UnbindSmartAccessGatewayRequest::getResourceOwnerAccount()const void UnbindSmartAccessGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string UnbindSmartAccessGatewayRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string UnbindSmartAccessGatewayRequest::getRegionId()const void UnbindSmartAccessGatewayRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string UnbindSmartAccessGatewayRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string UnbindSmartAccessGatewayRequest::getOwnerAccount()const void UnbindSmartAccessGatewayRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string UnbindSmartAccessGatewayRequest::getCcnId()const @@ -77,7 +77,7 @@ std::string UnbindSmartAccessGatewayRequest::getCcnId()const void UnbindSmartAccessGatewayRequest::setCcnId(const std::string& ccnId) { ccnId_ = ccnId; - setParameter("CcnId", ccnId); + setCoreParameter("CcnId", ccnId); } std::string UnbindSmartAccessGatewayRequest::getSmartAGId()const @@ -88,7 +88,7 @@ std::string UnbindSmartAccessGatewayRequest::getSmartAGId()const void UnbindSmartAccessGatewayRequest::setSmartAGId(const std::string& smartAGId) { smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); + setCoreParameter("SmartAGId", smartAGId); } long UnbindSmartAccessGatewayRequest::getOwnerId()const @@ -99,6 +99,6 @@ long UnbindSmartAccessGatewayRequest::getOwnerId()const void UnbindSmartAccessGatewayRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/smartag/src/model/UnbindSmartAccessGatewayResult.cc b/smartag/src/model/UnbindSmartAccessGatewayResult.cc index ac067612f..1592a2c4d 100644 --- a/smartag/src/model/UnbindSmartAccessGatewayResult.cc +++ b/smartag/src/model/UnbindSmartAccessGatewayResult.cc @@ -1,45 +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::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -UnbindSmartAccessGatewayResult::UnbindSmartAccessGatewayResult() : - ServiceResult() -{} - -UnbindSmartAccessGatewayResult::UnbindSmartAccessGatewayResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -UnbindSmartAccessGatewayResult::~UnbindSmartAccessGatewayResult() -{} - -void UnbindSmartAccessGatewayResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +UnbindSmartAccessGatewayResult::UnbindSmartAccessGatewayResult() : + ServiceResult() +{} + +UnbindSmartAccessGatewayResult::UnbindSmartAccessGatewayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnbindSmartAccessGatewayResult::~UnbindSmartAccessGatewayResult() +{} + +void UnbindSmartAccessGatewayResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/UnicomOrderConfirmRequest.cc b/smartag/src/model/UnicomOrderConfirmRequest.cc new file mode 100644 index 000000000..664503c5b --- /dev/null +++ b/smartag/src/model/UnicomOrderConfirmRequest.cc @@ -0,0 +1,160 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::UnicomOrderConfirmRequest; + +UnicomOrderConfirmRequest::UnicomOrderConfirmRequest() : + RpcServiceRequest("smartag", "2018-03-13", "UnicomOrderConfirm") +{} + +UnicomOrderConfirmRequest::~UnicomOrderConfirmRequest() +{} + +std::string UnicomOrderConfirmRequest::getTmsCode()const +{ + return tmsCode_; +} + +void UnicomOrderConfirmRequest::setTmsCode(const std::string& tmsCode) +{ + tmsCode_ = tmsCode; + setCoreParameter("TmsCode", tmsCode); +} + +long UnicomOrderConfirmRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void UnicomOrderConfirmRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::vector UnicomOrderConfirmRequest::getOrderItem()const +{ + return orderItem_; +} + +void UnicomOrderConfirmRequest::setOrderItem(const std::vector& orderItem) +{ + orderItem_ = orderItem; + int i = 0; + for(int i = 0; i!= orderItem.size(); i++) { + auto obj = orderItem.at(i); + std::string str ="OrderItem."+ std::to_string(i); + setCoreParameter(str + ".ScItemName", obj.scItemName); + setCoreParameter(str + ".ItemAmount", obj.itemAmount); + for(int i = 0; i!= obj.snList.size(); i++) setCoreParameter(str + ".SnList."+ std::to_string(i), obj.snList.at(i)); + setCoreParameter(str + ".OrderItemId", obj.orderItemId); + setCoreParameter(str + ".ScItemCode", obj.scItemCode); + setCoreParameter(str + ".ItemQuantity", std::to_string(obj.itemQuantity)); + setCoreParameter(str + ".TradeId", obj.tradeId); + setCoreParameter(str + ".TradeItemId", obj.tradeItemId); + } +} + +std::string UnicomOrderConfirmRequest::getOwnerUserId()const +{ + return ownerUserId_; +} + +void UnicomOrderConfirmRequest::setOwnerUserId(const std::string& ownerUserId) +{ + ownerUserId_ = ownerUserId; + setCoreParameter("OwnerUserId", ownerUserId); +} + +std::string UnicomOrderConfirmRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void UnicomOrderConfirmRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string UnicomOrderConfirmRequest::getRegionId()const +{ + return regionId_; +} + +void UnicomOrderConfirmRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string UnicomOrderConfirmRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void UnicomOrderConfirmRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +long UnicomOrderConfirmRequest::getOrderPostFee()const +{ + return orderPostFee_; +} + +void UnicomOrderConfirmRequest::setOrderPostFee(long orderPostFee) +{ + orderPostFee_ = orderPostFee; + setCoreParameter("OrderPostFee", std::to_string(orderPostFee)); +} + +long UnicomOrderConfirmRequest::getOwnerId()const +{ + return ownerId_; +} + +void UnicomOrderConfirmRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string UnicomOrderConfirmRequest::getTmsOrderCode()const +{ + return tmsOrderCode_; +} + +void UnicomOrderConfirmRequest::setTmsOrderCode(const std::string& tmsOrderCode) +{ + tmsOrderCode_ = tmsOrderCode; + setCoreParameter("TmsOrderCode", tmsOrderCode); +} + +std::string UnicomOrderConfirmRequest::getTradeId()const +{ + return tradeId_; +} + +void UnicomOrderConfirmRequest::setTradeId(const std::string& tradeId) +{ + tradeId_ = tradeId; + setCoreParameter("TradeId", tradeId); +} + diff --git a/smartag/src/model/UnicomOrderConfirmResult.cc b/smartag/src/model/UnicomOrderConfirmResult.cc new file mode 100644 index 000000000..e002f2b84 --- /dev/null +++ b/smartag/src/model/UnicomOrderConfirmResult.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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +UnicomOrderConfirmResult::UnicomOrderConfirmResult() : + ServiceResult() +{} + +UnicomOrderConfirmResult::UnicomOrderConfirmResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnicomOrderConfirmResult::~UnicomOrderConfirmResult() +{} + +void UnicomOrderConfirmResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string UnicomOrderConfirmResult::getMessage()const +{ + return message_; +} + +std::string UnicomOrderConfirmResult::getCode()const +{ + return code_; +} + +bool UnicomOrderConfirmResult::getSuccess()const +{ + return success_; +} + diff --git a/smartag/src/model/UnicomSignConfirmRequest.cc b/smartag/src/model/UnicomSignConfirmRequest.cc new file mode 100644 index 000000000..eea63d61b --- /dev/null +++ b/smartag/src/model/UnicomSignConfirmRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Smartag::Model::UnicomSignConfirmRequest; + +UnicomSignConfirmRequest::UnicomSignConfirmRequest() : + RpcServiceRequest("smartag", "2018-03-13", "UnicomSignConfirm") +{} + +UnicomSignConfirmRequest::~UnicomSignConfirmRequest() +{} + +long UnicomSignConfirmRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void UnicomSignConfirmRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string UnicomSignConfirmRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void UnicomSignConfirmRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string UnicomSignConfirmRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void UnicomSignConfirmRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::vector UnicomSignConfirmRequest::getTmsOrder()const +{ + return tmsOrder_; +} + +void UnicomSignConfirmRequest::setTmsOrder(const std::vector& tmsOrder) +{ + tmsOrder_ = tmsOrder; + int i = 0; + for(int i = 0; i!= tmsOrder.size(); i++) { + auto obj = tmsOrder.at(i); + std::string str ="TmsOrder."+ std::to_string(i); + setCoreParameter(str + ".TmsCode", obj.tmsCode); + setCoreParameter(str + ".SigningTime", obj.signingTime); + setCoreParameter(str + ".TmsOrderCode", obj.tmsOrderCode); + setCoreParameter(str + ".TradeId", obj.tradeId); + } +} + +long UnicomSignConfirmRequest::getOwnerId()const +{ + return ownerId_; +} + +void UnicomSignConfirmRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/smartag/src/model/UnicomSignConfirmResult.cc b/smartag/src/model/UnicomSignConfirmResult.cc new file mode 100644 index 000000000..6c38d6516 --- /dev/null +++ b/smartag/src/model/UnicomSignConfirmResult.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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +UnicomSignConfirmResult::UnicomSignConfirmResult() : + ServiceResult() +{} + +UnicomSignConfirmResult::UnicomSignConfirmResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnicomSignConfirmResult::~UnicomSignConfirmResult() +{} + +void UnicomSignConfirmResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string UnicomSignConfirmResult::getMessage()const +{ + return message_; +} + +std::string UnicomSignConfirmResult::getCode()const +{ + return code_; +} + +bool UnicomSignConfirmResult::getSuccess()const +{ + return success_; +} + diff --git a/smartag/src/model/UnlockSmartAccessGatewayRequest.cc b/smartag/src/model/UnlockSmartAccessGatewayRequest.cc index 6c9b64f1b..0e37bcbbd 100644 --- a/smartag/src/model/UnlockSmartAccessGatewayRequest.cc +++ b/smartag/src/model/UnlockSmartAccessGatewayRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Smartag::Model::UnlockSmartAccessGatewayRequest; - -UnlockSmartAccessGatewayRequest::UnlockSmartAccessGatewayRequest() : - RpcServiceRequest("smartag", "2018-03-13", "UnlockSmartAccessGateway") -{} - -UnlockSmartAccessGatewayRequest::~UnlockSmartAccessGatewayRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::UnlockSmartAccessGatewayRequest; + +UnlockSmartAccessGatewayRequest::UnlockSmartAccessGatewayRequest() : + RpcServiceRequest("smartag", "2018-03-13", "UnlockSmartAccessGateway") +{} + +UnlockSmartAccessGatewayRequest::~UnlockSmartAccessGatewayRequest() +{} + long UnlockSmartAccessGatewayRequest::getResourceOwnerId()const { return resourceOwnerId_; @@ -33,7 +33,7 @@ long UnlockSmartAccessGatewayRequest::getResourceOwnerId()const void UnlockSmartAccessGatewayRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string UnlockSmartAccessGatewayRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string UnlockSmartAccessGatewayRequest::getResourceOwnerAccount()const void UnlockSmartAccessGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string UnlockSmartAccessGatewayRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string UnlockSmartAccessGatewayRequest::getRegionId()const void UnlockSmartAccessGatewayRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string UnlockSmartAccessGatewayRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string UnlockSmartAccessGatewayRequest::getOwnerAccount()const void UnlockSmartAccessGatewayRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string UnlockSmartAccessGatewayRequest::getSmartAGId()const @@ -77,7 +77,7 @@ std::string UnlockSmartAccessGatewayRequest::getSmartAGId()const void UnlockSmartAccessGatewayRequest::setSmartAGId(const std::string& smartAGId) { smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); + setCoreParameter("SmartAGId", smartAGId); } long UnlockSmartAccessGatewayRequest::getOwnerId()const @@ -88,6 +88,6 @@ long UnlockSmartAccessGatewayRequest::getOwnerId()const void UnlockSmartAccessGatewayRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/smartag/src/model/UnlockSmartAccessGatewayResult.cc b/smartag/src/model/UnlockSmartAccessGatewayResult.cc index aa3e37e05..ed25c506a 100644 --- a/smartag/src/model/UnlockSmartAccessGatewayResult.cc +++ b/smartag/src/model/UnlockSmartAccessGatewayResult.cc @@ -1,45 +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::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -UnlockSmartAccessGatewayResult::UnlockSmartAccessGatewayResult() : - ServiceResult() -{} - -UnlockSmartAccessGatewayResult::UnlockSmartAccessGatewayResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -UnlockSmartAccessGatewayResult::~UnlockSmartAccessGatewayResult() -{} - -void UnlockSmartAccessGatewayResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +UnlockSmartAccessGatewayResult::UnlockSmartAccessGatewayResult() : + ServiceResult() +{} + +UnlockSmartAccessGatewayResult::UnlockSmartAccessGatewayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnlockSmartAccessGatewayResult::~UnlockSmartAccessGatewayResult() +{} + +void UnlockSmartAccessGatewayResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/UpdateSmartAccessGatewayVersionRequest.cc b/smartag/src/model/UpdateSmartAccessGatewayVersionRequest.cc index 039815d79..4ef42f66f 100644 --- a/smartag/src/model/UpdateSmartAccessGatewayVersionRequest.cc +++ b/smartag/src/model/UpdateSmartAccessGatewayVersionRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Smartag::Model::UpdateSmartAccessGatewayVersionRequest; - -UpdateSmartAccessGatewayVersionRequest::UpdateSmartAccessGatewayVersionRequest() : - RpcServiceRequest("smartag", "2018-03-13", "UpdateSmartAccessGatewayVersion") -{} - -UpdateSmartAccessGatewayVersionRequest::~UpdateSmartAccessGatewayVersionRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::UpdateSmartAccessGatewayVersionRequest; + +UpdateSmartAccessGatewayVersionRequest::UpdateSmartAccessGatewayVersionRequest() : + RpcServiceRequest("smartag", "2018-03-13", "UpdateSmartAccessGatewayVersion") +{} + +UpdateSmartAccessGatewayVersionRequest::~UpdateSmartAccessGatewayVersionRequest() +{} + long UpdateSmartAccessGatewayVersionRequest::getResourceOwnerId()const { return resourceOwnerId_; @@ -33,7 +33,18 @@ long UpdateSmartAccessGatewayVersionRequest::getResourceOwnerId()const void UpdateSmartAccessGatewayVersionRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string UpdateSmartAccessGatewayVersionRequest::getSerialNumber()const +{ + return serialNumber_; +} + +void UpdateSmartAccessGatewayVersionRequest::setSerialNumber(const std::string& serialNumber) +{ + serialNumber_ = serialNumber; + setCoreParameter("SerialNumber", serialNumber); } std::string UpdateSmartAccessGatewayVersionRequest::getResourceOwnerAccount()const @@ -44,7 +55,7 @@ std::string UpdateSmartAccessGatewayVersionRequest::getResourceOwnerAccount()con void UpdateSmartAccessGatewayVersionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string UpdateSmartAccessGatewayVersionRequest::getRegionId()const @@ -55,7 +66,7 @@ std::string UpdateSmartAccessGatewayVersionRequest::getRegionId()const void UpdateSmartAccessGatewayVersionRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string UpdateSmartAccessGatewayVersionRequest::getOwnerAccount()const @@ -66,7 +77,7 @@ std::string UpdateSmartAccessGatewayVersionRequest::getOwnerAccount()const void UpdateSmartAccessGatewayVersionRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string UpdateSmartAccessGatewayVersionRequest::getSmartAGId()const @@ -77,7 +88,7 @@ std::string UpdateSmartAccessGatewayVersionRequest::getSmartAGId()const void UpdateSmartAccessGatewayVersionRequest::setSmartAGId(const std::string& smartAGId) { smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); + setCoreParameter("SmartAGId", smartAGId); } long UpdateSmartAccessGatewayVersionRequest::getOwnerId()const @@ -88,7 +99,7 @@ long UpdateSmartAccessGatewayVersionRequest::getOwnerId()const void UpdateSmartAccessGatewayVersionRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string UpdateSmartAccessGatewayVersionRequest::getVersionCode()const @@ -99,6 +110,6 @@ std::string UpdateSmartAccessGatewayVersionRequest::getVersionCode()const void UpdateSmartAccessGatewayVersionRequest::setVersionCode(const std::string& versionCode) { versionCode_ = versionCode; - setParameter("VersionCode", versionCode); + setCoreParameter("VersionCode", versionCode); } diff --git a/smartag/src/model/UpdateSmartAccessGatewayVersionResult.cc b/smartag/src/model/UpdateSmartAccessGatewayVersionResult.cc index 828cd5b7c..c11f37cd5 100644 --- a/smartag/src/model/UpdateSmartAccessGatewayVersionResult.cc +++ b/smartag/src/model/UpdateSmartAccessGatewayVersionResult.cc @@ -1,45 +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::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -UpdateSmartAccessGatewayVersionResult::UpdateSmartAccessGatewayVersionResult() : - ServiceResult() -{} - -UpdateSmartAccessGatewayVersionResult::UpdateSmartAccessGatewayVersionResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -UpdateSmartAccessGatewayVersionResult::~UpdateSmartAccessGatewayVersionResult() -{} - -void UpdateSmartAccessGatewayVersionResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +UpdateSmartAccessGatewayVersionResult::UpdateSmartAccessGatewayVersionResult() : + ServiceResult() +{} + +UpdateSmartAccessGatewayVersionResult::UpdateSmartAccessGatewayVersionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateSmartAccessGatewayVersionResult::~UpdateSmartAccessGatewayVersionResult() +{} + +void UpdateSmartAccessGatewayVersionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/UpgradeSmartAccessGatewayRequest.cc b/smartag/src/model/UpgradeSmartAccessGatewayRequest.cc new file mode 100644 index 000000000..c33d7200e --- /dev/null +++ b/smartag/src/model/UpgradeSmartAccessGatewayRequest.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::Smartag::Model::UpgradeSmartAccessGatewayRequest; + +UpgradeSmartAccessGatewayRequest::UpgradeSmartAccessGatewayRequest() : + RpcServiceRequest("smartag", "2018-03-13", "UpgradeSmartAccessGateway") +{} + +UpgradeSmartAccessGatewayRequest::~UpgradeSmartAccessGatewayRequest() +{} + +long UpgradeSmartAccessGatewayRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void UpgradeSmartAccessGatewayRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +bool UpgradeSmartAccessGatewayRequest::getAutoPay()const +{ + return autoPay_; +} + +void UpgradeSmartAccessGatewayRequest::setAutoPay(bool autoPay) +{ + autoPay_ = autoPay; + setCoreParameter("AutoPay", autoPay ? "true" : "false"); +} + +long UpgradeSmartAccessGatewayRequest::getBandWidthSpec()const +{ + return bandWidthSpec_; +} + +void UpgradeSmartAccessGatewayRequest::setBandWidthSpec(long bandWidthSpec) +{ + bandWidthSpec_ = bandWidthSpec; + setCoreParameter("BandWidthSpec", std::to_string(bandWidthSpec)); +} + +std::string UpgradeSmartAccessGatewayRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void UpgradeSmartAccessGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string UpgradeSmartAccessGatewayRequest::getRegionId()const +{ + return regionId_; +} + +void UpgradeSmartAccessGatewayRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string UpgradeSmartAccessGatewayRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void UpgradeSmartAccessGatewayRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +int UpgradeSmartAccessGatewayRequest::getUserCount()const +{ + return userCount_; +} + +void UpgradeSmartAccessGatewayRequest::setUserCount(int userCount) +{ + userCount_ = userCount; + setCoreParameter("UserCount", std::to_string(userCount)); +} + +std::string UpgradeSmartAccessGatewayRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void UpgradeSmartAccessGatewayRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setCoreParameter("SmartAGId", smartAGId); +} + +long UpgradeSmartAccessGatewayRequest::getOwnerId()const +{ + return ownerId_; +} + +void UpgradeSmartAccessGatewayRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +long UpgradeSmartAccessGatewayRequest::getDataPlan()const +{ + return dataPlan_; +} + +void UpgradeSmartAccessGatewayRequest::setDataPlan(long dataPlan) +{ + dataPlan_ = dataPlan; + setCoreParameter("DataPlan", std::to_string(dataPlan)); +} + diff --git a/smartag/src/model/UpgradeSmartAccessGatewayResult.cc b/smartag/src/model/UpgradeSmartAccessGatewayResult.cc new file mode 100644 index 000000000..8d88a1f7d --- /dev/null +++ b/smartag/src/model/UpgradeSmartAccessGatewayResult.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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +UpgradeSmartAccessGatewayResult::UpgradeSmartAccessGatewayResult() : + ServiceResult() +{} + +UpgradeSmartAccessGatewayResult::UpgradeSmartAccessGatewayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpgradeSmartAccessGatewayResult::~UpgradeSmartAccessGatewayResult() +{} + +void UpgradeSmartAccessGatewayResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["OrderId"].isNull()) + orderId_ = value["OrderId"].asString(); + +} + +std::string UpgradeSmartAccessGatewayResult::getOrderId()const +{ + return orderId_; +} +